"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42077],{42077:(e,t,i)=>{let r,a,s,n,o;function f(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var l=f(i(54166)),d=f(i(12805)),h=f(i(52751)),c=f(i(82494));let p=[],u=e=>window.requestAnimationFrame(e),m=()=>Date.now();class g{attach(){}detach(){}getValue(){}getAnimatedValue(){return this.getValue()}addChild(e){}removeChild(e){}getChildren(){return[]}}let y=e=>Object.keys(e).map(t=>e[t]);class x extends g{addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){let t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}constructor(){var e;super(...arguments),e=this,this.children=[],this.getChildren=()=>this.children,this.getPayload=function(t){return void 0===t&&(t=void 0),void 0!==t&&e.payload?e.payload[t]:e.payload||e}}}class b extends x{constructor(){super(...arguments),this.payload=[],this.getAnimatedValue=()=>this.getValue(),this.attach=()=>this.payload.forEach(e=>e instanceof g&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof g&&e.removeChild(this))}}class v extends x{getValue(e){void 0===e&&(e=!1);let t={};for(let i in this.payload){let r=this.payload[i];(!e||r instanceof g)&&(t[i]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t}constructor(){super(...arguments),this.payload={},this.getAnimatedValue=()=>this.getValue(!0),this.attach=()=>y(this.payload).forEach(e=>e instanceof g&&e.addChild(this)),this.detach=()=>y(this.payload).forEach(e=>e instanceof g&&e.removeChild(this))}}class k extends v{constructor(e){super(),!(e=e||{}).transform||e.transform instanceof g||(e=a.transform(e)),this.payload=e}}let w={transparent:0,aliceblue:0xf0f8ffff,antiquewhite:0xfaebd7ff,aqua:0xffffff,aquamarine:0x7fffd4ff,azure:0xf0ffffff,beige:0xf5f5dcff,bisque:0xffe4c4ff,black:255,blanchedalmond:0xffebcdff,blue:65535,blueviolet:0x8a2be2ff,brown:0xa52a2aff,burlywood:0xdeb887ff,burntsienna:0xea7e5dff,cadetblue:0x5f9ea0ff,chartreuse:0x7fff00ff,chocolate:0xd2691eff,coral:0xff7f50ff,cornflowerblue:0x6495edff,cornsilk:0xfff8dcff,crimson:0xdc143cff,cyan:0xffffff,darkblue:35839,darkcyan:9145343,darkgoldenrod:0xb8860bff,darkgray:0xa9a9a9ff,darkgreen:6553855,darkgrey:0xa9a9a9ff,darkkhaki:0xbdb76bff,darkmagenta:0x8b008bff,darkolivegreen:0x556b2fff,darkorange:0xff8c00ff,darkorchid:0x9932ccff,darkred:0x8b0000ff,darksalmon:0xe9967aff,darkseagreen:0x8fbc8fff,darkslateblue:0x483d8bff,darkslategray:0x2f4f4fff,darkslategrey:0x2f4f4fff,darkturquoise:0xced1ff,darkviolet:0x9400d3ff,deeppink:0xff1493ff,deepskyblue:0xbfffff,dimgray:0x696969ff,dimgrey:0x696969ff,dodgerblue:0x1e90ffff,firebrick:0xb22222ff,floralwhite:0xfffaf0ff,forestgreen:0x228b22ff,fuchsia:0xff00ffff,gainsboro:0xdcdcdcff,ghostwhite:0xf8f8ffff,gold:0xffd700ff,goldenrod:0xdaa520ff,gray:0x808080ff,green:8388863,greenyellow:0xadff2fff,grey:0x808080ff,honeydew:0xf0fff0ff,hotpink:0xff69b4ff,indianred:0xcd5c5cff,indigo:0x4b0082ff,ivory:0xfffff0ff,khaki:0xf0e68cff,lavender:0xe6e6faff,lavenderblush:0xfff0f5ff,lawngreen:0x7cfc00ff,lemonchiffon:0xfffacdff,lightblue:0xadd8e6ff,lightcoral:0xf08080ff,lightcyan:0xe0ffffff,lightgoldenrodyellow:0xfafad2ff,lightgray:0xd3d3d3ff,lightgreen:0x90ee90ff,lightgrey:0xd3d3d3ff,lightpink:0xffb6c1ff,lightsalmon:0xffa07aff,lightseagreen:0x20b2aaff,lightskyblue:0x87cefaff,lightslategray:0x778899ff,lightslategrey:0x778899ff,lightsteelblue:0xb0c4deff,lightyellow:0xffffe0ff,lime:0xff00ff,limegreen:0x32cd32ff,linen:0xfaf0e6ff,magenta:0xff00ffff,maroon:0x800000ff,mediumaquamarine:0x66cdaaff,mediumblue:52735,mediumorchid:0xba55d3ff,mediumpurple:0x9370dbff,mediumseagreen:0x3cb371ff,mediumslateblue:0x7b68eeff,mediumspringgreen:0xfa9aff,mediumturquoise:0x48d1ccff,mediumvioletred:0xc71585ff,midnightblue:0x191970ff,mintcream:0xf5fffaff,mistyrose:0xffe4e1ff,moccasin:0xffe4b5ff,navajowhite:0xffdeadff,navy:33023,oldlace:0xfdf5e6ff,olive:0x808000ff,olivedrab:0x6b8e23ff,orange:0xffa500ff,orangered:0xff4500ff,orchid:0xda70d6ff,palegoldenrod:0xeee8aaff,palegreen:0x98fb98ff,paleturquoise:0xafeeeeff,palevioletred:0xdb7093ff,papayawhip:0xffefd5ff,peachpuff:0xffdab9ff,peru:0xcd853fff,pink:0xffc0cbff,plum:0xdda0ddff,powderblue:0xb0e0e6ff,purple:0x800080ff,rebeccapurple:0x663399ff,red:0xff0000ff,rosybrown:0xbc8f8fff,royalblue:0x4169e1ff,saddlebrown:0x8b4513ff,salmon:0xfa8072ff,sandybrown:0xf4a460ff,seagreen:0x2e8b57ff,seashell:0xfff5eeff,sienna:0xa0522dff,silver:0xc0c0c0ff,skyblue:0x87ceebff,slateblue:0x6a5acdff,slategray:0x708090ff,slategrey:0x708090ff,snow:0xfffafaff,springgreen:0xff7fff,steelblue:0x4682b4ff,tan:0xd2b48cff,teal:8421631,thistle:0xd8bfd8ff,tomato:0xff6347ff,turquoise:0x40e0d0ff,violet:0xee82eeff,wheat:0xf5deb3ff,white:0xffffffff,whitesmoke:0xf5f5f5ff,yellow:0xffff00ff,yellowgreen:0x9acd32ff};class A{static create(e,t,i){if("function"==typeof e)return e;if(s&&e.output&&"string"==typeof e.output[0])return s(e);if(Array.isArray(e))return A.create({range:e,output:t,extrapolate:i||"extend"});let r=e.output,a=e.range||[0,1],n=e.easing||(e=>e),o="extend",f=e.map;void 0!==e.extrapolateLeft?o=e.extrapolateLeft:void 0!==e.extrapolate&&(o=e.extrapolate);let l="extend";return void 0!==e.extrapolateRight?l=e.extrapolateRight:void 0!==e.extrapolate&&(l=e.extrapolate),e=>{let t=function(e,t){for(var i=1;i=e);++i);return i-1}(e,a);return function(e,t,i,r,a,s,n,o,f){let l=f?f(e):e;if(li){if("identity"===o)return l;"clamp"===o&&(l=i)}return r===a?r:t===i?e<=t?r:a:(t===-1/0?l=-l:i===1/0?l-=t:l=(l-t)/(i-t),l=s(l),r===-1/0?l=-l:a===1/0?l+=r:l=l*(a-r)+r,l)}(e,a[t],a[t+1],r[t],r[t+1],n,o,l,f)}}}let V="[-+]?\\d*\\.?\\d+",P=V+"%";function S(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}let E=RegExp("rgb"+S(V,V,V)),C=RegExp("rgba"+S(V,V,V,V)),j=RegExp("hsl"+S(V,P,P)),R=RegExp("hsla"+S(V,P,P,V)),F=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,O=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,T=/^#([0-9a-fA-F]{6})$/,I=/^#([0-9a-fA-F]{8})$/;function M(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function U(e,t,i){let r=i<.5?i*(1+t):i+t-i*t,a=2*i-r;return Math.round(255*M(a,r,e+1/3))<<24|Math.round(255*M(a,r,e))<<16|Math.round(255*M(a,r,e-1/3))<<8}function q(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function D(e){return(parseFloat(e)%360+360)%360/360}function W(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function L(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function K(e){let t;let i="number"==typeof e?e>>>0===e&&e>=0&&e<=0xffffffff?e:null:(t=T.exec(e))?parseInt(t[1]+"ff",16)>>>0:w.hasOwnProperty(e)?w[e]:(t=E.exec(e))?(q(t[1])<<24|q(t[2])<<16|q(t[3])<<8|255)>>>0:(t=C.exec(e))?(q(t[1])<<24|q(t[2])<<16|q(t[3])<<8|W(t[4]))>>>0:(t=F.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=I.exec(e))?parseInt(t[1],16)>>>0:(t=O.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=j.exec(e))?(255|U(D(t[1]),L(t[2]),L(t[3])))>>>0:(t=R.exec(e))?(U(D(t[1]),L(t[2]),L(t[3]))|W(t[4]))>>>0:null;if(null===i)return e;let r=(0xff000000&(i=i||0))>>>24,a=(0xff0000&i)>>>16,s=(65280&i)>>>8,n=(255&i)/255;return"rgba(".concat(r,", ").concat(a,", ").concat(s,", ").concat(n,")")}let z=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,G=RegExp("(".concat(Object.keys(w).join("|"),")"),"g");class N extends b{constructor(e,t,i){super(),this.getValue=()=>this.calc(...this.payload.map(e=>e.getValue())),this.updateConfig=(e,t)=>this.calc=A.create(e,t),this.interpolate=(e,t)=>new N(this,e,t),this.payload=e instanceof b&&!e.updateConfig?e.payload:Array.isArray(e)?e:[e],this.calc=A.create(t,i)}}class $ extends x{flush(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach(e=>e.update())}prepare(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())}constructor(e){var t;super(),t=this,this.setValue=function(e,i){void 0===i&&(i=!0),t.value=e,i&&t.flush()},this.getValue=()=>this.value,this.updateStyles=()=>(function e(t,i){"function"==typeof t.update?i.add(t):t.getChildren().forEach(t=>e(t,i))})(this,this.animatedStyles),this.updateValue=e=>this.flush(this.value=e),this.interpolate=(e,t)=>new N(this,e,t),this.value=e,this.animatedStyles=new Set,this.done=!1,this.startPosition=e,this.lastPosition=e,this.lastVelocity=void 0,this.lastTime=void 0,this.controller=void 0}}class H extends b{constructor(e){var t;super(),t=this,this.setValue=function(e,i){void 0===i&&(i=!0),Array.isArray(e)?e.length===t.payload.length&&e.forEach((e,r)=>t.payload[r].setValue(e,i)):t.payload.forEach((r,a)=>t.payload[a].setValue(e,i))},this.getValue=()=>this.payload.map(e=>e.getValue()),this.interpolate=(e,t)=>new N(this,e,t),this.payload=e.map(e=>new $(e))}}function B(e,t){return null==e?t:e}function Z(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function J(e,t){let i;if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;for(i in e)if(!(i in t))return!1;for(i in t)if(e[i]!==t[i])return!1;return void 0!==i||e===t}function Q(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;re[t])}function Y(e){let t=(e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,l(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])),i=Object.keys(e).reduce((i,r)=>void 0!==t[r]?i:d({},i,{[r]:e[r]}),{});return d({to:t},i)}function ee(e,t){let i=t[0],r=t[1];return d({},e,{[i]:new(Array.isArray(r)?H:$)(r)})}function et(e){let t=e.from,i=e.to,r=e.native,a=Object.entries(d({},t,i));return r?a.reduce(ee,{}):d({},t,i)}function ei(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}let er=e=>"auto"===e,ea=(e,t)=>(i,r)=>{let a=r[0],s=r[1];return d({},i,{[a]:"auto"===s?~a.indexOf("height")?t:e:s})},es={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},en=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),eo=["Webkit","Ms","Moz","O"];es=Object.keys(es).reduce((e,t)=>(eo.forEach(i=>e[en(i,t)]=e[t]),e),es);let ef={};o=e=>new k(e),s=function(e){let t=e.output.map(e=>e.replace(_,K)).map(e=>e.replace(G,K)),i=t[0].match(z).map(()=>[]);t.forEach(e=>{e.match(z).forEach((e,t)=>i[t].push(+e))});let r=t[0].match(z).map((t,r)=>A.create(d({},e,{output:i[r]})));return e=>{let i=0;return t[0].replace(z,()=>r[i++](e)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(e,t,i,r,a)=>"rgba(".concat(Math.round(t),", ").concat(Math.round(i),", ").concat(Math.round(r),", ").concat(a,")"))}},p=w,r=function(e,t){let i=e.from,r=e.to,a=e.children;if(!(X(r).some(er)||X(i).some(er)))return;let s=a(et(e));if(!s)return;Array.isArray(s)&&(s={type:"div",props:{children:s}});let n=s.props.style;return h.createElement(s.type,d({key:s.key?s.key:void 0},s.props,{style:d({},n,{position:"absolute",visibility:"hidden"}),ref:a=>{if(a){let s,n,o=c.findDOMNode(a),f=getComputedStyle(o);if("border-box"===f.boxSizing)s=o.offsetWidth,n=o.offsetHeight;else{let e=parseFloat(f.paddingLeft||0)+parseFloat(f.paddingRight||0),t=parseFloat(f.paddingTop||0)+parseFloat(f.paddingBottom||0),i=parseFloat(f.borderLeftWidth||0)+parseFloat(f.borderRightWidth||0),r=parseFloat(f.borderTopWidth||0)+parseFloat(f.borderBottomWidth||0);s=o.offsetWidth-e-i,n=o.offsetHeight-t-r}let l=ea(s,n);t(d({},e,{from:Object.entries(i).reduce(l,i),to:Object.entries(r).reduce(l,r)}))}}}))},a={fn:(e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{let a=t.style,s=t.children,n=t.scrollTop,o=t.scrollLeft,f=l(t,["style","children","scrollTop","scrollLeft"]);for(let t in void 0!==n&&(e.scrollTop=n),void 0!==o&&(e.scrollLeft=o),void 0!==s&&(e.textContent=s),a)if(a.hasOwnProperty(t)){var i=0===t.indexOf("--"),r=function(e,t,i){return null==t||"boolean"==typeof t||""===t?"":i||"number"!=typeof t||0===t||es.hasOwnProperty(e)&&es[e]?(""+t).trim():t+"px"}(t,a[t],i);"float"===t&&(t="cssFloat"),i?e.style.setProperty(t,r):e.style[t]=r}for(let t in f){let i=ef[t]||(ef[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase()));void 0!==e.getAttribute(i)&&e.setAttribute(i,f[t])}}},transform:e=>e};let el=!1,ed=new Set,eh=()=>{let e=m();for(let t of ed){let i=!0,r=!0;for(let a=0;a=t.startTime+o.delay+o.duration;else if(o.decay)h=l+p/(1-.998)*(1-Math.exp(-(1-.998)*(e-t.startTime))),(s=.1>Math.abs(f.lastPosition-h))&&(d=h);else{n=void 0!==f.lastTime?f.lastTime:e,p=void 0!==f.lastVelocity?f.lastVelocity:o.initialVelocity,e>n+64&&(n=e);let t=Math.floor(e-n);for(let e=0;ed:h{ed.has(e)||(ed.add(e),el||u(eh),el=!0)},ep=e=>{ed.has(e)&&ed.delete(e)};class eu{update(e){this.props=d({},this.props,e);let t=this.props.interpolateTo?Y(this.props):this.props,i=t.from,r=void 0===i?{}:i,a=t.to,s=void 0===a?{}:a,n=t.config,o=void 0===n?{}:n,f=t.delay,l=void 0===f?0:f,h=t.reverse,c=t.attach,u=t.reset,m=t.immediate,g=t.autoStart,y=t.ref;if(h){var x=[s,r];r=x[0],s=x[1]}this.hasChanged=!1;let b=c&&c(this),v=u?{}:this.merged;if(this.merged=d({},r,v,s),this.animations=Object.entries(this.merged).reduce((e,t,i)=>{let a=t[0],s=t[1],n=!u&&e[a]||{},f="number"==typeof s,h="string"==typeof s&&!s.startsWith("#")&&!/\d/.test(s)&&!p[s],c=!f&&!h&&Array.isArray(s),g=void 0!==r[a]?r[a]:s,y=f||c?s:h?s:1,x=Q(o,a);if(b&&(y=b.animations[a].parent),void 0===x.decay&&J(n.changes,s))return e;{let t,i;if(this.hasChanged=!0,f||h)t=i=n.parent||new $(g);else if(c)t=i=n.parent||new H(g);else{let e=n.interpolation&&n.interpolation.calc(n.parent.value);n.parent?(t=n.parent).setValue(0,!1):t=new $(0);let r={output:[void 0!==e?e:g,s]};n.interpolation?(i=n.interpolation,n.interpolation.updateConfig(r)):i=t.interpolate(r)}Q(m,a)&&t.setValue(s,!1);let r=Z(t.getPayload());return r.forEach(e=>e.prepare(this)),d({},e,{[a]:d({},n,{name:a,parent:t,interpolation:i,animatedValues:r,changes:s,fromValues:Z(t.getValue()),toValues:Z(b?y.getPayload():y),immediate:Q(m,a),delay:B(x.delay,l||0),initialVelocity:B(x.velocity,0),clamp:B(x.clamp,!1),precision:B(x.precision,.01),tension:B(x.tension,170),friction:B(x.friction,26),mass:B(x.mass,1),duration:x.duration,easing:B(x.easing,e=>e),decay:x.decay})})}},this.animations),this.hasChanged)for(let e in this.configs=X(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[e]=this.animations[e].interpolation,this.animatedProps[e]=this.animations[e].interpolation.getValue();for(var k=arguments.length,w=Array(k>1?k-1:0),A=1;Athis.resolve=e)}stop(e){void 0===e&&(e=!1),e&&X(this.animations).forEach(e=>e.changes=void 0),this.debouncedOnEnd({finished:e})}destroy(){ep(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]}debouncedOnEnd(e){ep(this),this.isActive=!1;let t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null}constructor(e,t){void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=()=>this.props.native?this.interpolations:this.animatedProps,this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(d({},e,t))}}class em extends v{constructor(e,t){super(),e.style&&(e=d({},e,{style:o(e.style)})),this.payload=e,this.update=t,this.attach()}}function eg(e){class t extends h.Component{componentWillUnmount(){this.propsAnimated&&this.propsAnimated.detach()}setNativeProps(e){!1===a.fn(this.node,e,this)&&this.forceUpdate()}attachProps(e){e.forwardRef;let t=l(e,["forwardRef"]),i=this.propsAnimated;this.propsAnimated=new em(t,this.callback),i&&i.detach()}shouldComponentUpdate(e){let t=e.style,i=l(e,["style"]),r=this.props,a=r.style;return!(J(l(r,["style"]),i)&&J(a,t))&&(this.attachProps(e),!0)}render(){let t=this.propsAnimated.getValue(),i=(t.scrollTop,t.scrollLeft,l(t,["scrollTop","scrollLeft"]));return h.createElement(e,d({},i,{ref:e=>this.node=ei(e,this.props.forwardRef)}))}constructor(e){super(),this.callback=()=>{this.node&&!1===a.fn(this.node,this.propsAnimated.getAnimatedValue(),this)&&this.forceUpdate()},this.attachProps(e)}}return h.forwardRef((e,i)=>h.createElement(t,d({},e,{forwardRef:i})))}class ey extends h.Component{componentDidMount(){this.componentDidUpdate(),this.mounted=!0}componentWillUnmount(){this.mounted=!1,this.stop()}static getDerivedStateFromProps(e,t){let i=t.internal,r=t.lastProps,a=e.from,s=e.to,n=e.reset,o=e.force;return{propsChanged:!J(s,r.to)||!J(a,r.from)||n&&!i||o&&!i,lastProps:e,internal:!1}}render(){let e=this.props.children,t=this.state.propsChanged;if(this.props.inject&&t&&!this.injectProps){let e=this.props.inject(this.props,e=>{this.injectProps=e,this.setState({internal:!0})});if(e)return e}(this.injectProps||t)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):t&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);let i=d({},this.controller.getValues(),this.afterInject);return this.finished&&(i=d({},i,this.props.after)),Object.keys(i).length?e(i):null}componentDidUpdate(){this.didUpdate&&this.start(),this.didUpdate=!1}constructor(){super(...arguments),this.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},this.controller=new eu(null,null),this.didUpdate=!1,this.didInject=!1,this.finished=!0,this.start=()=>{this.finished=!1;let e=this.mounted;this.controller.start(t=>this.finish(d({},t,{wasMounted:e})),this.update)},this.stop=()=>this.controller.stop(!0),this.update=()=>this.mounted&&this.setState({internal:!0}),this.finish=e=>{let t=e.finished,i=e.noChange,r=e.wasMounted;this.finished=!0,this.mounted&&t&&(this.props.onRest&&(r||!i)&&this.props.onRest(this.controller.merged),this.mounted&&this.didInject&&(this.afterInject=et(this.props),this.setState({internal:!0})),this.mounted&&(this.didInject||this.props.after)&&this.setState({internal:!0}),this.didInject=!1)}}}ey.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:r};class ex extends h.PureComponent{render(){let e=this.props,t=e.items,i=e.children,r=e.from,a=void 0===r?{}:r,s=e.initial,n=e.reverse,o=e.keys,f=e.delay,c=e.onRest,p=l(e,["items","children","from","initial","reverse","keys","delay","onRest"]),u=Z(t);return Z(u).map((e,t)=>h.createElement(ey,d({onRest:0===t?c:null,key:"function"==typeof o?o(e):Z(o)[t],from:this.first&&void 0!==s?s||{}:a},p,{delay:0===t&&f||void 0,attach:e=>this.hook(e,t,u.length,n),children:r=>{let a=i(e,t);return a?a(r):null}})))}componentDidUpdate(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()}constructor(){super(...arguments),this.first=!0,this.instances=new Set,this.hook=(e,t,i,r)=>{if(this.instances.add(e),r?t!==i-1:0!==t)return Array.from(this.instances)[r?t+1:t-1]}}}ex.defaultProps={keys:e=>e};let eb="__default";class ev extends h.PureComponent{componentDidMount(){this.mounted=!0,this.componentDidUpdate({})}componentWillUnmount(){this.mounted=!1}componentDidUpdate(e){var t=this;let i=this.props,r=i.states,a=i.filter,s=i.state;if((e.state!==this.props.state||this.props.reset&&!this.running||!J(r[s],e.states[e.state]))&&r&&s&&r[s]){let e=++this.guid,i=r[s];if(i){if(Array.isArray(i)){let t=Promise.resolve();for(let r=0;re===this.guid&&this.next(a(n),o,s))}}else if("function"==typeof i){let r=0;i(function(i,s){return void 0===s&&(s=!1),e===t.guid&&t.next(a(i),s,r++)},()=>u(()=>this.instance&&this.instance.stop()),this.props)}else this.next(a(r[s]))}}}render(){let e=this.state,t=e.props,i=e.resolve,r=e.last,a=e.index;if(!t||0===Object.keys(t).length)return null;let s=this.props,n=(s.state,s.filter,s.states,s.config),o=s.primitive,f=s.onRest,c=s.forwardRef,p=l(s,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(n)&&(n=n[a]),h.createElement(o,d({ref:e=>this.instance=ei(e,c),config:n},p,t,{onRest:e=>{i(e),f&&r&&f(e)}}))}constructor(){var e;super(...arguments),e=this,this.guid=0,this.state={props:{},resolve:()=>null,last:!0,index:0},this.next=function(t,i,r){return void 0===i&&(i=!0),void 0===r&&(r=0),e.running=!0,new Promise(a=>{e.mounted&&e.setState(e=>({props:t,resolve:a,last:i,index:r}),()=>e.running=!1)})}}}ev.defaultProps={state:eb};let ek=h.forwardRef((e,t)=>h.createElement(ev,d({},e,{forwardRef:t})));ek.create=e=>function(t,i){return void 0===i&&(i=e=>e),("function"==typeof t||Array.isArray(t))&&(t={[eb]:t}),r=>h.createElement(ev,d({primitive:e,states:t,filter:i},r))},ek.Spring=e=>ek.create(ey)(e,Y),ek.Trail=e=>ek.create(ex)(e,Y);let ew=0,eA=e=>{let t=e.items,i=e.keys,r=l(e,["items","keys"]);return t=Z(void 0!==t?t:null),i="function"==typeof i?t.map(i):Z(i),d({items:t,keys:i.map(e=>String(e))},r)};class eV extends h.PureComponent{componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}static getDerivedStateFromProps(e,t){let i=t.first,r=t.prevProps,a=l(t,["first","prevProps"]),s=eA(e),n=s.items,o=s.keys,f=s.initial,h=s.from,c=s.enter,p=s.leave,u=s.update,m=s.trail,g=void 0===m?0:m,y=s.unique,x=s.config,b=eA(r),v=b.keys,k=b.items,w=d({},a.current),A=[...a.deleted],V=new Set(Object.keys(w)),P=new Set(o),S=o.filter(e=>!V.has(e)),E=a.transitions.filter(e=>!e.destroyed&&!P.has(e.originalKey)).map(e=>e.originalKey),C=o.filter(e=>V.has(e)),j=0;S.forEach(e=>{y&&A.find(t=>t.originalKey===e)&&(A=A.filter(t=>t.originalKey!==e));let t=n[o.indexOf(e)],r="enter";w[e]={state:r,originalKey:e,key:y?String(e):ew++,item:t,trail:j+=g,config:Q(x,t,r),from:Q(i&&void 0!==f?f||{}:h,t),to:Q(c,t)}}),E.forEach(e=>{let t=v.indexOf(e),i=k[t],r="leave";A.push(d({},w[e],{state:r,destroyed:!0,left:v[Math.max(0,t-1)],right:v[Math.min(v.length,t+1)],trail:j+=g,config:Q(x,i,r),to:Q(p,i)})),delete w[e]}),C.forEach(e=>{let t=n[o.indexOf(e)],i="update";w[e]=d({},w[e],{item:t,state:i,trail:j+=g,config:Q(x,t,i),to:Q(u,t)})});let R=o.map(e=>w[e]);return A.forEach(e=>{let t,i=e.left,r=e.right,a=l(e,["left","right"]);-1!==(t=R.findIndex(e=>e.originalKey===i))&&(t+=1),-1===t&&(t=R.findIndex(e=>e.originalKey===r)),-1===t&&(t=A.findIndex(e=>e.originalKey===i)),-1===t&&(t=A.findIndex(e=>e.originalKey===r)),t=Math.max(0,t),R=[...R.slice(0,t),a,...R.slice(t)]}),{first:i&&0===S.length,transitions:R,current:w,deleted:A,prevProps:e}}render(){let e=this.props,t=(e.initial,e.from,e.enter,e.leave,e.update,e.onDestroyed,e.keys,e.items,e.onFrame),i=e.onRest,r=e.onStart,a=(e.trail,e.config,e.children),s=(e.unique,e.reset),n=l(e,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((e,o)=>{let f=e.state,l=e.key,c=e.item,p=e.from,u=e.to,m=e.trail,g=e.config,y=e.destroyed;return h.createElement(ek,d({reset:s&&"enter"===f,primitive:ey,state:f,filter:Y,states:{[f]:u},key:l,onRest:y?this.destroyItem(c,l,f):i&&(e=>i(c,f,e)),onStart:r&&(()=>r(c,f)),onFrame:t&&(e=>t(c,f,e)),delay:m,config:g},n,{from:p,children:e=>{let t=a(c,f,o);return t?t(e):null}}))})}constructor(e){super(e),this.destroyItem=(e,t,i)=>r=>{let a=this.props,s=a.onRest,n=a.onDestroyed;this.mounted&&(n&&n(e),this.setState(e=>({deleted:e.deleted.filter(e=>e.key!==t)})),s&&s(e,i,r))},this.state={first:!0,transitions:[],current:{},deleted:[],prevProps:e}}}eV.defaultProps={keys:e=>e,unique:!1,reset:!1},["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","marquee","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"].reduce((e,t)=>(e[t]=eg(t),e),eg),t.c7=ey}}]); //# sourceMappingURL=42077.1da2f7585f2bd360.js.map