earthnut 0.1.3 → 0.1.5

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/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import{setStyle as r}from"a-element-inline-style";import*as n from"react";import{xcn as i}from"xcn";var o={161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},258:(e,t,r)=>{r.d(t,{z:()=>h});var n=r(649),i=r(502),o=r(362);var a=r(291);function s(e){"@babel/helpers - typeof";return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var u,l=["children","style"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=a.Ay.div(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n width: 100%;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n contain: layout paint style;\n will-change: transform, opacity;\n"]))),h=(0,n.forwardRef)(function(e,t){var r=e.children,a=e.style,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,l),u=(0,n.useRef)(null),c=(0,i.n)(u,s);return function(e,t){(0,n.useEffect)(function(){if(t.option&&e.current){var r=t.option;Object.keys(e.current.defaults).forEach(function(t){!(0,o.isUndefined)(r[t])&&e.current&&e.current.set(t,r[t])})}},[t.option])}(c,s),(0,n.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null===(e=c.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=c.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=c.current)||void 0===e||e.pause()},set:function(e){if(!(0,o.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,a=t[r];null===(i=c.current)||void 0===i||i.set(a,e[a])}}}}),n.default.createElement(d,{style:f({backgroundRepeat:"round"},a)},n.default.createElement("canvas",{ref:u,"data-earthnut-ui":"canvas"}),r)});h.displayName="en-background-ripple"},291:(e,t,r)=>{r.d(t,{AH:()=>zt,Ay:()=>Xt,I4:()=>Xt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(649),a=r(945),s=r.n(a),u="-ms-",l="-moz-",c="-webkit-",f="comm",p="rule",d="decl",h="@keyframes",g=Math.abs,y=String.fromCharCode,m=Object.assign;function v(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function E(e,t,r){return e.indexOf(t,r)}function S(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function O(e){return e.length}function P(e){return e.length}function x(e,t){return t.push(e),e}function T(e,t){return e.filter(function(e){return!b(e,t)})}var A=1,I=1,j=0,k=0,_=0,N="";function D(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:A,column:I,length:a,return:"",siblings:s}}function C(e,t){return m(D("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function F(e){for(;e.root;)e=C(e.root,{children:[e]});x(e,e.siblings)}function L(){return _=k>0?S(N,--k):0,I--,10===_&&(I=1,A--),_}function $(){return _=k<j?S(N,k++):0,I++,10===_&&(I=1,A++),_}function B(){return S(N,k)}function U(){return k}function M(e,t){return R(N,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function H(e){return A=I=1,j=O(N=e),k=0,[]}function W(e){return N="",e}function X(e){return v(M(k-1,q(91===e?e+2:40===e?e+1:e)))}function G(e){for(;(_=B())&&_<33;)$();return z(e)>2||z(_)>3?"":" "}function Y(e,t){for(;--t&&$()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return M(e,U()+(t<6&&32==B()&&32==$()))}function q(e){for(;$();)switch(_){case e:return k;case 34:case 39:34!==e&&39!==e&&q(_);break;case 40:41===e&&q(e);break;case 92:$()}return k}function V(e,t){for(;$()&&e+_!==57&&(e+_!==84||47!==B()););return"/*"+M(t,k-1)+"*"+y(47===e?e:$())}function Z(e){for(;!z(B());)$();return M(e,k)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function J(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case d:return e.return=e.return||e.value;case f:return"";case h:return e.return=e.value+"{"+K(e.children,n)+"}";case p:if(!O(e.value=e.props.join(",")))return""}return O(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function Q(e,t,r){switch(function(e,t){return 45^S(e,0)?(((t<<2^S(e,0))<<2^S(e,1))<<2^S(e,2))<<2^S(e,3):0}(e,t)){case 5103:return c+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+e+e;case 4789:return l+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return c+e+l+e+u+e+e;case 5936:switch(S(e,t+11)){case 114:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return c+e+u+e+e;case 6165:return c+e+u+"flex-"+e+e;case 5187:return c+e+w(e,/(\w+).+(:[^]+)/,c+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return c+e+u+"flex-item-"+w(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":u+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return c+e+u+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return c+e+u+w(e,"shrink","negative")+e;case 5292:return c+e+u+w(e,"basis","preferred-size")+e;case 6060:return c+"box-"+w(e,"-grow","")+c+e+u+w(e,"grow","positive")+e;case 4554:return c+w(e,/([^-])(transform)/g,"$1"+c+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+e+e;case 4200:if(!b(e,/flex-|baseline/))return u+"grid-column-align"+R(e,t)+e;break;case 2592:case 3360:return u+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,b(e.props,/grid-\w+-end/)})?~E(e+(r=r[t].value),"span",0)?e:u+w(e,"-start","")+e+u+"grid-row-span:"+(~E(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":u+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return b(e.props,/grid-\w+-start/)})?e:u+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,c+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(e)-1-t>6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+l+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch",0)?Q(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===S(e,t+6))return w(e,":",":"+c)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===S(e,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+u+"$2box$3")+e;case 100:return w(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case d:return void(e.return=Q(e.value,e.length,r));case h:return K([C(e,{value:w(e.value,"@","@"+c)})],n);case p:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":F(C(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),F(C(e,{props:[t]})),m(e,{props:T(r,n)});break;case"::placeholder":F(C(e,{props:[w(t,/:(plac\w+)/,":"+c+"input-$1")]})),F(C(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),F(C(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),F(C(e,{props:[t]})),m(e,{props:T(r,n)})}return""})}}function te(e){return W(re("",null,null,null,[""],e=H(e),0,[0],e))}function re(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,p=0,d=0,h=0,m=1,v=1,b=1,R=0,P="",T=i,A=o,I=n,j=P;v;)switch(h=R,R=$()){case 40:if(108!=h&&58==S(j,f-1)){-1!=E(j+=w(X(R),"&","&\f"),"&\f",g(l?s[l-1]:0))&&(b=-1);break}case 34:case 39:case 91:j+=X(R);break;case 9:case 10:case 13:case 32:j+=G(h);break;case 92:j+=Y(U()-1,7);continue;case 47:switch(B()){case 42:case 47:x(ie(V($(),U()),t,r,u),u);break;default:j+="/"}break;case 123*m:s[l++]=O(j)*b;case 125*m:case 59:case 0:switch(R){case 0:case 125:v=0;case 59+c:-1==b&&(j=w(j,/\f/g,"")),d>0&&O(j)-f&&x(d>32?oe(j+";",n,r,f-1,u):oe(w(j," ","")+";",n,r,f-2,u),u);break;case 59:j+=";";default:if(x(I=ne(j,t,r,l,c,i,s,P,T=[],A=[],f,o),o),123===R)if(0===c)re(j,t,I,I,T,o,f,s,A);else switch(99===p&&110===S(j,3)?100:p){case 100:case 108:case 109:case 115:re(e,I,I,n&&x(ne(e,I,I,0,0,i,s,P,i,T=[],f,A),A),i,A,f,s,n?T:A);break;default:re(j,I,I,I,[""],A,0,s,A)}}l=c=d=0,m=b=1,P=j="",f=a;break;case 58:f=1+O(j),d=h;default:if(m<1)if(123==R)--m;else if(125==R&&0==m++&&125==L())continue;switch(j+=y(R),R*m){case 38:b=c>0?1:(j+="\f",-1);break;case 44:s[l++]=(O(j)-1)*b,b=1;break;case 64:45===B()&&(j+=X($())),p=B(),c=f=O(P=j+=Z(U())),R++;break;case 45:45===h&&2==O(j)&&(m=0)}}return o}function ne(e,t,r,n,i,o,a,s,u,l,c,f){for(var d=i-1,h=0===i?o:[""],y=P(h),m=0,b=0,E=0;m<n;++m)for(var S=0,O=R(e,d+1,d=g(b=a[m])),x=e;S<y;++S)(x=v(b>0?h[S]+" "+O:w(O,/&\f/g,h[S])))&&(u[E++]=x);return D(e,t,r,0===i?p:s,u,l,c,f)}function ie(e,t,r,n){return D(e,t,r,f,y(_),R(e,2,-2),0,n)}function oe(e,t,r,n,i){return D(e,t,r,d,R(e,0,n),R(e,n+1,-1),n,i)}var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",le="data-styled-version",ce="6.1.19",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,de=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),he=(new Set,Object.freeze([])),ge=Object.freeze({});function ye(e,t,r){return void 0===r&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var me=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ve=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ve,"-").replace(be,"")}var Ee=/(a)(d)/gi,Se=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Se(t%52)+r;return(Se(t%52)+r).replace(Ee,"$1-$2")}var Oe,Pe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},xe=function(e){return Pe(5381,e)};function Te(e){return Re(xe(e)>>>0)}function Ae(e){return e.displayName||e.name||"Component"}function Ie(e){return"string"==typeof e&&!0}var je="function"==typeof Symbol&&Symbol.for,ke=je?Symbol.for("react.memo"):60115,_e=je?Symbol.for("react.forward_ref"):60112,Ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},De={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Oe={})[_e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oe[ke]=Ce,Oe);function Le(e){return("type"in(t=e)&&t.type.$$typeof)===ke?Ce:"$$typeof"in e?Fe[e.$$typeof]:Ne;var t}var $e=Object.defineProperty,Be=Object.getOwnPropertyNames,Ue=Object.getOwnPropertySymbols,Me=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,He=Object.prototype;function We(e,t,r){if("string"!=typeof t){if(He){var n=ze(t);n&&n!==He&&We(e,n,r)}var i=Be(t);Ue&&(i=i.concat(Ue(t)));for(var o=Le(e),a=Le(t),s=0;s<i.length;++s){var u=i[s];if(!(u in De||r&&r[u]||a&&u in a||o&&u in o)){var l=Me(t,u);try{$e(e,u,l)}catch(e){}}}}return e}function Xe(e){return"function"==typeof e}function Ge(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ve(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ze(e,t,r){if(void 0===r&&(r=!1),!r&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ze(e[n],t[n]);else if(Ve(t))for(var n in t)e[n]=Ze(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Qe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},it=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},ot="style[".concat(se,"][").concat(le,'="').concat(ce,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ut=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(at);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(it(c,l),st(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},lt=function(e){for(var t=document.querySelectorAll(ot),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(se)!==ue&&(ut(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ct(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(se,ue),n.setAttribute(le,ce);var a=ct();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},pt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),dt=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ht=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gt=pe,yt={isServer:!pe,useCSSOMInjection:!de},mt=function(){function e(e,t,r){void 0===e&&(e=ge),void 0===t&&(t={});var i=this;this.options=n(n({},yt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&&gt&&(gt=!1,lt(this)),Ke(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return tt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(fe)},o=0;o<r;o++)i(o);return n}(i)})}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&pe&&lt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new ht(r):t?new pt(r):new dt(r)}(this.options),new Qe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),vt=/&/g,bt=/^\s*\/\/.*$/gm;function wt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=wt(e.children,t)),e})}function Et(e){var t,r,n,i=void 0===e?ge:e,o=i.options,a=void 0===o?ge:o,s=i.plugins,u=void 0===s?he:s,l=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=u.slice();c.push(function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(vt,r).replace(n,l))}),a.prefix&&c.push(ee),c.push(J);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(bt,""),l=te(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(l=wt(l,a.namespace));var f,p,d,h=[];return K(l,(f=c.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=P(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),h};return f.hash=u.length?u.reduce(function(e,t){return t.name||Je(15),Pe(e,t.name)},5381).toString():"",f}var St=new mt,Rt=Et(),Ot=o.default.createContext({shouldForwardProp:void 0,styleSheet:St,stylis:Rt}),Pt=(Ot.Consumer,o.default.createContext(void 0));function xt(){return(0,o.useContext)(Ot)}function Tt(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=xt().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)(function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}},[e.shouldForwardProp,a,u]);return o.default.createElement(Ot.Provider,{value:l},o.default.createElement(Pt.Provider,{value:u},e.children))}var At=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,function(){throw Je(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Rt),this.name+e.hash},e}(),It=function(e){return e>="A"&&e<="Z"};function jt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;It(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var kt=function(e){return null==e||!1===e||""===e},_t=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!kt(a)&&(Array.isArray(a)&&a.isCss||Xe(a)?n.push("".concat(jt(o),":"),a,";"):Ve(a)?n.push.apply(n,i(i(["".concat(o," {")],_t(a),!1),["}"],!1)):n.push("".concat(jt(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Nt(e,t,r,n){return kt(e)?[]:Ge(e)?[".".concat(e.styledComponentId)]:Xe(e)?!Xe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Nt(e(t),t,r,n):e instanceof At?r?(e.inject(r,n),[e.getName(n)]):[e]:Ve(e)?_t(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map(function(e){return Nt(e,t,r,n)})):[e.toString()];var i}function Dt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xe(r)&&!Ge(r))return!1}return!0}var Ct=xe(ce),Ft=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Dt(e),this.componentId=t,this.baseHash=Pe(Ct,t),this.baseStyle=r,mt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ye(n,this.staticRulesId);else{var i=qe(Nt(this.rules,e,t,r)),o=Re(Pe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=Ye(n,o),this.staticRulesId=o}else{for(var s=Pe(this.baseHash,r.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var f=qe(Nt(c,e,t,r));s=Pe(s,f+l),u+=f}}if(u){var p=Re(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=Ye(n,p)}}return n},e}(),Lt=o.default.createContext(void 0);Lt.Consumer;var $t={};new Set;function Bt(e,t,r){var i=Ge(e),a=e,s=!Ie(e),u=t.attrs,l=void 0===u?he:u,c=t.componentId,f=void 0===c?function(e,t){var r="string"!=typeof e?"sc":we(e);$t[r]=($t[r]||0)+1;var n="".concat(r,"-").concat(Te(ce+r+$t[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,d=void 0===p?function(e){return Ie(e)?"styled.".concat(e):"Styled(".concat(Ae(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,g=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(i&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;y=function(e,t){return m(e,t)&&v(e,t)}}else y=m}var b=new Ft(r,h,i?a.componentStyle:void 0);function w(e,t){return function(e,t,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.styledComponentId,c=e.target,f=o.default.useContext(Lt),p=xt(),d=e.shouldForwardProp||p.shouldForwardProp,h=ye(t,f,s)||ge,g=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Xe(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?Ye(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=Ye(o.className,t.className)),o}(i,t,h),y=g.as||c,m={};for(var v in g)void 0===g[v]||"$"===v[0]||"as"===v||"theme"===v&&g.theme===h||("forwardedAs"===v?m.as=g.forwardedAs:d&&!d(v,y)||(m[v]=g[v]));var b=function(e,t){var r=xt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,g),w=Ye(u,l);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),m[Ie(y)&&!me.has(y)?"class":"className"]=w,r&&(m.ref=r),(0,o.createElement)(y,m)}(E,e,t)}w.displayName=d;var E=o.default.forwardRef(w);return E.attrs=g,E.componentStyle=b,E.displayName=d,E.shouldForwardProp=y,E.foldedComponentIds=i?Ye(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=h,E.target=i?a.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ze(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Ke(E,function(){return".".concat(E.styledComponentId)}),s&&We(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Ut(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var Mt=function(e){return Object.assign(e,{isCss:!0})};function zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xe(e)||Ve(e))return Mt(Nt(Ut(he,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Nt(n):Mt(Nt(Ut(n,t)))}function Ht(e,t,r){if(void 0===r&&(r=ge),!t)throw Je(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,zt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return Ht(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Ht(e,t,n(n({},r),i))},o}var Wt=function(e){return Ht(Bt,e)},Xt=Wt;me.forEach(function(e){Xt[e]=Wt(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Dt(e),mt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(qe(Nt(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&mt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=ct(),n=qe([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(le,'="').concat(ce,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[se]="",t[le]=ce,t.dangerouslySetInnerHTML={__html:r},t),a=ct();return a&&(i.nonce=a),[o.default.createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new mt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return o.default.createElement(Tt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(se,"__")},336:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(649);function i(){var e=(0,n.useRef)(0);return(0,n.useEffect)(function(){return function(){e.current&&window.cancelAnimationFrame(e.current)}},[]),e}},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isNumber:()=>t.isNumber,isString:()=>t.isString,isTrue:()=>t.isTrue,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},502:(e,t,n)=>{n.d(t,{n:()=>Ze});var i=n(649),o=n(362);function a(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var a,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,l=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=l.exec(u));){var c=a[2];s.locations[c]=r.getUniformLocation(s.id,c)}return s}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function u(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function l(e){return"none"===e||""===e}function c(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce(function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e},[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,l=0;l<i.length;l++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[l].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[l];break}return u}function f(e){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var y=d(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"canvas",void 0),h(this,"gl",void 0),h(this,"config",void 0),h(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,o.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(c,this,[])}),m=n(161),v={imgUrl:null,resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0};function b(e){"@babel/helpers - typeof";return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}Object.freeze(v);var S;new(function(){return function(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1});function R(e){"@babel/helpers - typeof";return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function P(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}function x(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function T(e,t,r){return e.set(I(e,t),r),r}function A(e,t){return e.get(I(e,t))}function I(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function j(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t={list:[],diameter:48,radius:0,cells:0};t.diameter%2!=0&&t.diameter++;var r=t.diameter,n=t.list,i=r/2;t.radius=i,t.cells=Math.pow(r,2);for(var o=0;o<r;o++){n[o]=[];for(var a=0;a<r;a++)n[o][a]=[0,0,0,0]}for(var s=0;s<=i;s++)for(var u=s;u<=i;u++){var l=n[s][u],c=function(){return(0,m.getRandomInt)(255,190)};l[0]=c(),l[1]=c(),l[2]=c(),l[3]=Math.ceil(Math.sqrt(Math.pow(s,2)+Math.pow(u,2)))<=i?(0,m.getRandomInt)(120,180):(0,m.getRandomInt)(160,240)}for(var f=0;f<=i;f++)for(var p=0;p<=f;p++)n[f][p]=n[p][f];for(var d=i;d<r;d++)for(var h=0;h<=i;h++)n[d][h]=n[r-d][h];for(var g=0;g<i;g++)for(var y=i;y<r;y++)n[g][y]=n[g][r-y];for(var v=i;v<r;v++)for(var b=i;b<r;b++)n[v][b]=n[v][r-b];var w=e%r;return t.list=[].concat(j(n.slice(w)),j(n.slice(0,w))),t},N=new(S=new WeakMap,function(){return function(e,t,r){return t&&O(e.prototype,t),r&&O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),x(this,S,1),function(e,t,r){(t=P(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",_())},[{key:"build",value:function(){A(S,this)>100&&T(S,this,0),this.data=_(T(S,this,A(S,this)+3))}}])}());function D(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),a=n.getContext("2d");return(0,o.isNull)(i)||(0,o.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),a.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=N.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var l=u/4%s,c=l%e%o,f=Math.floor(l/e),p=a[c][f];n[u]=p[0],n[u+1]=p[1],n[u+2]=p[2],n[u+3]=p[3]}return r}(e,t),0,0),a.fillStyle="#ffffff",a.fillRect(0,0,e,t),a.drawImage(r,0,0,e||1,t||1),a.globalCompositeOperation="source-over",n)}function C(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.fadeData,r=t.backgroundInfo,n=t.toBeList,i=r.width,o=r.height,a=(0,m.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});N.build(),n.push({resource:D(i,o),width:i,height:o,kind:"default",tag:a}),e&&t.run()}function F(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,o.isNull)(e))return Reflect.apply(C,this,[]);var n=e.originStyle;if(u(n.backgroundColor)&&(!(0,o.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(C,this,[]);var i=document.createElement("canvas"),a=i.getContext("2d");if((0,o.isNull)(a))return Reflect.apply(C,this,[]);var s=t.backgroundInfo,l=s.width,c=s.height;i.width=l,i.height=c,a.clearRect(0,0,l,c);var f=(0,o.isArray)(r.imgUrl)&&1===r.imgUrl.length&&r.imgUrl[0]||n.backgroundColor;a.beginPath(),a.fillStyle=f,a.fillRect(0,0,l,c),a.fill(),t.isTransitioning&&!(0,o.isEmptyArray)(t.toBeList)?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:i,kind:"background-color",tag:f,width:l,height:c};t.toBeList.push(p),t.run()}function L(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(F,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(F,this,[]);var i=(0,o.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map(function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e}).filter(function(e){return e.startsWith("rgb")||e.startsWith("#")});if(i.length<2)return Reflect.apply(F,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(F,this,[]);var u=e.backgroundInfo,l=u.width,c=u.height;a.width=l,a.height=c,s.fillStyle="#fff",s.fillRect(0,0,l,c);var f=s.createLinearGradient(0,0,0,c);i.forEach(function(e,t){return f.addColorStop(t/(i.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,l,c),e.isTransitioning&&!(0,o.isEmptyArray)(e.toBeList)?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:i.join("_"),width:l,height:c}),e.run()}function $(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(L,this,[]);else{var i,a,s=t.lastUseStyle,u=n.backgroundInfo,l=u.width,c=u.height,f=(0,o.isString)(r.imgUrl)&&r.imgUrl||(i=s.backgroundImage,a=/url\(["']?([^"']*)["']?\)/.exec(i),(0,o.isNull)(a)?null:a[1]);if(t.imageSource=f,f){var p=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(f,l,c);p.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,o.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat($(n.toBeList.slice(1).filter(function(e){return"image"===e.kind&&(Math.abs(e.width-l)>2||Math.abs(e.height-c)>2||e.tag!==f)}))):n.toBeList=[],n.toBeList.push({resource:p,width:l,height:c,kind:"image",tag:f}),n.run()},p.onerror=function(){Reflect.apply(L,e,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(L,this,[])}}function M(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach(function(e){return t.style.setProperty(e[0],e[1],"important")})}}function z(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function H(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function W(e){"@babel/helpers - typeof";return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function G(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e){var t=function(e,t){if("object"!=W(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W(t)?t:t+""}var q=function(){return function(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,"quad",null),G(this,"lastRaindropsFallTime",0),G(this,"parentElement",void 0),G(this,"mutationObserver",void 0),G(this,"resizeObserver",void 0),G(this,"renderProgram",void 0),G(this,"imageSource",""),G(this,"dropProgram",void 0),G(this,"updateProgram",void 0),G(this,"textures",[]),G(this,"backgroundTexture",[]),G(this,"textureDelta",void 0),G(this,"framebuffers",[]),G(this,"bufferWriteIndex",0),G(this,"bufferReadIndex",1),G(this,"originStyle",void 0),G(this,"lastUseStyle",void 0),G(this,"events",{}),G(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(M,n,[]),this.originStyle=this.lastUseStyle=z(this.parentElement),this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){if(e.target===a.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(a.lastUseStyle),i=z(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(m.enArr.difference(t,s)))return;var c=l(i.backgroundImage),f=u(i.backgroundColor);if(c&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply(M,n,[])}})}),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver(function(e){e.forEach(function(e){e.target===a.parentElement&&Reflect.apply(r,n,[])})}),this.resizeObserver.observe(this.parentElement)},[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(H,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach(function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])}),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function V(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r,n,i,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,l=s.backgroundAttachment,c=s.backgroundPosition,f=/\s+/.test(r=c)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):Z(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],p={left:0,top:0,width:0,height:0};"fixed"===l?(p.height=window.innerHeight,p.left=window.screenX,p.top=window.screenY,p.width=window.innerWidth):(p.left=0,p.top=0,p.width=a.scrollWidth,p.height=a.scrollHeight);var d=t.backgroundInfo||{width:100,height:100},h=d.width,g=d.height;if("cover"===u){var y=Math.max(p.width/h,p.height/g);n=h*y,i=g*y}else if("contain"===u){var m=Math.min(p.width/h,p.height/g);n=h*m,i=g*m}else{var v=u.split(" ");n=v[0]||"",i=v[1]||n,Z(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),Z(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=h,i=g):("auto"===n&&(n=h*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/h)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=Z(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=Z(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/i]);var E=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/E,this.canvas.height/E])}}function Z(e){return e.endsWith("%")}function K(){var e=this.gl,t=this.renderData;(0,o.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function J(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.textures,i=t.backgroundTexture,a=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(s,this,[i,0]),Reflect.apply(s,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,a),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(K,this,[]),e.disable(e.BLEND)}}function Q(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function ee(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.updateProgram,i=t.textures,a=t.framebuffers,u=t.bufferWriteIndex,l=t.bufferReadIndex,c=r.resolution;e.viewport(0,0,c,c),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[l]]),e.useProgram(n.id),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function te(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)){var i=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,l=r.lastRunningState,c=getComputedStyle(i);n.backgroundInfo={width:parseInt(c.width),height:parseInt(c.height)},Reflect.apply(V,this,[]),s?(l||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(ee,this,[]),Reflect.apply(J,this,[])):l&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(te,e,[])})}}function re(e,t,r){var n=this.renderData;if(!(0,o.isNull)(n)){var i=n.parentElement,a=window.getComputedStyle(i),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,l=i.getBoundingClientRect(),c=e.clientX-l.left-s,f=e.clientY-l.top-u;this.drop(c,f,t,r)}}function ne(){var e=this,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.parentElement,i=t.events,a=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(re,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},i.mousedown=function(e){return a(e,!0)},Object.keys(i).forEach(function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})})}}var ie="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function oe(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.textureDelta;t.dropProgram=a(ie,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=a(ie,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=a("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function ae(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function se(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,o.isNull)(r)){var i=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,l=s.height,c=function(e){return(0,o.isZero)(e&e-1)},f=c(u)&&c(l)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),a.dataset.render_img=e.tag,a.dataset.render_width=e.width+"px",a.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function ue(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)&&this.config){var i=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,l=1/s;t.textureDelta=new Float32Array([l,l]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var c=this.config.arrayType,f=c?new c(s*s*4):null,p=this.config,d=0;d<2;d++){var h=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,h),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,h,0),i.push(h),a.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(oe,this,[]),Reflect.apply(ae,this,[]),Reflect.apply(U,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(ne,this,[]),Reflect.apply(se,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(te,e,[])})}}function le(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=a,Reflect.apply(U,this,[])}}function ce(){var e=this.renderData,t=this.fadeData;(0,o.isNull)(e)||(e.destroy(),Object.keys(e).forEach(function(t){return e[t]=null}),this.renderData=null),t.destroy(),Object.keys(t).forEach(function(e){return t[e]=null}),this.fadeData=null,this.gl&&(this.gl=null)}function fe(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var l=i.parentElement,c=i.dropProgram,f=i.textures,p=i.framebuffers,d=i.bufferWriteIndex,h=i.bufferReadIndex,g=a.resolution,y=l.offsetWidth,m=l.offsetHeight,v=Math.max(y,m);r/=v;var b=new Float32Array([(2*e-y)/v,(m-2*t)/v]);u.viewport(0,0,g,g),u.bindFramebuffer(u.FRAMEBUFFER,p[d]),Reflect.apply(s,this,[f[h]]),u.useProgram(c.id),u.uniform2fv(c.locations.center,b),u.uniform1f(c.locations.radius,r),u.uniform1f(c.locations.strength,n),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function pe(e){"@babel/helpers - typeof";return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ge(n.key),n)}}function he(e,t,r){return(t=ge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}function ye(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function me(e,t){return e.get(be(e,t))}function ve(e,t,r){return e.set(be(e,t),r),r}function be(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var we=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Re=new WeakMap,Oe=new WeakMap,Pe=new WeakMap,xe=new WeakMap,Te=function(){return function(e,t,r){return t&&de(e.prototype,t),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ye(this,we,v.accelerating),ye(this,Ee,v.interactive),ye(this,Se,v.resolution),ye(this,Re,v.perturbance),ye(this,Oe,v.dropRadius),he(this,"imgUrl",v.imgUrl),ye(this,Pe,v.idleFluctuations),ye(this,xe,v.raindropsTimeInterval),he(this,"crossOrigin","no-cors"),he(this,"visible",!1),he(this,"running",!1),he(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin},[{key:"accelerating",get:function(){return me(we,this)},set:function(e){e>100||e<2||ve(we,this,e)}},{key:"interactive",get:function(){return me(Ee,this)},set:function(e){(0,o.isBoolean)(e)&&ve(Ee,this,e)}},{key:"resolution",get:function(){return me(Se,this)},set:function(e){e<100||e>550||ve(Se,this,e)}},{key:"perturbance",get:function(){return me(Re,this)},set:function(e){e<1e-4||e>1||ve(Re,this,e)}},{key:"dropRadius",get:function(){return me(Oe,this)},set:function(e){!isFinite(e)||e<10||ve(Oe,this,e)}},{key:"idleFluctuations",get:function(){return me(Pe,this)},set:function(e){(0,o.isBoolean)(e)&&ve(Pe,this,e)}},{key:"raindropsTimeInterval",get:function(){return me(xe,this)},set:function(e){e<10||e>12e3||ve(xe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}}])}();function Ae(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout(function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(Ae,e,[]);"image"!==r.lastDrawImage.kind&&r.run()},2*t.raindropsTimeInterval)}function Ie(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,o.isNull)(e))return Reflect.apply(je,this,["还没有准备好,即将退出"]);if((0,o.isEmptyArray)(n))return Reflect.apply(je,this,["由于缺少当前渲染的背景,退出"]);if(0===t.drawProgress&&n.forEach(function(e){}),t.drawProgress>1e3){if(t.lastDrawImage=n.shift(),Reflect.apply(se,this,[t.lastDrawImage]),(0,o.isEmptyArray)(n)){var i=e.lastUseStyle;((0,o.isNull)(r.imgUrl)||(0,o.isBusinessEmptyString)(r.imgUrl)||(0,o.isZero)(r.imgUrl.length))&&u(i.backgroundColor)&&l(i.backgroundImage)&&Reflect.apply(C,this,[!1])}return Reflect.apply(je,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var c=document.createElement("canvas"),f=c.getContext("2d");if((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))return t.isTransitioning=!1,void Reflect.apply(Ae,this,[]);var p=s.width,d=s.height;c.width=p,c.height=d,f.clearRect(0,0,p,d),f.drawImage(a.resource,0,0,p,d),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,d),f.globalAlpha=1;var h={resource:c,width:p,height:d,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(se,this,[h]),n.length>1&&(t.lastDrawImage=h,n.shift(),t.drawProgress=0)}function je(e){this.fadeData.isTransitioning=!1,Reflect.apply(Ae,this,[])}function ke(e){"@babel/helpers - typeof";return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,De(n.key),n)}}function Ne(e,t,r){return(t=De(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ke(t)?t:t+""}var Ce=function(){return function(e,t,r){return t&&_e(e.prototype,t),r&&_e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,"backgroundInfo",{width:0,height:0}),Ne(this,"transparentId",setTimeout(Boolean)),Ne(this,"lastDrawImage",void 0),Ne(this,"toBeList",[]),Ne(this,"drawProgress",0),Ne(this,"isTransitioning",!1);var r,n,i=t.renderData;if((0,o.isNull)(i))r=10,n=10;else{var a=getComputedStyle(i.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:D(r,n),width:r,height:n,kind:"default",tag:""}},[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId)}}])}();function Fe(e){"@babel/helpers - typeof";return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach(function(t){Xe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ge(n.key),n)}}function Ue(e,t,r){return t=ze(t),function(e,t){if(t&&("object"==Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Me()?Reflect.construct(t,r||[],ze(e).constructor):t.apply(e,r))}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Me=function(){return!!e})()}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function He(e,t){return He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},He(e,t)}function We(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Xe(e,t,r){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function Ye(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var qe=new WeakMap,Ve=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xe(i=Ue(this,t,[e]),"renderData",null),Xe(i,"options",void 0),Xe(i,"fadeData",void 0),Xe(i,"defaults",v),Xe(i,"initialized",!1),We(i,qe,(0,m.debounce)(le,{this:i})),Object.defineProperties(i,{defaults:{value:i.defaults,writable:!1,enumerable:!1,configurable:!1}}),i.options=new Te($e($e({},i.defaults),n)),i.renderData=new q(e,i.reloadBackground,i),i.fadeData=new Ce(i),(0,o.isFalse)(i.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(i.config)||(0,o.isNull)(i.gl)?i.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,r(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(ue,i,[])),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&He(e,t)}(t,e),function(e,t,r){return t&&Be(e.prototype,t),r&&Be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,o.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<a)){e.lastRaindropsFallTime=u;var l=function(e){return(0,m.getRandomInt)(e)},c=n.width,f=n.height;this.drop(l(c),l(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(fe,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(Ie,this,[])}},{key:"reloadBackground",value:function(){Ye(qe,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(ce,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(M,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(H,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply(U,this,[])):this.options[e]=t}}])}(y);function Ze(e,t){var r=(0,i.useRef)(null);return(0,i.useEffect)(function(){if(!(0,o.isNull)(e.current))return r.current=new Ve(e.current,t&&t.option),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}},[]),r}},649:(e,t,r)=>{e.exports=(e=>{var t={};return r.d(t,e),t})({Children:()=>n.Children,Fragment:()=>n.Fragment,cloneElement:()=>n.cloneElement,createElement:()=>n.createElement,default:()=>n.default,forwardRef:()=>n.forwardRef,isValidElement:()=>n.isValidElement,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useImperativeHandle:()=>n.useImperativeHandle,useMemo:()=>n.useMemo,useRef:()=>n.useRef,useState:()=>n.useState})},785:(e,t,r)=>{r.d(t,{wb:()=>fe,Ht:()=>w,zE:()=>P,n5:()=>c,AX:()=>g,PE:()=>fe,A1:()=>w,cZ:()=>P,KL:()=>c,nb:()=>g});var n,o=r(649),a=r(291),s=["className","children","height","noSticky"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}var l=a.Ay.div(n||(n=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: header;\n position: sticky;\n top: 0px;\n left: 0px;\n z-index: 10;\n height: var(--layout-header-height);\n box-shadow: 0 4px 13px -3px #0000001a;\n overflow: hidden;\n"]))),c=o.default.forwardRef(function(e,t){var r=e.className,n=e.children,a=(e.height,e.noSticky,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s));return o.default.createElement(l,u({ref:t,className:i(["en-layout-header"],r)},a,{"data-earthnut-ui":"layout-header"}),n)});c.displayName="LayoutHeader";var f,p=["className","width","right","full"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}var h=a.Ay.div(f||(f=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: sticky;\n left: 0;\n z-index: 8;\n grid-area: side;\n overflow-x: hidden;\n overflow-y: auto;\n"]))),g=o.default.forwardRef(function(e,t){var r=e.className,n=(e.width,e.right,e.full,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,p));return o.default.createElement(h,d({className:i("en-layout-side",r),ref:t},n,{"data-earthnut-ui":"layout-side-bar"}))});g.displayName="LayoutSideBar";var y,m=["className"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}var b=a.Ay.main(y||(y=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n"]))),w=o.default.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,m);return o.default.createElement(b,v({ref:t,className:i("en-layout-main",r)},n,{"data-earthnut-ui":"layout-content"}))});w.displayName="LayoutContent";var E,S=["className","height"];function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(null,arguments)}var O=a.Ay.div(E||(E=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: footer;\n height: var(--layout-footer-height);\n box-shadow: 0 -1px 13px 0px #0000001a;\n overflow: hidden;\n"]))),P=o.default.forwardRef(function(e,t){var r=e.className,n=(e.height,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,S));return o.default.createElement(O,R({ref:t},n,{className:i("en-layout-footer",r),"data-earthnut-ui":"layout-footer"}))});P.displayName="LayoutFooter";var x,T,A,I,j,k,_,N,D,C,F,L,$,B,U,M,z,H,W,X,G,Y,q,V,Z,K=r(362);function J(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Q=a.I4.div(x||(x=J(["\n position: relative;\n top: 0px;\n width: var(--layout-width);\n height: var(--layout-height);\n overflow-x: hidden;\n overflow-y: auto;\n\n ","\n // 侧边栏全屏样式\n ","\n\n // ------------------------------\n // --- 标准模式(全)与侧边栏右置(全)共用样式 ---\n // 标准模式(全)与侧边栏右置(全)\n ","\n\n // 标准模式(全) 侧边栏与内容区设置\n ","\n // 侧边栏(全) 侧边栏与内容区设置\n ","\n\n // 侧边栏 (全) 左侧全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n \n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 标准模式(无 header)与侧边栏在右侧的无头模式共用样式 ---\n // 标准的无头模式样式、侧边栏在右侧的无头模式样式\n ","\n \n // 侧边栏(无 header )全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n\n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // 标准模式(无 footer)与侧边栏右置(无 footer)共用样式\n // 没有 footer\n ","\n \n\n // 标准模式(无 footer) 侧边栏与内容区设置\n ","\n\n\n// 侧边栏在右侧的无 footer 模式样式\n ","\n\n// 侧边栏 (全) 左侧全屏\n// side bar 居左全尺寸\n// side bar 值由 en-layout-side-full 控制\n","\n\n// 标准的 side bar 居左全尺寸\n ","\n\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 分割线 --- \n // 下面是仅头部、底部和侧边栏布局\n // 仅底部布局\n ","\n\n // 仅头部布局\n ","\n \n // 仅侧边布局\n// 标准的无头模式样式、侧边栏在右侧的无头模式样式\n// side bar 值由 en-layout-side-full 控制\n ","\n \n // 右侧侧边布局\n ","\n"])),function(e){var t=e.$headerNoSticky,r=e.$header,n=e.$layoutType,i=e.$content,o=e.$sidebar;return t&&(0,a.AH)(T||(T=J(["\n // 头部不粘连样式,头部区域设置\n & > ."," {\n position: relative;\n z-index: 2;\n }\n\n ","\n\n ","\n "])),r,("simple-all"===n||"side-right-all"===n)&&(0,a.AH)(A||(A=J(["\n & > ."," > ."," {\n top: 0;\n min-height: calc(\n var(--layout-height) - var (--layout-footer-height) - var(--layout-header-height)\n );\n max-height: var(--layout-height);\n }\n "])),i,o),("simple-no-footer"===n||"side-right-no-footer"===n)&&(0,a.AH)(I||(I=J(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),o))},function(e){var t=e.$layoutType,r=e.$sidebar;return"side-full"===t&&(0,a.AH)(j||(j=J(["\n & > ."," {\n top: 0;\n height: var(--layout-height);\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-all","side-right-all"].includes(t)&&(0,a.AH)(k||(k=J(["\n // 子元素\n & > ."," {\n display: grid;\n grid-template-rows:\n calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height))\n auto;\n min-height: calc(100% - var(--layout-header-height) - var(--layout-footer-height));\n\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n min-height: calc(\n var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)\n );\n max-height: calc(var(--layout-height) - var(--layout-header-height));\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType,r=e.$content;return["simple-all","simple-no-header"].includes(t)&&(0,a.AH)(_||(_=J(["\n & > ."," {\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n '. content';\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content;return["side-right-all","side-right-no-header"].includes(t)&&(0,a.AH)(N||(N=J(["\n & > ."," {\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'content .';\n }\n "])),r)},function(e){var t=e.$layoutType;return["side-full-all","side-right-full-all"].includes(t)&&(0,a.AH)(D||(D=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-all"===e.$layoutType&&(0,a.AH)(C||(C=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-all"===e.$layoutType&&(0,a.AH)(F||(F=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-no-header","side-right-no-header"].includes(t)&&(0,a.AH)(L||(L=J(["\n & > ."," {\n display: grid;\n grid-template-rows: auto;\n // side bar 块的样式\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType;return["side-full-no-header","side-right-full-no-header"].includes(t)&&(0,a.AH)($||($=J(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-no-header"===e.$layoutType&&(0,a.AH)(B||(B=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-no-header"===e.$layoutType&&(0,a.AH)(U||(U=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$sidebar;return["simple-no-footer","side-right-no-footer"].includes(t)&&(0,a.AH)(M||(M=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n min-height: calc(100% - var(--layout-header-height));\n gap: 0px;\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n height: calc(var(--layout-height) - var(--layout-header-height));\n }\n "])),r)},function(e){return"simple-no-footer"===e.$layoutType&&(0,a.AH)(z||(z=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'header header'\n 'side content'\n '. content';\n "])))},function(e){return"side-right-no-footer"===e.$layoutType&&(0,a.AH)(H||(H=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header header'\n 'content side'\n 'content .';\n "])))},function(e){var t=e.$layoutType,r=e.$main;return["side-full-no-footer","side-right-full-no-footer"].includes(t)&&(0,a.AH)(W||(W=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n gap: 0px;\n\n // content 块\n & > ."," {\n min-height: calc(var(--layout-height) - var (--layout-header-height));\n }\n "])),r)},function(e){return"side-full-no-footer"===e.$layoutType&&(0,a.AH)(X||(X=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content';\n "])))},function(e){return"side-right-full-no-footer"===e.$layoutType&&(0,a.AH)(G||(G=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side';\n "])))},function(e){return"only-footer"===e.$layoutType&&(0,a.AH)(Y||(Y=J(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'content' 'footer';\n "])))},function(e){return"only-header"===e.$layoutType&&(0,a.AH)(q||(q=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'header' 'content';\n "])))},function(e){var t=e.$layoutType;return["simple-only-side","side-right-only-side","side-full-only-side","side-right-full-only-side"].includes(t)&&(0,a.AH)(V||(V=J(["\n display: grid;\n // 纵向空间占比设置\n grid-template-rows: 100%;\n // 横向空间占比设置\n grid-template-columns: var(--layout-side-bar-width) auto;\n gap: 0px;\n grid-template-areas:\n 'side content'\n '. content';\n "])))},function(e){var t=e.$layoutType;return("side-right-full-only-side"===t||"side-right-only-side"===t)&&(0,a.AH)(Z||(Z=J(["\n grid-template-areas:\n 'content side'\n 'content .';\n grid-template-columns: auto var(--layout-side-bar-width);\n "])))});function ee(e){return(0,K.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}var te=r(161);function re(e){return"en-"+e+"-"+(0,te.getRandomString)({length:12,includeNumbers:!0,includeUppercaseLetters:!0})}function ne(e){"@babel/helpers - typeof";return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}var ie,oe=["className","children","style","width","height","classes"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(null,arguments)}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach(function(t){le(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ce=a.Ay.div(ie||(ie=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n overflow: auto;\n"]))),fe=o.forwardRef(function(e,t){var r,n,a,s,u=e.className,l=e.children,f=e.style,p=e.width,d=void 0===p?"100vw":p,h=e.height,y=void 0===h?"100vh":h,m=e.classes,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,oe),b="simple",E=!1,S=!1,R=!1,O=!1,x=!1,T=150,A="2.8rem",I="2rem",j=!1,k=re("header"),_=re("content"),N=re("main"),D=re("sidebar"),C=re("footer");o.Children.forEach(l,function(e){if(o.isValidElement(e))if(S||e.type!==c)if(R||e.type!==g)if(O||e.type!==w)if(O||e.type!==fe){if(!x&&e.type===P){var t=e;I=t.props.height||I,s=o.cloneElement(t,{className:i(C,t.props.className)}),x=!0}}else{var u=e;a=o.createElement(ce,{"data-earthnut-ui":"layout-content",className:i(N,"en-layout-main")},u),O=!0}else{var l=e;a=o.cloneElement(l,{className:i(N,l.props.className)}),O=!0}else{var f=e,p=f.props;T=p.width||T,b=p.right&&p.full?"side-right-full":p.right?"side-right":p.full?"side-full":"simple",j=(0,K.isTrue)(p.full),n=o.cloneElement(f,{className:i(D,f.props.className)}),R=!0}else{var d,h=e,y=h.props;A=y.height||A,E=null!==(d=y.noSticky)&&void 0!==d&&d,r=o.cloneElement(h,{className:i(k,h.props.className)}),S=!0}});var F=S&&R&&O&&x&&"".concat(b,"-all")||S&&O&&R&&"".concat(b,"-no-footer")||R&&O&&x&&"".concat(b,"-no-header")||O&&x&&"only-footer"||O&&S&&"only-header"||O&&R&&(j=!0)&&"".concat(b,"-only-side")||"simple",L=ue({layoutHeight:d,layoutWith:y,sideBarWidth:T,headerHeight:A,footerHeight:I},v.theme||{}),$=/side.*full/.test(b);return o.createElement(Q,ae({ref:t,$headerNoSticky:E,$layoutType:F,$header:k,$sidebar:D,$main:N,$content:_,$footer:C,className:i(j&&"en-layout-side-full","en-layout-".concat(F),u,m),style:ue({"--layout-width":ee(d),"--layout-height":ee(y),"--layout-side-bar-width":ee(T),"--layout-header-height":ee(A),"--layout-footer-height":ee(I)},f),theme:L},v,{"data-earthnut-ui":"layout"}),$?o.createElement(o.Fragment,null,n,r,a,s):o.createElement(o.Fragment,null,r,x?o.createElement("div",{className:i(_),"data-earthnut-ui":"layout-with-foot-content"},n,a):o.createElement(o.Fragment,null,n,a),s))});fe.displayName="Layout"},795:(e,t,r)=>{r.d(t,{O:()=>i});var n=r(649);function i(){var e=(0,n.useRef)(void 0);return(0,n.useEffect)(function(){return function(){e.current&&clearTimeout(e.current)}},[]),e}},945:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=r?r.call(n,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},968:(e,t,r)=>{r.d(t,{t:()=>i});var n=r(649);function i(e){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){var r=e.current;if(r){var n=function(){return t.current=!0},i=function(){return t.current=!1};return r.addEventListener("compositionstart",n),r.addEventListener("compositionend",i),function(){r.removeEventListener("compositionstart",n),r.removeEventListener("compositionend",i)}}},[]),t}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.nc=void 0;var u=s(258),l=s(785),c=s(968),f=s(795),p=s(336),d=s(502);const h=c.t,g=d.n,y=f.O;export{h as useInputIsComposing,g as useRipples,y as useTimeId};export const BackgroundRipple=u.z;export const EnLayout=l.wb;export const EnLayoutContent=l.Ht;export const EnLayoutFooter=l.zE;export const EnLayoutHeader=l.n5;export const EnLayoutSideBar=l.AX;export const Layout=l.PE;export const LayoutContent=l.A1;export const LayoutFooter=l.cZ;export const LayoutHeader=l.KL;export const LayoutSideBar=l.nb;export const useAnimationFrameId=p.M;
1
+ "use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import*as r from"react";import{xcn as n}from"xcn";import{setStyle as i}from"a-element-inline-style";var o={161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},184:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},258:(e,t,r)=>{r.d(t,{z:()=>w});var n=r(649),i=r(950),o=r(362);r(713);function a(e){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=(0,n.useRef)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t.option)),i=t.option;(0,n.useEffect)(function(){i&&e.current&&Object.keys(e.current.defaults).forEach(function(t){var n,a,u=i[t],l=(n=u,a=r.current[t],(0,o.isArray)(n)&&(0,o.isArray)(a)&&(n.length!==a.length||!n.every(function(e){return n[e]===a[e]}))||(!(0,o.isArray)(n)||!(0,o.isArray)(a))&&n!==a);e.current&&l&&(r.current[t]=(0,o.isArray)(u)?s(u):i[t],e.current.set(t,u))})},[i])}var d=r(291);function p(e){"@babel/helpers - typeof";return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var h,g=["children","style"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=d.Ay.div(h||(h=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n width: 100%;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n contain: layout paint style;\n will-change: transform, opacity;\n"]))),w=(0,n.forwardRef)(function(e,t){var r=e.children,a=e.style,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,g),u=(0,n.useRef)(null),l=(0,i.n)(u,s);return f(l,s),(0,n.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null===(e=l.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=l.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=l.current)||void 0===e||e.pause()},set:function(e){if(!(0,o.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,a=t[r];null===(i=l.current)||void 0===i||i.set(a,e[a])}}}}),n.default.createElement(b,{style:m({backgroundRepeat:"round"},a)},n.default.createElement("canvas",{ref:u,"data-earthnut-ui":"canvas"}),r)});w.displayName="en-background-ripple"},291:(e,t,r)=>{r.d(t,{AH:()=>zt,Ay:()=>Xt,I4:()=>Xt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(649),a=r(945),s=r.n(a),u="-ms-",l="-moz-",c="-webkit-",f="comm",d="rule",p="decl",h="@keyframes",g=Math.abs,y=String.fromCharCode,m=Object.assign;function v(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function E(e,t,r){return e.indexOf(t,r)}function S(e,t){return 0|e.charCodeAt(t)}function O(e,t,r){return e.slice(t,r)}function R(e){return e.length}function P(e){return e.length}function x(e,t){return t.push(e),e}function T(e,t){return e.filter(function(e){return!b(e,t)})}var A=1,j=1,k=0,I=0,D=0,_="";function N(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:A,column:j,length:a,return:"",siblings:s}}function C(e,t){return m(N("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function F(e){for(;e.root;)e=C(e.root,{children:[e]});x(e,e.siblings)}function L(){return D=I>0?S(_,--I):0,j--,10===D&&(j=1,A--),D}function $(){return D=I<k?S(_,I++):0,j++,10===D&&(j=1,A++),D}function U(){return S(_,I)}function B(){return I}function M(e,t){return O(_,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function H(e){return A=j=1,k=R(_=e),I=0,[]}function W(e){return _="",e}function X(e){return v(M(I-1,Y(91===e?e+2:40===e?e+1:e)))}function G(e){for(;(D=U())&&D<33;)$();return z(e)>2||z(D)>3?"":" "}function q(e,t){for(;--t&&$()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return M(e,B()+(t<6&&32==U()&&32==$()))}function Y(e){for(;$();)switch(D){case e:return I;case 34:case 39:34!==e&&39!==e&&Y(D);break;case 40:41===e&&Y(e);break;case 92:$()}return I}function V(e,t){for(;$()&&e+D!==57&&(e+D!==84||47!==U()););return"/*"+M(t,I-1)+"*"+y(47===e?e:$())}function Z(e){for(;!z(U());)$();return M(e,I)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function J(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case p:return e.return=e.return||e.value;case f:return"";case h:return e.return=e.value+"{"+K(e.children,n)+"}";case d:if(!R(e.value=e.props.join(",")))return""}return R(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function Q(e,t,r){switch(function(e,t){return 45^S(e,0)?(((t<<2^S(e,0))<<2^S(e,1))<<2^S(e,2))<<2^S(e,3):0}(e,t)){case 5103:return c+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+e+e;case 4789:return l+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return c+e+l+e+u+e+e;case 5936:switch(S(e,t+11)){case 114:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return c+e+u+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return c+e+u+e+e;case 6165:return c+e+u+"flex-"+e+e;case 5187:return c+e+w(e,/(\w+).+(:[^]+)/,c+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return c+e+u+"flex-item-"+w(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":u+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return c+e+u+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return c+e+u+w(e,"shrink","negative")+e;case 5292:return c+e+u+w(e,"basis","preferred-size")+e;case 6060:return c+"box-"+w(e,"-grow","")+c+e+u+w(e,"grow","positive")+e;case 4554:return c+w(e,/([^-])(transform)/g,"$1"+c+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+e+e;case 4200:if(!b(e,/flex-|baseline/))return u+"grid-column-align"+O(e,t)+e;break;case 2592:case 3360:return u+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,b(e.props,/grid-\w+-end/)})?~E(e+(r=r[t].value),"span",0)?e:u+w(e,"-start","")+e+u+"grid-row-span:"+(~E(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":u+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return b(e.props,/grid-\w+-start/)})?e:u+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,c+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(R(e)-1-t>6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+l+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch",0)?Q(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===S(e,t+6))return w(e,":",":"+c)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===S(e,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+u+"$2box$3")+e;case 100:return w(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case p:return void(e.return=Q(e.value,e.length,r));case h:return K([C(e,{value:w(e.value,"@","@"+c)})],n);case d:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":F(C(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),F(C(e,{props:[t]})),m(e,{props:T(r,n)});break;case"::placeholder":F(C(e,{props:[w(t,/:(plac\w+)/,":"+c+"input-$1")]})),F(C(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),F(C(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),F(C(e,{props:[t]})),m(e,{props:T(r,n)})}return""})}}function te(e){return W(re("",null,null,null,[""],e=H(e),0,[0],e))}function re(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,d=0,p=0,h=0,m=1,v=1,b=1,O=0,P="",T=i,A=o,j=n,k=P;v;)switch(h=O,O=$()){case 40:if(108!=h&&58==S(k,f-1)){-1!=E(k+=w(X(O),"&","&\f"),"&\f",g(l?s[l-1]:0))&&(b=-1);break}case 34:case 39:case 91:k+=X(O);break;case 9:case 10:case 13:case 32:k+=G(h);break;case 92:k+=q(B()-1,7);continue;case 47:switch(U()){case 42:case 47:x(ie(V($(),B()),t,r,u),u);break;default:k+="/"}break;case 123*m:s[l++]=R(k)*b;case 125*m:case 59:case 0:switch(O){case 0:case 125:v=0;case 59+c:-1==b&&(k=w(k,/\f/g,"")),p>0&&R(k)-f&&x(p>32?oe(k+";",n,r,f-1,u):oe(w(k," ","")+";",n,r,f-2,u),u);break;case 59:k+=";";default:if(x(j=ne(k,t,r,l,c,i,s,P,T=[],A=[],f,o),o),123===O)if(0===c)re(k,t,j,j,T,o,f,s,A);else switch(99===d&&110===S(k,3)?100:d){case 100:case 108:case 109:case 115:re(e,j,j,n&&x(ne(e,j,j,0,0,i,s,P,i,T=[],f,A),A),i,A,f,s,n?T:A);break;default:re(k,j,j,j,[""],A,0,s,A)}}l=c=p=0,m=b=1,P=k="",f=a;break;case 58:f=1+R(k),p=h;default:if(m<1)if(123==O)--m;else if(125==O&&0==m++&&125==L())continue;switch(k+=y(O),O*m){case 38:b=c>0?1:(k+="\f",-1);break;case 44:s[l++]=(R(k)-1)*b,b=1;break;case 64:45===U()&&(k+=X($())),d=U(),c=f=R(P=k+=Z(B())),O++;break;case 45:45===h&&2==R(k)&&(m=0)}}return o}function ne(e,t,r,n,i,o,a,s,u,l,c,f){for(var p=i-1,h=0===i?o:[""],y=P(h),m=0,b=0,E=0;m<n;++m)for(var S=0,R=O(e,p+1,p=g(b=a[m])),x=e;S<y;++S)(x=v(b>0?h[S]+" "+R:w(R,/&\f/g,h[S])))&&(u[E++]=x);return N(e,t,r,0===i?d:s,u,l,c,f)}function ie(e,t,r,n){return N(e,t,r,f,y(D),O(e,2,-2),0,n)}function oe(e,t,r,n,i){return N(e,t,r,p,O(e,0,n),O(e,n+1,-1),n,i)}var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",le="data-styled-version",ce="6.1.19",fe="/*!sc*/\n",de="undefined"!=typeof window&&"undefined"!=typeof document,pe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),he=(new Set,Object.freeze([])),ge=Object.freeze({});function ye(e,t,r){return void 0===r&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var me=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ve=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ve,"-").replace(be,"")}var Ee=/(a)(d)/gi,Se=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Se(t%52)+r;return(Se(t%52)+r).replace(Ee,"$1-$2")}var Re,Pe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},xe=function(e){return Pe(5381,e)};function Te(e){return Oe(xe(e)>>>0)}function Ae(e){return e.displayName||e.name||"Component"}function je(e){return"string"==typeof e&&!0}var ke="function"==typeof Symbol&&Symbol.for,Ie=ke?Symbol.for("react.memo"):60115,De=ke?Symbol.for("react.forward_ref"):60112,_e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ne={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Re={})[De]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re[Ie]=Ce,Re);function Le(e){return("type"in(t=e)&&t.type.$$typeof)===Ie?Ce:"$$typeof"in e?Fe[e.$$typeof]:_e;var t}var $e=Object.defineProperty,Ue=Object.getOwnPropertyNames,Be=Object.getOwnPropertySymbols,Me=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,He=Object.prototype;function We(e,t,r){if("string"!=typeof t){if(He){var n=ze(t);n&&n!==He&&We(e,n,r)}var i=Ue(t);Be&&(i=i.concat(Be(t)));for(var o=Le(e),a=Le(t),s=0;s<i.length;++s){var u=i[s];if(!(u in Ne||r&&r[u]||a&&u in a||o&&u in o)){var l=Me(t,u);try{$e(e,u,l)}catch(e){}}}}return e}function Xe(e){return"function"==typeof e}function Ge(e){return"object"==typeof e&&"styledComponentId"in e}function qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ye(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ve(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ze(e,t,r){if(void 0===r&&(r=!1),!r&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ze(e[n],t[n]);else if(Ve(t))for(var n in t)e[n]=Ze(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Qe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},it=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},ot="style[".concat(se,"][").concat(le,'="').concat(ce,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ut=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(at);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(it(c,l),st(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},lt=function(e){for(var t=document.querySelectorAll(ot),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(se)!==ue&&(ut(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ct(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(se,ue),n.setAttribute(le,ce);var a=ct();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},dt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),pt=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ht=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gt=de,yt={isServer:!de,useCSSOMInjection:!pe},mt=function(){function e(e,t,r){void 0===e&&(e=ge),void 0===t&&(t={});var i=this;this.options=n(n({},yt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&de&&gt&&(gt=!1,lt(this)),Ke(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return tt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(fe)},o=0;o<r;o++)i(o);return n}(i)})}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&de&&lt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new ht(r):t?new dt(r):new pt(r)}(this.options),new Qe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),vt=/&/g,bt=/^\s*\/\/.*$/gm;function wt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=wt(e.children,t)),e})}function Et(e){var t,r,n,i=void 0===e?ge:e,o=i.options,a=void 0===o?ge:o,s=i.plugins,u=void 0===s?he:s,l=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=u.slice();c.push(function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(vt,r).replace(n,l))}),a.prefix&&c.push(ee),c.push(J);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(bt,""),l=te(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(l=wt(l,a.namespace));var f,d,p,h=[];return K(l,(f=c.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),d=P(f),function(e,t,r,n){for(var i="",o=0;o<d;o++)i+=f[o](e,t,r,n)||"";return i})),h};return f.hash=u.length?u.reduce(function(e,t){return t.name||Je(15),Pe(e,t.name)},5381).toString():"",f}var St=new mt,Ot=Et(),Rt=o.default.createContext({shouldForwardProp:void 0,styleSheet:St,stylis:Ot}),Pt=(Rt.Consumer,o.default.createContext(void 0));function xt(){return(0,o.useContext)(Rt)}function Tt(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=xt().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)(function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}},[e.shouldForwardProp,a,u]);return o.default.createElement(Rt.Provider,{value:l},o.default.createElement(Pt.Provider,{value:u},e.children))}var At=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ot);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,function(){throw Je(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ot),this.name+e.hash},e}(),jt=function(e){return e>="A"&&e<="Z"};function kt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;jt(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var It=function(e){return null==e||!1===e||""===e},Dt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!It(a)&&(Array.isArray(a)&&a.isCss||Xe(a)?n.push("".concat(kt(o),":"),a,";"):Ve(a)?n.push.apply(n,i(i(["".concat(o," {")],Dt(a),!1),["}"],!1)):n.push("".concat(kt(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function _t(e,t,r,n){return It(e)?[]:Ge(e)?[".".concat(e.styledComponentId)]:Xe(e)?!Xe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:_t(e(t),t,r,n):e instanceof At?r?(e.inject(r,n),[e.getName(n)]):[e]:Ve(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map(function(e){return _t(e,t,r,n)})):[e.toString()];var i}function Nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xe(r)&&!Ge(r))return!1}return!0}var Ct=xe(ce),Ft=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Nt(e),this.componentId=t,this.baseHash=Pe(Ct,t),this.baseStyle=r,mt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=qe(n,this.staticRulesId);else{var i=Ye(_t(this.rules,e,t,r)),o=Oe(Pe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=qe(n,o),this.staticRulesId=o}else{for(var s=Pe(this.baseHash,r.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var f=Ye(_t(c,e,t,r));s=Pe(s,f+l),u+=f}}if(u){var d=Oe(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,r(u,".".concat(d),void 0,this.componentId)),n=qe(n,d)}}return n},e}(),Lt=o.default.createContext(void 0);Lt.Consumer;var $t={};new Set;function Ut(e,t,r){var i=Ge(e),a=e,s=!je(e),u=t.attrs,l=void 0===u?he:u,c=t.componentId,f=void 0===c?function(e,t){var r="string"!=typeof e?"sc":we(e);$t[r]=($t[r]||0)+1;var n="".concat(r,"-").concat(Te(ce+r+$t[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return je(e)?"styled.".concat(e):"Styled(".concat(Ae(e),")")}(e):d,h=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,g=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(i&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;y=function(e,t){return m(e,t)&&v(e,t)}}else y=m}var b=new Ft(r,h,i?a.componentStyle:void 0);function w(e,t){return function(e,t,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.styledComponentId,c=e.target,f=o.default.useContext(Lt),d=xt(),p=e.shouldForwardProp||d.shouldForwardProp,h=ye(t,f,s)||ge,g=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Xe(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?qe(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=qe(o.className,t.className)),o}(i,t,h),y=g.as||c,m={};for(var v in g)void 0===g[v]||"$"===v[0]||"as"===v||"theme"===v&&g.theme===h||("forwardedAs"===v?m.as=g.forwardedAs:p&&!p(v,y)||(m[v]=g[v]));var b=function(e,t){var r=xt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,g),w=qe(u,l);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),m[je(y)&&!me.has(y)?"class":"className"]=w,r&&(m.ref=r),(0,o.createElement)(y,m)}(E,e,t)}w.displayName=p;var E=o.default.forwardRef(w);return E.attrs=g,E.componentStyle=b,E.displayName=p,E.shouldForwardProp=y,E.foldedComponentIds=i?qe(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=h,E.target=i?a.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ze(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Ke(E,function(){return".".concat(E.styledComponentId)}),s&&We(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Bt(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var Mt=function(e){return Object.assign(e,{isCss:!0})};function zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xe(e)||Ve(e))return Mt(_t(Bt(he,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?_t(n):Mt(_t(Bt(n,t)))}function Ht(e,t,r){if(void 0===r&&(r=ge),!t)throw Je(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,zt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return Ht(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Ht(e,t,n(n({},r),i))},o}var Wt=function(e){return Ht(Ut,e)},Xt=Wt;me.forEach(function(e){Xt[e]=Wt(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Nt(e),mt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(Ye(_t(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&mt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=ct(),n=Ye([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(le,'="').concat(ce,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[se]="",t[le]=ce,t.dangerouslySetInnerHTML={__html:r},t),a=ct();return a&&(i.nonce=a),[o.default.createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new mt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return o.default.createElement(Tt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(se,"__")},335:e=>{e.exports=function(e){return e[1]}},336:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(649);function i(){var e=(0,n.useRef)(0);return(0,n.useEffect)(function(){return function(){e.current&&window.cancelAnimationFrame(e.current)}},[]),e}},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isNumber:()=>t.isNumber,isString:()=>t.isString,isTrue:()=>t.isTrue,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},372:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],l=n.base?u[0]+n.base:u[0],c=o[l]||0,f="".concat(l," ").concat(c);o[l]=c+1;var d=r(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=i(p,n);n.byIndex=s,t.splice(s,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function i(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=r(o[a]);t[s].references--}for(var u=n(e,i),l=0;l<o.length;l++){var c=r(o[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=u}}},428:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},429:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},592:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},621:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(335),i=r.n(n),o=r(184),a=r.n(o)()(i());a.push([e.id,"@keyframes marqueeBorder{0%,100%{border-image-source:linear-gradient(to right, rgba(0, 255, 255, 0) 0%, #0ff 0%, rgba(0, 0, 0, 0) 0%);border-image-slice:100% 0 0 0}5%{border-image-source:linear-gradient(to right, rgba(0, 255, 255, 0.6666666667) 0%, #0ff 20%, rgba(0, 0, 0, 0) 20%);border-image-slice:100% 0 0 0}10%{border-image-source:linear-gradient(to right, #0ff 0%, rgba(0, 255, 255, 0.4) 30%);border-image-slice:100% 0 0 0}25%{border-image-source:linear-gradient(#ff0, #ff00e0);border-image-slice:0 100% 0 0}50%{border-image-source:linear-gradient(#ff0, rgba(0, 102, 102, 0));border-image-slice:0 0 100% 0}75%{border-image-source:linear-gradient(#ff0, rgba(0, 102, 102, 0));border-image-slice:0 0 0 100%}}",""]);const s=a},649:(e,t,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({Children:()=>r.Children,Fragment:()=>r.Fragment,cloneElement:()=>r.cloneElement,createElement:()=>r.createElement,default:()=>r.default,forwardRef:()=>r.forwardRef,isValidElement:()=>r.isValidElement,useContext:()=>r.useContext,useEffect:()=>r.useEffect,useImperativeHandle:()=>r.useImperativeHandle,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState})},661:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},713:()=>{function e(t){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}new(function(){return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1})},785:(e,t,r)=>{r.d(t,{wb:()=>fe,Ht:()=>w,zE:()=>P,n5:()=>c,AX:()=>g,PE:()=>fe,A1:()=>w,cZ:()=>P,KL:()=>c,nb:()=>g});var i,o=r(649),a=r(291),s=["className","children","height","noSticky"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}var l=a.Ay.div(i||(i=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: header;\n position: sticky;\n top: 0px;\n left: 0px;\n z-index: 10;\n height: var(--layout-header-height);\n box-shadow: 0 4px 13px -3px #0000001a;\n overflow: hidden;\n"]))),c=o.default.forwardRef(function(e,t){var r=e.className,i=e.children,a=(e.height,e.noSticky,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s));return o.default.createElement(l,u({ref:t,className:n(["en-layout-header"],r)},a,{"data-earthnut-ui":"layout-header"}),i)});c.displayName="LayoutHeader";var f,d=["className","width","right","full"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}var h=a.Ay.div(f||(f=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: sticky;\n left: 0;\n z-index: 8;\n grid-area: side;\n overflow-x: hidden;\n overflow-y: auto;\n"]))),g=o.default.forwardRef(function(e,t){var r=e.className,i=(e.width,e.right,e.full,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d));return o.default.createElement(h,p({className:n("en-layout-side",r),ref:t},i,{"data-earthnut-ui":"layout-side-bar"}))});g.displayName="LayoutSideBar";var y,m=["className"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}var b=a.Ay.main(y||(y=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n"]))),w=o.default.forwardRef(function(e,t){var r=e.className,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,m);return o.default.createElement(b,v({ref:t,className:n("en-layout-main",r)},i,{"data-earthnut-ui":"layout-content"}))});w.displayName="LayoutContent";var E,S=["className","height"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}var R=a.Ay.div(E||(E=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: footer;\n height: var(--layout-footer-height);\n box-shadow: 0 -1px 13px 0px #0000001a;\n overflow: hidden;\n"]))),P=o.default.forwardRef(function(e,t){var r=e.className,i=(e.height,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,S));return o.default.createElement(R,O({ref:t},i,{className:n("en-layout-footer",r),"data-earthnut-ui":"layout-footer"}))});P.displayName="LayoutFooter";var x,T,A,j,k,I,D,_,N,C,F,L,$,U,B,M,z,H,W,X,G,q,Y,V,Z,K=r(362);function J(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Q=a.I4.div(x||(x=J(["\n position: relative;\n top: 0px;\n width: var(--layout-width);\n height: var(--layout-height);\n overflow-x: hidden;\n overflow-y: auto;\n\n ","\n // 侧边栏全屏样式\n ","\n\n // ------------------------------\n // --- 标准模式(全)与侧边栏右置(全)共用样式 ---\n // 标准模式(全)与侧边栏右置(全)\n ","\n\n // 标准模式(全) 侧边栏与内容区设置\n ","\n // 侧边栏(全) 侧边栏与内容区设置\n ","\n\n // 侧边栏 (全) 左侧全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n \n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 标准模式(无 header)与侧边栏在右侧的无头模式共用样式 ---\n // 标准的无头模式样式、侧边栏在右侧的无头模式样式\n ","\n \n // 侧边栏(无 header )全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n\n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // 标准模式(无 footer)与侧边栏右置(无 footer)共用样式\n // 没有 footer\n ","\n \n\n // 标准模式(无 footer) 侧边栏与内容区设置\n ","\n\n\n// 侧边栏在右侧的无 footer 模式样式\n ","\n\n// 侧边栏 (全) 左侧全屏\n// side bar 居左全尺寸\n// side bar 值由 en-layout-side-full 控制\n","\n\n// 标准的 side bar 居左全尺寸\n ","\n\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 分割线 --- \n // 下面是仅头部、底部和侧边栏布局\n // 仅底部布局\n ","\n\n // 仅头部布局\n ","\n \n // 仅侧边布局\n// 标准的无头模式样式、侧边栏在右侧的无头模式样式\n// side bar 值由 en-layout-side-full 控制\n ","\n \n // 右侧侧边布局\n ","\n"])),function(e){var t=e.$headerNoSticky,r=e.$header,n=e.$layoutType,i=e.$content,o=e.$sidebar;return t&&(0,a.AH)(T||(T=J(["\n // 头部不粘连样式,头部区域设置\n & > ."," {\n position: relative;\n z-index: 2;\n }\n\n ","\n\n ","\n "])),r,("simple-all"===n||"side-right-all"===n)&&(0,a.AH)(A||(A=J(["\n & > ."," > ."," {\n top: 0;\n min-height: calc(\n var(--layout-height) - var (--layout-footer-height) - var(--layout-header-height)\n );\n max-height: var(--layout-height);\n }\n "])),i,o),("simple-no-footer"===n||"side-right-no-footer"===n)&&(0,a.AH)(j||(j=J(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),o))},function(e){var t=e.$layoutType,r=e.$sidebar;return"side-full"===t&&(0,a.AH)(k||(k=J(["\n & > ."," {\n top: 0;\n height: var(--layout-height);\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-all","side-right-all"].includes(t)&&(0,a.AH)(I||(I=J(["\n // 子元素\n & > ."," {\n display: grid;\n grid-template-rows:\n calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height))\n auto;\n min-height: calc(100% - var(--layout-header-height) - var(--layout-footer-height));\n\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n min-height: calc(\n var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)\n );\n max-height: calc(var(--layout-height) - var(--layout-header-height));\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType,r=e.$content;return["simple-all","simple-no-header"].includes(t)&&(0,a.AH)(D||(D=J(["\n & > ."," {\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n '. content';\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content;return["side-right-all","side-right-no-header"].includes(t)&&(0,a.AH)(_||(_=J(["\n & > ."," {\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'content .';\n }\n "])),r)},function(e){var t=e.$layoutType;return["side-full-all","side-right-full-all"].includes(t)&&(0,a.AH)(N||(N=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-all"===e.$layoutType&&(0,a.AH)(C||(C=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-all"===e.$layoutType&&(0,a.AH)(F||(F=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-no-header","side-right-no-header"].includes(t)&&(0,a.AH)(L||(L=J(["\n & > ."," {\n display: grid;\n grid-template-rows: auto;\n // side bar 块的样式\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType;return["side-full-no-header","side-right-full-no-header"].includes(t)&&(0,a.AH)($||($=J(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-no-header"===e.$layoutType&&(0,a.AH)(U||(U=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-no-header"===e.$layoutType&&(0,a.AH)(B||(B=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$sidebar;return["simple-no-footer","side-right-no-footer"].includes(t)&&(0,a.AH)(M||(M=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n min-height: calc(100% - var(--layout-header-height));\n gap: 0px;\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n height: calc(var(--layout-height) - var(--layout-header-height));\n }\n "])),r)},function(e){return"simple-no-footer"===e.$layoutType&&(0,a.AH)(z||(z=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'header header'\n 'side content'\n '. content';\n "])))},function(e){return"side-right-no-footer"===e.$layoutType&&(0,a.AH)(H||(H=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header header'\n 'content side'\n 'content .';\n "])))},function(e){var t=e.$layoutType,r=e.$main;return["side-full-no-footer","side-right-full-no-footer"].includes(t)&&(0,a.AH)(W||(W=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n gap: 0px;\n\n // content 块\n & > ."," {\n min-height: calc(var(--layout-height) - var (--layout-header-height));\n }\n "])),r)},function(e){return"side-full-no-footer"===e.$layoutType&&(0,a.AH)(X||(X=J(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content';\n "])))},function(e){return"side-right-full-no-footer"===e.$layoutType&&(0,a.AH)(G||(G=J(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side';\n "])))},function(e){return"only-footer"===e.$layoutType&&(0,a.AH)(q||(q=J(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'content' 'footer';\n "])))},function(e){return"only-header"===e.$layoutType&&(0,a.AH)(Y||(Y=J(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'header' 'content';\n "])))},function(e){var t=e.$layoutType;return["simple-only-side","side-right-only-side","side-full-only-side","side-right-full-only-side"].includes(t)&&(0,a.AH)(V||(V=J(["\n display: grid;\n // 纵向空间占比设置\n grid-template-rows: 100%;\n // 横向空间占比设置\n grid-template-columns: var(--layout-side-bar-width) auto;\n gap: 0px;\n grid-template-areas:\n 'side content'\n '. content';\n "])))},function(e){var t=e.$layoutType;return("side-right-full-only-side"===t||"side-right-only-side"===t)&&(0,a.AH)(Z||(Z=J(["\n grid-template-areas:\n 'content side'\n 'content .';\n grid-template-columns: auto var(--layout-side-bar-width);\n "])))});function ee(e){return(0,K.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}var te=r(161);function re(e){return"en-"+e+"-"+(0,te.getRandomString)({length:12,includeNumbers:!0,includeUppercaseLetters:!0})}function ne(e){"@babel/helpers - typeof";return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}var ie,oe=["className","children","style","width","height","classes"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(null,arguments)}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach(function(t){le(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ce=a.Ay.div(ie||(ie=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n overflow: auto;\n"]))),fe=o.forwardRef(function(e,t){var r,i,a,s,u=e.className,l=e.children,f=e.style,d=e.width,p=void 0===d?"100vw":d,h=e.height,y=void 0===h?"100vh":h,m=e.classes,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,oe),b="simple",E=!1,S=!1,O=!1,R=!1,x=!1,T=150,A="2.8rem",j="2rem",k=!1,I=re("header"),D=re("content"),_=re("main"),N=re("sidebar"),C=re("footer");o.Children.forEach(l,function(e){if(o.isValidElement(e))if(S||e.type!==c)if(O||e.type!==g)if(R||e.type!==w)if(R||e.type!==fe){if(!x&&e.type===P){var t=e;j=t.props.height||j,s=o.cloneElement(t,{className:n(C,t.props.className)}),x=!0}}else{var u=e;a=o.createElement(ce,{"data-earthnut-ui":"layout-content",className:n(_,"en-layout-main")},u),R=!0}else{var l=e;a=o.cloneElement(l,{className:n(_,l.props.className)}),R=!0}else{var f=e,d=f.props;T=d.width||T,b=d.right&&d.full?"side-right-full":d.right?"side-right":d.full?"side-full":"simple",k=(0,K.isTrue)(d.full),i=o.cloneElement(f,{className:n(N,f.props.className)}),O=!0}else{var p,h=e,y=h.props;A=y.height||A,E=null!==(p=y.noSticky)&&void 0!==p&&p,r=o.cloneElement(h,{className:n(I,h.props.className)}),S=!0}});var F=S&&O&&R&&x&&"".concat(b,"-all")||S&&R&&O&&"".concat(b,"-no-footer")||O&&R&&x&&"".concat(b,"-no-header")||R&&x&&"only-footer"||R&&S&&"only-header"||R&&O&&(k=!0)&&"".concat(b,"-only-side")||"simple",L=ue({layoutHeight:p,layoutWith:y,sideBarWidth:T,headerHeight:A,footerHeight:j},v.theme||{}),$=/side.*full/.test(b);return o.createElement(Q,ae({ref:t,$headerNoSticky:E,$layoutType:F,$header:I,$sidebar:N,$main:_,$content:D,$footer:C,className:n(k&&"en-layout-side-full","en-layout-".concat(F),u,m),style:ue({"--layout-width":ee(p),"--layout-height":ee(y),"--layout-side-bar-width":ee(T),"--layout-header-height":ee(A),"--layout-footer-height":ee(j)},f),theme:L},v,{"data-earthnut-ui":"layout"}),$?o.createElement(o.Fragment,null,i,r,a,s):o.createElement(o.Fragment,null,r,x?o.createElement("div",{className:n(D),"data-earthnut-ui":"layout-with-foot-content"},i,a):o.createElement(o.Fragment,null,i,a),s))});fe.displayName="Layout"},795:(e,t,r)=>{r.d(t,{O:()=>i});var n=r(649);function i(){var e=(0,n.useRef)(void 0);return(0,n.useEffect)(function(){return function(){e.current&&clearTimeout(e.current)}},[]),e}},945:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=r?r.call(n,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},950:(e,t,r)=>{r.d(t,{n:()=>nt});var n=r(649),o=r(362);function a(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var a,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,l=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=l.exec(u));){var c=a[2];s.locations[c]=r.getUniformLocation(s.id,c)}return s}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function u(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function l(e){return"none"===e||""===e}function c(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce(function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e},[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,l=0;l<i.length;l++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[l].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[l];break}return u}function f(e){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var y=p(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"canvas",void 0),h(this,"gl",void 0),h(this,"config",void 0),h(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,o.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(c,this,[])}),m=r(161),v={imgUrl:null,resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0,darkMode:void 0};Object.freeze(v);var b;r(713);function w(e){"@babel/helpers - typeof";return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function O(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function R(e,t,r){return e.set(x(e,t),r),r}function P(e,t){return e.get(x(e,t))}function x(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function T(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={list:[],diameter:48,radius:0,cells:0};r.diameter%2!=0&&r.diameter++;var n=r.diameter,i=r.list,o=n/2;r.radius=o,r.cells=Math.pow(n,2);for(var a=0;a<n;a++){i[a]=[];for(var s=0;s<n;s++)i[a][s]=[0,0,0,0]}for(var u=0;u<=o;u++)for(var l=function(){var e=i[u][c],r=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(c,2)))<=o,n=t?10:255,a=t?25:190,s=r?t?160:120:t?160:180,l=r?t?230:160:t?250:240,f=function(){return(0,m.getRandomInt)(n,a)};e[0]=f(),e[1]=f(),e[2]=f(),e[3]=(0,m.getRandomInt)(s,l)},c=u;c<=o;c++)l();for(var f=0;f<=o;f++)for(var d=0;d<=f;d++)i[f][d]=i[d][f];for(var p=o;p<n;p++)for(var h=0;h<=o;h++)i[p][h]=i[n-p][h];for(var g=0;g<o;g++)for(var y=o;y<n;y++)i[g][y]=i[g][n-y];for(var v=o;v<n;v++)for(var b=o;b<n;b++)i[v][b]=i[v][n-b];var w=e%n;return r.list=[].concat(T(i.slice(w)),T(i.slice(0,w))),r},k=new(b=new WeakMap,function(){return function(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,b,1),function(e,t,r){(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",j())},[{key:"build",value:function(e){P(b,this)>100&&R(b,this,0),this.data=j(R(b,this,P(b,this)+4),e)}}])}());function I(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),a=n.getContext("2d");return(0,o.isNull)(i)||(0,o.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),a.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=k.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var l=u/4%s,c=l%e%o,f=Math.floor(l/e),d=a[c][f];n[u]=d[0],n[u+1]=d[1],n[u+2]=d[2],n[u+3]=d[3]}return r}(e,t),0,0),a.fillStyle="#ffffff",a.fillRect(0,0,e,t),a.drawImage(r,0,0,e||1,t||1),a.globalCompositeOperation="source-over",n)}function D(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this.fadeData,n=this.options,i=r.backgroundInfo,o=r.toBeList,a=i.width,s=i.height,u=(0,m.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});k.build(null!==(e=n.darkMode)&&void 0!==e?e:r.isDark),o.push({resource:I(a,s),width:a,height:s,kind:"default",tag:u}),t&&r.run()}function _(e,t){var r,n,i=e.imgUrl;return(0,o.isString)(i)&&i||(r=t.backgroundImage,n=/url\(["']?([^"']*)["']?\)/.exec(r),(0,o.isNull)(n)?null:n[1])}function N(e,t){return(0,o.isArray)(e.imgUrl)&&1===e.imgUrl.length&&e.imgUrl[0]||t.backgroundColor}function C(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,o.isNull)(e))return Reflect.apply(D,this,[]);var n=e.originStyle;if(u(n.backgroundColor)&&(!(0,o.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(D,this,[]);var i=document.createElement("canvas"),a=i.getContext("2d");if((0,o.isNull)(a))return Reflect.apply(D,this,[]);var s=t.backgroundInfo,l=s.width,c=s.height;i.width=l,i.height=c,a.clearRect(0,0,l,c);var f=N(r,n);a.beginPath(),a.fillStyle=f,a.fillRect(0,0,l,c),a.fill(),t.isTransitioning&&!(0,o.isEmptyArray)(t.toBeList)?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var d={resource:i,kind:"background-color",tag:f,width:l,height:c};t.toBeList.push(d),t.run()}function F(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(C,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(C,this,[]);var i=(0,o.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map(function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e}).filter(function(e){return e.startsWith("rgb")||e.startsWith("#")});if(i.length<2)return Reflect.apply(C,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(C,this,[]);var u=e.backgroundInfo,l=u.width,c=u.height;a.width=l,a.height=c,s.fillStyle="#fff",s.fillRect(0,0,l,c);var f=s.createLinearGradient(0,0,0,c);i.forEach(function(e,t){return f.addColorStop(t/(i.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,l,c),e.isTransitioning&&!(0,o.isEmptyArray)(e.toBeList)?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:i.join("_"),width:l,height:c}),e.run()}function L(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(F,this,[]);else{var i=t.lastUseStyle,a=n.backgroundInfo,s=a.width,u=a.height,l=_(r,i);if(t.imageSource=l,l){var c=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(l,s,u);c.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,o.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat(L(n.toBeList.slice(1).filter(function(e){return"image"===e.kind&&(Math.abs(e.width-s)>2||Math.abs(e.height-u)>2||e.tag!==l)}))):n.toBeList=[],n.toBeList.push({resource:c,width:s,height:u,kind:"image",tag:l}),n.run()},c.onerror=function(){Reflect.apply(F,e,[])},c.crossOrigin=r.crossOrigin}else Reflect.apply(F,this,[])}}function B(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach(function(e){return t.style.setProperty(e[0],e[1],"important")})}}function M(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function z(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function H(e){"@babel/helpers - typeof";return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function X(e,t,r){return(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}var q=function(){return function(e,t,r){return t&&W(e.prototype,t),r&&W(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"quad",null),X(this,"lastRaindropsFallTime",0),X(this,"parentElement",void 0),X(this,"mutationObserver",void 0),X(this,"resizeObserver",void 0),X(this,"renderProgram",void 0),X(this,"imageSource",""),X(this,"dropProgram",void 0),X(this,"updateProgram",void 0),X(this,"textures",[]),X(this,"backgroundTexture",[]),X(this,"textureDelta",void 0),X(this,"framebuffers",[]),X(this,"bufferWriteIndex",0),X(this,"bufferReadIndex",1),X(this,"originStyle",void 0),X(this,"lastUseStyle",void 0),X(this,"events",{}),X(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(B,n,[]),this.originStyle=this.lastUseStyle=M(this.parentElement),this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){if(e.target===a.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(a.lastUseStyle),i=M(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(m.enArr.difference(t,s)))return;var c=l(i.backgroundImage),f=u(i.backgroundColor);if(c&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply(B,n,[])}})}),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver(function(e){e.forEach(function(e){e.target===a.parentElement&&Reflect.apply(r,n,[])})}),this.resizeObserver.observe(this.parentElement)},[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(z,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach(function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])}),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function Y(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r,n,i,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,l=s.backgroundAttachment,c=s.backgroundPosition,f=/\s+/.test(r=c)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):V(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],d={left:0,top:0,width:0,height:0};"fixed"===l?(d.height=window.innerHeight,d.left=window.screenX,d.top=window.screenY,d.width=window.innerWidth):(d.left=0,d.top=0,d.width=a.scrollWidth,d.height=a.scrollHeight);var p=t.backgroundInfo||{width:100,height:100},h=p.width,g=p.height;if("cover"===u){var y=Math.max(d.width/h,d.height/g);n=h*y,i=g*y}else if("contain"===u){var m=Math.min(d.width/h,d.height/g);n=h*m,i=g*m}else{var v=u.split(" ");n=v[0]||"",i=v[1]||n,V(n)?n=d.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),V(i)?i=d.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=h,i=g):("auto"===n&&(n=h*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/h)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=V(b)?(d.left+(d.width-Number(n))*parseFloat(b)/100).toString():(d.left+parseFloat(b)).toString(),w=V(w)?(d.top+(d.height-Number(i))*parseFloat(w)/100).toString():(d.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/i]);var E=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/E,this.canvas.height/E])}}function V(e){return e.endsWith("%")}function Z(){var e=this.gl,t=this.renderData;(0,o.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function K(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.textures,i=t.backgroundTexture,a=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(s,this,[i,0]),Reflect.apply(s,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,a),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(Z,this,[]),e.disable(e.BLEND)}}function J(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function Q(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.updateProgram,i=t.textures,a=t.framebuffers,u=t.bufferWriteIndex,l=t.bufferReadIndex,c=r.resolution;e.viewport(0,0,c,c),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[l]]),e.useProgram(n.id),Reflect.apply(Z,this,[]),Reflect.apply(J,this,[])}}function ee(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)){var i=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,l=r.lastRunningState,c=getComputedStyle(i);n.backgroundInfo={width:parseInt(c.width),height:parseInt(c.height)},Reflect.apply(Y,this,[]),s?(l||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(Q,this,[]),Reflect.apply(K,this,[])):l&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(ee,e,[])})}}function te(e,t,r){var n=this.renderData;if(!(0,o.isNull)(n)){var i=n.parentElement,a=window.getComputedStyle(i),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,l=i.getBoundingClientRect(),c=e.clientX-l.left-s,f=e.clientY-l.top-u;this.drop(c,f,t,r)}}function re(){var e=this,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.parentElement,i=t.events,a=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(te,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},i.mousedown=function(e){return a(e,!0)},Object.keys(i).forEach(function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})})}}var ne="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function ie(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.textureDelta;t.dropProgram=a(ne,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=a(ne,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=a("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function oe(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function ae(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,o.isNull)(r)){var i=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,l=s.height,c=function(e){return(0,o.isZero)(e&e-1)},f=c(u)&&c(l)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),a.dataset.render_img=e.tag,a.dataset.render_width=e.width+"px",a.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function se(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)&&this.config){var i=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,l=1/s;t.textureDelta=new Float32Array([l,l]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var c=this.config.arrayType,f=c?new c(s*s*4):null,d=this.config,p=0;p<2;p++){var h=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,h),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,d.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,d.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,d.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,h,0),i.push(h),a.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(ie,this,[]),Reflect.apply(oe,this,[]),Reflect.apply(U,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(re,this,[]),Reflect.apply(ae,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(ee,e,[])})}}function ue(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=a,Reflect.apply(U,this,[])}}function le(){var e=this.renderData,t=this.fadeData;(0,o.isNull)(e)||(e.destroy(),Object.keys(e).forEach(function(t){return e[t]=null}),this.renderData=null),t.destroy(),Object.keys(t).forEach(function(e){return t[e]=null}),this.fadeData=null,this.gl&&(this.gl=null)}function ce(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var l=i.parentElement,c=i.dropProgram,f=i.textures,d=i.framebuffers,p=i.bufferWriteIndex,h=i.bufferReadIndex,g=a.resolution,y=l.offsetWidth,m=l.offsetHeight,v=Math.max(y,m);r/=v;var b=new Float32Array([(2*e-y)/v,(m-2*t)/v]);u.viewport(0,0,g,g),u.bindFramebuffer(u.FRAMEBUFFER,d[p]),Reflect.apply(s,this,[f[h]]),u.useProgram(c.id),u.uniform2fv(c.locations.center,b),u.uniform1f(c.locations.radius,r),u.uniform1f(c.locations.strength,n),Reflect.apply(Z,this,[]),Reflect.apply(J,this,[])}}function fe(e){"@babel/helpers - typeof";return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,he(n.key),n)}}function pe(e,t,r){return(t=he(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function he(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}function ge(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function ye(e,t){return e.get(ve(e,t))}function me(e,t,r){return e.set(ve(e,t),r),r}function ve(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var be=new WeakMap,we=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,Re=new WeakMap,Pe=new WeakMap,xe=new WeakMap,Te=function(){return function(e,t,r){return t&&de(e.prototype,t),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,be,v.accelerating),ge(this,we,v.interactive),ge(this,Ee,v.resolution),ge(this,Se,v.perturbance),ge(this,Oe,v.dropRadius),pe(this,"imgUrl",v.imgUrl),ge(this,Re,v.idleFluctuations),ge(this,Pe,v.raindropsTimeInterval),pe(this,"crossOrigin","no-cors"),pe(this,"visible",!1),pe(this,"running",!1),ge(this,xe,void 0),pe(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin,this.darkMode=t.darkMode},[{key:"accelerating",get:function(){return ye(be,this)},set:function(e){e>100||e<2||me(be,this,e)}},{key:"interactive",get:function(){return ye(we,this)},set:function(e){(0,o.isBoolean)(e)&&me(we,this,e)}},{key:"resolution",get:function(){return ye(Ee,this)},set:function(e){e<100||e>550||me(Ee,this,e)}},{key:"perturbance",get:function(){return ye(Se,this)},set:function(e){e<1e-4||e>1||me(Se,this,e)}},{key:"dropRadius",get:function(){return ye(Oe,this)},set:function(e){!isFinite(e)||e<10||me(Oe,this,e)}},{key:"idleFluctuations",get:function(){return ye(Re,this)},set:function(e){(0,o.isBoolean)(e)&&me(Re,this,e)}},{key:"raindropsTimeInterval",get:function(){return ye(Pe,this)},set:function(e){e<10||e>12e3||me(Pe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}},{key:"darkMode",get:function(){return ye(xe,this)},set:function(e){me(xe,this,(0,o.isUndefined)(e)?void 0:Boolean(e))}}])}();function Ae(){var e=this.fadeData,t=this.options,r=this.renderData;if((0,o.isNull)(r))return!0;var n=t.imgUrl,i=r.lastUseStyle,a=e.lastDrawImage,s=e.backgroundInfo,u=s.width,l=s.height,c=a.tag,f=a.kind,d=_(t,i),p=a.width===u,h=a.height===l,g=p&&h;if("image"===f&&g&&(0,o.isString)(d)&&d===c)return!0;var y=(0,o.isArray)(n)&&n.join("_")||"";if("linear-gradient"===f&&g&&y===c)return!0;var m=N(t,i);return!("background-color"!==f||!g||c!==m)}function je(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout(function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(je,e,[]);Reflect.apply(Ae,e,[])||r.run()},2*t.raindropsTimeInterval)}function ke(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,o.isNull)(e))return Reflect.apply(Ie,this,["还没有准备好,即将退出"]);if((0,o.isEmptyArray)(n))return Reflect.apply(Ie,this,["由于缺少当前渲染的背景,退出"]);if(0===t.drawProgress&&n.forEach(function(e){}),t.drawProgress>1e3){if(t.lastDrawImage=n.shift(),Reflect.apply(ae,this,[t.lastDrawImage]),(0,o.isEmptyArray)(n)){var i=e.lastUseStyle;((0,o.isNull)(r.imgUrl)||(0,o.isBusinessEmptyString)(r.imgUrl)||(0,o.isZero)(r.imgUrl.length))&&u(i.backgroundColor)&&l(i.backgroundImage)&&Reflect.apply(D,this,[!1])}return Reflect.apply(Ie,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var c=document.createElement("canvas"),f=c.getContext("2d");if((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))return Reflect.apply(Ie,this,"环境值错误");var d=s.width,p=s.height;c.width=d,c.height=p,f.clearRect(0,0,d,p),f.drawImage(a.resource,0,0,d,p),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,d,p),f.globalAlpha=1;var h={resource:c,width:d,height:p,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(ae,this,[h]),n.length>1&&(t.lastDrawImage=h,n.shift(),t.drawProgress=0)}function Ie(e){this.fadeData.isTransitioning=!1,Reflect.apply(je,this,[])}function De(e){"@babel/helpers - typeof";return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fe(n.key),n)}}function Ne(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ce(e,t,r){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fe(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}function Le(e,t){return e.get($e(e,t))}function $e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var Ue=new WeakMap,Be=new WeakSet,Me=function(){return function(e,t,r){return t&&_e(e.prototype,t),r&&_e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){Ne(e,t),t.add(e)}(this,Be),Ce(this,"backgroundInfo",{width:0,height:0}),Ce(this,"transparentId",setTimeout(Boolean)),Ce(this,"lastDrawImage",void 0),Ce(this,"toBeList",[]),Ce(this,"drawProgress",0),Ce(this,"isTransitioning",!1),function(e,t,r){Ne(e,t),t.set(e,r)}(this,Ue,void 0),Ce(this,"isDark",!1);var r,n,i=t.renderData;if((0,o.isNull)(i))r=10,n=10;else{var a=getComputedStyle(i.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:I(r,n),width:r,height:n,kind:"default",tag:""},s=Ue,u=this,l=window.matchMedia("(prefers-color-scheme: dark)"),s.set($e(s,u),l),this.isDark=Le(Ue,this).matches,Le(Ue,this).addEventListener("change",$e(Be,this,ze));var s,u,l,c=this;Object.defineProperty(Le(Ue,this),"isDark",{get:function(){return c.isDark},set:function(e){c.isDark=e,Reflect.apply(Ae,t,[])||Reflect.apply(D,t,[!0])}})},[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId),Le(Ue,this).removeEventListener("change",$e(Be,this,ze))}}])}();function ze(e){this.isDark=e.matches}function He(e){"@babel/helpers - typeof";return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){Je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qe(n.key),n)}}function qe(e,t,r){return t=Ve(t),function(e,t){if(t&&("object"==He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ye()?Reflect.construct(t,r||[],Ve(e).constructor):t.apply(e,r))}function Ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ye=function(){return!!e})()}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}function Ke(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Je(e,t,r){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==He(t)?t:t+""}function et(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var tt=new WeakMap,rt=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Je(n=qe(this,t,[e]),"renderData",null),Je(n,"options",void 0),Je(n,"fadeData",void 0),Je(n,"defaults",v),Je(n,"initialized",!1),Ke(n,tt,(0,m.debounce)(ue,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new Te(Xe(Xe({},n.defaults),r)),n.renderData=new q(e,n.reloadBackground,n),n.fadeData=new Me(n),(0,o.isFalse)(n.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(n.config)||(0,o.isNull)(n.gl)?n.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,i(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(se,n,[])),window.matchMedia("(prefers-color-scheme: dark)"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(t,e),function(e,t,r){return t&&Ge(e.prototype,t),r&&Ge(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,o.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<a)){e.lastRaindropsFallTime=u;var l=function(e){return(0,m.getRandomInt)(e)},c=n.width,f=n.height;this.drop(l(c),l(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(ce,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(ke,this,[])}},{key:"reloadBackground",value:function(){et(tt,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(le,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(B,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(z,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply(U,this,[])):"darkMode"===e?(this.options.darkMode=t,Reflect.apply(Ae,this,[])||Reflect.apply(D,this,[!0])):this.options[e]=t}}])}(y);function nt(e,t){var r=(0,n.useRef)(null);return(0,n.useEffect)(function(){if(!(0,o.isNull)(e.current))return r.current=new rt(e.current,t&&t.option),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}},[]),r}},968:(e,t,r)=>{r.d(t,{t:()=>i});var n=r(649);function i(e){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){var r=e.current;if(r){var n=function(){return t.current=!0},i=function(){return t.current=!1};return r.addEventListener("compositionstart",n),r.addEventListener("compositionend",i),function(){r.removeEventListener("compositionstart",n),r.removeEventListener("compositionend",i)}}},[]),t}},991:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,exports:{}};return o[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.nc=void 0;var u=s(258),l=s(785),c=s(968),f=s(795),d=s(336),p=s(950),h=s(649),g=s(291),y=s(372),m=s.n(y),v=s(429),b=s.n(v),w=s(991),E=s.n(w),S=s(428),O=s.n(S),R=s(592),P=s.n(R),x=s(661),T=s.n(x),A=s(621),j={};j.styleTagTransform=T(),j.setAttributes=O(),j.insert=E().bind(null,"head"),j.domAPI=b(),j.insertStyleElement=P();m()(A.A,j);A.A&&A.A.locals&&A.A.locals;var k,I,D=["borderRadius","children"];function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(null,arguments)}function N(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var C=g.Ay.div(k||(k=N(["\n position: relative;\n box-sizing: border-box;\n border: 2px solid transparent;\n width: 100%;\n height: 100%;\n overflow: hidden;\n --en-marquee-border-radius: ",";\n border-radius: var(--en-marquee-border-radius);\n border-image-width: 3px;\n /* border-image-outset: 5px; */\n cursor: pointer;\n animation: marqueeBorder 6s linear infinite;\n"])),function(e){return e.$borderRadius}),F=g.Ay.div(I||(I=N(["\n position: relative;\n z-index: 1;\n color: #333;\n"]))),L=(0,h.forwardRef)(function(e,t){var r=e.borderRadius,n=void 0===r?"8px":r,i=e.children,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,D);return h.default.createElement(C,_({},o,{ref:t,$borderRadius:n}),h.default.createElement(F,null,i))});L.displayName="en-marquee";const $=c.t,U=p.n,B=f.O;export{L as EnMarquee,L as Marquee,$ as useInputIsComposing,U as useRipples,B as useTimeId};export const BackgroundRipple=u.z;export const EnLayout=l.wb;export const EnLayoutContent=l.Ht;export const EnLayoutFooter=l.zE;export const EnLayoutHeader=l.n5;export const EnLayoutSideBar=l.AX;export const Layout=l.PE;export const LayoutContent=l.A1;export const LayoutFooter=l.cZ;export const LayoutHeader=l.KL;export const LayoutSideBar=l.nb;export const useAnimationFrameId=d.M;
package/package.json CHANGED
@@ -9,14 +9,14 @@
9
9
  },
10
10
  "type": "module",
11
11
  "name": "earthnut",
12
- "version": "0.1.3",
12
+ "version": "0.1.5",
13
13
  "description": "earthnut 的 react ui",
14
14
  "overrides": {
15
15
  "css-loader": "6.11.0"
16
16
  },
17
17
  "dependencies": {
18
18
  "a-element-inline-style": "^0.1.1",
19
- "a-js-tools": "^1.0.10",
19
+ "a-js-tools": "^1.0.12",
20
20
  "a-type-of-js": "^1.0.7",
21
21
  "styled-components": "^6.1.19",
22
22
  "xcn": "^0.1.2"