descent-ripple
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -15,3 +15,3 @@ /* | ||
*/!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self)["descent-ripple"]=n()}(this,(function(){"use strict";function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function o(t){return t()}function i(){return Object.create(null)}function r(t){t.forEach(o)}function s(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}const l="undefined"!=typeof window;let a=l?()=>window.performance.now():()=>Date.now(),u=l?t=>requestAnimationFrame(t):t;const d=new Set;function f(t){d.forEach((n=>{n.c(t)||(d.delete(n),n.f())})),0!==d.size&&u(f)}function p(t){let n;return 0===d.size&&u(f),{promise:new Promise((e=>{d.add(n={c:t,f:e})})),abort(){d.delete(n)}}}function m(t,n){t.appendChild(n)}function h(t,n,e){t.insertBefore(n,e||null)}function y(t){t.parentNode.removeChild(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(){return t="",document.createTextNode(t);var t}function v(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function w(t,n){for(const e in n)v(t,e,n[e])}const A=new Set;let _,b=0;function k(t,n,e,o,i,r,s,c=0){const l=16.666/o;let a="{\n";for(let t=0;t<=1;t+=l){const o=n+(e-n)*r(t);a+=100*t+`%{${s(o,1-o)}}\n`}const u=a+`100% {${s(e,1-e)}}\n}`,d=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(u)}_${c}`,f=t.ownerDocument;A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(function(t){return document.createElement(t)}("style")).sheet),m=f.__svelte_rules||(f.__svelte_rules={});m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${d} ${o}ms linear ${i}ms 1 both`,b+=1,d}function P(t,n){const e=(t.style.animation||"").split(", "),o=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),i=e.length-o.length;i&&(t.style.animation=o.join(", "),b-=i,b||u((()=>{b||(A.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),A.clear())})))}function x(t){_=t}function O(){if(!_)throw new Error("Function called outside component initialization");return _}const I=[],M=[],S=[],C=[],R=Promise.resolve();let E=!1;function T(t){S.push(t)}let L=!1;const j=new Set;function z(){if(!L){L=!0;do{for(let t=0;t<I.length;t+=1){const n=I[t];x(n),B(n.$$)}for(x(null),I.length=0;M.length;)M.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];j.has(n)||(j.add(n),n())}S.length=0}while(I.length);for(;C.length;)C.pop()();E=!1,L=!1,j.clear()}}function B(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}let D;function F(){return D||(D=Promise.resolve(),D.then((()=>{D=null}))),D}function N(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const H=new Set;let q;function W(){q={r:0,c:[],p:q}}function X(){q.r||r(q.c),q=q.p}function Y(t,n){t&&t.i&&(H.delete(t),t.i(n))}function G(t,n,e,o){if(t&&t.o){if(H.has(t))return;H.add(t),q.c.push((()=>{H.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}const J={duration:0};function K(e,o,i){let r,c,l=o(e,i),u=!1,d=0;function f(){r&&P(e,r)}function m(){const{delay:o=0,duration:i=300,easing:s=n,tick:m=t,css:h}=l||J;h&&(r=k(e,0,1,i,o,s,h,d++)),m(0,1);const y=a()+o,g=y+i;c&&c.abort(),u=!0,T((()=>N(e,!0,"start"))),c=p((t=>{if(u){if(t>=g)return m(1,0),N(e,!0,"end"),f(),u=!1;if(t>=y){const n=s((t-y)/i);m(n,1-n)}}return u}))}let h=!1;return{start(){h||(P(e),s(l)?(l=l(),F().then(m)):m())},invalidate(){h=!1},end(){u&&(f(),u=!1)}}}function Q(e,o,i){let c,l=o(e,i),u=!0;const d=q;function f(){const{delay:o=0,duration:i=300,easing:s=n,tick:f=t,css:m}=l||J;m&&(c=k(e,1,0,i,o,s,m));const h=a()+o,y=h+i;T((()=>N(e,!1,"start"))),p((t=>{if(u){if(t>=y)return f(0,1),N(e,!1,"end"),--d.r||r(d.c),!1;if(t>=h){const n=s((t-h)/i);f(1-n,n)}}return u}))}return d.r+=1,s(l)?F().then((()=>{l=l(),f()})):f(),{end(t){t&&l.tick&&l.tick(1,0),u&&(c&&P(e,c),u=!1)}}}function U(t,n){G(t,1,1,(()=>{n.delete(t.key)}))}function V(t,n,e,o,i,r,s,c,l,a,u,d){let f=t.length,p=r.length,m=f;const h={};for(;m--;)h[t[m].key]=m;const y=[],g=new Map,$=new Map;for(m=p;m--;){const t=d(i,r,m),c=e(t);let l=s.get(c);l?o&&l.p(t,n):(l=a(c,t),l.c()),g.set(c,y[m]=l),c in h&&$.set(c,Math.abs(m-h[c]))}const v=new Set,w=new Set;function A(t){Y(t,1),t.m(c,u),s.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=y[p-1],e=t[f-1],o=n.key,i=e.key;n===e?(u=n.first,f--,p--):g.has(i)?!s.has(o)||v.has(o)?A(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),A(n)):(v.add(i),f--):(l(e,s),f--)}for(;f--;){const n=t[f];g.has(n.key)||l(n,s)}for(;p;)A(y[p-1]);return y}function Z(t,n){const e={},o={},i={$$scope:1};let r=t.length;for(;r--;){const s=t[r],c=n[r];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)i[t]||(e[t]=c[t],i[t]=1);t[r]=c}else for(const t in s)i[t]=1}for(const t in o)t in e||(e[t]=void 0);return e}function tt(t,n){-1===t.$$.dirty[0]&&(I.push(t),E||(E=!0,R.then(z)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function nt(n,e,c,l,a,u,d=[-1]){const f=_;x(n);const p=e.props||{},m=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:i(),dirty:d,skip_bound:!1};let h=!1;if(m.ctx=c?c(n,p,((t,e,...o)=>{const i=o.length?o[0]:e;return m.ctx&&a(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),h&&tt(n,t)),e})):[],m.update(),h=!0,r(m.before_update),m.fragment=!!l&&l(m.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);m.fragment&&m.fragment.l(t),t.forEach(y)}else m.fragment&&m.fragment.c();e.intro&&Y(n.$$.fragment),function(t,n,e){const{fragment:i,on_mount:c,on_destroy:l,after_update:a}=t.$$;i&&i.m(n,e),T((()=>{const n=c.map(o).filter(s);l?l.push(...n):r(n),t.$$.on_mount=[]})),a.forEach(T)}(n,e.target,e.anchor),z()}x(f)}function et(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ot(t){const n=t-1;return n*n*n+1}const it=t=>"function"==typeof t?t:n=>t;function rt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: 0 ${n*r} ${t*r} 0`}}function st(t,n,e){const o=t.slice();return o[45]=n[e],o[47]=e,o}function ct(t,n,e){const o=t.slice();return o[48]=n[e],o[47]=e,o}function lt(t){let n,e,o,i=[],r=new Map,s=[],c=new Map,l=t[11];const a=t=>t[48].id;for(let n=0;n<l.length;n+=1){let e=ct(t,l,n),o=a(e);r.set(o,i[n]=ut(o,e))}let u=t[14];const d=t=>t[45].id;for(let n=0;n<u.length;n+=1){let e=st(t,u,n),o=d(e);c.set(o,s[n]=dt(o,e))}return{c(){n=g("svg");for(let t=0;t<i.length;t+=1)i[t].c();e=$();for(let t=0;t<s.length;t+=1)s[t].c();v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"style",t[4]),v(n,"width",t[13]),v(n,"height",t[15])},m(r,c){h(r,n,c);for(let t=0;t<i.length;t+=1)i[t].m(n,null);m(n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null);t[35](n),o=!0},p(t,l){if(2144&l[0]){const o=t[11];W(),i=V(i,l,a,1,t,o,r,n,U,ut,e,ct),X()}if(17920&l[0]){const e=t[14];W(),s=V(s,l,d,1,t,e,c,n,U,dt,null,st),X()}(!o||16&l[0])&&v(n,"style",t[4]),(!o||8192&l[0])&&v(n,"width",t[13]),(!o||32768&l[0])&&v(n,"height",t[15])},i(t){if(!o){for(let t=0;t<l.length;t+=1)Y(i[t]);for(let t=0;t<u.length;t+=1)Y(s[t]);o=!0}},o(t){for(let t=0;t<i.length;t+=1)G(i[t]);for(let t=0;t<s.length;t+=1)G(s[t]);o=!1},d(e){e&&y(n);for(let t=0;t<i.length;t+=1)i[t].d();for(let t=0;t<s.length;t+=1)s[t].d();t[35](null)}}}function at(t){let n,o,i,r,s,c=[{d:o=t[48].path},t[5](t[47])],l={};for(let t=0;t<c.length;t+=1)l=e(l,c[t]);return{c(){n=g("path"),w(n,l)},m(t,e){h(t,n,e),s=!0},p(e,i){t=e,w(n,l=Z(c,[(!s||2048&i[0]&&o!==(o=t[48].path))&&{d:o},2080&i[0]&&t[5](t[47])]))},i(e){s||(T((()=>{r&&r.end(1),i||(i=K(n,t[0],t[7](t[47]))),i.start()})),s=!0)},o(e){i&&i.invalidate(),r=Q(n,t[1],t[6](t[47])),s=!1},d(t){t&&y(n),t&&r&&r.end()}}}function ut(t,n){let e,o,i,r=n[48]&&at(n);return{key:t,first:null,c(){e=$(),r&&r.c(),o=$(),this.first=e},m(t,n){h(t,e,n),r&&r.m(t,n),h(t,o,n),i=!0},p(t,n){t[48]?r?(r.p(t,n),2048&n[0]&&Y(r,1)):(r=at(t),r.c(),Y(r,1),r.m(o.parentNode,o)):r&&(W(),G(r,1,1,(()=>{r=null})),X())},i(t){i||(Y(r),i=!0)},o(t){G(r),i=!1},d(t){t&&y(e),r&&r.d(t),t&&y(o)}}}function dt(t,n){let o,i,r,s,c,l,a,u,d,f=[{cx:r=0},{cy:s=0},{r:c=n[45].r},n[10](n[47])],p={};for(let t=0;t<f.length;t+=1)p=e(p,f[t]);return{key:t,first:null,c(){o=g("g"),i=g("circle"),w(i,p),v(o,"transform",u="translate("+n[45].x+" "+n[45].y+")"),this.first=o},m(t,n){h(t,o,n),m(o,i),d=!0},p(t,e){n=t,w(i,p=Z(f,[{cx:0},{cy:0},(!d||16384&e[0]&&c!==(c=n[45].r))&&{r:c},17408&e[0]&&n[10](n[47])])),(!d||16384&e[0]&&u!==(u="translate("+n[45].x+" "+n[45].y+")"))&&v(o,"transform",u)},i(t){d||(T((()=>{a&&a.end(1),l||(l=K(i,n[2],n[8](n[47]))),l.start()})),d=!0)},o(t){l&&l.invalidate(),a=Q(i,n[3],n[9](n[47])),d=!1},d(t){t&&y(o),t&&a&&a.end()}}}function ft(t){let n,e,o=t[12]&<(t);return{c(){o&&o.c(),n=$()},m(t,i){o&&o.m(t,i),h(t,n,i),e=!0},p(t,e){t[12]?o?(o.p(t,e),4096&e[0]&&Y(o,1)):(o=lt(t),o.c(),Y(o,1),o.m(n.parentNode,n)):o&&(W(),G(o,1,1,(()=>{o=null})),X())},i(t){e||(Y(o),e=!0)},o(t){G(o),e=!1},d(t){o&&o.d(t),t&&y(n)}}}function pt(t,n,e){let o,i,r,s,c,l,a,u,d,f,p,m,{node:h}=n,{nLines:y=10}=n,{nCircles:g=1}=n,{lineBreakDist:$=.3}=n,{randomness:v=1}=n,{backstep:w=0}=n,{rotation:A=(t=>20*Math.sin(Math.PI*t/90))}=n,{forceRelative:_=!0}=n,{forceOverflowHidden:b=!0}=n,{size:k=1}=n,{timeToRemove:P=500}=n,{circleRadius:x=1}=n,{lineProps:I={fill:"none","stroke-width":"10",stroke:"rgba(99,1,1,.5)"}}=n,{linesInAnimation:S}=n,{linesOutAnimation:C}=n,{linesInAnimationProps:R={duration:500}}=n,{linesOutAnimationProps:E={duration:500,delay:0}}=n,{circleInAnimation:T}=n,{circleOutAnimation:L}=n,{circleOutAnimationProps:j={duration:500}}=n,{circleInAnimationProps:z={duration:700,start:0}}=n,{circleProps:B={fill:"rgba(255,9,9,0.4)"}}=n,{svgStyle:D="position:absolute;overflow:hidden;top:0px;left:0px;"}=n,F=0,N=[],H=!1,q=1,W=1;const X=(t,n,i)=>{const r=F++,s=Array(y);for(let e=0;e<y;e++){let l=c(e);"string"==typeof l?l=parseFloat(l):l*=i;const a=l;let u="M"+t+" "+n;const d=0===$?a:$;let f=0,p=0;for(;p<a;){p+=d,f++;const i=2*Math.PI*e/y+Math.PI*o(f)/180,r=Math.sin(i),s=Math.cos(i);u+=" L"+(t+(f+1)*d*r+d*v*(Math.random()-.5))+" "+(n+(f+1)*d*s+d*v*(Math.random()-.5)),w>0&&(u+=" l"+-w*d*(r+v*(Math.random()-.5))+" "+-w*d*(s+v*(Math.random()-.5)))}s[e]={path:u+"M0 0",id:r.toString()+"-"+e}}e(11,N=s),e(14,f=Array(g).fill().map(((e,o)=>{let s=d(o);return"number"==typeof s?s*=i:s=parseFloat(s),{x:t,y:n,r:s,id:r.toString()+"+"+o}}))),p=setTimeout(Y,P)},Y=()=>{e(11,N=[]),e(14,f=[])},G=(t,n,o)=>{e(13,q=t.clientWidth+1),e(15,W=t.clientHeight+1),p=setTimeout(X,1,n,o,Math.sqrt(q*q+W*W))},J=t=>{Y(),e(12,H=!0);const n=h.getBoundingClientRect(),o=window.getComputedStyle(h);_&&"absolute"!==o.position&&"relative"!==o.position&&e(17,h.style.position="relative",h),!b||"hidden"===o.overflowX&&"hidden"===o.overflowY||(e(17,h.style.overflowX="hidden",h),e(17,h.style.overflowY="hidden",h));let i=t.clientX-n.left-(parseFloat(o.borderLeftWidth)||0),r=t.clientY-n.top-(parseFloat(o.borderTopWidth)||0);p=setTimeout(G,1,h,i,r)};var K;return K=()=>{h.addEventListener("mousedown",J),window.getComputedStyle(h)},O().$$.on_mount.push(K),function(t){O().$$.on_destroy.push(t)}((()=>{h.removeEventListener("mousedown",J),p&&clearTimeout(p)})),t.$$set=t=>{"node"in t&&e(17,h=t.node),"nLines"in t&&e(18,y=t.nLines),"nCircles"in t&&e(19,g=t.nCircles),"lineBreakDist"in t&&e(20,$=t.lineBreakDist),"randomness"in t&&e(21,v=t.randomness),"backstep"in t&&e(22,w=t.backstep),"rotation"in t&&e(23,A=t.rotation),"forceRelative"in t&&e(24,_=t.forceRelative),"forceOverflowHidden"in t&&e(25,b=t.forceOverflowHidden),"size"in t&&e(26,k=t.size),"timeToRemove"in t&&e(27,P=t.timeToRemove),"circleRadius"in t&&e(28,x=t.circleRadius),"lineProps"in t&&e(29,I=t.lineProps),"linesInAnimation"in t&&e(0,S=t.linesInAnimation),"linesOutAnimation"in t&&e(1,C=t.linesOutAnimation),"linesInAnimationProps"in t&&e(30,R=t.linesInAnimationProps),"linesOutAnimationProps"in t&&e(31,E=t.linesOutAnimationProps),"circleInAnimation"in t&&e(2,T=t.circleInAnimation),"circleOutAnimation"in t&&e(3,L=t.circleOutAnimation),"circleOutAnimationProps"in t&&e(32,j=t.circleOutAnimationProps),"circleInAnimationProps"in t&&e(33,z=t.circleInAnimationProps),"circleProps"in t&&e(34,B=t.circleProps),"svgStyle"in t&&e(4,D=t.svgStyle)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&(o=it(A)),536870912&t.$$.dirty[0]&&e(5,i=it(I)),1&t.$$.dirty[1]&&e(6,r=it(E)),1073741824&t.$$.dirty[0]&&e(7,s=it(R)),67108864&t.$$.dirty[0]&&(c=it(k)),4&t.$$.dirty[1]&&e(8,l=it(z)),2&t.$$.dirty[1]&&e(9,a=it(j)),8&t.$$.dirty[1]&&e(10,u=it(B)),268435456&t.$$.dirty[0]&&(d=it(x))},[S,C,T,L,D,i,r,s,l,a,u,N,H,q,f,W,m,h,y,g,$,v,w,A,_,b,k,P,x,I,R,E,j,z,B,function(t){M[t?"unshift":"push"]((()=>{m=t,e(16,m)}))}]}class mt extends class{$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),nt(this,t,pt,ft,c,{node:17,nLines:18,nCircles:19,lineBreakDist:20,randomness:21,backstep:22,rotation:23,forceRelative:24,forceOverflowHidden:25,size:26,timeToRemove:27,circleRadius:28,lineProps:29,linesInAnimation:0,linesOutAnimation:1,linesInAnimationProps:30,linesOutAnimationProps:31,circleInAnimation:2,circleOutAnimation:3,circleOutAnimationProps:32,circleInAnimationProps:33,circleProps:34,svgStyle:4},[-1,-1])}}function ht(t,{delay:n=0,duration:e=400,easing:o=et,amount:i=5,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.filter?"":s.filter,a=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`opacity: ${c-a*n}; filter: ${l} blur(${n*i}px);`}}function yt(t,{delay:e=0,duration:o=400,easing:i=n}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:o,easing:i,css:t=>"opacity: "+t*r}}function gt(t,{delay:n=0,duration:e=400,easing:o=ot,x:i=0,y:r=0,opacity:s=0}){const c=getComputedStyle(t),l=+c.opacity,a="none"===c.transform?"":c.transform,u=l*(1-s);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${a} translate(${(1-t)*i}px, ${(1-t)*r}px);\n\t\t\topacity: ${l-u*n}`}}function $t(t,{delay:n=0,duration:e=400,easing:o=ot,start:i=0,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.transform?"":s.transform,a=1-i,u=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${l} scale(${1-a*n});\n\t\t\topacity: ${c-u*n}\n\t\t`}}function vt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: ${t*r} ${n*r}`}}const wt=(t,n,e)=>(t[n]?("draw"===t[n]&&(t[n]=vt),"fade"===t[n]&&(t[n]=yt),"scale"===t[n]&&(t[n]=$t),"blur"===t[n]&&(t[n]=ht),"fly"===t[n]&&(t[n]=gt),"draw-reverse"===t[n]&&(t[n]=rt)):t[n]=e,t),At=t=>(wt(t,"linesInAnimation",vt),wt(t,"linesOutAnimation",yt),wt(t,"circleInAnimation",$t),wt(t,"circleOutAnimation",yt),t);return function(t,n={}){let e=Object.assign({},n,{node:t});e=At(e);const o=new mt({target:t,props:e,anchor:anchor});return{update:t=>{e=At(Object.assign(e,t)),o.$set(e)},destroy:()=>o.$destroy()}}})); | ||
*/!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self)["descent-ripple"]=n()}(this,(function(){"use strict";function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function o(t){return t()}function i(){return Object.create(null)}function r(t){t.forEach(o)}function s(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}const l="undefined"!=typeof window;let a=l?()=>window.performance.now():()=>Date.now(),u=l?t=>requestAnimationFrame(t):t;const d=new Set;function f(t){d.forEach((n=>{n.c(t)||(d.delete(n),n.f())})),0!==d.size&&u(f)}function p(t){let n;return 0===d.size&&u(f),{promise:new Promise((e=>{d.add(n={c:t,f:e})})),abort(){d.delete(n)}}}function m(t,n){t.appendChild(n)}function h(t,n,e){t.insertBefore(n,e||null)}function y(t){t.parentNode.removeChild(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(){return t="",document.createTextNode(t);var t}function v(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function w(t,n){for(const e in n)v(t,e,n[e])}const A=new Set;let _,b=0;function k(t,n,e,o,i,r,s,c=0){const l=16.666/o;let a="{\n";for(let t=0;t<=1;t+=l){const o=n+(e-n)*r(t);a+=100*t+`%{${s(o,1-o)}}\n`}const u=a+`100% {${s(e,1-e)}}\n}`,d=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(u)}_${c}`,f=t.ownerDocument;A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(function(t){return document.createElement(t)}("style")).sheet),m=f.__svelte_rules||(f.__svelte_rules={});m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${d} ${o}ms linear ${i}ms 1 both`,b+=1,d}function P(t,n){const e=(t.style.animation||"").split(", "),o=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),i=e.length-o.length;i&&(t.style.animation=o.join(", "),b-=i,b||u((()=>{b||(A.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),A.clear())})))}function x(t){_=t}function O(){if(!_)throw new Error("Function called outside component initialization");return _}const I=[],M=[],S=[],C=[],R=Promise.resolve();let E=!1;function T(t){S.push(t)}let L=!1;const j=new Set;function z(){if(!L){L=!0;do{for(let t=0;t<I.length;t+=1){const n=I[t];x(n),B(n.$$)}for(x(null),I.length=0;M.length;)M.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];j.has(n)||(j.add(n),n())}S.length=0}while(I.length);for(;C.length;)C.pop()();E=!1,L=!1,j.clear()}}function B(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}let D;function F(){return D||(D=Promise.resolve(),D.then((()=>{D=null}))),D}function N(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const H=new Set;let q;function W(){q={r:0,c:[],p:q}}function X(){q.r||r(q.c),q=q.p}function Y(t,n){t&&t.i&&(H.delete(t),t.i(n))}function G(t,n,e,o){if(t&&t.o){if(H.has(t))return;H.add(t),q.c.push((()=>{H.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}const J={duration:0};function K(e,o,i){let r,c,l=o(e,i),u=!1,d=0;function f(){r&&P(e,r)}function m(){const{delay:o=0,duration:i=300,easing:s=n,tick:m=t,css:h}=l||J;h&&(r=k(e,0,1,i,o,s,h,d++)),m(0,1);const y=a()+o,g=y+i;c&&c.abort(),u=!0,T((()=>N(e,!0,"start"))),c=p((t=>{if(u){if(t>=g)return m(1,0),N(e,!0,"end"),f(),u=!1;if(t>=y){const n=s((t-y)/i);m(n,1-n)}}return u}))}let h=!1;return{start(){h||(P(e),s(l)?(l=l(),F().then(m)):m())},invalidate(){h=!1},end(){u&&(f(),u=!1)}}}function Q(e,o,i){let c,l=o(e,i),u=!0;const d=q;function f(){const{delay:o=0,duration:i=300,easing:s=n,tick:f=t,css:m}=l||J;m&&(c=k(e,1,0,i,o,s,m));const h=a()+o,y=h+i;T((()=>N(e,!1,"start"))),p((t=>{if(u){if(t>=y)return f(0,1),N(e,!1,"end"),--d.r||r(d.c),!1;if(t>=h){const n=s((t-h)/i);f(1-n,n)}}return u}))}return d.r+=1,s(l)?F().then((()=>{l=l(),f()})):f(),{end(t){t&&l.tick&&l.tick(1,0),u&&(c&&P(e,c),u=!1)}}}function U(t,n){G(t,1,1,(()=>{n.delete(t.key)}))}function V(t,n,e,o,i,r,s,c,l,a,u,d){let f=t.length,p=r.length,m=f;const h={};for(;m--;)h[t[m].key]=m;const y=[],g=new Map,$=new Map;for(m=p;m--;){const t=d(i,r,m),c=e(t);let l=s.get(c);l?o&&l.p(t,n):(l=a(c,t),l.c()),g.set(c,y[m]=l),c in h&&$.set(c,Math.abs(m-h[c]))}const v=new Set,w=new Set;function A(t){Y(t,1),t.m(c,u),s.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=y[p-1],e=t[f-1],o=n.key,i=e.key;n===e?(u=n.first,f--,p--):g.has(i)?!s.has(o)||v.has(o)?A(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),A(n)):(v.add(i),f--):(l(e,s),f--)}for(;f--;){const n=t[f];g.has(n.key)||l(n,s)}for(;p;)A(y[p-1]);return y}function Z(t,n){const e={},o={},i={$$scope:1};let r=t.length;for(;r--;){const s=t[r],c=n[r];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)i[t]||(e[t]=c[t],i[t]=1);t[r]=c}else for(const t in s)i[t]=1}for(const t in o)t in e||(e[t]=void 0);return e}function tt(t,n){-1===t.$$.dirty[0]&&(I.push(t),E||(E=!0,R.then(z)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function nt(n,e,c,l,a,u,d=[-1]){const f=_;x(n);const p=e.props||{},m=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:i(),dirty:d,skip_bound:!1};let h=!1;if(m.ctx=c?c(n,p,((t,e,...o)=>{const i=o.length?o[0]:e;return m.ctx&&a(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),h&&tt(n,t)),e})):[],m.update(),h=!0,r(m.before_update),m.fragment=!!l&&l(m.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);m.fragment&&m.fragment.l(t),t.forEach(y)}else m.fragment&&m.fragment.c();e.intro&&Y(n.$$.fragment),function(t,n,e){const{fragment:i,on_mount:c,on_destroy:l,after_update:a}=t.$$;i&&i.m(n,e),T((()=>{const n=c.map(o).filter(s);l?l.push(...n):r(n),t.$$.on_mount=[]})),a.forEach(T)}(n,e.target,e.anchor),z()}x(f)}function et(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ot(t){const n=t-1;return n*n*n+1}const it=t=>"function"==typeof t?t:n=>t;function rt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: 0 ${n*r} ${t*r} 0`}}function st(t,n,e){const o=t.slice();return o[45]=n[e],o[47]=e,o}function ct(t,n,e){const o=t.slice();return o[48]=n[e],o[47]=e,o}function lt(t){let n,e,o,i=[],r=new Map,s=[],c=new Map,l=t[11];const a=t=>t[48].id;for(let n=0;n<l.length;n+=1){let e=ct(t,l,n),o=a(e);r.set(o,i[n]=ut(o,e))}let u=t[14];const d=t=>t[45].id;for(let n=0;n<u.length;n+=1){let e=st(t,u,n),o=d(e);c.set(o,s[n]=dt(o,e))}return{c(){n=g("svg");for(let t=0;t<i.length;t+=1)i[t].c();e=$();for(let t=0;t<s.length;t+=1)s[t].c();v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"style",t[4]),v(n,"width",t[13]),v(n,"height",t[15])},m(r,c){h(r,n,c);for(let t=0;t<i.length;t+=1)i[t].m(n,null);m(n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null);t[35](n),o=!0},p(t,l){if(2144&l[0]){const o=t[11];W(),i=V(i,l,a,1,t,o,r,n,U,ut,e,ct),X()}if(17920&l[0]){const e=t[14];W(),s=V(s,l,d,1,t,e,c,n,U,dt,null,st),X()}(!o||16&l[0])&&v(n,"style",t[4]),(!o||8192&l[0])&&v(n,"width",t[13]),(!o||32768&l[0])&&v(n,"height",t[15])},i(t){if(!o){for(let t=0;t<l.length;t+=1)Y(i[t]);for(let t=0;t<u.length;t+=1)Y(s[t]);o=!0}},o(t){for(let t=0;t<i.length;t+=1)G(i[t]);for(let t=0;t<s.length;t+=1)G(s[t]);o=!1},d(e){e&&y(n);for(let t=0;t<i.length;t+=1)i[t].d();for(let t=0;t<s.length;t+=1)s[t].d();t[35](null)}}}function at(t){let n,o,i,r,s,c=[{d:o=t[48].path},t[5](t[47])],l={};for(let t=0;t<c.length;t+=1)l=e(l,c[t]);return{c(){n=g("path"),w(n,l)},m(t,e){h(t,n,e),s=!0},p(e,i){t=e,w(n,l=Z(c,[(!s||2048&i[0]&&o!==(o=t[48].path))&&{d:o},2080&i[0]&&t[5](t[47])]))},i(e){s||(T((()=>{r&&r.end(1),i||(i=K(n,t[0],t[7](t[47]))),i.start()})),s=!0)},o(e){i&&i.invalidate(),r=Q(n,t[1],t[6](t[47])),s=!1},d(t){t&&y(n),t&&r&&r.end()}}}function ut(t,n){let e,o,i,r=n[48]&&at(n);return{key:t,first:null,c(){e=$(),r&&r.c(),o=$(),this.first=e},m(t,n){h(t,e,n),r&&r.m(t,n),h(t,o,n),i=!0},p(t,n){t[48]?r?(r.p(t,n),2048&n[0]&&Y(r,1)):(r=at(t),r.c(),Y(r,1),r.m(o.parentNode,o)):r&&(W(),G(r,1,1,(()=>{r=null})),X())},i(t){i||(Y(r),i=!0)},o(t){G(r),i=!1},d(t){t&&y(e),r&&r.d(t),t&&y(o)}}}function dt(t,n){let o,i,r,s,c,l,a,u,d,f=[{cx:r=0},{cy:s=0},{r:c=n[45].r},n[10](n[47])],p={};for(let t=0;t<f.length;t+=1)p=e(p,f[t]);return{key:t,first:null,c(){o=g("g"),i=g("circle"),w(i,p),v(o,"transform",u="translate("+n[45].x+" "+n[45].y+")"),this.first=o},m(t,n){h(t,o,n),m(o,i),d=!0},p(t,e){n=t,w(i,p=Z(f,[{cx:0},{cy:0},(!d||16384&e[0]&&c!==(c=n[45].r))&&{r:c},17408&e[0]&&n[10](n[47])])),(!d||16384&e[0]&&u!==(u="translate("+n[45].x+" "+n[45].y+")"))&&v(o,"transform",u)},i(t){d||(T((()=>{a&&a.end(1),l||(l=K(i,n[2],n[8](n[47]))),l.start()})),d=!0)},o(t){l&&l.invalidate(),a=Q(i,n[3],n[9](n[47])),d=!1},d(t){t&&y(o),t&&a&&a.end()}}}function ft(t){let n,e,o=t[12]&<(t);return{c(){o&&o.c(),n=$()},m(t,i){o&&o.m(t,i),h(t,n,i),e=!0},p(t,e){t[12]?o?(o.p(t,e),4096&e[0]&&Y(o,1)):(o=lt(t),o.c(),Y(o,1),o.m(n.parentNode,n)):o&&(W(),G(o,1,1,(()=>{o=null})),X())},i(t){e||(Y(o),e=!0)},o(t){G(o),e=!1},d(t){o&&o.d(t),t&&y(n)}}}function pt(t,n,e){let o,i,r,s,c,l,a,u,d,f,p,m,{node:h}=n,{nLines:y=10}=n,{nCircles:g=1}=n,{lineBreakDist:$=.3}=n,{randomness:v=1}=n,{backstep:w=0}=n,{rotation:A=(t=>20*Math.sin(Math.PI*t/90))}=n,{forceRelative:_=!0}=n,{forceOverflowHidden:b=!0}=n,{size:k=1}=n,{timeToRemove:P=500}=n,{circleRadius:x=1}=n,{lineProps:I={fill:"none","stroke-width":"10",stroke:"rgba(99,1,1,.5)"}}=n,{linesInAnimation:S}=n,{linesOutAnimation:C}=n,{linesInAnimationProps:R={duration:500}}=n,{linesOutAnimationProps:E={duration:500,delay:0}}=n,{circleInAnimation:T}=n,{circleOutAnimation:L}=n,{circleOutAnimationProps:j={duration:500}}=n,{circleInAnimationProps:z={duration:700,start:0}}=n,{circleProps:B={fill:"rgba(255,9,9,0.4)"}}=n,{svgStyle:D="position:absolute;overflow:hidden;top:0px;left:0px;"}=n,F=0,N=[],H=!1,q=1,W=1;const X=(t,n,i)=>{const r=F++,s=Array(y);for(let e=0;e<y;e++){let l=c(e);"string"==typeof l?l=parseFloat(l):l*=i;const a=l;let u="M"+t+" "+n;const d=0===$?a:$;let f=0,p=0;for(;p<a;){p+=d,f++;const i=2*Math.PI*e/y+Math.PI*o(f)/180,r=Math.sin(i),s=Math.cos(i);u+=" L"+(t+(f+1)*d*r+d*v*(Math.random()-.5))+" "+(n+(f+1)*d*s+d*v*(Math.random()-.5)),w>0&&(u+=" l"+-w*d*(r+v*(Math.random()-.5))+" "+-w*d*(s+v*(Math.random()-.5)))}s[e]={path:u+"M0 0",id:r.toString()+"-"+e}}e(11,N=s),e(14,f=Array(g).fill().map(((e,o)=>{let s=d(o);return"number"==typeof s?s*=i:s=parseFloat(s),{x:t,y:n,r:s,id:r.toString()+"+"+o}}))),p=setTimeout(Y,P)},Y=()=>{e(11,N=[]),e(14,f=[])},G=(t,n,o)=>{e(13,q=t.clientWidth+1),e(15,W=t.clientHeight+1),p=setTimeout(X,1,n,o,Math.sqrt(q*q+W*W))},J=t=>{Y(),e(12,H=!0);const n=h.getBoundingClientRect(),o=window.getComputedStyle(h);_&&"absolute"!==o.position&&"relative"!==o.position&&e(17,h.style.position="relative",h),!b||"hidden"===o.overflowX&&"hidden"===o.overflowY||(e(17,h.style.overflowX="hidden",h),e(17,h.style.overflowY="hidden",h));let i=t.clientX-n.left-(parseFloat(o.borderLeftWidth)||0),r=t.clientY-n.top-(parseFloat(o.borderTopWidth)||0);p=setTimeout(G,1,h,i,r)};var K;return K=()=>{h.addEventListener("mousedown",J),window.getComputedStyle(h)},O().$$.on_mount.push(K),function(t){O().$$.on_destroy.push(t)}((()=>{h.removeEventListener("mousedown",J),p&&clearTimeout(p)})),t.$$set=t=>{"node"in t&&e(17,h=t.node),"nLines"in t&&e(18,y=t.nLines),"nCircles"in t&&e(19,g=t.nCircles),"lineBreakDist"in t&&e(20,$=t.lineBreakDist),"randomness"in t&&e(21,v=t.randomness),"backstep"in t&&e(22,w=t.backstep),"rotation"in t&&e(23,A=t.rotation),"forceRelative"in t&&e(24,_=t.forceRelative),"forceOverflowHidden"in t&&e(25,b=t.forceOverflowHidden),"size"in t&&e(26,k=t.size),"timeToRemove"in t&&e(27,P=t.timeToRemove),"circleRadius"in t&&e(28,x=t.circleRadius),"lineProps"in t&&e(29,I=t.lineProps),"linesInAnimation"in t&&e(0,S=t.linesInAnimation),"linesOutAnimation"in t&&e(1,C=t.linesOutAnimation),"linesInAnimationProps"in t&&e(30,R=t.linesInAnimationProps),"linesOutAnimationProps"in t&&e(31,E=t.linesOutAnimationProps),"circleInAnimation"in t&&e(2,T=t.circleInAnimation),"circleOutAnimation"in t&&e(3,L=t.circleOutAnimation),"circleOutAnimationProps"in t&&e(32,j=t.circleOutAnimationProps),"circleInAnimationProps"in t&&e(33,z=t.circleInAnimationProps),"circleProps"in t&&e(34,B=t.circleProps),"svgStyle"in t&&e(4,D=t.svgStyle)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&(o=it(A)),536870912&t.$$.dirty[0]&&e(5,i=it(I)),1&t.$$.dirty[1]&&e(6,r=it(E)),1073741824&t.$$.dirty[0]&&e(7,s=it(R)),67108864&t.$$.dirty[0]&&(c=it(k)),4&t.$$.dirty[1]&&e(8,l=it(z)),2&t.$$.dirty[1]&&e(9,a=it(j)),8&t.$$.dirty[1]&&e(10,u=it(B)),268435456&t.$$.dirty[0]&&(d=it(x))},[S,C,T,L,D,i,r,s,l,a,u,N,H,q,f,W,m,h,y,g,$,v,w,A,_,b,k,P,x,I,R,E,j,z,B,function(t){M[t?"unshift":"push"]((()=>{m=t,e(16,m)}))}]}class mt extends class{$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),nt(this,t,pt,ft,c,{node:17,nLines:18,nCircles:19,lineBreakDist:20,randomness:21,backstep:22,rotation:23,forceRelative:24,forceOverflowHidden:25,size:26,timeToRemove:27,circleRadius:28,lineProps:29,linesInAnimation:0,linesOutAnimation:1,linesInAnimationProps:30,linesOutAnimationProps:31,circleInAnimation:2,circleOutAnimation:3,circleOutAnimationProps:32,circleInAnimationProps:33,circleProps:34,svgStyle:4},[-1,-1])}}function ht(t,{delay:n=0,duration:e=400,easing:o=et,amount:i=5,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.filter?"":s.filter,a=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`opacity: ${c-a*n}; filter: ${l} blur(${n*i}px);`}}function yt(t,{delay:e=0,duration:o=400,easing:i=n}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:o,easing:i,css:t=>"opacity: "+t*r}}function gt(t,{delay:n=0,duration:e=400,easing:o=ot,x:i=0,y:r=0,opacity:s=0}){const c=getComputedStyle(t),l=+c.opacity,a="none"===c.transform?"":c.transform,u=l*(1-s);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${a} translate(${(1-t)*i}px, ${(1-t)*r}px);\n\t\t\topacity: ${l-u*n}`}}function $t(t,{delay:n=0,duration:e=400,easing:o=ot,start:i=0,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.transform?"":s.transform,a=1-i,u=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${l} scale(${1-a*n});\n\t\t\topacity: ${c-u*n}\n\t\t`}}function vt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: ${t*r} ${n*r}`}}const wt=(t,n,e)=>(t[n]?("draw"===t[n]&&(t[n]=vt),"fade"===t[n]&&(t[n]=yt),"scale"===t[n]&&(t[n]=$t),"blur"===t[n]&&(t[n]=ht),"fly"===t[n]&&(t[n]=gt),"draw-reverse"===t[n]&&(t[n]=rt)):t[n]=e,t),At=t=>(wt(t,"linesInAnimation",vt),wt(t,"linesOutAnimation",yt),wt(t,"circleInAnimation",$t),wt(t,"circleOutAnimation",yt),t);return function(t,n={}){let e=Object.assign({},n,{node:t});e=At(e);const o=new mt({target:t,props:e});return{update:t=>{e=At(Object.assign(e,t)),o.$set(e)},destroy:()=>o.$destroy()}}})); | ||
//# sourceMappingURL=index.js.map |
@@ -15,3 +15,3 @@ /* | ||
*/function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function o(t){return t()}function i(){return Object.create(null)}function r(t){t.forEach(o)}function s(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}const l="undefined"!=typeof window;let a=l?()=>window.performance.now():()=>Date.now(),u=l?t=>requestAnimationFrame(t):t;const d=new Set;function f(t){d.forEach((n=>{n.c(t)||(d.delete(n),n.f())})),0!==d.size&&u(f)}function p(t){let n;return 0===d.size&&u(f),{promise:new Promise((e=>{d.add(n={c:t,f:e})})),abort(){d.delete(n)}}}function m(t,n){t.appendChild(n)}function h(t,n,e){t.insertBefore(n,e||null)}function y(t){t.parentNode.removeChild(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(){return t="",document.createTextNode(t);var t}function v(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function w(t,n){for(const e in n)v(t,e,n[e])}const A=new Set;let _,b=0;function k(t,n,e,o,i,r,s,c=0){const l=16.666/o;let a="{\n";for(let t=0;t<=1;t+=l){const o=n+(e-n)*r(t);a+=100*t+`%{${s(o,1-o)}}\n`}const u=a+`100% {${s(e,1-e)}}\n}`,d=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(u)}_${c}`,f=t.ownerDocument;A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(function(t){return document.createElement(t)}("style")).sheet),m=f.__svelte_rules||(f.__svelte_rules={});m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${d} ${o}ms linear ${i}ms 1 both`,b+=1,d}function P(t,n){const e=(t.style.animation||"").split(", "),o=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),i=e.length-o.length;i&&(t.style.animation=o.join(", "),b-=i,b||u((()=>{b||(A.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),A.clear())})))}function O(t){_=t}function x(){if(!_)throw new Error("Function called outside component initialization");return _}const I=[],M=[],S=[],C=[],R=Promise.resolve();let E=!1;function T(t){S.push(t)}let L=!1;const z=new Set;function j(){if(!L){L=!0;do{for(let t=0;t<I.length;t+=1){const n=I[t];O(n),B(n.$$)}for(O(null),I.length=0;M.length;)M.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];z.has(n)||(z.add(n),n())}S.length=0}while(I.length);for(;C.length;)C.pop()();E=!1,L=!1,z.clear()}}function B(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}let D;function F(){return D||(D=Promise.resolve(),D.then((()=>{D=null}))),D}function N(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const H=new Set;let q;function W(){q={r:0,c:[],p:q}}function X(){q.r||r(q.c),q=q.p}function Y(t,n){t&&t.i&&(H.delete(t),t.i(n))}function G(t,n,e,o){if(t&&t.o){if(H.has(t))return;H.add(t),q.c.push((()=>{H.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}const J={duration:0};function K(e,o,i){let r,c,l=o(e,i),u=!1,d=0;function f(){r&&P(e,r)}function m(){const{delay:o=0,duration:i=300,easing:s=n,tick:m=t,css:h}=l||J;h&&(r=k(e,0,1,i,o,s,h,d++)),m(0,1);const y=a()+o,g=y+i;c&&c.abort(),u=!0,T((()=>N(e,!0,"start"))),c=p((t=>{if(u){if(t>=g)return m(1,0),N(e,!0,"end"),f(),u=!1;if(t>=y){const n=s((t-y)/i);m(n,1-n)}}return u}))}let h=!1;return{start(){h||(P(e),s(l)?(l=l(),F().then(m)):m())},invalidate(){h=!1},end(){u&&(f(),u=!1)}}}function Q(e,o,i){let c,l=o(e,i),u=!0;const d=q;function f(){const{delay:o=0,duration:i=300,easing:s=n,tick:f=t,css:m}=l||J;m&&(c=k(e,1,0,i,o,s,m));const h=a()+o,y=h+i;T((()=>N(e,!1,"start"))),p((t=>{if(u){if(t>=y)return f(0,1),N(e,!1,"end"),--d.r||r(d.c),!1;if(t>=h){const n=s((t-h)/i);f(1-n,n)}}return u}))}return d.r+=1,s(l)?F().then((()=>{l=l(),f()})):f(),{end(t){t&&l.tick&&l.tick(1,0),u&&(c&&P(e,c),u=!1)}}}function U(t,n){G(t,1,1,(()=>{n.delete(t.key)}))}function V(t,n,e,o,i,r,s,c,l,a,u,d){let f=t.length,p=r.length,m=f;const h={};for(;m--;)h[t[m].key]=m;const y=[],g=new Map,$=new Map;for(m=p;m--;){const t=d(i,r,m),c=e(t);let l=s.get(c);l?o&&l.p(t,n):(l=a(c,t),l.c()),g.set(c,y[m]=l),c in h&&$.set(c,Math.abs(m-h[c]))}const v=new Set,w=new Set;function A(t){Y(t,1),t.m(c,u),s.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=y[p-1],e=t[f-1],o=n.key,i=e.key;n===e?(u=n.first,f--,p--):g.has(i)?!s.has(o)||v.has(o)?A(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),A(n)):(v.add(i),f--):(l(e,s),f--)}for(;f--;){const n=t[f];g.has(n.key)||l(n,s)}for(;p;)A(y[p-1]);return y}function Z(t,n){const e={},o={},i={$$scope:1};let r=t.length;for(;r--;){const s=t[r],c=n[r];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)i[t]||(e[t]=c[t],i[t]=1);t[r]=c}else for(const t in s)i[t]=1}for(const t in o)t in e||(e[t]=void 0);return e}function tt(t,n){-1===t.$$.dirty[0]&&(I.push(t),E||(E=!0,R.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function nt(n,e,c,l,a,u,d=[-1]){const f=_;O(n);const p=e.props||{},m=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:i(),dirty:d,skip_bound:!1};let h=!1;if(m.ctx=c?c(n,p,((t,e,...o)=>{const i=o.length?o[0]:e;return m.ctx&&a(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),h&&tt(n,t)),e})):[],m.update(),h=!0,r(m.before_update),m.fragment=!!l&&l(m.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);m.fragment&&m.fragment.l(t),t.forEach(y)}else m.fragment&&m.fragment.c();e.intro&&Y(n.$$.fragment),function(t,n,e){const{fragment:i,on_mount:c,on_destroy:l,after_update:a}=t.$$;i&&i.m(n,e),T((()=>{const n=c.map(o).filter(s);l?l.push(...n):r(n),t.$$.on_mount=[]})),a.forEach(T)}(n,e.target,e.anchor),j()}O(f)}function et(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ot(t){const n=t-1;return n*n*n+1}const it=t=>"function"==typeof t?t:n=>t;function rt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: 0 ${n*r} ${t*r} 0`}}function st(t,n,e){const o=t.slice();return o[45]=n[e],o[47]=e,o}function ct(t,n,e){const o=t.slice();return o[48]=n[e],o[47]=e,o}function lt(t){let n,e,o,i=[],r=new Map,s=[],c=new Map,l=t[11];const a=t=>t[48].id;for(let n=0;n<l.length;n+=1){let e=ct(t,l,n),o=a(e);r.set(o,i[n]=ut(o,e))}let u=t[14];const d=t=>t[45].id;for(let n=0;n<u.length;n+=1){let e=st(t,u,n),o=d(e);c.set(o,s[n]=dt(o,e))}return{c(){n=g("svg");for(let t=0;t<i.length;t+=1)i[t].c();e=$();for(let t=0;t<s.length;t+=1)s[t].c();v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"style",t[4]),v(n,"width",t[13]),v(n,"height",t[15])},m(r,c){h(r,n,c);for(let t=0;t<i.length;t+=1)i[t].m(n,null);m(n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null);t[35](n),o=!0},p(t,l){if(2144&l[0]){const o=t[11];W(),i=V(i,l,a,1,t,o,r,n,U,ut,e,ct),X()}if(17920&l[0]){const e=t[14];W(),s=V(s,l,d,1,t,e,c,n,U,dt,null,st),X()}(!o||16&l[0])&&v(n,"style",t[4]),(!o||8192&l[0])&&v(n,"width",t[13]),(!o||32768&l[0])&&v(n,"height",t[15])},i(t){if(!o){for(let t=0;t<l.length;t+=1)Y(i[t]);for(let t=0;t<u.length;t+=1)Y(s[t]);o=!0}},o(t){for(let t=0;t<i.length;t+=1)G(i[t]);for(let t=0;t<s.length;t+=1)G(s[t]);o=!1},d(e){e&&y(n);for(let t=0;t<i.length;t+=1)i[t].d();for(let t=0;t<s.length;t+=1)s[t].d();t[35](null)}}}function at(t){let n,o,i,r,s,c=[{d:o=t[48].path},t[5](t[47])],l={};for(let t=0;t<c.length;t+=1)l=e(l,c[t]);return{c(){n=g("path"),w(n,l)},m(t,e){h(t,n,e),s=!0},p(e,i){t=e,w(n,l=Z(c,[(!s||2048&i[0]&&o!==(o=t[48].path))&&{d:o},2080&i[0]&&t[5](t[47])]))},i(e){s||(T((()=>{r&&r.end(1),i||(i=K(n,t[0],t[7](t[47]))),i.start()})),s=!0)},o(e){i&&i.invalidate(),r=Q(n,t[1],t[6](t[47])),s=!1},d(t){t&&y(n),t&&r&&r.end()}}}function ut(t,n){let e,o,i,r=n[48]&&at(n);return{key:t,first:null,c(){e=$(),r&&r.c(),o=$(),this.first=e},m(t,n){h(t,e,n),r&&r.m(t,n),h(t,o,n),i=!0},p(t,n){t[48]?r?(r.p(t,n),2048&n[0]&&Y(r,1)):(r=at(t),r.c(),Y(r,1),r.m(o.parentNode,o)):r&&(W(),G(r,1,1,(()=>{r=null})),X())},i(t){i||(Y(r),i=!0)},o(t){G(r),i=!1},d(t){t&&y(e),r&&r.d(t),t&&y(o)}}}function dt(t,n){let o,i,r,s,c,l,a,u,d,f=[{cx:r=0},{cy:s=0},{r:c=n[45].r},n[10](n[47])],p={};for(let t=0;t<f.length;t+=1)p=e(p,f[t]);return{key:t,first:null,c(){o=g("g"),i=g("circle"),w(i,p),v(o,"transform",u="translate("+n[45].x+" "+n[45].y+")"),this.first=o},m(t,n){h(t,o,n),m(o,i),d=!0},p(t,e){n=t,w(i,p=Z(f,[{cx:0},{cy:0},(!d||16384&e[0]&&c!==(c=n[45].r))&&{r:c},17408&e[0]&&n[10](n[47])])),(!d||16384&e[0]&&u!==(u="translate("+n[45].x+" "+n[45].y+")"))&&v(o,"transform",u)},i(t){d||(T((()=>{a&&a.end(1),l||(l=K(i,n[2],n[8](n[47]))),l.start()})),d=!0)},o(t){l&&l.invalidate(),a=Q(i,n[3],n[9](n[47])),d=!1},d(t){t&&y(o),t&&a&&a.end()}}}function ft(t){let n,e,o=t[12]&<(t);return{c(){o&&o.c(),n=$()},m(t,i){o&&o.m(t,i),h(t,n,i),e=!0},p(t,e){t[12]?o?(o.p(t,e),4096&e[0]&&Y(o,1)):(o=lt(t),o.c(),Y(o,1),o.m(n.parentNode,n)):o&&(W(),G(o,1,1,(()=>{o=null})),X())},i(t){e||(Y(o),e=!0)},o(t){G(o),e=!1},d(t){o&&o.d(t),t&&y(n)}}}function pt(t,n,e){let o,i,r,s,c,l,a,u,d,f,p,m,{node:h}=n,{nLines:y=10}=n,{nCircles:g=1}=n,{lineBreakDist:$=.3}=n,{randomness:v=1}=n,{backstep:w=0}=n,{rotation:A=(t=>20*Math.sin(Math.PI*t/90))}=n,{forceRelative:_=!0}=n,{forceOverflowHidden:b=!0}=n,{size:k=1}=n,{timeToRemove:P=500}=n,{circleRadius:O=1}=n,{lineProps:I={fill:"none","stroke-width":"10",stroke:"rgba(99,1,1,.5)"}}=n,{linesInAnimation:S}=n,{linesOutAnimation:C}=n,{linesInAnimationProps:R={duration:500}}=n,{linesOutAnimationProps:E={duration:500,delay:0}}=n,{circleInAnimation:T}=n,{circleOutAnimation:L}=n,{circleOutAnimationProps:z={duration:500}}=n,{circleInAnimationProps:j={duration:700,start:0}}=n,{circleProps:B={fill:"rgba(255,9,9,0.4)"}}=n,{svgStyle:D="position:absolute;overflow:hidden;top:0px;left:0px;"}=n,F=0,N=[],H=!1,q=1,W=1;const X=(t,n,i)=>{const r=F++,s=Array(y);for(let e=0;e<y;e++){let l=c(e);"string"==typeof l?l=parseFloat(l):l*=i;const a=l;let u="M"+t+" "+n;const d=0===$?a:$;let f=0,p=0;for(;p<a;){p+=d,f++;const i=2*Math.PI*e/y+Math.PI*o(f)/180,r=Math.sin(i),s=Math.cos(i);u+=" L"+(t+(f+1)*d*r+d*v*(Math.random()-.5))+" "+(n+(f+1)*d*s+d*v*(Math.random()-.5)),w>0&&(u+=" l"+-w*d*(r+v*(Math.random()-.5))+" "+-w*d*(s+v*(Math.random()-.5)))}s[e]={path:u+"M0 0",id:r.toString()+"-"+e}}e(11,N=s),e(14,f=Array(g).fill().map(((e,o)=>{let s=d(o);return"number"==typeof s?s*=i:s=parseFloat(s),{x:t,y:n,r:s,id:r.toString()+"+"+o}}))),p=setTimeout(Y,P)},Y=()=>{e(11,N=[]),e(14,f=[])},G=(t,n,o)=>{e(13,q=t.clientWidth+1),e(15,W=t.clientHeight+1),p=setTimeout(X,1,n,o,Math.sqrt(q*q+W*W))},J=t=>{Y(),e(12,H=!0);const n=h.getBoundingClientRect(),o=window.getComputedStyle(h);_&&"absolute"!==o.position&&"relative"!==o.position&&e(17,h.style.position="relative",h),!b||"hidden"===o.overflowX&&"hidden"===o.overflowY||(e(17,h.style.overflowX="hidden",h),e(17,h.style.overflowY="hidden",h));let i=t.clientX-n.left-(parseFloat(o.borderLeftWidth)||0),r=t.clientY-n.top-(parseFloat(o.borderTopWidth)||0);p=setTimeout(G,1,h,i,r)};var K;return K=()=>{h.addEventListener("mousedown",J),window.getComputedStyle(h)},x().$$.on_mount.push(K),function(t){x().$$.on_destroy.push(t)}((()=>{h.removeEventListener("mousedown",J),p&&clearTimeout(p)})),t.$$set=t=>{"node"in t&&e(17,h=t.node),"nLines"in t&&e(18,y=t.nLines),"nCircles"in t&&e(19,g=t.nCircles),"lineBreakDist"in t&&e(20,$=t.lineBreakDist),"randomness"in t&&e(21,v=t.randomness),"backstep"in t&&e(22,w=t.backstep),"rotation"in t&&e(23,A=t.rotation),"forceRelative"in t&&e(24,_=t.forceRelative),"forceOverflowHidden"in t&&e(25,b=t.forceOverflowHidden),"size"in t&&e(26,k=t.size),"timeToRemove"in t&&e(27,P=t.timeToRemove),"circleRadius"in t&&e(28,O=t.circleRadius),"lineProps"in t&&e(29,I=t.lineProps),"linesInAnimation"in t&&e(0,S=t.linesInAnimation),"linesOutAnimation"in t&&e(1,C=t.linesOutAnimation),"linesInAnimationProps"in t&&e(30,R=t.linesInAnimationProps),"linesOutAnimationProps"in t&&e(31,E=t.linesOutAnimationProps),"circleInAnimation"in t&&e(2,T=t.circleInAnimation),"circleOutAnimation"in t&&e(3,L=t.circleOutAnimation),"circleOutAnimationProps"in t&&e(32,z=t.circleOutAnimationProps),"circleInAnimationProps"in t&&e(33,j=t.circleInAnimationProps),"circleProps"in t&&e(34,B=t.circleProps),"svgStyle"in t&&e(4,D=t.svgStyle)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&(o=it(A)),536870912&t.$$.dirty[0]&&e(5,i=it(I)),1&t.$$.dirty[1]&&e(6,r=it(E)),1073741824&t.$$.dirty[0]&&e(7,s=it(R)),67108864&t.$$.dirty[0]&&(c=it(k)),4&t.$$.dirty[1]&&e(8,l=it(j)),2&t.$$.dirty[1]&&e(9,a=it(z)),8&t.$$.dirty[1]&&e(10,u=it(B)),268435456&t.$$.dirty[0]&&(d=it(O))},[S,C,T,L,D,i,r,s,l,a,u,N,H,q,f,W,m,h,y,g,$,v,w,A,_,b,k,P,O,I,R,E,z,j,B,function(t){M[t?"unshift":"push"]((()=>{m=t,e(16,m)}))}]}class mt extends class{$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),nt(this,t,pt,ft,c,{node:17,nLines:18,nCircles:19,lineBreakDist:20,randomness:21,backstep:22,rotation:23,forceRelative:24,forceOverflowHidden:25,size:26,timeToRemove:27,circleRadius:28,lineProps:29,linesInAnimation:0,linesOutAnimation:1,linesInAnimationProps:30,linesOutAnimationProps:31,circleInAnimation:2,circleOutAnimation:3,circleOutAnimationProps:32,circleInAnimationProps:33,circleProps:34,svgStyle:4},[-1,-1])}}function ht(t,{delay:n=0,duration:e=400,easing:o=et,amount:i=5,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.filter?"":s.filter,a=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`opacity: ${c-a*n}; filter: ${l} blur(${n*i}px);`}}function yt(t,{delay:e=0,duration:o=400,easing:i=n}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:o,easing:i,css:t=>"opacity: "+t*r}}function gt(t,{delay:n=0,duration:e=400,easing:o=ot,x:i=0,y:r=0,opacity:s=0}){const c=getComputedStyle(t),l=+c.opacity,a="none"===c.transform?"":c.transform,u=l*(1-s);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${a} translate(${(1-t)*i}px, ${(1-t)*r}px);\n\t\t\topacity: ${l-u*n}`}}function $t(t,{delay:n=0,duration:e=400,easing:o=ot,start:i=0,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.transform?"":s.transform,a=1-i,u=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${l} scale(${1-a*n});\n\t\t\topacity: ${c-u*n}\n\t\t`}}function vt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: ${t*r} ${n*r}`}}function wt(t,n={}){let e=Object.assign({},n,{node:t});e=_t(e);const o=new mt({target:t,props:e,anchor:anchor});return{update:t=>{e=_t(Object.assign(e,t)),o.$set(e)},destroy:()=>o.$destroy()}}const At=(t,n,e)=>(t[n]?("draw"===t[n]&&(t[n]=vt),"fade"===t[n]&&(t[n]=yt),"scale"===t[n]&&(t[n]=$t),"blur"===t[n]&&(t[n]=ht),"fly"===t[n]&&(t[n]=gt),"draw-reverse"===t[n]&&(t[n]=rt)):t[n]=e,t),_t=t=>(At(t,"linesInAnimation",vt),At(t,"linesOutAnimation",yt),At(t,"circleInAnimation",$t),At(t,"circleOutAnimation",yt),t);export default wt; | ||
*/function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function o(t){return t()}function i(){return Object.create(null)}function r(t){t.forEach(o)}function s(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}const l="undefined"!=typeof window;let a=l?()=>window.performance.now():()=>Date.now(),u=l?t=>requestAnimationFrame(t):t;const d=new Set;function f(t){d.forEach((n=>{n.c(t)||(d.delete(n),n.f())})),0!==d.size&&u(f)}function p(t){let n;return 0===d.size&&u(f),{promise:new Promise((e=>{d.add(n={c:t,f:e})})),abort(){d.delete(n)}}}function m(t,n){t.appendChild(n)}function h(t,n,e){t.insertBefore(n,e||null)}function y(t){t.parentNode.removeChild(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(){return t="",document.createTextNode(t);var t}function v(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function w(t,n){for(const e in n)v(t,e,n[e])}const A=new Set;let _,b=0;function k(t,n,e,o,i,r,s,c=0){const l=16.666/o;let a="{\n";for(let t=0;t<=1;t+=l){const o=n+(e-n)*r(t);a+=100*t+`%{${s(o,1-o)}}\n`}const u=a+`100% {${s(e,1-e)}}\n}`,d=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(u)}_${c}`,f=t.ownerDocument;A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(function(t){return document.createElement(t)}("style")).sheet),m=f.__svelte_rules||(f.__svelte_rules={});m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${d} ${o}ms linear ${i}ms 1 both`,b+=1,d}function P(t,n){const e=(t.style.animation||"").split(", "),o=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),i=e.length-o.length;i&&(t.style.animation=o.join(", "),b-=i,b||u((()=>{b||(A.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),A.clear())})))}function O(t){_=t}function x(){if(!_)throw new Error("Function called outside component initialization");return _}const I=[],M=[],S=[],C=[],R=Promise.resolve();let E=!1;function T(t){S.push(t)}let L=!1;const z=new Set;function j(){if(!L){L=!0;do{for(let t=0;t<I.length;t+=1){const n=I[t];O(n),B(n.$$)}for(O(null),I.length=0;M.length;)M.pop()();for(let t=0;t<S.length;t+=1){const n=S[t];z.has(n)||(z.add(n),n())}S.length=0}while(I.length);for(;C.length;)C.pop()();E=!1,L=!1,z.clear()}}function B(t){if(null!==t.fragment){t.update(),r(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}let D;function F(){return D||(D=Promise.resolve(),D.then((()=>{D=null}))),D}function N(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const H=new Set;let q;function W(){q={r:0,c:[],p:q}}function X(){q.r||r(q.c),q=q.p}function Y(t,n){t&&t.i&&(H.delete(t),t.i(n))}function G(t,n,e,o){if(t&&t.o){if(H.has(t))return;H.add(t),q.c.push((()=>{H.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}const J={duration:0};function K(e,o,i){let r,c,l=o(e,i),u=!1,d=0;function f(){r&&P(e,r)}function m(){const{delay:o=0,duration:i=300,easing:s=n,tick:m=t,css:h}=l||J;h&&(r=k(e,0,1,i,o,s,h,d++)),m(0,1);const y=a()+o,g=y+i;c&&c.abort(),u=!0,T((()=>N(e,!0,"start"))),c=p((t=>{if(u){if(t>=g)return m(1,0),N(e,!0,"end"),f(),u=!1;if(t>=y){const n=s((t-y)/i);m(n,1-n)}}return u}))}let h=!1;return{start(){h||(P(e),s(l)?(l=l(),F().then(m)):m())},invalidate(){h=!1},end(){u&&(f(),u=!1)}}}function Q(e,o,i){let c,l=o(e,i),u=!0;const d=q;function f(){const{delay:o=0,duration:i=300,easing:s=n,tick:f=t,css:m}=l||J;m&&(c=k(e,1,0,i,o,s,m));const h=a()+o,y=h+i;T((()=>N(e,!1,"start"))),p((t=>{if(u){if(t>=y)return f(0,1),N(e,!1,"end"),--d.r||r(d.c),!1;if(t>=h){const n=s((t-h)/i);f(1-n,n)}}return u}))}return d.r+=1,s(l)?F().then((()=>{l=l(),f()})):f(),{end(t){t&&l.tick&&l.tick(1,0),u&&(c&&P(e,c),u=!1)}}}function U(t,n){G(t,1,1,(()=>{n.delete(t.key)}))}function V(t,n,e,o,i,r,s,c,l,a,u,d){let f=t.length,p=r.length,m=f;const h={};for(;m--;)h[t[m].key]=m;const y=[],g=new Map,$=new Map;for(m=p;m--;){const t=d(i,r,m),c=e(t);let l=s.get(c);l?o&&l.p(t,n):(l=a(c,t),l.c()),g.set(c,y[m]=l),c in h&&$.set(c,Math.abs(m-h[c]))}const v=new Set,w=new Set;function A(t){Y(t,1),t.m(c,u),s.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=y[p-1],e=t[f-1],o=n.key,i=e.key;n===e?(u=n.first,f--,p--):g.has(i)?!s.has(o)||v.has(o)?A(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),A(n)):(v.add(i),f--):(l(e,s),f--)}for(;f--;){const n=t[f];g.has(n.key)||l(n,s)}for(;p;)A(y[p-1]);return y}function Z(t,n){const e={},o={},i={$$scope:1};let r=t.length;for(;r--;){const s=t[r],c=n[r];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)i[t]||(e[t]=c[t],i[t]=1);t[r]=c}else for(const t in s)i[t]=1}for(const t in o)t in e||(e[t]=void 0);return e}function tt(t,n){-1===t.$$.dirty[0]&&(I.push(t),E||(E=!0,R.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function nt(n,e,c,l,a,u,d=[-1]){const f=_;O(n);const p=e.props||{},m=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:i(),dirty:d,skip_bound:!1};let h=!1;if(m.ctx=c?c(n,p,((t,e,...o)=>{const i=o.length?o[0]:e;return m.ctx&&a(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),h&&tt(n,t)),e})):[],m.update(),h=!0,r(m.before_update),m.fragment=!!l&&l(m.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);m.fragment&&m.fragment.l(t),t.forEach(y)}else m.fragment&&m.fragment.c();e.intro&&Y(n.$$.fragment),function(t,n,e){const{fragment:i,on_mount:c,on_destroy:l,after_update:a}=t.$$;i&&i.m(n,e),T((()=>{const n=c.map(o).filter(s);l?l.push(...n):r(n),t.$$.on_mount=[]})),a.forEach(T)}(n,e.target,e.anchor),j()}O(f)}function et(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ot(t){const n=t-1;return n*n*n+1}const it=t=>"function"==typeof t?t:n=>t;function rt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: 0 ${n*r} ${t*r} 0`}}function st(t,n,e){const o=t.slice();return o[45]=n[e],o[47]=e,o}function ct(t,n,e){const o=t.slice();return o[48]=n[e],o[47]=e,o}function lt(t){let n,e,o,i=[],r=new Map,s=[],c=new Map,l=t[11];const a=t=>t[48].id;for(let n=0;n<l.length;n+=1){let e=ct(t,l,n),o=a(e);r.set(o,i[n]=ut(o,e))}let u=t[14];const d=t=>t[45].id;for(let n=0;n<u.length;n+=1){let e=st(t,u,n),o=d(e);c.set(o,s[n]=dt(o,e))}return{c(){n=g("svg");for(let t=0;t<i.length;t+=1)i[t].c();e=$();for(let t=0;t<s.length;t+=1)s[t].c();v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"style",t[4]),v(n,"width",t[13]),v(n,"height",t[15])},m(r,c){h(r,n,c);for(let t=0;t<i.length;t+=1)i[t].m(n,null);m(n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null);t[35](n),o=!0},p(t,l){if(2144&l[0]){const o=t[11];W(),i=V(i,l,a,1,t,o,r,n,U,ut,e,ct),X()}if(17920&l[0]){const e=t[14];W(),s=V(s,l,d,1,t,e,c,n,U,dt,null,st),X()}(!o||16&l[0])&&v(n,"style",t[4]),(!o||8192&l[0])&&v(n,"width",t[13]),(!o||32768&l[0])&&v(n,"height",t[15])},i(t){if(!o){for(let t=0;t<l.length;t+=1)Y(i[t]);for(let t=0;t<u.length;t+=1)Y(s[t]);o=!0}},o(t){for(let t=0;t<i.length;t+=1)G(i[t]);for(let t=0;t<s.length;t+=1)G(s[t]);o=!1},d(e){e&&y(n);for(let t=0;t<i.length;t+=1)i[t].d();for(let t=0;t<s.length;t+=1)s[t].d();t[35](null)}}}function at(t){let n,o,i,r,s,c=[{d:o=t[48].path},t[5](t[47])],l={};for(let t=0;t<c.length;t+=1)l=e(l,c[t]);return{c(){n=g("path"),w(n,l)},m(t,e){h(t,n,e),s=!0},p(e,i){t=e,w(n,l=Z(c,[(!s||2048&i[0]&&o!==(o=t[48].path))&&{d:o},2080&i[0]&&t[5](t[47])]))},i(e){s||(T((()=>{r&&r.end(1),i||(i=K(n,t[0],t[7](t[47]))),i.start()})),s=!0)},o(e){i&&i.invalidate(),r=Q(n,t[1],t[6](t[47])),s=!1},d(t){t&&y(n),t&&r&&r.end()}}}function ut(t,n){let e,o,i,r=n[48]&&at(n);return{key:t,first:null,c(){e=$(),r&&r.c(),o=$(),this.first=e},m(t,n){h(t,e,n),r&&r.m(t,n),h(t,o,n),i=!0},p(t,n){t[48]?r?(r.p(t,n),2048&n[0]&&Y(r,1)):(r=at(t),r.c(),Y(r,1),r.m(o.parentNode,o)):r&&(W(),G(r,1,1,(()=>{r=null})),X())},i(t){i||(Y(r),i=!0)},o(t){G(r),i=!1},d(t){t&&y(e),r&&r.d(t),t&&y(o)}}}function dt(t,n){let o,i,r,s,c,l,a,u,d,f=[{cx:r=0},{cy:s=0},{r:c=n[45].r},n[10](n[47])],p={};for(let t=0;t<f.length;t+=1)p=e(p,f[t]);return{key:t,first:null,c(){o=g("g"),i=g("circle"),w(i,p),v(o,"transform",u="translate("+n[45].x+" "+n[45].y+")"),this.first=o},m(t,n){h(t,o,n),m(o,i),d=!0},p(t,e){n=t,w(i,p=Z(f,[{cx:0},{cy:0},(!d||16384&e[0]&&c!==(c=n[45].r))&&{r:c},17408&e[0]&&n[10](n[47])])),(!d||16384&e[0]&&u!==(u="translate("+n[45].x+" "+n[45].y+")"))&&v(o,"transform",u)},i(t){d||(T((()=>{a&&a.end(1),l||(l=K(i,n[2],n[8](n[47]))),l.start()})),d=!0)},o(t){l&&l.invalidate(),a=Q(i,n[3],n[9](n[47])),d=!1},d(t){t&&y(o),t&&a&&a.end()}}}function ft(t){let n,e,o=t[12]&<(t);return{c(){o&&o.c(),n=$()},m(t,i){o&&o.m(t,i),h(t,n,i),e=!0},p(t,e){t[12]?o?(o.p(t,e),4096&e[0]&&Y(o,1)):(o=lt(t),o.c(),Y(o,1),o.m(n.parentNode,n)):o&&(W(),G(o,1,1,(()=>{o=null})),X())},i(t){e||(Y(o),e=!0)},o(t){G(o),e=!1},d(t){o&&o.d(t),t&&y(n)}}}function pt(t,n,e){let o,i,r,s,c,l,a,u,d,f,p,m,{node:h}=n,{nLines:y=10}=n,{nCircles:g=1}=n,{lineBreakDist:$=.3}=n,{randomness:v=1}=n,{backstep:w=0}=n,{rotation:A=(t=>20*Math.sin(Math.PI*t/90))}=n,{forceRelative:_=!0}=n,{forceOverflowHidden:b=!0}=n,{size:k=1}=n,{timeToRemove:P=500}=n,{circleRadius:O=1}=n,{lineProps:I={fill:"none","stroke-width":"10",stroke:"rgba(99,1,1,.5)"}}=n,{linesInAnimation:S}=n,{linesOutAnimation:C}=n,{linesInAnimationProps:R={duration:500}}=n,{linesOutAnimationProps:E={duration:500,delay:0}}=n,{circleInAnimation:T}=n,{circleOutAnimation:L}=n,{circleOutAnimationProps:z={duration:500}}=n,{circleInAnimationProps:j={duration:700,start:0}}=n,{circleProps:B={fill:"rgba(255,9,9,0.4)"}}=n,{svgStyle:D="position:absolute;overflow:hidden;top:0px;left:0px;"}=n,F=0,N=[],H=!1,q=1,W=1;const X=(t,n,i)=>{const r=F++,s=Array(y);for(let e=0;e<y;e++){let l=c(e);"string"==typeof l?l=parseFloat(l):l*=i;const a=l;let u="M"+t+" "+n;const d=0===$?a:$;let f=0,p=0;for(;p<a;){p+=d,f++;const i=2*Math.PI*e/y+Math.PI*o(f)/180,r=Math.sin(i),s=Math.cos(i);u+=" L"+(t+(f+1)*d*r+d*v*(Math.random()-.5))+" "+(n+(f+1)*d*s+d*v*(Math.random()-.5)),w>0&&(u+=" l"+-w*d*(r+v*(Math.random()-.5))+" "+-w*d*(s+v*(Math.random()-.5)))}s[e]={path:u+"M0 0",id:r.toString()+"-"+e}}e(11,N=s),e(14,f=Array(g).fill().map(((e,o)=>{let s=d(o);return"number"==typeof s?s*=i:s=parseFloat(s),{x:t,y:n,r:s,id:r.toString()+"+"+o}}))),p=setTimeout(Y,P)},Y=()=>{e(11,N=[]),e(14,f=[])},G=(t,n,o)=>{e(13,q=t.clientWidth+1),e(15,W=t.clientHeight+1),p=setTimeout(X,1,n,o,Math.sqrt(q*q+W*W))},J=t=>{Y(),e(12,H=!0);const n=h.getBoundingClientRect(),o=window.getComputedStyle(h);_&&"absolute"!==o.position&&"relative"!==o.position&&e(17,h.style.position="relative",h),!b||"hidden"===o.overflowX&&"hidden"===o.overflowY||(e(17,h.style.overflowX="hidden",h),e(17,h.style.overflowY="hidden",h));let i=t.clientX-n.left-(parseFloat(o.borderLeftWidth)||0),r=t.clientY-n.top-(parseFloat(o.borderTopWidth)||0);p=setTimeout(G,1,h,i,r)};var K;return K=()=>{h.addEventListener("mousedown",J),window.getComputedStyle(h)},x().$$.on_mount.push(K),function(t){x().$$.on_destroy.push(t)}((()=>{h.removeEventListener("mousedown",J),p&&clearTimeout(p)})),t.$$set=t=>{"node"in t&&e(17,h=t.node),"nLines"in t&&e(18,y=t.nLines),"nCircles"in t&&e(19,g=t.nCircles),"lineBreakDist"in t&&e(20,$=t.lineBreakDist),"randomness"in t&&e(21,v=t.randomness),"backstep"in t&&e(22,w=t.backstep),"rotation"in t&&e(23,A=t.rotation),"forceRelative"in t&&e(24,_=t.forceRelative),"forceOverflowHidden"in t&&e(25,b=t.forceOverflowHidden),"size"in t&&e(26,k=t.size),"timeToRemove"in t&&e(27,P=t.timeToRemove),"circleRadius"in t&&e(28,O=t.circleRadius),"lineProps"in t&&e(29,I=t.lineProps),"linesInAnimation"in t&&e(0,S=t.linesInAnimation),"linesOutAnimation"in t&&e(1,C=t.linesOutAnimation),"linesInAnimationProps"in t&&e(30,R=t.linesInAnimationProps),"linesOutAnimationProps"in t&&e(31,E=t.linesOutAnimationProps),"circleInAnimation"in t&&e(2,T=t.circleInAnimation),"circleOutAnimation"in t&&e(3,L=t.circleOutAnimation),"circleOutAnimationProps"in t&&e(32,z=t.circleOutAnimationProps),"circleInAnimationProps"in t&&e(33,j=t.circleInAnimationProps),"circleProps"in t&&e(34,B=t.circleProps),"svgStyle"in t&&e(4,D=t.svgStyle)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&(o=it(A)),536870912&t.$$.dirty[0]&&e(5,i=it(I)),1&t.$$.dirty[1]&&e(6,r=it(E)),1073741824&t.$$.dirty[0]&&e(7,s=it(R)),67108864&t.$$.dirty[0]&&(c=it(k)),4&t.$$.dirty[1]&&e(8,l=it(j)),2&t.$$.dirty[1]&&e(9,a=it(z)),8&t.$$.dirty[1]&&e(10,u=it(B)),268435456&t.$$.dirty[0]&&(d=it(O))},[S,C,T,L,D,i,r,s,l,a,u,N,H,q,f,W,m,h,y,g,$,v,w,A,_,b,k,P,O,I,R,E,z,j,B,function(t){M[t?"unshift":"push"]((()=>{m=t,e(16,m)}))}]}class mt extends class{$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),nt(this,t,pt,ft,c,{node:17,nLines:18,nCircles:19,lineBreakDist:20,randomness:21,backstep:22,rotation:23,forceRelative:24,forceOverflowHidden:25,size:26,timeToRemove:27,circleRadius:28,lineProps:29,linesInAnimation:0,linesOutAnimation:1,linesInAnimationProps:30,linesOutAnimationProps:31,circleInAnimation:2,circleOutAnimation:3,circleOutAnimationProps:32,circleInAnimationProps:33,circleProps:34,svgStyle:4},[-1,-1])}}function ht(t,{delay:n=0,duration:e=400,easing:o=et,amount:i=5,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.filter?"":s.filter,a=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`opacity: ${c-a*n}; filter: ${l} blur(${n*i}px);`}}function yt(t,{delay:e=0,duration:o=400,easing:i=n}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:o,easing:i,css:t=>"opacity: "+t*r}}function gt(t,{delay:n=0,duration:e=400,easing:o=ot,x:i=0,y:r=0,opacity:s=0}){const c=getComputedStyle(t),l=+c.opacity,a="none"===c.transform?"":c.transform,u=l*(1-s);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${a} translate(${(1-t)*i}px, ${(1-t)*r}px);\n\t\t\topacity: ${l-u*n}`}}function $t(t,{delay:n=0,duration:e=400,easing:o=ot,start:i=0,opacity:r=0}){const s=getComputedStyle(t),c=+s.opacity,l="none"===s.transform?"":s.transform,a=1-i,u=c*(1-r);return{delay:n,duration:e,easing:o,css:(t,n)=>`\n\t\t\ttransform: ${l} scale(${1-a*n});\n\t\t\topacity: ${c-u*n}\n\t\t`}}function vt(t,{delay:n=0,speed:e,duration:o,easing:i=et}){const r=t.getTotalLength();return void 0===o?o=void 0===e?800:r/e:"function"==typeof o&&(o=o(r)),{delay:n,duration:o,easing:i,css:(t,n)=>`stroke-dasharray: ${t*r} ${n*r}`}}function wt(t,n={}){let e=Object.assign({},n,{node:t});e=_t(e);const o=new mt({target:t,props:e});return{update:t=>{e=_t(Object.assign(e,t)),o.$set(e)},destroy:()=>o.$destroy()}}const At=(t,n,e)=>(t[n]?("draw"===t[n]&&(t[n]=vt),"fade"===t[n]&&(t[n]=yt),"scale"===t[n]&&(t[n]=$t),"blur"===t[n]&&(t[n]=ht),"fly"===t[n]&&(t[n]=gt),"draw-reverse"===t[n]&&(t[n]=rt)):t[n]=e,t),_t=t=>(At(t,"linesInAnimation",vt),At(t,"linesOutAnimation",yt),At(t,"circleInAnimation",$t),At(t,"circleOutAnimation",yt),t);export default wt; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "descent-ripple", | ||
"description": "A ripple animation overlay for buttons. Uses svg and is build with Svelte", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "rollup -c" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
235911