SOURCE / PINNED RELEASE
Made of little things.
Nsec Hacker
- Release
- 78dc7f156f89…
- Author-recorded commit
- Not provided
- License
- Check the original source
The hash-verified playable HTML, which may contain bundled or minified code. This view does not execute it.
<!doctype html>
<html lang="en">
<head><meta name="description" content="Brute-force your own nsec. It will not work. That is the joke.">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nsec Hacker</title>
<script type="module" crossorigin>function e(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},r={duration:.5,overwrite:!1,delay:0},i,a,o,s=1e8,c=1/s,l=Math.PI*2,u=l/4,d=0,f=Math.sqrt,p=Math.cos,m=Math.sin,h=function(e){return typeof e==`string`},g=function(e){return typeof e==`function`},_=function(e){return typeof e==`number`},v=function(e){return e===void 0},y=function(e){return typeof e==`object`},b=function(e){return e!==!1},x=function(){return typeof window<`u`},S=function(e){return g(e)||h(e)},C=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},w=Array.isArray,T=/random\([^)]+\)/g,E=/,\s*/g,D=/(?:-?\.?\d|\.)+/gi,O=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,k=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,A=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,M=/[^,'"\[\]\s]+/gi,N=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,P,F,I,L,R={},ee={},z,te=function(e){return(ee=je(e,R))&&Kn},ne=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},re=function(e,t){return!t&&console.warn(e)},ie=function(e,t){return e&&(R[e]=t)&&ee&&(ee[e]=t)||R},ae=function(){return 0},oe={suppressEvents:!0,isStart:!0,kill:!1},se={suppressEvents:!0,kill:!1},ce={suppressEvents:!0},le={},ue=[],de={},fe,pe={},me={},he=30,ge=[],_e=``,ve=function(e){var t=e[0],n,r;if(y(t)||g(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=ge.length;r--&&!ge[r].targetTest(t););n=ge[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new rn(e[r],n)))||e.splice(r,1);return e},ye=function(e){return e._gsap||ve(pt(e))[0]._gsap},be=function(e,t,n){return(n=e[t])&&g(n)?e[t]():v(n)&&e.getAttribute&&e.getAttribute(t)||n},xe=function(e,t){return(e=e.split(`,`)).forEach(t)||e},B=function(e){return Math.round(e*1e5)/1e5||0},V=function(e){return Math.round(e*1e7)/1e7||0},Se=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Ce=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},we=function(){var e=ue.length,t=ue.slice(0),n,r;for(de={},ue.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Te=function(e){return!!(e._initted||e._startAt||e.add)},Ee=function(e,t,n,r){ue.length&&!a&&we(),e.render(t,n,r||!!(a&&t<0&&Te(e))),ue.length&&!a&&we()},De=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(M).length<2?t:h(e)?e.trim():e},Oe=function(e){return e},ke=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Ae=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},je=function(e,t){for(var n in t)e[n]=t[n];return e},Me=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=y(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Ne=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Pe=function(e){var t=e.parent||P,n=e.keyframes?Ae(w(e.keyframes)):ke;if(b(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Fe=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Ie=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Le=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Re=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ze=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Be=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Ve=function(e,t,n,r){return e._startAt&&(a?e._startAt.revert(se):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},He=function e(t){return!t||t._ts&&e(t.parent)},Ue=function(e){return e._repeat?We(e._tTime,e=e.duration()+e._rDelay)*e:0},We=function(e,t){var n=Math.floor(e=V(e/t));return e&&n===e?n-1:n},Ge=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Ke=function(e){return e._end=V(e._start+(e._tDur/Math.abs(e._ts||e._rts||c)||0))},qe=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=V(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Ke(e),n._dirty||ze(n,e)),e},Je=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Ge(e.rawTime(),t),(!t._dur||ct(0,t.totalDuration(),n)-t._tTime>c)&&t.render(n,!0)),ze(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-c}},Ye=function(e,t,n,r){return t.parent&&Re(t),t._start=V((_(n)?n:n||e!==P?at(e,n,t):e._time)+t._delay),t._end=V(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ie(e,t,`_first`,`_last`,e._sort?`_start`:0),$e(t)||(e._recent=t),r||Je(e,t),e._ts<0&&qe(e,e._tTime),e},Xe=function(e,t){return(R.ScrollTrigger||ne(`scrollTrigger`,t))&&R.ScrollTrigger.create(t,e)},Ze=function(e,t,n,r,i){if(fn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!a&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&fe!==Wt.frame)return ue.push(e),e._lazy=[i,r],1},Qe=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},$e=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},et=function(e,t,n,r){var i=e.ratio,o=t<0||!t&&(!e._start&&Qe(e)&&!(!e._initted&&$e(e))||(e._ts<0||e._dp._ts<0)&&!$e(e))?0:1,s=e._rDelay,l=0,u,d,f;if(s&&e._repeat&&(l=ct(0,e._tDur,t),d=We(l,s),e._yoyo&&d&1&&(o=1-o),d!==We(e._tTime,s)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||a||r||e._zTime===c||!t&&e._zTime){if(!e._initted&&Ze(e,t,r,n,l))return;for(f=e._zTime,e._zTime=t||(n?c:0),n||=t&&!f,e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;t<0&&Ve(e,t,n,!0),e._onUpdate&&!n&&At(e,`onUpdate`),l&&e._repeat&&!n&&e.parent&&At(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Re(e,1),!n&&!a&&(At(e,o?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},tt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},nt=function(e,t,n,r){var i=e._repeat,a=V(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:V(a*(i+1)+e._rDelay*i):a,o>0&&!r&&qe(e,e._tTime=e._tDur*o),e.parent&&Ke(e),n||ze(e.parent,e),e},rt=function(e){return e instanceof G?ze(e):nt(e,e._dur)},it={_start:0,endTime:ae,totalDuration:ae},at=function e(t,n,r){var i=t.labels,a=t._recent||it,o=t.duration()>=s?a.endTime(!1):t._dur,c,l,u;return h(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),u=n.substr(-1)===`%`,c=n.indexOf(`=`),l===`<`||l===`>`?(c>=0&&(n=n.replace(/=/,``)),(l===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(c<0?a:r).totalDuration()/100:1)):c<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(c-1)+n.substr(c+1)),u&&r&&(l=l/100*(w(r)?r[0]:r).totalDuration()),c>1?e(t,n.substr(0,c-1),r)+l:o+l)):n==null?o:+n},ot=function(e,t,n){var r=_(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=b(s.vars.inherit)&&s.parent;a.immediateRender=b(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new K(t[0],a,t[i+1])},st=function(e,t){return e||e===0?t(e):t},ct=function(e,t,n){return n<e?e:n>t?t:n},H=function(e,t){return!h(e)||!(t=N.exec(e))?``:t[1]},lt=function(e,t,n){return st(n,function(n){return ct(e,t,n)})},ut=[].slice,dt=function(e,t){return e&&y(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&y(e[0]))&&!e.nodeType&&e!==F},ft=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return h(e)&&!t||dt(e,1)?(r=n).push.apply(r,pt(e)):n.push(e)})||n},pt=function(e,t,n){return o&&!t&&o.selector?o.selector(e):h(e)&&!n&&(I||!Gt())?ut.call((t||L).querySelectorAll(e),0):w(e)?ft(e,n):dt(e)?ut.call(e,0):e?[e]:[]},mt=function(e){return e=pt(e)[0]||re(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return pt(t,n.querySelectorAll?n:n===e?re(`Invalid scope`)||L.createElement(`div`):e)}},ht=function(e){return e.sort(function(){return .5-Math.random()})},gt=function(e){if(g(e))return e;var t=y(e)?e:{each:e},n=Qt(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,c=isNaN(r)||o,l=t.axis,u=r,d=r;return h(r)?u=d={center:.5,edges:.5,end:1}[r]||0:!o&&c&&(u=r[0],d=r[1]),function(e,o,p){var m=(p||t).length,h=a[m],g,_,v,y,b,x,S,C,w;if(!h){if(w=t.grid===`auto`?0:(t.grid||[1,s])[1],!w){for(S=-s;S<(S=p[w++].getBoundingClientRect().left)&&w<m;);w<m&&w--}for(h=a[m]=[],g=c?Math.min(w,m)*u-.5:r%w,_=w===s?0:c?m*d/w-.5:r/w|0,S=0,C=s,x=0;x<m;x++)v=x%w-g,y=_-(x/w|0),h[x]=b=l?Math.abs(l===`y`?y:v):f(v*v+y*y),b>S&&(S=b),b<C&&(C=b);r===`random`&&ht(h),h.max=S-C,h.min=C,h.v=m=(parseFloat(t.amount)||parseFloat(t.each)*(w>m?m-1:l?l===`y`?m/w:w:Math.max(w,m/w))||0)*(r===`edges`?-1:1),h.b=m<0?i-m:i,h.u=H(t.amount||t.each)||0,n=n&&m<0?Zt(n):n}return m=(h[e]-h.min)/h.max||0,V(h.b+(n?n(m):m)*h.v)+h.u}},_t=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=V(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(_(n)?0:H(n))}},vt=function(e,t){var n=w(e),r,i;return!n&&y(e)&&(r=n=e.radius||s,e.values?(e=pt(e.values),(i=!_(e[0]))&&(r*=r)):e=_t(e.increment)),st(t,n?g(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=s,c=0,l=e.length,u,d;l--;)i?(u=e[l].x-n,d=e[l].y-a,u=u*u+d*d):u=Math.abs(e[l]-n),u<o&&(o=u,c=l);return c=!r||o<=r?e[c]:t,i||c===t||_(t)?c:c+H(t)}:_t(e))},yt=function(e,t,n,r){return st(w(e)?!t:n===!0?!!(n=0):!r,function(){return w(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},bt=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},xt=function(e,t){return function(n){return e(parseFloat(n))+(t||H(n))}},St=function(e,t,n){return Dt(e,t,0,1,n)},Ct=function(e,t,n){return st(n,function(n){return e[~~t(n)]})},wt=function e(t,n,r){var i=n-t;return w(t)?Ct(t,e(0,t.length),n):st(r,function(e){return(i+(e-t)%i)%i+t})},Tt=function e(t,n,r){var i=n-t,a=i*2;return w(t)?Ct(t,e(0,t.length-1),n):st(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Et=function(e){return e.replace(T,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(E);return yt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Dt=function(e,t,n,r,i){var a=t-e,o=r-n;return st(i,function(t){return n+((t-e)/a*o||0)})},Ot=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=h(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(w(t)&&!w(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=je(w(t)?[]:{},t));if(!u){for(c in n)sn.call(s,t,c,`get`,n[c]);a=function(e){return Dn(e,s)||(o?t.p:t)}}}return st(r,a)},kt=function(e,t,n){var r=e.labels,i=s,a,o,c;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(c=a,i=o);return c},At=function(e,t,n){var r=e.vars,i=r[t],a=o,s=e._ctx,c,l,u;if(i)return c=r[t+`Params`],l=r.callbackScope||e,n&&ue.length&&we(),s&&(o=s),u=c?i.apply(l,c):i.call(l),o=a,u},jt=function(e){return Re(e),e.scrollTrigger&&e.scrollTrigger.kill(!!a),e.progress()<1&&At(e,`onInterrupt`),e},Mt,Nt=[],Pt=function(e){if(e)if(e=!e.name&&e.default||e,x()||e.headless){var t=e.name,n=g(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:ae,render:Dn,add:sn,kill:kn,modifier:On,rawVars:0},a={targetTest:0,get:0,getSetter:Cn,aliases:{},register:0};if(Gt(),e!==r){if(pe[t])return;ke(r,ke(Ne(e,i),a)),je(r.prototype,je(i,Ne(e,a))),pe[r.prop=t]=r,e.targetTest&&(ge.push(r),le[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ie(t,r),e.register&&e.register(Kn,r,Mn)}else Nt.push(e)},U=255,Ft={aqua:[0,U,U],lime:[0,U,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,U],navy:[0,0,128],white:[U,U,U],olive:[128,128,0],yellow:[U,U,0],orange:[U,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[U,0,0],pink:[U,192,203],cyan:[0,U,U],transparent:[U,U,U,0]},It=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*U+.5|0},Lt=function(e,t,n){var r=e?_(e)?[e>>16,e>>8&U,e&U]:0:Ft.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Ft[e])r=Ft[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&U,r&U,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&U,e&U]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(D),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=It(s+1/3,i,a),r[1]=It(s,i,a),r[2]=It(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(O),n&&r.length<4&&(r[3]=1),r}else r=e.match(D)||Ft.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/U,a=r[1]/U,o=r[2]/U,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},Rt=function(e){var t=[],n=[],r=-1;return e.split(Bt).forEach(function(e){var i=e.match(k)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},zt=function(e,t,n){var r=``,i=(e+r).match(Bt),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=Lt(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=Rt(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Bt,`1`).split(k),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Bt),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Bt=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in Ft)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Vt=/hsl[a]?\(/,Ht=function(e){var t=e.join(` `),n;if(Bt.lastIndex=0,Bt.test(t))return n=Vt.test(t),e[1]=zt(e[1],n),e[0]=zt(e[0],n,Rt(e[1])),!0},Ut,Wt=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){z&&(!I&&x()&&(F=I=window,L=F.document||{},R.gsap=Kn,(F.gsapVersions||(F.gsapVersions=[])).push(Kn.version),te(ee||F.GreenSockGlobals||!F.gsap&&F||{}),Nt.forEach(Pt)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Ut=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Ut=0,l=ae},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Gt(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Gt=function(){return!Ut&&Wt.wake()},W={},Kt=/^[\d.\-M][\d.\-,\s]/,qt=/["']/g,Jt=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(qt,``).trim():+c,r=s.substr(o+1).trim();return t},Yt=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Xt=function(e){var t=(e+``).split(`(`),n=W[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Jt(t[1])]:Yt(e).split(`,`).map(De)):W._CE&&Kt.test(e)?W._CE(``,e):n},Zt=function(e){return function(t){return 1-e(1-t)}},Qt=function(e,t){return e&&(g(e)?e:W[e]||Xt(e))||t},$t=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return xe(e,function(e){for(var t in W[e]=R[e]=i,W[a=e.toLowerCase()]=n,i)W[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=W[e+`.`+t]=i[t]}),i},en=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},tn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/l*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*m((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:en(s);return a=l/a,c.config=function(n,r){return e(t,n,r)},c},nn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:en(r);return i.config=function(n){return e(t,n)},i};xe(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;$t(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),W.Linear.easeNone=W.none=W.Linear.easeIn,$t(`Elastic`,tn(`in`),tn(`out`),tn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};$t(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),$t(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),$t(`Circ`,function(e){return-(f(1-e*e)-1)}),$t(`Sine`,function(e){return e===1?1:-p(e*u)+1}),$t(`Back`,nn(`in`),nn(`out`),nn()),W.SteppedEase=W.steps=R.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-c;return function(e){return((r*ct(0,a,e)|0)+i)*n}}},r.ease=W[`quad.out`],xe(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return _e+=e+`,`+e+`Params,`});var rn=function(e,t){this.id=d++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:be,this.set=t?t.getSetter:Cn},an=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,nt(this,+e.duration,1,1),this.data=e.data,o&&(this._ctx=o,o.data.push(this)),Ut||Wt.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,nt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Gt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(qe(this,e),!n._dp||n.parent||Je(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Ye(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===c||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ee(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ue(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Ue(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?We(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-c?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Ge(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-c?0:this._rts,this.totalTime(ct(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Ke(this),Be(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==c&&(this._tTime-=c)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=V(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ye(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(b(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ge(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=ce);var t=a;return a=e,Te(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),a=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,rt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,rt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(at(this,e),b(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,b(t)),this._dur||(this._zTime=-c),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-c:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-c,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-c)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=g(e)?e:Oe,a=function(){var e=t.then;t.then=null,n&&n(),g(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){jt(this)},e}();ke(an.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-c,_prom:0,_ps:!1,_rts:1});var G=function(r){t(i,r);function i(t,n){var i;return t===void 0&&(t={}),i=r.call(this,t)||this,i.labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=b(t.sortChildren),P&&Ye(t.parent||P,e(i),n),t.reversed&&i.reverse(),t.paused&&i.paused(!0),t.scrollTrigger&&Xe(e(i),t.scrollTrigger),i}var o=i.prototype;return o.to=function(e,t,n){return ot(0,arguments,this),this},o.from=function(e,t,n){return ot(1,arguments,this),this},o.fromTo=function(e,t,n,r){return ot(2,arguments,this),this},o.set=function(e,t,n){return t.duration=0,t.parent=this,Pe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new K(e,t,at(this,n),1),this},o.call=function(e,t,n){return Ye(this,K.delayedCall(0,e,t),n)},o.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new K(e,n,at(this,i)),this},o.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Pe(n).immediateRender=b(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},o.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Pe(r).immediateRender=b(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},o.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,o=this._dur,s=e<=0?0:V(e),l=this._zTime<0!=e<0&&(this._initted||!o),u,d,f,p,m,h,g,_,v,y,b,x;if(this!==P&&s>i&&e>=0&&(s=i),s!==this._tTime||n||l){if(r!==this._time&&o&&(s+=this._time-r,e+=this._time-r),u=s,v=this._start,_=this._ts,h=!_,l&&(o||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(b=this._yoyo,m=o+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(m*100+e,t,n);if(u=V(s%m),s===i?(p=this._repeat,u=o):(y=V(s/m),p=~~y,p&&p===y&&(u=o,p--),u>o&&(u=o)),y=We(this._tTime,m),!r&&this._tTime&&y!==p&&this._tTime-y*m-this._dur<=0&&(y=p),b&&p&1&&(u=o-u,x=1),p!==y&&!this._lock){var S=b&&y&1,C=S===(b&&p&1);if(p<y&&(S=!S),r=S?0:s%o?o:s,this._lock=1,this.render(r||(x?0:V(p*m)),t,!o)._lock=0,this._tTime=s,!t&&this.parent&&At(this,`onRepeat`),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,y=p),r&&r!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(o=this._dur,i=this._tDur,C&&(this._lock=2,r=S?o:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!h))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=tt(this,V(r),V(u)),g&&(s-=u-(u=g._start))),this._tTime=s,this._time=u,this._act=!!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&s&&o&&!t&&!y&&(At(this,`onStart`),this._tTime!==s))return this;if(u>=r&&e>=0)for(d=this._first;d;){if(f=d._next,(d._act||u>=d._start)&&d._ts&&g!==d){if(d.parent!==this)return this.render(e,t,n);if(d.render(d._ts>0?(u-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(u-d._start)*d._ts,t,n),u!==this._time||!this._ts&&!h){g=0,f&&(s+=this._zTime=-c);break}}d=f}else{d=this._last;for(var w=e<0?e:u;d;){if(f=d._prev,(d._act||w<=d._end)&&d._ts&&g!==d){if(d.parent!==this)return this.render(e,t,n);if(d.render(d._ts>0?(w-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(w-d._start)*d._ts,t,n||a&&Te(d)),u!==this._time||!this._ts&&!h){g=0,f&&(s+=this._zTime=w?-c:c);break}}d=f}}if(g&&!t&&(this.pause(),g.render(u>=r?0:-c)._zTime=u>=r?1:-1,this._ts))return this._start=v,Ke(this),this.render(e,t,n);this._onUpdate&&!t&&At(this,`onUpdate`,!0),(s===i&&this._tTime>=this.totalDuration()||!s&&r)&&(v===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((e||!o)&&(s===i&&this._ts>0||!s&&this._ts<0)&&Re(this,1),!t&&!(e<0&&!r)&&(s||r||!i)&&(At(this,s===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(e,t){var n=this;if(_(t)||(t=at(this,t,e)),!(e instanceof an)){if(w(e))return e.forEach(function(e){return n.add(e,t)}),this;if(h(e))return this.addLabel(e,t);if(g(e))e=K.delayedCall(0,e);else return this}return this===e?this:Ye(this,e,t)},o.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-s);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof K?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},o.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},o.remove=function(e){return h(e)?this.removeLabel(e):g(e)?this.killTweensOf(e):(e.parent===this&&Le(this,e),e===this._recent&&(this._recent=this._last),ze(this))},o.totalTime=function(e,t){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(Wt.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),r.prototype.totalTime.call(this,e,t),this._forcing=0,this):this._tTime},o.addLabel=function(e,t){return this.labels[e]=at(this,t),this},o.removeLabel=function(e){return delete this.labels[e],this},o.addPause=function(e,t,n){var r=K.delayedCall(0,t||ae,n);return r.data=`isPause`,this._hasPause=1,Ye(this,r,at(this,e))},o.removePause=function(e){var t=this._first;for(e=at(this,e);t;)t._start===e&&t.data===`isPause`&&Re(t),t=t._next},o.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)un!==r[i]&&r[i].kill(e,t);return this},o.getTweensOf=function(e,t){for(var n=[],r=pt(e),i=this._first,a=_(t),o;i;)i instanceof K?Ce(i._targets,r)&&(a?(!un||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},o.tweenTo=function(e,t){t||={};var n=this,r=at(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,l=i.immediateRender,u,d=K.to(n,ke({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||c,onStart:function(){if(n.pause(),!u){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());d._dur!==e&&nt(d,e,0,1).render(d._time,!0,!0),u=1}o&&o.apply(d,s||[])}},t));return l?d.render(0):d},o.tweenFromTo=function(e,t,n){return this.tweenTo(t,ke({startAt:{time:at(this,e)}},n))},o.recent=function(){return this._recent},o.nextLabel=function(e){return e===void 0&&(e=this._time),kt(this,at(this,e))},o.previousLabel=function(e){return e===void 0&&(e=this._time),kt(this,at(this,e),1)},o.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+c)},o.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=V(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return ze(this)},o.invalidate=function(e){var t=this._first;for(this._lock=0;t;)t.invalidate(e),t=t._next;return r.prototype.invalidate.call(this,e)},o.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),ze(this)},o.totalDuration=function(e){var t=0,n=this,r=n._last,i=s,a,o,c;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(c=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Ye(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!c&&!n._dp||c&&c.smoothChildTiming)&&(n._start+=V(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;nt(n,n===P&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},i.updateRoot=function(e){if(P._ts&&(Ee(P,Ge(e,P)),fe=Wt.frame),Wt.frame>=he){he+=n.autoSleep||120;var t=P._first;if((!t||!t._ts)&&n.autoSleep&&Wt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Wt.sleep()}}},i}(an);ke(G.prototype,{_lock:0,_hasPause:0,_forcing:0});var on=function(e,t,n,r,i,a,o){var s=new Mn(this._pt,e,t,0,1,En,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Et(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(A)||[];u=A.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Se(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=A.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(j.test(r)||g)&&(s.e=0),this._pt=s,s},sn=function(e,t,r,i,a,o,s,c,l,u){g(i)&&(i=i(a||0,e,o));var d=e[t],f=r===`get`?g(d)?l?e[t.indexOf(`set`)||!g(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](l):e[t]():d:r,p=g(d)?l?xn:bn:yn,m;if(h(i)&&(~i.indexOf(`random(`)&&(i=Et(i)),i.charAt(1)===`=`&&(m=Se(f,i)+(H(f)||0),(m||m===0)&&(i=m))),!u||f!==i||dn)return!isNaN(f*i)&&i!==``?(m=new Mn(this._pt,e,t,+f||0,i-(f||0),typeof d==`boolean`?Tn:wn,0,p),l&&(m.fp=l),s&&m.modifier(s,this,e),this._pt=m):(!d&&!(t in e)&&ne(t,i),on.call(this,e,t,f,i,p,c||n.stringFilter,l))},cn=function(e,t,n,r,i){if(g(e)&&(e=gn(e,i,t,n,r)),!y(e)||e.style&&e.nodeType||w(e)||C(e))return h(e)?gn(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=gn(e[o],i,t,n,r);return a},ln=function(e,t,n,r,i,a){var o,s,c,l;if(pe[e]&&(o=new pe[e]).init(i,o.rawVars?t[e]:cn(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Mn(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Mt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},un,dn,fn=function e(t,n,o){var l=t.vars,u=l.ease,d=l.startAt,f=l.immediateRender,p=l.lazy,m=l.onUpdate,h=l.runBackwards,g=l.yoyoEase,_=l.keyframes,v=l.autoRevert,y=t._dur,x=t._startAt,S=t._targets,C=t.parent,w=C&&C.data===`nested`?C.vars.targets:S,T=t._overwrite===`auto`&&!i,E=t.timeline,D=l.easeReverse||g,O,k,A,j,M,N,F,I,L,R,ee,z,te;if(E&&(!_||!u)&&(u=`none`),t._ease=Qt(u,r.ease),t._rEase=D&&(Qt(D)||t._ease),t._from=!E&&!!l.runBackwards,t._from&&(t.ratio=1),!E||_&&!l.stagger){if(I=S[0]?ye(S[0]).harness:0,z=I&&l[I.prop],O=Ne(l,le),x&&(x._zTime<0&&x.progress(1),n<0&&h&&f&&!v?x.render(-1,!0):x.revert(h&&y?se:oe),x._lazy=0),d){if(Re(t._startAt=K.set(S,ke({data:`isStart`,overwrite:!1,parent:C,immediateRender:!0,lazy:!x&&b(p),startAt:null,delay:0,onUpdate:m&&function(){return At(t,`onUpdate`)},stagger:0},d))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(a||!f&&!v)&&t._startAt.revert(se),f&&y&&n<=0&&o<=0){n&&(t._zTime=n);return}}else if(h&&y&&!x){if(n&&(f=!1),A=ke({overwrite:!1,data:`isFromStart`,lazy:f&&!x&&b(p),immediateRender:f,stagger:0,parent:C},O),z&&(A[I.prop]=z),Re(t._startAt=K.set(S,A)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(a?t._startAt.revert(se):t._startAt.render(-1,!0)),t._zTime=n,!f)e(t._startAt,c,c);else if(!n)return}for(t._pt=t._ptCache=0,p=y&&b(p)||p&&!y,k=0;k<S.length;k++){if(M=S[k],F=M._gsap||ve(S)[k]._gsap,t._ptLookup[k]=R={},de[F.id]&&ue.length&&we(),ee=w===S?k:w.indexOf(M),I&&(L=new I).init(M,z||O,t,ee,w)!==!1&&(t._pt=j=new Mn(t._pt,M,L.name,0,1,L.render,L,0,L.priority),L._props.forEach(function(e){R[e]=j}),L.priority&&(N=1)),!I||z)for(A in O)pe[A]&&(L=ln(A,O,t,ee,M,w))?L.priority&&(N=1):R[A]=j=sn.call(t,M,A,`get`,O[A],ee,w,0,l.stringFilter);t._op&&t._op[k]&&t.kill(M,t._op[k]),T&&t._pt&&(un=t,P.killTweensOf(M,R,t.globalTime(n)),te=!t.parent,un=0),t._pt&&p&&(de[F.id]=1)}N&&jn(t),t._onInit&&t._onInit(t)}t._onUpdate=m,t._initted=(!t._op||t._pt)&&!te,_&&n<=0&&E.render(s,!0,!0)},pn=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return dn=1,e.vars[t]=`+=0`,fn(e,o),dn=0,s?re(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=B(n)+H(u.e)),u.b&&(u.b=l.s+H(u.b))},mn=function(e,t){var n=e[0]?ye(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=je({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},hn=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(w(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},gn=function(e,t,n,r,i){return g(e)?e.call(t,n,r,i):h(e)&&~e.indexOf(`random(`)?Et(e):e},_n=_e+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,vn={};xe(_n+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return vn[e]=1});var K=function(r){t(o,r);function o(t,a,o,s){var l;typeof a==`number`&&(o.duration=a,a=o,o=null),l=r.call(this,s?a:Pe(a))||this;var u=l.vars,d=u.duration,f=u.delay,p=u.immediateRender,m=u.stagger,h=u.overwrite,g=u.keyframes,v=u.defaults,x=u.scrollTrigger,T=a.parent||P,E=(w(t)||C(t)?_(t[0]):`length`in a)?[t]:pt(t),D,O,k,A,j,M,N,F;if(l._targets=E.length?ve(E):re(`GSAP target `+t+` not found. https://gsap.com`,!n.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=h,g||m||S(d)||S(f)){a=l.vars;var I=a.easeReverse||a.yoyoEase;if(D=l.timeline=new G({data:`nested`,defaults:v||{},targets:T&&T.data===`nested`?T.vars.targets:E}),D.kill(),D.parent=D._dp=e(l),D._start=0,m||S(d)||S(f)){if(A=E.length,N=m&>(m),y(m))for(j in m)~_n.indexOf(j)&&(F||={},F[j]=m[j]);for(O=0;O<A;O++)k=Ne(a,vn),k.stagger=0,I&&(k.easeReverse=I),F&&je(k,F),M=E[O],k.duration=+gn(d,e(l),O,M,E),k.delay=(+gn(f,e(l),O,M,E)||0)-l._delay,!m&&A===1&&k.delay&&(l._delay=f=k.delay,l._start+=f,k.delay=0),D.to(M,k,N?N(O,M,E):0),D._ease=W.none;D.duration()?d=f=0:l.timeline=0}else if(g){Pe(ke(D.vars.defaults,{ease:`none`})),D._ease=Qt(g.ease||a.ease||`none`);var L=0,R,ee,z;if(w(g))g.forEach(function(e){return D.to(E,e,`>`)}),D.duration();else{for(j in k={},g)j===`ease`||j===`easeEach`||hn(j,g[j],k,g.easeEach);for(j in k)for(R=k[j].sort(function(e,t){return e.t-t.t}),L=0,O=0;O<R.length;O++)ee=R[O],z={ease:ee.e,duration:(ee.t-(O?R[O-1].t:0))/100*d},z[j]=ee.v,D.to(E,z,L),L+=z.duration;D.duration()<d&&D.to({},{duration:d-D.duration()})}}d||l.duration(d=D.duration())}else l.timeline=0;return h===!0&&!i&&(un=e(l),P.killTweensOf(E),un=0),Ye(T,e(l),o),a.reversed&&l.reverse(),a.paused&&l.paused(!0),(p||!d&&!g&&l._start===V(T._time)&&b(p)&&He(e(l))&&T.data!==`nested`)&&(l._tTime=-c,l.render(Math.max(0,-f)||0)),x&&Xe(e(l),x),l}var s=o.prototype;return s.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-c&&!o?i:e<c?0:e,l,u,d,f,p,m,h,g;if(!a)et(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(l=s,g=this.timeline,this._repeat){if(f=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(f*100+e,t,n);if(l=V(s%f),s===i?(d=this._repeat,l=a):(p=V(s/f),d=~~p,d&&d===p?(l=a,d--):l>a&&(l=a)),m=this._yoyo&&d&1,m&&(l=a-l),p=We(this._tTime,f),l===r&&!n&&this._initted&&d===p)return this._tTime=s,this;d!==p&&this.vars.repeatRefresh&&!m&&!this._lock&&l!==f&&this._initted&&(this._lock=n=1,this.render(V(f*d),!0).invalidate()._lock=0)}if(!this._initted){if(Ze(this,o?e:l,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&d!==p))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var _=l<r;if(_!==this._inv){var v=_?r:a-r;this._inv=_,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=v?(_?-1:1)/v:0,this._invScale=_?-this.ratio:1-this.ratio,this._invEase=_?this._rEase:this._ease}this.ratio=h=this._invRatio+this._invScale*this._invEase((l-this._invTime)*this._invRecip)}else this.ratio=h=this._ease(l/a);if(this._from&&(this.ratio=h=1-h),this._tTime=s,this._time=l,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!p&&(At(this,`onStart`),this._tTime!==s))return this;for(u=this._pt;u;)u.r(h,u.d),u=u._next;g&&g.render(e<0?e:g._dur*g._ease(l/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Ve(this,e,t,n),At(this,`onUpdate`)),this._repeat&&d!==p&&this.vars.onRepeat&&!t&&this.parent&&At(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Ve(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&Re(this,1),!t&&!(o&&!r)&&(s||r||m)&&(At(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},s.targets=function(){return this._targets},s.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),r.prototype.invalidate.call(this,e)},s.resetTo=function(e,t,n,r,i){Ut||Wt.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||fn(this,a),o=this._ease(a/this._dur),pn(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(qe(this,0),this.parent||Ie(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},s.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?jt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,un&&un.vars.overwrite!==!0)._first||jt(this),this.parent&&n!==this.timeline.totalDuration()&&nt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?pt(e):r,o=this._ptLookup,s=this._pt,c,l,u,d,f,p,m;if((!t||t===`all`)&&Fe(r,i))return t===`all`&&(this._pt=0),jt(this);for(c=this._op=this._op||[],t!==`all`&&(h(t)&&(f={},xe(t,function(e){return f[e]=1}),t=f),t=mn(r,t)),m=r.length;m--;)if(~i.indexOf(r[m]))for(f in l=o[m],t===`all`?(c[m]=t,d=l,u={}):(u=c[m]=c[m]||{},d=t),d)p=l&&l[f],p&&((!(`kill`in p.d)||p.d.kill(f)===!0)&&Le(this,p,`_pt`),delete l[f]),u!==`all`&&(u[f]=1);return this._initted&&!this._pt&&s&&jt(this),this},o.to=function(e,t){return new o(e,t,arguments[2])},o.from=function(e,t){return ot(1,arguments)},o.delayedCall=function(e,t,n,r){return new o(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:t,onReverseComplete:t,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},o.fromTo=function(e,t,n){return ot(2,arguments)},o.set=function(e,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new o(e,t)},o.killTweensOf=function(e,t,n){return P.killTweensOf(e,t,n)},o}(an);ke(K.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),xe(`staggerTo,staggerFrom,staggerFromTo`,function(e){K[e]=function(){var t=new G,n=ut.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var yn=function(e,t,n){return e[t]=n},bn=function(e,t,n){return e[t](n)},xn=function(e,t,n,r){return e[t](r.fp,n)},Sn=function(e,t,n){return e.setAttribute(t,n)},Cn=function(e,t){return g(e[t])?bn:v(e[t])&&e.setAttribute?Sn:yn},wn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Tn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},En=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Dn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},On=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},kn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Le(this,t,`_pt`):t.dep||(n=1),t=r;return!n},An=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},jn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Mn=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||wn,this.d=o||this,this.set=s||yn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=An,this.m=e,this.mt=n,this.tween=t},e}();xe(_e+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return le[e]=1}),R.TweenMax=R.TweenLite=K,R.TimelineLite=R.TimelineMax=G,P=new G({sortChildren:!1,defaults:r,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),n.stringFilter=Ht;var Nn=[],Pn={},Fn=[],In=0,Ln=0,Rn=function(e){return(Pn[e]||Fn).map(function(e){return e()})},zn=function(){var e=Date.now(),t=[];e-In>2&&(Rn(`matchMediaInit`),Nn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=F.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Rn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),In=e,Rn(`matchMedia`))},Bn=function(){function e(e,t){this.selector=t&&mt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Ln++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){g(e)&&(n=t,t=e,e=g);var r=this,i=function(){var e=o,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=mt(n)),o=r,a=t.apply(r,arguments),g(a)&&r._r.push(a),o=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===g?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=o;o=null,e(this),o=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof K&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof G?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof K)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Nn.length;r--;)Nn[r].id===this.id&&Nn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Vn=function(){function e(e){this.contexts=[],this.scope=e,o&&o.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){y(e)||(e={matches:e});var r=new Bn(0,n||this.scope),i=r.conditions={},a,s,c;for(s in o&&!r.selector&&(r.selector=o.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)s===`all`?c=1:(a=F.matchMedia(e[s]),a&&(Nn.indexOf(r)<0&&Nn.push(r),(i[s]=a.matches)&&(c=1),a.addListener?a.addListener(zn):a.addEventListener(`change`,zn)));return c&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Hn={registerPlugin:function(){[...arguments].forEach(function(e){return Pt(e)})},timeline:function(e){return new G(e)},getTweensOf:function(e,t){return P.getTweensOf(e,t)},getProperty:function(e,t,n,r){h(e)&&(e=pt(e)[0]);var i=ye(e||{}).get,a=n?Oe:De;return n===`native`&&(n=``),e&&(t?a((pe[t]&&pe[t].get||i)(e,t,n,r)):function(t,n,r){return a((pe[t]&&pe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=pt(e),e.length>1){var r=e.map(function(e){return Kn.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=pe[t],o=ye(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Mt._pt=0,r.init(e,n?t+n:t,Mt,0,[e]),r.render(1,r),Mt._pt&&Dn(1,Mt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Kn.to(e,ke((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return P.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qt(e.ease,r.ease)),Me(r,e||{})},config:function(e){return Me(n,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!pe[e]&&!R[e]&&re(t+` effect requires `+e+` plugin.`)}),me[t]=function(e,t,r){return n(pt(e),ke(t||{},i),r)},a&&(G.prototype[t]=function(e,n,r){return this.add(me[t](e,y(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){W[e]=Qt(t)},parseEase:function(e,t){return arguments.length?Qt(e,t):W},getById:function(e){return P.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new G(e),r,i;for(n.smoothChildTiming=b(e.smoothChildTiming),P.remove(n),n._dp=0,n._time=n._tTime=P._time,r=P._first;r;)i=r._next,(t||!(!r._dur&&r instanceof K&&r.vars.onComplete===r._targets[0]))&&Ye(n,r,r._start-r._delay),r=i;return Ye(P,n,0),n},context:function(e,t){return e?new Bn(e,t):o},matchMedia:function(e){return new Vn(e)},matchMediaRefresh:function(){return Nn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||zn()},addEventListener:function(e,t){var n=Pn[e]||(Pn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Pn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:wt,wrapYoyo:Tt,distribute:gt,random:yt,snap:vt,normalize:St,getUnit:H,clamp:lt,splitColor:Lt,toArray:pt,selector:mt,mapRange:Dt,pipe:bt,unitize:xt,interpolate:Ot,shuffle:ht},install:te,effects:me,ticker:Wt,updateRoot:G.updateRoot,plugins:pe,globalTimeline:P,core:{PropTween:Mn,globals:ie,Tween:K,Timeline:G,Animation:an,getCache:ye,_removeLinkedListItem:Le,reverting:function(){return a},context:function(e){return e&&o&&(o.data.push(e),e._ctx=o),o},suppressOverwrites:function(e){return i=e}}};xe(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Hn[e]=K[e]}),Wt.add(G.updateRoot),Mt=Hn.to({},{duration:0});var Un=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Wn=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Un(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Gn=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(h(n)&&(r={},xe(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Wn(e,n)}}}},Kn=Hn.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)a?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Gn(`roundProps`,_t),Gn(`modifiers`),Gn(`snap`,vt))||Hn;K.version=G.version=Kn.version=`3.15.0`,z=1,x()&&Gt(),W.Power0,W.Power1,W.Power2,W.Power3,W.Power4,W.Linear,W.Quad,W.Cubic,W.Quart,W.Quint,W.Strong,W.Elastic,W.Back,W.SteppedEase,W.Bounce,W.Sine,W.Expo,W.Circ;var qn,Jn,Yn,Xn,Zn,Qn,$n,er=function(){return typeof window<`u`},tr={},nr=180/Math.PI,rr=Math.PI/180,ir=Math.atan2,ar=1e8,or=/([A-Z])/g,sr=/(left|right|width|margin|padding|x)/i,cr=/[\s,\(]\S/,lr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ur=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},pr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},mr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},hr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},gr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},_r=function(e,t,n){return e.style[t]=n},vr=function(e,t,n){return e.style.setProperty(t,n)},yr=function(e,t,n){return e._gsap[t]=n},br=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},xr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Sr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},q=`transform`,Cr=q+`Origin`,wr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in tr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=lr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Ur(i,e)}):this.tfm[t]=o.x?o[t]:Ur(i,t),t===Cr&&(this.tfm.zOrigin=o.zOrigin);else return lr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(q)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Cr,n,``)),t=q}(a||n)&&this.props.push(t,n,a[t])},Tr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Er=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(or,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=$n(),(!i||!i.isStart)&&!n[q]&&(Tr(n),r.zOrigin&&n[Cr]&&(n[Cr]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Dr=function(e,t){var n={target:e,props:[],revert:Er,save:wr};return e._gsap||Kn.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},Or,kr=function(e,t){var n=Jn.createElementNS?Jn.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Jn.createElement(e);return n&&n.style?n:Jn.createElement(e)},Ar=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(or,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Mr(n)||n,1)||``},jr=`O,Moz,ms,Ms,Webkit`.split(`,`),Mr=function(e,t,n){var r=(t||Zn).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(jr[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?jr[i]:``)+e},Nr=function(){er()&&window.document&&(qn=window,Jn=qn.document,Yn=Jn.documentElement,Zn=kr(`div`)||{style:{}},kr(`div`),q=Mr(q),Cr=q+`Origin`,Zn.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Or=!!Mr(`perspective`),$n=Kn.core.reverting,Xn=1)},Pr=function(e){var t=e.ownerSVGElement,n=kr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Yn.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Yn.removeChild(n),i},Fr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Ir=function(e){var t,n;try{t=e.getBBox()}catch{t=Pr(e),n=1}return t&&(t.width||t.height)||n||(t=Pr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Fr(e,[`x`,`cx`,`x1`])||0,y:+Fr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Lr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ir(e))},Rr=function(e,t){if(t){var n=e.style,r;t in tr&&t!==Cr&&(t=q),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(or,`-$1`).toLowerCase())):n.removeAttribute(t)}},zr=function(e,t,n,r,i,a){var o=new Mn(e._pt,t,n,0,1,a?gr:hr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Br={deg:1,rad:1,turn:1},Vr={grid:1,flex:1},Hr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Zn.style,c=sr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Br[i]||Br[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Lr(t),(p||o===`%`)&&(tr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],B(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Jn||!h.appendChild)&&(h=Jn.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Wt.time&&!g.uncache)return B(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Rr(t,n)}else(p||o===`%`)&&!Vr[Ar(h,`display`)]&&(s.position=Ar(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Zn),m=Zn[u],h.removeChild(Zn),s.position=`absolute`;return c&&p&&(g=ye(h),g.time=Wt.time,g.width=h[u]),B(f?m*a/d:m&&a?d/m*a:0)},Ur=function(e,t,n,r){var i;return Xn||Nr(),t in lr&&t!==`transform`&&(t=lr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),tr[t]&&t!==`transform`?(i=ti(e,r),i=t===`transformOrigin`?i.svg?i.origin:ni(Ar(e,Cr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Jr[t]&&Jr[t](e,t,n)||Ar(e,t)||be(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Hr(e,t,i,n)+n:i},Wr=function(e,t,r,i){if(!r||r===`none`){var a=Mr(t,e,1),o=a&&Ar(e,a,1);o&&o!==r?(t=a,r=o):t===`borderColor`&&(r=Ar(e,`borderTopColor`))}var s=new Mn(this._pt,e.style,t,0,1,En),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b,x;if(s.b=r,s.e=i,r+=``,i+=``,i.substring(0,6)===`var(--`&&(i=Ar(e,i.substring(4,i.indexOf(`)`)))),i===`auto`&&(h=e.style[t],e.style[t]=i,i=Ar(e,t)||i,h?e.style[t]=h:Rr(e,t)),u=[r,i],Ht(u),r=u[0],i=u[1],f=r.match(k)||[],x=i.match(k)||[],x.length){for(;d=k.exec(i);)g=d[0],v=i.substring(c,d.index),m?m=(m+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(m=1),g!==(h=f[l++]||``)&&(p=parseFloat(h)||0,b=h.substr((p+``).length),g.charAt(1)===`=`&&(g=Se(p,g)+b),_=parseFloat(g),y=g.substr((_+``).length),c=k.lastIndex-y.length,y||(y=y||n.units[t]||b,c===i.length&&(i+=y,s.e+=y)),b!==y&&(p=Hr(e,t,h,y)||0),s._pt={_next:s._pt,p:v||l===1?v:`,`,s:p,c:_-p,m:m&&m<4||t===`zIndex`?Math.round:0});s.c=c<i.length?i.substring(c,i.length):``}else s.r=t===`display`&&i===`none`?gr:hr;return j.test(i)&&(s.e=0),this._pt=s,s},Gr={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Kr=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Gr[n]||n,t[1]=Gr[r]||r,t.join(` `)},qr=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],tr[o]&&(s=1,o=o===`transformOrigin`?Cr:q),Rr(n,o);s&&(Rr(n,q),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,ti(n,1),a.uncache=1,Tr(r)))}},Jr={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Mn(e._pt,t,n,0,0,qr);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Yr=[1,0,0,1,0,0],Xr={},Zr=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Qr=function(e){var t=Ar(e,q);return Zr(t)?Yr:t.substr(7).match(O).map(B)},$r=function(e,t){var n=e._gsap||ye(e),r=e.style,i=Qr(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Yr:i):(i===Yr&&!e.offsetParent&&e!==Yn&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Yn.appendChild(e)),i=Qr(e),s?r.display=s:Rr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Yn.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ei=function(e,t,n,r,i,a){var o=e._gsap,s=i||$r(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Yr&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Ir(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Cr]=`0px 0px`,a&&(zr(a,o,`xOrigin`,c,y),zr(a,o,`yOrigin`,l,b),zr(a,o,`xOffset`,u,o.xOffset),zr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},ti=function(e,t){var r=e._gsap||new rn(e);if(`x`in r&&!t&&!r.uncache)return r;var i=e.style,a=r.scaleX<0,o=`px`,s=`deg`,c=getComputedStyle(e),l=Ar(e,Cr)||`0`,u=d=f=h=g=_=v=y=b=0,d,f,p=m=1,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,ee,z,te;return r.svg=!!(e.getCTM&&Lr(e)),c.translate&&((c.translate!==`none`||c.scale!==`none`||c.rotate!==`none`)&&(i[q]=(c.translate===`none`?``:`translate3d(`+(c.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(c.rotate===`none`?``:`rotate(`+c.rotate+`) `)+(c.scale===`none`?``:`scale(`+c.scale.split(` `).join(`,`)+`) `)+(c[q]===`none`?``:c[q])),i.scale=i.rotate=i.translate=`none`),C=$r(e,r.svg),r.svg&&(r.uncache?(P=e.getBBox(),l=r.xOrigin-P.x+`px `+(r.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),ei(e,N||l,!!N||r.originIsAbsolute,r.smooth!==!1,C)),x=r.xOrigin||0,S=r.yOrigin||0,C!==Yr&&(D=C[0],O=C[1],k=C[2],A=C[3],u=j=C[4],d=M=C[5],C.length===6?(p=Math.sqrt(D*D+O*O),m=Math.sqrt(A*A+k*k),h=D||O?ir(O,D)*nr:0,v=k||A?ir(k,A)*nr+h:0,v&&(m*=Math.abs(Math.cos(v*rr))),r.svg&&(u-=x-(x*D+S*k),d-=S-(x*O+S*A))):(te=C[6],ee=C[7],I=C[8],L=C[9],R=C[10],z=C[11],u=C[12],d=C[13],f=C[14],w=ir(te,R),g=w*nr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+L*E,F=te*T+R*E,I=j*-E+I*T,L=M*-E+L*T,R=te*-E+R*T,z=ee*-E+z*T,j=N,M=P,te=F),w=ir(-k,R),_=w*nr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-L*E,F=k*T-R*E,z=A*E+z*T,D=N,O=P,k=F),w=ir(O,D),h=w*nr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,_=180-_),p=B(Math.sqrt(D*D+O*O+k*k)),m=B(Math.sqrt(M*M+te*te)),w=ir(j,M),v=Math.abs(w)>2e-4?w*nr:0,b=z?1/(z<0?-z:z):0),r.svg&&(N=e.getAttribute(`transform`),r.forceCSS=e.setAttribute(`transform`,``)||!Zr(Ar(e,q)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(a?(p*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,v+=v<=0?180:-180)),t||=r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=f+o,r.scaleX=B(p),r.scaleY=B(m),r.rotation=B(h)+s,r.rotationX=B(g)+s,r.rotationY=B(_)+s,r.skewX=v+s,r.skewY=y+s,r.transformPerspective=b+o,(r.zOrigin=parseFloat(l.split(` `)[2])||!t&&r.zOrigin||0)&&(i[Cr]=ni(l)),r.xOffset=r.yOffset=0,r.force3D=n.force3D,r.renderTransform=r.svg?li:Or?ci:ii,r.uncache=0,r},ni=function(e){return(e=e.split(` `))[0]+` `+e[1]},ri=function(e,t,n){var r=H(t);return B(parseFloat(t)+parseFloat(Hr(e,`x`,n+`px`,r)))+r},ii=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,ci(e,t)},ai=`0deg`,oi=`0px`,si=`) `,ci=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ai||l!==ai)){var x=parseFloat(l)*rr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*rr,w=Math.cos(x),a=ri(_,a,S*w*-v),o=ri(_,o,-Math.sin(x)*-v),s=ri(_,s,C*w*-v+v)}h!==oi&&(y+=`perspective(`+h+si),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==oi||o!==oi||s!==oi)&&(y+=s!==oi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+si),c!==ai&&(y+=`rotate(`+c+si),l!==ai&&(y+=`rotateY(`+l+si),u!==ai&&(y+=`rotateX(`+u+si),(d!==ai||f!==ai)&&(y+=`skew(`+d+`, `+f+si),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+si),_.style[q]=y||`translate(0, 0)`},li=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=rr,c*=rr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=rr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=B(b),x=B(x),S=B(S),C=B(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Hr(f,`x`,a,`px`),y=Hr(f,`y`,o,`px`)),(p||m||h||g)&&(v=B(v+p-(p*b+m*S)+h),y=B(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=B(v+r/100*w.width),y=B(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[q]=w)},ui=function(e,t,n,r,i){var a=360,o=h(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?nr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*ar)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*ar)%a-~~(s/a)*a)),e._pt=u=new Mn(e._pt,t,n,r,s,dr),u.e=c,u.u=`deg`,e._props.push(n),u},di=function(e,t){for(var n in t)e[n]=t[n];return e},fi=function(e,t,n){var r=di({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[q]=t,o=ti(n,1),Rr(n,q),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[q],a[q]=t,o=ti(n,1),a[q]=c),tr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=H(c),p=H(l),u=f===p?parseFloat(c):Hr(n,s,c,p),d=parseFloat(l),e._pt=new Mn(e._pt,o,s,u,d-u,ur),e._pt.u=p||0,e._props.push(s));di(o,r)};xe(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Jr[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Ur(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var pi={name:`css`,register:Nr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,a){var o=this._props,s=e.style,c=r.vars.startAt,l,u,d,f,p,m,g,_,v,y,b,x,S,C,w,T,E;for(g in Xn||Nr(),this.styles=this.styles||Dr(e),T=this.styles.props,this.tween=r,t)if(g!==`autoRound`&&(u=t[g],!(pe[g]&&ln(g,t,r,i,e,a)))){if(p=typeof u,m=Jr[g],p===`function`&&(u=u.call(r,i,e,a),p=typeof u),p===`string`&&~u.indexOf(`random(`)&&(u=Et(u)),m)m(this,e,g,u,r)&&(w=1);else if(g.substr(0,2)===`--`)l=(getComputedStyle(e).getPropertyValue(g)+``).trim(),u+=``,Bt.lastIndex=0,Bt.test(l)||(_=H(l),v=H(u),v?_!==v&&(l=Hr(e,g,l,v)+v):_&&(u+=_)),this.add(s,`setProperty`,l,u,i,a,0,0,g),o.push(g),T.push(g,0,s[g]);else if(p!==`undefined`){if(c&&g in c?(l=typeof c[g]==`function`?c[g].call(r,i,e,a):c[g],h(l)&&~l.indexOf(`random(`)&&(l=Et(l)),H(l+``)||l===`auto`||(l+=n.units[g]||H(Ur(e,g))||``),(l+``).charAt(1)===`=`&&(l=Ur(e,g))):l=Ur(e,g),f=parseFloat(l),y=p===`string`&&u.charAt(1)===`=`&&u.substr(0,2),y&&(u=u.substr(2)),d=parseFloat(u),g in lr&&(g===`autoAlpha`&&(f===1&&Ur(e,`visibility`)===`hidden`&&d&&(f=0),T.push(`visibility`,0,s.visibility),zr(this,s,`visibility`,f?`inherit`:`hidden`,d?`inherit`:`hidden`,!d)),g!==`scale`&&g!==`transform`&&(g=lr[g],~g.indexOf(`,`)&&(g=g.split(`,`)[0]))),b=g in tr,b){if(this.styles.save(g),E=u,p===`string`&&u.substring(0,6)===`var(--`){if(u=Ar(e,u.substring(4,u.indexOf(`)`))),u.substring(0,5)===`calc(`){var D=e.style.perspective;e.style.perspective=u,u=Ar(e,`perspective`),D?e.style.perspective=D:Rr(e,`perspective`)}d=parseFloat(u)}if(x||(S=e._gsap,S.renderTransform&&!t.parseTransform||ti(e,t.parseTransform),C=t.smoothOrigin!==!1&&S.smooth,x=this._pt=new Mn(this._pt,s,q,0,1,S.renderTransform,S,0,-1),x.dep=1),g===`scale`)this._pt=new Mn(this._pt,S,`scaleY`,S.scaleY,(y?Se(S.scaleY,y+d):d)-S.scaleY||0,ur),this._pt.u=0,o.push(`scaleY`,g),g+=`X`;else if(g===`transformOrigin`){T.push(Cr,0,s[Cr]),u=Kr(u),S.svg?ei(e,u,0,C,0,this):(v=parseFloat(u.split(` `)[2])||0,v!==S.zOrigin&&zr(this,S,`zOrigin`,S.zOrigin,v),zr(this,s,g,ni(l),ni(u)));continue}else if(g===`svgOrigin`){ei(e,u,1,C,0,this);continue}else if(g in Xr){ui(this,S,g,f,y?Se(f,y+u):u);continue}else if(g===`smoothOrigin`){zr(this,S,`smooth`,S.smooth,u);continue}else if(g===`force3D`){S[g]=u;continue}else if(g===`transform`){fi(this,u,e);continue}}else g in s||(g=Mr(g)||g);if(b||(d||d===0)&&(f||f===0)&&!cr.test(u)&&g in s)_=(l+``).substr((f+``).length),d||=0,v=H(u)||(g in n.units?n.units[g]:_),_!==v&&(f=Hr(e,g,l,v)),this._pt=new Mn(this._pt,b?S:s,g,f,(y?Se(f,y+d):d)-f,!b&&(v===`px`||g===`zIndex`)&&t.autoRound!==!1?mr:ur),this._pt.u=v||0,b&&E!==u?(this._pt.b=l,this._pt.e=E,this._pt.r=pr):_!==v&&v!==`%`&&(this._pt.b=l,this._pt.r=fr);else if(g in s)Wr.call(this,e,g,l,y?y+u:u);else if(g in e)this.add(e,g,l||e[g],y?y+u:u,i,a);else if(g!==`parseTransform`){ne(g,u);continue}b||(g in s?T.push(g,0,s[g]):typeof e[g]==`function`?T.push(g,2,e[g]()):T.push(g,1,l||e[g])),o.push(g)}}w&&jn(this)},render:function(e,t){if(t.tween._time||!$n())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Ur,aliases:lr,getSetter:function(e,t,n){var r=lr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in tr&&t!==Cr&&(e._gsap.x||Ur(e,`x`))?n&&Qn===n?t===`scale`?br:yr:(Qn=n||{})&&(t===`scale`?xr:Sr):e.style&&!v(e.style[t])?_r:~t.indexOf(`-`)?vr:Cn(e,t)},core:{_removeProperty:Rr,_getMatrix:$r}};Kn.utils.checkPrefix=Mr,Kn.core.getStyleSaver=Dr,(function(e,t,r,i){var a=xe(e+`,`+t+`,`+r,function(e){tr[e]=1});xe(t,function(e){n.units[e]=`deg`,Xr[e]=1}),lr[a[13]]=e+`,`+t,xe(i,function(e){var t=e.split(`:`);lr[t[1]]=a[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),xe(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){n.units[e]=`px`}),Kn.registerPlugin(pi);var J=Kn.registerPlugin(pi)||Kn;J.core.Tween;function mi(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function hi(e,t=``){if(!Number.isSafeInteger(e)||e<0){let n=t&&`"${t}" `;throw Error(`${n}expected integer >= 0, got ${e}`)}}function gi(e,t,n=``){let r=mi(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`;throw Error(o+`expected Uint8Array`+s+`, got `+c)}return e}function _i(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function vi(e,t){gi(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw Error(`"digestInto() output" expected to be of length >=`+n)}function yi(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function bi(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function xi(e,t){return e<<32-t|e>>>t}var Si=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,Ci=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function wi(e){if(gi(e),Si)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=Ci[e[n]];return t}var Ti={_0:48,_9:57,A:65,F:70,a:97,f:102};function Ei(e){if(e>=Ti._0&&e<=Ti._9)return e-Ti._0;if(e>=Ti.A&&e<=Ti.F)return e-(Ti.A-10);if(e>=Ti.a&&e<=Ti.f)return e-(Ti.a-10)}function Di(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(Si)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=Ei(e.charCodeAt(i)),a=Ei(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}function Oi(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];gi(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function ki(e,t={}){let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function Ai(e=32){let t=typeof globalThis==`object`?globalThis.crypto:null;if(typeof t?.getRandomValues!=`function`)throw Error(`crypto.getRandomValues must be defined`);return t.getRandomValues(new Uint8Array(e))}var ji=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function Mi(e,t,n){return e&t^~e&n}function Ni(e,t,n){return e&t^e&n^t&n}var Pi=class{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=bi(this.buffer)}update(e){_i(this),gi(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=bi(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){_i(this),vi(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,yi(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;n.setBigUint64(r-8,BigInt(this.length*8),i),this.process(n,0);let o=bi(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen must be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Fi=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ii=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Li=new Uint32Array(64),Ri=class extends Pi{constructor(e){super(64,e,8,!1)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)Li[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=Li[e-15],n=Li[e-2],r=xi(t,7)^xi(t,18)^t>>>3,i=xi(n,17)^xi(n,19)^n>>>10;Li[e]=i+Li[e-7]+r+Li[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=xi(o,6)^xi(o,11)^xi(o,25),u=l+t+Mi(o,s,c)+Ii[e]+Li[e]|0,d=(xi(n,2)^xi(n,13)^xi(n,22))+Ni(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){yi(Li)}destroy(){this.set(0,0,0,0,0,0,0,0),yi(this.buffer)}},zi=class extends Ri{A=Fi[0]|0;B=Fi[1]|0;C=Fi[2]|0;D=Fi[3]|0;E=Fi[4]|0;F=Fi[5]|0;G=Fi[6]|0;H=Fi[7]|0;constructor(){super(32)}},Bi=ki(()=>new zi,ji(1)),Vi=BigInt(0),Hi=BigInt(1);function Ui(e,t=``){if(typeof e!=`boolean`){let n=t&&`"${t}" `;throw Error(n+`expected boolean, got type=`+typeof e)}return e}function Wi(e){if(typeof e==`bigint`){if(!Qi(e))throw Error(`positive bigint expected, got `+e)}else hi(e);return e}function Gi(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);return e===``?Vi:BigInt(`0x`+e)}function Ki(e){return Gi(wi(e))}function qi(e){return Gi(wi(Xi(gi(e)).reverse()))}function Ji(e,t){hi(t),e=Wi(e);let n=Di(e.toString(16).padStart(t*2,`0`));if(n.length!==t)throw Error(`number too large`);return n}function Yi(e,t){return Ji(e,t).reverse()}function Xi(e){return Uint8Array.from(e)}function Zi(e){return Uint8Array.from(e,(t,n)=>{let r=t.charCodeAt(0);if(t.length!==1||r>127)throw Error(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}var Qi=e=>typeof e==`bigint`&&Vi<=e;function $i(e){let t;for(t=0;e>Vi;e>>=Hi,t+=1);return t}var ea=e=>(Hi<<BigInt(e))-Hi;function ta(e,t={},n={}){if(!e||typeof e!=`object`)throw Error(`expected valid options object`);function r(t,n,r){let i=e[t];if(r&&i===void 0)return;let a=typeof i;if(a!==n||i===null)throw Error(`param "${t}" is invalid: expected ${n}, got ${a}`)}let i=(e,t)=>Object.entries(e).forEach(([e,n])=>r(e,n,t));i(t,!1),i(n,!0)}function na(e){let t=new WeakMap;return(n,...r)=>{let i=t.get(n);if(i!==void 0)return i;let a=e(n,...r);return t.set(n,a),a}}var Y=BigInt(0),X=BigInt(1),ra=BigInt(2),ia=BigInt(3),aa=BigInt(4),oa=BigInt(5),sa=BigInt(7),ca=BigInt(8),la=BigInt(9),ua=BigInt(16);function da(e,t){let n=e%t;return n>=Y?n:t+n}function fa(e,t,n){let r=e;for(;t-->Y;)r*=r,r%=n;return r}function pa(e,t){if(e===Y)throw Error(`invert: expected non-zero number`);if(t<=Y)throw Error(`invert: expected positive modulus, got `+t);let n=da(e,t),r=t,i=Y,a=X,o=X,s=Y;for(;n!==Y;){let e=r/n,t=r%n,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}if(r!==X)throw Error(`invert: does not exist`);return da(i,t)}function ma(e,t,n){if(!e.eql(e.sqr(t),n))throw Error(`Cannot find square root`)}function ha(e,t){let n=(e.ORDER+X)/aa,r=e.pow(t,n);return ma(e,r,t),r}function ga(e,t){let n=(e.ORDER-oa)/ca,r=e.mul(t,ra),i=e.pow(r,n),a=e.mul(t,i),o=e.mul(e.mul(a,ra),i),s=e.mul(a,e.sub(o,e.ONE));return ma(e,s,t),s}function _a(e){let t=Da(e),n=va(e),r=n(t,t.neg(t.ONE)),i=n(t,r),a=n(t,t.neg(r)),o=(e+sa)/ua;return(e,t)=>{let n=e.pow(t,o),s=e.mul(n,r),c=e.mul(n,i),l=e.mul(n,a),u=e.eql(e.sqr(s),t),d=e.eql(e.sqr(c),t);n=e.cmov(n,s,u),s=e.cmov(l,c,d);let f=e.eql(e.sqr(s),t),p=e.cmov(n,s,f);return ma(e,p,t),p}}function va(e){if(e<ia)throw Error(`sqrt is not defined for small field`);let t=e-X,n=0;for(;t%ra===Y;)t/=ra,n++;let r=ra,i=Da(e);for(;wa(i,r)===1;)if(r++>1e3)throw Error(`Cannot find square root: probably non-prime P`);if(n===1)return ha;let a=i.pow(r,t),o=(t+X)/ra;return function(e,r){if(e.is0(r))return r;if(wa(e,r)!==1)throw Error(`Cannot find square root`);let i=n,s=e.mul(e.ONE,a),c=e.pow(r,t),l=e.pow(r,o);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error(`Cannot find square root`);let r=X<<BigInt(i-t-1),a=e.pow(s,r);i=t,s=e.sqr(a),c=e.mul(c,s),l=e.mul(l,a)}return l}}function ya(e){return e%aa===ia?ha:e%ca===oa?ga:e%ua===la?_a(e):va(e)}var ba=[`create`,`isValid`,`is0`,`neg`,`inv`,`sqrt`,`sqr`,`eql`,`add`,`sub`,`mul`,`pow`,`div`,`addN`,`subN`,`mulN`,`sqrN`];function xa(e){return ta(e,ba.reduce((e,t)=>(e[t]=`function`,e),{ORDER:`bigint`,BYTES:`number`,BITS:`number`})),e}function Sa(e,t,n){if(n<Y)throw Error(`invalid exponent, negatives unsupported`);if(n===Y)return e.ONE;if(n===X)return t;let r=e.ONE,i=t;for(;n>Y;)n&X&&(r=e.mul(r,i)),i=e.sqr(i),n>>=X;return r}function Ca(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),a=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),a),r}function wa(e,t){let n=(e.ORDER-X)/ra,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),o=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!o)throw Error(`invalid Legendre symbol result`);return i?1:a?0:-1}function Ta(e,t){t!==void 0&&hi(t);let n=t===void 0?e.toString(2).length:t;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}var Ea=class{ORDER;BITS;BYTES;isLE;ZERO=Y;ONE=X;_lengths;_sqrt;_mod;constructor(e,t={}){if(e<=Y)throw Error(`invalid field: expected ORDER > 0, got `+e);let n;this.isLE=!1,typeof t==`object`&&t&&(typeof t.BITS==`number`&&(n=t.BITS),typeof t.sqrt==`function`&&(this.sqrt=t.sqrt),typeof t.isLE==`boolean`&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=t.allowedLengths?.slice()),typeof t.modFromBytes==`boolean`&&(this._mod=t.modFromBytes));let{nBitLength:r,nByteLength:i}=Ta(e,n);if(i>2048)throw Error(`invalid field: expected ORDER of <= 2048 bytes`);this.ORDER=e,this.BITS=r,this.BYTES=i,this._sqrt=void 0,Object.preventExtensions(this)}create(e){return da(e,this.ORDER)}isValid(e){if(typeof e!=`bigint`)throw Error(`invalid field element: expected bigint, got `+typeof e);return Y<=e&&e<this.ORDER}is0(e){return e===Y}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&X)===X}neg(e){return da(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return da(e*e,this.ORDER)}add(e,t){return da(e+t,this.ORDER)}sub(e,t){return da(e-t,this.ORDER)}mul(e,t){return da(e*t,this.ORDER)}pow(e,t){return Sa(this,e,t)}div(e,t){return da(e*pa(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return pa(e,this.ORDER)}sqrt(e){return this._sqrt||=ya(this.ORDER),this._sqrt(this,e)}toBytes(e){return this.isLE?Yi(e,this.BYTES):Ji(e,this.BYTES)}fromBytes(e,t=!1){gi(e);let{_lengths:n,BYTES:r,isLE:i,ORDER:a,_mod:o}=this;if(n){if(!n.includes(e.length)||e.length>r)throw Error(`Field.fromBytes: expected `+n+` bytes, got `+e.length);let t=new Uint8Array(r);t.set(e,i?0:t.length-e.length),e=t}if(e.length!==r)throw Error(`Field.fromBytes: expected `+r+` bytes, got `+e.length);let s=i?qi(e):Ki(e);if(o&&(s=da(s,a)),!t&&!this.isValid(s))throw Error(`invalid field element: outside of range 0..ORDER`);return s}invertBatch(e){return Ca(this,e)}cmov(e,t,n){return n?t:e}};function Da(e,t={}){return new Ea(e,t)}function Oa(e){if(typeof e!=`bigint`)throw Error(`field order must be bigint`);let t=e.toString(2).length;return Math.ceil(t/8)}function ka(e){let t=Oa(e);return t+Math.ceil(t/2)}function Aa(e,t,n=!1){gi(e);let r=e.length,i=Oa(t),a=ka(t);if(r<16||r<a||r>1024)throw Error(`expected `+a+`-1024 bytes of input, got `+r);let o=da(n?qi(e):Ki(e),t-X)+X;return n?Yi(o,i):Ji(o,i)}var ja=BigInt(0),Ma=BigInt(1);function Na(e,t){let n=t.negate();return e?n:t}function Pa(e,t){let n=Ca(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function Fa(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error(`invalid window size, expected [1..`+t+`], got W=`+e)}function Ia(e,t){Fa(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:ea(e),maxNumber:i,shiftBy:BigInt(e)}}function La(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),c=e>>o;s>r&&(s-=a,c+=Ma);let l=t*r,u=l+Math.abs(s)-1,d=s===0,f=s<0,p=t%2!=0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:p,offsetF:l}}var Ra=new WeakMap,za=new WeakMap;function Ba(e){return za.get(e)||1}function Va(e){if(e!==ja)throw Error(`invalid wNAF`)}var Ha=class{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>ja;)t&Ma&&(n=n.add(r)),r=r.double(),t>>=Ma;return n}precomputeWindow(e,t){let{windows:n,windowSize:r}=Ia(t,this.bits),i=[],a=e,o=a;for(let e=0;e<n;e++){o=a,i.push(o);for(let e=1;e<r;e++)o=o.add(a),i.push(o);a=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw Error(`invalid scalar`);let r=this.ZERO,i=this.BASE,a=Ia(e,this.bits);for(let e=0;e<a.windows;e++){let{nextN:o,offset:s,isZero:c,isNeg:l,isNegF:u,offsetF:d}=La(n,e,a);n=o,c?i=i.add(Na(u,t[d])):r=r.add(Na(l,t[s]))}return Va(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){let i=Ia(e,this.bits);for(let e=0;e<i.windows&&n!==ja;e++){let{nextN:a,offset:o,isZero:s,isNeg:c}=La(n,e,i);if(n=a,!s){let e=t[o];r=r.add(c?e.negate():e)}}return Va(n),r}getPrecomputes(e,t,n){let r=Ra.get(t);return r||(r=this.precomputeWindow(t,e),e!==1&&(typeof n==`function`&&(r=n(r)),Ra.set(t,r))),r}cached(e,t,n){let r=Ba(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){let i=Ba(e);return i===1?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){Fa(t,this.bits),za.set(e,t),Ra.delete(e)}hasCache(e){return Ba(e)!==1}};function Ua(e,t,n,r){let i=t,a=e.ZERO,o=e.ZERO;for(;n>ja||r>ja;)n&Ma&&(a=a.add(i)),r&Ma&&(o=o.add(i)),i=i.double(),n>>=Ma,r>>=Ma;return{p1:a,p2:o}}function Wa(e,t,n){if(t){if(t.ORDER!==e)throw Error(`Field.ORDER must match order: Fp == p, Fn == n`);return xa(t),t}return Da(e,{isLE:n})}function Ga(e,t,n={},r){if(r===void 0&&(r=e===`edwards`),!t||typeof t!=`object`)throw Error(`expected valid ${e} CURVE object`);for(let e of[`p`,`n`,`h`]){let n=t[e];if(!(typeof n==`bigint`&&n>ja))throw Error(`CURVE.${e} must be positive bigint`)}let i=Wa(t.p,n.Fp,r),a=Wa(t.n,n.Fn,r),o=[`Gx`,`Gy`,`a`,e===`weierstrass`?`b`:`d`];for(let e of o)if(!i.isValid(t[e]))throw Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:i,Fn:a}}function Ka(e,t){return function(n){let r=e(n);return{secretKey:r,publicKey:t(r)}}}var qa=(e,t)=>(e+(e>=0?t:-t)/Za)/t;function Ja(e,t,n){let[[r,i],[a,o]]=t,s=qa(o*e,n),c=qa(-i*e,n),l=e-s*r-c*a,u=-s*i-c*o,d=l<Ya,f=u<Ya;d&&(l=-l),f&&(u=-u);let p=ea(Math.ceil($i(n)/2))+Xa;if(l<Ya||l>=p||u<Ya||u>=p)throw Error(`splitScalar (endomorphism): failed, k=`+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}var Ya=BigInt(0),Xa=BigInt(1),Za=BigInt(2),Qa=BigInt(3),$a=BigInt(4);function eo(e,t={}){let n=Ga(`weierstrass`,e,t),{Fp:r,Fn:i}=n,a=n.CURVE,{h:o,n:s}=a;ta(t,{},{allowInfinityPoint:`boolean`,clearCofactor:`function`,isTorsionFree:`function`,fromBytes:`function`,toBytes:`function`,endo:`object`});let{endo:c}=t;if(c&&(!r.is0(a.a)||typeof c.beta!=`bigint`||!Array.isArray(c.basises)))throw Error(`invalid endo: expected "beta": bigint and "basises": array`);let l=no(r,i);function u(){if(!r.isOdd)throw Error(`compression is not supported: Field does not have .isOdd()`)}function d(e,t,n){let{x:i,y:a}=t.toAffine(),o=r.toBytes(i);return Ui(n,`isCompressed`),n?(u(),Oi(to(!r.isOdd(a)),o)):Oi(Uint8Array.of(4),o,r.toBytes(a))}function f(e){gi(e,void 0,`Point`);let{publicKey:t,publicKeyUncompressed:n}=l,i=e.length,a=e[0],o=e.subarray(1);if(i===t&&(a===2||a===3)){let e=r.fromBytes(o);if(!r.isValid(e))throw Error(`bad point: is not on curve, wrong x`);let t=h(e),n;try{n=r.sqrt(t)}catch(e){let t=e instanceof Error?`: `+e.message:``;throw Error(`bad point: is not on curve, sqrt error`+t)}u();let i=r.isOdd(n);return(a&1)==1!==i&&(n=r.neg(n)),{x:e,y:n}}if(i===n&&a===4){let e=r.BYTES,t=r.fromBytes(o.subarray(0,e)),n=r.fromBytes(o.subarray(e,e*2));if(!g(t,n))throw Error(`bad point: is not on curve`);return{x:t,y:n}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}let p=t.toBytes||d,m=t.fromBytes||f;function h(e){let t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,a.a)),a.b)}function g(e,t){let n=r.sqr(t),i=h(e);return r.eql(n,i)}if(!g(a.Gx,a.Gy))throw Error(`bad curve params: generator point`);let _=r.mul(r.pow(a.a,Qa),$a),v=r.mul(r.sqr(a.b),BigInt(27));if(r.is0(r.add(_,v)))throw Error(`bad curve params: a or b`);function y(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw Error(`bad point coordinate ${e}`);return t}function b(e){if(!(e instanceof T))throw Error(`Weierstrass Point expected`)}function x(e){if(!c||!c.basises)throw Error(`no endo`);return Ja(e,c.basises,i.ORDER)}let S=na((e,t)=>{let{X:n,Y:i,Z:a}=e;if(r.eql(a,r.ONE))return{x:n,y:i};let o=e.is0();t??=o?r.ONE:r.inv(a);let s=r.mul(n,t),c=r.mul(i,t),l=r.mul(a,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error(`invZ was invalid`);return{x:s,y:c}}),C=na(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw Error(`bad point: ZERO`)}let{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw Error(`bad point: x or y not field elements`);if(!g(n,i))throw Error(`bad point: equation left != right`);if(!e.isTorsionFree())throw Error(`bad point: not in prime-order subgroup`);return!0});function w(e,t,n,i,a){return n=new T(r.mul(n.X,e),n.Y,n.Z),t=Na(i,t),n=Na(a,n),t.add(n)}class T{static BASE=new T(a.Gx,a.Gy,r.ONE);static ZERO=new T(r.ZERO,r.ONE,r.ZERO);static Fp=r;static Fn=i;X;Y;Z;constructor(e,t,n){this.X=y(`x`,e),this.Y=y(`y`,t,!0),this.Z=y(`z`,n),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(`invalid affine point`);if(e instanceof T)throw Error(`projective point not allowed`);return r.is0(t)&&r.is0(n)?T.ZERO:new T(t,n,r.ONE)}static fromBytes(e){let t=T.fromAffine(m(gi(e,void 0,`point`)));return t.assertValidity(),t}static fromHex(e){return T.fromBytes(Di(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return D.createCache(this,e),t||this.multiply(Qa),this}assertValidity(){C(this)}hasEvenY(){let{y:e}=this.toAffine();if(!r.isOdd)throw Error(`Field doesn't support isOdd`);return!r.isOdd(e)}equals(e){b(e);let{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:s}=e,c=r.eql(r.mul(t,s),r.mul(a,i)),l=r.eql(r.mul(n,s),r.mul(o,i));return c&&l}negate(){return new T(this.X,r.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,n=r.mul(t,Qa),{X:i,Y:o,Z:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),p=r.mul(s,s),m=r.mul(i,o);return m=r.add(m,m),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(n,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),l=r.add(l,d),p=r.mul(o,s),p=r.add(p,p),d=r.mul(p,m),c=r.sub(c,d),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new T(c,l,u)}add(e){b(e);let{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,f=a.a,p=r.mul(a.b,Qa),m=r.mul(t,o),h=r.mul(n,s),g=r.mul(i,c),_=r.add(t,n),v=r.add(o,s);_=r.mul(_,v),v=r.add(m,h),_=r.sub(_,v),v=r.add(t,i);let y=r.add(o,c);return v=r.mul(v,y),y=r.add(m,g),v=r.sub(v,y),y=r.add(n,i),l=r.add(s,c),y=r.mul(y,l),l=r.add(h,g),y=r.sub(y,l),d=r.mul(f,v),l=r.mul(p,g),d=r.add(l,d),l=r.sub(h,d),d=r.add(h,d),u=r.mul(l,d),h=r.add(m,m),h=r.add(h,m),g=r.mul(f,g),v=r.mul(p,v),h=r.add(h,g),g=r.sub(m,g),g=r.mul(f,g),v=r.add(v,g),m=r.mul(h,v),u=r.add(u,m),m=r.mul(y,v),l=r.mul(_,l),l=r.sub(l,m),m=r.mul(_,h),d=r.mul(y,d),d=r.add(d,m),new T(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(T.ZERO)}multiply(e){let{endo:n}=t;if(!i.isValidNot0(e))throw Error(`invalid scalar: out of range`);let r,a,o=e=>D.cached(this,e,e=>Pa(T,e));if(n){let{k1neg:t,k1:i,k2neg:s,k2:c}=x(e),{p:l,f:u}=o(i),{p:d,f}=o(c);a=u.add(f),r=w(n.beta,l,d,t,s)}else{let{p:t,f:n}=o(e);r=t,a=n}return Pa(T,[r,a])[0]}multiplyUnsafe(e){let{endo:n}=t,r=this;if(!i.isValid(e))throw Error(`invalid scalar: out of range`);if(e===Ya||r.is0())return T.ZERO;if(e===Xa)return r;if(D.hasCache(this))return this.multiply(e);if(n){let{k1neg:t,k1:i,k2neg:a,k2:o}=x(e),{p1:s,p2:c}=Ua(T,r,i,o);return w(n.beta,s,c,t,a)}return D.unsafe(r,e)}toAffine(e){return S(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return o===Xa?!0:e?e(T,this):D.unsafe(this,s).is0()}clearCofactor(){let{clearCofactor:e}=t;return o===Xa?this:e?e(T,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return Ui(e,`isCompressed`),this.assertValidity(),p(T,this,e)}toHex(e=!0){return wi(this.toBytes(e))}toString(){return`<Point ${this.is0()?`ZERO`:this.toHex()}>`}}let E=i.BITS,D=new Ha(T,t.endo?Math.ceil(E/2):E);return T.BASE.precompute(8),T}function to(e){return Uint8Array.of(e?2:3)}function no(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}var ro={p:BigInt(`0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f`),n:BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(`0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798`),Gy:BigInt(`0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8`)},io={beta:BigInt(`0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`),basises:[[BigInt(`0x3086d221a7d46bcde86c90e49284eb15`),-BigInt(`0xe4437ed6010e88286f547fa90abfe4c3`)],[BigInt(`0x114ca50f7a8e2f3f657c1108d9d44cfd8`),BigInt(`0x3086d221a7d46bcde86c90e49284eb15`)]]},ao=BigInt(0),oo=BigInt(2);function so(e){let t=ro.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=fa(fa(fa(u,n,t)*u%t,n,t)*u%t,oo,t)*l%t,f=fa(d,i,t)*d%t,p=fa(f,a,t)*f%t,m=fa(p,s,t)*p%t,h=fa(fa(fa(fa(fa(fa(m,c,t)*m%t,s,t)*p%t,n,t)*u%t,o,t)*f%t,r,t)*l%t,oo,t);if(!co.eql(co.sqr(h),e))throw Error(`Cannot find square root`);return h}var co=Da(ro.p,{sqrt:so}),lo=eo(ro,{Fp:co,endo:io}),uo={};function fo(e,...t){let n=uo[e];if(n===void 0){let t=Bi(Zi(e));n=Oi(t,t),uo[e]=n}return Bi(Oi(n,...t))}var po=e=>e.toBytes(!0).slice(1),mo=e=>e%oo===ao;function ho(e){let{Fn:t,BASE:n}=lo,r=t.fromBytes(e),i=n.multiply(r);return{scalar:mo(i.y)?r:t.neg(r),bytes:po(i)}}function go(e){let t=co;if(!t.isValidNot0(e))throw Error(`invalid x: Fail if x ≥ p`);let n=t.create(e*e),r=t.create(n*e+BigInt(7)),i=t.sqrt(r);mo(i)||(i=t.neg(i));let a=lo.fromAffine({x:e,y:i});return a.assertValidity(),a}var _o=Ki;function vo(...e){return lo.Fn.create(_o(fo(`BIP0340/challenge`,...e)))}function yo(e){return ho(e).bytes}function bo(e,t,n=Ai(32)){let{Fn:r}=lo,i=gi(e,void 0,`message`),{bytes:a,scalar:o}=ho(t),s=gi(n,32,`auxRand`),{bytes:c,scalar:l}=ho(fo(`BIP0340/nonce`,r.toBytes(o^_o(fo(`BIP0340/aux`,s))),a,i)),u=vo(c,a,i),d=new Uint8Array(64);if(d.set(c,0),d.set(r.toBytes(r.create(l+u*o)),32),!xo(d,i,a))throw Error(`sign: Invalid signature produced`);return d}function xo(e,t,n){let{Fp:r,Fn:i,BASE:a}=lo,o=gi(e,64,`signature`),s=gi(t,void 0,`message`),c=gi(n,32,`publicKey`);try{let e=go(_o(c)),t=_o(o.subarray(0,32));if(!r.isValidNot0(t))return!1;let n=_o(o.subarray(32,64));if(!i.isValidNot0(n))return!1;let l=vo(i.toBytes(t),po(e),s),u=a.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:d,y:f}=u.toAffine();return!(u.is0()||!mo(f)||d!==t)}catch{return!1}}var So=(()=>{let e=(e=Ai(48))=>Aa(e,ro.n);return{keygen:Ka(e,yo),getPublicKey:yo,sign:bo,verify:xo,Point:lo,utils:{randomSecretKey:e,taggedHash:fo,lift_x:go,pointToBytes:po},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();new TextDecoder(`utf-8`);var Co=new TextEncoder;function wo(e){for(let t=0;t<64;t++){let n=e.charCodeAt(t);if(isNaN(n)||n<48||n>102||n>57&&n<97)return!1}return!0}var To=Symbol(`verified`),Eo=e=>e instanceof Object;function Do(e){if(!Eo(e)||typeof e.kind!=`number`||typeof e.content!=`string`||typeof e.created_at!=`number`||typeof e.pubkey!=`string`||!wo(e.pubkey)||!Array.isArray(e.tags))return!1;for(let t=0;t<e.tags.length;t++){let n=e.tags[t];if(!Array.isArray(n))return!1;for(let e=0;e<n.length;e++)if(typeof n[e]!=`string`)return!1}return!0}var Oo=class{generateSecretKey(){return So.utils.randomSecretKey()}getPublicKey(e){return wi(So.getPublicKey(e))}finalizeEvent(e,t){let n=e;return n.pubkey=wi(So.getPublicKey(t)),n.id=Ao(n),n.sig=wi(So.sign(Di(Ao(n)),t)),n[To]=!0,n}verifyEvent(e){if(typeof e[To]==`boolean`)return e[To];try{let t=Ao(e);if(t!==e.id)return e[To]=!1,!1;let n=So.verify(Di(e.sig),Di(t),Di(e.pubkey));return e[To]=n,n}catch{return e[To]=!1,!1}}};function ko(e){if(!Do(e))throw Error(`can't serialize event with wrong or missing properties`);return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}function Ao(e){return wi(Bi(Co.encode(ko(e))))}var jo=new Oo,Mo=jo.generateSecretKey,No=jo.getPublicKey;jo.finalizeEvent,jo.verifyEvent;function Po(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function Fo(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(e=>typeof e==`string`):t.every(e=>Number.isSafeInteger(e)):!1}function Io(e){if(typeof e!=`function`)throw Error(`function expected`);return!0}function Lo(e,t){if(typeof t!=`string`)throw Error(`${e}: string expected`);return!0}function Ro(e){if(!Number.isSafeInteger(e))throw Error(`invalid integer: ${e}`)}function zo(e){if(!Array.isArray(e))throw Error(`array expected`)}function Bo(e,t){if(!Fo(!0,t))throw Error(`${e}: array of strings expected`)}function Vo(e,t){if(!Fo(!1,t))throw Error(`${e}: array of numbers expected`)}function Ho(...e){let t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map(e=>e.encode).reduceRight(n,t),decode:e.map(e=>e.decode).reduce(n,t)}}function Uo(e){let t=typeof e==`string`?e.split(``):e,n=t.length;Bo(`alphabet`,t);let r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(zo(r),r.map(r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw Error(`alphabet.encode: digit index outside alphabet "${r}". Allowed: ${e}`);return t[r]})),decode:t=>(zo(t),t.map(t=>{Lo(`alphabet.decode`,t);let n=r.get(t);if(n===void 0)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}function Wo(e=``){return Lo(`join`,e),{encode:t=>(Bo(`join.decode`,t),t.join(e)),decode:t=>(Lo(`join.decode`,t),t.split(e))}}function Go(e,t=`=`){return Ro(e),Lo(`padding`,t),{encode(n){for(Bo(`padding.encode`,n);n.length*e%8;)n.push(t);return n},decode(n){Bo(`padding.decode`,n);let r=n.length;if(r*e%8)throw Error(`padding: invalid, string should have whole number of bytes`);for(;r>0&&n[r-1]===t;r--)if((r-1)*e%8==0)throw Error(`padding: invalid, string has too much padding`);return n.slice(0,r)}}}function Ko(e){return Io(e),{encode:e=>e,decode:t=>e(t)}}var qo=(e,t)=>t===0?e:qo(t,e%t),Jo=(e,t)=>e+(t-qo(e,t)),Yo=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function Xo(e,t,n,r){if(zo(e),t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw Error(`convertRadix2: wrong to=${n}`);if(Jo(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Jo(t,n)}`);let i=0,a=0,o=Yo[t],s=Yo[n]-1,c=[];for(let r of e){if(Ro(r),r>=o)throw Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<<t|r,a+t>32)throw Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=n;a-=n)c.push((i>>a-n&s)>>>0);let e=Yo[a];if(e===void 0)throw Error(`invalid carry`);i&=e-1}if(i=i<<n-a&s,!r&&a>=t)throw Error(`Excess padding`);if(!r&&i>0)throw Error(`Non-zero padding: ${i}`);return r&&a>0&&c.push(i>>>0),c}function Zo(e,t=!1){if(Ro(e),e<=0||e>32)throw Error(`radix2: bits should be in (0..32]`);if(Jo(8,e)>32||Jo(e,8)>32)throw Error(`radix2: carry overflow`);return{encode:n=>{if(!Po(n))throw Error(`radix2.encode input should be Uint8Array`);return Xo(Array.from(n),8,e,!t)},decode:n=>(Vo(`radix2.decode`,n),Uint8Array.from(Xo(n,e,8,t)))}}function Qo(e){return Io(e),function(...t){try{return e.apply(null,t)}catch{}}}Ho(Zo(4),Uo(`0123456789ABCDEF`),Wo(``)),Ho(Zo(5),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),Go(5),Wo(``)),Ho(Zo(5),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),Wo(``)),Ho(Zo(5),Uo(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),Go(5),Wo(``)),Ho(Zo(5),Uo(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),Wo(``)),Ho(Zo(5),Uo(`0123456789ABCDEFGHJKMNPQRSTVWXYZ`),Wo(``),Ko(e=>e.toUpperCase().replace(/O/g,`0`).replace(/[IL]/g,`1`)));var $o=typeof Uint8Array.from([]).toBase64==`function`&&typeof Uint8Array.fromBase64==`function`;$o||Ho(Zo(6),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),Go(6),Wo(``)),Ho(Zo(6),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),Wo(``)),$o||Ho(Zo(6),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),Go(6),Wo(``)),Ho(Zo(6),Uo(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),Wo(``));var es=Ho(Uo(`qpzry9x8gf2tvdw0s3jn54khce6mua7l`),Wo(``)),ts=[996825010,642813549,513874426,1027748829,705979059];function ns(e){let t=e>>25,n=(e&33554431)<<5;for(let e=0;e<ts.length;e++)(t>>e&1)==1&&(n^=ts[e]);return n}function rs(e,t,n=1){let r=e.length,i=1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(n<33||n>126)throw Error(`Invalid prefix (${e})`);i=ns(i)^n>>5}i=ns(i);for(let t=0;t<r;t++)i=ns(i)^e.charCodeAt(t)&31;for(let e of t)i=ns(i)^e;for(let e=0;e<6;e++)i=ns(i);return i^=n,es.encode(Xo([i%Yo[30]],30,5,!1))}function is(e){let t=e===`bech32`?1:734539939,n=Zo(5),r=n.decode,i=n.encode,a=Qo(r);function o(e,n,r=90){Lo(`bech32.encode prefix`,e),Po(n)&&(n=Array.from(n)),Vo(`bech32.encode`,n);let i=e.length;if(i===0)throw TypeError(`Invalid prefix length ${i}`);let a=i+7+n.length;if(r!==!1&&a>r)throw TypeError(`Length ${a} exceeds limit ${r}`);let o=e.toLowerCase(),s=rs(o,n,t);return`${o}1${es.encode(n)}${s}`}function s(e,n=90){Lo(`bech32.decode input`,e);let r=e.length;if(r<8||n!==!1&&r>n)throw TypeError(`invalid string length: ${r} (${e}). Expected (8..${n})`);let i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw Error(`String must be lowercase or uppercase`);let a=i.lastIndexOf(`1`);if(a===0||a===-1)throw Error(`Letter "1" must be present between prefix and data only`);let o=i.slice(0,a),s=i.slice(a+1);if(s.length<6)throw Error(`Data must be at least 6 characters long`);let c=es.decode(s).slice(0,-6),l=rs(o,c,t);if(!s.endsWith(l))throw Error(`Invalid checksum in ${e}: expected "${l}"`);return{prefix:o,words:c}}let c=Qo(s);function l(e){let{prefix:t,words:n}=s(e,!1);return{prefix:t,words:n,bytes:r(n)}}function u(e,t){return o(e,i(t))}return{encode:o,decode:s,encodeFromBytes:u,decodeToBytes:l,decodeUnsafe:c,fromWords:r,fromWordsUnsafe:a,toWords:i}}var as=is(`bech32`);is(`bech32m`),typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`||Ho(Zo(4),Uo(`0123456789abcdef`),Wo(``),Ko(e=>{if(typeof e!=`string`||e.length%2!=0)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),new TextDecoder(`utf-8`),new TextEncoder;var os=5e3;function ss(e){return us(`nsec`,e)}function cs(e){return us(`npub`,Di(e))}function ls(e,t){let n=as.toWords(t);return as.encode(e,n,os)}function us(e,t){return ls(e,t)}function ds(){let e=Mo();return{secret:e,pubkey:No(e)}}function fs(e){return cs(e)}function ps(e){return ss(e)}function ms(e,t){let n=Math.min(e.length,t.length),r=0;for(;r<n&&e[r]===t[r];)r+=1;return r}function hs(e,t=12,n=8){return e.length<=t+n+1?e:`${e.slice(0,t)}...${e.slice(-n)}`}function gs(e){return/^[0-9a-f]{64}$/.test(e)}var _s=8,vs={attempts:0,elapsedMs:0,best:null,last:null,matched:!1};function ys(e,t,n,r=ds){let i=n(),a=[],o=0,s=null,c=null,l=null;do{let t=r(),n=e===null?0:ms(t.pubkey,e),i={...t,matchedPrefix:n};if(o+=1,c=i,(s===null||i.matchedPrefix>s.matchedPrefix)&&(s=i),a.length<_s&&a.push(i.pubkey),e!==null&&i.pubkey===e){l=i;break}}while(n()-i<t);return{attempts:o,best:s,last:c,matched:l,samples:a}}function bs(e,t,n){let r=t.best!==null&&(e.best===null||t.best.matchedPrefix>e.best.matchedPrefix)?t.best:e.best;return{attempts:e.attempts+t.attempts,elapsedMs:n,best:r,last:t.last??e.last,matched:e.matched||t.matched!==null}}function xs(e,t){return t<=0?0:e/t*1e3}var Ss=new Intl.NumberFormat(`en-US`);function Cs(e){return!Number.isFinite(e)||e<0?`0`:Ss.format(Math.floor(e))}function ws(e,t){return`${Cs(xs(e,t))} keys/s`}function Ts(e){return!Number.isFinite(e)||e<=0?`0.0s`:`${(e/1e3).toFixed(1)}s`}function Es(e,t=64){return`${Number.isFinite(e)?Math.max(0,Math.min(t,Math.floor(e))):0} / ${t}`}function Ds(e=null){return{phase:`idle`,target:e}}function Os(e,t){switch(t.type){case`start`:return e.phase===`mining`?e:{...e,phase:`mining`};case`finish`:return e.phase===`mining`?t.matched?{...e,phase:`granted`}:{...e,phase:e.target===null?`no-target`:`denied`}:e;case`reset`:return{...e,phase:`idle`};case`target`:return t.target===e.target?e:e.phase===`mining`?{phase:`idle`,target:t.target}:{...e,target:t.target};default:return e}}function ks(e,t){return e.phase===`mining`&&t!==e.target}function As(){let e=window;if(!e.napplet)throw Error(`window.napplet is unavailable -- runtime did not inject the napplet namespace`);return e.napplet}function js(e){let t=As()[e];if(!t)throw Error(`window.napplet.${String(e)} is unavailable -- runtime did not inject this domain`);return t}var Ms={getPublicKey(){return js(`identity`).getPublicKey()},onChanged(e){return js(`identity`).onChanged(e)},getRelays(){return js(`identity`).getRelays()},getProfile(){return js(`identity`).getProfile()},getFollows(){return js(`identity`).getFollows()},getList(e){return js(`identity`).getList(e)},getZaps(){return js(`identity`).getZaps()},getMutes(){return js(`identity`).getMutes()},getBlocked(){return js(`identity`).getBlocked()},getBadges(){return js(`identity`).getBadges()}};function Ns(){return globalThis.napplet}function Ps(e,t){return typeof Ns()?.[e]?.[t]==`function`}function Fs(e){try{return e()}catch{return}}async function Is(){if(!Ps(`identity`,`getPublicKey`))return null;try{let e=(await Ms.getPublicKey()).toLowerCase();return gs(e)?e:null}catch{return null}}function Ls(e){let t=0,n=!1,r=()=>{let r=++t;Is().then(i=>{!n&&r===t&&e(i)})};if(r(),!Ps(`identity`,`onChanged`))return()=>{n=!0};let i=Fs(()=>Ms.onChanged(()=>r()));return()=>{n=!0,Fs(()=>i?.close())}}var Rs=.35,zs=1,Bs=`0123456789abcdef`;function Vs(e){let t=e.getContext(`2d`),n=Bs,r=[],i=14,a=!1,o=Rs,s=0,c=0;function l(){let n=Math.min(globalThis.devicePixelRatio||1,2),a=e.clientWidth,o=e.clientHeight;if(a===0||o===0)return;e.width=Math.floor(a*n),e.height=Math.floor(o*n),t?.setTransform(n,0,0,n,0,0),i=Math.max(10,Math.min(18,Math.round(a/48)));let s=Math.max(1,Math.ceil(a/i));r=Array.from({length:s},(e,t)=>r[t]??Math.random()*-40),r.length=s}function u(){if(c=requestAnimationFrame(u),!t||(s+=1,s%2!=0))return;let l=e.clientWidth,d=e.clientHeight;o+=((a?zs:Rs)-o)*.05,t.fillStyle=`rgba(1, 7, 4, 0.16)`,t.fillRect(0,0,l,d),t.font=`${i}px ui-monospace, monospace`,t.textBaseline=`top`;let f=d/i;for(let e=0;e<r.length;e+=1){let s=r[e]??0,c=n[Math.floor(Math.random()*n.length)]??`0`;t.fillStyle=`rgba(56, 255, 156, ${(.85*o).toFixed(3)})`,t.fillText(c,e*i,s*i),t.fillStyle=`rgba(224, 255, 238, ${(.5*o).toFixed(3)})`,t.fillText(c,e*i,s*i);let l=s+(a?1.1:.45);r[e]=l>f&&Math.random()>.975?0:l}}return l(),c=requestAnimationFrame(u),{feed(e){let t=e.join(``);t.length>0&&(n=t)},setMining(e){a=e},resize:l,stop(){cancelAnimationFrame(c)}}}var Hs=11;function Us(e){if(!Number.isFinite(e)||e<=0)return 8;let t=Math.floor(e/Hs);return Math.max(8,Math.min(64,t))}var Ws=10,Gs=`0123456789abcdef`;function Ks(){return Gs[Math.floor(Math.random()*16)]??`0`}function qs(e,t){let n=[],r=64,i=document.createDocumentFragment();for(let e=0;e<64;e+=1){let e=document.createElement(`div`);e.className=`slot`;let r=document.createElement(`div`);r.className=`slot-strip`;let a=[];for(let e=0;e<20;e+=1){let e=document.createElement(`span`);e.textContent=Ks(),r.append(e),a.push(e)}e.append(r),i.append(e);let o=J.to(r,{yPercent:-50,duration:t?1.2:J.utils.random(.35,.75),ease:`none`,repeat:-1});n.push({el:e,strip:r,cells:a,spin:o})}e.append(i);function a(e){r=e;for(let t=0;t<n.length;t+=1)n[t].el.hidden=t>=e}return a(Us(e.clientWidth)),{visibleCount:()=>r,update(e){for(let t=0;t<r;t+=1){let r=n[t];if(r)for(let n=0;n<Ws;n+=1){let i=e[(t+n*7)%e.length]??Ks();r.cells[n].textContent=i,r.cells[n+Ws].textContent=i}}},settle(e){let t=r>0?e/r:0;for(let i=0;i<n.length;i+=1){let a=n[i];J.to(a.spin,{timeScale:0,duration:Math.max(.25,e*.35),delay:Math.min(i,r)*t,ease:`power2.out`,onComplete:()=>a.el.classList.add(`is-locked`)})}},lock(e){for(let t=0;t<n.length;t+=1){let r=n[t];J.killTweensOf(r.spin),r.spin.timeScale(0),J.set(r.strip,{yPercent:0}),r.el.classList.add(`is-locked`);let i=e[t]??`-`;r.cells[0].textContent=i,r.cells[Ws].textContent=i}},reset(){for(let e of n)J.killTweensOf(e.spin),e.el.classList.remove(`is-locked`),e.spin.timeScale(1),e.spin.play()},relayout(){let t=Us(e.clientWidth);t!==r&&a(t)},destroy(){for(let e of n)e.spin.kill();n.length=0,e.replaceChildren()}}}var Js=`npub1`;function Ys(e,t){let n=e.startsWith(`npub1`)&&t.startsWith(`npub1`)?Js:``,r=e.slice(n.length),i=t.slice(n.length),a=Math.min(r.length,i.length),o=0,s=[],c=[];for(let e=0;e<r.length;e+=1){let t=e<a&&r[e]===i[e];t&&(o+=1),s.push({char:r[e],hit:t})}for(let e=0;e<i.length;e+=1)c.push({char:i[e],hit:e<a&&r[e]===i[e]});return{prefix:n,guess:s,target:c,hits:o,total:a}}function Xs(e){return e.total===0?`nothing to compare`:e.hits===e.total?`all ${e.total} characters match`:`${e.hits} of ${e.total} characters match`}var Zs={denied:`Not even close. That is the entire point: there are more possible keys than atoms in the observable universe, and you just tried a few thousand of them.`,granted:`This did not happen. If you are somehow reading this, the key below is shown once and was never stored, published, or given to a signer.`,"no-target":`No public key was connected, so there was nothing to compare against. Connect an identity in the shell and the guesses will at least have a target to miss.`};function Qs(e,t,n){let r=document.createDocumentFragment();if(t.length>0){let e=document.createElement(`span`);e.className=`pre`,e.textContent=t,r.append(e)}for(let e of n){let t=document.createElement(`span`);t.className=e.hit?`hit`:`miss`,t.textContent=e.char,r.append(t)}e.replaceChildren(r)}function $s(e,t){let n=document.createElement(`span`);n.className=`miss`,n.textContent=t,e.replaceChildren(n)}function ec(e,t,n,r,i){let a=t===`granted`?`ACCESS GRANTED`:t===`no-target`?`NO TARGET`:`ACCESS DENIED`;e.title.textContent=a,e.note.textContent=Zs[t]??``;let o=n===null?``:fs(n.pubkey),s=r===null?null:fs(r);if(s===null||o===``)e.targetRow.hidden=!0,$s(e.guessChars,o===``?`--`:o),e.summary.textContent=`no target to compare against`;else{let t=Ys(o,s);e.targetRow.hidden=!1,Qs(e.targetChars,t.prefix,t.target),Qs(e.guessChars,t.prefix,t.guess),e.summary.textContent=`${Xs(t)} · longest hex prefix ${Es(n?.matchedPrefix??0)}`}let c=t===`granted`&&n!==null;if(e.nsecRow.hidden=!c,e.nsec.textContent=c?ps(n.secret):``,e.panel.hidden=!1,i){J.set(e.panel,{opacity:1});return}J.fromTo(e.panel,{opacity:0},{opacity:1,duration:.25,ease:`power1.out`,overwrite:`auto`}),J.fromTo(e.title,{scale:.86,opacity:0},{scale:1,opacity:1,duration:.4,ease:`back.out(2)`,overwrite:`auto`}),J.fromTo(e.guessChars.querySelectorAll(`.hit`),{opacity:.35},{opacity:1,duration:.3,stagger:.04,delay:.35,ease:`none`,overwrite:`auto`})}function tc(e){J.killTweensOf([e.panel,e.title]),e.panel.hidden=!0,e.nsec.textContent=``,e.nsecRow.hidden=!0}var nc=10,rc=1.5,ic=5,ac=4;function Z(e){let t=document.querySelector(e);if(!t)throw Error(`Missing element: ${e}`);return t}var oc=Z(`#app`),sc=Z(`#slots`),cc=Z(`.rain`),lc=Z(`#hack`),uc=Z(`#again`),dc=Z(`#caption`),fc=Z(`#guess`),pc=Z(`#target`),mc={keys:Z(`#r-keys`),rate:Z(`#r-rate`),best:Z(`#r-best`),time:Z(`#r-time`)},hc={panel:Z(`#result`),title:Z(`#result-title`),note:Z(`#result-note`),targetRow:Z(`#diff-target-row`),targetChars:Z(`#diff-target`),guessChars:Z(`#diff-guess`),summary:Z(`#diff-summary`),nsecRow:Z(`#result-secret-row`),nsec:Z(`#result-nsec`)},gc=globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`),_c=gc?.matches??!1,Q=Ds(null),$=vs,vc=0,yc=null,bc=!1,xc=0,Sc=Vs(cc),Cc=qs(sc,_c),wc={idle:`Awaiting input.`,mining:`Seeding entropy pool...`,denied:`Attempt failed. The keyspace remains undefeated.`,granted:`Impossible. Verify this yourself before believing it.`,"no-target":`Nothing to compare against.`},Tc=[[0,`Seeding entropy pool...`],[.2,`Deriving secp256k1 points...`],[.45,`Comparing against target pubkey...`],[.7,`Narrowing keyspace...`],[.88,`Final candidates...`]];function Ec(e){let t=Tc[0][1];for(let[n,r]of Tc)e>=n&&(t=r);return t}function Dc(){mc.keys.textContent=Cs($.attempts),mc.rate.textContent=ws($.attempts,$.elapsedMs),mc.best.textContent=Es($.best?.matchedPrefix??0),mc.time.textContent=Ts($.elapsedMs)}function Oc(){pc.textContent=Q.target===null?`TARGET · none connected`:`TARGET · ${hs(fs(Q.target),10,6)}`}function kc(){oc.dataset.phase=Q.phase,dc.textContent=wc[Q.phase],lc.disabled=Q.phase===`mining`,lc.textContent=Q.phase===`mining`?`BREACHING...`:`HACK NSEC`,Sc.setMining(Q.phase===`mining`)}function Ac(e){let t=Q;Q=Os(Q,e),Q!==t&&(t.phase!==Q.phase&&kc(),t.target!==Q.target&&Oc())}function jc(){yc?.kill(),yc=null,J.ticker.remove(Mc)}function Mc(){if(Q.phase!==`mining`)return;let e=ys(Q.target,ic,()=>performance.now());$=bs($,e,performance.now()-vc),Sc.feed(e.samples),xc+=1,xc%ac===0&&($.last!==null&&(Cc.update($.last.pubkey),fc.textContent=fs($.last.pubkey)),Dc()),e.matched!==null&&yc?.progress(1)}function Nc(){jc();let e=$.matched;$.last!==null&&Cc.lock($.last.pubkey),Ac({type:`finish`,matched:e}),Dc();let t=$.best??$.last;t!==null&&(fc.textContent=fs(t.pubkey)),ec(hc,Q.phase,t,Q.target,_c)}function Pc(){if(Q.phase===`mining`)return;tc(hc),Cc.reset(),fc.textContent=`npub1`+`.`.repeat(8),$=vs,xc=0,vc=performance.now(),Ac({type:`start`}),Dc();let e=_c?rc:nc;yc=J.timeline({onComplete:Nc}),yc.to({p:0},{p:1,duration:e,ease:`none`,onUpdate(){dc.textContent=Ec(this.progress())}},0),J.ticker.add(Mc),Cc.settle(e)}function Fc(){bc||(bc=!0,ds())}lc.addEventListener(`pointerdown`,Fc),lc.addEventListener(`click`,()=>Pc()),uc.addEventListener(`click`,()=>{tc(hc),Ac({type:`reset`}),Cc.reset(),Pc()});var Ic=new ResizeObserver(()=>{Sc.resize(),Cc.relayout()});Ic.observe(oc);var Lc=Ls(e=>{if(ks(Q,e)){jc(),Ac({type:`target`,target:e}),Cc.reset(),Oc();return}Ac({type:`target`,target:e})});function Rc(e){_c=e.matches}gc?.addEventListener(`change`,Rc);function zc(){jc(),Lc(),Ic.disconnect(),gc?.removeEventListener(`change`,Rc),Sc.stop(),Cc.destroy()}globalThis.addEventListener(`pagehide`,zc,{once:!0}),kc(),Oc(),Dc();</script>
<style rel="stylesheet" crossorigin>:root{--phos:#38ff9c;--phos-dim:#176b45;--phos-mid:#1fbf74;--amber:#ffc93c;--danger:#ff4d4d;--bg:#010704;--bg-soft:#04140c;--edge:#38ff9c38;--glow:0 0 .5em #38ff9c73;--mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--napplet-text-selection:text}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;margin:0}body{font-family:var(--mono);color:var(--phos);overflow:hidden}.term{background:radial-gradient(120% 90% at 50% 0%, #1fbf7421, transparent 60%), var(--bg);width:100%;height:100dvh;min-height:100%;position:relative;overflow:hidden;container-type:inline-size}.rain,.scanlines{pointer-events:none;position:absolute;inset:0}.rain{opacity:.5;width:100%;height:100%}.scanlines{mix-blend-mode:multiply;opacity:.55;background:repeating-linear-gradient(#0000 0 2px,#00000047 2px 4px)}.shell{z-index:1;flex-direction:column;gap:clamp(.5rem,2cqi,1.1rem);height:100%;min-height:0;padding:clamp(.5rem,2.5cqi,1.4rem);display:flex;position:relative}.bar{border-bottom:1px solid var(--edge);letter-spacing:.08em;text-transform:uppercase;align-items:center;gap:.5rem;min-width:0;padding-bottom:.4rem;font-size:clamp(.62rem,1.8cqi,.8rem);display:flex}.led{background:var(--phos);width:.5rem;height:.5rem;box-shadow:var(--glow);border-radius:50%;flex:none;animation:1.8s ease-in-out infinite pulse}.bar-title{color:var(--phos);text-shadow:var(--glow);flex:none}.bar-target{min-width:0;color:var(--phos-mid);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.stage{flex-direction:column;flex:auto;justify-content:center;gap:.6rem;min-height:0;display:flex}.slots{border:1px solid var(--edge);background:linear-gradient(#04140cd9,#010704e6);border-radius:2px;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:clamp(1px,.3cqi,3px);width:100%;height:clamp(2.4rem,16cqi,5.5rem);padding:.35rem clamp(.25rem,1cqi,.75rem);display:grid;overflow:hidden}.slot{text-align:center;min-width:0;position:relative;overflow:hidden}.slot-strip{color:var(--phos-mid);will-change:transform;flex-direction:column;align-items:center;font-size:clamp(.55rem,2.1cqi,1.05rem);line-height:1.35;display:flex}.slot-strip>span{display:block}.slot.is-locked .slot-strip{color:var(--phos);text-shadow:var(--glow)}.guess{color:var(--phos);letter-spacing:.02em;text-align:center;text-overflow:ellipsis;text-shadow:var(--glow);white-space:nowrap;margin:0;font-size:clamp(.55rem,1.9cqi,.85rem);overflow:hidden}.term[data-phase=idle] .guess{color:var(--phos-dim);text-shadow:none}.caption{color:var(--phos-mid);letter-spacing:.06em;text-align:center;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:clamp(.6rem,1.9cqi,.82rem);overflow:hidden}.readout{grid-template-columns:repeat(auto-fit,minmax(min(7.5rem,100%),1fr));gap:clamp(.25rem,1cqi,.6rem);display:grid}.cell{border:1px solid var(--edge);background:#04140c8c;border-radius:2px;justify-content:space-between;align-items:baseline;gap:.4rem;min-width:0;padding:.3rem .5rem;display:flex}.cell-key{color:var(--phos-dim);letter-spacing:.12em;flex:none;font-size:clamp(.55rem,1.6cqi,.68rem)}.cell-val{font-variant-numeric:tabular-nums;text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:clamp(.66rem,2cqi,.92rem);overflow:hidden}.actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;display:flex}.hack{border:1px solid var(--phos);min-width:0;color:var(--phos);font:inherit;letter-spacing:.16em;text-shadow:var(--glow);cursor:pointer;background:#176b452e;border-radius:2px;flex:0 auto;padding:clamp(.45rem,1.8cqi,.8rem) clamp(.9rem,5cqi,2.4rem);font-size:clamp(.72rem,2.4cqi,1.05rem);transition:background .15s,box-shadow .15s}.hack:hover:not(:disabled),.hack:focus-visible{background:#38ff9c33;outline:none;box-shadow:0 0 1.2em #38ff9c59}.hack:disabled{border-color:var(--phos-dim);color:var(--phos-dim);text-shadow:none;cursor:progress}.odds{color:var(--phos-dim);letter-spacing:.08em;font-size:clamp(.55rem,1.6cqi,.7rem)}.diff{text-align:left;margin:0 0 1rem}.diff-row{border-top:1px solid var(--edge);flex-direction:column;gap:.15rem;padding:.4rem 0;display:flex}.diff-row[hidden]{display:none}.diff-label{color:var(--phos-dim);letter-spacing:.12em;text-transform:uppercase;font-size:clamp(.52rem,1.5cqi,.64rem)}.diff-chars{letter-spacing:.02em;overflow-wrap:anywhere;font-size:clamp(.56rem,1.8cqi,.78rem);line-height:1.5}.diff-chars .hit{color:var(--phos);text-shadow:var(--glow);background:#38ff9c29}.diff-chars .miss{color:var(--phos-dim)}.diff-chars .pre{color:var(--phos-mid)}.term[data-phase=granted] .diff-chars .hit{color:var(--amber);text-shadow:none;background:#ffc93c2e}.diff-summary{color:var(--phos-mid);letter-spacing:.04em;text-align:right;margin:.5rem 0 0;font-size:clamp(.55rem,1.7cqi,.72rem)}.result{z-index:2;background:#010704e0;place-items:center;padding:clamp(.5rem,3cqi,2rem);display:grid;position:absolute;inset:0}.result[hidden]{display:none}.result-box{border:1px solid var(--danger);text-align:center;background:#04140ceb;border-radius:2px;width:min(34rem,100%);max-height:100%;padding:clamp(.75rem,3cqi,1.6rem);overflow:auto}.term[data-phase=granted] .result-box{border-color:var(--amber)}.result-title{color:var(--danger);letter-spacing:.18em;margin:0 0 .4rem;font-size:clamp(1rem,5cqi,2rem)}.term[data-phase=granted] .result-title{color:var(--amber);text-shadow:0 0 .6em #ffc93c8c}.term[data-phase=no-target] .result-title{color:var(--phos-mid)}.term[data-phase=no-target] .result-box{border-color:var(--edge)}.result-note{color:var(--phos-mid);margin:0 0 .9rem;font-size:clamp(.62rem,2cqi,.82rem);line-height:1.5}.result-rows{text-align:left;margin:0 0 1rem}.result-row{border-top:1px solid var(--edge);flex-wrap:wrap;justify-content:space-between;gap:.2rem .6rem;padding:.35rem 0;display:flex}.result-row[hidden]{display:none}.result-row dt{color:var(--phos-dim);letter-spacing:.1em;text-transform:uppercase;flex:none;font-size:clamp(.55rem,1.6cqi,.68rem)}.result-row dd{text-align:right;overflow-wrap:anywhere;flex:12ch;min-width:0;margin:0;font-size:clamp(.58rem,1.8cqi,.76rem)}.mono{font-family:var(--mono);color:var(--phos)}@container (width<=26rem){.odds{display:none}.bar-target{font-size:.58rem}}@container (width<=17rem){.slots{height:2rem}.caption{display:none}.readout{grid-template-columns:1fr 1fr}}@container (height<=15rem){.slots{height:1.9rem}.scanlines{display:none}}@media (prefers-reduced-motion:reduce){.led{animation:none}.rain{display:none}.scanlines{opacity:.25}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.25}}.slot[hidden]{display:none}
/*$vite$:1*/</style>
</head>
<body>
<!--
The napplet fills whatever frame the shell gives it: this is a terminal
surface, not a page with a card on it. Everything below scales from a
full tab down to a sidebar tile.
-->
<div id="app" class="term" data-phase="idle">
<canvas class="rain" aria-hidden="true"></canvas>
<div class="scanlines" aria-hidden="true"></div>
<div class="shell">
<header class="bar">
<span class="led" aria-hidden="true"></span>
<span class="bar-title">nsec-hacker</span>
<span class="bar-target" id="target">TARGET · scanning</span>
</header>
<div class="stage">
<div class="slots" id="slots" aria-hidden="true"></div>
<p class="guess mono" id="guess" data-napplet-select="all">—</p>
<p class="caption" id="caption">Awaiting input.</p>
</div>
<div class="readout">
<div class="cell">
<span class="cell-key">KEYS</span>
<span class="cell-val" id="r-keys">0</span>
</div>
<div class="cell">
<span class="cell-key">RATE</span>
<span class="cell-val" id="r-rate">0 keys/s</span>
</div>
<div class="cell">
<span class="cell-key">BEST</span>
<span class="cell-val" id="r-best">0 / 64</span>
</div>
<div class="cell">
<span class="cell-key">TIME</span>
<span class="cell-val" id="r-time">0.0s</span>
</div>
</div>
<div class="actions">
<button type="button" class="hack" id="hack">HACK NSEC</button>
<span class="odds" id="odds">1 in 2^256</span>
</div>
</div>
<div class="result" id="result" hidden>
<div class="result-box">
<p class="result-title" id="result-title">ACCESS DENIED</p>
<p class="result-note" id="result-note"></p>
<div class="diff" id="diff">
<div class="diff-row" id="diff-target-row">
<span class="diff-label">your key</span>
<span class="diff-chars mono" id="diff-target" data-napplet-select="all"></span>
</div>
<div class="diff-row">
<span class="diff-label">closest guess</span>
<span class="diff-chars mono" id="diff-guess" data-napplet-select="all"></span>
</div>
<p class="diff-summary" id="diff-summary"></p>
</div>
<dl class="result-rows">
<div class="result-row" id="result-secret-row" hidden>
<dt>secret key</dt>
<dd class="mono" id="result-nsec" data-napplet-select="all"></dd>
</div>
</dl>
<button type="button" class="hack hack-again" id="again">TRY AGAIN</button>
</div>
</div>
</div>
</body>
</html>
