PageSourceSearch

https://nlp4sg.vercel.app/_next/static/chunks/986-42546edf6b5fa41a121f.js

js nlp4sg.vercel.app collected 2026-10-03 07:24:36 UTC 72,579 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[986],{1451:function(t,e,n){n.d(e,{W:function(){return r}});let i=y();const r=t=>p(t,i);let s=y();r.write=t=>p(t,s);let o=y();r.onStart=t=>p(t,o);let a=y();r.onFrame=t=>p(t,a);let u=y();r.onFinish=t=>p(t,u);let c=[];r.setTimeout=(t,e)=>{let n=r.now()+e,i=()=>{let t=c.findIndex((t=>t.cancel==i));~t&&c.splice(t,1),_.count-=~t?1:0},s={time:n,handler:t,cancel:i};return c.splice(l(n),0,s),_.count+=1,m(),s};let l=t=>~(~c.findIndex((e=>e.time>t))||~c.length);r.cancel=t=>{i.delete(t),s.delete(t)},r.sync=t=>{f=!0,r.batchedUpdates(t),f=!1},r.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,r.onStart(n)}return i.handler=t,i.cancel=()=>{o.delete(n),e=null},i};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=t=>d=t,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=t=>t(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};let h=-1,f=!1;function p(t,e){f?(e.delete(t),t(0)):(e.add(t),m())}function m(){h<0&&(h=0,"demand"!==r.frameLoop&&d(g))}function g(){~h&&(d(g),r.batchedUpdates(v))}function v(){let t=h;h=r.now();let e=l(h);e&&(b(c.splice(0,e),(t=>t.handler())),_.count-=e),o.flush(),i.flush(t?Math.min(64,h-t):16.667),a.flush(),s.flush(),u.flush()}function y(){let t=new Set,e=t;return{add(n){_.count+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(_.count-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,_.count-=e.size,b(e,(e=>e(n)&&t.add(e))),_.count+=t.size,e=t)}}}function b(t,e){t.forEach((t=>{try{e(t)}catch(n){r.catch(n)}}))}const _={count:0,clear(){h=-1,c=[],o=y(),i=y(),a=y(),s=y(),u=y(),_.count=0}}},1472:function(t,e,n){n.d(e,{useSpring:function(){return i.q_},a:function(){return S}});var i=n(1577),r=n(3935),s=n(5137),o=n(4370);function a(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}const u=["style","children","scrollTop","scrollLeft"],c=/^--/;function l(t,e){return null==e||"boolean"===typeof e||""===e?"":"number"!==typeof e||0===e||c.test(t)||h.hasOwnProperty(t)&&h[t]?(""+e).trim():e+"px"}const d={};let h={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const f=["Webkit","Ms","Moz","O"];h=Object.keys(h).reduce(((t,e)=>(f.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),h);const p=["x","y","z"],m=/^(matrix|translate|scale|rotate|skew)/,g=/^(translate)/,v=/^(rotate|skew)/,y=(t,e)=>s.is.num(t)&&0!==t?t+e:t,b=(t,e)=>s.is.arr(t)?t.every((t=>b(t,e))):s.is.num(t)?t===e:parseFloat(t)===e;class _ extends o.rS{constructor(t){let{x:e,y:n,z:i}=t,r=a(t,p);const o=[],u=[];(e||n||i)&&(o.push([e||0,n||0,i||0]),u.push((t=>[`translate3d(${t.map((t=>y(t,"px"))).join(",")})`,b(t,0)]))),(0,s.rU)(r,((t,e)=>{if("transform"===e)o.push([t||""]),u.push((t=>[t,""===t]));else if(m.test(e)){if(delete r[e],s.is.und(t))return;const n=g.test(e)?"px":v.test(e)?"deg":"";o.push((0,s.qo)(t)),u.push("rotate3d"===e?([t,e,i,r])=>[`rotate3d(${t},${e},${i},${y(r,n)})`,b(r,0)]:t=>[`${e}(${t.map((t=>y(t,n))).join(",")})`,b(t,e.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new w(o,u)),super(r)}}class w extends s.B0{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return(0,s.S6)(this.inputs,((n,i)=>{const r=(0,s.je)(n[0]),[o,a]=this.transforms[i](s.is.arr(r)?r:n.map(s.je));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.UI)(t,this)))))}observerRemoved(t){0==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.iL)(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),(0,s.k0)(this,t)}}const k=["scrollTop","scrollLeft"];i.OH.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:s.qS,colors:s.O9});const S=(0,o.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,i=e,{style:r,children:s,scrollTop:o,scrollLeft:h}=i,f=a(i,u),p=Object.values(f),m=Object.keys(f).map((e=>n||t.hasAttribute(e)?e:d[e]||(d[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==s&&(t.textContent=s);for(let a in r)if(r.hasOwnProperty(a)){const e=l(a,r[a]);c.test(a)?t.style.setProperty(a,e):t.style[a]=e}m.forEach(((e,n)=>{t.setAttribute(e,p[n])})),void 0!==o&&(t.scrollTop=o),void 0!==h&&(t.scrollLeft=h)},createAnimatedStyle:t=>new _(t),getComponentProps:t=>a(t,k)}).animated},4370:function(t,e,n){n.d(e,{rS:function(){return f},eC:function(){return d},iG:function(){return l},Ld:function(){return w},ys:function(){return o},sb:function(){return g},He:function(){return u},f3:function(){return a}});var i=n(5137),r=n(7294);const s=Symbol.for("Animated:node"),o=t=>t&&t[s],a=(t,e)=>(0,i.dE)(t,s,e),u=t=>t&&t[s]&&t[s].getPayload();class c{constructor(){this.payload=void 0,a(this,this)}getPayload(){return this.payload||[]}}class l extends c{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,i.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new l(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return i.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,i.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class d extends l{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=(0,i.mD)({output:[t,t]})}static create(t){return new d(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(i.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=(0,i.mD)({output:[this.getValue(),t]})),this._value=0,super.reset()}}const h={dependencies:null};class f extends c{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return(0,i.rU)(this.source,((n,r)=>{var o;(o=n)&&o[s]===o?e[r]=n.getValue(t):(0,i.j$)(n)?e[r]=(0,i.je)(n):t||(e[r]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,i.S6)(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return(0,i.rU)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){h.dependencies&&(0,i.j$)(t)&&h.dependencies.add(t);const e=u(t);e&&(0,i.S6)(e,(t=>this.add(t)))}}class p extends f{constructor(t){super(t)}static create(t){return new p(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(m)),!0)}}function m(t){return((0,i.Df)(t)?d:l).create(t)}function g(t){const e=o(t);return e?e.constructor:i.is.arr(t)?p:(0,i.Df)(t)?d:l}function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}const y=(t,e)=>{const n=!i.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,r.forwardRef)(((s,o)=>{const a=(0,r.useRef)(null),u=n&&(0,r.useCallback)((t=>{a.current=function(t,e){t&&(i.is.fun(t)?t(e):t.current=e);return e}(o,t)}),[o]),[c,l]=function(t,e){const n=new Set;h.dependencies=n,t.style&&(t=v({},t,{style:e.createAnimatedStyle(t.style)}));return t=new f(t),h.dependencies=null,[t,n]}(s,e),d=(0,i.NW)(),p=()=>{const t=a.current;if(n&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&d()},m=new b(p,l),g=(0,r.useRef)();(0,i.bt)((()=>{const t=g.current;g.current=m,(0,i.S6)(l,(t=>(0,i.UI)(t,m))),t&&((0,i.S6)(t.deps,(e=>(0,i.iL)(e,t))),i.Wn.cancel(t.update))})),(0,r.useEffect)(p,[]),(0,i.tf)((()=>()=>{const t=g.current;(0,i.S6)(t.deps,(e=>(0,i.iL)(e,t)))}));const y=e.getComponentProps(c.getValue());return r.createElement(t,v({},y,{ref:u}))}))};class b{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&i.Wn.write(this.update)}}const _=Symbol.for("AnimatedComponent"),w=(t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new f(t)),getComponentProps:r=(t=>t)}={})=>{const s={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=t=>{const e=k(t)||"Anonymous";return(t=i.is.str(t)?o[t]||(o[t]=y(t,s)):t[_]||(t[_]=y(t,s))).displayName=`Animated(${e})`,t};return(0,i.rU)(t,((e,n)=>{i.is.arr(t)&&(n=k(e)),o[n]=o(e)})),{animated:o}},k=t=>i.is.str(t)?t:t&&i.is.str(t.displayName)?t.displayName:i.is.fun(t)&&t.name||null},1577:function(t,e,n){n.d(e,{OH:function(){return i.OH},q_:function(){return vt}});var i=n(5137),r=n(7294),s=n(4370);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function a(t,...e){return i.is.fun(t)?t(...e):t}const u=(t,e)=>!0===t||!!(e&&t&&(i.is.fun(t)?t(e):(0,i.qo)(t).includes(e))),c=(t,e)=>i.is.obj(t)?e&&t[e]:t,l=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,d=t=>
1t,h=(t,e=d)=>{let n=f;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const r={};for(const s of n){const n=e(t[s],s);i.is.und(n)||(r[s]=n)}return r},f=["config","onProps","onStart","onChange","onPause","onResume","onRest"],p={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m(t){const e=function(t){const e={};let n=0;if((0,i.rU)(t,((t,i)=>{p[i]||(e[i]=t,n++)})),n)return e}(t);if(e){const n={to:e};return(0,i.rU)(t,((t,i)=>i in e||(n[i]=t))),n}return o({},t)}function g(t){return t=(0,i.je)(t),i.is.arr(t)?t.map(g):(0,i.Df)(t)?i.OH.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function v(t){for(const e in t)return!0;return!1}function y(t){return i.is.fun(t)||i.is.arr(t)&&i.is.obj(t[0])}function b(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function _(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const w=o({},{tension:170,friction:26},{mass:1,damping:1,easing:t=>t,clamp:!1});class k{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,w)}}function S(t,e){if(i.is.und(e.decay)){const n=!i.is.und(e.tension)||!i.is.und(e.friction);!n&&i.is.und(e.frequency)&&i.is.und(e.damping)&&i.is.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const x=[];class O{constructor(){this.changed=!1,this.values=x,this.toValues=null,this.fromValues=x,this.to=void 0,this.from=void 0,this.config=new k,this.immediate=!1}}function P(t,{key:e,props:n,defaultProps:r,state:s,actions:c}){return new Promise(((l,d)=>{var h;let f,p,m=u(null!=(h=n.cancel)?h:null==r?void 0:r.cancel,e);if(m)y();else{i.is.und(n.pause)||(s.paused=u(n.pause,e));let t=null==r?void 0:r.pause;!0!==t&&(t=s.paused||u(t,e)),f=a(n.delay||0,e),t?(s.resumeQueue.add(v),c.pause()):(c.resume(),v())}function g(){s.resumeQueue.add(v),s.timeouts.delete(p),p.cancel(),f=p.time-i.Wn.now()}function v(){f>0?(p=i.Wn.setTimeout(y,f),s.pauseQueue.add(g),s.timeouts.add(p)):y()}function y(){s.pauseQueue.delete(g),s.timeouts.delete(p),t<=(s.cancelId||0)&&(m=!0);try{c.start(o({},n,{callId:t,cancel:m}),l)}catch(e){d(e)}}}))}const j=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?C(t.get()):e.every((t=>t.noop))?A(t.get()):E(t.get(),e.every((t=>t.finished))),A=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),E=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),C=t=>({value:t,cancelled:!0,finished:!1});function I(t,e,n,r){const{callId:s,parentId:a,onRest:u}=e,{asyncTo:c,promise:l}=n;return a||t!==c||e.reset?n.promise=(async()=>{n.asyncId=s,n.asyncTo=t;const d=h(e,((t,e)=>"onRest"===e?void 0:t));let f,p;const m=new Promise(((t,e)=>(f=t,p=e))),g=t=>{const e=s<=(n.cancelId||0)&&C(r)||s!==n.asyncId&&E(r,!1);if(e)throw t.result=e,p(t),t},v=(t,e)=>{const a=new L,u=new M;return(async()=>{if(i.OH.skipAnimation)throw T(n),u.result=E(r,!1),p(u),u;g(a);const c=i.is.obj(t)?o({},t):o({},e,{to:t});c.parentId=s,(0,i.rU)(d,((t,e)=>{i.is.und(c[e])&&(c[e]=t)}));const l=await r.start(c);return g(a),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let y;if(i.OH.skipAnimation)return T(n),E(r,!1);try{let e;e=i.is.arr(t)?(async t=>{for(const e of t)await v(e)})(t):Promise.resolve(t(v,r.stop.bind(r))),await Promise.all([e.then(f),m]),y=E(r.get(),!0,!1)}catch(b){if(b instanceof L)y=b.result;else{if(!(b instanceof M))throw b;y=b.result}}finally{s==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?l:void 0)}return i.is.fun(u)&&i.Wn.batchedUpdates((()=>{u(y,r,r.item)})),y})():l}function T(t,e){(0,i.yl)(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}
1class L extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class M extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const q=t=>t instanceof z;let R=1;class z extends i.B0{constructor(...t){super(...t),this.id=R++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=(0,s.ys)(this);return t&&t.getValue()}to(...t){return i.OH.to(this,t)}interpolate(...t){return(0,i.LW)(),i.OH.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){(0,i.k0)(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||i.fT.sort(this),(0,i.k0)(this,{type:"priority",parent:this,priority:t})}}const V=Symbol.for("SpringPhase"),D=t=>(1&t[V])>0,N=t=>(2&t[V])>0,U=t=>(4&t[V])>0,F=(t,e)=>e?t[V]|=3:t[V]&=-3,$=(t,e)=>e?t[V]|=4:t[V]&=-5;class W extends z{constructor(t,e){if(super(),this.key=void 0,this.animation=new O,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!i.is.und(t)||!i.is.und(e)){const n=i.is.obj(t)?o({},t):o({},e,{from:t});i.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(N(this)||this._state.asyncTo)||U(this)}get goal(){return(0,i.je)(this.animation.to)}get velocity(){const t=(0,s.ys)(this);return t instanceof s.iG?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return D(this)}get isAnimating(){return N(this)}get isPaused(){return U(this)}advance(t){let e=!0,n=!1;const r=this.animation;let{config:o,toValues:a}=r;const u=(0,s.He)(r.to);!u&&(0,i.j$)(r.to)&&(a=(0,i.qo)((0,i.je)(r.to))),r.values.forEach(((c,l)=>{if(c.done)return;const d=c.constructor==s.eC?1:u?u[l].lastPosition:a[l];let h=r.immediate,f=d;if(!h){if(f=c.lastPosition,o.tension<=0)return void(c.done=!0);let e=c.elapsedTime+=t;const n=r.fromValues[l],s=null!=c.v0?c.v0:c.v0=i.is.arr(o.velocity)?o.velocity[l]:o.velocity;let a;if(i.is.und(o.duration))if(o.decay){const t=!0===o.decay?.998:o.decay,i=Math.exp(-(1-t)*e);f=n+s/(1-t)*(1-i),h=Math.abs(c.lastPosition-f)<.1,a=s*i}else{a=null==c.lastVelocity?s:c.lastVelocity;const e=o.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),r=o.restVelocity||e/10,u=o.clamp?0:o.bounce,l=!i.is.und(u),p=n==d?c.v0>0:n<d;let m,g=!1;const v=1,y=Math.ceil(t/v);for(let t=0;t<y&&(m=Math.abs(a)>r,m||(h=Math.abs(d-f)<=e,!h));++t){l&&(g=f==d||f>d==p,g&&(a=-a*u,f=d));a+=(1e-6*-o.tension*(f-d)+.001*-o.friction*a)/o.mass*v,f+=a*v}}else{let i=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,e=c.elapsedTime+=t)),i=(o.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,c.durationProgress=i),f=n+o.easing(i)*(d-n),a=(f-c.lastPosition)/t,h=1==i}c.lastVelocity=a,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),h=!0)}u&&!u[l].done&&(h=!1),h?c.done=!0:e=!1,c.setValue(f,o.round)&&(n=!0)}));const c=(0,s.ys)(this),l=c.getValue();if(e){const t=(0,i.je)(r.to);l===t&&!n||o.decay?n&&o.decay&&this._onChange(l):(c.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return i.Wn.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(N(this)){const{to:t,config:e}=this.animation;i.Wn.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return i.is.und(t)?(n=this.queue||[],this.queue=[]):n=[i.is.obj(t)?t:o({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>j(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),T(this._state,t&&this._lastCallId),i.Wn.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=i.is.obj(n)?n[e]:n,(null==n||y(n))&&(n=void 0),r=i.is.obj(r)?r[e]:r,null==r&&(r=void 0);const o={to:n,from:r};return D(this)||(t.reverse&&([n,r]=[r,n]),r=(0,i.je)(r),i.is.und(r)?(0,s.ys)(this)||this._set(n):this._set(r)),o}_update(t,e){let n=o({},t);const{key:r,defaultProps:s}=this;n.default&&Object.assign(s,h(n,((t,e)=>/^on/.test(e)?c(t,r):t))),Z(this,n,"onProps"),Y(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did 
1you forget to pass your component to `animated(...)` before animating its props?");const u=this._state;return P(++this._lastCallId,{key:r,props:n,defaultProps:s,state:u,actions:{pause:()=>{U(this)||($(this,!0),(0,i.bl)(u.pauseQueue),Y(this,"onPause",E(this,H(this,this.animation.to)),this))},resume:()=>{U(this)&&($(this,!1),N(this)&&this._resume(),(0,i.bl)(u.resumeQueue),Y(this,"onResume",E(this,H(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=B(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(C(this));const r=!i.is.und(t.to),c=!i.is.und(t.from);if(r||c){if(!(e.callId>this._lastToId))return n(C(this));this._lastToId=e.callId}const{key:l,defaultProps:d,animation:h}=this,{to:f,from:p}=h;let{to:m=f,from:v=p}=t;!c||r||e.default&&!i.is.und(m)||(m=v),e.reverse&&([m,v]=[v,m]);const b=!(0,i.Xy)(v,p);b&&(h.from=v),v=(0,i.je)(v);const _=!(0,i.Xy)(m,f);_&&this._focus(m);const k=y(e.to),{config:x}=h,{decay:O,velocity:P}=x;(r||c)&&(x.velocity=0),e.config&&!k&&function(t,e,n){n&&(S(n=o({},n),e),e=o({},n,e)),S(t,e),Object.assign(t,e);for(const i in w)null==t[i]&&(t[i]=w[i]);let{mass:r,frequency:s,damping:a}=t;i.is.und(s)||(s<.01&&(s=.01),a<0&&(a=0),t.tension=Math.pow(2*Math.PI/s,2)*r,t.friction=4*Math.PI*a*r/s)}(x,a(e.config,l),e.config!==d.config?a(d.config,l):void 0);let j=(0,s.ys)(this);if(!j||i.is.und(m))return n(E(this,!0));const T=i.is.und(e.reset)?c&&!e.default:!i.is.und(v)&&u(e.reset,l),L=T?v:this.get(),M=g(m),q=i.is.num(M)||i.is.arr(M)||(0,i.Df)(M),R=!k&&(!q||u(d.immediate||e.immediate,l));if(_){const t=(0,s.sb)(m);if(t!==j.constructor){if(!R)throw Error(`Cannot animate between ${j.constructor.name} and ${t.name}, as the "to" prop suggests`);j=this._set(M)}}const z=j.constructor;let V=(0,i.j$)(m),U=!1;if(!V){const t=T||!D(this)&&b;(_||t)&&(U=(0,i.Xy)(g(L),M),V=!U),((0,i.Xy)(h.immediate,R)||R)&&(0,i.Xy)(x.decay,O)&&(0,i.Xy)(x.velocity,P)||(V=!0)}if(U&&N(this)&&(h.changed&&!T?V=!0:V||this._stop(f)),!k&&((V||(0,i.j$)(f))&&(h.values=j.getPayload(),h.toValues=(0,i.j$)(m)?null:z==s.eC?[1]:(0,i.qo)(M)),h.immediate!=R&&(h.immediate=R,R||T||this._set(f)),V)){const{onRest:t}=h;(0,i.S6)(X,(t=>Z(this,e,t)));const r=E(this,H(this,f));(0,i.bl)(this._pendingCalls,r),this._pendingCalls.add(n),h.changed&&i.Wn.batchedUpdates((()=>{h.changed=!T,null==t||t(r,this),T?a(d.onRest,r):null==h.onStart||h.onStart(r,this)}))}T&&this._set(L),k?n(I(e.to,e,this._state,this)):V?this._start():N(this)&&!_?this._pendingCalls.add(n):n(A(L))}_focus(t){const e=this.animation;t!==e.to&&((0,i.Ll)(this)&&this._detach(),e.to=t,(0,i.Ll)(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;(0,i.j$)(e)&&((0,i.UI)(e,this),q(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;(0,i.j$)(t)&&(0,i.iL)(t,this)}_set(t,e=!0){const n=(0,i.je)(t);if(!i.is.und(n)){const t=(0,s.ys)(this);if(!t||!(0,i.Xy)(n,t.getValue())){const r=(0,s.sb)(n);t&&t.constructor==r?t.setValue(n):(0,s.f3)(this,r.create(n)),t&&i.Wn.batchedUpdates((()=>{this._onChange(n,e)}))}}return(0,s.ys)(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,Y(this,"onStart",E(this,H(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),a(this.animation.onChange,t,this)),a(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;(0,s.ys)(this).reset((0,i.je)(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),N(this)||(F(this,!0),U(this)||this._resume())}_resume(){i.OH.skipAnimation?this.finish():i.fT.start(this)}_stop(t,e){if(N(this)){F(this,!1);const n=this.animation;(0,i.S6)(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,i.k0)(this,{type:"idle",parent:this});const r=e?C(this.get()):E(this.get(),H(this,null!=t?t:n.to));(0,i.bl)(this._pendingCalls,r),n.changed&&(n.changed=!1,Y(this,"onRest",r,this))}}}function H(t,e){const n=g(e),r=g(t.get());return(0,i.Xy)(r,n)}function B(t,e=t.loop,n=t.to){let i=a(e);if(i){const r=!0!==i&&m(i),s=(r||t).reverse,a=!r||r.reset;return K(o({},t,{loop:e,default:!1,pause:void 0,to:!s||y(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function K(t){const{to:e,from:n}=t=m(t),r=new Set;return i.is.obj(e)&&G(e,r),i.is.obj(n)&&G(n,r),t.keys=r.size?Array.from(r):null,t}function Q(t){const e=K(t);return i.is.und(e.default)&&(e.default=h(e)),e}function G(t,e){(0,i.rU)(t,((t,n)=>null!=t&&e.add(n)))}const X=["onStart","onRest","onChange","onPause","onResume"];function Z(t,e,n){t.animation[n]=e[n]!==l(e,n)?c(e[n],t.key):void 0}function Y(t,e,...n){var i,r,s,o;null==(i=(r=t.animation)[e])||i.call(r,...n),null==(s=(o=t.defaultProps)[e])||s.call(o,...n)}const J=["onStart","onChange","onRest"];let tt=1;class et{constructor(t,e){this.id=tt++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(o({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];i.is.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(K(t)),this}start(t){let{queue:e}=this;return t?e=(0,i.qo)(t).map(K):this.queue=[],this._flush?this._flush(this,e):(ut(this,e),nt(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;(0,i.S6)((0,i.qo)(e),(e=>n[e].stop(!!t)))}else T(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(i.is.und(t))this.start({pause:!0});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].pause()))}return this}resume(t){if(i.is.und(t))this.start({pause:!1});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].resume()))}return this}each(t){(0,i.rU)(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,(0,i.yl)(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!r&&this._started,a=s||o&&n.size?this.get():null;s&&e.size&&(0,i.yl)(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,(0,i.yl)(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}i.Wn.onFrame(this._onFrame)}}function nt(t,e){return Promise.all(e.map((e=>it(t,e)))).then((e=>j(t,e)))}async function it(t,e,n){const{keys:r,to:s,from:o,loop:a,onRest:u,onResolve:c}=e,d=i.is.obj(e.default)&&e.default;a&&(e.loop=!1),!1===s&&(e.to=null),!1===o&&(e.from=null);const h=i.is.arr(s)||i.is.fun(s)?s:void 0;h?(e.to=void 0,e.onRest=void 0,d&&(d.onRest=void 0)):(0,i.S6)(J,(n=>{const r=e[n];if(i.is.fun(r)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(r);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:e||!1})},d&&(d[n]=e[n])}}));const f=t._state;e.pause===!f.paused?(f.paused=e.pause,(0,i.bl)(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const p=(r||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),m=!0===e.cancel||!0===l(e,"cancel");(h||m&&f.asyncId)&&p.push(P(++t._lastAsyncId,{props:e,state:f,actions:{pause:i.ZT,resume:i.ZT,start(e,n){m?(T(f,t._lastAsyncId),n(C(t))):(e.onRest=u,n(I(h,e,f,t)))}}})),f.paused&&await new Promise((t=>{f.resumeQueue.add(t)}));const g=j(t,await Promise.all(p));if(a&&g.finished&&(!n||!g.noop)){const n=B(e,a,s);if(n)return ut(t,[n]),it(t,n,!0)}return c&&i.Wn.batchedUpdates((()=>c(g,t,t.item))),g}function rt(t,e){const n=o({},t.springs);return e&&(0,i.S6)((0,i.qo)(e),(t=>{i.is.und(t.keys)&&(t=K(t)),i.is.obj(t.to)||(t=o({},t,{to:void 0})),at(n,t,(t=>ot(t)))})),st(t,n),n}function st(t,e){(0,i.rU)(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,(0,i.UI)(e,t))}))}function ot(t,e){const n=new W;return n.key=t,e&&(0,i.UI)(n,e),n}function at(t,e,n){e.keys&&(0,i.S6)(e.keys,(i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)}))}function ut(t,e){(0,i.S6)(e,(e=>{at(t.springs,e,(e=>ot(e,t)))}))}function ct(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}const lt=["children"],dt=t=>{let{children:e}
1=t,n=ct(t,lt);const s=(0,r.useContext)(ht),o=n.pause||!!s.pause,a=n.immediate||!!s.immediate;n=(0,i.Pr)((()=>({pause:o,immediate:a})),[o,a]);const{Provider:u}=ht;return r.createElement(u,{value:n},e)},ht=(ft=dt,pt={},Object.assign(ft,r.createContext(pt)),ft.Provider._context=ft,ft.Consumer._context=ft,ft);var ft,pt;dt.Provider=ht.Provider,dt.Consumer=ht.Consumer;const mt=()=>{const t=[],e=function(e){(0,i.ZR)();const r=[];return(0,i.S6)(t,((t,s)=>{if(i.is.und(e))r.push(t.start());else{const i=n(e,t,s);i&&r.push(t.start(i))}})),r};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return(0,i.S6)(t,(t=>t.pause(...arguments))),this},e.resume=function(){return(0,i.S6)(t,(t=>t.resume(...arguments))),this},e.set=function(e){(0,i.S6)(t,(t=>t.set(e)))},e.start=function(e){const n=[];return(0,i.S6)(t,((t,r)=>{if(i.is.und(e))n.push(t.start());else{const i=this._getProps(e,t,r);i&&n.push(t.start(i))}})),n},e.stop=function(){return(0,i.S6)(t,(t=>t.stop(...arguments))),this},e.update=function(e){return(0,i.S6)(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return i.is.fun(t)?t(n,e):t};return e._getProps=n,e};function gt(t,e,n){const s=i.is.fun(e)&&e;s&&!n&&(n=[]);const a=(0,r.useMemo)((()=>s||3==arguments.length?mt():void 0),[]),u=(0,r.useRef)(0),c=(0,i.NW)(),l=(0,r.useMemo)((()=>({ctrls:[],queue:[],flush(t,e){const n=rt(t,e);return u.current>0&&!l.queue.length&&!Object.keys(n).some((e=>!t.springs[e]))?nt(t,e):new Promise((i=>{st(t,n),l.queue.push((()=>{i(nt(t,e))})),c()}))}})),[]),d=(0,r.useRef)([...l.ctrls]),h=[],f=(0,i.zH)(t)||0;function p(t,n){for(let i=t;i<n;i++){const t=d.current[i]||(d.current[i]=new et(null,l.flush)),n=s?s(i,t):e[i];n&&(h[i]=Q(n))}}(0,r.useMemo)((()=>{(0,i.S6)(d.current.slice(t,f),(t=>{b(t,a),t.stop(!0)})),d.current.length=t,p(f,t)}),[t]),(0,r.useMemo)((()=>{p(0,Math.min(f,t))}),n);const m=d.current.map(((t,e)=>rt(t,h[e]))),g=(0,r.useContext)(dt),y=(0,i.zH)(g),w=g!==y&&v(g);(0,i.bt)((()=>{u.current++,l.ctrls=d.current;const{queue:t}=l;t.length&&(l.queue=[],(0,i.S6)(t,(t=>t()))),(0,i.S6)(d.current,((t,e)=>{null==a||a.add(t),w&&t.start({default:g});const n=h[e];n&&(_(t,n.ref),t.ref?t.queue.push(n):t.start(n))}))})),(0,i.tf)((()=>()=>{(0,i.S6)(l.ctrls,(t=>t.stop(!0)))}));const k=m.map((t=>o({},t)));return a?[k,a]:k}function vt(t,e){const n=i.is.fun(t),[[r],s]=gt(1,n?t:[t],n?e||[]:e);return n||2==arguments.length?[r,s]:r}let yt;!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(yt||(yt={}));class bt extends z{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=(0,i.mD)(...e);const n=this._get(),r=(0,s.sb)(n);(0,s.f3)(this,r.create(n))}advance(t){const e=this._get(),n=this.get();(0,i.Xy)(e,n)||((0,s.ys)(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&wt(this._active)&&kt(this)}_get(){const t=i.is.arr(this.source)?this.source.map(i.je):(0,i.qo)((0,i.je)(this.source));return this.calc(...t)}_start(){this.idle&&!wt(this._active)&&(this.idle=!1,(0,i.S6)((0,s.He)(this),(t=>{t.done=!1})),i.OH.skipAnimation?(i.Wn.batchedUpdates((()=>this.advance())),kt(this)):i.fT.start(this))}_attach(){let t=1;(0,i.S6)((0,i.qo)(this.source),(e=>{(0,i.j$)(e)&&(0,i.UI)(e,this),q(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){(0,i.S6)((0,i.qo)(this.source),(t=>{(0,i.j$)(t)&&(0,i.iL)(t,this)})),this._active.clear(),kt(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=(0,i.qo)(this.source).reduce(((t,e)=>Math.max(t,(q(e)?e.priority:0)+1)),0))}}function _t(t){return!1!==t.idle}function wt(t){return!t.size||Array.from(t).every(_t)}function kt(t){t.idle||(t.idle=!0,(0,i.S6)((0,s.He)(t),(t=>{t.done=!0})),(0,i.k0)(t,{type:"idle",parent:t}))}i.OH.assign({createStringInterpolator:i.qS,to:(t,e)=>new bt(t,e)});i.fT.advance},5137:function(t,e,n){n.d(e,{Wn:function(){return i.W},B0:function(){return nt},OH:function(){return b},UI:function(){return rt},k0:function(){return et},O9:function(){return E},mD:function(){return Q},qS:function(){return ft},dE:function(){return o},ZR:function(){return bt},LW:function(){return vt},S6:function(){return c},rU:function(){return l},yl:function(){return h},bl:function(){return f},fT:function(){return x},Ll:function(){return tt},je:function(){return J},j$:function(){return Y},is:function(){return a},Df:function(){return _t},Xy:function(){return u},ZT:function(){return s},iL:function(){return st},qo:function(){return d},NW:function(){return St},bt:function(){return jt},Pr:function(){return Ot},tf:function(){return wt},zH:function(){return Pt}});var i=n(1451),r=n(7294);function s(){}const o=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),a={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"===typeof t,str:t=>"string"===typeof t,num:t=>"number"===typeof t,und:t=>void 0===t};function u(t,e){if(a.arr(t)){if(!a.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const c=(t,e)=>t.forEach(e);function l(t,e,n){if(a.arr(t))for(let i=0;i<t.length;i++)e.call(n,t[i],`${i}`);else for(const i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i)}const d=t=>a.und(t)?[]:a.arr(t)?t:[t];function h(t,e){if(t.size){const n=Array.from(t);t.clear(),c(n,e)}}const f=(t,...e)=>h(t,(t=>t(...e)));let p,m,g=null,v=!1,y=s;var b=Object.freeze({__proto__:null,get createStringInterpolator(){return p},get to(){return m},get colors(){return g},get skipAnimation(){return v},get willAdvance(){return y},assign:t=>{t.to&&(m=t.to),t.now&&(i.W.now=t.now),void 0!==t.colors&&(g=t.colors),null!=t.skipAnimation&&(v=t.skipAnimation),t.createStringInterpolator&&(p=t.createStringInterpolator),t.requestAnimationFrame&&i.W.use(t.requestAnimationFrame),t.batchedUpdates&&(i.W.batchedUpdates=t.batchedUpdates),t.willAdvance&&(y=t.willAdvance),t.frameLoop&&(i.W.frameLoop=t.frameLoop)}});const _=new Set;let w=[],k=[],S=0;const x={get idle(){return!_.size&&!w.length},start(t){S>t.priority?(_.add(t),i.W.onStart(O)):(P(t),(0,i.W)(A))},advance:A,sort(t){if(S)i.W.onFrame((()=>x.sort(t)));else{const e=w.indexOf(t);~e&&(w.splice(e,1),j(t))}},clear(){w=[],_.clear()}};function O(){_.forEach(P),_.clear(),(0,i.W)(A)}function P(t){w.includes(t)||j(t)}function j(t){w.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(w,(e=>e.priority>t.priority)),0,t)}function A(t){const e=k;for(let n=0;n<w.length;n++){const i=w[n];S=i.priority,i.idle||(y(i),i.advance(t),i.idle||e.push(i))}return S=0,k=w,k.length=0,w=e,w.length>0}const E={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,dar
1kgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},C="[-+]?\\d*\\.?\\d+",I=C+"%";function T(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const L=new RegExp("rgb"+T(C,C,C)),M=new RegExp("rgba"+T(C,C,C,C)),q=new RegExp("hsl"+T(C,I,I)),R=new RegExp("hsla"+T(C,I,I,C)),z=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,V=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,D=/^#([0-9a-fA-F]{6})$/,N=/^#([0-9a-fA-F]{8})$/;function U(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function F(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=U(r,i,t+1/3),o=U(r,i,t),a=U(r,i,t-1/3);return Math.round(255*s)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function $(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function W(t){return(parseFloat(t)%360+360)%360/360}function H(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function B(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function K(t){let e=function(t){let e;return"number"===typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=D.exec(t))?parseInt(e[1]+"ff",16)>>>0:g&&void 0!==g[t]?g[t]:(e=L.exec(t))?($(e[1])<<24|$(e[2])<<16|$(e[3])<<8|255)>>>0:(e=M.exec(t))?($(e[1])<<24|$(e[2])<<16|$(e[3])<<8|H(e[4]))>>>0:(e=z.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=N.exec(t))?parseInt(e[1],16)>>>0:(e=V.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=q.exec(t))?(255|F(W(e[1]),B(e[2]),B(e[3])))>>>0:(e=R.exec(t))?(F(W(e[1]),B(e[2]),B(e[3]))|H(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const Q=(t,e,n)=>{if(a.fun(t))return t;if(a.arr(t))return Q({range:t,output:e,extrapolate:n});if(a.str(t.output[0]))return p(t);const i=t,r=i.output,s=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",u=i.extrapolateRight||i.extrapolate||"extend",c=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,s);return function(t,e,n,i,r,s,o,a,u){let c=u?u(t):t;if(c<e){if("identity"===o)return c;"clamp"===o&&(c=e)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(i===r)return i;if(e===n)return t<=e?i:r;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=s(c),i===-1/0?c=-c:r===1/0?c+=i:c=c*(r-i)+i;return c}(t,s[e],s[e+1],r[e],r[e+1],c,o,u,i.map)}};function G(){return(G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}const X=Symbol.for("FluidValue.get"),Z=Symbol.for("FluidValue.observers"),Y=t=>Boolean(t&&t[X]),J=t=>t&&t[X]?t[X]():t,tt=t=>t[Z]||null;function et(t,e){let n=t[Z];
1n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class nt{constructor(t){if(this[X]=void 0,this[Z]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");it(this,t)}}const it=(t,e)=>ot(t,X,e);function rt(t,e){if(t[X]){let n=t[Z];n||ot(t,Z,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function st(t,e){let n=t[Z];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[Z]=null,t.observerRemoved&&t.observerRemoved(i,e)}}const ot=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),at=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ut=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ct=new RegExp(`(${at.source})(%|[a-z]+)`,"i");let lt;const dt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ht=(t,e,n,i,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${r})`,ft=t=>{lt||(lt=g?new RegExp(`(${Object.keys(g).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>J(t).replace(ut,K).replace(lt,K))),n=e.map((t=>t.match(at).map(Number))),i=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>Q(G({},t,{output:e}))));return t=>{var n;const r=!ct.test(e[0])&&(null==(n=e.find((t=>ct.test(t))))?void 0:n.replace(at,""));let s=0;return e[0].replace(at,(()=>`${i[s++](t)}${r||""}`)).replace(dt,ht)}},pt="react-spring: ",mt=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${pt}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},gt=mt(console.warn);function vt(){gt(`${pt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const yt=mt(console.warn);function bt(){yt(`${pt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function _t(t){return a.str(t)&&("#"==t[0]||/\d/.test(t)||t in(g||{}))}const wt=t=>(0,r.useEffect)(t,kt),kt=[];function St(){const t=(0,r.useState)()[1],e=(0,r.useState)(xt)[0];return wt(e.unmount),()=>{e.current&&t({})}}function xt(){const t={current:!0,unmount:()=>()=>{t.current=!1}};return t}function Ot(t,e){const[n]=(0,r.useState)((()=>({inputs:e,result:t()}))),i=(0,r.useRef)(),s=i.current;let o=s;if(o){Boolean(e&&o.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,o.inputs))||(o={inputs:e,result:t()})}else o=n;return(0,r.useEffect)((()=>{i.current=o,s==n&&(n.inputs=n.result=void 0)}),[o]),o.result}function Pt(t){const e=(0,r.useRef)();return(0,r.useEffect)((()=>{e.current=t})),e.current}const jt="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},9849:function(t,e,n){n.d(e,{c0:function(){return W}});const i={toVector:(t,e)=>(void 0===t&&(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=>[t[0]+e[0],t[1]+e[1]],sub:(t,e)=>[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function r(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function s(t,e,n,i=.15){return 0===i?function(t,e,n){return Math.max(e,Math.min(t,n))}(t,e,n):t<e?-r(e-t,n-e,i)+e:t>n?+r(t-n,n-e,i)+n:t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const c={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function l(t){return t?t[0].toUpperCase()+t.slice(1):""}function d(t){return"touches"in t}function h(t){return d(t)?function(t){return"touchend"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function f(t){return function(t){return Array.from(t.touches).filter((e=>{var n,i;return e.target===t.currentTarget||(null===(n=t.currentTarget)||void 0===n||null===(i=n.contains)||void 0===i?void 0:i.call(n,e.target))}))}(t).map((t=>t.identifier))}function p(t){const e=h(t);return d(t)?e.identifier:e.pointerId}function m(t){const e=h(t);return[e.clientX,e.clientY]}function g(t,...e){return"function"===typeof t?t(...e):t}function v(){}function y(...t){return 0===t.length?v:1===t.length?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function b(t,e){return Object.assign({},e,t||{})}class _{constructor(t,e,n){this.ctrl=t,this.args=e,this.key=n,this.state||(this.state={values:[0,0],initial:[0,0]},this.init&&this.init(),this.reset())}
1get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,config:n,ingKey:r,args:s}=this,{transform:o,threshold:a=[0,0]}=n;e[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._delta=[0,0],t._threshold=i.sub(o(a),o([0,0])).map(Math.abs),t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=s,t.axis=void 0,t.memo=void 0,t.elapsedTime=0,t.direction=[0,0],t.distance=[0,0],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,n=this.config;e._active||(this.reset(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.initial=e.values,e.lastOffset=n.from?g(n.from,e):e.offset,e.offset=e.lastOffset),e.startTime=e.timeStamp=t.timeStamp}compute(t){const{state:e,config:n,shared:r}=this;e.args=this.args;let o=0;if(t&&(e.event=t,n.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:s})}return e}(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);i.addTo(e._distance,t)}const[a,u]=n.transform(e._movement),[c,l]=e._threshold;let[d,h]=e._step;if(!1===d&&(d=Math.abs(a)>=c&&Math.sign(a)*c),!1===h&&(h=Math.abs(u)>=l&&Math.sign(u)*l),e.intentional=!1!==d||!1!==h,!e.intentional)return;e._step=[d,h];const f=[0,0];if(f[0]=!1!==d?a-d:0,f[1]=!1!==h?u-h:0,this.intent&&this.intent(f),(e._active&&!e._blocked||e.active)&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=r[this.ingKey]=e._active,t)){e.first&&("bounds"in n&&(e._bounds=g(n.bounds,e)),this.setup&&this.setup()),e.movement=f;const t=e.offset;if(this.computeOffset(),!e.last||o>32){e.delta=i.sub(e.offset,t);const n=e.delta.map(Math.abs);i.addTo(e.distance,n),e.direction=e.delta.map(Math.sign),!e.first&&o>0&&(e.velocity=[n[0]/o,n[1]/o])}}const p=e._active&&n.rubberband||[0,0];e.offset=function(t,[e,n],[i,r]){const[[o,a],[u,c]]=t;return[s(e,o,a,i),s(n,u,c,r)]}(e._bounds,e.offset,p),this.computeMovement()}emit(){const t=this.state,e=this.shared,n=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!n.triggerAllEvents)return;const i=this.handler(u(u(u({},e),t),{},{[this.aliasKey]:t.values}));void 0!==i&&(t.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class w extends _{constructor(...t){super(...t),o(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=i.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=i.sub(this.state.offset,this.state.lastOffset)}intent(t){this.state.axis=this.state.axis||function([t,e]){const n=Math.abs(t)-Math.abs(e);return n>0?"x":n<0?"y":void 0}(t),this.state._blocked=(this.config.lockDirection||!!this.config.axis)&&!this.state.axis||!!this.config.axis&&this.config.axis!==this.state.axis,this.state._blocked||(this.config.axis||this.config.lockDirection)&&function(t,e){switch(e){case"x":t[1]=0;break;case"y":t[0]=0}}(t,this.state.axis)}}const k={enabled:(t=!0)=>t,preventDefault:(t=!1)=>t,triggerAllEvents:(t=!1)=>t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return i.toVector(t)}},from:t=>"function"===typeof t?t:null!=t?i.toVector(t):void 0,transform:(t,e,n)=>t||n.shared.transform};const S=u(u({},k),{},{axis(t,e,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},bounds(t={}){if("function"===typeof t)return e=>S.bounds(t(e));if("current"in t)return()=>t.current;if("function"===typeof HTMLElement&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=t;return[[e,n],[i,r]]}}),x={ArrowRight:(t=1)=>[10*t,0],ArrowLeft:(t=1)=>[-10*t,0],ArrowUp:(t=1)=>[0,-10*t],ArrowDown:(t=1)=>[0,10*t]};const O="undefined"!==typeof window&&window.document&&window.document.createElement;function P(){return O&&"ontouchstart"in window}const j={isBrowser:O,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:P(),touchscreen:P()||O&&window.navigator.maxTouchPoints>1,pointer:O&&"onpointerdown"in window,pointerLock:O&&"exitPointerLock"in window.document},A=u(u({},S),{},{pointerLock(t,e,{pointer:{lock:n=!1,touch:i=!1}={}}){return this.useTouch=j.touch&&i,j.pointerLock&&n},device(t,e){return this.useTouch?"touch":this.pointerLock?"mouse":j.pointer?"pointer":j.touch?"touch":"mouse"},preventScroll(t=!1,e,{preventScrollAxis:n="y"}){return n&&(this.preventScrollAxis=n),!!j.touchscreen&&("number"===typeof t?t:!!t&&250)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&"pointer"===this.device&&n},threshold(t,e,{filterTaps:n=!1,axis:r}){const s=i.toVector(t,n?3:r?1:0);return this.filterTaps=n,s},swipe({velocity:t=.5,distance:e=50,duration:n=250}={}){return{velocity:this.transform(i.toVector(t)),distance:this.transform(i.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}}});u(u({},k),{},{useTouch:(t,e,{pointer:{touch:n=!1}={}})=>j.touch&&n,device(t,e,n){if(n.shared.target&&!j.touch&&j.gesture)return"gesture";if(this.useTouch)return"touch";if(j.touchscreen){if(j.pointer)return"pointer";if(j.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:i={}}){const r=t=>{const e=b(g(n,t),{min:-1/0,max:1/0});return[e.min,e.max]},s=t=>{const e=b(g(i,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!==typeof n&&"function"!==typeof i?[r(),s()]:t=>[r(t),s(t)]},threshold(t,e,n){this.lockDirection="lock"===n.axis;return i.toVector(t,this.lockDirection?[.1,3]:0)}});u(u({},S),{},{mouseOnly:(t=!0)=>t});u(u({},S),{},{mouseOnly:(t=!0)=>t});const E=new Map,C=new Map;const I={key:"drag",engine:class extends w{constructor(...t){super(...t),o(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),n=t.currentTarget.getBoundingClientRect(),i={left:e.left-n.left+t.offset[0],right:e.right-n.right+t.offset[0],top:e.top-n.top+t.offset[1],bottom:e.bottom-n.bottom+t.offset[1]};t._bounds=S.bounds(i)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout((()=>
1{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,n=this.state;null!=t.buttons&&t.buttons!==e.pointerButtons||(this.ctrl.setEventIds(t),e.pointerCapture&&t.target.setPointerCapture(t.pointerId),n._pointerActive||(this.start(t),this.setupPointer(t),n._pointerId=p(t),n._pointerActive=!0,n.values=m(t),n.initial=n.values,e.preventScroll?this.setupScrollPrevention(t):e.delay>0?this.setupDelayTrigger(t):this.startPointerDrag(t)))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,n=this.config;if(!e._pointerActive)return;if(e.type===t.type&&t.timeStamp===e.timeStamp)return;const r=p(t);if(e._pointerId&&r!==e._pointerId)return;const s=m(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=i.sub(s,e.values),e.values=s),i.addTo(e._movement,e._delta),this.compute(t),e._delayed?(this.timeoutStore.remove("dragDelay"),e.active=!1,void this.startPointerDrag(t)):n.preventScroll&&!e._preventScroll?e.axis?e.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(e._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(t)):void 0:void this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(o){0}const e=this.state,n=this.config;if(!e._pointerActive)return;const i=p(t);if(e._pointerId&&i!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[r,s]=e._distance;if(e.tap=r<=3&&s<=3,e.tap&&n.filterTaps)e._force=!0;else{const[t,i]=e.direction,[r,s]=e.velocity,[o,a]=e.movement,[u,c]=n.swipe.velocity,[l,d]=n.swipe.distance,h=n.swipe.duration;e.elapsedTime<h&&(Math.abs(r)>u&&Math.abs(o)>l&&(e.swipe[0]=t),Math.abs(s)>c&&Math.abs(a)>d&&(e.swipe[1]=i))}this.emit()}pointerClick(t){this.state.tap||(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config;let n=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){!function(t){"persist"in t&&"function"===typeof t.persist&&t.persist()}(t),this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","end",this.clean.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","cancel",this.clean.bind(this),{passive:!1}),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScroll,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",this.startPointerDrag.bind(this),this.config.delay,t)}keyDown(t){const e=x[t.key],n=this.state;if(e){const r=t.shiftKey?10:t.altKey?.1:1;n._delta=e(r),this.start(t),n._keyboardActive=!0,i.addTo(n._movement,n._delta),this.compute(t),this.emit()}}keyUp(t){t.key in x&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this))),t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this)),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0})}},resolver:A};var T=n(7294);function L(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}const M=t=>t,q={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=(j.isBrowser?window:void 0))=>
1t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:(t=M)=>t},R=["target","eventOptions","window","enabled","transform"];function z(t={},e){const n={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":n[i]=r.call(n,t[i],i,t);break;case"object":n[i]=z(t[i],r);break;case"boolean":r&&(n[i]=t[i])}return n}class V{constructor(t){o(this,"_listeners",[]),this._ctrl=t}add(t,e,n,i,r){const s=function(t,e=""){const n=c[t];return t+(n&&n[e]||e)}(e,n),o=u(u({},this._ctrl.config.shared.eventOptions),r);t.addEventListener(s,i,o),this._listeners.push((()=>t.removeEventListener(s,i,o)))}clean(){this._listeners.forEach((t=>t())),this._listeners=[]}}class D{constructor(){o(this,"_timeouts",new Map)}add(t,e,n=140,...i){this.remove(t),this._timeouts.set(t,window.setTimeout(e,n,...i))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach((t=>{window.clearTimeout(t)})),this._timeouts.clear()}}class N{constructor(t){o(this,"gestures",new Set),o(this,"_targetEventStore",new V(this)),o(this,"gestureEventStores",{}),o(this,"gestureTimeoutStores",{}),o(this,"handlers",{}),o(this,"config",{}),o(this,"pointerIds",new Set),o(this,"touchIds",new Set),o(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(t,e){e.drag&&U(t,"drag");e.wheel&&U(t,"wheel");e.scroll&&U(t,"scroll");e.move&&U(t,"move");e.pinch&&U(t,"pinch");e.hover&&U(t,"hover")}(this,t)}setEventIds(t){d(t)?this.touchIds=new Set(f(t)):"pointerId"in t&&("pointerup"===t.type?this.pointerIds.delete(t.pointerId):this.pointerIds.add(t.pointerId))}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=function(t,e){const n=t,{target:i,eventOptions:r,window:s,enabled:o,transform:a}=n,c=L(n,R),l={shared:z({target:i,eventOptions:r,window:s,enabled:o,transform:a},q)};if(e){const t=C.get(e);l[e]=z(u({shared:l.shared},c),t)}else for(const d in c){const t=C.get(d);t&&(l[d]=z(u({shared:l.shared},c[d]),t))}return l}(t,e)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,n=e.eventOptions,i={};let r;if(e.target&&(r=e.target(),!r))return;const s=F(i,n,!!r);if(e.enabled){for(const e of this.gestures)if(this.config[e].enabled){new(E.get(e))(this,t,e).bind(s)}for(const e in this.nativeHandlers)s(e,"",(n=>this.nativeHandlers[e](u(u({},this.state.shared),{},{event:n,args:t}))),void 0,!0)}for(const o in i)i[o]=y(...i[o]);if(!r)return i;for(const o in i){let t=o.substr(2).toLowerCase();const e=!!~t.indexOf("capture"),n=!!~t.indexOf("passive");(e||n)&&(t=t.replace(/capture|passive/g,"")),this._targetEventStore.add(r,t,"",i[o],{capture:e,passive:n})}}}function U(t,e){t.gestures.add(e),t.gestureEventStores[e]=new V(t),t.gestureTimeoutStores[e]=new D}const F=(t,e,n)=>(i,r,s,o={},a=!1)=>{var u,d;const h=null!==(u=o.capture)&&void 0!==u?u:e.capture,f=null!==(d=o.passive)&&void 0!==d?d:e.passive;let p=a?i:function(t,e="",n=!1){const i=c[t],r=i&&i[e]||e;return"on"+l(t)+l(r)+(n?"Capture":"")}(i,r,h);n&&f&&(p+="Passive"),t[p]=t[p]||[],t[p].push(s)};function $(t,e={},n,i){const r=T.useMemo((()=>new N(t)),[]);if(r.applyHandlers(t,i),r.applyConfig(e,n),T.useEffect(r.effect.bind(r)),T.useEffect((()=>r.clean.bind(r)),[]),void 0===e.target)return r.bind.bind(r)}function W(t,e={}){var n;return n=I,E.set(n.key,n.engine),C.set(n.key,n.resolver),$({drag:t},e,"drag")}},4461:function(t,e,n){n.d(e,{An:function(){return j},qz:function(){return P},kJ:function(){return b},t9:function(){return S},n4:function(){return I},nB:function(){return y},Zo:function(){return v}});var i=n(7294),r=n(1451);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function o(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}var a={obj:function(t){return t===Object(t)&&!a.arr(t)&&"function"!==typeof t},fun:function(t){return"function"===typeof t},str:function(t){return"string"===typeof t},num:function(t){return"number"===typeof t},und:function(t){return void 0===t},arr:function(t){return Array.isArray(t)},equ:function(t,e){if(typeof t!==typeof e||!!t!==!!e)return!1;if(a.str(t)||a.num(t)||a.obj(t))return t===e;if(a.arr(t)&&t==e)return!0;var n;for(n in t)if(!(n in e))return!1;for(n in e)if(t[n]!==e[n])return!1;return!a.und(n)||t===e},dequ:function(t,e,n){if(void 0===n&&(n=!1),a.equ(t,e))return!0;
1if(a.obj(t)&&a.obj(e)){if(n&&Object.keys(t).length!=Object.keys(e).length)return!1;for(var i in t){if(!e.hasOwnProperty(i))return!1;if(!a.dequ(t[i],e[i]))return!1}return!0}return!1}},u=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},c=function(t,e,n){return void 0===n&&(n=0),Array(t).fill().map((function(){return Array(e).fill(n)}))},l=function(){return 1e-6*Math.random()},d=function(t){var e=(0,i.useRef)(t);return(0,i.useLayoutEffect)((function(){e.current=t}),[t]),e},h=function(t,e){var n=(0,i.useRef)();return(0,i.useLayoutEffect)((function(){var i=n.current;a.dequ(i,e)||(t(e),n.current=e)}),[t,e,n]),null},f=["children"],p=(0,i.createContext)(null),m=function(){function t(){this.params={dim:2},this.adjacency=[],this.uids={},this.subscribers=new Set}var e=t.prototype;return e.frame=function(){r.W.frameLoop="demand",r.W.advance()},e.updateParams=function(t){Object.assign(this.params,t)},e.getNodeById=function(t,e){return void 0===e&&(e=!0),e?this.uids[t]:this.adjacency[t]},e.addNode=function(t){var e={x:0,y:0,z:0,linksTo:[],linksFrom:[],callback:t};return this.adjacency.push(e),this.subscribers.forEach((function(t){var n=t.onAddNode;return n&&n(e)})),e},e.removeNode=function(t){u(this.adjacency,t),!a.und(t.uid)&&delete this.uids[t.uid],t.linksFrom.forEach((function(e){e.node.linksTo=e.node.linksTo.filter((function(e){return e.node!==t}))})),t.linksTo.forEach((function(e){e.node.linksFrom=e.node.linksFrom.filter((function(e){return e.node!==t}))})),this.subscribers.forEach((function(e){var n=e.onRemoveNode;return n&&n(t)}))},e.updateNode=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n=!0),Object.assign(t,e),!a.und(t.uid)&&(this.uids[t.uid]=t),t.fx&&(t.x=t.fx),t.fy&&(t.y=t.fy),t.fz&&(t.z=t.fz),this.notifyNode(t),t.linksTo.forEach((function(e){i.notifyLink(e,t,e.node)})),n&&t.linksFrom.forEach((function(e){i.notifyLink(e,e.node,t)}))},e.notifyNode=function(t){t.callback.current([t.x,t.y,t.z],t)},e.isLinkValid=function(t,e){return!a.und(t)&&!a.und(e)},e.addLinkById=function(t,e,n,i){void 0===i&&(i=!1);var r=this.getNodeById(e,i),s=this.getNodeById(n,i);if(!this.isLinkValid(r,s))throw"You are trying to add a link to unexisting nodes: ["+r+"]->["+s+"]";return this.addLink(t,r,s)},e.addLink=function(t,e,n){var i={node:n,callback:t};e.linksTo.push(i);var r={node:e,callback:t};return n.linksFrom.push(r),this.notifyLink(i,e,n),this.subscribers.forEach((function(t){var e=t.onAddLink;return e&&e(i,r)})),{to:i,from:r}},e.removeLinkById=function(t,e,n,i,r){void 0===r&&(r=!1);var s=this.getNodeById(t,r),o=this.getNodeById(e,r);this.isLinkValid(s,o)&&this.removeLink(s,o,n,i)},e.removeLink=function(t,e,n,i){u(t.linksTo,n),u(e.linksFrom,i),this.subscribers.forEach((function(t){var e=t.onRemoveLink;return e&&e(n,i)}))},e.updateLink=function(t,e,n){Object.assign(t,n)},e.notifyLink=function(t,e,n){t.callback.current([e.x,e.y,e.z],[n.x,n.y,n.z],e,n,t)},e.subscribeChanges=function(t){var e=this;return this.subscribers.add(t),function(){return e.subscribers.delete(t)}},e.log=function(){var t=this;this.adjacency.forEach((function(e){return t.logNode(e)})),console.log("\n")},e.logNode=function(t){var e=[],n=[];t.linksTo.forEach((function(t){e.push(t.node.uid||"Noid")})),t.linksFrom.forEach((function(t){n.push(t.node.uid||"Noid")})),console.log(t.uid+": (to->):["+e+"], (from<-):["+n+"]\n")},t}(),g=function(){var t=(0,i.useContext)(p);if(!t)throw"Hooks must used inside Graph";return t},v=function(t,e){void 0===e&&(e={});var n=g(),r=(0,i.useRef)(),s=d(t);return(0,i.useLayoutEffect)((function(){var t=n.addNode(s);return r.current=t,function(){return n.removeNode(t)}}),[n,s,r]),h((function(t){var e=r.current;e&&n.updateNode(e,t,!0)}),e),{set:function(t){var e=r.current;e&&n.updateNode(e,t,!0)},get:function(){return r.current}}},y=function(t,e,n,r){void 0===r&&(r={});var s=g(),o=(0,i.useRef)(),a=d(t);return(0,i.useLayoutEffect)((function(){var t=s.addLinkById(a,e,n,!0),i=t.to,r=t.from;return o.current={to:i,from:r},function(){return s.removeLinkById(e,n,i,r,!0)}}),[s,a,e,n]),h((function(t){var e=o.current;e&&s.updateLink(e.to,e.from,t)}),r),{set:function(t){var e=o.current;e&&s.updateLink(e.to,e.from,t)},get:function(){return o.current}}},b=function(t){var e=t.children,n=o(t,f),r=(0,i.useState)((function(){return new m}))[0];return h((function(t){return r.updateParams(t)}),n),i.createElement(p.Provider,{value:r},e)},_=["children"],w=(0,i.createContext)(null),k=function(){function t(){this.graph=null,this.subscribedForces={},this.params={onReady:null,autoStart:!0,alpha:1,alphaMin:.001,alphaDecay:.0227,alphaTarget:0,velocityDecay:.6},this.initialized=!1}var e=t.prototype;return e.start=function(t){var e=this;void 0===t&&(t=1),this.params.alpha=t,(0,r.W)((function(){return e.tick()}))},e.stop=function(){this.params.alpha=0},e.initNodeParams=function(t){t.vx=0,t.vy=0,t.vz=0},e.updateParams=function(t){Object.assign(this.params,t),this.initialized||(this.initialized=!0,this.params.autoStart&&this.start(),this.params.onReady&&this.params.onReady(this))},e.subscribeGraph=function(t){var e=this;return this.graph=t,this.graph.adjacency.forEach((function(t){return e.initNodeParams(t)})),t.subscribeChanges({onAddNode:function(t){return e.initNodeParams(t)}})}
1,e.tick=function(t){var e=this;void 0===t&&(t=1);var n=this.params,i=n.alpha,r=n.alphaMin,o=n.alphaTarget,a=n.alphaDecay,u=n.velocityDecay;if(i<r)return!1;for(var c=0;c<t;c++){this.params.alpha+=(o-i)*a;for(var l=0,d=Object.keys(this.subscribedForces);l<d.length;l++){var h=d[l];this.subscribedForces[h].current(this.graph.adjacency,s({},this.params,{dim:this.graph.params.dim}))}this.graph.adjacency.forEach((function(t){t.x+=t.vx*=u,t.y+=t.vy*=u,t.z+=t.vz*=u,e.graph.updateNode(t,{},!1)}))}return!0},e.subscribeForce=function(t,e){var n=this;return this.subscribedForces[t]=e,function(){return delete n.subscribedForces[t]}},t}(),S=function(t){var e=t.children,n=o(t,_),r=g(),s=(0,i.useState)((function(){return new k}))[0];return(0,i.useLayoutEffect)((function(){return s.subscribeGraph(r)}),[s,r]),h((function(t){return s.updateParams(t)}),n),i.createElement(w.Provider,{value:s},e)},x=0,O=function(t){var e=(0,i.useState)((function(){return x++}))[0],n=function(){var t=(0,i.useContext)(w);if(!t)throw"Hooks must used inside LayoutForce";return t}(),r=d(t);(0,i.useLayoutEffect)((function(){return n.subscribeForce(e,r)}),[n,e,r])},P=function(t){var e=t.strength,n=void 0===e?1:e;return O((function(t,e){var i=e.alpha,r=e.dim;t.forEach((function(e){var s=0,o=0,u=0;t.forEach((function(t){if(!a.equ(e,t)){var n=Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)+Math.pow(e.z-t.z,2)*(3===r);n<1e-6&&(n=1e-6),s+=(e.x-t.x)/n,o+=(e.y-t.y)/n,u+=(e.z-t.z)/n}})),e.vx+=s*n*i+l(),e.vy+=o*n*i+l(),3===r&&(e.vz+=u*n*i+l())}))})),null},j=function(t){var e=t.strength,n=void 0===e?1:e,i=t.radius,r=void 0===i?1:i;return O((function(t,e){var i=e.dim;t.forEach((function(e){var s=a.und(e.radius)?r:e.radius;t.forEach((function(t){if(!a.equ(e,t)){var o=a.und(t.radius)?r:t.radius,u=o+s,c=t.x+t.vx-e.x-e.vx,l=t.y+t.vy-e.y-e.vy,d=(t.z+t.vz-e.z-e.vz)*(3===i),h=c*c+l*l+d*d*(3===i);if(h<u*u){h<1e-6&&(h=1e-6);var f=Math.sqrt(h),p=(u-f)/f*n,m=o*o,g=m/(s*s+m);e.vx-=c*p*g,e.vy-=l*p*g,e.vz-=d*p*g,g=1-g,t.vx+=c*p*g,t.vy+=l*p*g,t.vz+=d*p*g}}}))}))})),null},A=["children"],E=(0,i.createContext)(null),C=function(){function t(){this.graph=null,this.params={dim:2,gaps:[10,10,10],anchor:[0,0,0],orientation:"horizontal",direction:"ltr"}}var e=t.prototype;return e.updateParams=function(t){Object.assign(this.params,t),this.updateLayout()},e.updateLayout=function(){var t=this,e=this.graph.adjacency,n=e.filter((function(t){return 0==t.linksFrom.length})),i=0;function r(t,e){i=Math.max(e+1,i),t.layer=a.und(t.layer)?e:Math.max(t.layer,e),t.linksTo.forEach((function(t){return r(t.node,e+1)}))}n.forEach((function(t){return r(t,0)}));var s=c(i,0);e.forEach((function(t){return s[t.layer].push(t)}));var o=s.map((function(t){return t.length}));Math.max.apply(Math,o);s.forEach((function(e,n){e.forEach((function(e,i){e.x=n*t.params.gaps[0]+t.params.anchor[0],e.y=i*t.params.gaps[1]+t.params.anchor[1],t.graph.updateNode(e)}))}))},e.subscribeGraph=function(t){var e=this;return this.graph=t,this.updateLayout(),t.subscribeChanges({onAddNode:function(){return e.updateLayout()},onRemoveNode:function(){return e.updateLayout()},onAddLink:function(){return e.updateLayout()},onRemoveLink:function(){return e.updateLayout()}})},t}(),I=function(t){var e=t.children,n=o(t,A),r=(0,i.useState)((function(){return new C}))[0],s=g();return(0,i.useLayoutEffect)((function(){return r.subscribeGraph(s)}),[r,s]),h((function(t){return r.updateParams(t)}),n),i.createElement(E.Provider,{value:r},e)}},6586:function(t,e,n){function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{Z:function(){return i}})},318:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(6988);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(u){a=!0,r=u}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}(t,e)||(0,i.Z)(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},6988:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(6586);function r(t,e){if(t){if("string"===typeof t)return(0,i.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(t,e):void 0}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.