framer-motion
Advanced tools
Comparing version 0.0.19 to 0.1.0
@@ -13,4 +13,3 @@ import { RefObject } from "react"; | ||
export interface DraggableProps { | ||
dragEnabled?: boolean | DragDirection; | ||
dragLocksDirection?: boolean; | ||
drag?: boolean | DragDirection | "lockDirection"; | ||
dragPropagation?: boolean; | ||
@@ -20,4 +19,7 @@ dragConstraints?: Constraints; | ||
dragMomentum?: boolean; | ||
onDragStart?: (e: MouseEvent | TouchEvent) => void; | ||
onDragEnd?: (e: MouseEvent | TouchEvent) => void; | ||
onDirectionLock?: (axis: string) => void; | ||
} | ||
export declare function useDraggable(props: DraggableProps, ref: RefObject<Element | null>, values: MotionValuesMap, controls: AnimationControls): void; | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,W){"use strict";var e=["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","webview"],p=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],n=e.concat(p),q=W.createContext({dragging:!1}),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function d(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var i,a,u=0,s="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-u));u=e+n,setTimeout(function(){return t(u)},n)};(a=i||(i={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var c=1/60*1e3,f=!0,h=!1,l=!1,v={delta:0,timestamp:0},m=[i.Read,i.Update,i.Render,i.PostRender],g=function(t){return h=t},y=m.reduce(function(t,e){var r,i,a,u,s,o,c,f,l,p=(r=g,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=a.indexOf(t);c.add(t),-1!==e&&a.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[a,i])[0],(a=e[1]).length=0,u=i.length)for(o=0;o<u;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:a;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),h||x(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),b=y.steps,F=y.sync,X=y.cancelSync,w=function(t){return b[t].process(v)},P=function(t){h=!1,v.delta=f?c:Math.max(Math.min(t-v.timestamp,40),1),f||(c=v.delta),v.timestamp=t,l=!0,m.forEach(w),l=!1,h&&(f=!1,s(P))},x=function(){f=h=!0,l||s(P)},M=function(){return v},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},k=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},C=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},A={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},T=O({},A,{transform:k(0,1)}),E=O({},A,{default:1}),V=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},R=V("deg"),L=V("%"),j=V("px"),D=V("vh"),Y=V("vw"),U=k(0,255),B=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,I=function(t){return void 0!==t.red},H=function(t){return void 0!==t.hue},z=function(a){var u=a.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<u;i++)r[a[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},N=O({},A,{transform:function(t){return Math.round(U(t))}}),G=C("rgb"),Z={test:function(t){return"string"==typeof t?G(t):I(t)},parse:z(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha;return e={red:N.transform(a),green:N.transform(u),blue:N.transform(s),alpha:S(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},$=C("hsl"),K={test:function(t){return"string"==typeof t?$(t):H(t)},parse:z(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(a),saturation:L.transform(S(u)),lightness:L.transform(S(s)),alpha:S(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},J=O({},Z,{test:C("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),Q={test:function(t){return"string"==typeof t&&B.test(t)||Z.test(t)||K.test(t)||J.test(t)},parse:function(t){return Z.test(t)?Z.parse(t):K.test(t)?K.parse(t):J.test(t)?J.parse(t):t},transform:function(t){return I(t)?Z.transform(t):H(t)?K.transform(t):t}},tt=/(-)?(\d[\d\.]*)/g,et=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nt="${c}",rt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(tt),r=t.match(et);return n&&(e+=n.length),r&&(e+=r.length),0<e},ot=function(t){var e=t,n=[],r=e.match(et);r&&(e=e.replace(et,nt),n.push.apply(n,r.map(Q.parse)));var o=e.match(tt);return o&&n.push.apply(n,o.map(A.parse)),n},it=function(t){var r=t,o=0,e=t.match(et),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],nt),o++;var a=r.match(tt),u=a?a.length:0;if(a)for(n=0;n<u;n++)r=r.replace(a[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?nt:"${n}",n<i?Q.transform(t[n]):S(t[n]));return e}},at=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},st=function(e){return function(t){return t*t*((e+1)*t-e)}},ct=function(t){var e=st(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ft=function(t){return t},lt=function(e){return function(t){return Math.pow(t,e)}}(2),pt=at(lt),dt=ut(lt),ht=function(t){return 1-Math.sin(Math.acos(t))},vt=at(ht),mt=ut(vt),gt=st(1.525),yt=at(gt),bt=ut(gt),wt=ct(1.525),Pt="undefined"!=typeof Float32Array,xt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},kt=function(t,e,n){return 3*xt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Ct=function(t,e,n){return((xt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function St(a,e,u,n){var s=Pt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=kt(n=o+.1*e,a,u))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=kt(e,a,u)))return e;e-=(Ct(e,a,u)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Ct(o=e+(n-e)/2,a,u)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Ct(.1*t,a,u)}();return function(t){return a===e&&u===n?t:0===t?0:1===t?1:Ct(r(t),e,n)}}var At=function(t){return"number"==typeof t},Tt=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Et=Tt(function(t,e,n){return Math.min(Math.max(n,t),e)}),Vt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Rt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},jt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Dt=[J,Z,K],Ft=function(e){return Dt.find(function(t){return t.test(e)})},Xt=function(t,e){var n=Ft(t),r=Ft(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),a=Lt({},o),u=n===K?Rt:jt;return function(t){for(var e in a)"alpha"!==e&&(a[e]=u(o[e],i[e],t));return a.alpha=Rt(o.alpha,i.alpha,t),n.transform(a)}},Yt=function(e,n){return function(t){return n(e(t))}},Ut=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Yt)},Bt=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return At(e)?function(t){return Rt(e,n,t)}:Q.test(e)?Xt(e,n):It(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},It=function(t,e){var n=it(t);return n(t),it(e)(t),Ut(Bt(ot(t),ot(e)),n)},Ht=Tt(Rt),zt=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Ht:Q.test(t)?Xt:It)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Ut(r,n)}return n});var t},Wt=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,u=t.length;e.length,!a||!Array.isArray(a)||(a.length,t.length),t[0]>t[u-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=zt(e,a),y=2===u?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(Vt(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=Vt(s[e],s[e+1],t);return c[e](o)});return i?Ut(Et(t[0],t[u-1]),y):y},qt=function(t){return t},_t=function(i){return void 0===i&&(i=qt),Tt(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},Nt=(_t(),_t(Math.sqrt),function(t,e){return At(t)?t/(1e3/e):0}),Gt=function(t,e){return e?t*(1e3/e):0},Zt=Tt(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),$t=(Et(0,1),function(){return($t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)});var Kt,Jt=function(t){var n=t.onRead,s=t.onRender,e=t.uncachedValues,c=void 0===e?new Set:e,r=t.useCache,f=void 0===r||r;return function(e){var r={},o=[],i=!1,a=function(t,e){var n=r[t];r[t]=e,r[t]!==n&&(-1===o.indexOf(t)&&o.push(t),i||(i=!0,F.render(u)))};function u(t){return void 0===t&&(t=!1),(!0===t||i)&&(s(r,e,o),i=!1,o.length=0),this}return{get:function(t){return t?f&&!c.has(t)&&void 0!==r[t]?r[t]:n(t,e):r},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return a(e,t)};a(e,t)}else for(var n in e)e.hasOwnProperty(n)&&a(n,e[n]);return this},render:u}}},Qt=/([a-z])([A-Z])/g,te=function(t){return t.replace(Qt,"$1-$2").toLowerCase()},ee=new Map,ne=new Map,re=["Webkit","Moz","O","ms",""],oe=re.length,ie="undefined"!=typeof document,ae=function(t,e){return ne.set(t,te(e))},ue=function(t,e){void 0===e&&(e=!1);var n,r=e?ne:ee;return r.has(t)||(ie?function(t){Kt=Kt||document.createElement("div");for(var e=0;e<oe;e++){var n=re[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Kt.style||r)&&(ee.set(t,o),ae(t,(r?"":"-")+te(o)))}}(t):ae(n=t,n)),r.get(t)||t},se=["","X","Y","Z"],ce=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return se.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),fe=ce.reduce(function(t,e){return t[e]=!0,t},{}),le=function(t){return!0===fe[t]},pe=function(t,e){return ce.indexOf(t)-ce.indexOf(e)},de={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:R,rotateX:R,rotateY:R,rotateZ:R,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:R,skewX:R,skewY:R,distance:j,x:j,y:j,z:j,perspective:j,opacity:T,originX:L,originY:L,originZ:j},he=function(t){return de[t]},ve="scrollLeft",me="scrollTop",ge=new Set([ve,me]),ye=new Set([ve,me,"transform"]),be={x:"translateX",y:"translateY",z:"translateZ"},we=function(t){return"function"==typeof t},Pe=function(t,e,n,r,o,i,a){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=he(l),h="number"==typeof p&&d?d.transform(p):p;le(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):"originX"===(u=l)||"originY"===u?(o[l]=h,f=!0):ye.has(l)&&we(h)||(n[ue(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(we(t.transform))v=t.transform(r);else{var m=!1;i.sort(pe);for(var g=i.length,y=0;y<g;y++){l=i[y];v+=(be[l]||l)+"("+r[l]+") ",m="z"===l||m}!m&&e?v+="translateZ(0)":v=v.trim()}n.transform=v}return f&&(n.transformOrigin=(o.originX||0)+" "+(o.originY||0)+" "+(o.originZ||0)),n},xe=Jt({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=he(t);if(le(t))return o&&o.default||0;if(ge.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(ue(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;Object.assign(r.style,o(t)),-1!==n.indexOf(ve)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(me)&&(r.scrollTop=t.scrollTop)},uncachedValues:ge}),Me=function(t,e){void 0===e&&(e={});var n=e.enableHardwareAcceleration,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}(e,["enableHardwareAcceleration"]);return xe($t({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,Pe(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},Oe=function(t,e){return t/100*e+"px"},ke={fill:Q,stroke:Q,scale:E,scaleX:E,scaleY:E,opacity:T,fillOpacity:T,strokeOpacity:T},Ce=Jt({onRead:function(t,e){var n=e.element;if(le(t)){var r=ke[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e){var n=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,a={},u=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.x+", "+t.y+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];le(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?a["stroke-dashoffset"]=Oe(-y,r):a[te(g)]=y:(i=!0,u[g]=Oe(y,r))}if(i&&(a["stroke-dasharray"]=u.pathLength+" "+u.pathSpacing),o)for(var g in a.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";a.transform+=m[g].replace(/undefined/g,b)}return a}(t,n,e.isPath,e.pathLength))}}),Se=Jt({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),Ae=new WeakMap,Te=function(t,e){var n,r,o;return t instanceof HTMLElement?n=Me(t,e):t instanceof SVGElement?(o={element:r=t,dimensions:function(t){try{return"function"==typeof(e=t).getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var e}(r),isPath:!1},"path"===r.tagName&&(o.isPath=!0,o.pathLength=r.getTotalLength()),n=Ce(o)):t===window&&(n=Se(t)),Ae.set(t,n),n};function Ee(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,Ae.has(n)?Ae.get(n):Te(n,r)}var Ve=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(_({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Ut.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),Re=function(){return function(t,e){var n=t.middleware,r=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Le=function(t,e,n){var r=e.middleware;return new Re({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=d(r,["init"]),a=o(Le(t,i,function(){e=!0,n.stop()}));return n=a?_({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Ve),De=function(t){return new je({init:t})},Fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subscribers=[],t}return o(t,e),t.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},t.prototype.error=function(e){this.subscribers.forEach(function(t){return t.error(e)})},t.prototype.update=function(t){for(var e=0;e<this.subscribers.length;e++)this.subscribers[e].update(t)},t.prototype.subscribe=function(t){var e=this,n=Le(t,this.props);return this.subscribers.push(n),{unsubscribe:function(){var t=e.subscribers.indexOf(n);-1!==t&&e.subscribers.splice(t,1)}}},t.prototype.stop=function(){this.parent&&this.parent.stop()},t.prototype.registerParent=function(t){this.stop(),this.parent=t},t}(Ve),Xe=function(i){function e(t){var e,n,r,o=i.call(this,t)||this;return o.scheduleVelocityCheck=function(){return F.postRender(o.velocityCheck)},o.velocityCheck=function(t){t.timestamp!==o.lastUpdated&&(o.prev=o.current)},o.prev=o.current=t.value||0,n=o.current,"string"===(r=typeof n)||"number"===r?(o.updateCurrent=function(t){return o.current=t},o.getVelocityOfCurrent=function(){return o.getSingleVelocity(o.current,o.prev)}):(e=o.current,Array.isArray(e)?(o.updateCurrent=function(t){return o.current=t.slice()},o.getVelocityOfCurrent=function(){return o.getListVelocity()}):(o.updateCurrent=function(t){for(var e in o.current={},t)t.hasOwnProperty(e)&&(o.current[e]=t[e])},o.getVelocityOfCurrent=function(){return o.getMapVelocity()})),t.initialSubscription&&o.subscribe(t.initialSubscription),o}return o(e,i),e.prototype.create=function(t){return new e(t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},e.prototype.update=function(t){i.prototype.update.call(this,t),this.prev=this.current,this.updateCurrent(t);var e=M(),n=e.delta,r=e.timestamp;this.timeDelta=n,this.lastUpdated=r,F.postRender(this.scheduleVelocityCheck)},e.prototype.subscribe=function(t){var e=i.prototype.subscribe.call(this,t);return this.subscribers[this.subscribers.length-1].update(this.current),e},e.prototype.getSingleVelocity=function(t,e){return"number"==typeof t&&"number"==typeof e?Gt(t-e,this.timeDelta):Gt(parseFloat(t)-parseFloat(e),this.timeDelta)||0},e.prototype.getListVelocity=function(){var n=this;return this.current.map(function(t,e){return n.getSingleVelocity(t,n.prev[e])})},e.prototype.getMapVelocity=function(){var t={};for(var e in this.current)this.current.hasOwnProperty(e)&&(t[e]=this.getSingleVelocity(this.current[e],this.prev[e]));return t},e}(Fe),Ye=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return De(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),a=p(),u=function(){return e(a)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&F.update(r))},error:o,update:function(t){h(a,e,t),F.update(u,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Ue=Ye({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Be=Ye({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Ie=[j,L,R,D,Y],He=function(e){return Ie.find(function(t){return t.test(e)})},ze=function(t,e){return t(e)},We=function(o,i,a){var t=a[0],e=i[t].map(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return $e(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Be(t)}.apply(void 0,e)},qe=function(o,i,a){var u=a[0],t=Object.keys(i[u]).reduce(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return t[e]=$e(i[u][e])(o,r),t},{});return Ue(t)},_e=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=He(n)||He(r),a=i.transform,u=i.parse;return t(_({},o,{from:"string"==typeof n?u(n):n,to:"string"==typeof r?u(r):r})).pipe(a)},Ne=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]);return t(_({},o,{from:0,to:1})).pipe(Xt(n,r),Q.transform)},Ge=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=it(n);return i(n),it(r)(n),t(_({},o,{from:0,to:1})).pipe(Bt(ot(n),ot(r)),i)},Ze=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),a=e.testVectorProps,u=e.getVectorKeys;return function(t){if(!a(t))return r(t);var e=u(t),n=t[e[0]];return $e(n)(r,t,e)}},$e=function(t){var e=ze;return"number"==typeof t?e=ze:Array.isArray(t)?e=We:Boolean(He(t))?e=_e:Q.test(t)?e=Ne:rt(t)?e=Ge:"object"==typeof t&&(e=qe),e},Ke=Ze(function(b){return void 0===b&&(b={}),De(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(a+v),g=void 0===d?m:d(m),y=F.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(X.update(y),o())},!0);return{stop:function(){return X.update(y)}}})},{from:A.test,modifyTarget:function(t){return"function"==typeof t},velocity:A.test}),Je=Ze(function(k){return void 0===k&&(k={}),De(function(t){var s=t.update,c=t.complete,e=k.velocity,f=void 0===e?0:e,n=k.from,r=void 0===n?0:n,o=k.to,l=void 0===o?0:o,i=k.stiffness,p=void 0===i?100:i,a=k.damping,d=void 0===a?10:a,u=k.mass,h=void 0===u?1:u,v=k.restSpeed,m=void 0===v?.01:v,g=k.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,x=r,M=x,O=F.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(M=x,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);x=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);x=l-o*(P+(b+r*P)*w)}f=Gt(x-M,e);var a=Math.abs(f)<=m,u=Math.abs(l-x)<=y;a&&u?(s(x=l),X.update(O),c()):s(x)},!0);return{stop:function(){return X.update(O)}}})},{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),Qe=Ze(function(t){var e=t.from,h=void 0===e?0:e,n=t.velocity,v=void 0===n?0:n,m=t.min,g=t.max,r=t.damping,y=void 0===r?10:r,o=t.stiffness,b=void 0===o?500:o,w=t.modifyTarget;return De(function(t){var e,n,r=t.update,o=t.complete,i=new Xe({value:h,initialSubscription:e}),a=!1,u=function(t){return void 0!==m&&t<=m},s=function(t){return void 0!==g&&g<=t},c=function(t){return u(t)||s(t)},f=function(t,e){return u(t)&&e<0||s(t)&&0<e},l=function(t,e){n&&n.stop(),n=t.start({update:function(t){return i.update(t)},complete:function(){o(),e&&e()}})},p=function(t){a=!0,l(Je(_({},t,{to:u(t.from)?m:g,stiffness:b,damping:y})))};if(i.subscribe(function(t){r(t);var e=i.getVelocity();n&&!a&&f(t,e)&&p({from:t,velocity:e})}),c(h)&&0===v||f(h,v))p({from:h,velocity:v});else{var d=Ke({from:h,velocity:v,timeConstant:700,restDelta:c(h)?20:1,modifyTarget:w});l(d,function(){var t=i.get();c(t)&&p({from:t,velocity:i.getVelocity()})})}return{stop:function(){return n&&n.stop()}}})},{from:A.test,velocity:A.test,min:A.test,max:A.test,damping:A.test,stiffness:A.test,modifyTarget:function(t){return"function"==typeof t}}),tn=Ze(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?ft:i;return De(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(a,function(t){return Rt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:A.test,to:A.test}),en=Et(0,1),nn=function(D){return void 0===D&&(D={}),De(function(t){var n,r=t.update,o=t.complete,e=D.duration,i=void 0===e?300:e,a=D.ease,u=void 0===a?pt:a,s=D.flip,c=void 0===s?0:s,f=D.loop,l=void 0===f?0:f,p=D.yoyo,d=void 0===p?0:p,h=D.from,v=void 0===h?0:h,m=D.to,g=void 0===m?1:m,y=D.elapsed,b=void 0===y?0:y,w=D.playDirection,P=void 0===w?1:w,x=D.flipCount,M=void 0===x?0:x,O=D.yoyoCount,k=void 0===O?0:O,C=D.loopCount,S=void 0===C?0:C,A=tn({from:v,to:g,ease:u}).start(r),T=0,E=!1,V=function(){return P*=-1},R=function(){T=en(Vt(0,i,b)),A.seek(T)},L=function(){E=!0,n=F.update(function(t){var e=t.delta;b+=e*P,R(),function(){var t,e=1===P?E&&i<=b:E&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&S<l?(S++,n=!(b=0)):c&&M<c?(b=i-b,A=tn({from:v=(t=[g,v])[0],to:g=t[1],ease:u}).start(r),M++,n=!0):d&&k<d&&(V(),k++,n=!0),!n}()&&o&&(X.update(n),F.update(o,!1,!0))},!0)},j=function(){E=!1,n&&X.update(n)};return L(),{isActive:function(){return E},getElapsed:function(){return Et(0,i,b)},getProgress:function(){return T},stop:function(){j()},pause:function(){return j(),this},resume:function(){return E||L(),this},seek:function(t){return b=Rt(0,i,t),F.update(R,!1,!0),this},reverse:function(){return V(),this}}})},rn=Et(0,1),on=Ze(function(m){return void 0===m&&(m={}),De(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,a=void 0===n?0:n,u=m.velocity,s=void 0===u?0:u,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=F.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=Nt(i,n)),a&&(s*=Math.pow(1-a,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*Nt(c,n));h+=Nt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(X.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return X.update(v)}}})},{acceleration:A.test,friction:A.test,velocity:A.test,from:A.test,to:A.test,springStrength:A.test}),an=function(r,o,i){return De(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},un=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},sn=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},cn=[un()];if("undefined"!=typeof document){an(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=cn.length=0;r<n;r++){var o=e[r];cn.push(sn(o))}})}var fn=un();if("undefined"!=typeof document){an(document,"mousedown mousemove",!0).start(function(t){sn(t,fn)})}var ln,pn,dn=function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,a=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(a.current)},this.scheduleVelocityCheck=function(){return F.postRender(a.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==a.lastUpdated&&(a.prev=a.current)},this.setChild=function(t){return t.set(a.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,_({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.subscribeTo=function(t,e){var n=this,r=function(){return e(n.current)};return t.add(r),function(){return t.delete(r)}},n.prototype.addUpdateSubscription=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},n.prototype.addRenderSubscription=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.subscribeTo(this.renderSubscribers,t)},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,F.postRender(this.scheduleVelocityCheck))},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?Gt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=d(e,["delay"]);this.stop();var a,u=t(_({from:this.get(),velocity:this.getVelocity()},i));return n&&(u=u.pipe(n)),o&&(u=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return De(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=a[o].start({complete:function(){++o>=a.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((a=o,De(function(t){var e=t.complete,n=setTimeout(e,a);return{stop:function(){return clearTimeout(n)}}})),u)),new Promise(function(t){r.controller=u.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}(),hn=function(t,e){return new dn(t,e)},vn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new dn(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=Ee(t,{preparseOutput:!1}),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),mn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},gn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},yn=function(){return{ease:"linear",duration:250}},bn={x:mn,y:mn,z:mn,rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scaleX:gn,scaleY:gn,scale:gn,opacity:yn,backgroundColor:yn,color:yn,default:gn},wn={tween:nn,spring:Je,keyframes:function(t){var e,n,r,o,i=t.easings,a=t.ease,u=void 0===a?ft:a,s=t.times,c=t.values,f=d(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||pt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return tn({from:c[e],to:c[e+1],ease:t})});return nn(_({},f,{ease:u})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,a=(i=o-1)-1,u=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Vt(r[e-1],r[e],t);u[e-1].seek(rn(n))};var r,e,n,o,i,a,u})},decay:Ke,physics:on,inertia:Qe,just:function(t){var r=t.to;return De(function(t){var e=t.update,n=t.complete;e(r),n()})}},Pn={linear:ft,easeIn:lt,easeOut:pt,easeInOut:dt,circIn:ht,circOut:vt,circInOut:mt,backIn:gt,backOut:yt,backInOut:bt,anticipate:wt},xn={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=St(n,r,o,i)}else"string"==typeof e&&(t.ease=Pn[e]);return t},keyframes:function(t){t.from,t.to;return d(t,["from","to"])}},Mn=function(t,e,n){var r,o=n?n.delay:0;if(void 0===n||!function(t){t.beforeChildren,t.afterChildren,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var e=d(t,["beforeChildren","afterChildren","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(e).length}(n))return _({delay:o},_({},(bn[t]||bn.default)(r=e),{to:r}));var i=n[t]||n.default||n;return!1===i.type?{type:"just",delay:o,to:e}:_({delay:o,to:e},i)},On=function(t,e,n){var r,o,i=Mn(t,e,n),a=i.type,u=void 0===a?"tween":a,s=d(i,["type"]);return[wn[u],(o=s,xn[r=u]?xn[r](o):o)]},kn=[A,R,L,j,Y,D,{test:function(t){return"auto"===t},parse:function(t){return t}}],Cn=function(t){return kn.find((e=t,function(t){return t.test(e)}));var e},Sn=new Set(["width","height","top","left","right","bottom","x","y"]),An=function(t){return Sn.has(t)},Tn=function(t,e){t.set(e,!1),t.set(e)};(pn=ln||(ln={})).width="width",pn.height="height",pn.left="left",pn.right="right",pn.top="top",pn.bottom="bottom";var En,Vn=function(t,e){return parseFloat(t.split(", ")[e])},Rn=function(i,a){return function(t,e){var n=e.transform;if("none"===n||!n)return 0;var r=n.match(/^matrix3d\((.+)\)$/);if(r)return Vn(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return Vn(o[1],i)}},Ln={width:function(t){return t.width},height:function(t){return t.height},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.height,r=e.top;return parseFloat(r)+n},right:function(t,e){var n=t.width,r=e.left;return parseFloat(r)+n},x:Rn(4,13),y:Rn(5,14)},jn=function(i,t,a,u){void 0===u&&(u={}),u=_({},u);var e=Object.keys(a).filter(An).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return Cn(r)!==Cn(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],Tn(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=Ee(o),a=o.getBoundingClientRect(),u=getComputedStyle(o),s={top:u.top,left:u.left,bottom:u.bottom,right:u.right,transform:u.transform};i.render();var c=o.getBoundingClientRect();return e.forEach(function(t){var e=r.get(t);Tn(e,Ln[t](a,s)),n[t]=Ln[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},Dn=function(t,e,n,r){return o=n,Object.keys(o).some(An)?jn(t,e,n,r):{target:n,transitionEnd:r};var o},Fn=function(){function t(t,e){this.variants={},this.baseTarget={},this.overrides=[],this.isAnimating=new Set,this.values=t,this.ref=e}return t.prototype.setProps=function(t){this.props=t},t.prototype.setVariants=function(t){t&&(this.variants=t)},t.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},t.prototype.setValues=function(n,r){var o=this;return void 0===r&&(r=new Set),Object.keys(n).forEach(function(t){if(!r.has(t)){if(r.add(t),o.values.has(t)){var e=o.values.get(t);e&&e.set(n[t])}else o.values.set(t,hn(n[t]));o.baseTarget[t]=n[t]}})},t.prototype.checkForNewValues=function(t){var n=this,e=Object.keys(t).filter(function(t){return!n.values.has(t)});if(e.length){var r=Ee(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,hn(e)),n.baseTarget[t]=e})}},t.prototype.resolveVariant=function(t){return t?("function"==typeof t&&(t=t(this.props,(r=this.values,o={},r.forEach(function(t,e){return o[e]=t.get()}),o),(e=this.values,n={},e.forEach(function(t,e){return n[e]=t.getVelocity()}),n))),{transition:t.transition,transitionEnd:t.transitionEnd,target:d(t,["transition","transitionEnd"])}):{target:void 0,transition:void 0,transitionEnd:void 0};var e,n,r,o},t.prototype.getHighestPriority=function(){var t=0,e=this.overrides.length;if(!e)return t;for(var n=0;n<e;n++)void 0!==this.overrides[n]&&(t=n);return t},t.prototype.clearOverride=function(t){if(this.overrides[t]){this.overrides[t]=void 0;var e=this.getHighestPriority();if(this.resetIsAnimating(),!(t<e)){var n=this.overrides[e];n&&this.start(n,{priority:e}),this.animate(this.baseTarget)}}},t.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},t.prototype.applyVariantLabels=function(t){var o=this,i=new Set;t.slice().reverse().forEach(function(t){var e=o.resolveVariant(o.variants[t]),n=e.target,r=e.transitionEnd;r&&o.setValues(r,i),n&&o.setValues(n,i)})},t.prototype.start=function(t,e){return void 0===e&&(e={}),this.setPriorityAnimation(t,e.priority||0),void 0===e.priority||this.isHighestPriority(e.priority)?(this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateVariantLabels(t,e):"string"==typeof t?this.animateVariant(t,e):this.animate(t,e)):Promise.resolve();var n},t.prototype.setPriorityAnimation=function(t,e){this.overrides[e]=t},t.prototype.isHighestPriority=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++)if(void 0!==this.overrides[n])return!1;return!0},t.prototype.animate=function(t,e){var s=this,n=void 0===e?{}:e,r=n.delay,c=void 0===r?0:r,o=n.priority,f=void 0===o?0:o,i=this.resolveVariant(t),l=i.target,p=i.transition,a=i.transitionEnd;if(!l)return Promise.resolve();this.checkForNewValues(l);var u=Dn(this.values,this.ref,l,a);l=u.target,a=u.transitionEnd,!p&&this.defaultTransition&&(p=this.defaultTransition);var d=Object.keys(l).reduce(function(t,e){var n=s.values.get(e);if(s.isAnimating.has(e)||!l||!n||void 0===l[e])return t;var r,o=l[e];if(f||(s.baseTarget[e]=o),"number"==typeof(r=o)||rt(r)){var i=On(e,o,_({delay:c},p)),a=i[0],u=i[1];t.push(n.control(a,u))}else n.set(o);return s.isAnimating.add(e),t},[]);return Promise.all(d).then(function(){a&&s.setValues(a)})},t.prototype.animateVariantLabels=function(t,e){var n=this,r=t.slice().reverse().map(function(t){return n.animateVariant(t,e)});return Promise.all(r)},t.prototype.animateVariant=function(t,e){var n=this,r=!1,o=!1,i=0,a=0,u=1,s=e&&e.priority||0,c=this.variants[t],f=c?function(){return n.animate(c,e)}:function(){return Promise.resolve()},l=this.children?function(){return n.animateChildren(t,i,a,u,s)}:function(){return Promise.resolve()};if(c&&this.children){var p=this.resolveVariant(c).transition;p&&(r=p.beforeChildren||r,o=p.afterChildren||o,i=p.delayChildren||i,a=p.staggerChildren||a,u=p.staggerDirection||u)}if(r||o){var d=r?[f,l]:[l,f],h=d[1];return(0,d[0])().then(h)}return Promise.all([f(),l()])},t.prototype.animateChildren=function(r,o,e,t,i){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animateVariant(r,{priority:i,delay:o+u(e)});a.push(n)}),Promise.all(a)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),Xn=(En=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=En(t)}),n}),Yn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set,this.variants={}}return t.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach(function(t){return t.setVariants(e)})},t.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach(function(t){return t.setDefaultTransition(e)})},t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return e.componentControls.delete(t)}},t.prototype.start=function(n){if(this.hasMounted){var r=[];return this.componentControls.forEach(function(t){var e=t.start(n);r.push(e)}),Promise.all(r)}return this.pendingAnimations.push(n),Promise.resolve()},t.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){return e.start(t)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),Un=function(t){var e,n=t instanceof dn?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function Bn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var In,Hn=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},zn=function(o,i,a,u){var t=void 0;return i&&!Bn(i)||!a||(t=Hn(i,o,a,u)),W.useEffect(function(){var t=i;if(a&&i&&!Bn(i)&&t.current){var e=Hn(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},Wn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var a=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:a*(t.pageY-r.top-e.clientTop+e.scrollTop)}},qn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Wn(n,r),devicePoint:Wn(n,document.body)}),o(t,e)}}},_n=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Nn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,a=t.onPointerCancel,u=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:a}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:u,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,x,M,O,k,C,S,A,T,E,V,R,L,j,D,F,X,Y,U,B,I,H,z,W,q,_,N,G,Z,$,K,J,Q,tt,et,nt,rt,ot,it,at,ut=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,x=h.onPointerOut,M=h.onPointerEnter,O=h.onPointerLeave,k=zn("pointerdown",v,qn(g),m),C=zn("pointermove",v,qn(y),m),S=zn("pointerup",v,qn(b),m),A=zn("pointercancel",v,qn(w),m),T=zn("pointerover",v,qn(P),m),E=zn("pointerout",v,qn(x),m),V=zn("pointerenter",v,qn(M),m),R=zn("pointerleave",v,qn(O),m),_n(k,C,S,A,T,E,V,R)),st=(j=e,D=n,F=(L=p).onTouchStart,X=L.onTouchMove,Y=L.onTouchEnd,U=L.onTouchCancel,B=zn("touchstart",j,qn(F),D),I=zn("touchmove",j,qn(X),D),H=zn("touchend",j,qn(Y),D),z=zn("touchcancel",j,qn(U),D),_n(B,I,H,z)),ct=(q=e,_=n,N=(W=l).onMouseDown,G=W.onMouseMove,Z=W.onMouseUp,$=W.onMouseOver,K=W.onMouseOut,J=W.onMouseEnter,Q=W.onMouseLeave,tt=zn("mousedown",q,qn(N),_),et=zn("mousemove",q,qn(G),_),nt=zn("mouseup",q,qn(Z),_),rt=zn("mouseover",q,qn($),_),ot=zn("mouseout",q,qn(K),_),it=zn("mouseenter",q,qn(J),_),at=zn("mouseleave",q,qn(Q),_),_n(tt,et,nt,rt,ot,it,at));return _n(ut,st,ct)},Gn=function(t,e,n){var r,o,i=W.useRef(null);return o=e?(r=e,t):(r=i,{}),Nn(o,r,n),e?void 0:t};(In||(In={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var Zn=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function $n(t,e){var i=t.onPan,a=t.onPanStart,u=t.onPanEnd,s=null,c=W.useRef(null),f=W.useRef(null),l=W.useRef(null),p=W.useMemo(function(){return function(){if(s&&null!==c.current&&null!==l.current&&null!==f.current){var t=l.current,e=t.point,n=t.devicePoint,r=In.subtract(n,s.lastDevicePoint),o=In.subtract(n,s.startDevicePoint);c.current.x.set(n.x),c.current.y.set(n.y),(0<Math.abs(r.x)||0<Math.abs(r.y))&&(s.startEvent?i&&i(f.current,{point:e,devicePoint:n,delta:r,offset:o,velocity:Zn(c.current)}):(a&&a(f.current,{point:e,devicePoint:n,delta:r,offset:o,velocity:Zn(c.current)}),s.startEvent=f.current)),s.lastDevicePoint=n,r.x=0,r.y=0}else console.error("Pointer move without started session")}},[i,a]),n=W.useMemo(function(){return function(t,e){f.current=t,l.current=e,F.update(p)}},[i,a]),r=W.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(s&&null!==c.current){X.update(p);var o=In.subtract(r,s.lastDevicePoint),i=In.subtract(r,s.startDevicePoint);g(),h(),u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:Zn(c.current)}),s=null}else console.error("Pointer end without started session")}},[u,n]),o=Nn({onPointerUp:r},window),d=o[0],h=o[1],v=Nn({onPointerMove:n},window,{capture:!0}),m=v[0],g=v[1],y=W.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;c.current={x:hn(r.x),y:hn(r.y)},s={target:t.target,lastDevicePoint:n,startDevicePoint:n},m(),d()}},[r,n]);W.useEffect(function(){return function(){g(),h()}},[]);var b={onPointerDown:y};return i||a||u||(b={}),Gn(b,e)}var Kn=["hover","press","drag"],Jn=function(t){return Kn.indexOf(t)+1};function Qn(t,o){var i=t.onTap,a=t.onPressStart,u=t.onPressEnd,s=t.pressActive,c=t.controls,f=null,e=W.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;f&&(u&&u({point:n,devicePoint:r},t),c&&s&&c.clearOverride(Jn("press")),o&&t.target===o.current&&(i&&i({point:n,devicePoint:r},t),f=null))}},[i]),n=Nn({onPointerUp:e},window),l=n[0],r=n[1];return W.useEffect(function(){return function(){r()}},[o&&o.current,e]),Gn({onPointerDown:function(t,e){var n=e.point,r=e.devicePoint;l(),o&&t.target===o.current&&(f={target:t.target},a&&a({point:n,devicePoint:r},t),c&&s&&c.start(s,{priority:Jn("press")}))}},o)}var tr=function(t,e){$n(t,e),Qn(t,e)};function er(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function nr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var rr=function(t,e){var n=e.top,r=e.right,o=e.bottom,i=e.left;return"x"===t?{min:i,max:r}:{min:n,max:o}},or=function(t,e,n){return Rt(t,e,"number"==typeof n?n:.5)};function ir(t,e,n,o){var r=t.dragEnabled,u=void 0!==r&&r,i=t.dragPropagation,a=void 0!==i&&i,s=t.dragLocksDirection,c=void 0!==s&&s,f=t.dragConstraints,l=t.overdrag,p=t.dragMomentum,d={},h={x:0,y:0},v=null;nr("x",u,v)&&(d.x=n.get("x",0)),nr("y",u,v)&&(d.y=n.get("y",0));var m=function(t,e){var n=d[t];if(nr(t,u,v)&&n){var r=h[t]+e[t];if(f){var o=rr(t,f),i=o.min,a=o.max;void 0!==i&&r<i?r=l?or(i,r,l):Math.max(i,r):void 0!==a&&a<r&&(r=l?or(a,r,l):Math.min(a,r))}n.set(r)}},g=W.useContext(q),y=!1,b=W.useMemo(function(){return function(){d.x&&(h.x=d.x.get(),d.x.stop()),d.y&&(h.y=d.y.get(),d.y.stop()),(a||(y=function(t){var e=!1;if("y"===t)e=ur();else if("x"===t)e=ar();else{var n=ar(),r=ur();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(u)))&&(v=null,g.dragging=!0)}},[u,a,g]),w=W.useMemo(function(){return function(t,e){var n=e.offset;(a||y)&&(c&&null===v?(r=n,o=null,10<Math.abs(r.y)?o="y":10<Math.abs(r.x)&&(o="x"),v=o):(m("x",n),m("y",n)));var r,o}},[y,u,d]),P=W.useMemo(function(){return function(t,e){var r=e.velocity;if(!a&&y&&y(),p){var n=function(t){var e;if(nr(t,u,v)){var n=f?rr(t,f):{};o.start(((e={})[t]=0,e.transition=_({type:"inertia",velocity:r[t],bounceDamping:25},n),e))}};n("x"),n("y")}g.dragging=!1}},[y,g,u]),x={};u&&(x={onPanStart:b,onPan:w,onPanEnd:P}),$n(x,e)}var ar=er("dragHorizontal"),ur=er("dragVertical");var sr,cr;function fr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lr(t,e){return t(e={exports:{}},e.exports),e.exports}(cr=sr||(sr={})).Target="Target",cr.VariantLabel="VariantLabel",cr.AnimationSubscription="AnimationSubscription";var pr=lr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}});fr(pr),fr(lr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}}));var dr,hr,vr=lr(function(t){t.exports=pr}),mr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gr=vr(function(t){return mr.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),yr=function(e){return function(t){return e(t),null}},br=((dr={})[sr.Target]=yr(function(t){var o,e,i,n,r,a,u,s=t.animate,c=t.controls,f=t.values,l=t.transition,p=t.onAnimationComplete;return o=s,e=c,i=f,n=l,r=p,a=W.useRef(!0),u=W.useRef(o),void W.useEffect(function(){var t=Object.keys(u.current).reduce(function(t,e){var n=void 0!==o[e]&&u.current[e]!==o[e],r=a.current&&(!i.has(e)||i.has(e)&&i.get(e).get()!==o[e]);return(n||r)&&(t[e]=o[e]),t},{});a.current=!1,u.current=_({},u.current,o),Object.keys(t).length&&e.start(t,n).then(r)},[o])}),dr[sr.VariantLabel]=yr(function(t){var n,r,o,i,a,u,e=t.animate,s=t.inherit,c=void 0===s||s,f=t.controls,l=t.onAnimationComplete,p=t.initial;return n=c,r=f,o=p,i=l,a=Un(e),u=W.useRef(!1),void W.useEffect(function(){var t,e;n||((u.current||(t=Un(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),dr[sr.AnimationSubscription]=yr(function(t){var e,n,r,o=t.animate,i=t.controls;return e=o,n=i,r=W.useMemo(function(){return e.subscribe(n)},[e]),void W.useEffect(function(){return function(){return r&&r()}},[r])}),dr),wr=function(t){return t.animate instanceof Yn},Pr=((hr={})[sr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||wr(t));var e},hr[sr.VariantLabel]=function(t){return void 0!==t.variants},hr[sr.AnimationSubscription]=wr,hr),xr=["dragEnabled","onPan","onPanStart","onPanEnd","onTap","onPressStart","onPressEnd","hoverActive","pressActive"],Mr=yr(function(t){var e=t.innerRef,n=d(t,["innerRef"]);return tr(n,e)}),Or=yr(function(t){var e=t.innerRef,n=t.values,r=t.controls;return ir(d(t,["innerRef","values","controls"]),e,n,r)}),kr=new Set(["onTap","onAnimationComplete"]),Cr=function(t){var e,n,r=t.base,o=t.props,i=t.innerRef,a=t.style,u=t.handlers,s=t.values,c="string"==typeof r,f=c&&-1!==p.indexOf(r),l=c?function(t){var e={};for(var n in t)gr(n)&&!kr.has(n)&&(e[n]=t[n]);return e}(o):o;return W.createElement(r,_({},l,u,{ref:i,style:f?a:(e=s,n=a,_({},n,Pe(Xn(e))))}))},Sr=new Set([sr.AnimationSubscription,sr.VariantLabel]),Ar=Jn("hover"),Tr=function(z){return W.forwardRef(function(t,e){var n,r,o,i,a,u,s,c,f,l,p,d,h,v,m,g,y,b,w,P,x,M,O,k,C,S,A,T,E=(r=(n=e)&&"function"!=typeof n?n:W.useRef(null),W.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),V=(o=E,i=W.useMemo(function(){return new vn},[]),W.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),R=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof dn?t.set(r,o):le(r)?t.has(r)||t.set(r,hn(o)):n[r]=o}return n}(V,t.style),L=function(t){for(var e in sr)if(Pr[e](t))return e}(t),j=(u=L,s=(a=t).animate,!(void 0!==(c=a.inherit)&&!c||!(void 0===s||s instanceof Yn)||!u||!Sr.has(u))),D=(f=V,p=E,d=j,h=(l=t).variants,v=l.transition,m=W.useContext(q).controls,(g=W.useMemo(function(){return new Fn(f,p)},[])).resetChildren(),d&&m&&m.addChild(g),W.useEffect(function(){return function(){return m&&m.removeChild(g)}},[]),g.setProps(l),g.setVariants(h),g.setDefaultTransition(v),g),F=(y=D,b=t.initial,w=W.useContext(q),P=b||w.initial,(x=W.useMemo(function(){return{controls:y,initial:P}},[])).dragging=w.dragging,W.useMemo(function(){P&&y.apply(P)},[]),x),X=(M=L)?br[M]:void 0,Y=X&&W.createElement(X,_({},t,{inherit:j,innerRef:E,values:V,controls:D})),U=(O=t,xr.some(function(t){return O.hasOwnProperty(t)})&&W.createElement(Mr,_({},t,{values:V,controls:D,innerRef:E}))),B=!!t.dragEnabled&&W.createElement(Or,_({},t,{innerRef:E,controls:D,values:V})),I=(C=D,S=(k=t).hoverActive,A=k.onMouseEnter,T=k.onMouseLeave,W.useMemo(function(){return S?{onMouseEnter:function(t){A&&A(t),S&&C.start(S,{priority:Ar})},onMouseLeave:function(t){T&&T(t),S&&C.clearOverride(Ar)}}:{}},[S,A,T])),H=W.createElement(Cr,{base:z,props:t,handlers:I,innerRef:E,style:R,values:V});return W.createElement(q.Provider,{value:F},Y,U,B,H)})},Er=n.reduce(function(t,e){return t[e]=Tr(e),t},{custom:Tr}),Vr=hn(0),Rr=hn(0),Lr=hn(0),jr=hn(0),Dr=!1,Fr={scrollX:Vr,scrollY:Rr,scrollXProgress:Lr,scrollYProgress:jr};t.motion=Er,t.useMotionValue=function(t){return W.useMemo(function(){return hn(t)},[])},t.useTransformedValue=function(e,n,r){var o=W.useRef(null);return W.useMemo(function(){o.current&&o.current.destroy();var t=Wt(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return Dr||function(){if(Dr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Vr.set(t),Rr.set(e);var n=document.body.clientWidth-window.innerWidth;Lr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;jr.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),Fr},t.useAnimation=function(t,e){var n=W.useMemo(function(){return new Yn},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),W.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=Qn,t.usePanGesture=$n,t.useGestures=tr,t.useCycle=function(t,e){void 0===e&&(e=0);var n=t.length,r=W.useState(e),o=r[0],i=r[1];return[t[o],function(t){var e="number"!=typeof t?Zt(0,n,o+1):t;i(e)}]},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,W){"use strict";var e=["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","webview"],p=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],n=e.concat(p),q=W.createContext({dragging:!1}),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function d(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var i,a,u=0,s="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-u));u=e+n,setTimeout(function(){return t(u)},n)};(a=i||(i={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var c=1/60*1e3,f=!0,h=!1,l=!1,v={delta:0,timestamp:0},m=[i.Read,i.Update,i.Render,i.PostRender],g=function(t){return h=t},y=m.reduce(function(t,e){var r,i,a,u,s,o,c,f,l,p=(r=g,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=a.indexOf(t);c.add(t),-1!==e&&a.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[a,i])[0],(a=e[1]).length=0,u=i.length)for(o=0;o<u;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:a;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),h||x(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),b=y.steps,F=y.sync,X=y.cancelSync,w=function(t){return b[t].process(v)},P=function(t){h=!1,v.delta=f?c:Math.max(Math.min(t-v.timestamp,40),1),f||(c=v.delta),v.timestamp=t,l=!0,m.forEach(w),l=!1,h&&(f=!1,s(P))},x=function(){f=h=!0,l||s(P)},M=function(){return v},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},k=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},C=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},A={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},T=O({},A,{transform:k(0,1)}),E=O({},A,{default:1}),V=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},R=V("deg"),L=V("%"),D=V("px"),j=V("vh"),Y=V("vw"),U=k(0,255),B=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,I=function(t){return void 0!==t.red},H=function(t){return void 0!==t.hue},z=function(a){var u=a.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<u;i++)r[a[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},N=O({},A,{transform:function(t){return Math.round(U(t))}}),G=C("rgb"),Z={test:function(t){return"string"==typeof t?G(t):I(t)},parse:z(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha;return e={red:N.transform(a),green:N.transform(u),blue:N.transform(s),alpha:S(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},$=C("hsl"),K={test:function(t){return"string"==typeof t?$(t):H(t)},parse:z(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(a),saturation:L.transform(S(u)),lightness:L.transform(S(s)),alpha:S(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},J=O({},Z,{test:C("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),Q={test:function(t){return"string"==typeof t&&B.test(t)||Z.test(t)||K.test(t)||J.test(t)},parse:function(t){return Z.test(t)?Z.parse(t):K.test(t)?K.parse(t):J.test(t)?J.parse(t):t},transform:function(t){return I(t)?Z.transform(t):H(t)?K.transform(t):t}},tt=/(-)?(\d[\d\.]*)/g,et=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nt="${c}",rt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(tt),r=t.match(et);return n&&(e+=n.length),r&&(e+=r.length),0<e},ot=function(t){var e=t,n=[],r=e.match(et);r&&(e=e.replace(et,nt),n.push.apply(n,r.map(Q.parse)));var o=e.match(tt);return o&&n.push.apply(n,o.map(A.parse)),n},it=function(t){var r=t,o=0,e=t.match(et),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],nt),o++;var a=r.match(tt),u=a?a.length:0;if(a)for(n=0;n<u;n++)r=r.replace(a[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?nt:"${n}",n<i?Q.transform(t[n]):S(t[n]));return e}},at=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},st=function(e){return function(t){return t*t*((e+1)*t-e)}},ct=function(t){var e=st(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ft=function(t){return t},lt=function(e){return function(t){return Math.pow(t,e)}}(2),pt=at(lt),dt=ut(lt),ht=function(t){return 1-Math.sin(Math.acos(t))},vt=at(ht),mt=ut(vt),gt=st(1.525),yt=at(gt),bt=ut(gt),wt=ct(1.525),Pt="undefined"!=typeof Float32Array,xt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},kt=function(t,e,n){return 3*xt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Ct=function(t,e,n){return((xt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function St(a,e,u,n){var s=Pt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=kt(n=o+.1*e,a,u))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=kt(e,a,u)))return e;e-=(Ct(e,a,u)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Ct(o=e+(n-e)/2,a,u)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Ct(.1*t,a,u)}();return function(t){return a===e&&u===n?t:0===t?0:1===t?1:Ct(r(t),e,n)}}var At=function(t){return"number"==typeof t},Tt=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Et=Tt(function(t,e,n){return Math.min(Math.max(n,t),e)}),Vt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Rt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Dt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},jt=[J,Z,K],Ft=function(e){return jt.find(function(t){return t.test(e)})},Xt=function(t,e){var n=Ft(t),r=Ft(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),a=Lt({},o),u=n===K?Rt:Dt;return function(t){for(var e in a)"alpha"!==e&&(a[e]=u(o[e],i[e],t));return a.alpha=Rt(o.alpha,i.alpha,t),n.transform(a)}},Yt=function(e,n){return function(t){return n(e(t))}},Ut=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Yt)},Bt=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return At(e)?function(t){return Rt(e,n,t)}:Q.test(e)?Xt(e,n):It(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},It=function(t,e){var n=it(t);return n(t),it(e)(t),Ut(Bt(ot(t),ot(e)),n)},Ht=Tt(Rt),zt=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Ht:Q.test(t)?Xt:It)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Ut(r,n)}return n});var t},Wt=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,u=t.length;e.length,!a||!Array.isArray(a)||(a.length,t.length),t[0]>t[u-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=zt(e,a),y=2===u?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(Vt(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=Vt(s[e],s[e+1],t);return c[e](o)});return i?Ut(Et(t[0],t[u-1]),y):y},qt=function(t){return t},_t=function(i){return void 0===i&&(i=qt),Tt(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},Nt=(_t(),_t(Math.sqrt),function(t,e){return At(t)?t/(1e3/e):0}),Gt=function(t,e){return e?t*(1e3/e):0},Zt=Tt(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),$t=(Et(0,1),function(){return($t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)});var Kt,Jt=function(t){var n=t.onRead,s=t.onRender,e=t.uncachedValues,c=void 0===e?new Set:e,r=t.useCache,f=void 0===r||r;return function(e){var r={},o=[],i=!1,a=function(t,e){var n=r[t];r[t]=e,r[t]!==n&&(-1===o.indexOf(t)&&o.push(t),i||(i=!0,F.render(u)))};function u(t){return void 0===t&&(t=!1),(!0===t||i)&&(s(r,e,o),i=!1,o.length=0),this}return{get:function(t){return t?f&&!c.has(t)&&void 0!==r[t]?r[t]:n(t,e):r},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return a(e,t)};a(e,t)}else for(var n in e)e.hasOwnProperty(n)&&a(n,e[n]);return this},render:u}}},Qt=/([a-z])([A-Z])/g,te=function(t){return t.replace(Qt,"$1-$2").toLowerCase()},ee=new Map,ne=new Map,re=["Webkit","Moz","O","ms",""],oe=re.length,ie="undefined"!=typeof document,ae=function(t,e){return ne.set(t,te(e))},ue=function(t,e){void 0===e&&(e=!1);var n,r=e?ne:ee;return r.has(t)||(ie?function(t){Kt=Kt||document.createElement("div");for(var e=0;e<oe;e++){var n=re[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Kt.style||r)&&(ee.set(t,o),ae(t,(r?"":"-")+te(o)))}}(t):ae(n=t,n)),r.get(t)||t},se=["","X","Y","Z"],ce=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return se.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),fe=ce.reduce(function(t,e){return t[e]=!0,t},{}),le=function(t){return!0===fe[t]},pe=function(t,e){return ce.indexOf(t)-ce.indexOf(e)},de={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:R,rotateX:R,rotateY:R,rotateZ:R,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:R,skewX:R,skewY:R,distance:D,x:D,y:D,z:D,perspective:D,opacity:T,originX:L,originY:L,originZ:D},he=function(t){return de[t]},ve="scrollLeft",me="scrollTop",ge=new Set([ve,me]),ye=new Set([ve,me,"transform"]),be={x:"translateX",y:"translateY",z:"translateZ"},we=function(t){return"function"==typeof t},Pe=function(t,e,n,r,o,i,a){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=he(l),h="number"==typeof p&&d?d.transform(p):p;le(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):"originX"===(u=l)||"originY"===u?(o[l]=h,f=!0):ye.has(l)&&we(h)||(n[ue(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(we(t.transform))v=t.transform(r);else{var m=!1;i.sort(pe);for(var g=i.length,y=0;y<g;y++){l=i[y];v+=(be[l]||l)+"("+r[l]+") ",m="z"===l||m}!m&&e?v+="translateZ(0)":v=v.trim()}n.transform=v}return f&&(n.transformOrigin=(o.originX||0)+" "+(o.originY||0)+" "+(o.originZ||0)),n},xe=Jt({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=he(t);if(le(t))return o&&o.default||0;if(ge.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(ue(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;Object.assign(r.style,o(t)),-1!==n.indexOf(ve)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(me)&&(r.scrollTop=t.scrollTop)},uncachedValues:ge}),Me=function(t,e){void 0===e&&(e={});var n=e.enableHardwareAcceleration,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}(e,["enableHardwareAcceleration"]);return xe($t({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,Pe(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},Oe=function(t,e){return t/100*e+"px"},ke={fill:Q,stroke:Q,scale:E,scaleX:E,scaleY:E,opacity:T,fillOpacity:T,strokeOpacity:T},Ce=Jt({onRead:function(t,e){var n=e.element;if(le(t)){var r=ke[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e){var n=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,a={},u=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.x+", "+t.y+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];le(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?a["stroke-dashoffset"]=Oe(-y,r):a[te(g)]=y:(i=!0,u[g]=Oe(y,r))}if(i&&(a["stroke-dasharray"]=u.pathLength+" "+u.pathSpacing),o)for(var g in a.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";a.transform+=m[g].replace(/undefined/g,b)}return a}(t,n,e.isPath,e.pathLength))}}),Se=Jt({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),Ae=new WeakMap,Te=function(t,e){var n,r,o;return t instanceof HTMLElement?n=Me(t,e):t instanceof SVGElement?(o={element:r=t,dimensions:function(t){try{return"function"==typeof(e=t).getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var e}(r),isPath:!1},"path"===r.tagName&&(o.isPath=!0,o.pathLength=r.getTotalLength()),n=Ce(o)):t===window&&(n=Se(t)),Ae.set(t,n),n};function Ee(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,Ae.has(n)?Ae.get(n):Te(n,r)}var Ve=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(_({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Ut.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),Re=function(){return function(t,e){var n=t.middleware,r=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Le=function(t,e,n){var r=e.middleware;return new Re({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=d(r,["init"]),a=o(Le(t,i,function(){e=!0,n.stop()}));return n=a?_({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Ve),je=function(t){return new De({init:t})},Fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subscribers=[],t}return o(t,e),t.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},t.prototype.error=function(e){this.subscribers.forEach(function(t){return t.error(e)})},t.prototype.update=function(t){for(var e=0;e<this.subscribers.length;e++)this.subscribers[e].update(t)},t.prototype.subscribe=function(t){var e=this,n=Le(t,this.props);return this.subscribers.push(n),{unsubscribe:function(){var t=e.subscribers.indexOf(n);-1!==t&&e.subscribers.splice(t,1)}}},t.prototype.stop=function(){this.parent&&this.parent.stop()},t.prototype.registerParent=function(t){this.stop(),this.parent=t},t}(Ve),Xe=function(i){function e(t){var e,n,r,o=i.call(this,t)||this;return o.scheduleVelocityCheck=function(){return F.postRender(o.velocityCheck)},o.velocityCheck=function(t){t.timestamp!==o.lastUpdated&&(o.prev=o.current)},o.prev=o.current=t.value||0,n=o.current,"string"===(r=typeof n)||"number"===r?(o.updateCurrent=function(t){return o.current=t},o.getVelocityOfCurrent=function(){return o.getSingleVelocity(o.current,o.prev)}):(e=o.current,Array.isArray(e)?(o.updateCurrent=function(t){return o.current=t.slice()},o.getVelocityOfCurrent=function(){return o.getListVelocity()}):(o.updateCurrent=function(t){for(var e in o.current={},t)t.hasOwnProperty(e)&&(o.current[e]=t[e])},o.getVelocityOfCurrent=function(){return o.getMapVelocity()})),t.initialSubscription&&o.subscribe(t.initialSubscription),o}return o(e,i),e.prototype.create=function(t){return new e(t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},e.prototype.update=function(t){i.prototype.update.call(this,t),this.prev=this.current,this.updateCurrent(t);var e=M(),n=e.delta,r=e.timestamp;this.timeDelta=n,this.lastUpdated=r,F.postRender(this.scheduleVelocityCheck)},e.prototype.subscribe=function(t){var e=i.prototype.subscribe.call(this,t);return this.subscribers[this.subscribers.length-1].update(this.current),e},e.prototype.getSingleVelocity=function(t,e){return"number"==typeof t&&"number"==typeof e?Gt(t-e,this.timeDelta):Gt(parseFloat(t)-parseFloat(e),this.timeDelta)||0},e.prototype.getListVelocity=function(){var n=this;return this.current.map(function(t,e){return n.getSingleVelocity(t,n.prev[e])})},e.prototype.getMapVelocity=function(){var t={};for(var e in this.current)this.current.hasOwnProperty(e)&&(t[e]=this.getSingleVelocity(this.current[e],this.prev[e]));return t},e}(Fe),Ye=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return je(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),a=p(),u=function(){return e(a)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&F.update(r))},error:o,update:function(t){h(a,e,t),F.update(u,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Ue=Ye({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Be=Ye({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Ie=[D,L,R,j,Y],He=function(e){return Ie.find(function(t){return t.test(e)})},ze=function(t,e){return t(e)},We=function(o,i,a){var t=a[0],e=i[t].map(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return $e(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Be(t)}.apply(void 0,e)},qe=function(o,i,a){var u=a[0],t=Object.keys(i[u]).reduce(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return t[e]=$e(i[u][e])(o,r),t},{});return Ue(t)},_e=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=He(n)||He(r),a=i.transform,u=i.parse;return t(_({},o,{from:"string"==typeof n?u(n):n,to:"string"==typeof r?u(r):r})).pipe(a)},Ne=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]);return t(_({},o,{from:0,to:1})).pipe(Xt(n,r),Q.transform)},Ge=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=it(n);return i(n),it(r)(n),t(_({},o,{from:0,to:1})).pipe(Bt(ot(n),ot(r)),i)},Ze=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),a=e.testVectorProps,u=e.getVectorKeys;return function(t){if(!a(t))return r(t);var e=u(t),n=t[e[0]];return $e(n)(r,t,e)}},$e=function(t){var e=ze;return"number"==typeof t?e=ze:Array.isArray(t)?e=We:Boolean(He(t))?e=_e:Q.test(t)?e=Ne:rt(t)?e=Ge:"object"==typeof t&&(e=qe),e},Ke=Ze(function(b){return void 0===b&&(b={}),je(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(a+v),g=void 0===d?m:d(m),y=F.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(X.update(y),o())},!0);return{stop:function(){return X.update(y)}}})},{from:A.test,modifyTarget:function(t){return"function"==typeof t},velocity:A.test}),Je=Ze(function(k){return void 0===k&&(k={}),je(function(t){var s=t.update,c=t.complete,e=k.velocity,f=void 0===e?0:e,n=k.from,r=void 0===n?0:n,o=k.to,l=void 0===o?0:o,i=k.stiffness,p=void 0===i?100:i,a=k.damping,d=void 0===a?10:a,u=k.mass,h=void 0===u?1:u,v=k.restSpeed,m=void 0===v?.01:v,g=k.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,x=r,M=x,O=F.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(M=x,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);x=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);x=l-o*(P+(b+r*P)*w)}f=Gt(x-M,e);var a=Math.abs(f)<=m,u=Math.abs(l-x)<=y;a&&u?(s(x=l),X.update(O),c()):s(x)},!0);return{stop:function(){return X.update(O)}}})},{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),Qe=Ze(function(t){var e=t.from,h=void 0===e?0:e,n=t.velocity,v=void 0===n?0:n,m=t.min,g=t.max,r=t.damping,y=void 0===r?10:r,o=t.stiffness,b=void 0===o?500:o,w=t.modifyTarget;return je(function(t){var e,n,r=t.update,o=t.complete,i=new Xe({value:h,initialSubscription:e}),a=!1,u=function(t){return void 0!==m&&t<=m},s=function(t){return void 0!==g&&g<=t},c=function(t){return u(t)||s(t)},f=function(t,e){return u(t)&&e<0||s(t)&&0<e},l=function(t,e){n&&n.stop(),n=t.start({update:function(t){return i.update(t)},complete:function(){o(),e&&e()}})},p=function(t){a=!0,l(Je(_({},t,{to:u(t.from)?m:g,stiffness:b,damping:y})))};if(i.subscribe(function(t){r(t);var e=i.getVelocity();n&&!a&&f(t,e)&&p({from:t,velocity:e})}),c(h)&&0===v||f(h,v))p({from:h,velocity:v});else{var d=Ke({from:h,velocity:v,timeConstant:700,restDelta:c(h)?20:1,modifyTarget:w});l(d,function(){var t=i.get();c(t)&&p({from:t,velocity:i.getVelocity()})})}return{stop:function(){return n&&n.stop()}}})},{from:A.test,velocity:A.test,min:A.test,max:A.test,damping:A.test,stiffness:A.test,modifyTarget:function(t){return"function"==typeof t}}),tn=Ze(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?ft:i;return je(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(a,function(t){return Rt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:A.test,to:A.test}),en=Et(0,1),nn=function(j){return void 0===j&&(j={}),je(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,a=j.ease,u=void 0===a?pt:a,s=j.flip,c=void 0===s?0:s,f=j.loop,l=void 0===f?0:f,p=j.yoyo,d=void 0===p?0:p,h=j.from,v=void 0===h?0:h,m=j.to,g=void 0===m?1:m,y=j.elapsed,b=void 0===y?0:y,w=j.playDirection,P=void 0===w?1:w,x=j.flipCount,M=void 0===x?0:x,O=j.yoyoCount,k=void 0===O?0:O,C=j.loopCount,S=void 0===C?0:C,A=tn({from:v,to:g,ease:u}).start(r),T=0,E=!1,V=function(){return P*=-1},R=function(){T=en(Vt(0,i,b)),A.seek(T)},L=function(){E=!0,n=F.update(function(t){var e=t.delta;b+=e*P,R(),function(){var t,e=1===P?E&&i<=b:E&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&S<l?(S++,n=!(b=0)):c&&M<c?(b=i-b,A=tn({from:v=(t=[g,v])[0],to:g=t[1],ease:u}).start(r),M++,n=!0):d&&k<d&&(V(),k++,n=!0),!n}()&&o&&(X.update(n),F.update(o,!1,!0))},!0)},D=function(){E=!1,n&&X.update(n)};return L(),{isActive:function(){return E},getElapsed:function(){return Et(0,i,b)},getProgress:function(){return T},stop:function(){D()},pause:function(){return D(),this},resume:function(){return E||L(),this},seek:function(t){return b=Rt(0,i,t),F.update(R,!1,!0),this},reverse:function(){return V(),this}}})},rn=Et(0,1),on=Ze(function(m){return void 0===m&&(m={}),je(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,a=void 0===n?0:n,u=m.velocity,s=void 0===u?0:u,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=F.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=Nt(i,n)),a&&(s*=Math.pow(1-a,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*Nt(c,n));h+=Nt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(X.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return X.update(v)}}})},{acceleration:A.test,friction:A.test,velocity:A.test,from:A.test,to:A.test,springStrength:A.test}),an=function(r,o,i){return je(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},un=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},sn=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},cn=[un()];if("undefined"!=typeof document){an(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=cn.length=0;r<n;r++){var o=e[r];cn.push(sn(o))}})}var fn=un();if("undefined"!=typeof document){an(document,"mousedown mousemove",!0).start(function(t){sn(t,fn)})}var ln,pn,dn=function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,a=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(a.current)},this.scheduleVelocityCheck=function(){return F.postRender(a.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==a.lastUpdated&&(a.prev=a.current)},this.setChild=function(t){return t.set(a.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,_({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.subscribeTo=function(t,e){var n=this,r=function(){return e(n.current)};return t.add(r),function(){return t.delete(r)}},n.prototype.addUpdateSubscription=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},n.prototype.addRenderSubscription=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.subscribeTo(this.renderSubscribers,t)},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,F.postRender(this.scheduleVelocityCheck))},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?Gt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=d(e,["delay"]);this.stop();var a,u=t(_({from:this.get(),velocity:this.getVelocity()},i));return n&&(u=u.pipe(n)),o&&(u=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return je(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=a[o].start({complete:function(){++o>=a.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((a=o,je(function(t){var e=t.complete,n=setTimeout(e,a);return{stop:function(){return clearTimeout(n)}}})),u)),new Promise(function(t){r.controller=u.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}(),hn=function(t,e){return new dn(t,e)},vn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new dn(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=Ee(t,{preparseOutput:!1}),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),mn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},gn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},yn=function(){return{ease:"linear",duration:250}},bn={x:mn,y:mn,z:mn,rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scaleX:gn,scaleY:gn,scale:gn,opacity:yn,backgroundColor:yn,color:yn,default:gn},wn={tween:nn,spring:Je,keyframes:function(t){var e,n,r,o,i=t.easings,a=t.ease,u=void 0===a?ft:a,s=t.times,c=t.values,f=d(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||pt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return tn({from:c[e],to:c[e+1],ease:t})});return nn(_({},f,{ease:u})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,a=(i=o-1)-1,u=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Vt(r[e-1],r[e],t);u[e-1].seek(rn(n))};var r,e,n,o,i,a,u})},decay:Ke,physics:on,inertia:Qe,just:function(t){var r=t.to;return je(function(t){var e=t.update,n=t.complete;e(r),n()})}},Pn={linear:ft,easeIn:lt,easeOut:pt,easeInOut:dt,circIn:ht,circOut:vt,circInOut:mt,backIn:gt,backOut:yt,backInOut:bt,anticipate:wt},xn={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=St(n,r,o,i)}else"string"==typeof e&&(t.ease=Pn[e]);return t},keyframes:function(t){t.from,t.to;return d(t,["from","to"])}},Mn=function(t,e,n){var r,o=n?n.delay:0;if(void 0===n||!function(t){t.beforeChildren,t.afterChildren,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var e=d(t,["beforeChildren","afterChildren","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(e).length}(n))return _({delay:o},_({},(bn[t]||bn.default)(r=e),{to:r}));var i=n[t]||n.default||n;return!1===i.type?{type:"just",delay:o,to:e}:_({delay:o,to:e},i)},On=function(t,e,n){var r,o,i=Mn(t,e,n),a=i.type,u=void 0===a?"tween":a,s=d(i,["type"]);return[wn[u],(o=s,xn[r=u]?xn[r](o):o)]},kn=[A,R,L,D,Y,j,{test:function(t){return"auto"===t},parse:function(t){return t}}],Cn=function(t){return kn.find((e=t,function(t){return t.test(e)}));var e},Sn=new Set(["width","height","top","left","right","bottom","x","y"]),An=function(t){return Sn.has(t)},Tn=function(t,e){t.set(e,!1),t.set(e)};(pn=ln||(ln={})).width="width",pn.height="height",pn.left="left",pn.right="right",pn.top="top",pn.bottom="bottom";var En,Vn=function(t,e){return parseFloat(t.split(", ")[e])},Rn=function(i,a){return function(t,e){var n=e.transform;if("none"===n||!n)return 0;var r=n.match(/^matrix3d\((.+)\)$/);if(r)return Vn(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return Vn(o[1],i)}},Ln={width:function(t){return t.width},height:function(t){return t.height},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.height,r=e.top;return parseFloat(r)+n},right:function(t,e){var n=t.width,r=e.left;return parseFloat(r)+n},x:Rn(4,13),y:Rn(5,14)},Dn=function(i,t,a,u){void 0===u&&(u={}),u=_({},u);var e=Object.keys(a).filter(An).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return Cn(r)!==Cn(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],Tn(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=Ee(o),a=o.getBoundingClientRect(),u=getComputedStyle(o),s={top:u.top,left:u.left,bottom:u.bottom,right:u.right,transform:u.transform};i.render();var c=o.getBoundingClientRect();return e.forEach(function(t){var e=r.get(t);Tn(e,Ln[t](a,s)),n[t]=Ln[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},jn=function(t,e,n,r){return o=n,Object.keys(o).some(An)?Dn(t,e,n,r):{target:n,transitionEnd:r};var o},Fn=function(){function t(t,e){this.variants={},this.baseTarget={},this.overrides=[],this.isAnimating=new Set,this.values=t,this.ref=e}return t.prototype.setProps=function(t){this.props=t},t.prototype.setVariants=function(t){t&&(this.variants=t)},t.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},t.prototype.setValues=function(n,r){var o=this;return void 0===r&&(r=new Set),Object.keys(n).forEach(function(t){if(!r.has(t)){if(r.add(t),o.values.has(t)){var e=o.values.get(t);e&&e.set(n[t])}else o.values.set(t,hn(n[t]));o.baseTarget[t]=n[t]}})},t.prototype.checkForNewValues=function(t){var n=this,e=Object.keys(t).filter(function(t){return!n.values.has(t)});if(e.length){var r=Ee(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,hn(e)),n.baseTarget[t]=e})}},t.prototype.resolveVariant=function(t){return t?("function"==typeof t&&(t=t(this.props,(r=this.values,o={},r.forEach(function(t,e){return o[e]=t.get()}),o),(e=this.values,n={},e.forEach(function(t,e){return n[e]=t.getVelocity()}),n))),{transition:t.transition,transitionEnd:t.transitionEnd,target:d(t,["transition","transitionEnd"])}):{target:void 0,transition:void 0,transitionEnd:void 0};var e,n,r,o},t.prototype.getHighestPriority=function(){var t=0,e=this.overrides.length;if(!e)return t;for(var n=0;n<e;n++)void 0!==this.overrides[n]&&(t=n);return t},t.prototype.clearOverride=function(t){if(this.overrides[t]){this.overrides[t]=void 0;var e=this.getHighestPriority();if(this.resetIsAnimating(),!(t<e)){var n=this.overrides[e];n&&this.start(n,{priority:e}),this.animate(this.baseTarget)}}},t.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},t.prototype.applyVariantLabels=function(t){var o=this,i=new Set;t.slice().reverse().forEach(function(t){var e=o.resolveVariant(o.variants[t]),n=e.target,r=e.transitionEnd;r&&o.setValues(r,i),n&&o.setValues(n,i)})},t.prototype.start=function(t,e){return void 0===e&&(e={}),this.setPriorityAnimation(t,e.priority||0),void 0===e.priority||this.isHighestPriority(e.priority)?(this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateVariantLabels(t,e):"string"==typeof t?this.animateVariant(t,e):this.animate(t,e)):Promise.resolve();var n},t.prototype.setPriorityAnimation=function(t,e){this.overrides[e]=t},t.prototype.isHighestPriority=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++)if(void 0!==this.overrides[n])return!1;return!0},t.prototype.animate=function(t,e){var s=this,n=void 0===e?{}:e,r=n.delay,c=void 0===r?0:r,o=n.priority,f=void 0===o?0:o,i=this.resolveVariant(t),l=i.target,p=i.transition,a=i.transitionEnd;if(!l)return Promise.resolve();this.checkForNewValues(l);var u=jn(this.values,this.ref,l,a);l=u.target,a=u.transitionEnd,!p&&this.defaultTransition&&(p=this.defaultTransition);var d=Object.keys(l).reduce(function(t,e){var n=s.values.get(e);if(s.isAnimating.has(e)||!l||!n||void 0===l[e])return t;var r,o=l[e];if(f||(s.baseTarget[e]=o),"number"==typeof(r=o)||rt(r)){var i=On(e,o,_({delay:c},p)),a=i[0],u=i[1];t.push(n.control(a,u))}else n.set(o);return s.isAnimating.add(e),t},[]);return Promise.all(d).then(function(){a&&s.setValues(a)})},t.prototype.animateVariantLabels=function(t,e){var n=this,r=t.slice().reverse().map(function(t){return n.animateVariant(t,e)});return Promise.all(r)},t.prototype.animateVariant=function(t,e){var n=this,r=!1,o=!1,i=0,a=0,u=1,s=e&&e.priority||0,c=this.variants[t],f=c?function(){return n.animate(c,e)}:function(){return Promise.resolve()},l=this.children?function(){return n.animateChildren(t,i,a,u,s)}:function(){return Promise.resolve()};if(c&&this.children){var p=this.resolveVariant(c).transition;p&&(r=p.beforeChildren||r,o=p.afterChildren||o,i=p.delayChildren||i,a=p.staggerChildren||a,u=p.staggerDirection||u)}if(r||o){var d=r?[f,l]:[l,f],h=d[1];return(0,d[0])().then(h)}return Promise.all([f(),l()])},t.prototype.animateChildren=function(r,o,e,t,i){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animateVariant(r,{priority:i,delay:o+u(e)});a.push(n)}),Promise.all(a)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),Xn=(En=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=En(t)}),n}),Yn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set,this.variants={}}return t.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach(function(t){return t.setVariants(e)})},t.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach(function(t){return t.setDefaultTransition(e)})},t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return e.componentControls.delete(t)}},t.prototype.start=function(n){if(this.hasMounted){var r=[];return this.componentControls.forEach(function(t){var e=t.start(n);r.push(e)}),Promise.all(r)}return this.pendingAnimations.push(n),Promise.resolve()},t.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){return e.start(t)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),Un=function(t){var e,n=t instanceof dn?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function Bn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var In,Hn=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},zn=function(o,i,a,u){var t=void 0;return i&&!Bn(i)||!a||(t=Hn(i,o,a,u)),W.useEffect(function(){var t=i;if(a&&i&&!Bn(i)&&t.current){var e=Hn(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},Wn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var a=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:a*(t.pageY-r.top-e.clientTop+e.scrollTop)}},qn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Wn(n,r),devicePoint:Wn(n,document.body)}),o(t,e)}}},_n=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Nn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,a=t.onPointerCancel,u=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:a}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:u,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,x,M,O,k,C,S,A,T,E,V,R,L,D,j,F,X,Y,U,B,I,H,z,W,q,_,N,G,Z,$,K,J,Q,tt,et,nt,rt,ot,it,at,ut=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,x=h.onPointerOut,M=h.onPointerEnter,O=h.onPointerLeave,k=zn("pointerdown",v,qn(g),m),C=zn("pointermove",v,qn(y),m),S=zn("pointerup",v,qn(b),m),A=zn("pointercancel",v,qn(w),m),T=zn("pointerover",v,qn(P),m),E=zn("pointerout",v,qn(x),m),V=zn("pointerenter",v,qn(M),m),R=zn("pointerleave",v,qn(O),m),_n(k,C,S,A,T,E,V,R)),st=(D=e,j=n,F=(L=p).onTouchStart,X=L.onTouchMove,Y=L.onTouchEnd,U=L.onTouchCancel,B=zn("touchstart",D,qn(F),j),I=zn("touchmove",D,qn(X),j),H=zn("touchend",D,qn(Y),j),z=zn("touchcancel",D,qn(U),j),_n(B,I,H,z)),ct=(q=e,_=n,N=(W=l).onMouseDown,G=W.onMouseMove,Z=W.onMouseUp,$=W.onMouseOver,K=W.onMouseOut,J=W.onMouseEnter,Q=W.onMouseLeave,tt=zn("mousedown",q,qn(N),_),et=zn("mousemove",q,qn(G),_),nt=zn("mouseup",q,qn(Z),_),rt=zn("mouseover",q,qn($),_),ot=zn("mouseout",q,qn(K),_),it=zn("mouseenter",q,qn(J),_),at=zn("mouseleave",q,qn(Q),_),_n(tt,et,nt,rt,ot,it,at));return _n(ut,st,ct)},Gn=function(t,e,n){var r,o,i=W.useRef(null);return o=e?(r=e,t):(r=i,{}),Nn(o,r,n),e?void 0:t};(In||(In={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var Zn=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function $n(t,e){var i=t.onPan,a=t.onPanStart,u=t.onPanEnd,s=null,c=W.useRef(null),f=W.useRef(null),l=W.useRef(null),p=W.useMemo(function(){return function(){if(s&&null!==c.current&&null!==l.current&&null!==f.current){var t=l.current,e=t.point,n=t.devicePoint,r=In.subtract(n,s.lastDevicePoint),o=In.subtract(n,s.startDevicePoint);c.current.x.set(n.x),c.current.y.set(n.y),(0<Math.abs(r.x)||0<Math.abs(r.y))&&(s.startEvent?i&&i(f.current,{point:e,devicePoint:n,delta:r,offset:o,velocity:Zn(c.current)}):(a&&a(f.current,{point:e,devicePoint:n,delta:r,offset:o,velocity:Zn(c.current)}),s.startEvent=f.current)),s.lastDevicePoint=n,r.x=0,r.y=0}else console.error("Pointer move without started session")}},[i,a]),n=W.useMemo(function(){return function(t,e){f.current=t,l.current=e,F.update(p)}},[i,a]),r=W.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(s&&null!==c.current){X.update(p);var o=In.subtract(r,s.lastDevicePoint),i=In.subtract(r,s.startDevicePoint);g(),h(),u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:Zn(c.current)}),s=null}else console.error("Pointer end without started session")}},[u,n]),o=Nn({onPointerUp:r},window),d=o[0],h=o[1],v=Nn({onPointerMove:n},window,{capture:!0}),m=v[0],g=v[1],y=W.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;c.current={x:hn(r.x),y:hn(r.y)},s={target:t.target,lastDevicePoint:n,startDevicePoint:n},m(),d()}},[r,n]);W.useEffect(function(){return function(){g(),h()}},[]);var b={onPointerDown:y};return i||a||u||(b={}),Gn(b,e)}var Kn=["hover","tap","drag"],Jn=function(t){return Kn.indexOf(t)+1};function Qn(t,o){var i=t.onTap,a=t.onTapStart,u=t.onTapCancel,s=t.tapActive,c=t.controls,f=null,e=W.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;f&&(c&&s&&c.clearOverride(Jn("tap")),o&&t.target===o.current?(i&&i({point:n,devicePoint:r},t),f=null):u&&u({point:n,devicePoint:r},t))}},[i]),n=Nn({onPointerUp:e},window),l=n[0],r=n[1];return W.useEffect(function(){return function(){r()}},[o&&o.current,e]),Gn({onPointerDown:function(t,e){var n=e.point,r=e.devicePoint;l(),o&&t.target===o.current&&(f={target:t.target},a&&a({point:n,devicePoint:r},t),c&&s&&c.start(s,{priority:Jn("tap")}))}},o)}var tr=function(t,e){$n(t,e),Qn(t,e)};function er(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function nr(t,e,n){return!(!0!==e&&"lockDirection"!==e&&e!==t||null!==n&&n!==t)}var rr=function(t,e){var n=e.top,r=e.right,o=e.bottom,i=e.left;return"x"===t?{min:i,max:r}:{min:n,max:o}},or=function(t,e,n){return Rt(t,e,"number"==typeof n?n:.5)};function ir(t,e,n,o){var r=t.drag,u=void 0!==r&&r,i=t.dragPropagation,a=void 0!==i&&i,s=t.dragConstraints,c=t.overdrag,f=t.dragMomentum,l=t.onDragStart,p=t.onDragEnd,d=t.onDirectionLock,h={},v={x:0,y:0},m=null;nr("x",u,m)&&(h.x=n.get("x",0)),nr("y",u,m)&&(h.y=n.get("y",0));var g=function(t,e){var n=h[t];if(nr(t,u,m)&&n){var r=v[t]+e[t];if(s){var o=rr(t,s),i=o.min,a=o.max;void 0!==i&&r<i?r=c?or(i,r,c):Math.max(i,r):void 0!==a&&a<r&&(r=c?or(a,r,c):Math.min(a,r))}n.set(r)}},y=W.useContext(q),b=!1,w=W.useMemo(function(){return function(t){h.x&&(v.x=h.x.get(),h.x.stop()),h.y&&(v.y=h.y.get(),h.y.stop()),(a||(b=function(t){var e=!1;if("y"===t)e=ur();else if("x"===t)e=ar();else{var n=ar(),r=ur();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(u)))&&(m=null,y.dragging=!0,l&&l(t))}},[u,a,y]),P=W.useMemo(function(){return function(t,e){var n=e.offset;(a||b)&&("lockDirection"!==u||null!==m?(g("x",n),g("y",n)):null!==(r=n,o=null,10<Math.abs(r.y)?o="y":10<Math.abs(r.x)&&(o="x"),m=o)&&d&&d(m));var r,o}},[b,u,h]),x=W.useMemo(function(){return function(t,e){var r=e.velocity;if(!a&&b&&b(),f){var n=function(t){var e;if(nr(t,u,m)){var n=s?rr(t,s):{};o.start(((e={})[t]=0,e.transition=_({type:"inertia",velocity:r[t],bounceDamping:25},n),e))}};n("x"),n("y")}y.dragging=!1,p&&p(t)}},[b,y,u]),M={};u&&(M={onPanStart:w,onPan:P,onPanEnd:x}),$n(M,e)}var ar=er("dragHorizontal"),ur=er("dragVertical");var sr,cr;function fr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lr(t,e){return t(e={exports:{}},e.exports),e.exports}(cr=sr||(sr={})).Target="Target",cr.VariantLabel="VariantLabel",cr.AnimationSubscription="AnimationSubscription";var pr=lr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}});fr(pr),fr(lr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}}));var dr,hr,vr=lr(function(t){t.exports=pr}),mr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gr=vr(function(t){return mr.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),yr=function(e){return function(t){return e(t),null}},br=((dr={})[sr.Target]=yr(function(t){var o,e,i,n,r,a,u,s=t.animate,c=t.controls,f=t.values,l=t.transition,p=t.onAnimationComplete;return o=s,e=c,i=f,n=l,r=p,a=W.useRef(!0),u=W.useRef(o),void W.useEffect(function(){var t=Object.keys(u.current).reduce(function(t,e){var n=void 0!==o[e]&&u.current[e]!==o[e],r=a.current&&(!i.has(e)||i.has(e)&&i.get(e).get()!==o[e]);return(n||r)&&(t[e]=o[e]),t},{});a.current=!1,u.current=_({},u.current,o),Object.keys(t).length&&e.start(t,n).then(r)},[o])}),dr[sr.VariantLabel]=yr(function(t){var n,r,o,i,a,u,e=t.animate,s=t.inherit,c=void 0===s||s,f=t.controls,l=t.onAnimationComplete,p=t.initial;return n=c,r=f,o=p,i=l,a=Un(e),u=W.useRef(!1),void W.useEffect(function(){var t,e;n||((u.current||(t=Un(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),dr[sr.AnimationSubscription]=yr(function(t){var e,n,r,o=t.animate,i=t.controls;return e=o,n=i,r=W.useMemo(function(){return e.subscribe(n)},[e]),void W.useEffect(function(){return function(){return r&&r()}},[r])}),dr),wr=function(t){return t.animate instanceof Yn},Pr=((hr={})[sr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||wr(t));var e},hr[sr.VariantLabel]=function(t){return void 0!==t.variants},hr[sr.AnimationSubscription]=wr,hr),xr=["drag","onPan","onPanStart","onPanEnd","onTap","onPressStart","onPressEnd","hoverActive","pressActive"],Mr=yr(function(t){var e=t.innerRef,n=d(t,["innerRef"]);return tr(n,e)}),Or=yr(function(t){var e=t.innerRef,n=t.values,r=t.controls;return ir(d(t,["innerRef","values","controls"]),e,n,r)}),kr=new Set(["onTap","onAnimationComplete"]),Cr=function(t){var e,n,r=t.base,o=t.props,i=t.innerRef,a=t.style,u=t.handlers,s=t.values,c="string"==typeof r,f=c&&-1!==p.indexOf(r),l=c?function(t){var e={};for(var n in t)gr(n)&&!kr.has(n)&&(e[n]=t[n]);return e}(o):o;return W.createElement(r,_({},l,u,{ref:i,style:f?a:(e=s,n=a,_({},n,Pe(Xn(e))))}))},Sr=new Set([sr.AnimationSubscription,sr.VariantLabel]),Ar=Jn("hover"),Tr=function(z){return W.forwardRef(function(t,e){var n,r,o,i,a,u,s,c,f,l,p,d,h,v,m,g,y,b,w,P,x,M,O,k,C,S,A,T,E=(r=(n=e)&&"function"!=typeof n?n:W.useRef(null),W.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),V=(o=E,i=W.useMemo(function(){return new vn},[]),W.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),R=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof dn?t.set(r,o):le(r)?t.has(r)||t.set(r,hn(o)):n[r]=o}return n}(V,t.style),L=function(t){for(var e in sr)if(Pr[e](t))return e}(t),D=(u=L,s=(a=t).animate,!(void 0!==(c=a.inherit)&&!c||!(void 0===s||s instanceof Yn)||!u||!Sr.has(u))),j=(f=V,p=E,d=D,h=(l=t).variants,v=l.transition,m=W.useContext(q).controls,(g=W.useMemo(function(){return new Fn(f,p)},[])).resetChildren(),d&&m&&m.addChild(g),W.useEffect(function(){return function(){return m&&m.removeChild(g)}},[]),g.setProps(l),g.setVariants(h),g.setDefaultTransition(v),g),F=(y=j,b=t.initial,w=W.useContext(q),P=b||w.initial,(x=W.useMemo(function(){return{controls:y,initial:P}},[])).dragging=w.dragging,W.useMemo(function(){P&&y.apply(P)},[]),x),X=(M=L)?br[M]:void 0,Y=X&&W.createElement(X,_({},t,{inherit:D,innerRef:E,values:V,controls:j})),U=(O=t,xr.some(function(t){return O.hasOwnProperty(t)})&&W.createElement(Mr,_({},t,{values:V,controls:j,innerRef:E}))),B=!!t.drag&&W.createElement(Or,_({},t,{innerRef:E,controls:j,values:V})),I=(C=j,S=(k=t).hoverActive,A=k.onMouseEnter,T=k.onMouseLeave,W.useMemo(function(){return S?{onMouseEnter:function(t){A&&A(t),S&&C.start(S,{priority:Ar})},onMouseLeave:function(t){T&&T(t),S&&C.clearOverride(Ar)}}:{}},[S,A,T])),H=W.createElement(Cr,{base:z,props:t,handlers:I,innerRef:E,style:R,values:V});return W.createElement(q.Provider,{value:F},Y,U,B,H)})},Er=n.reduce(function(t,e){return t[e]=Tr(e),t},{custom:Tr}),Vr=hn(0),Rr=hn(0),Lr=hn(0),Dr=hn(0),jr=!1,Fr={scrollX:Vr,scrollY:Rr,scrollXProgress:Lr,scrollYProgress:Dr};t.motion=Er,t.useMotionValue=function(t){return W.useMemo(function(){return hn(t)},[])},t.useTransformedValue=function(e,n,r){var o=W.useRef(null);return W.useMemo(function(){o.current&&o.current.destroy();var t=Wt(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return jr||function(){if(jr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Vr.set(t),Rr.set(e);var n=document.body.clientWidth-window.innerWidth;Lr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;Dr.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),Fr},t.useAnimation=function(t,e){var n=W.useMemo(function(){return new Yn},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),W.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=Qn,t.usePanGesture=$n,t.useGestures=tr,t.useCycle=function(t,e){void 0===e&&(e=0);var n=t.length,r=W.useState(e),o=r[0],i=r[1];return[t[o],function(t){var e="number"!=typeof t?Zt(0,n,o+1):t;i(e)}]},Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -14,5 +14,5 @@ import { RefObject } from "react"; | ||
onTap?: TapHandler; | ||
onPressStart?: TapHandler; | ||
onPressEnd?: TapHandler; | ||
pressActive?: string | TargetAndTransition; | ||
onTapStart?: TapHandler; | ||
onTapCancel?: TapHandler; | ||
tapActive?: string | TargetAndTransition; | ||
} | ||
@@ -19,0 +19,0 @@ export interface Animation { |
{ | ||
"name": "framer-motion", | ||
"version": "0.0.19", | ||
"version": "0.1.0", | ||
"main": "dist/framer-motion.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/framer-motion.es.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
433433
9117