@twilio-paste/animation-library
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Change Log | ||
## 0.3.2 | ||
### Patch Changes | ||
- [`456e7210`](https://github.com/twilio-labs/paste/commit/456e72109c31677adad53383084cd052f22b1e52) [#1464](https://github.com/twilio-labs/paste/pull/1464) Thanks [@richbachman](https://github.com/richbachman)! - Bumped the version of React-Spring to 9.1.2 in order to fix a TS issue. | ||
All notable changes to this project will be documented in this file. | ||
@@ -10,17 +16,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# [0.3.0](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.6...@twilio-paste/animation-library@0.3.0) (2021-01-21) | ||
### Features | ||
* ESBuild for builds ([#1084](https://github.com/twilio-labs/paste/issues/1084)) ([0536460](https://github.com/twilio-labs/paste/commit/053646011508be10477d5b732269cdb0419235d7)) | ||
- ESBuild for builds ([#1084](https://github.com/twilio-labs/paste/issues/1084)) ([0536460](https://github.com/twilio-labs/paste/commit/053646011508be10477d5b732269cdb0419235d7)) | ||
## [0.2.6](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.5...@twilio-paste/animation-library@0.2.6) (2021-01-15) | ||
@@ -30,6 +27,2 @@ | ||
## [0.2.5](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.4...@twilio-paste/animation-library@0.2.5) (2020-12-09) | ||
@@ -39,6 +32,2 @@ | ||
## [0.2.4](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.3...@twilio-paste/animation-library@0.2.4) (2020-10-23) | ||
@@ -48,17 +37,8 @@ | ||
## [0.2.3](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.2...@twilio-paste/animation-library@0.2.3) (2020-10-15) | ||
### Bug Fixes | ||
* **animation-library:** make sure babel is run correctly ([#845](https://github.com/twilio-labs/paste/issues/845)) ([348aa0d](https://github.com/twilio-labs/paste/commit/348aa0d6f9b425b029cd7b4eb8514048046733c3)) | ||
- **animation-library:** make sure babel is run correctly ([#845](https://github.com/twilio-labs/paste/issues/845)) ([348aa0d](https://github.com/twilio-labs/paste/commit/348aa0d6f9b425b029cd7b4eb8514048046733c3)) | ||
## [0.2.2](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.1...@twilio-paste/animation-library@0.2.2) (2020-10-13) | ||
@@ -68,49 +48,28 @@ | ||
## [0.2.1](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.2.0...@twilio-paste/animation-library@0.2.1) (2020-06-22) | ||
### Bug Fixes | ||
* **animation-library:** add window.matchMedia guard ([#511](https://github.com/twilio-labs/paste/issues/511)) ([4bf8dcf](https://github.com/twilio-labs/paste/commit/4bf8dcf7800a0c5f354e0ac4909dad3abb3d0733)) | ||
- **animation-library:** add window.matchMedia guard ([#511](https://github.com/twilio-labs/paste/issues/511)) ([4bf8dcf](https://github.com/twilio-labs/paste/commit/4bf8dcf7800a0c5f354e0ac4909dad3abb3d0733)) | ||
# [0.2.0](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.1.1...@twilio-paste/animation-library@0.2.0) (2020-06-01) | ||
### Features | ||
* **animation-library:** use v9 and add useReducedMotion hook ([70af843](https://github.com/twilio-labs/paste/commit/70af843a228b6f358fa40b8fd1ee9f009a084e64)) | ||
- **animation-library:** use v9 and add useReducedMotion hook ([70af843](https://github.com/twilio-labs/paste/commit/70af843a228b6f358fa40b8fd1ee9f009a084e64)) | ||
## [0.1.1](https://github.com/twilio-labs/paste/compare/@twilio-paste/animation-library@0.1.0...@twilio-paste/animation-library@0.1.1) (2020-05-19) | ||
### Bug Fixes | ||
* **animation-library:** several tweaks, making package public ([0c6c17d](https://github.com/twilio-labs/paste/commit/0c6c17d64b2af86ed199401e338b7d0475c19af1)) | ||
- **animation-library:** several tweaks, making package public ([0c6c17d](https://github.com/twilio-labs/paste/commit/0c6c17d64b2af86ed199401e338b7d0475c19af1)) | ||
# 0.1.0 (2020-05-19) | ||
### Bug Fixes | ||
* **animation-library:** incorrect tsconfig path ([0d43b14](https://github.com/twilio-labs/paste/commit/0d43b14caf2e4c1f32b71114c4e2500d7eab7f60)) | ||
- **animation-library:** incorrect tsconfig path ([0d43b14](https://github.com/twilio-labs/paste/commit/0d43b14caf2e4c1f32b71114c4e2500d7eab7f60)) | ||
### Features | ||
* add paste animation library ([3ec5fb7](https://github.com/twilio-labs/paste/commit/3ec5fb799452fc213ca11cb9b23dd7810f97868b)) | ||
- add paste animation library ([3ec5fb7](https://github.com/twilio-labs/paste/commit/3ec5fb799452fc213ca11cb9b23dd7810f97868b)) |
@@ -1,15 +0,1 @@ | ||
var dt=Object.defineProperty;var gr=t=>dt(t,"__esModule",{value:!0});var yr=(t,e)=>{gr(t);for(var r in e)dt(t,r,{get:e[r],enumerable:!0})};function ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}import{useEffect as xr,useLayoutEffect as br}from"react";var z=typeof window!="undefined"&&window.document&&window.document.createElement?br:xr;var D={};yr(D,{assign:()=>wr,batchedUpdates:()=>N,colorNames:()=>k,createStringInterpolator:()=>re,frameLoop:()=>M,now:()=>te,requestAnimationFrame:()=>he,skipAnimation:()=>oe,to:()=>ae,willAdvance:()=>me});var vr=function(t){return he(t)},mt=function(){function t(e){e===void 0&&(e=vr);var r=!0,n=!1,i=0,s=[],a=0,u=new Set,c=new Set,o=new Set,d=function(x){var h=s.indexOf(x);h<0&&(h=s.findIndex(function(y){return y.priority>x.priority}),s.splice(~h?h:s.length,0,x))},l=function(){if(!r)try{P(),e(l)}catch(x){console.error(x)}},p=function(){r&&(r=!1,i==0&&(i=te(),e(l)))},_=[];this.setTimeout=function(x,h){var y=te()+h,v=function(){var b=_.findIndex(function(E){return E.cancel==v});b>=0&&_.splice(b,1)},S=ht(_,function(b){return b.time>y}),g={time:y,handler:x,cancel:v};return _.splice(S,0,g),p(),g};var P=this.advance=function(){var x=te();if(u.size&&(u.forEach(d),u.clear()),_.length&&N(function(){var y=ht(_,function(v){return v.time>x});_.splice(0,y).forEach(function(v){return v.handler()})}),x>i){var h=Math.min(64,x-i);i=x,N(function(){s.length&&(me(s),s=s.filter(function(y){return a=y.priority,y.idle||y.advance(h),!y.idle}),a=0),c.size&&(c.forEach(function(y){return y(x)}),c.clear()),o.size&&(n=!0,o.forEach(function(y){return y(x)}),o.clear(),n=!1)})}};if(this.start=function(x){a>x.priority?u.add(x):(d(x),p())},this.onFrame=function(x){c.add(x),p()},this.onWrite=function(x){n?x(i):o.add(x)},typeof process!="undefined"&&!1){var T=function(){r=!0,u.clear(),_.length=0};Object.defineProperties(this,{_animations:{get:function(){return s}},_dispose:{get:function(){return T}}})}}return t}();function ht(t,e){var r=t.findIndex(e);return r<0?t.length:r}var Q=function(){},pt=function(t,e,r){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})},f={arr:Array.isArray,obj:function(t){return!!t&&t.constructor.name==="Object"},fun:function(t){return typeof t=="function"},str:function(t){return typeof t=="string"},num:function(t){return typeof t=="number"},und:function(t){return t===void 0}};function W(t,e){if(f.arr(t)){if(!f.arr(e)||t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}var ie=function(t){return f.str(t)&&(t[0]=="#"||/\d/.test(t)||!!(k&&k[t]))},m=function(t,e,r){f.fun(t.forEach)?t.forEach(e,r):Object.keys(t).forEach(function(n){return e.call(r,t[n],n)})},A=function(t){return f.und(t)?[]:f.arr(t)?t:[t]};function se(t,e){if(t.size){var r=Array.from(t);t.clear(),m(r,e)}}var re,M=new mt,ae,te=function(){return performance.now()},k=null,oe=!1,he=typeof window!="undefined"?window.requestAnimationFrame:function(){return-1},N=function(t){return t()},me=Q,wr=function(t){var e;return e=Object.assign({to:ae,now:te,frameLoop:M,colorNames:k,skipAnimation:oe,createStringInterpolator:re,requestAnimationFrame:he,batchedUpdates:N,willAdvance:me},_r(t)),ae=e.to,te=e.now,M=e.frameLoop,k=e.colorNames,oe=e.skipAnimation,re=e.createStringInterpolator,he=e.requestAnimationFrame,N=e.batchedUpdates,me=e.willAdvance,e};function _r(t){var e={};for(var r in t)t[r]!==void 0&&(e[r]=t[r]);return e}import{useEffect as gt,useRef as yt,useState as Pr}from"react";var Re=function(t){return gt(t,[])},pe=function(){var t=Pr(0)[1],e=yt(!1);return Re(function(){return function(){e.current=!0}}),function(){e.current||t({})}};function xt(t){var e=yt(void 0);return gt(function(){e.current=t}),e.current}var Y=function(t,e,r){if(f.fun(t))return t;if(f.arr(t))return Y({range:t,output:e,extrapolate:r});if(f.str(t.output[0]))return re(t);var n=t,i=n.output,s=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||function(o){return o};return function(o){var d=Rr(o,s);return Sr(o,s[d],s[d+1],i[d],i[d+1],c,a,u,n.map)}};function Sr(t,e,r,n,i,s,a,u,c){var o=c?c(t):t;if(o<e){if(a==="identity")return o;a==="clamp"&&(o=e)}if(o>r){if(u==="identity")return o;u==="clamp"&&(o=r)}return n===i?n:e===r?t<=e?n:i:(e===-Infinity?o=-o:r===Infinity?o=o-e:o=(o-e)/(r-e),o=s(o),n===-Infinity?o=-o:i===Infinity?o=o+n:o=o*(i-n)+n,o)}function Rr(t,e){for(var r=1;r<e.length-1&&!(e[r]>=t);++r);return r-1}var bt=Symbol.for("FluidValue:config");function $(t){var e=F(t);return e?e.get():t}function F(t){if(t)return t[bt]}function Ir(t,e){Object.defineProperty(t,bt,{value:e,configurable:!0})}var Ie=function(){function t(){Ir(this,this)}return t}();function w(){return w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},w.apply(this,arguments)}import{createContext as Dr,useContext as Gt,createElement as Ye,useRef as Xe,useState as Mr,useMemo as Dt,useImperativeHandle as zr,Fragment as Qr}from"react";import{forwardRef as Er,useRef as Tr,createElement as Cr}from"react";var ge=Symbol.for("Animated:node"),Or=t=>!!t&&t[ge]===t,B=t=>t&&t[ge],Ee=(t,e)=>pt(t,ge,e),ye=t=>t&&t[ge]&&t[ge].getPayload(),We=class{constructor(){this.payload=void 0,Ee(this,this)}getPayload(){return this.payload||[]}},H=class extends We{constructor(e){super();this._value=e,this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,f.num(this._value)&&(this.lastPosition=this._value)}static create(e,r){return new H(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return f.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,f.num(this._value)&&(this.elapsedTime=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ne=class extends H{constructor(e,r){super(0);this._value=void 0,this._string=null,this._toString=void 0,this._toString=Y({output:[e,r]})}static create(e,r=e){if(f.str(e)&&f.str(r))return new ne(e,r);throw TypeError('Expected "from" and "to" to be strings')}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(!f.num(e))this._string=e,this._value=1;else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Y({output:[this.getValue(),e]})),this._value=0,super.reset()}},Te={current:null},fe=class extends We{constructor(e=null){super();this.source=void 0,this.setValue(e)}getValue(e){if(!this.source)return null;let r={};return m(this.source,(n,i)=>{if(Or(n))r[i]=n.getValue(e);else{let s=F(n);s?r[i]=s.get():e||(r[i]=n)}}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&m(this.payload,e=>e.reset())}_makePayload(e){if(e){let r=new Set;return m(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){F(e)&&Te.current&&Te.current.dependencies.add(e);let n=ye(e);n&&m(n,i=>this.add(i))}},ue=class extends fe{constructor(e,r){super(null);this.source=void 0,super.setValue(this._makeAnimated(e,r))}static create(e,r){return new ue(e,r)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let r=this.getPayload();e&&e.length==r.length?m(r,(n,i)=>n.setValue(e[i])):(this.source=this._makeAnimated(e),this.payload=this._makePayload(this.source))}_makeAnimated(e,r=e){return e?e.map((n,i)=>(ie(n)?ne:H).create(n,r[i])):[]}},vt=class extends fe{constructor(e){super(null);this.update=e,this.dirty=!1}setValue(e,r){if(!!e){if(r&&(Te.current=r,e.style)){let{createAnimatedStyle:n}=r.host;e=w(w({},e),{},{style:n(e.style)})}super.setValue(e),Te.current=null}}onParentChange({type:e}){!this.dirty&&e==="change"&&(this.dirty=!0,M.onFrame(()=>{this.dirty=!1,this.update()}))}},_t=(t,e)=>Er((r,n)=>{let i=Tr(null),s=!f.fun(t)||t.prototype&&t.prototype.isReactComponent,a=pe(),u=new vt(()=>{let o=i.current;s&&!o||(o?e.applyAnimatedValues(o,u.getValue(!0)):!1)===!1&&a()}),c=new Set;return u.setValue(r,{dependencies:c,host:e}),z(()=>(m(c,o=>o.addChild(u)),()=>m(c,o=>o.removeChild(u)))),Cr(t,w({},e.getComponentProps(u.getValue()),{ref:s&&(o=>{i.current=Ar(n,o)})}))});function Ar(t,e){return t&&(f.fun(t)?t(e):t.current=e),e}var wt=Symbol.for("AnimatedComponent"),St=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=i=>new fe(i),getComponentProps:n=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},s=a=>{let u=Pt(a)||"Anonymous";return f.str(a)?a=_t(a,i):a=a[wt]||(a[wt]=_t(a,i)),a.displayName="Animated("+u+")",a};return m(t,(a,u)=>{f.str(u)||(u=Pt(a)),s[u]=s(a)}),{animated:s}},Pt=t=>f.str(t)?t:t&&f.str(t.displayName)?t.displayName:f.fun(t)&&t.name||null;import{useState as Fr,useRef as Vr,useEffect as kr}from"react";function jr(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function $e(t,e){var r=Fr(function(){return{inputs:e,result:t()}})[0],n=Vr(r),i=Boolean(e&&n.current.inputs&&jr(e,n.current.inputs)),s=i?n.current:{inputs:e,result:t()};return kr(function(){n.current=s},[s]),s.result}function Rt(t,e){return $e(function(){return t},e)}var Nr="react-spring: ",It=!1;function Be(){It||(It=!0,console.warn(Nr+'The "interpolate" function is deprecated in v10 (use "to" instead)'))}var xe=function(){return xe=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},xe.apply(this,arguments)};var L="[-+]?\\d*\\.?\\d+",Ce=L+"%";function Oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Et=new RegExp("rgb"+Oe(L,L,L)),Tt=new RegExp("rgba"+Oe(L,L,L,L)),Ct=new RegExp("hsl"+Oe(L,Ce,Ce)),Ot=new RegExp("hsla"+Oe(L,Ce,Ce,L)),At=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ft=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vt=/^#([0-9a-fA-F]{6})$/,kt=/^#([0-9a-fA-F]{8})$/;function Lt(t){var e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Vt.exec(t))?parseInt(e[1]+"ff",16)>>>0:k&&k[t]!==void 0?k[t]:(e=Et.exec(t))?(ce(e[1])<<24|ce(e[2])<<16|ce(e[3])<<8|255)>>>0:(e=Tt.exec(t))?(ce(e[1])<<24|ce(e[2])<<16|ce(e[3])<<8|qt(e[4]))>>>0:(e=At.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=kt.exec(t))?parseInt(e[1],16)>>>0:(e=Ft.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Ct.exec(t))?(jt(Nt(e[1]),Ae(e[2]),Ae(e[3]))|255)>>>0:(e=Ot.exec(t))?(jt(Nt(e[1]),Ae(e[2]),Ae(e[3]))|qt(e[4]))>>>0:null}function qr(t,e,r){return t<60?[e,r,0]:t<120?[r,e,0]:t<180?[0,e,r]:t<240?[0,r,e]:t<300?[r,0,e]:[e,0,r]}function jt(t,e,r){var n=(1-Math.abs(2*r-1))*e,i=n*(1-Math.abs(t/60%2-1)),s=r-n/2,a=qr(t,n,i),u=a[0],c=a[1],o=a[2];return Math.round((u+s)*255)<<24|Math.round((c+s)*255)<<16|Math.round((o+s)*255)<<8}function ce(t){var e=parseInt(t,10);return e<0?0:e>255?255:e}function Nt(t){var e=parseFloat(t);return(e%360+360)%360/360}function qt(t){var e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ae(t){var e=parseFloat(t);return e<0?0:e>100?1:e/100}function He(t){var e=Lt(t);if(e===null)return t;e=e||0;var r=(e&4278190080)>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,s=(e&255)/255;return"rgba("+r+", "+n+", "+i+", "+s+")"}var Ut=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Lr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ke,Ur=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Gr=function(t,e,r,n,i){return"rgba("+Math.round(e)+", "+Math.round(r)+", "+Math.round(n)+", "+i+")"},Fe=function(t){Ke||(Ke=k?new RegExp("("+Object.keys(k).join("|")+")","g"):/^\b$/);var e=t.output.map(function(s){return $(s).replace(Lr,He).replace(Ke,He)}),r=e.map(function(s){return s.match(Ut).map(Number)}),n=r[0].map(function(s,a){return r.map(function(u){if(!(a in u))throw Error('The arity of each "output" value must be equal');return u[a]})}),i=n.map(function(s){return Y(xe(xe({},t),{output:s}))});return function(s){var a=0;return e[0].replace(Ut,function(){return String(i[a++](s))}).replace(Ur,Gr)}};function Wr(t,e,r=1e3){z(()=>{if(e){let n=0;m(t,(i,s)=>{if(!!i.current){let{controllers:a}=i.current;if(a.length){let u=r*e[s];isNaN(u)?u=n:n=u,m(a,c=>{m(c.queue,o=>{o.delay=u+(o.delay||0)}),c.start()})}}})}else{let n=Promise.resolve();m(t,i=>{let{controllers:s,start:a}=i.current||{};if(s&&s.length){let u=s.map(c=>{let o=c.queue;return c.queue=[],o});n=n.then(()=>(m(s,(c,o)=>c.queue.push(...u[o])),a()))}})}})}var $r={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}},Br=t=>t,Ze=w(w({},$r.default),{},{mass:1,damping:1,easing:Br,clamp:!1}),Mt=class{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,Ze)}};function Hr(t,e,r){r&&(r=w({},r),zt(r,e),e=w(w({},r),e)),zt(t,e),Object.assign(t,e);for(let a in Ze)t[a]==null&&(t[a]=Ze[a]);let{mass:n,frequency:i,damping:s}=t;return f.und(i)||(i<.01&&(i=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/i,2)*n,t.friction=4*Math.PI*s*n/i),t}function zt(t,e){if(!f.und(e.decay))t.duration=void 0;else{let r=!f.und(e.tension)||!f.und(e.friction);(r||!f.und(e.frequency)||!f.und(e.damping)||!f.und(e.mass))&&(t.duration=void 0,t.decay=void 0),r&&(t.frequency=void 0)}}var Qt=[],Wt=class{constructor(){this.changed=!1,this.values=Qt,this.toValues=null,this.fromValues=Qt,this.to=void 0,this.from=void 0,this.config=new Mt,this.immediate=!1,this.onStart=void 0,this.onChange=void 0,this.onRest=[]}},Je=(t,e)=>$e(t,e||[{}]);function X(t,...e){return f.fun(t)?t(...e):t}var Ve=(t,e)=>t===!0||!!(e&&t&&(f.fun(t)?t(e):A(t).includes(e))),ke=(t,e,r)=>t&&(f.fun(t)?t(e,r):f.arr(t)?t[e]:w({},t)),Kr=(t,e)=>!f.und($t(t,e)),$t=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,je=(t,e=[],r={})=>{let n=Yr;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));for(let i of n){let s=t[i];!f.und(s)&&!e.includes(i)&&(r[i]=s)}return r},Xr=(t,e,r)=>je(e,r,t),Yr=["pause","cancel","config","immediate","onDelayEnd","onProps","onStart","onChange","onRest"],Zr={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onDelayEnd:1,onProps:1,onStart:1,onChange:1,onRest:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,keys:1,callId:1,parentId:1};function Jr(t){let e={},r=0;if(m(t,(n,i)=>{Zr[i]||(e[i]=n,r++)}),r)return e}function et(t){let e=Jr(t);if(e){let r={to:e};return m(t,(n,i)=>i in e||(r[i]=n)),r}return w({},t)}function le(t){let e=F(t);return e?le(e.get()):f.arr(t)?t.map(le):ie(t)?re({range:[0,1],output:[t,t]})(1):t}function Bt(t,{key:e,props:r,state:n,actions:i}){return new Promise((s,a)=>{let u,c,o=!1,d=Ve(r.cancel,e);d?_():(u=X(r.delay||0,e),o=Ve(r.pause,e),o?(n.resumeQueue.add(p),i.pause()):(i.resume(),p()));function l(){n.resumeQueue.add(p),c.cancel(),u=c.time-D.now()}function p(){u>0?(n.pauseQueue.add(l),c=D.frameLoop.setTimeout(_,u)):_()}function _(){n.pauseQueue.delete(l),t<=(n.cancelId||0)&&(d=!0);try{i.start(w(w({},r),{},{callId:t,delay:u,cancel:d,pause:o}),s)}catch(P){a(P)}}})}var tt=(t,e)=>e.length==1?e[0]:e.some(r=>r.cancelled)?ve(t):e.every(r=>r.noop)?Ht(t):be(t,e.every(r=>r.finished)),Ht=(t,e=t.get())=>({value:e,noop:!0,finished:!0,target:t}),be=(t,e,r=t.get())=>({value:r,finished:e,target:t}),ve=(t,e=t.get())=>({value:e,cancelled:!0,target:t});async function Kt(t,e,r,n){e.pause&&await new Promise(o=>{r.resumeQueue.add(o)});let{callId:i,parentId:s,onRest:a}=e,{asyncTo:u,promise:c}=r;return!s&&t===u&&!e.reset?c:r.promise=(async()=>{r.asyncId=i,r.asyncTo=t;let o=je(e,["onRest"]),d,l,p=new Promise((h,y)=>(d=h,l=y)),_=h=>(...y)=>{let v=S=>{throw S instanceof Ne&&l(S),S};try{return h(...y).catch(v)}catch(S){v(S)}},P=h=>{let y=i<=(r.cancelId||0)&&ve(n)||i!==r.asyncId&&be(n,!1);if(y)throw h.result=y,h},T=_((h,y)=>{let v=new Ne;P(v);let S=f.obj(h)?w({},h):w(w({},y),{},{to:h});return S.parentId=i,m(o,(g,b)=>{f.und(S[b])&&(S[b]=g)}),n.start(S).then(async g=>(P(v),n.is("PAUSED")&&await new Promise(b=>{r.resumeQueue.add(b)}),g))}),x;try{let h;f.arr(t)?h=(async y=>{for(let v of y)await T(v)})(t):f.fun(t)&&(h=Promise.resolve(t(T,n.stop.bind(n)))),await Promise.all([h.then(d),p]),x=be(n,!0)}catch(h){if(h instanceof Ne)x=h.result;else throw h}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?u:void 0,r.promise=s?c:void 0)}return f.fun(a)&&N(()=>{a(x)}),x})()}function qe(t,e){t.cancelId=e,t.asyncId=t.asyncTo=t.promise=void 0}var Ne=class 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}},Yt=t=>t instanceof Le,en=1,Le=class extends Ie{constructor(...e){super(...e);this.id=en++,this.key=void 0,this._priority=0,this._children=new Set}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=B(this);return e&&e.getValue()}to(...e){return ae(this,e)}interpolate(...e){return Be(),ae(this,e)}addChild(e){this._children.size||this._attach(),this._children.add(e)}removeChild(e){this._children.delete(e),this._children.size||this._detach()}onParentChange({type:e}){this.idle?e=="start"&&(this._reset(),this._start()):e=="reset"&&this._reset()}_attach(){}_detach(){}_reset(){this._emit({type:"reset",parent:this})}_start(){this._emit({type:"start",parent:this})}_onChange(e,r=!1){this._emit({type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||M.start(this),this._emit({type:"priority",parent:this,priority:e})}_emit(e){m(Array.from(this._children),r=>{r.onParentChange(e)})}},Ue="CREATED",rt="IDLE",q="ACTIVE",Ge="PAUSED",De="DISPOSED",Xt=class extends Le{constructor(e,r){super();if(this.key=void 0,this.animation=new Wt,this.queue=void 0,this._phase=Ue,this._state={pauseQueue:new Set,resumeQueue:new Set},this._defaultProps={},this._lastCallId=0,this._lastToId=0,!f.und(e)||!f.und(r)){let n=f.obj(e)?w({},e):w(w({},r),{},{from:e});n.default=!0,this.start(n)}}get idle(){return!this.is(q)&&!this._state.asyncTo}get goal(){return $(this.animation.to)}get velocity(){let e=B(this);return e instanceof H?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}advance(e){let r=!0,n=!1,i=this.animation,{config:s,toValues:a}=i,u=ye(i.to);if(!u){let c=F(i.to);c&&(a=A(c.get()))}return i.values.forEach((c,o)=>{if(!c.done){let d=u?u[o].lastPosition:a[o],l=i.immediate,p=d;if(!l){if(p=c.lastPosition,s.tension<=0){c.done=!0;return}let _=c.elapsedTime+=e,P=i.fromValues[o],T=c.v0!=null?c.v0:c.v0=f.arr(s.velocity)?s.velocity[o]:s.velocity,x;if(f.und(s.duration))if(s.decay){let h=s.decay===!0?.998:s.decay,y=Math.exp(-(1-h)*_);p=P+T/(1-h)*(1-y),l=Math.abs(c.lastPosition-p)<.1,x=T*y}else{x=c.lastVelocity==null?T:c.lastVelocity;let h=s.precision||(P==d?.005:Math.min(1,Math.abs(d-P)*.001)),y=s.restVelocity||h/10,v=s.clamp?0:s.bounce,S=!f.und(v),g=P==d?c.v0>0:P<d,b,E=!1,R=1,I=Math.ceil(e/R);for(let V=0;V<I&&(b=Math.abs(x)>y,!(!b&&(l=Math.abs(d-p)<=h,l)));++V){S&&(E=p==d||p>d==g,E&&(x=-x*v,p=d));let U=-s.tension*1e-6*(p-d),Z=-s.friction*.001*x,de=(U+Z)/s.mass;x=x+de*R,p=p+x*R}}else{let h=s.progress||0;s.duration<=0?h=1:h+=(1-h)*Math.min(1,_/s.duration),p=P+s.easing(h)*(d-P),x=(p-c.lastPosition)/e,l=h==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),l=!0)}u&&!u[o].done&&(l=!1),l?c.done=!0:r=!1,c.setValue(p,s.round)&&(n=!0)}}),r?this.finish():n&&this._onChange(this.get()),r}is(e){return this._phase==e}set(e){return N(()=>{if(this._focus(e),this._set(e)&&!this.is(q))return this._onChange(this.get(),!0);this._stop()}),this}pause(){Me(this,"pause"),this.is(Ge)||(this._phase=Ge,se(this._state.pauseQueue,e=>e()))}resume(){Me(this,"resume"),this.is(Ge)&&(this._start(),se(this._state.resumeQueue,e=>e()))}finish(e){if(this.resume(),this.is(q)){let r=this.animation;!r.config.decay&&f.und(e)&&(e=r.to),f.und(e)||this._set(e),N(()=>{r.changed||(r.changed=!0,r.onStart&&r.onStart(this)),this._stop()})}return this}update(e){return Me(this,"update"),(this.queue||(this.queue=[])).push(e),this}async start(e,r){Me(this,"start");let n;f.und(e)?(n=this.queue||[],this.queue=[]):n=[f.obj(e)?e:w(w({},r),{},{to:e})];let i=await Promise.all(n.map(s=>this._update(s)));return tt(this,i)}stop(e){return this.is(De)||(qe(this._state,this._lastCallId),this._focus(this.get()),N(()=>this._stop(e))),this}reset(){this._update({reset:!0})}dispose(){this.is(De)||(this.animation&&(this.animation.onRest=[]),this.stop(),this._phase=De)}onParentChange(e){super.onParentChange(e),e.type=="change"?this.is(q)||(this._reset(),this.is(Ge)||this._start()):e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode({to:e,from:r,reverse:n}){let i=this.key||"";e=!f.obj(e)||F(e)?e:e[i],r=!f.obj(r)||F(r)?r:r[i];let s={to:e,from:r};if(this.is(Ue)){n&&([e,r]=[r,e]),r=$(r);let a=this._updateNode(f.und(r)?$(e):r);a&&!f.und(r)&&a.setValue(r)}return s}_updateNode(e){let r=B(this);if(!f.und(e)){let n=this._getNodeType(e);(!r||r.constructor!==n)&&Ee(this,r=n.create(e))}return r}_getNodeType(e){let r=B(e);return r?r.constructor:f.arr(e)?ue:ie(e)?ne:H}_update(e,r){let n=this._defaultProps,i=a=>{let u=$t(e,a);f.und(u)||(n[a]=u),n[a]&&(e[a]=n[a])};i("cancel"),i("pause");let s=this._prepareNode(e);return Bt(++this._lastCallId,{key:this.key,props:e,state:this._state,actions:{pause:this.pause.bind(this),resume:this.resume.bind(this),start:this._merge.bind(this,s)}}).then(a=>{if(e.loop&&a.finished&&!(r&&a.noop)){let u=Zt(e);if(u)return this._update(u,!0)}return a})}_merge(e,r,n){if(r.cancel)return this.stop(!0),n(ve(this));let{key:i,animation:s}=this,a=this._defaultProps,u=!f.und(e.to),c=!f.und(e.from);if(u||c)if(r.callId>this._lastToId)this._lastToId=r.callId;else return n(ve(this));let o=O=>f.und(r[O])?a[O]:r[O],d=_e(o("onDelayEnd"),i);d&&d(r,this),r.default&&Xr(a,r,["pause","cancel"]);let{to:l,from:p}=s,{to:_=l,from:P=p}=e;c&&!u&&(_=P),r.reverse&&([_,P]=[P,_]);let T=!W(P,p);T&&(s.from=P);let x=!W(_,l);x&&this._focus(_);let h=F(_),y=F(P);y&&(P=y.get());let v=f.arr(r.to)||f.fun(r.to),{config:S}=s,{decay:g,velocity:b}=S;r.config&&!v&&Hr(S,X(r.config,i),r.config!==a.config?X(a.config,i):void 0);let E=B(this);if(!E||f.und(_))return n(be(this,!0));let R=f.und(r.reset)?c&&!r.default:!f.und(P)&&Ve(r.reset,i),I=R?P:this.get(),V=le(_),U=f.num(V)||f.arr(V)||ie(V),Z=!v&&(!U||Ve(a.immediate||r.immediate,i));if(x)if(Z)E=this._updateNode(V);else{let O=this._getNodeType(_);if(O!==E.constructor)throw Error("Cannot animate between "+E.constructor.name+" and "+O.name+', as the "to" prop suggests')}let de=E.constructor,C=!!h,J=!1;if(!C){let O=R||this.is(Ue)&&T;(x||O)&&(J=W(le(I),V),C=!J),(!W(S.decay,g)||!W(S.velocity,b))&&(C=!0)}if(J&&this.is(q)&&(s.changed&&!R?C=!0:C||this._stop()),!v){(C||F(l))&&(s.values=E.getPayload(),s.toValues=h?null:de==ne?[1]:A(V)),s.immediate=Z,s.onStart=_e(o("onStart"),i),s.onChange=_e(o("onChange"),i);let O=s.onRest,G=R&&!r.onRest?O[0]||Q:nt(_e(o("onRest"),i),this);if(C){s.onRest=[G,nt(n,this)];let K=R?0:1;K<O.length&&N(()=>{for(;K<O.length;K++)O[K]()})}else(R||r.onRest)&&(s.onRest[0]=G)}let j=_e(o("onProps"),i);j&&j(r,this),R&&E.setValue(I),v?n(Kt(r.to,r,this._state,this)):C?(R&&(this._phase=rt),this._reset(),this._start()):this.is(q)&&!x?s.onRest.push(nt(n,this)):n(Ht(this,I))}_focus(e){let r=this.animation;if(e!==r.to){let n=F(r.to);n&&n.removeChild(this),r.to=e;let i=0;(n=F(e))&&(n.addChild(this),Yt(e)&&(i=(e.priority||0)+1)),this.priority=i}}_set(e){let r=F(e);r&&(e=r.get());let n=B(this),i=n&&n.getValue();return n?n.setValue(e):this._updateNode(e),!W(e,i)}_onChange(e,r=!1){let n=this.animation;!n.changed&&!r&&(n.changed=!0,n.onStart&&n.onStart(this)),n.onChange&&n.onChange(e,this),super._onChange(e,r)}_reset(){let e=this.animation;B(this).reset(e.to),this.is(q)||(e.changed=!1),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),super._reset()}_start(){this.is(q)||(this._phase=q,super._start(),oe?this.finish():M.start(this))}_stop(e){if(this.resume(),this.is(q)){this._phase=rt,this._onChange(this.get(),!0);let r=this.animation;m(r.values,i=>{i.done=!0});let n=r.onRest;n.length&&(r.onRest=[r.toValues?Q:n[0]],r.changed||(n[0]=Q),m(n,i=>i(e)))}}};function Me(t,e){if(t.is(De))throw Error('Cannot call "'+e+'" of disposed "'+t.constructor.name+'" object')}function _e(t,e){return f.fun(t)?t:e&&t?t[e]:void 0}var nt=(t,e)=>{let{to:r}=e.animation;return t?n=>{if(n)t(ve(e));else{let i=le(r),s=le(e.get()),a=W(s,i);t(be(e,a))}}:Q};function Zt(t,e=t.loop,r=t.to){let n=X(e);if(n){let i=n!==!0&&et(n),s=(i||t).reverse,a=!i||i.reset;return we(w(w({},t),{},{loop:e,default:!1,to:!s||f.arr(r)||f.fun(r)?r:void 0,from:a?t.from:void 0,reset:a},i))}}function we(t){let{to:e,from:r}=t=et(t),n=new Set;return r?Jt(r,n):delete t.from,f.obj(e)?Jt(e,n):e||delete t.to,t.keys=n.size?Array.from(n):null,t}function tn(t){let e=we(t);return f.und(e.default)&&(e.default=je(e,[e.immediate===!0&&"immediate"])),e}function Jt(t,e){m(t,(r,n)=>r!=null&&e.add(n))}var rn=["onStart","onChange","onRest"],nn=1,it=class{constructor(e,r){this.id=nn++,this.springs={},this.queue=[],this._flush=void 0,this._initialProps=void 0,this._phase=Ue,this._lastAsyncId=0,this._active=new Set,this._state={pauseQueue:new Set,resumeQueue:new Set},this._events={onStart:new Set,onChange:new Set,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),e&&this.start(e)}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}is(e){return this._phase==e}get(){let e={};return this.each((r,n)=>e[n]=r.get()),e}update(e){return e&&this.queue.push(we(e)),this}start(e){let r=e?A(e).map(we):this.queue;return e||(this.queue=[]),this._flush?this._flush(this,r):(er(this,r),st(this,r))}stop(e){if(f.und(e))this.each(r=>r.stop()),qe(this._state,this._lastAsyncId);else{let r=this.springs;m(A(e),n=>r[n].stop())}return this}pause(e){if(f.und(e))this.each(r=>r.pause());else{let r=this.springs;m(A(e),n=>r[n].pause())}return this}resume(e){if(f.und(e))this.each(r=>r.resume());else{let r=this.springs;m(A(e),n=>r[n].resume())}return this}reset(){return this.each(e=>e.reset()),this}each(e){m(this.springs,e)}dispose(){this._state.asyncTo=void 0,this.each(e=>e.dispose()),this.springs={}}_onFrame(){let{onStart:e,onChange:r,onRest:n}=this._events,i=this._active.size>0;i&&this._phase!=q&&(this._phase=q,se(e,a=>a(this)));let s=(r.size||!i&&n.size)&&this.get();se(r,a=>a(s)),i||(this._phase=rt,se(n,([a,u])=>{u.value=s,a(u)}))}onParentChange(e){e.type=="change"&&(this._active[e.idle?"delete":"add"](e.parent),M.onFrame(this._onFrame))}};function st(t,e){return Promise.all(e.map(r=>tr(t,r))).then(r=>tt(t,r))}function tr(t,e,r){let{to:n,loop:i,onRest:s}=e;i&&(e.loop=!1);let a=f.arr(n)||f.fun(n)?n:void 0;a?(e.to=void 0,e.onRest=void 0):m(rn,d=>{let l=e[d];if(f.fun(l)){let p=t._events[d];p instanceof Set?e[d]=()=>p.add(l):e[d]=({finished:_,cancelled:P})=>{let T=p.get(l);T?(_||(T.finished=!1),P&&(T.cancelled=!0)):p.set(l,{value:null,finished:_,cancelled:P})}}});let c=(e.keys||Object.keys(t.springs)).map(d=>t.springs[d].start(e)),o=t._state;return a?c.push(Bt(++t._lastAsyncId,{props:e,state:o,actions:{pause:Q,resume:Q,start(d,l){d.onRest=s,d.cancel?Kr(d,"cancel")&&qe(o,d.callId):l(Kt(a,d,o,t))}}})):!e.keys&&e.cancel===!0&&qe(o,t._lastAsyncId),Promise.all(c).then(d=>{let l=tt(t,d);if(i&&l.finished&&!(r&&l.noop)){let p=Zt(e,i,n);if(p)return er(t,[p]),tr(t,p,!0)}return l})}function at(t,e){let r=w({},t.springs);return e&&m(A(e),n=>{f.und(n.keys)&&(n=we(n)),f.obj(n.to)||(n=w(w({},n),{},{to:void 0})),nr(r,n,i=>rr(i))}),r}function ot(t,e){m(e,(r,n)=>{t.springs[n]||(t.springs[n]=r,r.addChild(t))})}function rr(t,e){let r=new Xt;return r.key=t,e&&r.addChild(e),r}function nr(t,e,r){e.keys&&m(e.keys,n=>{(t[n]||(t[n]=r(n)))._prepareNode(e)})}function er(t,e){m(e,r=>{nr(t.springs,r,n=>rr(n,t))})}var Pe=Dr({}),ir=t=>{let{children:e}=t,r=ee(t,["children"]),n=Gt(Pe);r=Je(()=>w(w({},n),r),[n,r.pause,r.cancel,r.immediate,r.config]);let{Provider:i}=Pe;return Ye(i,{value:r},e)};ir.Provider=Pe.Provider;ir.Consumer=Pe.Consumer;var sr=()=>Gt(Pe),ar={create:t=>({get controllers(){return t()},update(e){return m(t(),(r,n)=>{r.update(ke(e,n,r))}),this},async start(e){let r=await Promise.all(t().map((n,i)=>{let s=ke(e,i,n);return n.start(s)}));return{value:r.map(n=>n.value),finished:r.every(n=>n.finished)}},stop:e=>m(t(),r=>r.stop(e)),pause:e=>m(t(),r=>r.pause(e)),resume:e=>m(t(),r=>r.resume(e))})};function ft(t,e,r){let n=f.fun(e)&&e;n&&!r&&(r=[]);let i=Xe(0),s=pe(),[a]=Mr(()=>({ctrls:[],queue:[],flush(h,y){let v=at(h,y);return i.current>0&&!a.queue.length&&!Object.keys(v).some(g=>!h.springs[g])?st(h,y):new Promise(g=>{ot(h,v),a.queue.push(()=>{g(st(h,y))}),s()})}})),u=Xe(),c=[...a.ctrls],o=[],d=xt(t)||0,l=c.slice(t,d);Je(()=>{c.length=t,p(d,t)},[t]),Je(()=>{p(0,Math.min(d,t))},r);function p(h,y){for(let v=h;v<y;v++){let S=c[v]||(c[v]=new it(null,a.flush)),g=n?n(v,S):e[v];g&&(g=o[v]=tn(g),v==0&&(u.current=g.ref,g.ref=void 0))}}let _=Dt(()=>ar.create(()=>a.ctrls),[]),P=c.map((h,y)=>at(h,o[y])),T=sr();z(()=>{i.current++,a.ctrls=c,u.current&&(u.current.current=_);let{queue:h}=a;h.length&&(a.queue=[],m(h,y=>y())),m(l,y=>y.dispose()),m(c,(y,v)=>{let S=P[v];ot(y,S),y.start({default:T});let g=o[v];g&&(u.current?y.queue.push(g):y.start(g))})}),Re(()=>()=>{m(a.ctrls,h=>h.dispose())});let x=P.map(h=>w({},h));return n||arguments.length==3?[x,_.start,_.stop]:x}function sn(t,e){let r=f.fun(t),[[n],i,s]=ft(1,r?t:[t],r?e||[]:e);return r||arguments.length==2?[n,i,s]:n}function an(t,e,r){let n=f.fun(e)&&e;n&&!r&&(r=[]);let i=[],s=ft(t,(a,u)=>(i[a]=u,ke(e,a,u)),r||[{}]);if(z(()=>{let a=f.obj(e)&&e.reverse;for(let u=0;u<i.length;u++){let c=i[u+(a?1:-1)];c&&i[u].update({to:c.springs}).start()}},r),n||arguments.length==3){let a=s[1];return s[1]=Rt(u=>{let c=f.obj(u)&&u.reverse;return a((o,d)=>{let l=ke(u,o,d),p=i[o+(c?1:-1)];return p&&(l.to=p.springs),l})},r),s}return s[0]}var or="mount",ze="enter",fr="update",ut="leave";function fn(t,e,r){let{ref:n,reset:i,sort:s,trail:a=0,expires:u=!0}=e,c=A(t),o=[],d=on(c,e),l=Xe(null),p=i?null:l.current;z(()=>{l.current=o}),Re(()=>()=>m(l.current,g=>{g.expired&&clearTimeout(g.expirationId),g.ctrl.dispose()}));let _=[];if(p&&m(p,(g,b)=>{g.expired?clearTimeout(g.expirationId):(b=_[b]=d.indexOf(g.key),~b&&(o[b]=g))}),m(c,(g,b)=>{o[b]||(o[b]={key:d[b],item:g,phase:or,ctrl:new it})}),_.length){let g=-1;m(_,(b,E)=>{let R=p[E];~b?(g=o.indexOf(R),o[g]=w(w({},R),{},{item:c[b]})):e.leave&&o.splice(++g,0,R)})}f.fun(s)&&o.sort((g,b)=>s(g.item,b.item));let P=-a,T=pe(),x=je(e),h=new Map;m(o,(g,b)=>{let E=g.key,R=g.phase,I,V;if(R==or)I=e.enter,V=ze;else{let C=d.indexOf(E)<0;if(R!=ut)if(C)I=e.leave,V=ut;else if(I=e.update)V=fr;else return;else if(!C)I=e.enter,V=ze;else return}if(I=X(I,g.item,b),I=f.obj(I)?et(I):{to:I},!I.config){let C=e.config||x.config;I.config=X(C,g.item,b)}let U=w(w({},x),{},{delay:P+=a,reset:!1},I);if(V==ze&&f.und(U.from)){let C=f.und(e.initial)||p?e.from:e.initial;U.from=X(C,g.item,b)}let{onRest:Z}=U;U.onRest=C=>{let J=l.current,j=J.find(O=>O.key===E);if(!!j){if(f.fun(Z)&&Z(C,j),C.cancelled&&j.phase!=fr){j.phase=R;return}if(j.ctrl.idle){let O=J.every(G=>G.ctrl.idle);if(j.phase==ut){let G=X(u,j.item);if(G!==!1){let K=G===!0?0:G;if(j.expired=!0,!O&&K>0){K<=2147483647&&(j.expirationId=setTimeout(T,K));return}}}O&&J.some(G=>G.expired)&&T()}}};let de=at(g.ctrl,U);h.set(g,{phase:V,springs:de,payload:U})});let y=sr();z(()=>{m(o,g=>{g.ctrl.start({default:y})})},[y]);let v=Dt(()=>ar.create(()=>l.current.map(g=>g.ctrl)),[]);zr(n,()=>v),z(()=>{m(h,({phase:g,springs:b,payload:E},R)=>{ot(R.ctrl,b),y.cancel||(R.phase=g,g==ze&&R.ctrl.start({default:y}),R.ctrl[n?"update":"start"](E))})},i?void 0:r);let S=g=>Ye(Qr,null,o.map((b,E)=>{let{springs:R}=h.get(b)||b.ctrl,I=g(w({},R),b.item,b,E);return I&&I.type?Ye(I.type,w({},I.props,{key:f.str(b.key)||f.num(b.key)?b.key:b.ctrl.id,ref:I.ref})):I}));return arguments.length==3?[S,v.start,v.stop]:S}function on(t,{key:e,keys:r=e}){return f.und(r)?t:f.fun(r)?t.map(r):A(r)}var ct=class extends Le{constructor(e,r){super();this.source=e,this.key=void 0,this.idle=!0,this.calc=void 0,this.calc=Y(...r);let n=this._get(),i=f.arr(n)?ue:H;Ee(this,i.create(n))}advance(e){let r=this._get(),n=this.get();W(r,n)||(B(this).setValue(r),this._onChange(r,this.idle))}_get(){let e=f.arr(this.source)?this.source.map(r=>r.get()):A(this.source.get());return this.calc(...e)}_reset(){m(ye(this),e=>e.reset()),super._reset()}_start(){this.idle=!1,super._start(),oe?(this.idle=!0,this.advance()):M.start(this)}_attach(){let e=!0,r=1;m(A(this.source),n=>{Yt(n)&&(n.idle||(e=!1),r=Math.max(r,n.priority+1)),n.addChild(this)}),this.priority=r,e||(this._reset(),this._start())}_detach(){m(A(this.source),e=>{e.removeChild(this)}),this.idle=!0}onParentChange(e){e.type=="start"?this.advance():e.type=="change"?this.idle?this.advance():e.idle&&(this.idle=A(this.source).every(r=>r.idle!==!1),this.idle&&(this.advance(),m(ye(this),r=>{r.done=!0}))):e.type=="priority"&&(this.priority=A(this.source).reduce((r,n)=>Math.max(r,(n.priority||0)+1),0)),super.onParentChange(e)}};var un=(t,...e)=>(Be(),new ct(t,e));D.assign({createStringInterpolator:Fe,to:(t,e)=>new ct(t,e)});import{unstable_batchedUpdates as ln}from"react-dom";var cn={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},ur=cn;var cr=/^--/;function dn(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!cr.test(t)&&!(Se.hasOwnProperty(t)&&Se[t])?e+"px":(""+e).trim()}var lr={};function hn(t,e){if(!t.nodeType||!t.setAttribute)return!1;let r=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",n=e,{style:i,children:s,scrollTop:a,scrollLeft:u}=n,c=ee(n,["style","children","scrollTop","scrollLeft"]),o=Object.values(c),d=Object.keys(c).map(l=>r||t.hasAttribute(l)?l:lr[l]||(lr[l]=l.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));D.frameLoop.onWrite(()=>{s!==void 0&&(t.textContent=s);for(let l in i)if(i.hasOwnProperty(l)){let p=dn(l,i[l]);l==="float"?l="cssFloat":cr.test(l)?t.style.setProperty(l,p):t.style[l]=p}d.forEach((l,p)=>{t.setAttribute(l,o[p])}),a!==void 0&&(t.scrollTop=a),u!==void 0&&(t.scrollLeft=u)})}var Se={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},mn=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),pn=["Webkit","Ms","Moz","O"];Se=Object.keys(Se).reduce((t,e)=>(pn.forEach(r=>t[mn(r,e)]=t[e]),t),Se);var gn=/^(matrix|translate|scale|rotate|skew)/,yn=/^(translate)/,xn=/^(rotate|skew)/,lt=(t,e)=>f.num(t)&&t!==0?t+e:t,Qe=(t,e)=>f.arr(t)?t.every(r=>Qe(r,e)):f.num(t)?t===e:parseFloat(t)===e,dr=class extends fe{constructor(e){let{x:r,y:n,z:i}=e,s=ee(e,["x","y","z"]),a=[],u=[];(r||n||i)&&(a.push([r||0,n||0,i||0]),u.push(c=>["translate3d("+c.map(o=>lt(o,"px")).join(",")+")",Qe(c,0)])),m(s,(c,o)=>{if(o==="transform")a.push([c||""]),u.push(d=>[d,d===""]);else if(gn.test(o)){if(delete s[o],f.und(c))return;let d=yn.test(o)?"px":xn.test(o)?"deg":"";a.push(A(c)),u.push(o==="rotate3d"?([l,p,_,P])=>["rotate3d("+l+","+p+","+_+","+lt(P,d)+")",Qe(P,0)]:l=>[o+"("+l.map(p=>lt(p,d)).join(",")+")",Qe(l,o.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new hr(a,u)),super(s)}},hr=class extends Ie{constructor(e,r){super();this.inputs=e,this.transforms=r,this._value=null,this._children=new Set}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return m(this.inputs,(n,i)=>{let s=$(n[0]),[a,u]=this.transforms[i](f.arr(s)?s:n.map($));e+=" "+a,r=r&&u}),r?"none":e}addChild(e){this._children.size||m(this.inputs,r=>m(r,n=>{let i=F(n);i&&i.addChild(this)})),this._children.add(e)}removeChild(e){this._children.delete(e),this._children.size||m(this.inputs,r=>m(r,n=>{let i=F(n);i&&i.removeChild(this)}))}onParentChange(e){e.type=="change"&&(this._value=null),m(this._children,r=>{r.onParentChange(e)})}},bn=["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"];D.assign({colorNames:ur,createStringInterpolator:Fe,batchedUpdates:ln});var vn=St(bn,{applyAnimatedValues:hn,createAnimatedStyle:t=>new dr(t),getComponentProps:t=>ee(t,["scrollTop","scrollLeft"])}),_n=vn.animated;import{useEffect as wn,useState as Pn}from"react";var Sn="(prefers-reduced-motion: reduce)",mr=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),pr=()=>mr?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(Sn);function Rn(){let[t,e]=Pn(pr().matches);return wn(()=>{let r=pr(),n=()=>{e(r.matches)};return r.addListener(n),()=>{r.removeListener(n)}},[]),t}export{D as Globals,_n as animated,un as interpolate,mr as isRenderingOnServer,Wr as useChain,Rn as useReducedMotion,sn as useSpring,ft as useSprings,an as useTrail,fn as useTransition}; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var ss=Object.prototype.hasOwnProperty;var Qt=Object.getOwnPropertySymbols,is=Object.prototype.propertyIsEnumerable;var P=Object.assign;var oe=(t,e)=>{var n={};for(var s in t)ss.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&Qt)for(var s of Qt(t))e.indexOf(s)<0&&is.call(t,s)&&(n[s]=t[s]);return n};var je=G(),w=t=>_e(t,je),Ne=G();w.write=t=>_e(t,Ne);var $e=G();w.onStart=t=>_e(t,$e);var ut=G();w.onFrame=t=>_e(t,ut);var ct=G();w.onFinish=t=>_e(t,ct);var ae=[];w.setTimeout=(t,e)=>{let n=w.now()+e,s=()=>{let r=ae.findIndex(u=>u.cancel==s);~r&&ae.splice(r,1),Y.count-=~r?1:0},i={time:n,handler:t,cancel:s};return ae.splice(Lt(n),0,i),Y.count+=1,Gt(),i};var Lt=t=>~(~ae.findIndex(e=>e.time>t)||~ae.length);w.cancel=t=>{je.delete(t),Ne.delete(t)};w.sync=t=>{lt=!0,w.batchedUpdates(t),lt=!1};w.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function s(...i){e=i,w.onStart(n)}return s.handler=t,s.cancel=()=>{$e.delete(n),e=null},s};var dt=typeof window!="undefined"?window.requestAnimationFrame:()=>{};w.use=t=>dt=t;w.now=typeof performance!="undefined"?()=>performance.now():Date.now;w.batchedUpdates=t=>t();w.catch=console.error;var J=-1,lt=!1;function _e(t,e){lt?(e.delete(t),t(0)):(e.add(t),Gt())}function Gt(){J<0&&(J=0,dt(Bt))}function Bt(){~J&&(dt(Bt),w.batchedUpdates(rs))}function rs(){let t=J;J=w.now();let e=Lt(J);e&&(Ht(ae.splice(0,e),n=>n.handler()),Y.count-=e),$e.flush(),je.flush(t?Math.min(64,J-t):16.667),ut.flush(),Ne.flush(),ct.flush()}function G(){let t=new Set,e=t;return{add(n){Y.count+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Y.count-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Y.count-=e.size,Ht(e,s=>s(n)&&t.add(s)),Y.count+=t.size,e=t)}}}function Ht(t,e){t.forEach(n=>{try{e(n)}catch(s){w.catch(s)}})}var Y={count:0,clear(){J=-1,ae=[],$e=G(),je=G(),ut=G(),Ne=G(),ct=G(),Y.count=0}};import{useEffect as De,useState as ft,useRef as Kt,useLayoutEffect as os}from"react";function ze(){}var Wt=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),a={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function K(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}var m=(t,e)=>t.forEach(e);function $(t,e,n){for(let s in t)e.call(n,t[s],s)}var O=t=>a.und(t)?[]:a.arr(t)?t:[t];function le(t,e){if(t.size){let n=Array.from(t);t.clear(),m(n,e)}}var de=(t,...e)=>le(t,n=>n(...e)),ht,Yt,Z=null,Jt=!1,mt=ze,as=t=>{t.to&&(Yt=t.to),t.now&&(w.now=t.now),t.colors!==void 0&&(Z=t.colors),t.skipAnimation!=null&&(Jt=t.skipAnimation),t.createStringInterpolator&&(ht=t.createStringInterpolator),t.requestAnimationFrame&&w.use(t.requestAnimationFrame),t.batchedUpdates&&(w.batchedUpdates=t.batchedUpdates),t.willAdvance&&(mt=t.willAdvance)},q=Object.freeze({__proto__:null,get createStringInterpolator(){return ht},get to(){return Yt},get colors(){return Z},get skipAnimation(){return Jt},get willAdvance(){return mt},assign:as}),ve=new Set,D=[],pt=[],Me=0,fe={get idle(){return!ve.size&&!D.length},start(t){Me>t.priority?(ve.add(t),w.onStart(us)):(Zt(t),w(gt))},advance:gt,sort(t){if(Me)w.onFrame(()=>fe.sort(t));else{let e=D.indexOf(t);~e&&(D.splice(e,1),Xt(t))}},clear(){D=[],ve.clear()}};function us(){ve.forEach(Zt),ve.clear(),w(gt)}function Zt(t){D.includes(t)||Xt(t)}function Xt(t){D.splice(cs(D,e=>e.priority>t.priority),0,t)}function gt(t){let e=pt;for(let n=0;n<D.length;n++){let s=D[n];Me=s.priority,s.idle||(mt(s),s.advance(t),s.idle||e.push(s))}return Me=0,pt=D,pt.length=0,D=e,D.length>0}function cs(t,e){let n=t.findIndex(e);return n<0?t.length:n}var en={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},z="[-+]?\\d*\\.?\\d+",Qe=z+"%";function Le(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ls=new RegExp("rgb"+Le(z,z,z)),ds=new RegExp("rgba"+Le(z,z,z,z)),fs=new RegExp("hsl"+Le(z,Qe,Qe)),hs=new RegExp("hsla"+Le(z,Qe,Qe,z)),ms=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ps=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gs=/^#([0-9a-fA-F]{6})$/,ys=/^#([0-9a-fA-F]{8})$/;function bs(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=gs.exec(t))?parseInt(e[1]+"ff",16)>>>0:Z&&Z[t]!==void 0?Z[t]:(e=ls.exec(t))?(he(e[1])<<24|he(e[2])<<16|he(e[3])<<8|255)>>>0:(e=ds.exec(t))?(he(e[1])<<24|he(e[2])<<16|he(e[3])<<8|sn(e[4]))>>>0:(e=ms.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=ys.exec(t))?parseInt(e[1],16)>>>0:(e=ps.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=fs.exec(t))?(tn(nn(e[1]),Ge(e[2]),Ge(e[3]))|255)>>>0:(e=hs.exec(t))?(tn(nn(e[1]),Ge(e[2]),Ge(e[3]))|sn(e[4]))>>>0:null}function yt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function tn(t,e,n){let s=n<.5?n*(1+e):n+e-n*e,i=2*n-s,r=yt(i,s,t+1/3),u=yt(i,s,t),c=yt(i,s,t-1/3);return Math.round(r*255)<<24|Math.round(u*255)<<16|Math.round(c*255)<<8}function he(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function nn(t){return(parseFloat(t)%360+360)%360/360}function sn(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ge(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function rn(t){let e=bs(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,s=(e&16711680)>>>16,i=(e&65280)>>>8,r=(e&255)/255;return`rgba(${n}, ${s}, ${i}, ${r})`}var X=(t,e,n)=>{if(a.fun(t))return t;if(a.arr(t))return X({range:t,output:e,extrapolate:n});if(a.str(t.output[0]))return ht(t);let s=t,i=s.output,r=s.range||[0,1],u=s.extrapolateLeft||s.extrapolate||"extend",c=s.extrapolateRight||s.extrapolate||"extend",l=s.easing||(o=>o);return o=>{let d=vs(o,r);return _s(o,r[d],r[d+1],i[d],i[d+1],l,u,c,s.map)}};function _s(t,e,n,s,i,r,u,c,l){let o=l?l(t):t;if(o<e){if(u==="identity")return o;u==="clamp"&&(o=e)}if(o>n){if(c==="identity")return o;c==="clamp"&&(o=n)}return s===i?s:e===n?t<=e?s:i:(e===-Infinity?o=-o:n===Infinity?o=o-e:o=(o-e)/(n-e),o=r(o),s===-Infinity?o=-o:i===Infinity?o=o+s:o=o*(i-s)+s,o)}function vs(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var we=Symbol.for("FluidValue.get"),me=Symbol.for("FluidValue.observers"),E=t=>Boolean(t&&t[we]),V=t=>t&&t[we]?t[we]():t,bt=t=>t[me]||null;function ws(t,e){t.eventObserved?t.eventObserved(e):t(e)}function ue(t,e){let n=t[me];n&&n.forEach(s=>{ws(s,e)})}var Pe=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ps(this,e)}},Ps=(t,e)=>on(t,we,e);function W(t,e){if(t[we]){let n=t[me];n||on(t,me,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function ee(t,e){let n=t[me];if(n&&n.has(e)){let s=n.size-1;s?n.delete(e):t[me]=null,t.observerRemoved&&t.observerRemoved(s,e)}}var on=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),an=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,xs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,_t,Ss=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,As=(t,e,n,s,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,Be=t=>{_t||(_t=Z?new RegExp(`(${Object.keys(Z).join("|")})`,"g"):/^\b$/);let e=t.output.map(r=>V(r).replace(xs,rn).replace(_t,rn)),n=e.map(r=>r.match(an).map(Number)),i=n[0].map((r,u)=>n.map(c=>{if(!(u in c))throw Error('The arity of each "output" value must be equal');return c[u]})).map(r=>X(P(P({},t),{output:r})));return r=>{let u=0;return e[0].replace(an,()=>String(i[u++](r))).replace(Ss,As)}},vt="react-spring: ",un=t=>{let e=t,n=!1;if(typeof e!="function")throw new TypeError(`${vt}once requires a function parameter`);return(...s)=>{n||(e(...s),n=!0)}},Rs=un(console.warn);function wt(){Rs(`${vt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fs=un(console.warn);function cn(){Fs(`${vt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)`)}function pe(t){return a.str(t)&&(t[0]=="#"||/\d/.test(t)||t in(Z||{}))}var ge=t=>De(t,Is),Is=[];function xe(){let t=ft()[1],e=ft(Ts)[0];return ge(e.unmount),()=>{e.current&&t({})}}function Ts(){let t={current:!0,unmount:()=>()=>{t.current=!1}};return t}function ln(t,e){let[n]=ft(()=>({inputs:e,result:t()})),s=Kt(),i=s.current,r=i;return r?Boolean(e&&r.inputs&&ks(e,r.inputs))||(r={inputs:e,result:t()}):r=n,De(()=>{s.current=r,i==n&&(n.inputs=n.result=void 0)},[r]),r.result}function ks(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}function He(t){let e=Kt();return De(()=>{e.current=t}),e.current}var B=typeof window!="undefined"&&window.document&&window.document.createElement?os:De;import{useContext as xt,createElement as St,createContext as $s,useMemo as Re,useRef as yn,useState as ki,Fragment as Ds}from"react";import{forwardRef as Os,useRef as dn,useCallback as Vs,useEffect as Es,createElement as Cs}from"react";var Se=Symbol.for("Animated:node"),Us=t=>!!t&&t[Se]===t,M=t=>t&&t[Se],Ke=(t,e)=>Wt(t,Se,e),Ae=t=>t&&t[Se]&&t[Se].getPayload(),Pt=class{constructor(){Ke(this,this)}getPayload(){return this.payload||[]}},te=class extends Pt{constructor(e){super();this._value=e,this.done=!0,this.durationProgress=0,a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new te(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return a.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ne=class extends te{constructor(e){super(0);this._string=null,this._toString=X({output:[e,e]})}static create(e){return new ne(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=X({output:[this.getValue(),e]})),this._value=0,super.reset()}},We={dependencies:null},ye=class extends Pt{constructor(e){super();this.source=e,this.setValue(e)}getValue(e){let n={};return $(this.source,(s,i)=>{Us(s)?n[i]=s.getValue(e):E(s)?n[i]=V(s):e||(n[i]=s)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&m(this.payload,e=>e.reset())}_makePayload(e){if(e){let n=new Set;return $(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){We.dependencies&&E(e)&&We.dependencies.add(e);let n=Ae(e);n&&m(n,s=>this.add(s))}},Ye=class extends ye{constructor(e){super(e)}static create(e){return new Ye(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let n=this.getPayload();return e.length==n.length?n.some((s,i)=>s.setValue(e[i])):(super.setValue(e.map(qs)),!0)}};function qs(t){return(pe(t)?ne:te).create(t)}function Je(t){let e=M(t);return e?e.constructor:a.arr(t)?Ye:pe(t)?ne:te}var hn=(t,e)=>{let n=!a.fun(t)||t.prototype&&t.prototype.isReactComponent;return Os((s,i)=>{let r=dn(null),u=n&&Vs(p=>{r.current=Ns(i,p)},[i]),[c,l]=js(s,e),o=xe(),d=()=>{let p=r.current;n&&!p||(p?e.applyAnimatedValues(p,c.getValue(!0)):!1)===!1&&o()},f=new fn(d,l),b=dn();B(()=>{let p=b.current;b.current=f,m(l,h=>W(h,f)),p&&(m(p.deps,h=>ee(h,p)),w.cancel(p.update))}),Es(d,[]),ge(()=>()=>{let p=b.current;m(p.deps,h=>ee(h,p))});let S=e.getComponentProps(c.getValue());return Cs(t,P(P({},S),{ref:u}))})},fn=class{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&w.write(this.update)}};function js(t,e){let n=new Set;return We.dependencies=n,t.style&&(t=P(P({},t),{style:e.createAnimatedStyle(t.style)})),t=new ye(t),We.dependencies=null,[t,n]}function Ns(t,e){return t&&(a.fun(t)?t(e):t.current=e),e}var mn=Symbol.for("AnimatedComponent"),gn=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new ye(i),getComponentProps:s=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:s},r=u=>{let c=pn(u)||"Anonymous";return a.str(u)?u=r[u]||(r[u]=hn(u,i)):u=u[mn]||(u[mn]=hn(u,i)),u.displayName=`Animated(${c})`,u};return $(t,(u,c)=>{a.arr(t)&&(c=pn(u)),r[c]=r(u)}),{animated:r}},pn=t=>a.str(t)?t:t&&a.str(t.displayName)?t.displayName:a.fun(t)&&t.name||null;function j(t,...e){return a.fun(t)?t(...e):t}var Fe=(t,e)=>t===!0||!!(e&&t&&(a.fun(t)?t(e):O(t).includes(e))),bn=(t,e)=>a.obj(t)?e&&t[e]:t,_n=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,zs=t=>t,Ze=(t,e=zs)=>{let n=Ms;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));let s={};for(let i of n){let r=e(t[i],i);a.und(r)||(s[i]=r)}return s},Ms=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Qs={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 Ls(t){let e={},n=0;if($(t,(s,i)=>{Qs[i]||(e[i]=s,n++)}),n)return e}function At(t){let e=Ls(t);if(e){let n={to:e};return $(t,(s,i)=>i in e||(n[i]=s)),n}return P({},t)}function Ie(t){return t=V(t),a.arr(t)?t.map(Ie):pe(t)?q.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function vn(t){for(let e in t)return!0;return!1}function Rt(t){return a.fun(t)||a.arr(t)&&a.obj(t[0])}function Ft(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function wn(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}function Pn(t,e,n=1e3){B(()=>{if(e){let s=0;m(t,(i,r)=>{let u=i.current;if(u.length){let c=n*e[r];isNaN(c)?c=s:s=c,m(u,l=>{m(l.queue,o=>{let d=o.delay;o.delay=f=>c+j(d||0,f)}),l.start()})}})}else{let s=Promise.resolve();m(t,i=>{let r=i.current;if(r.length){let u=r.map(c=>{let l=c.queue;return c.queue=[],l});s=s.then(()=>(m(r,(c,l)=>m(u[l]||[],o=>c.queue.push(o))),i.start()))}})}})}var Gs={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}},Bs=t=>t,It=P(P({},Gs.default),{mass:1,damping:1,easing:Bs,clamp:!1}),xn=class{constructor(){this.velocity=0,Object.assign(this,It)}};function Hs(t,e,n){n&&(n=P({},n),Sn(n,e),e=P(P({},n),e)),Sn(t,e),Object.assign(t,e);for(let u in It)t[u]==null&&(t[u]=It[u]);let{mass:s,frequency:i,damping:r}=t;return a.und(i)||(i<.01&&(i=.01),r<0&&(r=0),t.tension=Math.pow(2*Math.PI/i,2)*s,t.friction=4*Math.PI*r*s/i),t}function Sn(t,e){if(!a.und(e.decay))t.duration=void 0;else{let n=!a.und(e.tension)||!a.und(e.friction);(n||!a.und(e.frequency)||!a.und(e.damping)||!a.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var An=[],Rn=class{constructor(){this.changed=!1,this.values=An,this.toValues=null,this.fromValues=An,this.config=new xn,this.immediate=!1}};function Fn(t,{key:e,props:n,defaultProps:s,state:i,actions:r}){return new Promise((u,c)=>{var l;let o,d,f=Fe((l=n.cancel)!=null?l:s==null?void 0:s.cancel,e);if(f)p();else{a.und(n.pause)||(i.paused=Fe(n.pause,e));let h=s==null?void 0:s.pause;h!==!0&&(h=i.paused||Fe(h,e)),o=j(n.delay||0,e),h?(i.resumeQueue.add(S),r.pause()):(r.resume(),S())}function b(){i.resumeQueue.add(S),i.timeouts.delete(d),d.cancel(),o=d.time-w.now()}function S(){o>0?(d=w.setTimeout(p,o),i.pauseQueue.add(b),i.timeouts.add(d)):p()}function p(){i.pauseQueue.delete(b),i.timeouts.delete(d),t<=(i.cancelId||0)&&(f=!0);try{r.start(P(P({},n),{callId:t,cancel:f}),u)}catch(h){c(h)}}})}var Tt=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?be(t.get()):e.every(n=>n.noop)?In(t.get()):Q(t.get(),e.every(n=>n.finished)),In=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Q=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),be=t=>({value:t,cancelled:!0,finished:!1});function Tn(t,e,n,s){let{callId:i,parentId:r,onRest:u}=e,{asyncTo:c,promise:l}=n;return!r&&t===c&&!e.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;let o=Ze(e,(v,F)=>F==="onRest"?void 0:v),d,f,b=new Promise((v,F)=>(d=v,f=F)),S=v=>{let F=i<=(n.cancelId||0)&&be(s)||i!==n.asyncId&&Q(s,!1);if(F)throw v.result=F,f(v),v},p=(v,F)=>{let g=new kt,_=new Ot;return(async()=>{if(q.skipAnimation)throw Te(n),_.result=Q(s,!1),f(_),_;S(g);let x=a.obj(v)?P({},v):P(P({},F),{to:v});x.parentId=i,$(o,(I,L)=>{a.und(x[L])&&(x[L]=I)});let C=await s.start(x);return S(g),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),C})()},h;if(q.skipAnimation)return Te(n),Q(s,!1);try{let v;a.arr(t)?v=(async F=>{for(let g of F)await p(g)})(t):v=Promise.resolve(t(p,s.stop.bind(s))),await Promise.all([v.then(d),b]),h=Q(s.get(),!0,!1)}catch(v){if(v instanceof kt)h=v.result;else if(v instanceof Ot)h=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=r,n.asyncTo=r?c:void 0,n.promise=r?l:void 0)}return a.fun(u)&&w.batchedUpdates(()=>{u(h,s,s.item)}),h})()}function Te(t,e){le(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var kt=class 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.")}},Ot=class extends Error{constructor(){super("SkipAnimationSignal")}},Vt=t=>t instanceof Xe,Ks=1,Xe=class extends Pe{constructor(){super(...arguments);this.id=Ks++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=M(this);return e&&e.getValue()}to(...e){return q.to(this,e)}interpolate(...e){return wt(),q.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){ue(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||fe.sort(this),ue(this,{type:"priority",parent:this,priority:e})}},ce=Symbol.for("SpringPhase"),kn=1,Et=2,Ct=4,Ut=t=>(t[ce]&kn)>0,se=t=>(t[ce]&Et)>0,ke=t=>(t[ce]&Ct)>0,On=(t,e)=>e?t[ce]|=Et|kn:t[ce]&=~Et,Vn=(t,e)=>e?t[ce]|=Ct:t[ce]&=~Ct,En=class extends Xe{constructor(e,n){super();if(this.animation=new Rn,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,!a.und(e)||!a.und(n)){let s=a.obj(e)?P({},e):P(P({},n),{from:e});a.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(se(this)||this._state.asyncTo)||ke(this)}get goal(){return V(this.animation.to)}get velocity(){let e=M(this);return e instanceof te?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Ut(this)}get isAnimating(){return se(this)}get isPaused(){return ke(this)}advance(e){let n=!0,s=!1,i=this.animation,{config:r,toValues:u}=i,c=Ae(i.to);!c&&E(i.to)&&(u=O(V(i.to))),i.values.forEach((o,d)=>{if(!o.done){let f=o.constructor==ne?1:c?c[d].lastPosition:u[d],b=i.immediate,S=f;if(!b){if(S=o.lastPosition,r.tension<=0){o.done=!0;return}let p=o.elapsedTime+=e,h=i.fromValues[d],v=o.v0!=null?o.v0:o.v0=a.arr(r.velocity)?r.velocity[d]:r.velocity,F;if(a.und(r.duration))if(r.decay){let g=r.decay===!0?.998:r.decay,_=Math.exp(-(1-g)*p);S=h+v/(1-g)*(1-_),b=Math.abs(o.lastPosition-S)<.1,F=v*_}else{F=o.lastVelocity==null?v:o.lastVelocity;let g=r.precision||(h==f?.005:Math.min(1,Math.abs(f-h)*.001)),_=r.restVelocity||g/10,x=r.clamp?0:r.bounce,C=!a.und(x),I=h==f?o.v0>0:h<f,L,y=!1,A=1,T=Math.ceil(e/A);for(let k=0;k<T&&(L=Math.abs(F)>_,!(!L&&(b=Math.abs(f-S)<=g,b)));++k){C&&(y=S==f||S>f==I,y&&(F=-F*x,S=f));let R=-r.tension*1e-6*(S-f),U=-r.friction*.001*F,N=(R+U)/r.mass;F=F+N*A,S=S+F*A}}else{let g=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,o.durationProgress>0&&(o.elapsedTime=r.duration*o.durationProgress,p=o.elapsedTime+=e)),g=(r.progress||0)+p/this._memoizedDuration,g=g>1?1:g<0?0:g,o.durationProgress=g),S=h+r.easing(g)*(f-h),F=(S-o.lastPosition)/e,b=g==1}o.lastVelocity=F,Number.isNaN(S)&&(console.warn("Got NaN while animating:",this),b=!0)}c&&!c[d].done&&(b=!1),b?o.done=!0:n=!1,o.setValue(S,r.round)&&(s=!0)}});let l=M(this);if(n){let o=V(i.to);(l.setValue(o)||s)&&this._onChange(o),this._stop()}else s&&this._onChange(l.getValue())}set(e){return w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(se(this)){let{to:e,config:n}=this.animation;w.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let s;return a.und(e)?(s=this.queue||[],this.queue=[]):s=[a.obj(e)?e:P(P({},n),{to:e})],Promise.all(s.map(i=>this._update(i))).then(i=>Tt(this,i))}stop(e){let{to:n}=this.animation;return this._focus(this.get()),Te(this._state,e&&this._lastCallId),w.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let n=this.key||"",{to:s,from:i}=e;s=a.obj(s)?s[n]:s,(s==null||Rt(s))&&(s=void 0),i=a.obj(i)?i[n]:i,i==null&&(i=void 0);let r={to:s,from:i};return Ut(this)||(e.reverse&&([s,i]=[i,s]),i=V(i),a.und(i)?M(this)||this._set(s):this._set(i)),r}_update(s,n){var e=oe(s,[]);let{key:i,defaultProps:r}=this;e.default&&Object.assign(r,Ze(e,(l,o)=>/^on/.test(o)?bn(l,i):l)),Un(this,e,"onProps"),Ve(this,"onProps",e,this);let u=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let c=this._state;return Fn(++this._lastCallId,{key:i,props:e,defaultProps:r,state:c,actions:{pause:()=>{ke(this)||(Vn(this,!0),de(c.pauseQueue),Ve(this,"onPause",Q(this,Oe(this,this.animation.to)),this))},resume:()=>{ke(this)&&(Vn(this,!1),se(this)&&this._resume(),de(c.resumeQueue),Ve(this,"onResume",Q(this,Oe(this,this.animation.to)),this))},start:this._merge.bind(this,u)}}).then(l=>{if(e.loop&&l.finished&&!(n&&l.noop)){let o=Cn(e);if(o)return this._update(o,!0)}return l})}_merge(e,n,s){if(n.cancel)return this.stop(!0),s(be(this));let i=!a.und(e.to),r=!a.und(e.from);if(i||r)if(n.callId>this._lastToId)this._lastToId=n.callId;else return s(be(this));let{key:u,defaultProps:c,animation:l}=this,{to:o,from:d}=l,{to:f=o,from:b=d}=e;r&&!i&&(!n.default||a.und(f))&&(f=b),n.reverse&&([f,b]=[b,f]);let S=!K(b,d);S&&(l.from=b),b=V(b);let p=!K(f,o);p&&this._focus(f);let h=Rt(n.to),{config:v}=l,{decay:F,velocity:g}=v;(i||r)&&(v.velocity=0),n.config&&!h&&Hs(v,j(n.config,u),n.config!==c.config?j(c.config,u):void 0);let _=M(this);if(!_||a.und(f))return s(Q(this,!0));let x=a.und(n.reset)?r&&!n.default:!a.und(b)&&Fe(n.reset,u),C=x?b:this.get(),I=Ie(f),L=a.num(I)||a.arr(I)||pe(I),y=!h&&(!L||Fe(c.immediate||n.immediate,u));if(p){let R=Je(f);if(R!==_.constructor)if(y)_=this._set(I);else throw Error(`Cannot animate between ${_.constructor.name} and ${R.name}, as the "to" prop suggests`)}let A=_.constructor,T=E(f),k=!1;if(!T){let R=x||!Ut(this)&&S;(p||R)&&(k=K(Ie(C),I),T=!k),(!K(v.decay,F)||!K(v.velocity,g))&&(T=!0)}if(k&&se(this)&&(l.changed&&!x?T=!0:T||this._stop(o)),!h&&((T||E(o))&&(l.values=_.getPayload(),l.toValues=E(f)?null:A==ne?[1]:O(I)),l.immediate!=y&&(l.immediate=y,!y&&!x&&this._set(o)),T)){let{onRest:R}=l;m(Ws,N=>Un(this,n,N));let U=Q(this,Oe(this,o));de(this._pendingCalls,U),this._pendingCalls.add(s),l.changed&&w.batchedUpdates(()=>{var N;l.changed=!x,R==null||R(U,this),x?j(c.onRest,U):(N=l.onStart)==null||N.call(l,U,this)})}x&&this._set(C),h?s(Tn(n.to,n,this._state,this)):T?this._start():se(this)&&!p?this._pendingCalls.add(s):s(In(C))}_focus(e){let n=this.animation;e!==n.to&&(bt(this)&&this._detach(),n.to=e,bt(this)&&this._attach())}_attach(){let e=0,{to:n}=this.animation;E(n)&&(W(n,this),Vt(n)&&(e=n.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;E(e)&&ee(e,this)}_set(e,n=!0){let s=V(e);if(!a.und(s)){let i=M(this);if(!i||!K(s,i.getValue())){let r=Je(s);!i||i.constructor!=r?Ke(this,r.create(s)):i.setValue(s),i&&w.batchedUpdates(()=>{this._onChange(s,n)})}}return M(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Ve(this,"onStart",Q(this,Oe(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),j(this.animation.onChange,e,this)),j(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){let e=this.animation;M(this).reset(V(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),se(this)||(On(this,!0),ke(this)||this._resume())}_resume(){q.skipAnimation?this.finish():fe.start(this)}_stop(e,n){if(se(this)){On(this,!1);let s=this.animation;m(s.values,r=>{r.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),ue(this,{type:"idle",parent:this});let i=n?be(this.get()):Q(this.get(),Oe(this,e!=null?e:s.to));de(this._pendingCalls,i),s.changed&&(s.changed=!1,Ve(this,"onRest",i,this))}}};function Oe(t,e){let n=Ie(e),s=Ie(t.get());return K(s,n)}function Cn(t,e=t.loop,n=t.to){let s=j(e);if(s){let i=s!==!0&&At(s),r=(i||t).reverse,u=!i||i.reset;return Ee(P(P(P({},t),{loop:e,default:!1,pause:void 0,to:!r||Rt(n)?n:void 0,from:u?t.from:void 0,reset:u}),i))}}function Ee(t){let{to:e,from:n}=t=At(t),s=new Set;return a.obj(e)&&qn(e,s),a.obj(n)&&qn(n,s),t.keys=s.size?Array.from(s):null,t}function Ys(t){let e=Ee(t);return a.und(e.default)&&(e.default=Ze(e)),e}function qn(t,e){$(t,(n,s)=>n!=null&&e.add(s))}var Ws=["onStart","onRest","onChange","onPause","onResume"];function Un(t,e,n){t.animation[n]=e[n]!==_n(e,n)?bn(e[n],t.key):void 0}function Ve(t,e,...n){var s,i,r,u;(i=(s=t.animation)[e])==null||i.call(s,...n),(u=(r=t.defaultProps)[e])==null||u.call(r,...n)}var Js=["onStart","onChange","onRest"],Zs=1,qt=class{constructor(e,n){this.id=Zs++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),n&&(this._flush=n),e&&this.start(P({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((n,s)=>e[s]=n.get()),e}set(e){for(let n in e){let s=e[n];a.und(s)||this.springs[n].set(s)}}update(e){return e&&this.queue.push(Ee(e)),this}start(e){let{queue:n}=this;return e?n=O(e).map(Ee):this.queue=[],this._flush?this._flush(this,n):(jn(this,n),jt(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){let s=this.springs;m(O(n),i=>s[i].stop(!!e))}else Te(this._state,this._lastAsyncId),this.each(s=>s.stop(!!e));return this}pause(e){if(a.und(e))this.start({pause:!0});else{let n=this.springs;m(O(e),s=>n[s].pause())}return this}resume(e){if(a.und(e))this.start({pause:!1});else{let n=this.springs;m(O(e),s=>n[s].resume())}return this}each(e){$(this.springs,e)}_onFrame(){let{onStart:e,onChange:n,onRest:s}=this._events,i=this._active.size>0,r=this._changed.size>0;(i&&!this._started||r&&!this._started)&&(this._started=!0,le(e,([l,o])=>{o.value=this.get(),l(o,this,this._item)}));let u=!i&&this._started,c=r||u&&s.size?this.get():null;r&&n.size&&le(n,([l,o])=>{o.value=c,l(o,this,this._item)}),u&&(this._started=!1,le(s,([l,o])=>{o.value=c,l(o,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;w.onFrame(this._onFrame)}};function jt(t,e){return Promise.all(e.map(n=>Nn(t,n))).then(n=>Tt(t,n))}async function Nn(t,e,n){let{keys:s,to:i,from:r,loop:u,onRest:c,onResolve:l}=e,o=a.obj(e.default)&&e.default;u&&(e.loop=!1),i===!1&&(e.to=null),r===!1&&(e.from=null);let d=a.arr(i)||a.fun(i)?i:void 0;d?(e.to=void 0,e.onRest=void 0,o&&(o.onRest=void 0)):m(Js,h=>{let v=e[h];if(a.fun(v)){let F=t._events[h];e[h]=({finished:g,cancelled:_})=>{let x=F.get(v);x?(g||(x.finished=!1),_&&(x.cancelled=!0)):F.set(v,{value:null,finished:g||!1,cancelled:_||!1})},o&&(o[h]=e[h])}});let f=t._state;e.pause===!f.paused?(f.paused=e.pause,de(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);let b=(s||Object.keys(t.springs)).map(h=>t.springs[h].start(e)),S=e.cancel===!0||_n(e,"cancel")===!0;(d||S&&f.asyncId)&&b.push(Fn(++t._lastAsyncId,{props:e,state:f,actions:{pause:ze,resume:ze,start(h,v){S?(Te(f,t._lastAsyncId),v(be(t))):(h.onRest=c,v(Tn(d,h,f,t)))}}})),f.paused&&await new Promise(h=>{f.resumeQueue.add(h)});let p=Tt(t,await Promise.all(b));if(u&&p.finished&&!(n&&p.noop)){let h=Cn(e,u,i);if(h)return jn(t,[h]),Nn(t,h,!0)}return l&&w.batchedUpdates(()=>l(p,t,t.item)),p}function Nt(t,e){let n=P({},t.springs);return e&&m(O(e),s=>{a.und(s.keys)&&(s=Ee(s)),a.obj(s.to)||(s=P(P({},s),{to:void 0})),Dn(n,s,i=>$n(i))}),n}function $t(t,e){$(e,(n,s)=>{t.springs[s]||(t.springs[s]=n,W(n,t))})}function $n(t,e){let n=new En;return n.key=t,e&&W(n,e),n}function Dn(t,e,n){e.keys&&m(e.keys,s=>{(t[s]||(t[s]=n(s)))._prepareNode(e)})}function jn(t,e){m(e,n=>{Dn(t.springs,n,s=>$n(s,t))})}var Ce=n=>{var{children:t}=n,e=oe(n,["children"]);let s=xt(et),i=e.pause||!!s.pause,r=e.immediate||!!s.immediate;e=ln(()=>({pause:i,immediate:r}),[i,r]);let{Provider:u}=et;return St(u,{value:e},t)},et=Xs(Ce,{});Ce.Provider=et.Provider;Ce.Consumer=et.Consumer;function Xs(t,e){return Object.assign(t,$s(e)),t.Provider._context=t,t.Consumer._context=t,t}var tt=class extends Function{constructor(){super("return arguments.callee._call.apply(arguments.callee, arguments)");this.current=[]}_call(e){cn(),this.start(e)}set(e){m(this.current,n=>n.set(e))}start(e){let n=[];return m(this.current,(s,i)=>{if(a.und(e))n.push(s.start());else{let r=this._getProps(e,s,i);r&&n.push(s.start(r))}}),n}update(e){return m(this.current,(n,s)=>n.update(this._getProps(e,n,s))),this}add(e){this.current.includes(e)||this.current.push(e)}delete(e){let n=this.current.indexOf(e);~n&&this.current.splice(n,1)}_getProps(e,n,s){return a.fun(e)?e(s,n):e}};m(["stop","pause","resume"],t=>{tt.prototype[t]=function(){return m(this.current,e=>e[t](...arguments)),this}});function nt(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=Re(()=>s||arguments.length==3?new tt:void 0,[]),r=yn(0),u=xe(),c=Re(()=>({ctrls:[],queue:[],flush(g,_){let x=Nt(g,_);return r.current>0&&!c.queue.length&&!Object.keys(x).some(I=>!g.springs[I])?jt(g,_):new Promise(I=>{$t(g,x),c.queue.push(()=>{I(jt(g,_))}),u()})}}),[]),l=[...c.ctrls],o=[],d=He(t)||0,f=l.slice(t,d);Re(()=>{l.length=t,b(d,t)},[t]),Re(()=>{b(0,Math.min(d,t))},n);function b(g,_){for(let x=g;x<_;x++){let C=l[x]||(l[x]=new qt(null,c.flush)),I=s?s(x,C):e[x];I&&(o[x]=Ys(I))}}let S=l.map((g,_)=>Nt(g,o[_])),p=xt(Ce),h=He(p),v=p!==h&&vn(p);B(()=>{r.current++,c.ctrls=l;let{queue:g}=c;g.length&&(c.queue=[],m(g,_=>_())),m(f,_=>{Ft(_,i),_.stop(!0)}),m(l,(_,x)=>{let C=S[x];$t(_,C),i==null||i.add(_),v&&_.start({default:p});let I=o[x];I&&(wn(_,I.ref),_.ref?_.queue.push(I):_.start(I))})}),ge(()=>()=>{m(c.ctrls,g=>g.stop(!0))});let F=S.map(g=>P({},g));return i?[F,i]:F}function zn(t,e){let n=a.fun(t),[[s],i]=nt(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[s,i]:s}function Mn(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=!0,r=nt(t,(c,l)=>{let o=s?s(c,l):e;return i=i&&o.reverse,o},n||[{}]),u=r[1];return B(()=>{m(u.current,(c,l)=>{let o=u.current[l+(i?1:-1)];o&&c.start({to:o.springs})})},n),s||arguments.length==3?(u._getProps=(c,l,o)=>{let d=a.fun(c)?c(o,l):c;if(d){let f=u.current[o+(d.reverse?1:-1)];return f&&(d.to=f.springs),d}},r):r[0]}var Qn="mount",st="enter",Ln="update",it="leave";function Gn(t,e,n){let{reset:s,sort:i,trail:r=0,expires:u=!0,onDestroyed:c}=e,l=Re(()=>arguments.length==3?new tt:void 0,[]),o=O(t),d=[],f=yn(null),b=s?null:f.current;B(()=>{f.current=d}),ge(()=>()=>m(f.current,y=>{y.expired&&clearTimeout(y.expirationId),Ft(y.ctrl,l),y.ctrl.stop(!0)}));let S=ei(o,e,b),p=s&&f.current||[];B(()=>m(p,({ctrl:y,item:A,key:T})=>{Ft(y,l),j(c,A,T)}));let h=[];if(b&&m(b,(y,A)=>{y.expired?(clearTimeout(y.expirationId),p.push(y)):(A=h[A]=S.indexOf(y.key),~A&&(d[A]=y))}),m(o,(y,A)=>{d[A]||(d[A]={key:S[A],item:y,phase:Qn,ctrl:new qt},d[A].ctrl.item=y)}),h.length){let y=-1;m(h,(A,T)=>{let k=b[T];~A?(y=d.indexOf(k),d[y]=P(P({},k),{item:o[A]})):e.leave&&d.splice(++y,0,k)})}a.fun(i)&&d.sort((y,A)=>i(y.item,A.item));let v=-r,F=xe(),g=Ze(e),_=new Map;m(d,(y,A)=>{let T=y.key,k=y.phase,R,U;if(k==Qn)R=e.enter,U=st;else{let H=S.indexOf(T)<0;if(k!=it)if(H)R=e.leave,U=it;else if(R=e.update)U=Ln;else return;else if(!H)R=e.enter,U=st;else return}if(R=j(R,y.item,A),R=a.obj(R)?At(R):{to:R},!R.config){let H=e.config||g.config;R.config=j(H,y.item,A,U)}let N=P(P(P({},g),{delay:v+=r,reset:!1}),R);if(U==st&&a.und(N.from)){let H=a.und(e.initial)||b?e.from:e.initial;N.from=j(H,y.item,A)}let{onResolve:ts}=N;N.onResolve=H=>{j(ts,H);let ot=f.current,ie=ot.find(qe=>qe.key===T);if(!!ie&&!(H.cancelled&&ie.phase!=Ln)&&ie.ctrl.idle){let qe=ot.every(re=>re.ctrl.idle);if(ie.phase==it){let re=j(u,ie.item);if(re!==!1){let at=re===!0?0:re;if(ie.expired=!0,!qe&&at>0){at<=2147483647&&(ie.expirationId=setTimeout(F,at));return}}}qe&&ot.some(re=>re.expired)&&F()}};let ns=Nt(y.ctrl,N);_.set(y,{phase:U,springs:ns,payload:N})});let x=xt(Ce),C=He(x),I=x!==C&&vn(x);B(()=>{I&&m(d,y=>{y.ctrl.start({default:x})})},[x]),B(()=>{m(_,({phase:y,springs:A,payload:T},k)=>{let{ctrl:R}=k;k.phase=y,l==null||l.add(R),wn(R,T.ref),$t(R,A),I&&y==st&&R.start({default:x}),R[R.ref?"update":"start"](T)})},s?void 0:n);let L=y=>St(Ds,null,d.map((A,T)=>{let{springs:k}=_.get(A)||A.ctrl,R=y(P({},k),A.item,A,T);return R&&R.type?St(R.type,P(P({},R.props),{key:a.str(A.key)||a.num(A.key)?A.key:A.ctrl.id,ref:R.ref})):R}));return l?[L,l]:L}var ti=1;function ei(t,{key:e,keys:n=e},s){if(n===null){let i=new Set;return t.map(r=>{let u=s&&s.find(c=>c.item===r&&c.phase!==it&&!i.has(c));return u?(i.add(u),u.key):ti++})}return a.und(n)?t:a.fun(n)?t.map(n):O(n)}var Dt=class extends Xe{constructor(e,n){super();this.source=e,this.idle=!0,this._active=new Set,this.calc=X(...n);let s=this._get(),i=Je(s);Ke(this,i.create(s))}advance(e){let n=this._get(),s=this.get();K(n,s)||(M(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Bn(this._active)&&zt(this)}_get(){let e=a.arr(this.source)?this.source.map(V):O(V(this.source));return this.calc(...e)}_start(){this.idle&&!Bn(this._active)&&(this.idle=!1,m(Ae(this),e=>{e.done=!1}),q.skipAnimation?(w.batchedUpdates(()=>this.advance()),zt(this)):fe.start(this))}_attach(){let e=1;m(O(this.source),n=>{E(n)&&W(n,this),Vt(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){m(O(this.source),e=>{E(e)&&ee(e,this)}),this._active.clear(),zt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=O(this.source).reduce((n,s)=>Math.max(n,(Vt(s)?s.priority:0)+1),0))}};function ni(t){return t.idle!==!1}function Bn(t){return!t.size||Array.from(t).every(ni)}function zt(t){t.idle||(t.idle=!0,m(Ae(t),e=>{e.done=!0}),ue(t,{type:"idle",parent:t}))}var Hn=(t,...e)=>(wt(),new Dt(t,e));q.assign({createStringInterpolator:Be,to:(t,e)=>new Dt(t,e)});var Ci=fe.advance;import{unstable_batchedUpdates as si}from"react-dom";var Kn=/^--/;function ii(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Kn.test(t)&&!(Ue.hasOwnProperty(t)&&Ue[t])?e+"px":(""+e).trim()}var Wn={};function ri(t,e){if(!t.nodeType||!t.setAttribute)return!1;let n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{style:s,children:i,scrollTop:r,scrollLeft:u}=e,c=oe(e,["style","children","scrollTop","scrollLeft"]),l=Object.values(c),o=Object.keys(c).map(d=>n||t.hasAttribute(d)?d:Wn[d]||(Wn[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(t.textContent=i);for(let d in s)if(s.hasOwnProperty(d)){let f=ii(d,s[d]);d==="float"?d="cssFloat":Kn.test(d)?t.style.setProperty(d,f):t.style[d]=f}o.forEach((d,f)=>{t.setAttribute(d,l[f])}),r!==void 0&&(t.scrollTop=r),u!==void 0&&(t.scrollLeft=u)}var Ue={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},oi=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),ai=["Webkit","Ms","Moz","O"];Ue=Object.keys(Ue).reduce((t,e)=>(ai.forEach(n=>t[oi(n,e)]=t[e]),t),Ue);var ui=/^(matrix|translate|scale|rotate|skew)/,ci=/^(translate)/,li=/^(rotate|skew)/,Mt=(t,e)=>a.num(t)&&t!==0?t+e:t,rt=(t,e)=>a.arr(t)?t.every(n=>rt(n,e)):a.num(t)?t===e:parseFloat(t)===e,Yn=class extends ye{constructor(r){var{x:e,y:n,z:s}=r,i=oe(r,["x","y","z"]);let u=[],c=[];(e||n||s)&&(u.push([e||0,n||0,s||0]),c.push(l=>[`translate3d(${l.map(o=>Mt(o,"px")).join(",")})`,rt(l,0)])),$(i,(l,o)=>{if(o==="transform")u.push([l||""]),c.push(d=>[d,d===""]);else if(ui.test(o)){if(delete i[o],a.und(l))return;let d=ci.test(o)?"px":li.test(o)?"deg":"";u.push(O(l)),c.push(o==="rotate3d"?([f,b,S,p])=>[`rotate3d(${f},${b},${S},${Mt(p,d)})`,rt(p,0)]:f=>[`${o}(${f.map(b=>Mt(b,d)).join(",")})`,rt(f,o.startsWith("scale")?1:0)])}}),u.length&&(i.transform=new Jn(u,c)),super(i)}},Jn=class extends Pe{constructor(e,n){super();this.inputs=e,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return m(this.inputs,(s,i)=>{let r=V(s[0]),[u,c]=this.transforms[i](a.arr(r)?r:s.map(V));e+=" "+u,n=n&&c}),n?"none":e}observerAdded(e){e==1&&m(this.inputs,n=>m(n,s=>E(s)&&W(s,this)))}observerRemoved(e){e==0&&m(this.inputs,n=>m(n,s=>E(s)&&ee(s,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ue(this,e)}},di=["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"];q.assign({batchedUpdates:si,createStringInterpolator:Be,colors:en});var fi=gn(di,{applyAnimatedValues:ri,createAnimatedStyle:t=>new Yn(t),getComponentProps:s=>{var{scrollTop:t,scrollLeft:e}=s,n=oe(s,["scrollTop","scrollLeft"]);return n}}),Zn=fi.animated;import{useEffect as hi,useState as mi}from"react";var pi="(prefers-reduced-motion: reduce)",Xn=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),es=()=>Xn?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(pi);function gi(){let[t,e]=mi(es().matches);return hi(()=>{let n=es(),s=()=>{e(n.matches)};return n.addListener(s),()=>{n.removeListener(s)}},[]),t}export{q as Globals,Zn as animated,Hn as interpolate,Xn as isRenderingOnServer,Pn as useChain,gi as useReducedMotion,zn as useSpring,nt as useSprings,Mn as useTrail,Gn as useTransition}; |
@@ -1,15 +0,1 @@ | ||
var vr=Object.create,Oe=Object.defineProperty,_r=Object.getPrototypeOf,wr=Object.prototype.hasOwnProperty,Pr=Object.getOwnPropertyNames,Sr=Object.getOwnPropertyDescriptor;var xt=t=>Oe(t,"__esModule",{value:!0});var bt=(t,e)=>{xt(t);for(var r in e)Oe(t,r,{get:e[r],enumerable:!0})},Rr=(t,e,r)=>{if(xt(t),e&&typeof e=="object"||typeof e=="function")for(let n of Pr(e))!wr.call(t,n)&&n!=="default"&&Oe(t,n,{get:()=>e[n],enumerable:!(r=Sr(e,n))||r.enumerable});return t},re=t=>t&&t.__esModule?t:Rr(Oe(t!=null?vr(_r(t)):{},"default",{value:t,enumerable:!0}),t);bt(exports,{Globals:()=>M,animated:()=>pn,interpolate:()=>nn,isRenderingOnServer:()=>xr,useChain:()=>Gr,useReducedMotion:()=>yn,useSpring:()=>Jr,useSprings:()=>mt,useTrail:()=>en,useTransition:()=>rn});function ne(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Ae=re(require("react")),Q=typeof window!="undefined"&&window.document&&window.document.createElement?Ae.useLayoutEffect:Ae.useEffect;var M={};bt(M,{assign:()=>Tr,batchedUpdates:()=>q,colorNames:()=>j,createStringInterpolator:()=>se,frameLoop:()=>z,now:()=>ie,requestAnimationFrame:()=>xe,skipAnimation:()=>ce,to:()=>ue,willAdvance:()=>be});var Ir=function(t){return xe(t)},_t=function(){function t(e){e===void 0&&(e=Ir);var r=!0,n=!1,i=0,s=[],a=0,u=new Set,c=new Set,o=new Set,d=function(x){var h=s.indexOf(x);h<0&&(h=s.findIndex(function(y){return y.priority>x.priority}),s.splice(~h?h:s.length,0,x))},l=function(){if(!r)try{P(),e(l)}catch(x){console.error(x)}},p=function(){r&&(r=!1,i==0&&(i=ie(),e(l)))},_=[];this.setTimeout=function(x,h){var y=ie()+h,v=function(){var b=_.findIndex(function(T){return T.cancel==v});b>=0&&_.splice(b,1)},S=vt(_,function(b){return b.time>y}),g={time:y,handler:x,cancel:v};return _.splice(S,0,g),p(),g};var P=this.advance=function(){var x=ie();if(u.size&&(u.forEach(d),u.clear()),_.length&&q(function(){var y=vt(_,function(v){return v.time>x});_.splice(0,y).forEach(function(v){return v.handler()})}),x>i){var h=Math.min(64,x-i);i=x,q(function(){s.length&&(be(s),s=s.filter(function(y){return a=y.priority,y.idle||y.advance(h),!y.idle}),a=0),c.size&&(c.forEach(function(y){return y(x)}),c.clear()),o.size&&(n=!0,o.forEach(function(y){return y(x)}),o.clear(),n=!1)})}};if(this.start=function(x){a>x.priority?u.add(x):(d(x),p())},this.onFrame=function(x){c.add(x),p()},this.onWrite=function(x){n?x(i):o.add(x)},typeof process!="undefined"&&!1){var C=function(){r=!0,u.clear(),_.length=0};Object.defineProperties(this,{_animations:{get:function(){return s}},_dispose:{get:function(){return C}}})}}return t}();function vt(t,e){var r=t.findIndex(e);return r<0?t.length:r}var W=function(){},wt=function(t,e,r){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})},f={arr:Array.isArray,obj:function(t){return!!t&&t.constructor.name==="Object"},fun:function(t){return typeof t=="function"},str:function(t){return typeof t=="string"},num:function(t){return typeof t=="number"},und:function(t){return t===void 0}};function $(t,e){if(f.arr(t)){if(!f.arr(e)||t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}var oe=function(t){return f.str(t)&&(t[0]=="#"||/\d/.test(t)||!!(j&&j[t]))},m=function(t,e,r){f.fun(t.forEach)?t.forEach(e,r):Object.keys(t).forEach(function(n){return e.call(r,t[n],n)})},F=function(t){return f.und(t)?[]:f.arr(t)?t:[t]};function fe(t,e){if(t.size){var r=Array.from(t);t.clear(),m(r,e)}}var se,z=new _t,ue,ie=function(){return performance.now()},j=null,ce=!1,xe=typeof window!="undefined"?window.requestAnimationFrame:function(){return-1},q=function(t){return t()},be=W,Tr=function(t){var e;return e=Object.assign({to:ue,now:ie,frameLoop:z,colorNames:j,skipAnimation:ce,createStringInterpolator:se,requestAnimationFrame:xe,batchedUpdates:q,willAdvance:be},Er(t)),ue=e.to,ie=e.now,z=e.frameLoop,j=e.colorNames,ce=e.skipAnimation,se=e.createStringInterpolator,xe=e.requestAnimationFrame,q=e.batchedUpdates,be=e.willAdvance,e};function Er(t){var e={};for(var r in t)t[r]!==void 0&&(e[r]=t[r]);return e}var X=re(require("react")),Fe=function(t){return X.useEffect(t,[])},ve=function(){var t=X.useState(0)[1],e=X.useRef(!1);return Fe(function(){return function(){e.current=!0}}),function(){e.current||t({})}};function Pt(t){var e=X.useRef(void 0);return X.useEffect(function(){e.current=t}),e.current}var Z=function(t,e,r){if(f.fun(t))return t;if(f.arr(t))return Z({range:t,output:e,extrapolate:r});if(f.str(t.output[0]))return se(t);var n=t,i=n.output,s=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||function(o){return o};return function(o){var d=Or(o,s);return Cr(o,s[d],s[d+1],i[d],i[d+1],c,a,u,n.map)}};function Cr(t,e,r,n,i,s,a,u,c){var o=c?c(t):t;if(o<e){if(a==="identity")return o;a==="clamp"&&(o=e)}if(o>r){if(u==="identity")return o;u==="clamp"&&(o=r)}return n===i?n:e===r?t<=e?n:i:(e===-Infinity?o=-o:r===Infinity?o=o-e:o=(o-e)/(r-e),o=s(o),n===-Infinity?o=-o:i===Infinity?o=o+n:o=o*(i-n)+n,o)}function Or(t,e){for(var r=1;r<e.length-1&&!(e[r]>=t);++r);return r-1}var St=Symbol.for("FluidValue:config");function B(t){var e=V(t);return e?e.get():t}function V(t){if(t)return t[St]}function Ar(t,e){Object.defineProperty(t,St,{value:e,configurable:!0})}var Ve=function(){function t(){Ar(this,this)}return t}();function w(){return w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},w.apply(this,arguments)}var E=re(require("react"));var le=re(require("react"));var _e=Symbol.for("Animated:node"),Fr=t=>!!t&&t[_e]===t,H=t=>t&&t[_e],ke=(t,e)=>wt(t,_e,e),we=t=>t&&t[_e]&&t[_e].getPayload(),Je=class{constructor(){this.payload=void 0,ke(this,this)}getPayload(){return this.payload||[]}},K=class extends Je{constructor(e){super();this._value=e,this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,f.num(this._value)&&(this.lastPosition=this._value)}static create(e,r){return new K(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return f.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,f.num(this._value)&&(this.elapsedTime=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ae=class extends K{constructor(e,r){super(0);this._value=void 0,this._string=null,this._toString=void 0,this._toString=Z({output:[e,r]})}static create(e,r=e){if(f.str(e)&&f.str(r))return new ae(e,r);throw TypeError('Expected "from" and "to" to be strings')}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(!f.num(e))this._string=e,this._value=1;else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Z({output:[this.getValue(),e]})),this._value=0,super.reset()}},je={current:null},de=class extends Je{constructor(e=null){super();this.source=void 0,this.setValue(e)}getValue(e){if(!this.source)return null;let r={};return m(this.source,(n,i)=>{if(Fr(n))r[i]=n.getValue(e);else{let s=V(n);s?r[i]=s.get():e||(r[i]=n)}}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&m(this.payload,e=>e.reset())}_makePayload(e){if(e){let r=new Set;return m(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){V(e)&&je.current&&je.current.dependencies.add(e);let n=we(e);n&&m(n,i=>this.add(i))}},he=class extends de{constructor(e,r){super(null);this.source=void 0,super.setValue(this._makeAnimated(e,r))}static create(e,r){return new he(e,r)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let r=this.getPayload();e&&e.length==r.length?m(r,(n,i)=>n.setValue(e[i])):(this.source=this._makeAnimated(e),this.payload=this._makePayload(this.source))}_makeAnimated(e,r=e){return e?e.map((n,i)=>(oe(n)?ae:K).create(n,r[i])):[]}},Rt=class extends de{constructor(e){super(null);this.update=e,this.dirty=!1}setValue(e,r){if(!!e){if(r&&(je.current=r,e.style)){let{createAnimatedStyle:n}=r.host;e=w(w({},e),{},{style:n(e.style)})}super.setValue(e),je.current=null}}onParentChange({type:e}){!this.dirty&&e==="change"&&(this.dirty=!0,z.onFrame(()=>{this.dirty=!1,this.update()}))}},It=(t,e)=>le.forwardRef((r,n)=>{let i=le.useRef(null),s=!f.fun(t)||t.prototype&&t.prototype.isReactComponent,a=ve(),u=new Rt(()=>{let o=i.current;s&&!o||(o?e.applyAnimatedValues(o,u.getValue(!0)):!1)===!1&&a()}),c=new Set;return u.setValue(r,{dependencies:c,host:e}),Q(()=>(m(c,o=>o.addChild(u)),()=>m(c,o=>o.removeChild(u)))),le.createElement(t,w({},e.getComponentProps(u.getValue()),{ref:s&&(o=>{i.current=Vr(n,o)})}))});function Vr(t,e){return t&&(f.fun(t)?t(e):t.current=e),e}var Et=Symbol.for("AnimatedComponent"),Ct=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=i=>new de(i),getComponentProps:n=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},s=a=>{let u=Tt(a)||"Anonymous";return f.str(a)?a=It(a,i):a=a[Et]||(a[Et]=It(a,i)),a.displayName="Animated("+u+")",a};return m(t,(a,u)=>{f.str(u)||(u=Tt(a)),s[u]=s(a)}),{animated:s}},Tt=t=>f.str(t)?t:t&&f.str(t.displayName)?t.displayName:f.fun(t)&&t.name||null;var me=re(require("react"));function kr(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function et(t,e){var r=me.useState(function(){return{inputs:e,result:t()}})[0],n=me.useRef(r),i=Boolean(e&&n.current.inputs&&kr(e,n.current.inputs)),s=i?n.current:{inputs:e,result:t()};return me.useEffect(function(){n.current=s},[s]),s.result}function Ot(t,e){return et(function(){return t},e)}var jr="react-spring: ",At=!1;function tt(){At||(At=!0,console.warn(jr+'The "interpolate" function is deprecated in v10 (use "to" instead)'))}var Pe=function(){return Pe=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Pe.apply(this,arguments)};var U="[-+]?\\d*\\.?\\d+",Ne=U+"%";function qe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Ft=new RegExp("rgb"+qe(U,U,U)),Vt=new RegExp("rgba"+qe(U,U,U,U)),kt=new RegExp("hsl"+qe(U,Ne,Ne)),jt=new RegExp("hsla"+qe(U,Ne,Ne,U)),Nt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Lt=/^#([0-9a-fA-F]{6})$/,Ut=/^#([0-9a-fA-F]{8})$/;function zt(t){var e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Lt.exec(t))?parseInt(e[1]+"ff",16)>>>0:j&&j[t]!==void 0?j[t]:(e=Ft.exec(t))?(pe(e[1])<<24|pe(e[2])<<16|pe(e[3])<<8|255)>>>0:(e=Vt.exec(t))?(pe(e[1])<<24|pe(e[2])<<16|pe(e[3])<<8|Mt(e[4]))>>>0:(e=Nt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Ut.exec(t))?parseInt(e[1],16)>>>0:(e=qt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=kt.exec(t))?(Gt(Dt(e[1]),Le(e[2]),Le(e[3]))|255)>>>0:(e=jt.exec(t))?(Gt(Dt(e[1]),Le(e[2]),Le(e[3]))|Mt(e[4]))>>>0:null}function Nr(t,e,r){return t<60?[e,r,0]:t<120?[r,e,0]:t<180?[0,e,r]:t<240?[0,r,e]:t<300?[r,0,e]:[e,0,r]}function Gt(t,e,r){var n=(1-Math.abs(2*r-1))*e,i=n*(1-Math.abs(t/60%2-1)),s=r-n/2,a=Nr(t,n,i),u=a[0],c=a[1],o=a[2];return Math.round((u+s)*255)<<24|Math.round((c+s)*255)<<16|Math.round((o+s)*255)<<8}function pe(t){var e=parseInt(t,10);return e<0?0:e>255?255:e}function Dt(t){var e=parseFloat(t);return(e%360+360)%360/360}function Mt(t){var e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Le(t){var e=parseFloat(t);return e<0?0:e>100?1:e/100}function rt(t){var e=zt(t);if(e===null)return t;e=e||0;var r=(e&4278190080)>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,s=(e&255)/255;return"rgba("+r+", "+n+", "+i+", "+s+")"}var Qt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nt,Lr=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ur=function(t,e,r,n,i){return"rgba("+Math.round(e)+", "+Math.round(r)+", "+Math.round(n)+", "+i+")"},Ue=function(t){nt||(nt=j?new RegExp("("+Object.keys(j).join("|")+")","g"):/^\b$/);var e=t.output.map(function(s){return B(s).replace(qr,rt).replace(nt,rt)}),r=e.map(function(s){return s.match(Qt).map(Number)}),n=r[0].map(function(s,a){return r.map(function(u){if(!(a in u))throw Error('The arity of each "output" value must be equal');return u[a]})}),i=n.map(function(s){return Z(Pe(Pe({},t),{output:s}))});return function(s){var a=0;return e[0].replace(Qt,function(){return String(i[a++](s))}).replace(Lr,Ur)}};function Gr(t,e,r=1e3){Q(()=>{if(e){let n=0;m(t,(i,s)=>{if(!!i.current){let{controllers:a}=i.current;if(a.length){let u=r*e[s];isNaN(u)?u=n:n=u,m(a,c=>{m(c.queue,o=>{o.delay=u+(o.delay||0)}),c.start()})}}})}else{let n=Promise.resolve();m(t,i=>{let{controllers:s,start:a}=i.current||{};if(s&&s.length){let u=s.map(c=>{let o=c.queue;return c.queue=[],o});n=n.then(()=>(m(s,(c,o)=>c.queue.push(...u[o])),a()))}})}})}var Dr={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}},Mr=t=>t,it=w(w({},Dr.default),{},{mass:1,damping:1,easing:Mr,clamp:!1}),Wt=class{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,it)}};function zr(t,e,r){r&&(r=w({},r),$t(r,e),e=w(w({},r),e)),$t(t,e),Object.assign(t,e);for(let a in it)t[a]==null&&(t[a]=it[a]);let{mass:n,frequency:i,damping:s}=t;return f.und(i)||(i<.01&&(i=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/i,2)*n,t.friction=4*Math.PI*s*n/i),t}function $t(t,e){if(!f.und(e.decay))t.duration=void 0;else{let r=!f.und(e.tension)||!f.und(e.friction);(r||!f.und(e.frequency)||!f.und(e.damping)||!f.und(e.mass))&&(t.duration=void 0,t.decay=void 0),r&&(t.frequency=void 0)}}var Bt=[],Ht=class{constructor(){this.changed=!1,this.values=Bt,this.toValues=null,this.fromValues=Bt,this.to=void 0,this.from=void 0,this.config=new Wt,this.immediate=!1,this.onStart=void 0,this.onChange=void 0,this.onRest=[]}},st=(t,e)=>et(t,e||[{}]);function J(t,...e){return f.fun(t)?t(...e):t}var Ge=(t,e)=>t===!0||!!(e&&t&&(f.fun(t)?t(e):F(t).includes(e))),De=(t,e,r)=>t&&(f.fun(t)?t(e,r):f.arr(t)?t[e]:w({},t)),Qr=(t,e)=>!f.und(Kt(t,e)),Kt=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Me=(t,e=[],r={})=>{let n=Wr;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));for(let i of n){let s=t[i];!f.und(s)&&!e.includes(i)&&(r[i]=s)}return r},$r=(t,e,r)=>Me(e,r,t),Wr=["pause","cancel","config","immediate","onDelayEnd","onProps","onStart","onChange","onRest"],Br={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onDelayEnd:1,onProps:1,onStart:1,onChange:1,onRest:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,keys:1,callId:1,parentId:1};function Hr(t){let e={},r=0;if(m(t,(n,i)=>{Br[i]||(e[i]=n,r++)}),r)return e}function at(t){let e=Hr(t);if(e){let r={to:e};return m(t,(n,i)=>i in e||(r[i]=n)),r}return w({},t)}function ge(t){let e=V(t);return e?ge(e.get()):f.arr(t)?t.map(ge):oe(t)?se({range:[0,1],output:[t,t]})(1):t}function Yt(t,{key:e,props:r,state:n,actions:i}){return new Promise((s,a)=>{let u,c,o=!1,d=Ge(r.cancel,e);d?_():(u=J(r.delay||0,e),o=Ge(r.pause,e),o?(n.resumeQueue.add(p),i.pause()):(i.resume(),p()));function l(){n.resumeQueue.add(p),c.cancel(),u=c.time-M.now()}function p(){u>0?(n.pauseQueue.add(l),c=M.frameLoop.setTimeout(_,u)):_()}function _(){n.pauseQueue.delete(l),t<=(n.cancelId||0)&&(d=!0);try{i.start(w(w({},r),{},{callId:t,delay:u,cancel:d,pause:o}),s)}catch(P){a(P)}}})}var ot=(t,e)=>e.length==1?e[0]:e.some(r=>r.cancelled)?Re(t):e.every(r=>r.noop)?Xt(t):Se(t,e.every(r=>r.finished)),Xt=(t,e=t.get())=>({value:e,noop:!0,finished:!0,target:t}),Se=(t,e,r=t.get())=>({value:r,finished:e,target:t}),Re=(t,e=t.get())=>({value:e,cancelled:!0,target:t});async function Zt(t,e,r,n){e.pause&&await new Promise(o=>{r.resumeQueue.add(o)});let{callId:i,parentId:s,onRest:a}=e,{asyncTo:u,promise:c}=r;return!s&&t===u&&!e.reset?c:r.promise=(async()=>{r.asyncId=i,r.asyncTo=t;let o=Me(e,["onRest"]),d,l,p=new Promise((h,y)=>(d=h,l=y)),_=h=>(...y)=>{let v=S=>{throw S instanceof ze&&l(S),S};try{return h(...y).catch(v)}catch(S){v(S)}},P=h=>{let y=i<=(r.cancelId||0)&&Re(n)||i!==r.asyncId&&Se(n,!1);if(y)throw h.result=y,h},C=_((h,y)=>{let v=new ze;P(v);let S=f.obj(h)?w({},h):w(w({},y),{},{to:h});return S.parentId=i,m(o,(g,b)=>{f.und(S[b])&&(S[b]=g)}),n.start(S).then(async g=>(P(v),n.is("PAUSED")&&await new Promise(b=>{r.resumeQueue.add(b)}),g))}),x;try{let h;f.arr(t)?h=(async y=>{for(let v of y)await C(v)})(t):f.fun(t)&&(h=Promise.resolve(t(C,n.stop.bind(n)))),await Promise.all([h.then(d),p]),x=Se(n,!0)}catch(h){if(h instanceof ze)x=h.result;else throw h}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?u:void 0,r.promise=s?c:void 0)}return f.fun(a)&&q(()=>{a(x)}),x})()}function Qe(t,e){t.cancelId=e,t.asyncId=t.asyncTo=t.promise=void 0}var ze=class 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}},Jt=t=>t instanceof We,Kr=1,We=class extends Ve{constructor(...e){super(...e);this.id=Kr++,this.key=void 0,this._priority=0,this._children=new Set}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=H(this);return e&&e.getValue()}to(...e){return ue(this,e)}interpolate(...e){return tt(),ue(this,e)}addChild(e){this._children.size||this._attach(),this._children.add(e)}removeChild(e){this._children.delete(e),this._children.size||this._detach()}onParentChange({type:e}){this.idle?e=="start"&&(this._reset(),this._start()):e=="reset"&&this._reset()}_attach(){}_detach(){}_reset(){this._emit({type:"reset",parent:this})}_start(){this._emit({type:"start",parent:this})}_onChange(e,r=!1){this._emit({type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||z.start(this),this._emit({type:"priority",parent:this,priority:e})}_emit(e){m(Array.from(this._children),r=>{r.onParentChange(e)})}},$e="CREATED",ft="IDLE",L="ACTIVE",Be="PAUSED",He="DISPOSED",er=class extends We{constructor(e,r){super();if(this.key=void 0,this.animation=new Ht,this.queue=void 0,this._phase=$e,this._state={pauseQueue:new Set,resumeQueue:new Set},this._defaultProps={},this._lastCallId=0,this._lastToId=0,!f.und(e)||!f.und(r)){let n=f.obj(e)?w({},e):w(w({},r),{},{from:e});n.default=!0,this.start(n)}}get idle(){return!this.is(L)&&!this._state.asyncTo}get goal(){return B(this.animation.to)}get velocity(){let e=H(this);return e instanceof K?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}advance(e){let r=!0,n=!1,i=this.animation,{config:s,toValues:a}=i,u=we(i.to);if(!u){let c=V(i.to);c&&(a=F(c.get()))}return i.values.forEach((c,o)=>{if(!c.done){let d=u?u[o].lastPosition:a[o],l=i.immediate,p=d;if(!l){if(p=c.lastPosition,s.tension<=0){c.done=!0;return}let _=c.elapsedTime+=e,P=i.fromValues[o],C=c.v0!=null?c.v0:c.v0=f.arr(s.velocity)?s.velocity[o]:s.velocity,x;if(f.und(s.duration))if(s.decay){let h=s.decay===!0?.998:s.decay,y=Math.exp(-(1-h)*_);p=P+C/(1-h)*(1-y),l=Math.abs(c.lastPosition-p)<.1,x=C*y}else{x=c.lastVelocity==null?C:c.lastVelocity;let h=s.precision||(P==d?.005:Math.min(1,Math.abs(d-P)*.001)),y=s.restVelocity||h/10,v=s.clamp?0:s.bounce,S=!f.und(v),g=P==d?c.v0>0:P<d,b,T=!1,R=1,I=Math.ceil(e/R);for(let k=0;k<I&&(b=Math.abs(x)>y,!(!b&&(l=Math.abs(d-p)<=h,l)));++k){S&&(T=p==d||p>d==g,T&&(x=-x*v,p=d));let G=-s.tension*1e-6*(p-d),ee=-s.friction*.001*x,ye=(G+ee)/s.mass;x=x+ye*R,p=p+x*R}}else{let h=s.progress||0;s.duration<=0?h=1:h+=(1-h)*Math.min(1,_/s.duration),p=P+s.easing(h)*(d-P),x=(p-c.lastPosition)/e,l=h==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),l=!0)}u&&!u[o].done&&(l=!1),l?c.done=!0:r=!1,c.setValue(p,s.round)&&(n=!0)}}),r?this.finish():n&&this._onChange(this.get()),r}is(e){return this._phase==e}set(e){return q(()=>{if(this._focus(e),this._set(e)&&!this.is(L))return this._onChange(this.get(),!0);this._stop()}),this}pause(){Ke(this,"pause"),this.is(Be)||(this._phase=Be,fe(this._state.pauseQueue,e=>e()))}resume(){Ke(this,"resume"),this.is(Be)&&(this._start(),fe(this._state.resumeQueue,e=>e()))}finish(e){if(this.resume(),this.is(L)){let r=this.animation;!r.config.decay&&f.und(e)&&(e=r.to),f.und(e)||this._set(e),q(()=>{r.changed||(r.changed=!0,r.onStart&&r.onStart(this)),this._stop()})}return this}update(e){return Ke(this,"update"),(this.queue||(this.queue=[])).push(e),this}async start(e,r){Ke(this,"start");let n;f.und(e)?(n=this.queue||[],this.queue=[]):n=[f.obj(e)?e:w(w({},r),{},{to:e})];let i=await Promise.all(n.map(s=>this._update(s)));return ot(this,i)}stop(e){return this.is(He)||(Qe(this._state,this._lastCallId),this._focus(this.get()),q(()=>this._stop(e))),this}reset(){this._update({reset:!0})}dispose(){this.is(He)||(this.animation&&(this.animation.onRest=[]),this.stop(),this._phase=He)}onParentChange(e){super.onParentChange(e),e.type=="change"?this.is(L)||(this._reset(),this.is(Be)||this._start()):e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode({to:e,from:r,reverse:n}){let i=this.key||"";e=!f.obj(e)||V(e)?e:e[i],r=!f.obj(r)||V(r)?r:r[i];let s={to:e,from:r};if(this.is($e)){n&&([e,r]=[r,e]),r=B(r);let a=this._updateNode(f.und(r)?B(e):r);a&&!f.und(r)&&a.setValue(r)}return s}_updateNode(e){let r=H(this);if(!f.und(e)){let n=this._getNodeType(e);(!r||r.constructor!==n)&&ke(this,r=n.create(e))}return r}_getNodeType(e){let r=H(e);return r?r.constructor:f.arr(e)?he:oe(e)?ae:K}_update(e,r){let n=this._defaultProps,i=a=>{let u=Kt(e,a);f.und(u)||(n[a]=u),n[a]&&(e[a]=n[a])};i("cancel"),i("pause");let s=this._prepareNode(e);return Yt(++this._lastCallId,{key:this.key,props:e,state:this._state,actions:{pause:this.pause.bind(this),resume:this.resume.bind(this),start:this._merge.bind(this,s)}}).then(a=>{if(e.loop&&a.finished&&!(r&&a.noop)){let u=tr(e);if(u)return this._update(u,!0)}return a})}_merge(e,r,n){if(r.cancel)return this.stop(!0),n(Re(this));let{key:i,animation:s}=this,a=this._defaultProps,u=!f.und(e.to),c=!f.und(e.from);if(u||c)if(r.callId>this._lastToId)this._lastToId=r.callId;else return n(Re(this));let o=A=>f.und(r[A])?a[A]:r[A],d=Ie(o("onDelayEnd"),i);d&&d(r,this),r.default&&$r(a,r,["pause","cancel"]);let{to:l,from:p}=s,{to:_=l,from:P=p}=e;c&&!u&&(_=P),r.reverse&&([_,P]=[P,_]);let C=!$(P,p);C&&(s.from=P);let x=!$(_,l);x&&this._focus(_);let h=V(_),y=V(P);y&&(P=y.get());let v=f.arr(r.to)||f.fun(r.to),{config:S}=s,{decay:g,velocity:b}=S;r.config&&!v&&zr(S,J(r.config,i),r.config!==a.config?J(a.config,i):void 0);let T=H(this);if(!T||f.und(_))return n(Se(this,!0));let R=f.und(r.reset)?c&&!r.default:!f.und(P)&&Ge(r.reset,i),I=R?P:this.get(),k=ge(_),G=f.num(k)||f.arr(k)||oe(k),ee=!v&&(!G||Ge(a.immediate||r.immediate,i));if(x)if(ee)T=this._updateNode(k);else{let A=this._getNodeType(_);if(A!==T.constructor)throw Error("Cannot animate between "+T.constructor.name+" and "+A.name+', as the "to" prop suggests')}let ye=T.constructor,O=!!h,te=!1;if(!O){let A=R||this.is($e)&&C;(x||A)&&(te=$(ge(I),k),O=!te),(!$(S.decay,g)||!$(S.velocity,b))&&(O=!0)}if(te&&this.is(L)&&(s.changed&&!R?O=!0:O||this._stop()),!v){(O||V(l))&&(s.values=T.getPayload(),s.toValues=h?null:ye==ae?[1]:F(k)),s.immediate=ee,s.onStart=Ie(o("onStart"),i),s.onChange=Ie(o("onChange"),i);let A=s.onRest,D=R&&!r.onRest?A[0]||W:ut(Ie(o("onRest"),i),this);if(O){s.onRest=[D,ut(n,this)];let Y=R?0:1;Y<A.length&&q(()=>{for(;Y<A.length;Y++)A[Y]()})}else(R||r.onRest)&&(s.onRest[0]=D)}let N=Ie(o("onProps"),i);N&&N(r,this),R&&T.setValue(I),v?n(Zt(r.to,r,this._state,this)):O?(R&&(this._phase=ft),this._reset(),this._start()):this.is(L)&&!x?s.onRest.push(ut(n,this)):n(Xt(this,I))}_focus(e){let r=this.animation;if(e!==r.to){let n=V(r.to);n&&n.removeChild(this),r.to=e;let i=0;(n=V(e))&&(n.addChild(this),Jt(e)&&(i=(e.priority||0)+1)),this.priority=i}}_set(e){let r=V(e);r&&(e=r.get());let n=H(this),i=n&&n.getValue();return n?n.setValue(e):this._updateNode(e),!$(e,i)}_onChange(e,r=!1){let n=this.animation;!n.changed&&!r&&(n.changed=!0,n.onStart&&n.onStart(this)),n.onChange&&n.onChange(e,this),super._onChange(e,r)}_reset(){let e=this.animation;H(this).reset(e.to),this.is(L)||(e.changed=!1),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),super._reset()}_start(){this.is(L)||(this._phase=L,super._start(),ce?this.finish():z.start(this))}_stop(e){if(this.resume(),this.is(L)){this._phase=ft,this._onChange(this.get(),!0);let r=this.animation;m(r.values,i=>{i.done=!0});let n=r.onRest;n.length&&(r.onRest=[r.toValues?W:n[0]],r.changed||(n[0]=W),m(n,i=>i(e)))}}};function Ke(t,e){if(t.is(He))throw Error('Cannot call "'+e+'" of disposed "'+t.constructor.name+'" object')}function Ie(t,e){return f.fun(t)?t:e&&t?t[e]:void 0}var ut=(t,e)=>{let{to:r}=e.animation;return t?n=>{if(n)t(Re(e));else{let i=ge(r),s=ge(e.get()),a=$(s,i);t(Se(e,a))}}:W};function tr(t,e=t.loop,r=t.to){let n=J(e);if(n){let i=n!==!0&&at(n),s=(i||t).reverse,a=!i||i.reset;return Ee(w(w({},t),{},{loop:e,default:!1,to:!s||f.arr(r)||f.fun(r)?r:void 0,from:a?t.from:void 0,reset:a},i))}}function Ee(t){let{to:e,from:r}=t=at(t),n=new Set;return r?rr(r,n):delete t.from,f.obj(e)?rr(e,n):e||delete t.to,t.keys=n.size?Array.from(n):null,t}function Yr(t){let e=Ee(t);return f.und(e.default)&&(e.default=Me(e,[e.immediate===!0&&"immediate"])),e}function rr(t,e){m(t,(r,n)=>r!=null&&e.add(n))}var Xr=["onStart","onChange","onRest"],Zr=1,ct=class{constructor(e,r){this.id=Zr++,this.springs={},this.queue=[],this._flush=void 0,this._initialProps=void 0,this._phase=$e,this._lastAsyncId=0,this._active=new Set,this._state={pauseQueue:new Set,resumeQueue:new Set},this._events={onStart:new Set,onChange:new Set,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),e&&this.start(e)}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}is(e){return this._phase==e}get(){let e={};return this.each((r,n)=>e[n]=r.get()),e}update(e){return e&&this.queue.push(Ee(e)),this}start(e){let r=e?F(e).map(Ee):this.queue;return e||(this.queue=[]),this._flush?this._flush(this,r):(nr(this,r),lt(this,r))}stop(e){if(f.und(e))this.each(r=>r.stop()),Qe(this._state,this._lastAsyncId);else{let r=this.springs;m(F(e),n=>r[n].stop())}return this}pause(e){if(f.und(e))this.each(r=>r.pause());else{let r=this.springs;m(F(e),n=>r[n].pause())}return this}resume(e){if(f.und(e))this.each(r=>r.resume());else{let r=this.springs;m(F(e),n=>r[n].resume())}return this}reset(){return this.each(e=>e.reset()),this}each(e){m(this.springs,e)}dispose(){this._state.asyncTo=void 0,this.each(e=>e.dispose()),this.springs={}}_onFrame(){let{onStart:e,onChange:r,onRest:n}=this._events,i=this._active.size>0;i&&this._phase!=L&&(this._phase=L,fe(e,a=>a(this)));let s=(r.size||!i&&n.size)&&this.get();fe(r,a=>a(s)),i||(this._phase=ft,fe(n,([a,u])=>{u.value=s,a(u)}))}onParentChange(e){e.type=="change"&&(this._active[e.idle?"delete":"add"](e.parent),z.onFrame(this._onFrame))}};function lt(t,e){return Promise.all(e.map(r=>ir(t,r))).then(r=>ot(t,r))}function ir(t,e,r){let{to:n,loop:i,onRest:s}=e;i&&(e.loop=!1);let a=f.arr(n)||f.fun(n)?n:void 0;a?(e.to=void 0,e.onRest=void 0):m(Xr,d=>{let l=e[d];if(f.fun(l)){let p=t._events[d];p instanceof Set?e[d]=()=>p.add(l):e[d]=({finished:_,cancelled:P})=>{let C=p.get(l);C?(_||(C.finished=!1),P&&(C.cancelled=!0)):p.set(l,{value:null,finished:_,cancelled:P})}}});let c=(e.keys||Object.keys(t.springs)).map(d=>t.springs[d].start(e)),o=t._state;return a?c.push(Yt(++t._lastAsyncId,{props:e,state:o,actions:{pause:W,resume:W,start(d,l){d.onRest=s,d.cancel?Qr(d,"cancel")&&Qe(o,d.callId):l(Zt(a,d,o,t))}}})):!e.keys&&e.cancel===!0&&Qe(o,t._lastAsyncId),Promise.all(c).then(d=>{let l=ot(t,d);if(i&&l.finished&&!(r&&l.noop)){let p=tr(e,i,n);if(p)return nr(t,[p]),ir(t,p,!0)}return l})}function dt(t,e){let r=w({},t.springs);return e&&m(F(e),n=>{f.und(n.keys)&&(n=Ee(n)),f.obj(n.to)||(n=w(w({},n),{},{to:void 0})),ar(r,n,i=>sr(i))}),r}function ht(t,e){m(e,(r,n)=>{t.springs[n]||(t.springs[n]=r,r.addChild(t))})}function sr(t,e){let r=new er;return r.key=t,e&&r.addChild(e),r}function ar(t,e,r){e.keys&&m(e.keys,n=>{(t[n]||(t[n]=r(n)))._prepareNode(e)})}function nr(t,e){m(e,r=>{ar(t.springs,r,n=>sr(n,t))})}var Te=E.createContext({}),or=t=>{let{children:e}=t,r=ne(t,["children"]),n=E.useContext(Te);r=st(()=>w(w({},n),r),[n,r.pause,r.cancel,r.immediate,r.config]);let{Provider:i}=Te;return E.createElement(i,{value:r},e)};or.Provider=Te.Provider;or.Consumer=Te.Consumer;var fr=()=>E.useContext(Te),ur={create:t=>({get controllers(){return t()},update(e){return m(t(),(r,n)=>{r.update(De(e,n,r))}),this},async start(e){let r=await Promise.all(t().map((n,i)=>{let s=De(e,i,n);return n.start(s)}));return{value:r.map(n=>n.value),finished:r.every(n=>n.finished)}},stop:e=>m(t(),r=>r.stop(e)),pause:e=>m(t(),r=>r.pause(e)),resume:e=>m(t(),r=>r.resume(e))})};function mt(t,e,r){let n=f.fun(e)&&e;n&&!r&&(r=[]);let i=E.useRef(0),s=ve(),[a]=E.useState(()=>({ctrls:[],queue:[],flush(h,y){let v=dt(h,y);return i.current>0&&!a.queue.length&&!Object.keys(v).some(g=>!h.springs[g])?lt(h,y):new Promise(g=>{ht(h,v),a.queue.push(()=>{g(lt(h,y))}),s()})}})),u=E.useRef(),c=[...a.ctrls],o=[],d=Pt(t)||0,l=c.slice(t,d);st(()=>{c.length=t,p(d,t)},[t]),st(()=>{p(0,Math.min(d,t))},r);function p(h,y){for(let v=h;v<y;v++){let S=c[v]||(c[v]=new ct(null,a.flush)),g=n?n(v,S):e[v];g&&(g=o[v]=Yr(g),v==0&&(u.current=g.ref,g.ref=void 0))}}let _=E.useMemo(()=>ur.create(()=>a.ctrls),[]),P=c.map((h,y)=>dt(h,o[y])),C=fr();Q(()=>{i.current++,a.ctrls=c,u.current&&(u.current.current=_);let{queue:h}=a;h.length&&(a.queue=[],m(h,y=>y())),m(l,y=>y.dispose()),m(c,(y,v)=>{let S=P[v];ht(y,S),y.start({default:C});let g=o[v];g&&(u.current?y.queue.push(g):y.start(g))})}),Fe(()=>()=>{m(a.ctrls,h=>h.dispose())});let x=P.map(h=>w({},h));return n||arguments.length==3?[x,_.start,_.stop]:x}function Jr(t,e){let r=f.fun(t),[[n],i,s]=mt(1,r?t:[t],r?e||[]:e);return r||arguments.length==2?[n,i,s]:n}function en(t,e,r){let n=f.fun(e)&&e;n&&!r&&(r=[]);let i=[],s=mt(t,(a,u)=>(i[a]=u,De(e,a,u)),r||[{}]);if(Q(()=>{let a=f.obj(e)&&e.reverse;for(let u=0;u<i.length;u++){let c=i[u+(a?1:-1)];c&&i[u].update({to:c.springs}).start()}},r),n||arguments.length==3){let a=s[1];return s[1]=Ot(u=>{let c=f.obj(u)&&u.reverse;return a((o,d)=>{let l=De(u,o,d),p=i[o+(c?1:-1)];return p&&(l.to=p.springs),l})},r),s}return s[0]}var cr="mount",Ye="enter",lr="update",pt="leave";function rn(t,e,r){let{ref:n,reset:i,sort:s,trail:a=0,expires:u=!0}=e,c=F(t),o=[],d=tn(c,e),l=E.useRef(null),p=i?null:l.current;Q(()=>{l.current=o}),Fe(()=>()=>m(l.current,g=>{g.expired&&clearTimeout(g.expirationId),g.ctrl.dispose()}));let _=[];if(p&&m(p,(g,b)=>{g.expired?clearTimeout(g.expirationId):(b=_[b]=d.indexOf(g.key),~b&&(o[b]=g))}),m(c,(g,b)=>{o[b]||(o[b]={key:d[b],item:g,phase:cr,ctrl:new ct})}),_.length){let g=-1;m(_,(b,T)=>{let R=p[T];~b?(g=o.indexOf(R),o[g]=w(w({},R),{},{item:c[b]})):e.leave&&o.splice(++g,0,R)})}f.fun(s)&&o.sort((g,b)=>s(g.item,b.item));let P=-a,C=ve(),x=Me(e),h=new Map;m(o,(g,b)=>{let T=g.key,R=g.phase,I,k;if(R==cr)I=e.enter,k=Ye;else{let O=d.indexOf(T)<0;if(R!=pt)if(O)I=e.leave,k=pt;else if(I=e.update)k=lr;else return;else if(!O)I=e.enter,k=Ye;else return}if(I=J(I,g.item,b),I=f.obj(I)?at(I):{to:I},!I.config){let O=e.config||x.config;I.config=J(O,g.item,b)}let G=w(w({},x),{},{delay:P+=a,reset:!1},I);if(k==Ye&&f.und(G.from)){let O=f.und(e.initial)||p?e.from:e.initial;G.from=J(O,g.item,b)}let{onRest:ee}=G;G.onRest=O=>{let te=l.current,N=te.find(A=>A.key===T);if(!!N){if(f.fun(ee)&&ee(O,N),O.cancelled&&N.phase!=lr){N.phase=R;return}if(N.ctrl.idle){let A=te.every(D=>D.ctrl.idle);if(N.phase==pt){let D=J(u,N.item);if(D!==!1){let Y=D===!0?0:D;if(N.expired=!0,!A&&Y>0){Y<=2147483647&&(N.expirationId=setTimeout(C,Y));return}}}A&&te.some(D=>D.expired)&&C()}}};let ye=dt(g.ctrl,G);h.set(g,{phase:k,springs:ye,payload:G})});let y=fr();Q(()=>{m(o,g=>{g.ctrl.start({default:y})})},[y]);let v=E.useMemo(()=>ur.create(()=>l.current.map(g=>g.ctrl)),[]);E.useImperativeHandle(n,()=>v),Q(()=>{m(h,({phase:g,springs:b,payload:T},R)=>{ht(R.ctrl,b),y.cancel||(R.phase=g,g==Ye&&R.ctrl.start({default:y}),R.ctrl[n?"update":"start"](T))})},i?void 0:r);let S=g=>E.createElement(E.Fragment,null,o.map((b,T)=>{let{springs:R}=h.get(b)||b.ctrl,I=g(w({},R),b.item,b,T);return I&&I.type?E.createElement(I.type,w({},I.props,{key:f.str(b.key)||f.num(b.key)?b.key:b.ctrl.id,ref:I.ref})):I}));return arguments.length==3?[S,v.start,v.stop]:S}function tn(t,{key:e,keys:r=e}){return f.und(r)?t:f.fun(r)?t.map(r):F(r)}var gt=class extends We{constructor(e,r){super();this.source=e,this.key=void 0,this.idle=!0,this.calc=void 0,this.calc=Z(...r);let n=this._get(),i=f.arr(n)?he:K;ke(this,i.create(n))}advance(e){let r=this._get(),n=this.get();$(r,n)||(H(this).setValue(r),this._onChange(r,this.idle))}_get(){let e=f.arr(this.source)?this.source.map(r=>r.get()):F(this.source.get());return this.calc(...e)}_reset(){m(we(this),e=>e.reset()),super._reset()}_start(){this.idle=!1,super._start(),ce?(this.idle=!0,this.advance()):z.start(this)}_attach(){let e=!0,r=1;m(F(this.source),n=>{Jt(n)&&(n.idle||(e=!1),r=Math.max(r,n.priority+1)),n.addChild(this)}),this.priority=r,e||(this._reset(),this._start())}_detach(){m(F(this.source),e=>{e.removeChild(this)}),this.idle=!0}onParentChange(e){e.type=="start"?this.advance():e.type=="change"?this.idle?this.advance():e.idle&&(this.idle=F(this.source).every(r=>r.idle!==!1),this.idle&&(this.advance(),m(we(this),r=>{r.done=!0}))):e.type=="priority"&&(this.priority=F(this.source).reduce((r,n)=>Math.max(r,(n.priority||0)+1),0)),super.onParentChange(e)}};var nn=(t,...e)=>(tt(),new gt(t,e));M.assign({createStringInterpolator:Ue,to:(t,e)=>new gt(t,e)});var hr=re(require("react-dom"));var sn={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},dr=sn;var mr=/^--/;function an(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!mr.test(t)&&!(Ce.hasOwnProperty(t)&&Ce[t])?e+"px":(""+e).trim()}var pr={};function on(t,e){if(!t.nodeType||!t.setAttribute)return!1;let r=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",n=e,{style:i,children:s,scrollTop:a,scrollLeft:u}=n,c=ne(n,["style","children","scrollTop","scrollLeft"]),o=Object.values(c),d=Object.keys(c).map(l=>r||t.hasAttribute(l)?l:pr[l]||(pr[l]=l.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));M.frameLoop.onWrite(()=>{s!==void 0&&(t.textContent=s);for(let l in i)if(i.hasOwnProperty(l)){let p=an(l,i[l]);l==="float"?l="cssFloat":mr.test(l)?t.style.setProperty(l,p):t.style[l]=p}d.forEach((l,p)=>{t.setAttribute(l,o[p])}),a!==void 0&&(t.scrollTop=a),u!==void 0&&(t.scrollLeft=u)})}var Ce={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},fn=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),un=["Webkit","Ms","Moz","O"];Ce=Object.keys(Ce).reduce((t,e)=>(un.forEach(r=>t[fn(r,e)]=t[e]),t),Ce);var cn=/^(matrix|translate|scale|rotate|skew)/,ln=/^(translate)/,dn=/^(rotate|skew)/,yt=(t,e)=>f.num(t)&&t!==0?t+e:t,Xe=(t,e)=>f.arr(t)?t.every(r=>Xe(r,e)):f.num(t)?t===e:parseFloat(t)===e,gr=class extends de{constructor(e){let{x:r,y:n,z:i}=e,s=ne(e,["x","y","z"]),a=[],u=[];(r||n||i)&&(a.push([r||0,n||0,i||0]),u.push(c=>["translate3d("+c.map(o=>yt(o,"px")).join(",")+")",Xe(c,0)])),m(s,(c,o)=>{if(o==="transform")a.push([c||""]),u.push(d=>[d,d===""]);else if(cn.test(o)){if(delete s[o],f.und(c))return;let d=ln.test(o)?"px":dn.test(o)?"deg":"";a.push(F(c)),u.push(o==="rotate3d"?([l,p,_,P])=>["rotate3d("+l+","+p+","+_+","+yt(P,d)+")",Xe(P,0)]:l=>[o+"("+l.map(p=>yt(p,d)).join(",")+")",Xe(l,o.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new yr(a,u)),super(s)}},yr=class extends Ve{constructor(e,r){super();this.inputs=e,this.transforms=r,this._value=null,this._children=new Set}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return m(this.inputs,(n,i)=>{let s=B(n[0]),[a,u]=this.transforms[i](f.arr(s)?s:n.map(B));e+=" "+a,r=r&&u}),r?"none":e}addChild(e){this._children.size||m(this.inputs,r=>m(r,n=>{let i=V(n);i&&i.addChild(this)})),this._children.add(e)}removeChild(e){this._children.delete(e),this._children.size||m(this.inputs,r=>m(r,n=>{let i=V(n);i&&i.removeChild(this)}))}onParentChange(e){e.type=="change"&&(this._value=null),m(this._children,r=>{r.onParentChange(e)})}},hn=["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"];M.assign({colorNames:dr,createStringInterpolator:Ue,batchedUpdates:hr.unstable_batchedUpdates});var mn=Ct(hn,{applyAnimatedValues:on,createAnimatedStyle:t=>new gr(t),getComponentProps:t=>ne(t,["scrollTop","scrollLeft"])}),pn=mn.animated;var Ze=re(require("react")),gn="(prefers-reduced-motion: reduce)",xr=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),br=()=>xr?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(gn);function yn(){let[t,e]=Ze.useState(br().matches);return Ze.useEffect(()=>{let r=br(),n=()=>{e(r.matches)};return r.addListener(n),()=>{r.removeListener(n)}},[]),t} | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var is=Object.create,De=Object.defineProperty,rs=Object.getPrototypeOf,Lt=Object.prototype.hasOwnProperty,os=Object.getOwnPropertyNames,as=Object.getOwnPropertyDescriptor,Gt=Object.getOwnPropertySymbols,us=Object.prototype.propertyIsEnumerable;var P=Object.assign,Bt=t=>De(t,"__esModule",{value:!0});var ce=(t,e)=>{var n={};for(var s in t)Lt.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&Gt)for(var s of Gt(t))e.indexOf(s)<0&&us.call(t,s)&&(n[s]=t[s]);return n};var cs=(t,e)=>{Bt(t);for(var n in e)De(t,n,{get:e[n],enumerable:!0})},ls=(t,e,n)=>{if(Bt(t),e&&typeof e=="object"||typeof e=="function")for(let s of os(e))!Lt.call(t,s)&&s!=="default"&&De(t,s,{get:()=>e[s],enumerable:!(n=as(e,s))||n.enumerable});return t},Pe=t=>t&&t.__esModule?t:ls(De(t!=null?is(rs(t)):{},"default",{value:t,enumerable:!0}),t);cs(exports,{Globals:()=>N,animated:()=>Xn,interpolate:()=>Hn,isRenderingOnServer:()=>es,useChain:()=>Pn,useReducedMotion:()=>fi,useSpring:()=>zn,useSprings:()=>rt,useTrail:()=>Mn,useTransition:()=>Gn});var ze=K(),w=t=>xe(t,ze),Me=K();w.write=t=>xe(t,Me);var Qe=K();w.onStart=t=>xe(t,Qe);var ft=K();w.onFrame=t=>xe(t,ft);var ht=K();w.onFinish=t=>xe(t,ht);var le=[];w.setTimeout=(t,e)=>{let n=w.now()+e,s=()=>{let r=le.findIndex(u=>u.cancel==s);~r&&le.splice(r,1),X.count-=~r?1:0},i={time:n,handler:t,cancel:s};return le.splice(Ht(n),0,i),X.count+=1,Kt(),i};var Ht=t=>~(~le.findIndex(e=>e.time>t)||~le.length);w.cancel=t=>{ze.delete(t),Me.delete(t)};w.sync=t=>{mt=!0,w.batchedUpdates(t),mt=!1};w.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function s(...i){e=i,w.onStart(n)}return s.handler=t,s.cancel=()=>{Qe.delete(n),e=null},s};var pt=typeof window!="undefined"?window.requestAnimationFrame:()=>{};w.use=t=>pt=t;w.now=typeof performance!="undefined"?()=>performance.now():Date.now;w.batchedUpdates=t=>t();w.catch=console.error;var ee=-1,mt=!1;function xe(t,e){mt?(e.delete(t),t(0)):(e.add(t),Kt())}function Kt(){ee<0&&(ee=0,pt(Wt))}function Wt(){~ee&&(pt(Wt),w.batchedUpdates(ds))}function ds(){let t=ee;ee=w.now();let e=Ht(ee);e&&(Yt(le.splice(0,e),n=>n.handler()),X.count-=e),Qe.flush(),ze.flush(t?Math.min(64,ee-t):16.667),ft.flush(),Me.flush(),ht.flush()}function K(){let t=new Set,e=t;return{add(n){X.count+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return X.count-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,X.count-=e.size,Yt(e,s=>s(n)&&t.add(s)),X.count+=t.size,e=t)}}}function Yt(t,e){t.forEach(n=>{try{e(n)}catch(s){w.catch(s)}})}var X={count:0,clear(){ee=-1,le=[],Qe=K(),ze=K(),ft=K(),Me=K(),ht=K(),X.count=0}};var j=Pe(require("react"));function Le(){}var Jt=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),a={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function J(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}var m=(t,e)=>t.forEach(e);function z(t,e,n){for(let s in t)e.call(n,t[s],s)}var V=t=>a.und(t)?[]:a.arr(t)?t:[t];function he(t,e){if(t.size){let n=Array.from(t);t.clear(),m(n,e)}}var me=(t,...e)=>he(t,n=>n(...e)),gt,Zt,te=null,Xt=!1,yt=Le,fs=t=>{t.to&&(Zt=t.to),t.now&&(w.now=t.now),t.colors!==void 0&&(te=t.colors),t.skipAnimation!=null&&(Xt=t.skipAnimation),t.createStringInterpolator&&(gt=t.createStringInterpolator),t.requestAnimationFrame&&w.use(t.requestAnimationFrame),t.batchedUpdates&&(w.batchedUpdates=t.batchedUpdates),t.willAdvance&&(yt=t.willAdvance)},N=Object.freeze({__proto__:null,get createStringInterpolator(){return gt},get to(){return Zt},get colors(){return te},get skipAnimation(){return Xt},get willAdvance(){return yt},assign:fs}),Se=new Set,M=[],bt=[],Ge=0,pe={get idle(){return!Se.size&&!M.length},start(t){Ge>t.priority?(Se.add(t),w.onStart(hs)):(en(t),w(_t))},advance:_t,sort(t){if(Ge)w.onFrame(()=>pe.sort(t));else{let e=M.indexOf(t);~e&&(M.splice(e,1),tn(t))}},clear(){M=[],Se.clear()}};function hs(){Se.forEach(en),Se.clear(),w(_t)}function en(t){M.includes(t)||tn(t)}function tn(t){M.splice(ms(M,e=>e.priority>t.priority),0,t)}function _t(t){let e=bt;for(let n=0;n<M.length;n++){let s=M[n];Ge=s.priority,s.idle||(yt(s),s.advance(t),s.idle||e.push(s))}return Ge=0,bt=M,bt.length=0,M=e,M.length>0}function ms(t,e){let n=t.findIndex(e);return n<0?t.length:n}var nn={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},Q="[-+]?\\d*\\.?\\d+",Be=Q+"%";function He(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ps=new RegExp("rgb"+He(Q,Q,Q)),gs=new RegExp("rgba"+He(Q,Q,Q,Q)),ys=new RegExp("hsl"+He(Q,Be,Be)),bs=new RegExp("hsla"+He(Q,Be,Be,Q)),_s=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vs=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ws=/^#([0-9a-fA-F]{6})$/,Ps=/^#([0-9a-fA-F]{8})$/;function xs(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ws.exec(t))?parseInt(e[1]+"ff",16)>>>0:te&&te[t]!==void 0?te[t]:(e=ps.exec(t))?(ge(e[1])<<24|ge(e[2])<<16|ge(e[3])<<8|255)>>>0:(e=gs.exec(t))?(ge(e[1])<<24|ge(e[2])<<16|ge(e[3])<<8|on(e[4]))>>>0:(e=_s.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Ps.exec(t))?parseInt(e[1],16)>>>0:(e=vs.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=ys.exec(t))?(sn(rn(e[1]),Ke(e[2]),Ke(e[3]))|255)>>>0:(e=bs.exec(t))?(sn(rn(e[1]),Ke(e[2]),Ke(e[3]))|on(e[4]))>>>0:null}function vt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function sn(t,e,n){let s=n<.5?n*(1+e):n+e-n*e,i=2*n-s,r=vt(i,s,t+1/3),u=vt(i,s,t),c=vt(i,s,t-1/3);return Math.round(r*255)<<24|Math.round(u*255)<<16|Math.round(c*255)<<8}function ge(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function rn(t){return(parseFloat(t)%360+360)%360/360}function on(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ke(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function an(t){let e=xs(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,s=(e&16711680)>>>16,i=(e&65280)>>>8,r=(e&255)/255;return`rgba(${n}, ${s}, ${i}, ${r})`}var ne=(t,e,n)=>{if(a.fun(t))return t;if(a.arr(t))return ne({range:t,output:e,extrapolate:n});if(a.str(t.output[0]))return gt(t);let s=t,i=s.output,r=s.range||[0,1],u=s.extrapolateLeft||s.extrapolate||"extend",c=s.extrapolateRight||s.extrapolate||"extend",l=s.easing||(o=>o);return o=>{let d=As(o,r);return Ss(o,r[d],r[d+1],i[d],i[d+1],l,u,c,s.map)}};function Ss(t,e,n,s,i,r,u,c,l){let o=l?l(t):t;if(o<e){if(u==="identity")return o;u==="clamp"&&(o=e)}if(o>n){if(c==="identity")return o;c==="clamp"&&(o=n)}return s===i?s:e===n?t<=e?s:i:(e===-Infinity?o=-o:n===Infinity?o=o-e:o=(o-e)/(n-e),o=r(o),s===-Infinity?o=-o:i===Infinity?o=o+s:o=o*(i-s)+s,o)}function As(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var Ae=Symbol.for("FluidValue.get"),ye=Symbol.for("FluidValue.observers"),C=t=>Boolean(t&&t[Ae]),E=t=>t&&t[Ae]?t[Ae]():t,wt=t=>t[ye]||null;function Rs(t,e){t.eventObserved?t.eventObserved(e):t(e)}function de(t,e){let n=t[ye];n&&n.forEach(s=>{Rs(s,e)})}var Re=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Fs(this,e)}},Fs=(t,e)=>un(t,Ae,e);function Z(t,e){if(t[Ae]){let n=t[ye];n||un(t,ye,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function se(t,e){let n=t[ye];if(n&&n.has(e)){let s=n.size-1;s?n.delete(e):t[ye]=null,t.observerRemoved&&t.observerRemoved(s,e)}}var un=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),cn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Is=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pt,Ts=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ks=(t,e,n,s,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,We=t=>{Pt||(Pt=te?new RegExp(`(${Object.keys(te).join("|")})`,"g"):/^\b$/);let e=t.output.map(r=>E(r).replace(Is,an).replace(Pt,an)),n=e.map(r=>r.match(cn).map(Number)),i=n[0].map((r,u)=>n.map(c=>{if(!(u in c))throw Error('The arity of each "output" value must be equal');return c[u]})).map(r=>ne(P(P({},t),{output:r})));return r=>{let u=0;return e[0].replace(cn,()=>String(i[u++](r))).replace(Ts,ks)}},xt="react-spring: ",ln=t=>{let e=t,n=!1;if(typeof e!="function")throw new TypeError(`${xt}once requires a function parameter`);return(...s)=>{n||(e(...s),n=!0)}},Os=ln(console.warn);function St(){Os(`${xt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Vs=ln(console.warn);function dn(){Vs(`${xt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)`)}function be(t){return a.str(t)&&(t[0]=="#"||/\d/.test(t)||t in(te||{}))}var _e=t=>j.useEffect(t,Es),Es=[];function Fe(){let t=j.useState()[1],e=j.useState(Cs)[0];return _e(e.unmount),()=>{e.current&&t({})}}function Cs(){let t={current:!0,unmount:()=>()=>{t.current=!1}};return t}function fn(t,e){let[n]=j.useState(()=>({inputs:e,result:t()})),s=j.useRef(),i=s.current,r=i;return r?Boolean(e&&r.inputs&&Us(e,r.inputs))||(r={inputs:e,result:t()}):r=n,j.useEffect(()=>{s.current=r,i==n&&(n.inputs=n.result=void 0)},[r]),r.result}function Us(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}function Ye(t){let e=j.useRef();return j.useEffect(()=>{e.current=t}),e.current}var W=typeof window!="undefined"&&window.document&&window.document.createElement?j.useLayoutEffect:j.useEffect;var k=Pe(require("react"));var L=Pe(require("react")),Ie=Symbol.for("Animated:node"),qs=t=>!!t&&t[Ie]===t,G=t=>t&&t[Ie],Je=(t,e)=>Jt(t,Ie,e),Te=t=>t&&t[Ie]&&t[Ie].getPayload(),At=class{constructor(){Je(this,this)}getPayload(){return this.payload||[]}},ie=class extends At{constructor(e){super();this._value=e,this.done=!0,this.durationProgress=0,a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ie(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return a.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},re=class extends ie{constructor(e){super(0);this._string=null,this._toString=ne({output:[e,e]})}static create(e){return new re(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ne({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ze={dependencies:null},ve=class extends At{constructor(e){super();this.source=e,this.setValue(e)}getValue(e){let n={};return z(this.source,(s,i)=>{qs(s)?n[i]=s.getValue(e):C(s)?n[i]=E(s):e||(n[i]=s)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&m(this.payload,e=>e.reset())}_makePayload(e){if(e){let n=new Set;return z(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Ze.dependencies&&C(e)&&Ze.dependencies.add(e);let n=Te(e);n&&m(n,s=>this.add(s))}},Xe=class extends ve{constructor(e){super(e)}static create(e){return new Xe(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let n=this.getPayload();return e.length==n.length?n.some((s,i)=>s.setValue(e[i])):(super.setValue(e.map(js)),!0)}};function js(t){return(be(t)?re:ie).create(t)}function et(t){let e=G(t);return e?e.constructor:a.arr(t)?Xe:be(t)?re:ie}var mn=(t,e)=>{let n=!a.fun(t)||t.prototype&&t.prototype.isReactComponent;return L.forwardRef((s,i)=>{let r=L.useRef(null),u=n&&L.useCallback(p=>{r.current=$s(i,p)},[i]),[c,l]=Ns(s,e),o=Fe(),d=()=>{let p=r.current;n&&!p||(p?e.applyAnimatedValues(p,c.getValue(!0)):!1)===!1&&o()},f=new hn(d,l),b=L.useRef();W(()=>{let p=b.current;b.current=f,m(l,h=>Z(h,f)),p&&(m(p.deps,h=>se(h,p)),w.cancel(p.update))}),L.useEffect(d,[]),_e(()=>()=>{let p=b.current;m(p.deps,h=>se(h,p))});let S=e.getComponentProps(c.getValue());return L.createElement(t,P(P({},S),{ref:u}))})},hn=class{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&w.write(this.update)}};function Ns(t,e){let n=new Set;return Ze.dependencies=n,t.style&&(t=P(P({},t),{style:e.createAnimatedStyle(t.style)})),t=new ve(t),Ze.dependencies=null,[t,n]}function $s(t,e){return t&&(a.fun(t)?t(e):t.current=e),e}var pn=Symbol.for("AnimatedComponent"),yn=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new ve(i),getComponentProps:s=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:s},r=u=>{let c=gn(u)||"Anonymous";return a.str(u)?u=r[u]||(r[u]=mn(u,i)):u=u[pn]||(u[pn]=mn(u,i)),u.displayName=`Animated(${c})`,u};return z(t,(u,c)=>{a.arr(t)&&(c=gn(u)),r[c]=r(u)}),{animated:r}},gn=t=>a.str(t)?t:t&&a.str(t.displayName)?t.displayName:a.fun(t)&&t.name||null;function $(t,...e){return a.fun(t)?t(...e):t}var ke=(t,e)=>t===!0||!!(e&&t&&(a.fun(t)?t(e):V(t).includes(e))),bn=(t,e)=>a.obj(t)?e&&t[e]:t,_n=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Ds=t=>t,tt=(t,e=Ds)=>{let n=zs;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));let s={};for(let i of n){let r=e(t[i],i);a.und(r)||(s[i]=r)}return s},zs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ms={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 Qs(t){let e={},n=0;if(z(t,(s,i)=>{Ms[i]||(e[i]=s,n++)}),n)return e}function Rt(t){let e=Qs(t);if(e){let n={to:e};return z(t,(s,i)=>i in e||(n[i]=s)),n}return P({},t)}function Oe(t){return t=E(t),a.arr(t)?t.map(Oe):be(t)?N.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function vn(t){for(let e in t)return!0;return!1}function Ft(t){return a.fun(t)||a.arr(t)&&a.obj(t[0])}function It(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function wn(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}function Pn(t,e,n=1e3){W(()=>{if(e){let s=0;m(t,(i,r)=>{let u=i.current;if(u.length){let c=n*e[r];isNaN(c)?c=s:s=c,m(u,l=>{m(l.queue,o=>{let d=o.delay;o.delay=f=>c+$(d||0,f)}),l.start()})}})}else{let s=Promise.resolve();m(t,i=>{let r=i.current;if(r.length){let u=r.map(c=>{let l=c.queue;return c.queue=[],l});s=s.then(()=>(m(r,(c,l)=>m(u[l]||[],o=>c.queue.push(o))),i.start()))}})}})}var Ls={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}},Gs=t=>t,Tt=P(P({},Ls.default),{mass:1,damping:1,easing:Gs,clamp:!1}),xn=class{constructor(){this.velocity=0,Object.assign(this,Tt)}};function Bs(t,e,n){n&&(n=P({},n),Sn(n,e),e=P(P({},n),e)),Sn(t,e),Object.assign(t,e);for(let u in Tt)t[u]==null&&(t[u]=Tt[u]);let{mass:s,frequency:i,damping:r}=t;return a.und(i)||(i<.01&&(i=.01),r<0&&(r=0),t.tension=Math.pow(2*Math.PI/i,2)*s,t.friction=4*Math.PI*r*s/i),t}function Sn(t,e){if(!a.und(e.decay))t.duration=void 0;else{let n=!a.und(e.tension)||!a.und(e.friction);(n||!a.und(e.frequency)||!a.und(e.damping)||!a.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var An=[],Rn=class{constructor(){this.changed=!1,this.values=An,this.toValues=null,this.fromValues=An,this.config=new xn,this.immediate=!1}};function Fn(t,{key:e,props:n,defaultProps:s,state:i,actions:r}){return new Promise((u,c)=>{var l;let o,d,f=ke((l=n.cancel)!=null?l:s==null?void 0:s.cancel,e);if(f)p();else{a.und(n.pause)||(i.paused=ke(n.pause,e));let h=s==null?void 0:s.pause;h!==!0&&(h=i.paused||ke(h,e)),o=$(n.delay||0,e),h?(i.resumeQueue.add(S),r.pause()):(r.resume(),S())}function b(){i.resumeQueue.add(S),i.timeouts.delete(d),d.cancel(),o=d.time-w.now()}function S(){o>0?(d=w.setTimeout(p,o),i.pauseQueue.add(b),i.timeouts.add(d)):p()}function p(){i.pauseQueue.delete(b),i.timeouts.delete(d),t<=(i.cancelId||0)&&(f=!0);try{r.start(P(P({},n),{callId:t,cancel:f}),u)}catch(h){c(h)}}})}var kt=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?we(t.get()):e.every(n=>n.noop)?In(t.get()):B(t.get(),e.every(n=>n.finished)),In=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),B=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),we=t=>({value:t,cancelled:!0,finished:!1});function Tn(t,e,n,s){let{callId:i,parentId:r,onRest:u}=e,{asyncTo:c,promise:l}=n;return!r&&t===c&&!e.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;let o=tt(e,(v,F)=>F==="onRest"?void 0:v),d,f,b=new Promise((v,F)=>(d=v,f=F)),S=v=>{let F=i<=(n.cancelId||0)&&we(s)||i!==n.asyncId&&B(s,!1);if(F)throw v.result=F,f(v),v},p=(v,F)=>{let g=new Ot,_=new Vt;return(async()=>{if(N.skipAnimation)throw Ve(n),_.result=B(s,!1),f(_),_;S(g);let x=a.obj(v)?P({},v):P(P({},F),{to:v});x.parentId=i,z(o,(I,H)=>{a.und(x[H])&&(x[H]=I)});let U=await s.start(x);return S(g),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),U})()},h;if(N.skipAnimation)return Ve(n),B(s,!1);try{let v;a.arr(t)?v=(async F=>{for(let g of F)await p(g)})(t):v=Promise.resolve(t(p,s.stop.bind(s))),await Promise.all([v.then(d),b]),h=B(s.get(),!0,!1)}catch(v){if(v instanceof Ot)h=v.result;else if(v instanceof Vt)h=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=r,n.asyncTo=r?c:void 0,n.promise=r?l:void 0)}return a.fun(u)&&w.batchedUpdates(()=>{u(h,s,s.item)}),h})()}function Ve(t,e){he(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var Ot=class 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.")}},Vt=class extends Error{constructor(){super("SkipAnimationSignal")}},Et=t=>t instanceof nt,Hs=1,nt=class extends Re{constructor(){super(...arguments);this.id=Hs++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=G(this);return e&&e.getValue()}to(...e){return N.to(this,e)}interpolate(...e){return St(),N.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){de(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||pe.sort(this),de(this,{type:"priority",parent:this,priority:e})}},fe=Symbol.for("SpringPhase"),kn=1,Ct=2,Ut=4,qt=t=>(t[fe]&kn)>0,oe=t=>(t[fe]&Ct)>0,Ee=t=>(t[fe]&Ut)>0,On=(t,e)=>e?t[fe]|=Ct|kn:t[fe]&=~Ct,Vn=(t,e)=>e?t[fe]|=Ut:t[fe]&=~Ut,En=class extends nt{constructor(e,n){super();if(this.animation=new Rn,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,!a.und(e)||!a.und(n)){let s=a.obj(e)?P({},e):P(P({},n),{from:e});a.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(oe(this)||this._state.asyncTo)||Ee(this)}get goal(){return E(this.animation.to)}get velocity(){let e=G(this);return e instanceof ie?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return qt(this)}get isAnimating(){return oe(this)}get isPaused(){return Ee(this)}advance(e){let n=!0,s=!1,i=this.animation,{config:r,toValues:u}=i,c=Te(i.to);!c&&C(i.to)&&(u=V(E(i.to))),i.values.forEach((o,d)=>{if(!o.done){let f=o.constructor==re?1:c?c[d].lastPosition:u[d],b=i.immediate,S=f;if(!b){if(S=o.lastPosition,r.tension<=0){o.done=!0;return}let p=o.elapsedTime+=e,h=i.fromValues[d],v=o.v0!=null?o.v0:o.v0=a.arr(r.velocity)?r.velocity[d]:r.velocity,F;if(a.und(r.duration))if(r.decay){let g=r.decay===!0?.998:r.decay,_=Math.exp(-(1-g)*p);S=h+v/(1-g)*(1-_),b=Math.abs(o.lastPosition-S)<.1,F=v*_}else{F=o.lastVelocity==null?v:o.lastVelocity;let g=r.precision||(h==f?.005:Math.min(1,Math.abs(f-h)*.001)),_=r.restVelocity||g/10,x=r.clamp?0:r.bounce,U=!a.und(x),I=h==f?o.v0>0:h<f,H,y=!1,A=1,T=Math.ceil(e/A);for(let O=0;O<T&&(H=Math.abs(F)>_,!(!H&&(b=Math.abs(f-S)<=g,b)));++O){U&&(y=S==f||S>f==I,y&&(F=-F*x,S=f));let R=-r.tension*1e-6*(S-f),q=-r.friction*.001*F,D=(R+q)/r.mass;F=F+D*A,S=S+F*A}}else{let g=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,o.durationProgress>0&&(o.elapsedTime=r.duration*o.durationProgress,p=o.elapsedTime+=e)),g=(r.progress||0)+p/this._memoizedDuration,g=g>1?1:g<0?0:g,o.durationProgress=g),S=h+r.easing(g)*(f-h),F=(S-o.lastPosition)/e,b=g==1}o.lastVelocity=F,Number.isNaN(S)&&(console.warn("Got NaN while animating:",this),b=!0)}c&&!c[d].done&&(b=!1),b?o.done=!0:n=!1,o.setValue(S,r.round)&&(s=!0)}});let l=G(this);if(n){let o=E(i.to);(l.setValue(o)||s)&&this._onChange(o),this._stop()}else s&&this._onChange(l.getValue())}set(e){return w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(oe(this)){let{to:e,config:n}=this.animation;w.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let s;return a.und(e)?(s=this.queue||[],this.queue=[]):s=[a.obj(e)?e:P(P({},n),{to:e})],Promise.all(s.map(i=>this._update(i))).then(i=>kt(this,i))}stop(e){let{to:n}=this.animation;return this._focus(this.get()),Ve(this._state,e&&this._lastCallId),w.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let n=this.key||"",{to:s,from:i}=e;s=a.obj(s)?s[n]:s,(s==null||Ft(s))&&(s=void 0),i=a.obj(i)?i[n]:i,i==null&&(i=void 0);let r={to:s,from:i};return qt(this)||(e.reverse&&([s,i]=[i,s]),i=E(i),a.und(i)?G(this)||this._set(s):this._set(i)),r}_update(s,n){var e=ce(s,[]);let{key:i,defaultProps:r}=this;e.default&&Object.assign(r,tt(e,(l,o)=>/^on/.test(o)?bn(l,i):l)),Un(this,e,"onProps"),Ue(this,"onProps",e,this);let u=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let c=this._state;return Fn(++this._lastCallId,{key:i,props:e,defaultProps:r,state:c,actions:{pause:()=>{Ee(this)||(Vn(this,!0),me(c.pauseQueue),Ue(this,"onPause",B(this,Ce(this,this.animation.to)),this))},resume:()=>{Ee(this)&&(Vn(this,!1),oe(this)&&this._resume(),me(c.resumeQueue),Ue(this,"onResume",B(this,Ce(this,this.animation.to)),this))},start:this._merge.bind(this,u)}}).then(l=>{if(e.loop&&l.finished&&!(n&&l.noop)){let o=Cn(e);if(o)return this._update(o,!0)}return l})}_merge(e,n,s){if(n.cancel)return this.stop(!0),s(we(this));let i=!a.und(e.to),r=!a.und(e.from);if(i||r)if(n.callId>this._lastToId)this._lastToId=n.callId;else return s(we(this));let{key:u,defaultProps:c,animation:l}=this,{to:o,from:d}=l,{to:f=o,from:b=d}=e;r&&!i&&(!n.default||a.und(f))&&(f=b),n.reverse&&([f,b]=[b,f]);let S=!J(b,d);S&&(l.from=b),b=E(b);let p=!J(f,o);p&&this._focus(f);let h=Ft(n.to),{config:v}=l,{decay:F,velocity:g}=v;(i||r)&&(v.velocity=0),n.config&&!h&&Bs(v,$(n.config,u),n.config!==c.config?$(c.config,u):void 0);let _=G(this);if(!_||a.und(f))return s(B(this,!0));let x=a.und(n.reset)?r&&!n.default:!a.und(b)&&ke(n.reset,u),U=x?b:this.get(),I=Oe(f),H=a.num(I)||a.arr(I)||be(I),y=!h&&(!H||ke(c.immediate||n.immediate,u));if(p){let R=et(f);if(R!==_.constructor)if(y)_=this._set(I);else throw Error(`Cannot animate between ${_.constructor.name} and ${R.name}, as the "to" prop suggests`)}let A=_.constructor,T=C(f),O=!1;if(!T){let R=x||!qt(this)&&S;(p||R)&&(O=J(Oe(U),I),T=!O),(!J(v.decay,F)||!J(v.velocity,g))&&(T=!0)}if(O&&oe(this)&&(l.changed&&!x?T=!0:T||this._stop(o)),!h&&((T||C(o))&&(l.values=_.getPayload(),l.toValues=C(f)?null:A==re?[1]:V(I)),l.immediate!=y&&(l.immediate=y,!y&&!x&&this._set(o)),T)){let{onRest:R}=l;m(Ks,D=>Un(this,n,D));let q=B(this,Ce(this,o));me(this._pendingCalls,q),this._pendingCalls.add(s),l.changed&&w.batchedUpdates(()=>{var D;l.changed=!x,R==null||R(q,this),x?$(c.onRest,q):(D=l.onStart)==null||D.call(l,q,this)})}x&&this._set(U),h?s(Tn(n.to,n,this._state,this)):T?this._start():oe(this)&&!p?this._pendingCalls.add(s):s(In(U))}_focus(e){let n=this.animation;e!==n.to&&(wt(this)&&this._detach(),n.to=e,wt(this)&&this._attach())}_attach(){let e=0,{to:n}=this.animation;C(n)&&(Z(n,this),Et(n)&&(e=n.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;C(e)&&se(e,this)}_set(e,n=!0){let s=E(e);if(!a.und(s)){let i=G(this);if(!i||!J(s,i.getValue())){let r=et(s);!i||i.constructor!=r?Je(this,r.create(s)):i.setValue(s),i&&w.batchedUpdates(()=>{this._onChange(s,n)})}}return G(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Ue(this,"onStart",B(this,Ce(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),$(this.animation.onChange,e,this)),$(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){let e=this.animation;G(this).reset(E(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),oe(this)||(On(this,!0),Ee(this)||this._resume())}_resume(){N.skipAnimation?this.finish():pe.start(this)}_stop(e,n){if(oe(this)){On(this,!1);let s=this.animation;m(s.values,r=>{r.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),de(this,{type:"idle",parent:this});let i=n?we(this.get()):B(this.get(),Ce(this,e!=null?e:s.to));me(this._pendingCalls,i),s.changed&&(s.changed=!1,Ue(this,"onRest",i,this))}}};function Ce(t,e){let n=Oe(e),s=Oe(t.get());return J(s,n)}function Cn(t,e=t.loop,n=t.to){let s=$(e);if(s){let i=s!==!0&&Rt(s),r=(i||t).reverse,u=!i||i.reset;return qe(P(P(P({},t),{loop:e,default:!1,pause:void 0,to:!r||Ft(n)?n:void 0,from:u?t.from:void 0,reset:u}),i))}}function qe(t){let{to:e,from:n}=t=Rt(t),s=new Set;return a.obj(e)&&qn(e,s),a.obj(n)&&qn(n,s),t.keys=s.size?Array.from(s):null,t}function Ws(t){let e=qe(t);return a.und(e.default)&&(e.default=tt(e)),e}function qn(t,e){z(t,(n,s)=>n!=null&&e.add(s))}var Ks=["onStart","onRest","onChange","onPause","onResume"];function Un(t,e,n){t.animation[n]=e[n]!==_n(e,n)?bn(e[n],t.key):void 0}function Ue(t,e,...n){var s,i,r,u;(i=(s=t.animation)[e])==null||i.call(s,...n),(u=(r=t.defaultProps)[e])==null||u.call(r,...n)}var Ys=["onStart","onChange","onRest"],Js=1,jt=class{constructor(e,n){this.id=Js++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),n&&(this._flush=n),e&&this.start(P({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((n,s)=>e[s]=n.get()),e}set(e){for(let n in e){let s=e[n];a.und(s)||this.springs[n].set(s)}}update(e){return e&&this.queue.push(qe(e)),this}start(e){let{queue:n}=this;return e?n=V(e).map(qe):this.queue=[],this._flush?this._flush(this,n):(jn(this,n),Nt(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){let s=this.springs;m(V(n),i=>s[i].stop(!!e))}else Ve(this._state,this._lastAsyncId),this.each(s=>s.stop(!!e));return this}pause(e){if(a.und(e))this.start({pause:!0});else{let n=this.springs;m(V(e),s=>n[s].pause())}return this}resume(e){if(a.und(e))this.start({pause:!1});else{let n=this.springs;m(V(e),s=>n[s].resume())}return this}each(e){z(this.springs,e)}_onFrame(){let{onStart:e,onChange:n,onRest:s}=this._events,i=this._active.size>0,r=this._changed.size>0;(i&&!this._started||r&&!this._started)&&(this._started=!0,he(e,([l,o])=>{o.value=this.get(),l(o,this,this._item)}));let u=!i&&this._started,c=r||u&&s.size?this.get():null;r&&n.size&&he(n,([l,o])=>{o.value=c,l(o,this,this._item)}),u&&(this._started=!1,he(s,([l,o])=>{o.value=c,l(o,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;w.onFrame(this._onFrame)}};function Nt(t,e){return Promise.all(e.map(n=>Nn(t,n))).then(n=>kt(t,n))}async function Nn(t,e,n){let{keys:s,to:i,from:r,loop:u,onRest:c,onResolve:l}=e,o=a.obj(e.default)&&e.default;u&&(e.loop=!1),i===!1&&(e.to=null),r===!1&&(e.from=null);let d=a.arr(i)||a.fun(i)?i:void 0;d?(e.to=void 0,e.onRest=void 0,o&&(o.onRest=void 0)):m(Ys,h=>{let v=e[h];if(a.fun(v)){let F=t._events[h];e[h]=({finished:g,cancelled:_})=>{let x=F.get(v);x?(g||(x.finished=!1),_&&(x.cancelled=!0)):F.set(v,{value:null,finished:g||!1,cancelled:_||!1})},o&&(o[h]=e[h])}});let f=t._state;e.pause===!f.paused?(f.paused=e.pause,me(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);let b=(s||Object.keys(t.springs)).map(h=>t.springs[h].start(e)),S=e.cancel===!0||_n(e,"cancel")===!0;(d||S&&f.asyncId)&&b.push(Fn(++t._lastAsyncId,{props:e,state:f,actions:{pause:Le,resume:Le,start(h,v){S?(Ve(f,t._lastAsyncId),v(we(t))):(h.onRest=c,v(Tn(d,h,f,t)))}}})),f.paused&&await new Promise(h=>{f.resumeQueue.add(h)});let p=kt(t,await Promise.all(b));if(u&&p.finished&&!(n&&p.noop)){let h=Cn(e,u,i);if(h)return jn(t,[h]),Nn(t,h,!0)}return l&&w.batchedUpdates(()=>l(p,t,t.item)),p}function $t(t,e){let n=P({},t.springs);return e&&m(V(e),s=>{a.und(s.keys)&&(s=qe(s)),a.obj(s.to)||(s=P(P({},s),{to:void 0})),Dn(n,s,i=>$n(i))}),n}function Dt(t,e){z(e,(n,s)=>{t.springs[s]||(t.springs[s]=n,Z(n,t))})}function $n(t,e){let n=new En;return n.key=t,e&&Z(n,e),n}function Dn(t,e,n){e.keys&&m(e.keys,s=>{(t[s]||(t[s]=n(s)))._prepareNode(e)})}function jn(t,e){m(e,n=>{Dn(t.springs,n,s=>$n(s,t))})}var je=n=>{var{children:t}=n,e=ce(n,["children"]);let s=k.useContext(st),i=e.pause||!!s.pause,r=e.immediate||!!s.immediate;e=fn(()=>({pause:i,immediate:r}),[i,r]);let{Provider:u}=st;return k.createElement(u,{value:e},t)},st=Zs(je,{});je.Provider=st.Provider;je.Consumer=st.Consumer;function Zs(t,e){return Object.assign(t,k.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}var it=class extends Function{constructor(){super("return arguments.callee._call.apply(arguments.callee, arguments)");this.current=[]}_call(e){dn(),this.start(e)}set(e){m(this.current,n=>n.set(e))}start(e){let n=[];return m(this.current,(s,i)=>{if(a.und(e))n.push(s.start());else{let r=this._getProps(e,s,i);r&&n.push(s.start(r))}}),n}update(e){return m(this.current,(n,s)=>n.update(this._getProps(e,n,s))),this}add(e){this.current.includes(e)||this.current.push(e)}delete(e){let n=this.current.indexOf(e);~n&&this.current.splice(n,1)}_getProps(e,n,s){return a.fun(e)?e(s,n):e}};m(["stop","pause","resume"],t=>{it.prototype[t]=function(){return m(this.current,e=>e[t](...arguments)),this}});function rt(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=k.useMemo(()=>s||arguments.length==3?new it:void 0,[]),r=k.useRef(0),u=Fe(),c=k.useMemo(()=>({ctrls:[],queue:[],flush(g,_){let x=$t(g,_);return r.current>0&&!c.queue.length&&!Object.keys(x).some(I=>!g.springs[I])?Nt(g,_):new Promise(I=>{Dt(g,x),c.queue.push(()=>{I(Nt(g,_))}),u()})}}),[]),l=[...c.ctrls],o=[],d=Ye(t)||0,f=l.slice(t,d);k.useMemo(()=>{l.length=t,b(d,t)},[t]),k.useMemo(()=>{b(0,Math.min(d,t))},n);function b(g,_){for(let x=g;x<_;x++){let U=l[x]||(l[x]=new jt(null,c.flush)),I=s?s(x,U):e[x];I&&(o[x]=Ws(I))}}let S=l.map((g,_)=>$t(g,o[_])),p=k.useContext(je),h=Ye(p),v=p!==h&&vn(p);W(()=>{r.current++,c.ctrls=l;let{queue:g}=c;g.length&&(c.queue=[],m(g,_=>_())),m(f,_=>{It(_,i),_.stop(!0)}),m(l,(_,x)=>{let U=S[x];Dt(_,U),i==null||i.add(_),v&&_.start({default:p});let I=o[x];I&&(wn(_,I.ref),_.ref?_.queue.push(I):_.start(I))})}),_e(()=>()=>{m(c.ctrls,g=>g.stop(!0))});let F=S.map(g=>P({},g));return i?[F,i]:F}function zn(t,e){let n=a.fun(t),[[s],i]=rt(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[s,i]:s}function Mn(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=!0,r=rt(t,(c,l)=>{let o=s?s(c,l):e;return i=i&&o.reverse,o},n||[{}]),u=r[1];return W(()=>{m(u.current,(c,l)=>{let o=u.current[l+(i?1:-1)];o&&c.start({to:o.springs})})},n),s||arguments.length==3?(u._getProps=(c,l,o)=>{let d=a.fun(c)?c(o,l):c;if(d){let f=u.current[o+(d.reverse?1:-1)];return f&&(d.to=f.springs),d}},r):r[0]}var Qn="mount",ot="enter",Ln="update",at="leave";function Gn(t,e,n){let{reset:s,sort:i,trail:r=0,expires:u=!0,onDestroyed:c}=e,l=k.useMemo(()=>arguments.length==3?new it:void 0,[]),o=V(t),d=[],f=k.useRef(null),b=s?null:f.current;W(()=>{f.current=d}),_e(()=>()=>m(f.current,y=>{y.expired&&clearTimeout(y.expirationId),It(y.ctrl,l),y.ctrl.stop(!0)}));let S=Xs(o,e,b),p=s&&f.current||[];W(()=>m(p,({ctrl:y,item:A,key:T})=>{It(y,l),$(c,A,T)}));let h=[];if(b&&m(b,(y,A)=>{y.expired?(clearTimeout(y.expirationId),p.push(y)):(A=h[A]=S.indexOf(y.key),~A&&(d[A]=y))}),m(o,(y,A)=>{d[A]||(d[A]={key:S[A],item:y,phase:Qn,ctrl:new jt},d[A].ctrl.item=y)}),h.length){let y=-1;m(h,(A,T)=>{let O=b[T];~A?(y=d.indexOf(O),d[y]=P(P({},O),{item:o[A]})):e.leave&&d.splice(++y,0,O)})}a.fun(i)&&d.sort((y,A)=>i(y.item,A.item));let v=-r,F=Fe(),g=tt(e),_=new Map;m(d,(y,A)=>{let T=y.key,O=y.phase,R,q;if(O==Qn)R=e.enter,q=ot;else{let Y=S.indexOf(T)<0;if(O!=at)if(Y)R=e.leave,q=at;else if(R=e.update)q=Ln;else return;else if(!Y)R=e.enter,q=ot;else return}if(R=$(R,y.item,A),R=a.obj(R)?Rt(R):{to:R},!R.config){let Y=e.config||g.config;R.config=$(Y,y.item,A,q)}let D=P(P(P({},g),{delay:v+=r,reset:!1}),R);if(q==ot&&a.und(D.from)){let Y=a.und(e.initial)||b?e.from:e.initial;D.from=$(Y,y.item,A)}let{onResolve:ns}=D;D.onResolve=Y=>{$(ns,Y);let lt=f.current,ae=lt.find($e=>$e.key===T);if(!!ae&&!(Y.cancelled&&ae.phase!=Ln)&&ae.ctrl.idle){let $e=lt.every(ue=>ue.ctrl.idle);if(ae.phase==at){let ue=$(u,ae.item);if(ue!==!1){let dt=ue===!0?0:ue;if(ae.expired=!0,!$e&&dt>0){dt<=2147483647&&(ae.expirationId=setTimeout(F,dt));return}}}$e&<.some(ue=>ue.expired)&&F()}};let ss=$t(y.ctrl,D);_.set(y,{phase:q,springs:ss,payload:D})});let x=k.useContext(je),U=Ye(x),I=x!==U&&vn(x);W(()=>{I&&m(d,y=>{y.ctrl.start({default:x})})},[x]),W(()=>{m(_,({phase:y,springs:A,payload:T},O)=>{let{ctrl:R}=O;O.phase=y,l==null||l.add(R),wn(R,T.ref),Dt(R,A),I&&y==ot&&R.start({default:x}),R[R.ref?"update":"start"](T)})},s?void 0:n);let H=y=>k.createElement(k.Fragment,null,d.map((A,T)=>{let{springs:O}=_.get(A)||A.ctrl,R=y(P({},O),A.item,A,T);return R&&R.type?k.createElement(R.type,P(P({},R.props),{key:a.str(A.key)||a.num(A.key)?A.key:A.ctrl.id,ref:R.ref})):R}));return l?[H,l]:H}var ei=1;function Xs(t,{key:e,keys:n=e},s){if(n===null){let i=new Set;return t.map(r=>{let u=s&&s.find(c=>c.item===r&&c.phase!==at&&!i.has(c));return u?(i.add(u),u.key):ei++})}return a.und(n)?t:a.fun(n)?t.map(n):V(n)}var zt=class extends nt{constructor(e,n){super();this.source=e,this.idle=!0,this._active=new Set,this.calc=ne(...n);let s=this._get(),i=et(s);Je(this,i.create(s))}advance(e){let n=this._get(),s=this.get();J(n,s)||(G(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Bn(this._active)&&Mt(this)}_get(){let e=a.arr(this.source)?this.source.map(E):V(E(this.source));return this.calc(...e)}_start(){this.idle&&!Bn(this._active)&&(this.idle=!1,m(Te(this),e=>{e.done=!1}),N.skipAnimation?(w.batchedUpdates(()=>this.advance()),Mt(this)):pe.start(this))}_attach(){let e=1;m(V(this.source),n=>{C(n)&&Z(n,this),Et(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){m(V(this.source),e=>{C(e)&&se(e,this)}),this._active.clear(),Mt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=V(this.source).reduce((n,s)=>Math.max(n,(Et(s)?s.priority:0)+1),0))}};function ti(t){return t.idle!==!1}function Bn(t){return!t.size||Array.from(t).every(ti)}function Mt(t){t.idle||(t.idle=!0,m(Te(t),e=>{e.done=!0}),de(t,{type:"idle",parent:t}))}var Hn=(t,...e)=>(St(),new zt(t,e));N.assign({createStringInterpolator:We,to:(t,e)=>new zt(t,e)});var Ri=pe.advance;var Kn=Pe(require("react-dom"));var Wn=/^--/;function ni(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Wn.test(t)&&!(Ne.hasOwnProperty(t)&&Ne[t])?e+"px":(""+e).trim()}var Yn={};function si(t,e){if(!t.nodeType||!t.setAttribute)return!1;let n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{style:s,children:i,scrollTop:r,scrollLeft:u}=e,c=ce(e,["style","children","scrollTop","scrollLeft"]),l=Object.values(c),o=Object.keys(c).map(d=>n||t.hasAttribute(d)?d:Yn[d]||(Yn[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(t.textContent=i);for(let d in s)if(s.hasOwnProperty(d)){let f=ni(d,s[d]);d==="float"?d="cssFloat":Wn.test(d)?t.style.setProperty(d,f):t.style[d]=f}o.forEach((d,f)=>{t.setAttribute(d,l[f])}),r!==void 0&&(t.scrollTop=r),u!==void 0&&(t.scrollLeft=u)}var Ne={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},ii=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),ri=["Webkit","Ms","Moz","O"];Ne=Object.keys(Ne).reduce((t,e)=>(ri.forEach(n=>t[ii(n,e)]=t[e]),t),Ne);var oi=/^(matrix|translate|scale|rotate|skew)/,ai=/^(translate)/,ui=/^(rotate|skew)/,Qt=(t,e)=>a.num(t)&&t!==0?t+e:t,ut=(t,e)=>a.arr(t)?t.every(n=>ut(n,e)):a.num(t)?t===e:parseFloat(t)===e,Jn=class extends ve{constructor(r){var{x:e,y:n,z:s}=r,i=ce(r,["x","y","z"]);let u=[],c=[];(e||n||s)&&(u.push([e||0,n||0,s||0]),c.push(l=>[`translate3d(${l.map(o=>Qt(o,"px")).join(",")})`,ut(l,0)])),z(i,(l,o)=>{if(o==="transform")u.push([l||""]),c.push(d=>[d,d===""]);else if(oi.test(o)){if(delete i[o],a.und(l))return;let d=ai.test(o)?"px":ui.test(o)?"deg":"";u.push(V(l)),c.push(o==="rotate3d"?([f,b,S,p])=>[`rotate3d(${f},${b},${S},${Qt(p,d)})`,ut(p,0)]:f=>[`${o}(${f.map(b=>Qt(b,d)).join(",")})`,ut(f,o.startsWith("scale")?1:0)])}}),u.length&&(i.transform=new Zn(u,c)),super(i)}},Zn=class extends Re{constructor(e,n){super();this.inputs=e,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return m(this.inputs,(s,i)=>{let r=E(s[0]),[u,c]=this.transforms[i](a.arr(r)?r:s.map(E));e+=" "+u,n=n&&c}),n?"none":e}observerAdded(e){e==1&&m(this.inputs,n=>m(n,s=>C(s)&&Z(s,this)))}observerRemoved(e){e==0&&m(this.inputs,n=>m(n,s=>C(s)&&se(s,this)))}eventObserved(e){e.type=="change"&&(this._value=null),de(this,e)}},ci=["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"];N.assign({batchedUpdates:Kn.unstable_batchedUpdates,createStringInterpolator:We,colors:nn});var li=yn(ci,{applyAnimatedValues:si,createAnimatedStyle:t=>new Jn(t),getComponentProps:s=>{var{scrollTop:t,scrollLeft:e}=s,n=ce(s,["scrollTop","scrollLeft"]);return n}}),Xn=li.animated;var ct=Pe(require("react")),di="(prefers-reduced-motion: reduce)",es=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),ts=()=>es?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(di);function fi(){let[t,e]=ct.useState(ts().matches);return ct.useEffect(()=>{let n=ts(),s=()=>{e(n.matches)};return n.addListener(s),()=>{n.removeListener(s)}},[]),t} |
{ | ||
"name": "@twilio-paste/animation-library", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"category": "interaction", | ||
@@ -28,4 +28,4 @@ "status": "beta", | ||
"dependencies": { | ||
"@react-spring/shared": "9.0.0-rc.3", | ||
"@react-spring/web": "9.0.0-rc.3" | ||
"@react-spring/shared": "9.1.2", | ||
"@react-spring/web": "9.1.2" | ||
}, | ||
@@ -39,4 +39,3 @@ "peerDependencies": { | ||
"react-dom": "^16.8.6" | ||
}, | ||
"gitHead": "fdba10a048fcf1197873da0a9bcdc4b656e0508c" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
382087
10
343
1
+ Added@react-spring/animated@9.1.2(transitive)
+ Added@react-spring/core@9.1.2(transitive)
+ Added@react-spring/shared@9.1.2(transitive)
+ Added@react-spring/types@9.1.2(transitive)
+ Added@react-spring/web@9.1.2(transitive)
+ Addedrafz@0.1.14(transitive)
- Removed@alloc/types@1.3.0(transitive)
- Removed@babel/runtime@7.26.9(transitive)
- Removed@react-spring/animated@9.0.0-rc.3(transitive)
- Removed@react-spring/core@9.0.0-rc.3(transitive)
- Removed@react-spring/shared@9.0.0-rc.3(transitive)
- Removed@react-spring/web@9.0.0-rc.3(transitive)
- Removedfluids@0.1.10(transitive)
- Removedreact-layout-effect@1.0.5(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removeduse-memo-one@1.1.3(transitive)
Updated@react-spring/shared@9.1.2
Updated@react-spring/web@9.1.2