(window.webpackJsonpvtex_search_result_3_138_7=window.webpackJsonpvtex_search_result_3_138_7||[]).push([[13],{111:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(129)),o=r(n(130)),a=n(0),u=r(a),c=r(n(131)),s=r(n(132)),f={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(f.str(e)||f.num(e))return e===t;if(f.obj(e)&&f.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!f.und(n)||e===t}};function l(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return f.und(e)||f.nul(e)?t:e}function p(e){return f.und(e)?[]:f.arr(e)?e:[e]}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}for(var a=o,u=!1,c=0;c=p.startTime+s.duration;else if(s.decay)y=h+b/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(f=Math.abs(p.lastPosition-y)<.1)&&(v=y);else{l=void 0!==p.lastTime?p.lastTime:t,b=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>l+64&&(l=t);for(var w=Math.floor(t-l),k=0;kv:y=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,u,c){var s=c?c(e):e;if(sn){if("identity"===u)return s;"clamp"===u&&(s=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=o(s),r===-1/0?s=-s:i===1/0?s+=r:s=s*(i-r)+r;return s}(e,o[t],o[t+1],i[t],i[t+1],c,a,u,r.map)}}var K=function(e){function t(n,r,i,o){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof b&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,i,o),a}c(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(b);var N=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}c(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new K(this,e,t,n)},t}(g),W=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new N(e)})),n}c(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new K(this,e,t)},t}(b),L=0,$=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=L++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=v(e),n=t.delay,r=void 0===n?0:n,a=t.to,u=o(t,["delay","to"]);if(f.arr(a)||f.fun(a))this.queue.push(i({},u,{delay:r,to:a}));else if(a){var c={};Object.entries(a).forEach((function(e){var t,n=e[0],o=e[1],a=i({to:(t={},t[n]=o,t),delay:h(r,n)},u),s=c[a.delay]&&c[a.delay].to;c[a.delay]=i({},c[a.delay],a,{to:i({},s,a.to)})})),this.queue=Object.values(c)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(u),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,o=e.to,a=void 0===o?{}:o;f.obj(r)&&(n.merged=i({},r,n.merged)),f.obj(a)&&(n.merged=i({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,i){var u=t.delay,c=o(t,["delay"]),s=function(t){i===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},l=f.arr(c.to)||f.fun(c.to);u?setTimeout((function(){r===n.guid&&(l?n.runAsync(c,s):n.diff(c).start(s))}),u):l?n.runAsync(c,s):n.diff(c).start(s)}))}else f.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,_.has(t)||_.add(t),I||(I=!0,O(C||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,_.has(t)&&_.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,o(e,["delay"])),a=this.local,u=Promise.resolve(void 0);if(f.arr(r.to))for(var c=function(e){var t=e,o=i({},r,v(r.to[t]));f.arr(o.config)&&(o.config=o.config[t]),u=u.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(o).start(e)}))}))},s=0;s=r.length)return"break";a=r[o++]}else{if((o=r.next()).done)return"break";a=o.value}var n=a.key,u=function(e){return e.key!==n};(f.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(u),e.current.deleted=e.current.deleted.filter(u))},r=e.current.deleted,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=y.transform(t)),n.payload=t,n}return c(t,e),t}(w),Z={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,darkgoldenrod: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},B="[-+]?\\d*\\.?\\d+";function Y(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ce(i,r,e+1/3),a=ce(i,r,e),u=ce(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8}function fe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function he(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(fe(n[1])<<24|fe(n[2])<<16|fe(n[3])<<8|255)>>>0:(n=te.exec(t))?(fe(n[1])<<24|fe(n[2])<<16|fe(n[3])<<8|de(n[4]))>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ue.exec(t))?parseInt(n[1],16)>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(le(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(se(le(n[1]),pe(n[2]),pe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var ve=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ye=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(Z).join("|")+")","g"),ge={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},be=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return be.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};q((function(e){return new X(e)})),V("div"),x((function(e){var t=e.output.map((function(e){return e.replace(ye,he)})).map((function(e){return e.replace(me,he)})),n=t[0].match(ve).map((function(){return[]}));t.forEach((function(e){e.match(ve).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ve).map((function(t,r){return z(i({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(ve,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+i+")"}))}})),P(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,i=t.scrollTop,a=t.scrollLeft,u=o(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var f=0===s.indexOf("--"),l=we(s,n[s],f);"float"===s&&(s="cssFloat"),f?e.style.setProperty(s,l):e.style[s]=l}for(var d in u){var p=c?d:ke[d]||(ke[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,u[d])}}),(function(e){return e}));var Pe,Ae,Oe=(Pe=function(e){return a.forwardRef((function(t,n){var r=l(),c=a.useRef(!0),s=a.useRef(null),d=a.useRef(null),p=a.useCallback((function(e){var t=s.current;s.current=new T(e,(function(){var e=!1;d.current&&(e=y.fn(d.current,s.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){c.current=!1,s.current&&s.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return R(d,c,r)})),p(t);var h,v=s.current.getValue(),m=(v.scrollTop,v.scrollLeft,o(v,["scrollTop","scrollLeft"])),g=(h=e,!f.fun(h)||h.prototype instanceof u.Component?function(e){return d.current=function(e,t){return t&&(f.fun(t)?t(e):f.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return u.createElement(e,i({},m,{ref:g}))}))},void 0===(Ae=!1)&&(Ae=!0),function(e){return(f.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ae?t[0].toLowerCase()+t.substring(1):t;return e[n]=Pe(n),e}),Pe)}),je=Oe(["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"]);t.apply=Oe,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=je,t.a=je,t.interpolate=function(e,t,n){return e&&new K(e,t,n)},t.Globals=M,t.useSpring=function(e){var t=f.fun(e),n=G(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=f.fun(t),o=h(t),u=a.useRef(),c=G(e,(function(e,t){return 0===e&&(u.current=[]),u.current.push(t),i({},o,{config:h(o.config,e),attach:e>0&&function(){return u.current[e-1]}})})),s=c[0],l=c[1],d=c[2],p=a.useMemo((function(){return function(e){return l((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=u.current[r];return i({},e,{config:h(e.config||o.config,t),attach:a&&function(){return a}})}))}}),[e,o.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[s,p,d]:s},t.useTransition=function(e,t,n){var r=i({items:e,keys:t||function(e){return e}},n),u=Q(r),c=u.lazy,s=void 0!==c&&c,f=(u.unique,u.reset),d=void 0!==f&&f,p=(u.enter,u.leave,u.update,u.onDestroyed),v=(u.keys,u.items,u.onFrame),y=u.onRest,m=u.onStart,g=u.ref,b=o(u,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=l(),k=a.useRef(!1),P=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:w});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(P.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(P.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(P.current.instances).map((function(e){return e[1]}))}}})),P.current=function(e,t){var n=e.first,r=e.prevProps,a=o(e,["first","prevProps"]),u=Q(t),c=u.items,s=u.keys,f=u.initial,l=u.from,d=u.enter,p=u.leave,v=u.update,y=u.trail,m=void 0===y?0:y,g=u.unique,b=u.config,w=u.order,k=void 0===w?["enter","leave","update"]:w,P=Q(r),A=P.keys,O=P.items,j=i({},a.current),x=[].concat(a.deleted),S=Object.keys(j),E=new Set(S),V=new Set(s),F=s.filter((function(e){return!E.has(e)})),C=a.transitions.filter((function(e){return!e.destroyed&&!V.has(e.originalKey)})).map((function(e){return e.originalKey})),R=s.filter((function(e){return E.has(e)})),q=-m;for(;k.length;){switch(k.shift()){case"enter":F.forEach((function(e,t){g&&x.find((function(t){return t.originalKey===e}))&&(x=x.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),i=c[r],o=n&&void 0!==f?"initial":"enter";j[e]={slot:o,originalKey:e,key:g?String(e):U++,item:i,trail:q+=m,config:h(b,i,o),from:h(n&&void 0!==f?f||{}:l,i),to:h(d,i)}}));break;case"leave":C.forEach((function(e){var t=A.indexOf(e),n=O[t];x.unshift(i({},j[e],{slot:"leave",destroyed:!0,left:A[Math.max(0,t-1)],right:A[Math.min(A.length,t+1)],trail:q+=m,config:h(b,n,"leave"),to:h(p,n)})),delete j[e]}));break;case"update":R.forEach((function(e){var t=s.indexOf(e),n=c[t];j[e]=i({},j[e],{item:n,slot:"update",trail:q+=m,config:h(b,n,"update"),to:h(v,n)})}))}}var M=s.map((function(e){return j[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,o(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[r],M.slice(t))})),i({},a,{changed:F.length||C.length||R.length,first:n&&0===F.length,transitions:M,current:j,deleted:x,prevProps:t})}(P.current,r),P.current.changed&&P.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,o=e.config,a=e.trail,u=e.key,c=e.item;P.current.instances.has(u)||P.current.instances.set(u,new $);var f=P.current.instances.get(u),l=i({},b,{to:r,from:n,config:o,ref:g,onRest:function(n){P.current.mounted&&(e.destroyed&&(g||s||J(P,u),p&&p(c)),!Array.from(P.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&P.current.deleted.length>0&&J(P),y&&y(c,t,n))},onStart:m&&function(){return m(c,t)},onFrame:v&&function(e){return v(c,t,e)},delay:a,reset:d&&"enter"===t});f.update(l),P.current.paused||f.start()})),a.useEffect((function(){return P.current.mounted=k.current=!0,function(){P.current.mounted=k.current=!1,Array.from(P.current.instances).map((function(e){return e[1].destroy()})),P.current.instances.clear()}}),[]),P.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:P.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){f.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var o=e.current;if(o){var a=o.controllers;if(a.length){var u=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return i({},e,{delay:e.delay+u})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=G},118:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function c(e,t){return 2===u(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t){return 2===u(e)?e.get(t):e[t]}function f(e,t,n){var r=u(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return K&&e instanceof Map}function p(e){return N&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[G];for(var n=H(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&a(e,(function(e,t){return y(t,!0)}),!0)),e}function m(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=J[e];return t||r(18,e),t}function w(){return D}function k(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function P(e){A(e),e.p.forEach(j),e.p=null}function A(e){e===D&&(D=e.l)}function O(e){return D={p:[],l:D,h:e,m:!0,_:0}}function j(e){var t=e[G];0===t.i||1===t.i?t.j():t.O=!0}function x(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,i),i?(n[G].P&&(P(t),r(4)),o(e)&&(e=S(t,e),t.l||V(t,e)),t.u&&b("Patches").M(n[G],e,t.u,t.s)):e=S(t,n,[]),P(t),t.u&&t.v(t.u,t.s),e!==L?e:void 0}function S(e,t,n){if(g(t))return t;var r=t[G];if(!r)return a(t,(function(i,o){return E(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return V(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=v(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return E(e,r,i,t,o,n)})),V(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function E(e,t,n,r,a,u){if(i(a)){var s=S(e,a,u&&t&&3!==t.i&&!c(t.D,r)?u.concat(r):void 0);if(f(n,r,s),!i(s))return;e.m=!1}if(o(a)&&!g(a)){if(!e.h.F&&e._<1)return;S(e,a),t&&t.A.l||V(e,a)}}function V(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&y(t,n)}function F(e,t){var n=e[G];return(n?h(n):e)[t]}function C(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function q(e){e.o||(e.o=v(e.t))}function M(e,t,n){var r=d(t)?b("MapSet").N(t,n):p(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=X;n&&(i=[r],o=Z);var a=Proxy.revocable(i,o),u=a.revoke,c=a.proxy;return r.k=c,r.j=u,c}(t,n):b("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function T(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[G],i=u(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=I(t,i),r.I=!1}else n=I(t,i);return a(n,(function(t,i){r&&s(r.t,t)===i||f(n,t,e(i))})),3===i?new Set(n):n}(e)}function I(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}var _,D,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),K="undefined"!=typeof Map,N="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,L=z?Symbol.for("immer-nothing"):((_={})["immer-nothing"]=!0,_),$=z?Symbol.for("immer-draftable"):"__$immer_draftable",G=z?Symbol.for("immer-state"):"__$immer_state",U=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),H="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q=Object.getOwnPropertyDescriptors||function(e){var t={};return H(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},J={},X={get:function(e,t){if(t===G)return e;var n=h(e);if(!c(n,t))return function(e,t,n){var r,i=C(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===F(e.t,t)?(q(e),e.o[t]=M(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=C(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=F(h(e),t),o=null==i?void 0:i[G];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(l(n,i)&&(void 0!==n||c(e.t,t)))return!0;q(e),R(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==F(e.t,t)||t in e.t?(e.D[t]=!1,q(e),R(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};a(X,(function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(e,t){return X.deleteProperty.call(this,e[0],t)},Z.set=function(e,t,n){return X.set.call(this,e[0],t,n,e[0])};var B=new(function(){function e(e){var t=this;this.g=W,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var u=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),Y=B.produce;B.produceWithPatches.bind(B),B.setAutoFreeze.bind(B),B.setUseProxies.bind(B),B.applyPatches.bind(B),B.createDraft.bind(B),B.finishDraft.bind(B);t.a=Y}}]);