@vanelsas/baredom 2.5.0 → 2.6.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 +14 -0
- package/README.md +11 -296
- package/custom-elements.json +36 -1
- package/dist/base.js +38 -38
- package/dist/integrity.json +93 -93
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.js +11 -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 +15 -15
- package/dist/x-cancel-dialogue.js +12 -12
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +28 -28
- package/dist/x-chart.js +46 -46
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +40 -40
- package/dist/x-combobox.d.ts +1 -0
- package/dist/x-combobox.js +25 -25
- package/dist/x-command-palette.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +18 -18
- package/dist/x-copy.js +20 -20
- package/dist/x-currency-field.d.ts +1 -0
- package/dist/x-currency-field.js +23 -22
- package/dist/x-date-picker.js +37 -37
- package/dist/x-divider.js +8 -8
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +9 -9
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +16 -16
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +18 -18
- package/dist/x-kinetic-font.js +28 -28
- package/dist/x-kinetic-typography.js +37 -37
- package/dist/x-liquid-dock.js +35 -35
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.js +35 -35
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.js +11 -11
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +30 -30
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.js +15 -15
- package/dist/x-organic-progress.js +35 -35
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-pagination.d.ts +2 -1
- package/dist/x-pagination.js +17 -16
- package/dist/x-particle-button.js +46 -46
- package/dist/x-popover.js +23 -23
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +33 -33
- package/dist/x-scroll-timeline.js +44 -44
- package/dist/x-scroll.js +39 -39
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.d.ts +1 -0
- package/dist/x-select.js +10 -10
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.d.ts +1 -0
- package/dist/x-slider.js +18 -16
- package/dist/x-soft-body.js +20 -20
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +9 -9
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.d.ts +1 -0
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.d.ts +1 -0
- package/dist/x-text-area.js +20 -18
- package/dist/x-theme.js +24 -24
- package/dist/x-timeline-item.js +19 -19
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +12 -12
- package/dist/x-typography.js +8 -8
- package/dist/x-welcome-tour.js +58 -58
- package/package.json +6 -2
package/dist/x-neural-glow.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
Math.max(1,a))}return 4},
|
|
4
|
-
|
|
5
|
-
$APP.n(d)?(c=parseInt(d[1],10),e=parseInt(d[2],10),d=parseInt(d[3],10),c=[c/255,e/255,d/255]):c=[0,0,0];return a[b]=c},
|
|
6
|
-
a.getAttribute("opacity"),a.getAttribute("orb-count"),a.getAttribute("orb-size"),a.getAttribute("color-background"),a.getAttribute("interactive"),a.getAttribute("color-primary"),a.getAttribute("connection-distance")]);var b=$APP.M(a);a=$APP.D(b,
|
|
7
|
-
|
|
8
|
-
"u_resolution"),g,h);b.uniform1f($APP.k(d,"u_time"),l);b.uniform1f($APP.k(d,"u_activity"),m);b.uniform1f($APP.k(d,"u_pulse_speed"),
|
|
9
|
-
"u_opacity"),$APP.qi.g(c));for(c=0;;)if(c<q)g=e[c],b.uniform2f($APP.k(d,"u_orb_positions["+$APP.T.g(c)+"]"),g[0],g[1]),b.uniform1f($APP.k(d,"u_orb_phases["+$APP.T.g(c)+"]"),p[c]),c+=1;else break},
|
|
2
|
+
var gI=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?15:Math.min(50,Math.max(3,a))}return 15},hI=function(a,b){return typeof a==="string"&&a.trim().length>0?a.trim():b},iI=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?1:Math.min(5,Math.max(.1,a))}return 1},jI=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?4:Math.min(10,
|
|
3
|
+
Math.max(1,a))}return 4},kI=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.15:Math.min(.5,Math.max(.05,a))}return.15},lI=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?40:Math.min(200,Math.max(10,a))}return 40},mI=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.8:Math.min(1,Math.max(0,a))):.8},nI=function(a){return a==null?!0:$APP.N("false",a.trim().toLowerCase())},
|
|
4
|
+
oI=function(a,b,c){return a+(b-a)*c},pI=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},rI=function(a,b){a=$APP.k(a,"__xNeuralColorCache");var c=$APP.k(a,b);if($APP.n(c))return c;qI.fillStyle="#000000";qI.fillStyle=b;c=qI.fillStyle;if(typeof c==="string"&&$APP.B.i(c[0],"#")){var d=c.substring(1);c=parseInt(d.substring(0,2),16);var e=parseInt(d.substring(2,4),16);d=parseInt(d.substring(4,6),16);c=[c/255,e/255,d/255]}else d=c.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/),
|
|
5
|
+
$APP.n(d)?(c=parseInt(d[1],10),e=parseInt(d[2],10),d=parseInt(d[3],10),c=[c/255,e/255,d/255]):c=[0,0,0];return a[b]=c},sI=function(a,b,c){b=a.createShader(b);a.shaderSource(b,c);a.compileShader(b);if($APP.n(a.getShaderParameter(b,a.COMPILE_STATUS)))return b;console.warn("x-neural-glow shader error:",a.getShaderInfoLog(b));a.deleteShader(b);return null},LI=function(a){a=$APP.zf([tI,uI,vI,wI,xI,yI,zI,AI,BI,CI],[a.getAttribute("rest-rate"),a.getAttribute("pulse-speed"),a.getAttribute("color-secondary"),
|
|
6
|
+
a.getAttribute("opacity"),a.getAttribute("orb-count"),a.getAttribute("orb-size"),a.getAttribute("color-background"),a.getAttribute("interactive"),a.getAttribute("color-primary"),a.getAttribute("connection-distance")]);var b=$APP.M(a);a=$APP.D(b,BI);var c=$APP.D(b,CI),d=$APP.D(b,tI),e=$APP.D(b,uI),g=$APP.D(b,wI),h=$APP.D(b,vI),l=$APP.D(b,xI),m=$APP.D(b,yI),p=$APP.D(b,zI);b=$APP.D(b,AI);return $APP.zf([DI,EI,FI,GI,$APP.Jl,HI,$APP.qi,II,JI,KI],[lI(m),gI(l),hI(a,"#4f8bff"),hI(h,"#00e5cc"),nI(b),kI(c),
|
|
7
|
+
mI(g),iI(e),hI(p,"#050a18"),jI(d)])},MI=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},OI=function(a,b,c){var d=$APP.k(a,"__xNeuralUniforms"),e=NI.g($APP.k(a,"__xNeuralRefs")),g=e.width,h=e.height,l=$APP.k(a,"__xNeuralTime"),m=$APP.k(a,"__xNeuralActivity");e=$APP.k(a,"__xNeuralOrbPos");var p=$APP.k(a,"__xNeuralOrbPhases"),q=EI.g(c),v=rI(a,FI.g(c)),x=rI(a,GI.g(c));a=rI(a,JI.g(c));b.uniform2f($APP.k(d,
|
|
8
|
+
"u_resolution"),g,h);b.uniform1f($APP.k(d,"u_time"),l);b.uniform1f($APP.k(d,"u_activity"),m);b.uniform1f($APP.k(d,"u_pulse_speed"),II.g(c));b.uniform1f($APP.k(d,"u_rest_rate"),KI.g(c));b.uniform1i($APP.k(d,"u_orb_count"),q);b.uniform1f($APP.k(d,"u_orb_size"),DI.g(c));b.uniform1f($APP.k(d,"u_connection_dist"),HI.g(c));b.uniform3f($APP.k(d,"u_color_primary"),v[0],v[1],v[2]);b.uniform3f($APP.k(d,"u_color_secondary"),x[0],x[1],x[2]);b.uniform3f($APP.k(d,"u_color_background"),a[0],a[1],a[2]);b.uniform1f($APP.k(d,
|
|
9
|
+
"u_opacity"),$APP.qi.g(c));for(c=0;;)if(c<q)g=e[c],b.uniform2f($APP.k(d,"u_orb_positions["+$APP.T.g(c)+"]"),g[0],g[1]),b.uniform1f($APP.k(d,"u_orb_phases["+$APP.T.g(c)+"]"),p[c]),c+=1;else break},QI=function(a){a.__xNeuralTime=0;$APP.ja(a,"__xNeuralLastFrame",performance.now());a.__xNeuralActivity=0;a.__xNeuralImpulse=0;$APP.ja(a,"__xNeuralRaf",requestAnimationFrame(function(){return PI(a)}))},RI=function(a){if($APP.n($APP.Jl.g($APP.k(a,"__xNeuralModel")))){var b=function(){var g=window.scrollY,h=
|
|
10
10
|
$APP.k(a,"__xNeuralLastScroll");a.__xNeuralLastScroll=g;h!=null&&(a.__xNeuralImpulse=Math.min(1,$APP.k(a,"__xNeuralImpulse")+Math.min(1,Math.abs(g-h)/100)));return null},c=function(g){var h=$APP.k(a,"__xNeuralLastPtr"),l=g.clientX;g=g.clientY;if($APP.n(h)){var m=l-$APP.k(h,"x"),p=g-$APP.k(h,"y");a.__xNeuralImpulse=Math.min(1,$APP.k(a,"__xNeuralImpulse")+Math.min(1,Math.sqrt(m*m+p*p)/50));h.x=l;h.y=g}else a.__xNeuralLastPtr={x:l,y:g};return null},d=function(){a.__xNeuralImpulse=Math.min(1,$APP.k(a,
|
|
11
|
-
"__xNeuralImpulse")+.3);return null},e={scroll:b,pointer:c,key:d};window.addEventListener("scroll",b,{passive:!0});window.addEventListener("pointermove",c,{passive:!0});window.addEventListener("keydown",d,{passive:!0});a.__xNeuralHandlers=e}return null},
|
|
12
|
-
b);a.__xNeuralHandlers=null}},
|
|
13
|
-
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorSecondary",{get:function(){var b=this.getAttribute("color-secondary");return
|
|
14
|
-
this.setAttribute("color-background",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"pulseSpeed",{get:function(){return
|
|
15
|
-
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"connectionDistance",{get:function(){return
|
|
16
|
-
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"opacity",{get:function(){return
|
|
17
|
-
configurable:!0})},
|
|
18
|
-
b:{d=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!1});d=$APP.n(d)?d:e.getContext("experimental-webgl",{alpha:!0,premultipliedAlpha:!1});if($APP.n(d)){var g=
|
|
11
|
+
"__xNeuralImpulse")+.3);return null},e={scroll:b,pointer:c,key:d};window.addEventListener("scroll",b,{passive:!0});window.addEventListener("pointermove",c,{passive:!0});window.addEventListener("keydown",d,{passive:!0});a.__xNeuralHandlers=e}return null},SI=function(a){var b=$APP.k(a,"__xNeuralHandlers");if($APP.n(b)){var c=$APP.k(b,"scroll");$APP.n(c)&&window.removeEventListener("scroll",c);c=$APP.k(b,"pointer");$APP.n(c)&&window.removeEventListener("pointermove",c);b=$APP.k(b,"key");$APP.n(b)&&window.removeEventListener("keydown",
|
|
12
|
+
b);a.__xNeuralHandlers=null}},TI=function(a){Object.defineProperty(a,"orbCount",{get:function(){return gI(this.getAttribute("orb-count"))},set:function(b){return b==null?this.removeAttribute("orb-count"):this.setAttribute("orb-count",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorPrimary",{get:function(){var b=this.getAttribute("color-primary");return hI(b,"#4f8bff")},set:function(b){return b==null?this.removeAttribute("color-primary"):this.setAttribute("color-primary",
|
|
13
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorSecondary",{get:function(){var b=this.getAttribute("color-secondary");return hI(b,"#00e5cc")},set:function(b){return b==null?this.removeAttribute("color-secondary"):this.setAttribute("color-secondary",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorBackground",{get:function(){var b=this.getAttribute("color-background");return hI(b,"#050a18")},set:function(b){return b==null?this.removeAttribute("color-background"):
|
|
14
|
+
this.setAttribute("color-background",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"pulseSpeed",{get:function(){return iI(this.getAttribute("pulse-speed"))},set:function(b){return b==null?this.removeAttribute("pulse-speed"):this.setAttribute("pulse-speed",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"restRate",{get:function(){return jI(this.getAttribute("rest-rate"))},set:function(b){return b==null?this.removeAttribute("rest-rate"):this.setAttribute("rest-rate",
|
|
15
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"connectionDistance",{get:function(){return kI(this.getAttribute("connection-distance"))},set:function(b){return b==null?this.removeAttribute("connection-distance"):this.setAttribute("connection-distance",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orbSize",{get:function(){return lI(this.getAttribute("orb-size"))},set:function(b){return b==null?this.removeAttribute("orb-size"):this.setAttribute("orb-size",
|
|
16
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"opacity",{get:function(){return mI(this.getAttribute("opacity"))},set:function(b){return b==null?this.removeAttribute("opacity"):this.setAttribute("opacity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return nI(this.getAttribute("interactive"))},set:function(b){return $APP.n(b)?this.removeAttribute("interactive"):this.setAttribute("interactive","false")},enumerable:!0,
|
|
17
|
+
configurable:!0})},YI=function(){var a=class extends HTMLElement{};a.observedAttributes=UI;a.prototype.connectedCallback=function(){var b=LI(this);this.__xNeuralModel=b;this.__xNeuralColorCache={};this.__xNeuralDriftTime=0;this.__xNeuralLastScroll=this.__xNeuralLastPtr=null;if(!$APP.n($APP.k(this,"__xNeuralRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("canvas");d.textContent=VI;e.setAttribute("part","canvas");c.appendChild(d);c.appendChild(e);
|
|
18
|
+
b:{d=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!1});d=$APP.n(d)?d:e.getContext("experimental-webgl",{alpha:!0,premultipliedAlpha:!1});if($APP.n(d)){var g=sI(d,d.VERTEX_SHADER,"attribute vec2 a_position;\nvoid main() {\n gl_Position \x3d vec4(a_position, 0.0, 1.0);\n}"),h=sI(d,d.FRAGMENT_SHADER,WI);if($APP.n($APP.n(g)?h:g)){var l=d.createProgram();d.attachShader(l,g);d.attachShader(l,h);d.linkProgram(l);$APP.n(d.getProgramParameter(l,d.LINK_STATUS))?g=l:(console.warn("x-neural-glow link error:",
|
|
19
19
|
d.getProgramInfoLog(l)),d.deleteProgram(l),g=null);if($APP.n(g)){d.useProgram(g);h=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,h);d.bufferData(d.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),d.STATIC_DRAW);h=d.getAttribLocation(g,"a_position");d.enableVertexAttribArray(h);d.vertexAttribPointer(h,2,d.FLOAT,!1,0,0);h={};l=$APP.t(new $APP.O(null,12,5,$APP.P,"u_resolution u_time u_activity u_pulse_speed u_rest_rate u_orb_count u_orb_size u_connection_dist u_color_primary u_color_secondary u_color_background u_opacity".split(" "),
|
|
20
20
|
null));for(var m=null,p=0,q=0;;)if(q<p){var v=m.F(null,q);h[v]=d.getUniformLocation(g,v);q+=1}else if(l=$APP.t(l))m=l,$APP.Nc(m)?(l=$APP.yb(m),q=$APP.zb(m),m=l,p=$APP.z(l),l=q):(l=$APP.u(m),h[l]=d.getUniformLocation(g,l),l=$APP.w(m),m=null,p=0),q=0;else break;for(l=0;;)if(l<50)m="u_orb_positions["+$APP.T.g(l)+"]",p="u_orb_phases["+$APP.T.g(l)+"]",h[m]=d.getUniformLocation(g,m),h[p]=d.getUniformLocation(g,p),l+=1;else break;this.__xNeuralUniforms=h;this.__xNeuralProgram=g;d.enable(d.BLEND);d.blendFunc(d.SRC_ALPHA,
|
|
21
|
-
d.ONE_MINUS_SRC_ALPHA);break b}}}d=null}this.__xNeuralRefs=new $APP.
|
|
22
|
-
|
|
23
|
-
e))if(e>g)for(e-=g,g=0;;)if(g<e){var l=Math.random(),m=Math.random();b.push([l,m]);d.push([l,m]);c.push(Math.random()*h);g+=1}else break;else b.length=e,d.length=e,c.length=e;
|
|
24
|
-
-2128794414),
|
|
25
|
-
new $APP.K(null,"interactive-raw","interactive-raw",1874525367),
|
|
26
|
-
"color-primary",1415907910),
|
|
27
|
-
$APP.zf([new $APP.K(null,"colorBackground","colorBackground",-167638842),$APP.lj,new $APP.K(null,"orbCount","orbCount",-2006864213),new $APP.K(null,"restRate","restRate",-272422548),new $APP.K(null,"colorPrimary","colorPrimary",-611817233),new $APP.K(null,"orbSize","orbSize",1744279571),$APP.qi,new $APP.K(null,"colorSecondary","colorSecondary",1906906102),new $APP.K(null,"pulseSpeed","pulseSpeed",1297932542),new $APP.K(null,"connectionDistance","connectionDistance",1241773439)],[new $APP.
|
|
28
|
-
[$APP.Z,$APP.Y],null),new $APP.
|
|
29
|
-
var
|
|
21
|
+
d.ONE_MINUS_SRC_ALPHA);break b}}}d=null}this.__xNeuralRefs=new $APP.Q(null,3,[$APP.Hi,c,NI,e,XI,d],null)}b=EI.g(b);c=[];for(e=0;;)if(e<b)c.push([Math.random(),Math.random()]),e+=1;else break;e=[];d=2*Math.PI;for(g=0;;)if(g<b)e.push(Math.random()*d),g+=1;else break;d=[];for(g=0;;)if(g<b)h=c[g],d.push([h[0],h[1]]),g+=1;else break;this.__xNeuralOrbBase=c;this.__xNeuralOrbPhases=e;this.__xNeuralOrbPos=d;this.setAttribute("aria-hidden","true");this.setAttribute("role","presentation");SI(this);RI(this);
|
|
22
|
+
QI(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xNeuralRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xNeuralRaf=null);SI(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xNeuralModel=b=LI(this),this.__xNeuralColorCache={},$APP.n($APP.k(this,"__xNeuralRefs")))){var e=EI.g(b);b=$APP.k(this,"__xNeuralOrbBase");c=$APP.k(this,"__xNeuralOrbPhases");d=$APP.k(this,"__xNeuralOrbPos");var g=b.length,h=2*Math.PI;if($APP.N(g,
|
|
23
|
+
e))if(e>g)for(e-=g,g=0;;)if(g<e){var l=Math.random(),m=Math.random();b.push([l,m]);d.push([l,m]);c.push(Math.random()*h);g+=1}else break;else b.length=e,d.length=e,c.length=e;SI(this);return $APP.n(this.isConnected)?RI(this):null}return null};TI(a.prototype);return a},ZI=function(){$APP.n(customElements.get("x-neural-glow"))||customElements.define("x-neural-glow",YI());return null},wI=new $APP.K(null,"opacity-raw","opacity-raw",-1373906448),HI=new $APP.K(null,"connection-distance","connection-distance",
|
|
24
|
+
-2128794414),uI=new $APP.K(null,"pulse-speed-raw","pulse-speed-raw",-665433726),BI=new $APP.K(null,"color-primary-raw","color-primary-raw",392476156),JI=new $APP.K(null,"color-background","color-background",1347240536),II=new $APP.K(null,"pulse-speed","pulse-speed",828613109),vI=new $APP.K(null,"color-secondary-raw","color-secondary-raw",1212293328),xI=new $APP.K(null,"orb-count-raw","orb-count-raw",-930142286),CI=new $APP.K(null,"connection-distance-raw","connection-distance-raw",1368898143),AI=
|
|
25
|
+
new $APP.K(null,"interactive-raw","interactive-raw",1874525367),KI=new $APP.K(null,"rest-rate","rest-rate",1350607737),GI=new $APP.K(null,"color-secondary","color-secondary",-556141879),XI=new $APP.K(null,"gl","gl",-246422634),DI=new $APP.K(null,"orb-size","orb-size",83267072),yI=new $APP.K(null,"orb-size-raw","orb-size-raw",925656307),EI=new $APP.K(null,"orb-count","orb-count",1055126048),zI=new $APP.K(null,"color-background-raw","color-background-raw",2063778805),FI=new $APP.K(null,"color-primary",
|
|
26
|
+
"color-primary",1415907910),NI=new $APP.K(null,"canvas","canvas",-1798817489),tI=new $APP.K(null,"rest-rate-raw","rest-rate-raw",-206808800);var UI="orb-count color-primary color-secondary color-background pulse-speed rest-rate connection-distance orb-size opacity interactive".split(" ");
|
|
27
|
+
$APP.zf([new $APP.K(null,"colorBackground","colorBackground",-167638842),$APP.lj,new $APP.K(null,"orbCount","orbCount",-2006864213),new $APP.K(null,"restRate","restRate",-272422548),new $APP.K(null,"colorPrimary","colorPrimary",-611817233),new $APP.K(null,"orbSize","orbSize",1744279571),$APP.qi,new $APP.K(null,"colorSecondary","colorSecondary",1906906102),new $APP.K(null,"pulseSpeed","pulseSpeed",1297932542),new $APP.K(null,"connectionDistance","connectionDistance",1241773439)],[new $APP.Q(null,1,
|
|
28
|
+
[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],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),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),new $APP.Q(null,1,[$APP.Z,$APP.W],null)]);
|
|
29
|
+
var WI="precision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_activity;\nuniform float u_pulse_speed;\nuniform float u_rest_rate;\nuniform int u_orb_count;\nuniform vec2 u_orb_positions["+$APP.T.g(50)+"];\nuniform float u_orb_phases["+$APP.T.g(50)+"];\nuniform float u_orb_size;\nuniform float u_connection_dist;\nuniform vec3 u_color_primary;\nuniform vec3 u_color_secondary;\nuniform vec3 u_color_background;\nuniform float u_opacity;\n\nfloat distToSegment(vec2 p, vec2 a, vec2 b) {\n vec2 pa \x3d p - a;\n vec2 ba \x3d b - a;\n float t \x3d clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0);\n return length(pa - ba * t);\n}\n\nvoid main() {\n vec2 uv \x3d gl_FragCoord.xy / u_resolution;\n float aspect \x3d u_resolution.x / u_resolution.y;\n\n // Auto-detect light vs dark background\n float bg_lum \x3d dot(u_color_background, vec3(0.2126, 0.7152, 0.0722));\n float is_light \x3d smoothstep(0.3, 0.6, bg_lum);\n\n // Pulse speed interpolates between rest and active rate\n float active_speed \x3d u_pulse_speed * 3.0;\n float speed \x3d mix(6.2831853 / u_rest_rate, active_speed, u_activity);\n\n // Start with background\n vec3 color \x3d u_color_background;\n\n // Orb glow layer\n float radius \x3d u_orb_size / min(u_resolution.x, u_resolution.y);\n float softness \x3d 2.5;\n\n for (int i \x3d 0; i \x3c "+
|
|
30
30
|
$APP.T.g(50)+"; i++) {\n if (i \x3e\x3d u_orb_count) break;\n\n vec2 orbPos \x3d u_orb_positions[i];\n vec2 diff \x3d uv - orbPos;\n diff.x *\x3d aspect;\n\n float dist \x3d length(diff);\n float pulse \x3d 0.5 + 0.5 * sin(u_time * speed + u_orb_phases[i]);\n float glow_strength \x3d (0.4 + 0.6 * pulse) * (0.5 + 0.5 * u_activity + 0.5);\n float glow \x3d exp(-dist * dist / (radius * radius * softness)) * glow_strength;\n\n // Alternate primary/secondary by index\n vec3 orb_color \x3d mix(u_color_primary, u_color_secondary, step(1.0, mod(float(i), 2.0)));\n vec3 additive \x3d color + orb_color * glow;\n vec3 multiply \x3d color * mix(vec3(1.0), orb_color, glow);\n color \x3d mix(additive, multiply, is_light);\n }\n\n // Connection line layer\n float line_width \x3d 0.003;\n for (int i \x3d 0; i \x3c "+
|
|
31
|
-
$APP.T.g(50)+"; i++) {\n if (i \x3e\x3d u_orb_count) break;\n for (int j \x3d 0; j \x3c "+$APP.T.g(50)+"; j++) {\n if (j \x3e\x3d u_orb_count) break;\n if (j \x3c\x3d i) continue;\n\n vec2 pi_pos \x3d u_orb_positions[i];\n vec2 pj_pos \x3d u_orb_positions[j];\n\n vec2 diff_ij \x3d pi_pos - pj_pos;\n diff_ij.x *\x3d aspect;\n float orb_dist \x3d length(diff_ij);\n\n if (orb_dist \x3c u_connection_dist) {\n vec2 uv_a \x3d vec2(uv.x * aspect, uv.y);\n vec2 pa \x3d vec2(pi_pos.x * aspect, pi_pos.y);\n vec2 pb \x3d vec2(pj_pos.x * aspect, pj_pos.y);\n\n float d \x3d distToSegment(uv_a, pa, pb);\n float fade \x3d 1.0 - (orb_dist / u_connection_dist);\n float avg_phase \x3d (u_orb_phases[i] + u_orb_phases[j]) * 0.5;\n float line_pulse \x3d 0.3 + 0.7 * sin(u_time * speed + avg_phase);\n float line_glow \x3d exp(-d * d / (line_width * line_width)) * fade * line_pulse;\n line_glow *\x3d (0.3 + 0.7 * u_activity + 0.3);\n\n vec3 line_color \x3d mix(u_color_primary, u_color_secondary, 0.5);\n float line_str \x3d line_glow * 0.4;\n vec3 line_add \x3d color + line_color * line_str;\n vec3 line_mul \x3d color * mix(vec3(1.0), line_color, line_str);\n color \x3d mix(line_add, line_mul, is_light);\n }\n }\n }\n\n gl_FragColor \x3d vec4(color, u_opacity);\n}";var
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
$APP.k(a,"__xNeuralOrbPos"),m=
|
|
35
|
-
m,c.height=h,d.viewport(0,0,m,h);g>0&&l>0&&(
|
|
31
|
+
$APP.T.g(50)+"; i++) {\n if (i \x3e\x3d u_orb_count) break;\n for (int j \x3d 0; j \x3c "+$APP.T.g(50)+"; j++) {\n if (j \x3e\x3d u_orb_count) break;\n if (j \x3c\x3d i) continue;\n\n vec2 pi_pos \x3d u_orb_positions[i];\n vec2 pj_pos \x3d u_orb_positions[j];\n\n vec2 diff_ij \x3d pi_pos - pj_pos;\n diff_ij.x *\x3d aspect;\n float orb_dist \x3d length(diff_ij);\n\n if (orb_dist \x3c u_connection_dist) {\n vec2 uv_a \x3d vec2(uv.x * aspect, uv.y);\n vec2 pa \x3d vec2(pi_pos.x * aspect, pi_pos.y);\n vec2 pb \x3d vec2(pj_pos.x * aspect, pj_pos.y);\n\n float d \x3d distToSegment(uv_a, pa, pb);\n float fade \x3d 1.0 - (orb_dist / u_connection_dist);\n float avg_phase \x3d (u_orb_phases[i] + u_orb_phases[j]) * 0.5;\n float line_pulse \x3d 0.3 + 0.7 * sin(u_time * speed + avg_phase);\n float line_glow \x3d exp(-d * d / (line_width * line_width)) * fade * line_pulse;\n line_glow *\x3d (0.3 + 0.7 * u_activity + 0.3);\n\n vec3 line_color \x3d mix(u_color_primary, u_color_secondary, 0.5);\n float line_str \x3d line_glow * 0.4;\n vec3 line_add \x3d color + line_color * line_str;\n vec3 line_mul \x3d color * mix(vec3(1.0), line_color, line_str);\n color \x3d mix(line_add, line_mul, is_light);\n }\n }\n }\n\n gl_FragColor \x3d vec4(color, u_opacity);\n}";var VI=":host{display:block;position:relative;width:100%;height:100%;min-height:200px;overflow:hidden;z-index:var("+$APP.T.g("--x-neural-glow-z-index")+",0);inset:var("+$APP.T.g("--x-neural-glow-inset")+",auto);}canvas{display:block;width:100%;height:100%;opacity:var("+$APP.T.g("--x-neural-glow-opacity")+",0.8);mix-blend-mode:var("+$APP.T.g("--x-neural-glow-blend-mode")+",normal);}@media(prefers-reduced-motion:reduce){canvas{opacity:var("+$APP.T.g("--x-neural-glow-opacity")+",0.6);}}",qI,$I=document.createElement("canvas");
|
|
32
|
+
$I.width=1;$I.height=1;qI=$I.getContext("2d");
|
|
33
|
+
var PI=function PI(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xNeuralRefs"),d=XI.g(c);if($APP.n(d)){c=NI.g(c);var e=$APP.k(a,"__xNeuralModel"),g=performance.now(),h=Math.min((g-$APP.k(a,"__xNeuralLastFrame"))/1E3,.1);a.__xNeuralLastFrame=g;pI()||(a.__xNeuralTime=$APP.k(a,"__xNeuralTime")+h);g=$APP.k(a,"__xNeuralImpulse");a.__xNeuralActivity=oI($APP.k(a,"__xNeuralActivity"),g>.01?1:0,Math.min(1,(g>.01?8:2)*h));a.__xNeuralImpulse=g*Math.max(0,1-5*h);if(!pI()){g=$APP.k(a,"__xNeuralOrbBase");var l=
|
|
34
|
+
$APP.k(a,"__xNeuralOrbPos"),m=EI.g(e);h=$APP.k(a,"__xNeuralDriftTime")+h*(.3+.7*$APP.k(a,"__xNeuralActivity"));a.__xNeuralDriftTime=h;for(var p=0;;)if(p<m){var q=g[p],v=q[0],x=q[1];q=v*3+p*1.37;var y=x*3+p*2.41;x=Math.min(1,Math.max(0,x+MI(y+100,q,h)*.08));var A=l[p];A[0]=Math.min(1,Math.max(0,v+MI(q,y,h)*.08));A[1]=x;p+=1}else break}h=Math.min(2,devicePixelRatio);g=a.clientWidth;l=a.clientHeight;m=Math.max(1,Math.floor(g*h));h=Math.max(1,Math.floor(l*h));if($APP.N(c.width,m)||$APP.N(c.height,h))c.width=
|
|
35
|
+
m,c.height=h,d.viewport(0,0,m,h);g>0&&l>0&&(OI(a,d,e),d.drawArrays(d.TRIANGLE_STRIP,0,4))}$APP.ja(a,"__xNeuralRaf",requestAnimationFrame(function(){return PI.g?PI.g(a):PI.call(null,a)}))}return null};$APP.ha("baredom.exports.x_neural_glow.init",ZI);export const init=ZI;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},
|
|
4
|
-
g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;
|
|
5
|
-
"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},
|
|
6
|
-
"icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);
|
|
7
|
-
"position",{get:function(){return
|
|
8
|
-
return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},
|
|
9
|
-
a.prototype.push=function(b){return
|
|
10
|
-
return null};var
|
|
11
|
-
$APP.Pd(["x-notification-center-push",new $APP.
|
|
2
|
+
var xo=function(a){return typeof a==="string"&&$APP.I(wo,a.toLowerCase())?a.toLowerCase():"top-right"},yo=function(a){if(a==null)return 5;a=parseInt(""+$APP.T.g(a),10);return typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:5},zo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
|
|
3
|
+
d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},Ao=function(a){var b=a.getAttribute("position");b=xo(b);a.setAttribute("data-position",b)},Bo=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}))},Co=function(a){function b(d){var e=zo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");
|
|
4
|
+
g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;Bo(a,"x-notification-center-dismiss",new $APP.Q(null,5,[$APP.zl,e,$APP.Z,$APP.n(h)?h:"info",$APP.Qi,$APP.n(l)?l:"",$APP.Cl,$APP.n(d)?d:"",$APP.Rh,g],null));g===0&&Bo(a,"x-notification-center-empty",$APP.Qd);return null}var c=zo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Do=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,
|
|
5
|
+
"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Fo=function(a,b){var c=zo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var q=$APP.k(a,"__xNcMax");return $APP.n(q)?q:5}()){var d=document.createElement("x-alert"),e=function(){var q=$APP.k(b,"id");$APP.n(q)||(q=Eo.v,Eo.v=q+1,q="xnc-"+$APP.T.g(q));return q}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,
|
|
6
|
+
"icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);Bo(a,"x-notification-center-push",new $APP.Q(null,2,[$APP.zl,e,$APP.Rh,c.querySelectorAll("x-alert").length],null));return e}return null},Go=function(a){Object.defineProperty(a,
|
|
7
|
+
"position",{get:function(){return xo(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return yo(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.T.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");
|
|
8
|
+
return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},Io=function(){var a=class extends HTMLElement{};a.observedAttributes=Ho;a.prototype.connectedCallback=function(){zo(this);Do(this);Co(this);Ao(this);return null};a.prototype.disconnectedCallback=function(){Do(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.B.i(b,"position")?Ao(this):$APP.B.i(b,"max")&&(this.__xNcMax=yo(this.getAttribute("max")));return null};Go(a.prototype);
|
|
9
|
+
a.prototype.push=function(b){return Fo(this,b)};a.prototype.clear=function(){var b=zo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),e=$APP.zb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null};return a},Jo=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Io());
|
|
10
|
+
return null};var Ho=["position","max"],wo=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
|
|
11
|
+
$APP.Pd(["x-notification-center-push",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.zl,$APP.Y,$APP.Rh,$APP.W],null),$APP.lm,!1],null),"x-notification-center-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.zl,$APP.Y,$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Cl,$APP.Y,$APP.Rh,$APP.W],null),$APP.lm,!1],null),"x-notification-center-empty",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null)]);var Eo={v:0};$APP.ha("baredom.exports.x_notification_center.init",Jo);export const init=Jo;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.Yg);var g=$APP.D(c,
|
|
4
|
-
p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=
|
|
5
|
-
var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=q.length,x<e)for(x=e-x,A=0;;)if(A<x){var C=document.createElementNS("http://www.w3.org/2000/svg","path");y.appendChild(C);q.push(C);A+=1}else break a;else if(x>e)for(x-=e,A=0;;)if(A<x)C=q.pop(),y.removeChild(C),A+=1;else break a;for(y=0;;)if(y<e){x=q[y];A=$APP.pc(d,y);C=$APP.M(A);A=$APP.D(C,
|
|
2
|
+
var VS=function(a){return typeof a==="string"&&$APP.I(US,a)?a:"wave"},YS=function(a){return $APP.ge(function(b){return new $APP.Q(null,2,[WS,b*20,XS,b*8],null)},$APP.dg(0,a))},hT=function(a){var b=new $APP.Q(null,7,[$APP.kk,a.getAttribute("shape"),$APP.fj,a.getAttribute("layers"),$APP.Yg,a.getAttribute("height"),ZS,a.getAttribute("flip"),$S,a.getAttribute("mirror"),$APP.Wg,a.getAttribute("animation"),$APP.Zk,a.getAttribute("path")],null);var c=$APP.M(b),d=$APP.D(c,$APP.kk),e=$APP.D(c,$APP.fj);b=$APP.D(c,
|
|
3
|
+
$APP.Yg);var g=$APP.D(c,ZS),h=$APP.D(c,$S),l=$APP.D(c,$APP.Wg);c=$APP.D(c,$APP.Zk);typeof c==="string"?(c=$APP.Fg(c,aT).trim(),c=$APP.N(c,"")?c:null):c=null;d=VS(d);e=typeof e==="string"?parseInt(e,10):null;var m=e==null;m||(m=isNaN(e),m=$APP.n(m)?m:e<1);e=$APP.n(m)?1:e>5?5:e;var p=typeof l==="string"&&$APP.I(bT,l)?l:"none";l=c!=null?c:$APP.ie(cT,new $APP.O(null,2,5,$APP.P,[VS(d),$APP.Zk],null));m=c==null?$APP.ie(cT,new $APP.O(null,2,5,$APP.P,[VS(d),dT],null)):null;var q=c!=null?c:$APP.D(eT,VS(d));
|
|
4
|
+
p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=YS(e);h=h!=null;b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():"120px";b=$APP.zf([$APP.Zk,$APP.Sj,$APP.Wg,ZS,fT,dT,$APP.kk,$APP.fj,$S,$APP.Yg,gT],[c,l,p,g,v,m,d,e,h,b,q]);e=$APP.M(b);b=$APP.D(e,$S);h=$APP.D(e,$APP.Yg);v=$APP.D(e,gT);var x=$APP.D(e,$APP.Sj);c=$APP.D(e,$APP.Wg);g=$APP.D(e,ZS);d=$APP.D(e,fT);l=$APP.D(e,dT);e=$APP.D(e,$APP.fj);m=$APP.k(a,"__xOrganicDividerBase");var y=$APP.k(a,"__xOrganicDividerSvg");q=$APP.k(a,"__xOrganicDividerPaths");
|
|
5
|
+
var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=q.length,x<e)for(x=e-x,A=0;;)if(A<x){var C=document.createElementNS("http://www.w3.org/2000/svg","path");y.appendChild(C);q.push(C);A+=1}else break a;else if(x>e)for(x-=e,A=0;;)if(A<x)C=q.pop(),y.removeChild(C),A+=1;else break a;for(y=0;;)if(y<e){x=q[y];A=$APP.pc(d,y);C=$APP.M(A);A=$APP.D(C,WS);C=$APP.D(C,XS);var E=y+1;x.setAttribute("d",v);x.setAttribute("fill","var(--x-organic-divider-color-"+
|
|
6
6
|
$APP.T.g(E)+")");x.setAttribute("opacity",""+$APP.T.g(e<=1?1:.3+y/(e-1)*.7));A>0||C>0?x.setAttribute("transform","translate("+$APP.T.g(A)+","+$APP.T.g(C)+")"):x.removeAttribute("transform");p&&(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.T.g(v)+'")'),$APP.n(l)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.T.g(l)+'")'));p||(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));y+=1}else break;m.style.setProperty("height",
|
|
7
|
-
h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},
|
|
7
|
+
h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},iT=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"wave"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});
|
|
8
8
|
Object.defineProperty(a,"layers",{get:function(){var b=this.getAttribute("layers");return $APP.n(b)?b:"1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("layers",b):this.removeAttribute("layers")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
|
|
9
9
|
configurable:!0});Object.defineProperty(a,"flip",{get:function(){return this.hasAttribute("flip")},set:function(b){return $APP.n(b)?this.setAttribute("flip",""):this.removeAttribute("flip")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mirror",{get:function(){return this.hasAttribute("mirror")},set:function(b){return $APP.n(b)?this.setAttribute("mirror",""):this.removeAttribute("mirror")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");
|
|
10
|
-
return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},
|
|
10
|
+
return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},kT=function(){var a=class extends HTMLElement{};a.observedAttributes=jT;a.prototype.connectedCallback=
|
|
11
11
|
function(){if(!$APP.n($APP.k(this,"__xOrganicDividerInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;line-height:0;font-size:0;overflow:hidden;--x-organic-divider-color:var(--x-color-primary,#6366f1);--x-organic-divider-color-1:color-mix(in srgb,var(--x-organic-divider-color) 15%,transparent);--x-organic-divider-color-2:color-mix(in srgb,var(--x-organic-divider-color) 25%,transparent);--x-organic-divider-color-3:color-mix(in srgb,var(--x-organic-divider-color) 40%,transparent);--x-organic-divider-color-4:color-mix(in srgb,var(--x-organic-divider-color) 60%,transparent);--x-organic-divider-color-5:color-mix(in srgb,var(--x-organic-divider-color) 85%,transparent);--x-organic-divider-height:120px;--x-organic-divider-animate-duration:6s;--x-organic-divider-animate-timing:ease-in-out;}@media (prefers-color-scheme:dark){:host{--x-organic-divider-color:var(--x-color-primary,#818cf8);}}[part\x3dbase]{width:100%;position:relative;overflow:hidden;}[part\x3dbase] svg{display:block;width:100%;height:100%;}:host([data-flip]) [part\x3dbase]{transform:scaleY(-1);}:host([data-mirror]) [part\x3dbase]{transform:scaleX(-1);}:host([data-flip][data-mirror]) [part\x3dbase]{transform:scaleX(-1) scaleY(-1);}@keyframes x-organic-divider-drift{0%{transform:translateX(0);}100%{transform:translateX(-33.333%);}}:host([data-animation\x3ddrift]) [part\x3dbase] svg{width:150%;animation:x-organic-divider-drift var(--x-organic-divider-animate-duration) linear infinite;}@keyframes x-organic-divider-morph{0%,100%{d:var(--x-organic-divider-d);}50%{d:var(--x-organic-divider-d-alt);}}:host([data-animation\x3dmorph]) [part\x3dbase] path{animation:x-organic-divider-morph var(--x-organic-divider-animate-duration) var(--x-organic-divider-animate-timing) infinite;}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dbase] svg,:host([data-animation]) [part\x3dbase] path{animation:none;}}";
|
|
12
|
-
d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.setAttribute("role","presentation");this.setAttribute("aria-hidden","true");this.__xOrganicDividerBase=d;this.__xOrganicDividerSvg=e;this.__xOrganicDividerPaths=[];this.__xOrganicDividerInit=!0}
|
|
13
|
-
function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicDividerInit"))&&
|
|
14
|
-
"y-offset","y-offset",-1716542),
|
|
15
|
-
null),"waves",new $APP.
|
|
16
|
-
null),"mountain",new $APP.
|
|
17
|
-
|
|
18
|
-
[$APP.
|
|
19
|
-
|
|
20
|
-
null);$APP.ha("baredom.exports.x_organic_divider.init",
|
|
12
|
+
d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.setAttribute("role","presentation");this.setAttribute("aria-hidden","true");this.__xOrganicDividerBase=d;this.__xOrganicDividerSvg=e;this.__xOrganicDividerPaths=[];this.__xOrganicDividerInit=!0}hT(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=
|
|
13
|
+
function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicDividerInit"))&&hT(this);return null};iT(a.prototype);return a},lT=function(){$APP.n(customElements.get("x-organic-divider"))||customElements.define("x-organic-divider",kT());return null},aT=/[^MmLlHhVvCcSsQqTtAaZz0-9\s,.\-+eE]/,ZS=new $APP.K(null,"flip","flip",2033871302),fT=new $APP.K(null,"transforms","transforms",793344554),WS=new $APP.K(null,"x-offset","x-offset",-1499732449),dT=new $APP.K(null,"path-alt","path-alt",1724994068),XS=new $APP.K(null,
|
|
14
|
+
"y-offset","y-offset",-1716542),gT=new $APP.K(null,"drift-d","drift-d",-1241526977),$S=new $APP.K(null,"mirror","mirror",1914600218);var jT="shape layers height flip mirror animation path".split(" "),bT=new $APP.S(null,new $APP.Q(null,3,["none",null,"drift",null,"morph",null],null),null),US=new $APP.S(null,new $APP.Q(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),cT=new $APP.Q(null,8,["wave",new $APP.Q(null,2,[$APP.Zk,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",dT,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
|
|
15
|
+
null),"waves",new $APP.Q(null,2,[$APP.Zk,"M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 L1200,120 L0,120 Z",dT,"M0,55 C150,15 300,85 450,50 C600,10 750,80 900,35 C1050,5 1150,75 1200,40 L1200,120 L0,120 Z"],null),"blob-edge",new $APP.Q(null,2,[$APP.Zk,"M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 L1200,120 L0,120 Z",dT,"M0,40 C80,65 160,25 240,60 C320,80 400,20 500,45 C600,70 680,15 780,55 C880,75 960,10 1060,35 C1120,55 1180,30 1200,55 L1200,120 L0,120 Z"],
|
|
16
|
+
null),"mountain",new $APP.Q(null,2,[$APP.Zk,"M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1200,60 L1200,120 L0,120 Z",dT,"M0,80 C100,80 200,45 350,45 C500,45 450,75 600,75 C750,75 700,30 850,30 C1000,30 950,70 1100,70 C1150,70 1200,50 1200,50 L1200,120 L0,120 Z"],null),"drip",new $APP.Q(null,2,[$APP.Zk,"M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 L1200,120 L0,120 Z",
|
|
17
|
+
dT,"M0,20 C50,20 100,20 170,20 C195,20 205,55 220,72 C235,90 245,90 260,72 C275,55 285,20 310,20 L470,20 C495,20 505,45 520,62 C535,80 545,80 560,62 C575,45 585,20 610,20 L820,20 C845,20 855,65 870,85 C885,105 895,105 910,85 C925,65 935,20 960,20 L1200,20 L1200,120 L0,120 Z"],null),"slant",new $APP.Q(null,2,[$APP.Zk,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",dT,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.Q(null,2,
|
|
18
|
+
[$APP.Zk,"M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 L1200,120 L0,120 Z",dT,"M0,50 Q75,110 150,50 Q225,-10 300,50 Q375,110 450,50 Q525,-10 600,50 Q675,110 750,50 Q825,-10 900,50 Q975,110 1050,50 Q1125,-10 1200,50 L1200,120 L0,120 Z"],null),"cloud",new $APP.Q(null,2,[$APP.Zk,"M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 L1200,120 L0,120 Z",
|
|
19
|
+
dT,"M0,70 C50,70 80,50 140,50 C180,50 200,70 220,70 C240,70 260,30 320,30 C380,30 400,60 440,60 C480,60 500,20 560,20 C620,20 640,50 700,50 C760,50 780,35 840,35 C900,35 920,65 960,65 C1000,65 1040,40 1100,40 C1140,40 1180,70 1200,70 L1200,120 L0,120 Z"],null)],null),eT=new $APP.Q(null,8,"wave;M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 C1400,20 1600,100 1800,60 L1800,120 L0,120 Z;waves;M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 C1350,80 1500,0 1650,40 C1800,80 1800,50 1800,50 L1800,120 L0,120 Z;blob-edge;M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 C1280,30 1360,70 1440,45 C1520,20 1600,80 1700,55 C1800,30 1800,50 1800,50 L1800,120 L0,120 Z;mountain;M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1300,60 C1400,60 1400,30 1500,30 C1600,30 1550,80 1700,80 C1750,80 1800,60 1800,60 L1800,120 L0,120 Z;drip;M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 C1225,20 1235,60 1250,80 C1265,100 1275,100 1290,80 C1305,60 1315,20 1340,20 L1500,20 C1525,20 1535,50 1550,70 C1565,90 1575,90 1590,70 C1605,50 1615,20 1640,20 L1800,20 L1800,120 L0,120 Z;slant;M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 C1300,2 1500,90 1800,100 L1800,120 L0,120 Z;scallop;M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 Q1275,0 1350,60 Q1425,120 1500,60 Q1575,0 1650,60 Q1725,120 1800,60 L1800,120 L0,120 Z;cloud;M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 C1240,60 1260,20 1320,20 C1380,20 1400,50 1440,50 C1480,50 1500,10 1560,10 C1620,10 1640,40 1700,40 C1760,40 1780,60 1800,60 L1800,120 L0,120 Z".split(";"),
|
|
20
|
+
null);$APP.ha("baredom.exports.x_organic_divider.init",lT);export const init=lT;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"number"&&$APP.r(isNaN(a))&&a>0?a:42):42},
|
|
4
|
-
l=g>h?1:0,m=g>h?0:1,p=g+-l-
|
|
5
|
-
c){var d=[],e=[];c=
|
|
6
|
-
g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var
|
|
7
|
-
return $APP.Rc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},
|
|
8
|
-
"key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.k(q,"cx");p=$APP.k(q,"cy");q=Math.min(2,Math.floor($APP.k(q,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=
|
|
9
|
-
b*d,b]},
|
|
10
|
-
c=
|
|
2
|
+
var F4=function(a){return typeof a==="string"&&(a=a.trim(),$APP.N(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},H4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(G4,a)?a:"vine"},I4=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},K4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(J4,a)?a:"normal"},L4=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
|
|
3
|
+
"number"&&$APP.r(isNaN(a))&&a>0?a:42):42},M4=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},N4=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},O4=function(a){a=(typeof a==="number"&&$APP.r(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},P4=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},U4=function(a,b){var c=(a+b)*Q4,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*R4,g=a-(d-e),h=b-(c-e),
|
|
4
|
+
l=g>h?1:0,m=g>h?0:1,p=g+-l-R4,q=h+-m-R4,v=g+-1-2*R4,x=h+-1-2*R4,y=d&255,A=c&255,C=.5-g*g-h*h,E=.5-p*p-q*q,H=.5-v*v-x*x;return 70*((C<0?0:function(){var G=C*C,J=S4[T4[y+T4[A&255]&255]&11];return G*G*(J[0]*g+J[1]*h)}())+(E<0?0:function(){var G=E*E,J=S4[T4[y+l+T4[A+m&255]&255]&11];return G*G*(J[0]*p+J[1]*q)}())+(H<0?0:function(){var G=H*H,J=S4[T4[y+1+T4[A+1&255]&255]&11];return G*G*(J[0]*v+J[1]*x)}()))},V4=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return U4(d+b,e+c)}},W4=function(a,b,
|
|
5
|
+
c){var d=[],e=[];c=O4(c);for(var g=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var p=h[0],q=h[1],v=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*P4(c)),C=function(){var H=y*.3;var G=x*.5;H=b.i?b.i(H,G):b.call(null,H,G);return v+.15*H}(),E=p+A*Math.cos(C);A=q+A*Math.sin(C);d.push({x1:p,y1:q,x2:E,y2:A,depth:x,index:y});h[0]=E;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.i?b.i(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
|
|
6
|
+
g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var R=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(R*R+G*G)});return[d,d.length]},X4=function(a,b,c,d){a=""+$APP.T.g(a.toFixed(1))+","+$APP.T.g(b.toFixed(1));c=""+$APP.T.g(c.toFixed(1))+","+$APP.T.g(d.toFixed(1));
|
|
7
|
+
return $APP.Rc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},Z4=function(a,b){b=$APP.Bc(Y4,b,25);var c=O4(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,q=$APP.Ud(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+q;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+P4(c)*.3*l;a.push({cx:p,cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,G){return $APP.k(H,
|
|
8
|
+
"key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.k(q,"cx");p=$APP.k(q,"cy");q=Math.min(2,Math.floor($APP.k(q,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=X4(x,y,A,C);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:q,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},$4=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
|
|
9
|
+
b*d,b]},a5=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},h5=function(a){a=new $APP.Q(null,7,[$APP.fk,a.getAttribute("progress"),$APP.ul,a.getAttribute("variant"),$APP.gn,a.getAttribute("color"),b5,a.getAttribute("bloom"),c5,a.getAttribute("density"),d5,a.getAttribute("seed"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.fk);a=$APP.D(b,$APP.ul);var d=$APP.D(b,$APP.gn),e=$APP.D(b,b5),g=$APP.D(b,c5),h=$APP.D(b,d5);b=$APP.D(b,$APP.pi);
|
|
10
|
+
c=F4(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.$l,$APP.Oj,$APP.Vg,e5,f5,$APP.Zm,$APP.U,$APP.Nl,$APP.ll,$APP.cm,g5],[l,N4(d),H4(a),I4(e),L4(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",M4(b),m,p,c,K4(g)])},i5=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},k5=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,j5);d=function(){var y=
|
|
11
11
|
$APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],q=$APP.k(p,"y1"),v=$APP.k(p,"x2"),x=$APP.k(p,"y2");m.setAttribute("x1",""+$APP.T.g($APP.k(p,"x1")));m.setAttribute("y1",""+$APP.T.g(q));m.setAttribute("x2",""+$APP.T.g(v));m.setAttribute("y2",""+$APP.T.g(x));m.setAttribute("opacity",
|
|
12
|
-
"0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},
|
|
13
|
-
","+$APP.T.g(g?"#a5b4fc":"#16a34a")+")";a=
|
|
14
|
-
""+$APP.T.g(Math.max(.5,a-p*.6)));e.style.stroke=q;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");g+=1}else break},
|
|
15
|
-
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},
|
|
16
|
-
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*
|
|
17
|
-
0},
|
|
18
|
-
"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.T.g(b*2.5));g.setAttribute("opacity",""+$APP.T.g(c));g.setAttribute("transform","translate("+$APP.T.g(h)+","+$APP.T.g(l)+")");e+=1}else break},
|
|
19
|
-
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return
|
|
20
|
-
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.
|
|
21
|
-
"progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.
|
|
22
|
-
"honeycomb");d=$APP.Bc(
|
|
23
|
-
($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.r(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,
|
|
24
|
-
|
|
25
|
-
"color",{get:function(){return
|
|
26
|
-
set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return
|
|
27
|
-
this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},
|
|
28
|
-
"g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=
|
|
12
|
+
"0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},l5=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),g=$APP.B.i($APP.Vg.g(e),"honeycomb");e=$APP.Oj.g(e);var h=$APP.n(e)?e:"var("+$APP.T.g("--x-organic-progress-color-primary")+","+$APP.T.g(g?"#818cf8":"#22c55e")+")",l="var("+$APP.T.g("--x-organic-progress-color-secondary")+
|
|
13
|
+
","+$APP.T.g(g?"#a5b4fc":"#16a34a")+")";a=i5(a,g?1.5:3);if(g)for(g=0;;)if(g<d){e=b[g];var m=$APP.k(c[g],"depth");e.setAttribute("stroke-width",""+$APP.T.g(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());g+=1}else break;else for(g=0;;)if(g<d){e=b[g];var p=$APP.k(c[g],"depth"),q=p===0?h:l;e.setAttribute("stroke-width",
|
|
14
|
+
""+$APP.T.g(Math.max(.5,a-p*.6)));e.style.stroke=q;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");g+=1}else break},m5=function(a){var b=$APP.k(a,"__xOrganicProgressSPos"),c=$APP.k(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.k(a,"__xOrganicProgressPV"),g=$APP.k(a,"__xOrganicProgressLines");if($APP.N(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=g[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.k(a,"__xOrganicProgressNodes");
|
|
15
|
+
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},o5=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,n5);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.T.g("--x-organic-progress-bloom-color")+",#f472b6)";e=O4(f5.g(e)+7);for(var h=
|
|
16
|
+
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*P4(e)-1,x=2*P4(e)-1;p.setAttribute("cx",""+$APP.T.g(q));p.setAttribute("cy",""+$APP.T.g(m));p.setAttribute("r","0");p.style.fill=g;p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=
|
|
17
|
+
0},p5=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,n5);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.k(a,
|
|
18
|
+
"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.T.g(b*2.5));g.setAttribute("opacity",""+$APP.T.g(c));g.setAttribute("transform","translate("+$APP.T.g(h)+","+$APP.T.g(l)+")");e+=1}else break},r5=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
|
|
19
|
+
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return q5(a)}))},s5=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.$l.g(b))?50:$APP.Nl.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
|
|
20
|
+
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.ll.g(b);return $APP.n(m)?$APP.r($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},w5=function(a,b){var c=h5(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
|
|
21
|
+
"progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.$l.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.T.g(Math.round($APP.Nl.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Zm.g(c)));var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(t5,b)){b=$APP.B.i($APP.Vg.g(c),
|
|
22
|
+
"honeycomb");d=$APP.Bc(u5,g5.g(c),3);if(b)c=Z4(f5.g(c),g5.g(c));else{a:{for(var e=new $APP.Q(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var l=[],m=g.length,p=0;;)if(p<m){var q=g.charAt(p),v=$APP.D(e,q);$APP.n(v)?l.push(v):l.push(q);p+=1}else break;h+=1;g=l.join("")}d=void 0}e=V4(f5.g(c));c=W4(d,e,f5.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;k5(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,j5);d=$APP.D(d,$APP.nj);$APP.n(c)&&
|
|
23
|
+
($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.r(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,v5);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;l5(a);a.__xOrganicProgressPV=-1;a5()&&s5(a)}},
|
|
24
|
+
x5=function(a){Object.defineProperty(a,"progress",{get:function(){return F4(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return H4(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
25
|
+
"color",{get:function(){return N4(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return I4(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return K4(this.getAttribute("density"))},
|
|
26
|
+
set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return L4(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return M4(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
|
|
27
|
+
this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},A5=function(){var a=class extends HTMLElement{};a.observedAttributes=y5;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=h5(this);if(!$APP.n($APP.k(this,"__xOrganicProgressRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg",
|
|
28
|
+
"g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=z5;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.T.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg",
|
|
29
29
|
"filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),q=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.T.g(2));p.setAttribute("result","blur");q.setAttribute("in","blur");q.setAttribute("type","matrix");
|
|
30
|
-
q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.
|
|
31
|
-
$APP.k(this,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.n($APP.k(this,"__xOrganicProgressBloom"))){b=$APP.M($APP.k(this,"__xOrganicProgressRefs"));b=$APP.D(b,
|
|
32
|
-
c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicProgressRefs"))&&(
|
|
33
|
-
"bloom-attr",-1778398039),
|
|
34
|
-
var
|
|
30
|
+
q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.Q(null,3,[$APP.kl,m,$APP.nj,p,$APP.Vm,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Rf($APP.uc([m,new $APP.Q(null,5,[$APP.Hi,b,$APP.mk,d,j5,g,v5,h,n5,l],null)]))}w5(this,null);l5(this);a5()?s5(this):r5(this);return null};a.prototype.disconnectedCallback=function(){var b=
|
|
31
|
+
$APP.k(this,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.n($APP.k(this,"__xOrganicProgressBloom"))){b=$APP.M($APP.k(this,"__xOrganicProgressRefs"));b=$APP.D(b,n5);var c=$APP.k(this,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;this.__xOrganicProgressBEls=null;this.__xOrganicProgressBloom=!1}return null};a.prototype.attributeChangedCallback=function(b,
|
|
32
|
+
c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicProgressRefs"))&&(w5(this,b),$APP.I(t5,b)||l5(this));return null};x5(a.prototype);return a},B5=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",A5());return null},v5=new $APP.K(null,"nodes-g","nodes-g",89420858),c5=new $APP.K(null,"density-raw","density-raw",1719413082),j5=new $APP.K(null,"branches-g","branches-g",548989635),e5=new $APP.K(null,"bloom?","bloom?",-326837587),b5=new $APP.K(null,"bloom-attr",
|
|
33
|
+
"bloom-attr",-1778398039),g5=new $APP.K(null,"density","density",-1664155941),f5=new $APP.K(null,"seed","seed",68613327),d5=new $APP.K(null,"seed-raw","seed-raw",2146438207),n5=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var y5="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-organic-progress-bloom-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null)]);
|
|
34
|
+
var G4=new $APP.S(null,new $APP.Q(null,2,["honeycomb",null,"vine",null],null),null),J4=new $APP.S(null,new $APP.Q(null,3,["dense",null,"normal",null,"sparse",null],null),null),u5=new $APP.Q(null,3,["sparse",2,"normal",3,"dense",4],null),T4=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
|
|
35
35
|
83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,
|
|
36
|
-
107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],
|
|
36
|
+
107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],S4=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Q4=(Math.sqrt(3)-1)/2,R4=(3-Math.sqrt(3))/6,Y4=new $APP.Q(null,3,["sparse",40,"normal",25,"dense",16],null);var z5=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.T.g("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.T.g("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.T.g("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.T.g("--x-organic-progress-bg")+":transparent;"+$APP.T.g("--x-organic-progress-branch-width")+":3;"+$APP.T.g("--x-organic-progress-glow")+":2;"+$APP.T.g("--x-organic-progress-opacity")+
|
|
37
37
|
":1;background:var("+$APP.T.g("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.T.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.T.g("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
|
|
38
|
-
|
|
39
|
-
$APP.
|
|
40
|
-
requestAnimationFrame(function(){return
|
|
38
|
+
q5=function q5(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.$l.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.Nl.g(c);d=$4($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];m5(a);$APP.n(function(){var g=
|
|
39
|
+
$APP.ll.g(c);return $APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(e5.g(c))&&o5(a));$APP.n(function(){var g=$APP.r($APP.ll.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&p5(a,e);$APP.ja(a,"__xOrganicProgressRaf",
|
|
40
|
+
requestAnimationFrame(function(){return q5.g?q5.g(a):q5.call(null,a)}))}return null},t5=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",B5);export const init=B5;
|
package/dist/x-organic-shape.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},
|
|
4
|
-
$APP.xj,a.getAttribute("ratio"),$APP.Xg,a.getAttribute("width"),$APP.Yg,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.kk),e=$APP.D(c,$APP.
|
|
5
|
-
"morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.
|
|
6
|
-
m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");
|
|
7
|
-
b);
|
|
2
|
+
var $L=function(a){return typeof a==="string"&&$APP.I(ZL,a)?a:"blob-1"},aM=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},bM=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
|
|
3
|
+
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},cM=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},hM=function(a){var b=new $APP.Q(null,6,[$APP.kk,a.getAttribute("shape"),$APP.Zk,a.getAttribute("path"),$APP.Wg,a.getAttribute("animation"),
|
|
4
|
+
$APP.xj,a.getAttribute("ratio"),$APP.Xg,a.getAttribute("width"),$APP.Yg,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.kk),e=$APP.D(c,$APP.Zk),g=$APP.D(c,$APP.Wg),h=$APP.D(c,$APP.xj);b=$APP.D(c,$APP.Xg);c=$APP.D(c,$APP.Yg);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=$L(d);var l=typeof g==="string"&&$APP.I(dM,g)?g:"none";g=e!=null?e:$APP.ie(eM,new $APP.O(null,2,5,$APP.P,[$L(d),fM],null));var m=e==null?$APP.ie(eM,new $APP.O(null,2,5,$APP.P,[$L(d),gM],null)):null;l=$APP.B.i(l,
|
|
5
|
+
"morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.Q(null,8,[$APP.kk,d,$APP.Zk,e,fM,g,gM,m,$APP.Wg,l,$APP.xj,h,$APP.Xg,aM(b),$APP.Yg,aM(c)],null);g=$APP.M(b);b=$APP.D(g,fM);h=$APP.D(g,gM);c=$APP.D(g,$APP.Wg);e=$APP.D(g,$APP.xj);d=$APP.D(g,$APP.Xg);g=$APP.D(g,$APP.Yg);m=$APP.k(a,"__xOrganicShapeBase");l=$APP.k(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
|
|
6
|
+
m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");cM(a,l)},iM=function(a){function b(){return cM(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||bM(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
|
|
7
|
+
b);hM(a)},jM=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});
|
|
8
8
|
Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,
|
|
9
9
|
configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
|
|
10
|
-
configurable:!0})},
|
|
11
|
-
return a},
|
|
12
|
-
null),"blob-2",new $APP.
|
|
13
|
-
|
|
14
|
-
null),"cloud",new $APP.
|
|
15
|
-
|
|
10
|
+
configurable:!0})},lM=function(){var a=class extends HTMLElement{};a.observedAttributes=kM;a.prototype.connectedCallback=function(){iM(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xOrganicShapeSlot"),c=$APP.k(this,"__xOrganicShapeSlotHandler");return $APP.n($APP.n(b)?c:b)?b.removeEventListener("slotchange",c):null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicShapeInit"))&&hM(this);return null};jM(a.prototype);
|
|
11
|
+
return a},mM=function(){$APP.n(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",lM());return null},fM=new $APP.K(null,"clip","clip",830998499),gM=new $APP.K(null,"clip-alt","clip-alt",-684562835);var kM="shape path animation ratio width height".split(" "),dM=new $APP.S(null,new $APP.Q(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),ZL=new $APP.S(null,new $APP.Q(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),eM=new $APP.Q(null,8,["blob-1",new $APP.Q(null,2,[fM,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",gM,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
|
|
12
|
+
null),"blob-2",new $APP.Q(null,2,[fM,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",gM,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.Q(null,2,[fM,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",gM,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.Q(null,2,[fM,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
|
|
13
|
+
gM,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.Q(null,2,[fM,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",gM,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.Q(null,2,[fM,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",gM,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
|
|
14
|
+
null),"cloud",new $APP.Q(null,2,[fM,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",gM,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.Q(null,2,[fM,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
|
|
15
|
+
gM,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",mM);export const init=mM;
|
package/dist/x-pagination.d.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
export function init(): void;
|
|
4
4
|
|
|
5
5
|
export interface XPaginationEventMap {
|
|
6
|
-
"
|
|
6
|
+
"page-change-request": CustomEvent<{ page: number; previousPage: number }>;
|
|
7
|
+
"page-change": CustomEvent<{ page: number }>;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface XPagination extends HTMLElement {
|