@lifesg/react-design-system 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.js +5 -5
- package/accordion/index.js.map +1 -1
- package/alert/index.js +23 -23
- package/alert/index.js.map +1 -1
- package/animations/index.d.ts +1 -0
- package/animations/index.js +3 -4
- package/animations/index.js.map +1 -1
- package/animations/loading-dots/loading-dots.d.ts +2 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -1
- package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -1
- package/animations/loading-spinner/loading-spinner.d.ts +2 -1
- package/animations/types.d.ts +10 -0
- package/box-container/index.js +18 -18
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +3 -3
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +2 -2
- package/button/index.js.map +1 -1
- package/calendar/index.js +57 -57
- package/calendar/index.js.map +1 -1
- package/card/index.js +1 -1
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +704 -238
- package/cjs/index.js.map +1 -1
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +1 -0
- package/date-input/index.js +5 -3
- package/date-input/index.js.map +1 -1
- package/design-token/index.js +6 -4
- package/design-token/index.js.map +1 -1
- package/design-token/types.d.ts +1 -0
- package/error-display/index.js +38 -38
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +118 -118
- package/feedback-rating/index.js.map +1 -1
- package/filter/addons/filter-item-checkbox.d.ts +3 -0
- package/filter/addons/filter-item-checkbox.styles.d.ts +12 -0
- package/filter/filter-context.d.ts +7 -0
- package/filter/filter-item-page.d.ts +3 -0
- package/filter/filter-item-page.styles.d.ts +1 -0
- package/filter/filter-item.d.ts +3 -0
- package/filter/filter-item.styles.d.ts +26 -0
- package/filter/filter.d.ts +7 -0
- package/filter/filter.styles.d.ts +17 -0
- package/filter/index.d.ts +2 -0
- package/filter/index.js +696 -0
- package/filter/index.js.map +1 -0
- package/filter/package.json +7 -0
- package/filter/types.d.ts +49 -0
- package/footer/index.js +5 -5
- package/footer/index.js.map +1 -1
- package/form/index.js +52 -50
- package/form/index.js.map +1 -1
- package/icon-button/index.js +1 -1
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +701 -235
- package/index.js.map +1 -1
- package/input/index.js +7 -5
- package/input/index.js.map +1 -1
- package/input-group/index.js +5 -3
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +8 -6
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +4 -2
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +1 -1
- package/link-list/index.js.map +1 -1
- package/modal/index.js +4 -4
- package/modal/index.js.map +1 -1
- package/navbar/brand.d.ts +5 -4
- package/navbar/brand.styles.d.ts +2 -0
- package/navbar/index.js +267 -129
- package/navbar/index.js.map +1 -1
- package/navbar/menu.d.ts +10 -0
- package/navbar/menu.styles.d.ts +5 -0
- package/navbar/navbar-items.styles.d.ts +7 -0
- package/navbar/navbar.styles.d.ts +4 -2
- package/navbar/types.d.ts +13 -5
- package/notification-banner/index.js +1 -1
- package/notification-banner/index.js.map +1 -1
- package/otp-input/index.js +8 -6
- package/otp-input/index.js.map +1 -1
- package/otp-input/otp-input.d.ts +1 -1
- package/otp-input/types.d.ts +5 -5
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +16 -14
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +2 -2
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +1 -1
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +4 -4
- package/radio-button/index.js.map +1 -1
- package/shared/toggle-icon/toggle-icon.d.ts +9 -0
- package/shared/toggle-icon/toggle-icon.styles.d.ts +6 -0
- package/smart-app-banner/index.js +6 -6
- package/smart-app-banner/index.js.map +1 -1
- package/text/index.js +2 -2
- package/text/index.js.map +1 -1
- package/text-list/index.js +1 -1
- package/text-list/index.js.map +1 -1
- package/timeline/index.js +19 -19
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +23 -21
- package/timepicker/index.js.map +1 -1
- package/toggle/index.d.ts +2 -0
- package/toggle/index.js +230 -0
- package/toggle/index.js.map +1 -0
- package/toggle/package.json +7 -0
- package/toggle/toggle.d.ts +3 -0
- package/toggle/toggle.styles.d.ts +18 -0
- package/toggle/types.d.ts +30 -0
- package/toggle-button/index.js +22 -22
- package/toggle-button/index.js.map +1 -1
- package/toggle-button/toggle-button.d.ts +3 -0
- package/tooltip/index.js +1 -1
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +10 -8
- package/unit-number/index.js.map +1 -1
package/accordion/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import i,{cloneElement as o,useRef as a,useState as s,isValidElement as l,createRef as u,PureComponent as c,useEffect as d,useLayoutEffect as h,forwardRef as p,useCallback as f,useContext as g,useMemo as m}from"react";import{findDOMNode as y,unstable_batchedUpdates as v}from"react-dom";import b,{css as w,keyframes as _}from"styled-components";var S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof F&&F&&F.Object===Object&&F,k="object"==typeof self&&self&&self.Object===Object&&self,C=O||k||Function("return this")(),H=C,P=function(){return H.Date.now()},z=/\s/;var B=function(e){for(var t=e.length;t--&&z.test(e.charAt(t)););return t},A=/^\s+/;var j=function(e){return e?e.slice(0,B(e)+1).replace(A,""):e},D=C.Symbol,E=D,I=Object.prototype,M=I.hasOwnProperty,R=I.toString,T=E?E.toStringTag:void 0;var V=function(e){var t=M.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var i=R.call(e);return r&&(t?e[T]=n:delete e[T]),i},N=Object.prototype.toString;var W=V,L=function(e){return N.call(e)},q=D?D.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?W(e):L(e)},Q=function(e){return null!=e&&"object"==typeof e};var G=j,X=x,Z=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==U(e)},Y=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,ee=parseInt;var te=x,ne=P,re=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=G(e);var n=J.test(e);return n||K.test(e)?ee(e.slice(2),n?2:8):Y.test(e)?NaN:+e},ie=Math.max,oe=Math.min;var ae=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function f(e){return u=e,s=setTimeout(m,t),c?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=ne();if(g(e))return y(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?oe(n,o-(e-u)):n}(e))}function y(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=ne(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=re(t)||0,te(n)&&(c=!!n.leading,o=(d="maxWait"in n)?ie(re(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(ne())},v},se=ae,le=x;var ue=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return le(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),se(e,t,{leading:r,maxWait:t,trailing:i})},ce=function(e,t,n,r){switch(t){case"debounce":return ae(e,n,r);case"throttle":return ue(e,n,r);default:return e}},de=function(e){return"function"==typeof e},he=function(){return"undefined"==typeof window},pe=function(e){return e instanceof Element||e instanceof HTMLDocument},fe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&de(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!he()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(he())return null;if(t)return document.querySelector(t);if(r&&pe(r))return r;if(n.targetRef&&pe(n.targetRef.current))return n.targetRef.current;var i=y(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=fe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!he()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return de(t)?"renderProp":de(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=u(),n.observableElement=null,he()||(n.resizeHandler=ce(n.createResizeHandler,i,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){he()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,u={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(e=i)(u);case"child":if((e=i).type&&"string"==typeof e.type){var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(u,["targetRef"]);return o(e,c)}return o(e,u);case"childArray":return(e=i).map((function(e){return!!e&&o(e,u)}));default:return r.createElement(s,null)}}}(c);var ge=he()?d:h;let me=Be();const ye=e=>Ce(e,me);let ve=Be();ye.write=e=>Ce(e,ve);let be=Be();ye.onStart=e=>Ce(e,be);let we=Be();ye.onFrame=e=>Ce(e,we);let _e=Be();ye.onFinish=e=>Ce(e,_e);let Se=[];ye.setTimeout=(e,t)=>{let n=ye.now()+t,r=()=>{let e=Se.findIndex((e=>e.cancel==r));~e&&Se.splice(e,1),Oe-=~e?1:0},i={time:n,handler:e,cancel:r};return Se.splice($e(n),0,i),Oe+=1,He(),i};let $e=e=>~(~Se.findIndex((t=>t.time>e))||~Se.length);ye.cancel=e=>{be.delete(e),we.delete(e),_e.delete(e),me.delete(e),ve.delete(e)},ye.sync=e=>{ke=!0,ye.batchedUpdates(e),ke=!1},ye.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ye.onStart(n)}return r.handler=e,r.cancel=()=>{be.delete(n),t=null},r};let Fe="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ye.use=e=>Fe=e,ye.now="undefined"!=typeof performance?()=>performance.now():Date.now,ye.batchedUpdates=e=>e(),ye.catch=console.error,ye.frameLoop="always",ye.advance=()=>{"demand"!==ye.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ze()};let xe=-1,Oe=0,ke=!1;function Ce(e,t){ke?(t.delete(e),e(0)):(t.add(e),He())}function He(){xe<0&&(xe=0,"demand"!==ye.frameLoop&&Fe(Pe))}function Pe(){~xe&&(Fe(Pe),ye.batchedUpdates(ze))}function ze(){let e=xe;xe=ye.now();let t=$e(xe);t&&(Ae(Se.splice(0,t),(e=>e.handler())),Oe-=t),Oe?(be.flush(),me.flush(e?Math.min(64,xe-e):16.667),we.flush(),ve.flush(),_e.flush()):xe=-1}function Be(){let e=new Set,t=e;return{add(n){Oe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Oe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Oe-=t.size,Ae(t,(t=>t(n)&&e.add(t))),Oe+=e.size,t=e)}}}function Ae(e,t){e.forEach((e=>{try{t(e)}catch(e){ye.catch(e)}}))}function je(){}const De={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Ee(e,t){if(De.arr(e)){if(!De.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Me(e,t,n){if(De.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Re=e=>De.und(e)?[]:De.arr(e)?e:[e];function Te(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const Ve=(e,...t)=>Te(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let We,Le,qe=null,Ue=!1,Qe=je;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return We},get to(){return Le},get colors(){return qe},get skipAnimation(){return Ue},get willAdvance(){return Qe},assign:e=>{e.to&&(Le=e.to),e.now&&(ye.now=e.now),void 0!==e.colors&&(qe=e.colors),null!=e.skipAnimation&&(Ue=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&ye.use(e.requestAnimationFrame),e.batchedUpdates&&(ye.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(ye.frameLoop=e.frameLoop)}});const Xe=new Set;let Ze=[],Ye=[],Je=0;const Ke={get idle(){return!Xe.size&&!Ze.length},start(e){Je>e.priority?(Xe.add(e),ye.onStart(et)):(tt(e),ye(rt))},advance:rt,sort(e){if(Je)ye.onFrame((()=>Ke.sort(e)));else{const t=Ze.indexOf(e);~t&&(Ze.splice(t,1),nt(e))}},clear(){Ze=[],Xe.clear()}};function et(){Xe.forEach(tt),Xe.clear(),ye(rt)}function tt(e){Ze.includes(e)||nt(e)}function nt(e){Ze.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ze,(t=>t.priority>e.priority)),0,e)}function rt(e){const t=Ye;for(let n=0;n<Ze.length;n++){const r=Ze[n];Je=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Je=0,Ye=Ze,Ye.length=0,Ze=t,Ze.length>0}const it="[-+]?\\d*\\.?\\d+";function ot(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const at=new RegExp("rgb"+ot(it,it,it)),st=new RegExp("rgba"+ot(it,it,it,it)),lt=new RegExp("hsl"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ut=new RegExp("hsla"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",it)),ct=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ht=/^#([0-9a-fA-F]{6})$/,pt=/^#([0-9a-fA-F]{8})$/;function ft(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ft(i,r,e+1/3),a=ft(i,r,e),s=ft(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function mt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yt(e){return(parseFloat(e)%360+360)%360/360}function vt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ht.exec(e))?parseInt(t[1]+"ff",16)>>>0:qe&&void 0!==qe[e]?qe[e]:(t=at.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|255)>>>0:(t=st.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|vt(t[4]))>>>0:(t=ct.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pt.exec(e))?parseInt(t[1],16)>>>0:(t=dt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lt.exec(e))?(255|gt(yt(t[1]),bt(t[2]),bt(t[3])))>>>0:(t=ut.exec(e))?(gt(yt(t[1]),bt(t[2]),bt(t[3]))|vt(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const _t=(e,t,n)=>{if(De.fun(e))return e;if(De.arr(e))return _t({range:e,output:t,extrapolate:n});if(De.str(e.output[0]))return We(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}const $t=Symbol.for("FluidValue.get"),Ft=Symbol.for("FluidValue.observers"),xt=e=>Boolean(e&&e[$t]),Ot=e=>e&&e[$t]?e[$t]():e,kt=e=>e[Ft]||null;function Ct(e,t){let n=e[Ft];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ht{constructor(e){if(this[$t]=void 0,this[Ft]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Pt(this,e)}}const Pt=(e,t)=>At(e,$t,t);function zt(e,t){if(e[$t]){let n=e[Ft];n||At(e,Ft,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[Ft];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ft]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const At=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Et=new RegExp(`(${jt.source})(%|[a-z]+)`,"i"),It=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rt=e=>{const[t,n]=Tt(e);if(!t||Ne())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Mt.test(n)?Rt(n):n||e},Tt=e=>{const t=Mt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Vt;const Nt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Wt=e=>{Vt||(Vt=qe?new RegExp(`(${Object.keys(qe).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ot(e).replace(Mt,Rt).replace(Dt,wt).replace(Vt,wt))),n=t.map((e=>e.match(jt).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>_t(St({},e,{output:t}))));return e=>{var n;const i=!Et.test(t[0])&&(null==(n=t.find((e=>Et.test(e))))?void 0:n.replace(jt,""));let o=0;return t[0].replace(jt,(()=>`${r[o++](e)}${i||""}`)).replace(It,Nt)}},Lt="react-spring: ",qt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Lt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ut=qt(console.warn);const Qt=qt(console.warn);function Gt(e){return De.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&Mt.test(e)||e in(qe||{}))}const Xt=Ne()?d:h;function Zt(){const e=s()[1],t=(()=>{const e=a(!1);return Xt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const Yt=e=>d(e,Jt),Jt=[];function Kt(e){const t=a();return d((()=>{t.current=e})),t.current}const en=Symbol.for("Animated:node"),tn=e=>e&&e[en],nn=(e,t)=>{return n=e,r=en,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},rn=e=>e&&e[en]&&e[en].getPayload();class on{constructor(){this.payload=void 0,nn(this,this)}getPayload(){return this.payload||[]}}class an extends on{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,De.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new an(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return De.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,De.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class sn extends an{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=_t({output:[e,e]})}static create(e){return new sn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(De.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=_t({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ln={dependencies:null};class un extends on{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Me(this.source,((n,r)=>{var i;(i=n)&&i[en]===i?t[r]=n.getValue(e):xt(n)?t[r]=Ot(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Me(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ln.dependencies&&xt(e)&&ln.dependencies.add(e);const t=rn(e);t&&Ie(t,(e=>this.add(e)))}}class cn extends un{constructor(e){super(e)}static create(e){return new cn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(dn)),!0)}}function dn(e){return(Gt(e)?sn:an).create(e)}function hn(e){const t=tn(e);return t?t.constructor:De.arr(e)?cn:Gt(e)?sn:an}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}const fn=(e,t)=>{const n=!De.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((i,o)=>{const s=a(null),l=n&&f((e=>{s.current=function(e,t){e&&(De.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,c]=function(e,t){const n=new Set;ln.dependencies=n,e.style&&(e=pn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new un(e),ln.dependencies=null,[e,n]}(i,t),h=Zt(),p=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},g=new gn(p,c),m=a();Xt((()=>(m.current=g,Ie(c,(e=>zt(e,g))),()=>{m.current&&(Ie(m.current.deps,(e=>Bt(e,m.current))),ye.cancel(m.current.update))}))),d(p,[]),Yt((()=>()=>{const e=m.current;Ie(e.deps,(t=>Bt(t,e)))}));const y=t.getComponentProps(u.getValue());return r.createElement(e,pn({},y,{ref:l}))}))};class gn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ye.write(this.update)}}const mn=Symbol.for("AnimatedComponent"),yn=e=>De.str(e)?e:e&&De.str(e.displayName)?e.displayName:De.fun(e)&&e.name||null;function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(this,arguments)}function bn(e,...t){return De.fun(e)?e(...t):e}const wn=(e,t)=>!0===e||!!(t&&e&&(De.fun(e)?e(t):Re(e).includes(t))),_n=(e,t)=>De.obj(e)?t&&e[t]:e,Sn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,$n=e=>e,Fn=(e,t=$n)=>{let n=xn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);De.und(n)||(r[i]=n)}return r},xn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],On={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function kn(e){const t=function(e){const t={};let n=0;if(Me(e,((e,r)=>{On[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Me(e,((e,r)=>r in t||(n[r]=e))),n}return vn({},e)}function Cn(e){return e=Ot(e),De.arr(e)?e.map(Cn):Gt(e)?Ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hn(e){for(const t in e)return!0;return!1}function Pn(e){return De.fun(e)||De.arr(e)&&De.obj(e[0])}function zn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const An=1.70158,jn=1.525*An,Dn=2*Math.PI/3,En=2*Math.PI/4.5,In=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Mn=vn({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-An*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+An*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-jn)/2:(Math.pow(2*e-2,2)*((jn+1)*(2*e-2)+jn)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Dn),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Dn)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*En)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*En)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2}.linear,clamp:!1});class Rn{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Mn)}}function Tn(e,t){if(De.und(t.decay)){const n=!De.und(t.tension)||!De.und(t.friction);!n&&De.und(t.frequency)&&De.und(t.damping)&&De.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Vn=[];class Nn{constructor(){this.changed=!1,this.values=Vn,this.toValues=null,this.fromValues=Vn,this.to=void 0,this.from=void 0,this.config=new Rn,this.immediate=!1}}function Wn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let u,c,d=wn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{De.und(n.pause)||(i.paused=wn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||wn(e,t)),u=bn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-ye.now()}function p(){u>0&&!Ge.skipAnimation?(i.delayed=!0,c=ye.setTimeout(f,u),i.pauseQueue.add(h),i.timeouts.add(c)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{o.start(vn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Ln=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qn(e.get()):t.every((e=>e.noop))?qn(e.get()):Un(e.get(),t.every((e=>e.finished))),qn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Un=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qn=e=>({value:e,cancelled:!0,finished:!1});function Gn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=Fn(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const h=new Promise(((e,t)=>(c=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Qn(r)||i!==n.asyncId&&Un(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Zn,a=new Yn;return(async()=>{if(Ge.skipAnimation)throw Xn(n),a.result=Un(r,!1),d(a),a;p(o);const s=De.obj(e)?vn({},e):vn({},t,{to:e});s.parentId=i,Me(u,((e,t)=>{De.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ge.skipAnimation)return Xn(n),Un(r,!1);try{let t;t=De.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(c),h]),g=Un(r.get(),!0,!1)}catch(e){if(e instanceof Zn)g=e.result;else{if(!(e instanceof Yn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return De.fun(a)&&ye.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Xn(e,t){Te(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Zn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Yn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Jn=e=>e instanceof er;let Kn=1;class er extends Ht{constructor(...e){super(...e),this.id=Kn++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=tn(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return Ut(`${Lt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ct(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),Ct(this,{type:"priority",parent:this,priority:e})}}const tr=Symbol.for("SpringPhase"),nr=e=>(1&e[tr])>0,rr=e=>(2&e[tr])>0,ir=e=>(4&e[tr])>0,or=(e,t)=>t?e[tr]|=3:e[tr]&=-3,ar=(e,t)=>t?e[tr]|=4:e[tr]&=-5;class sr extends er{constructor(e,t){if(super(),this.key=void 0,this.animation=new Nn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!De.und(e)||!De.und(t)){const n=De.obj(e)?vn({},e):vn({},t,{from:e});De.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(rr(this)||this._state.asyncTo)||ir(this)}get goal(){return Ot(this.animation.to)}get velocity(){const e=tn(this);return e instanceof an?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return nr(this)}get isAnimating(){return rr(this)}get isPaused(){return ir(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=rn(r.to);!a&&xt(r.to)&&(o=Re(Ot(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==sn?1:a?a[l].lastPosition:o[l];let c=r.immediate,d=u;if(!c){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=De.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(De.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!De.und(r),p=n==u?s.v0>0:n<u;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(c=Math.abs(u-d)<=h,!c));++e){l&&(g=d==u||d>u==p,g&&(a=-a*r,d=u));a+=(1e-6*-i.tension*(d-u)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(u-n),a=(d-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=tn(this),l=s.getValue();if(t){const e=Ot(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ye.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(rr(this)){const{to:e,config:t}=this.animation;ye.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return De.und(e)?(n=this.queue||[],this.queue=[]):n=[De.obj(e)?e:vn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Ln(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Xn(this._state,e&&this._lastCallId),ye.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=De.obj(n)?n[t]:n,(null==n||Pn(n))&&(n=void 0),r=De.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return nr(this)||(e.reverse&&([n,r]=[r,n]),r=Ot(r),De.und(r)?tn(this)||this._set(n):this._set(r)),i}_update(e,t){let n=vn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Fn(n,((e,t)=>/^on/.test(t)?_n(e,r):e))),fr(this,n,"onProps"),gr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Wn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{ir(this)||(ar(this,!0),Ve(a.pauseQueue),gr(this,"onPause",Un(this,lr(this,this.animation.to)),this))},resume:()=>{ir(this)&&(ar(this,!1),rr(this)&&this._resume(),Ve(a.resumeQueue),gr(this,"onResume",Un(this,lr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=ur(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qn(this));const r=!De.und(e.to),i=!De.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Qn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:d=u}=e;!i||r||t.default&&!De.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const h=!Ee(d,u);h&&(s.from=d),d=Ot(d);const p=!Ee(c,l);p&&this._focus(c);const f=Pn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Tn(n=vn({},n),t),t=vn({},n,t)),Tn(e,t),Object.assign(e,t);for(const t in Mn)null==e[t]&&(e[t]=Mn[t]);let{mass:r,frequency:i,damping:o}=e;De.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,bn(t.config,o),t.config!==a.config?bn(a.config,o):void 0);let v=tn(this);if(!v||De.und(c))return n(Un(this,!0));const b=De.und(t.reset)?i&&!t.default:!De.und(d)&&wn(t.reset,o),w=b?d:this.get(),_=Cn(c),S=De.num(_)||De.arr(_)||Gt(_),$=!f&&(!S||wn(a.immediate||t.immediate,o));if(p){const e=hn(c);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=xt(c),O=!1;if(!x){const e=b||!nr(this)&&h;(p||e)&&(O=Ee(Cn(w),_),x=!O),(Ee(s.immediate,$)||$)&&Ee(g.decay,m)&&Ee(g.velocity,y)||(x=!0)}if(O&&rr(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||xt(l))&&(s.values=v.getPayload(),s.toValues=xt(c)?null:F==sn?[1]:Re(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;Ie(pr,(e=>fr(this,t,e)));const r=Un(this,lr(this,l));Ve(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ye.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?bn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Gn(t.to,t,this._state,this)):x?this._start():rr(this)&&!p?this._pendingCalls.add(n):n(qn(w))}_focus(e){const t=this.animation;e!==t.to&&(kt(this)&&this._detach(),t.to=e,kt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;xt(t)&&(zt(t,this),Jn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xt(e)&&Bt(e,this)}_set(e,t=!0){const n=Ot(e);if(!De.und(n)){const e=tn(this);if(!e||!Ee(n,e.getValue())){const r=hn(n);e&&e.constructor==r?e.setValue(n):nn(this,r.create(n)),e&&ye.batchedUpdates((()=>{this._onChange(n,t)}))}}return tn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gr(this,"onStart",Un(this,lr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bn(this.animation.onChange,e,this)),bn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;tn(this).reset(Ot(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),rr(this)||(or(this,!0),ir(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(rr(this)){or(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ct(this,{type:"idle",parent:this});const r=t?Qn(this.get()):Un(this.get(),lr(this,null!=e?e:n.to));Ve(this._pendingCalls,r),n.changed&&(n.changed=!1,gr(this,"onRest",r,this))}}}function lr(e,t){const n=Cn(t);return Ee(Cn(e.get()),n)}function ur(e,t=e.loop,n=e.to){let r=bn(t);if(r){const i=!0!==r&&kn(r),o=(i||e).reverse,a=!i||i.reset;return cr(vn({},e,{loop:t,default:!1,pause:void 0,to:!o||Pn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function cr(e){const{to:t,from:n}=e=kn(e),r=new Set;return De.obj(t)&&hr(t,r),De.obj(n)&&hr(n,r),e.keys=r.size?Array.from(r):null,e}function dr(e){const t=cr(e);return De.und(t.default)&&(t.default=Fn(t)),t}function hr(e,t){Me(e,((e,n)=>null!=e&&t.add(n)))}const pr=["onStart","onRest","onChange","onPause","onResume"];function fr(e,t,n){e.animation[n]=t[n]!==Sn(t,n)?_n(t[n],e.key):void 0}function gr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const mr=["onStart","onChange","onRest"];let yr=1;class vr{constructor(e,t){this.id=yr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(vn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];De.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(cr(e)),this}start(e){let{queue:t}=this;return e?t=Re(e).map(cr):this.queue=[],this._flush?this._flush(this,t):(xr(this,t),br(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Re(t),(t=>n[t].stop(!!e)))}else Xn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(De.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Re(e),(e=>t[e].pause()))}return this}resume(e){if(De.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Re(e),(e=>t[e].resume()))}return this}each(e){Me(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Te(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Te(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Te(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ye.onFrame(this._onFrame)}}function br(e,t){return Promise.all(t.map((t=>wr(e,t)))).then((t=>Ln(e,t)))}async function wr(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=De.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const c=De.arr(i)||De.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ie(mr,(n=>{const r=t[n];if(De.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ve(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Sn(t,"cancel");(c||p&&d.asyncId)&&h.push(Wn(++e._lastAsyncId,{props:t,state:d,actions:{pause:je,resume:je,start(t,n){p?(Xn(d,e._lastAsyncId),n(Qn(e))):(t.onRest=s,n(Gn(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ln(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=ur(t,a,i);if(n)return xr(e,[n]),wr(e,n,!0)}return l&&ye.batchedUpdates((()=>l(f,e,e.item))),f}function _r(e,t){const n=vn({},e.springs);return t&&Ie(Re(t),(e=>{De.und(e.keys)&&(e=cr(e)),De.obj(e.to)||(e=vn({},e,{to:void 0})),Fr(n,e,(e=>$r(e)))})),Sr(e,n),n}function Sr(e,t){Me(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,zt(t,e))}))}function $r(e,t){const n=new sr;return n.key=e,t&&zt(n,t),n}function Fr(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function xr(e,t){Ie(t,(t=>{Fr(e.springs,t,(t=>$r(t,e)))}))}const Or=["children"],kr=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Or);const i=g(Cr),o=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=a(),i=r.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return d((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:l})),[o,l]);const{Provider:u}=Cr;return r.createElement(u,{value:n},t)},Cr=(Hr=kr,Pr={},Object.assign(Hr,r.createContext(Pr)),Hr.Provider._context=Hr,Hr.Consumer._context=Hr,Hr);var Hr,Pr;kr.Provider=Cr.Provider,kr.Consumer=Cr.Consumer;const zr=()=>{const e=[],t=function(t){Qt(`${Lt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(De.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(De.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return De.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=De.fun(t)&&t;r&&!n&&(n=[]);const i=m((()=>r||3==arguments.length?zr():void 0),[]),o=a(0),s=Zt(),l=m((()=>({ctrls:[],queue:[],flush(e,t){const n=_r(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?br(e,t):new Promise((r=>{Sr(e,n),l.queue.push((()=>{r(br(e,t))})),s()}))}})),[]),u=a([...l.ctrls]),c=[],d=Kt(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=u.current[i]||(u.current[i]=new vr(null,l.flush)),n=r?r(i,e):t[i];n&&(c[i]=dr(n))}}m((()=>{Ie(u.current.slice(e,d),(e=>{zn(e,i),e.stop(!0)})),u.current.length=e,h(d,e)}),[e]),m((()=>{h(0,Math.min(d,e))}),n);const p=u.current.map(((e,t)=>_r(e,c[t]))),f=g(kr),y=Kt(f),v=f!==y&&Hn(f);Xt((()=>{o.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(u.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:f});const n=c[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Yt((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>vn({},e)));return i?[b,i]:b}let Ar;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ar||(Ar={}));class jr extends er{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=_t(...t);const n=this._get(),r=hn(n);nn(this,r.create(n))}advance(e){const t=this._get();Ee(t,this.get())||(tn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Er(this._active)&&Ir(this)}_get(){const e=De.arr(this.source)?this.source.map(Ot):Re(Ot(this.source));return this.calc(...e)}_start(){this.idle&&!Er(this._active)&&(this.idle=!1,Ie(rn(this),(e=>{e.done=!1})),Ge.skipAnimation?(ye.batchedUpdates((()=>this.advance())),Ir(this)):Ke.start(this))}_attach(){let e=1;Ie(Re(this.source),(t=>{xt(t)&&zt(t,this),Jn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Re(this.source),(e=>{xt(e)&&Bt(e,this)})),this._active.clear(),Ir(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Re(this.source).reduce(((e,t)=>Math.max(e,(Jn(t)?t.priority:0)+1)),0))}}function Dr(e){return!1!==e.idle}function Er(e){return!e.size||Array.from(e).every(Dr)}function Ir(e){e.idle||(e.idle=!0,Ie(rn(e),(e=>{e.done=!0})),Ct(e,{type:"idle",parent:e}))}function Mr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ge.assign({createStringInterpolator:Wt,to:(e,t)=>new jr(e,t)});const Rr=["style","children","scrollTop","scrollLeft"],Tr=/^--/;function Vr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Tr.test(e)||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}const Nr={};let Wr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Lr=["Webkit","Ms","Moz","O"];Wr=Object.keys(Wr).reduce(((e,t)=>(Lr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Wr);const qr=["x","y","z"],Ur=/^(matrix|translate|scale|rotate|skew)/,Qr=/^(translate)/,Gr=/^(rotate|skew)/,Xr=(e,t)=>De.num(e)&&0!==e?e+t:e,Zr=(e,t)=>De.arr(e)?e.every((e=>Zr(e,t))):De.num(e)?e===t:parseFloat(e)===t;class Yr extends un{constructor(e){let{x:t,y:n,z:r}=e,i=Mr(e,qr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Xr(e,"px"))).join(",")})`,Zr(e,0)]))),Me(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Ur.test(t)){if(delete i[t],De.und(e))return;const n=Qr.test(t)?"px":Gr.test(t)?"deg":"";o.push(Re(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Xr(i,n)})`,Zr(i,0)]:e=>[`${t}(${e.map((e=>Xr(e,n))).join(",")})`,Zr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Jr(o,a)),super(i)}}class Jr extends Ht{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=Ot(n[0]),[o,a]=this.transforms[r](De.arr(i)?i:n.map(Ot));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&zt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ct(this,e)}}const Kr=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:v,createStringInterpolator:Wt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ei=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new un(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=yn(e)||"Anonymous";return(e=De.str(e)?o[e]||(o[e]=fn(e,i)):e[mn]||(e[mn]=fn(e,i))).displayName=`Animated(${t})`,e};return Me(e,((t,n)=>{De.arr(e)&&(n=yn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Mr(r,Rr),u=Object.values(l),c=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Nr[t]||(Nr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Vr(t,i[t]);Tr.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new Yr(e),getComponentProps:e=>Mr(e,Kr)}),ti=ei.animated,ni=i.createContext(!1);var ri,ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},oi={};Object.defineProperty(oi,"__esModule",{value:!0});var ai=e;const si=e=>ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ai.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});si.displayName="ChevronUpIcon",ri=oi.ChevronUpIcon=si;var li=Array.isArray,ui="object"==typeof ii&&ii&&ii.Object===Object&&ii,ci="object"==typeof self&&self&&self.Object===Object&&self,di=ui||ci||Function("return this")(),hi=di.Symbol,pi=hi,fi=Object.prototype,gi=fi.hasOwnProperty,mi=fi.toString,yi=pi?pi.toStringTag:void 0;var vi=function(e){var t=gi.call(e,yi),n=e[yi];try{e[yi]=void 0;var r=!0}catch(e){}var i=mi.call(e);return r&&(t?e[yi]=n:delete e[yi]),i},bi=Object.prototype.toString;var wi=vi,_i=function(e){return bi.call(e)},Si=hi?hi.toStringTag:void 0;var $i=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Si&&Si in Object(e)?wi(e):_i(e)};var Fi=$i,xi=function(e){return null!=e&&"object"==typeof e};var Oi=function(e){return"symbol"==typeof e||xi(e)&&"[object Symbol]"==Fi(e)},ki=li,Ci=Oi,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;var zi=function(e,t){if(ki(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(Pi.test(e)||!Hi.test(e)||null!=t&&e in Object(t))};var Bi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ai=$i,ji=Bi;var Di,Ei=function(e){if(!ji(e))return!1;var t=Ai(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ii=di["__core-js_shared__"],Mi=(Di=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+Di:"";var Ri=function(e){return!!Mi&&Mi in e},Ti=Function.prototype.toString;var Vi=Ei,Ni=Ri,Wi=Bi,Li=function(e){if(null!=e){try{return Ti.call(e)}catch(e){}try{return e+""}catch(e){}}return""},qi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Qi=Object.prototype,Gi=Ui.toString,Xi=Qi.hasOwnProperty,Zi=RegExp("^"+Gi.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Yi=function(e){return!(!Wi(e)||Ni(e))&&(Vi(e)?Zi:qi).test(Li(e))},Ji=function(e,t){return null==e?void 0:e[t]};var Ki=function(e,t){var n=Ji(e,t);return Yi(n)?n:void 0},eo=Ki(Object,"create"),to=eo;var no=function(){this.__data__=to?to(null):{},this.size=0};var ro=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},io=eo,oo=Object.prototype.hasOwnProperty;var ao=function(e){var t=this.__data__;if(io){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return oo.call(t,e)?t[e]:void 0},so=eo,lo=Object.prototype.hasOwnProperty;var uo=eo;var co=no,ho=ro,po=ao,fo=function(e){var t=this.__data__;return so?void 0!==t[e]:lo.call(t,e)},go=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uo&&void 0===t?"__lodash_hash_undefined__":t,this};function mo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mo.prototype.clear=co,mo.prototype.delete=ho,mo.prototype.get=po,mo.prototype.has=fo,mo.prototype.set=go;var yo=mo;var vo=function(){this.__data__=[],this.size=0};var bo=function(e,t){return e===t||e!=e&&t!=t};var wo=function(e,t){for(var n=e.length;n--;)if(bo(e[n][0],t))return n;return-1},_o=wo,So=Array.prototype.splice;var $o=wo;var Fo=wo;var xo=wo;var Oo=vo,ko=function(e){var t=this.__data__,n=_o(t,e);return!(n<0)&&(n==t.length-1?t.pop():So.call(t,n,1),--this.size,!0)},Co=function(e){var t=this.__data__,n=$o(t,e);return n<0?void 0:t[n][1]},Ho=function(e){return Fo(this.__data__,e)>-1},Po=function(e,t){var n=this.__data__,r=xo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function zo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zo.prototype.clear=Oo,zo.prototype.delete=ko,zo.prototype.get=Co,zo.prototype.has=Ho,zo.prototype.set=Po;var Bo=zo,Ao=Ki(di,"Map"),jo=yo,Do=Bo,Eo=Ao;var Io=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mo=function(e,t){var n=e.__data__;return Io(t)?n["string"==typeof t?"string":"hash"]:n.map},Ro=Mo;var To=Mo;var Vo=Mo;var No=Mo;var Wo=function(){this.size=0,this.__data__={hash:new jo,map:new(Eo||Do),string:new jo}},Lo=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},qo=function(e){return To(this,e).get(e)},Uo=function(e){return Vo(this,e).has(e)},Qo=function(e,t){var n=No(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Go(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Go.prototype.clear=Wo,Go.prototype.delete=Lo,Go.prototype.get=qo,Go.prototype.has=Uo,Go.prototype.set=Qo;var Xo=Go;function Zo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Zo.Cache||Xo),n}Zo.Cache=Xo;var Yo=Zo;var Jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ko=/\\(\\)?/g,ea=function(e){var t=Yo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Jo,(function(e,n,r,i){t.push(r?i.replace(Ko,"$1"):n||e)})),t}));var ta=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},na=li,ra=Oi,ia=hi?hi.prototype:void 0,oa=ia?ia.toString:void 0;var aa=function e(t){if("string"==typeof t)return t;if(na(t))return ta(t,e)+"";if(ra(t))return oa?oa.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},sa=aa;var la=li,ua=zi,ca=ea,da=function(e){return null==e?"":sa(e)};var ha=Oi;var pa=function(e,t){return la(e)?e:ua(e,t)?[e]:ca(da(e))},fa=function(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ga=function(e,t){for(var n=0,r=(t=pa(t,e)).length;null!=e&&n<r;)e=e[fa(t[n++])];return n&&n==r?e:void 0};var ma=function(e,t,n){var r=null==e?void 0:ga(e,t);return void 0===r?n:r};const ya=(e,t,n)=>t?ma(n,t)||ma(e,t):n||e,va=(e,t)=>{const n=t||e.defaultValue;return ma(e.collections,n)};var ba;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(ba||(ba={}));const wa={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},_a=e=>t=>{const n=t.theme,r=va(wa,n[ba.colorScheme]);return n.options&&n.options.color?ya(r,e,n.options.color):ya(r,e)},Sa={Brand:{1:_a("Brand.1"),2:_a("Brand.2"),3:_a("Brand.3"),4:_a("Brand.4"),5:_a("Brand.5"),6:_a("Brand.6")},Primary:_a("Primary"),PrimaryDark:_a("PrimaryDark"),Secondary:_a("Secondary"),Accent:{Light:{1:_a("Accent.Light.1"),2:_a("Accent.Light.2"),3:_a("Accent.Light.3"),4:_a("Accent.Light.4"),5:_a("Accent.Light.5"),6:_a("Accent.Light.6")},Dark:{1:_a("Accent.Dark.1"),2:_a("Accent.Dark.2"),3:_a("Accent.Dark.3")}},Neutral:{1:_a("Neutral.1"),2:_a("Neutral.2"),3:_a("Neutral.3"),4:_a("Neutral.4"),5:_a("Neutral.5"),6:_a("Neutral.6"),7:_a("Neutral.7"),8:_a("Neutral.8")},Validation:{Green:{Text:_a("Validation.Green.Text"),Icon:_a("Validation.Green.Icon"),Border:_a("Validation.Green.Border"),Background:_a("Validation.Green.Background")},Orange:{Text:_a("Validation.Orange.Text"),Icon:_a("Validation.Orange.Icon"),Border:_a("Validation.Orange.Border"),Background:_a("Validation.Orange.Background"),Badge:_a("Validation.Orange.Badge")},Red:{Text:_a("Validation.Red.Text"),Icon:_a("Validation.Red.Icon"),Border:_a("Validation.Red.Border"),Background:_a("Validation.Red.Background")}},Shadow:{Accent:_a("Shadow.Accent"),Red:_a("Shadow.Red")}},$a=b.button`
|
|
1
|
+
import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import i,{cloneElement as o,useRef as a,useState as s,isValidElement as l,createRef as c,PureComponent as u,useEffect as d,useLayoutEffect as h,forwardRef as p,useCallback as f,useContext as g,useMemo as m}from"react";import{findDOMNode as y,unstable_batchedUpdates as v}from"react-dom";import b,{css as w,keyframes as _}from"styled-components";var S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof F&&F&&F.Object===Object&&F,k="object"==typeof self&&self&&self.Object===Object&&self,C=O||k||Function("return this")(),H=C,P=function(){return H.Date.now()},z=/\s/;var B=function(e){for(var t=e.length;t--&&z.test(e.charAt(t)););return t},A=/^\s+/;var j=function(e){return e?e.slice(0,B(e)+1).replace(A,""):e},D=C.Symbol,E=D,I=Object.prototype,M=I.hasOwnProperty,R=I.toString,T=E?E.toStringTag:void 0;var V=function(e){var t=M.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var i=R.call(e);return r&&(t?e[T]=n:delete e[T]),i},N=Object.prototype.toString;var W=V,L=function(e){return N.call(e)},q=D?D.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?W(e):L(e)},Q=function(e){return null!=e&&"object"==typeof e};var G=j,X=x,Z=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==U(e)},Y=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,ee=parseInt;var te=x,ne=P,re=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=G(e);var n=J.test(e);return n||K.test(e)?ee(e.slice(2),n?2:8):Y.test(e)?NaN:+e},ie=Math.max,oe=Math.min;var ae=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){return c=e,s=setTimeout(m,t),u?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=ne();if(g(e))return y(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?oe(n,o-(e-c)):n}(e))}function y(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=ne(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=re(t)||0,te(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ie(re(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(ne())},v},se=ae,le=x;var ce=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return le(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),se(e,t,{leading:r,maxWait:t,trailing:i})},ue=function(e,t,n,r){switch(t){case"debounce":return ae(e,n,r);case"throttle":return ce(e,n,r);default:return e}},de=function(e){return"function"==typeof e},he=function(){return"undefined"==typeof window},pe=function(e){return e instanceof Element||e instanceof HTMLDocument},fe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&de(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!he()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(he())return null;if(t)return document.querySelector(t);if(r&&pe(r))return r;if(n.targetRef&&pe(n.targetRef.current))return n.targetRef.current;var i=y(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=fe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!he()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return de(t)?"renderProp":de(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=c(),n.observableElement=null,he()||(n.resizeHandler=ue(n.createResizeHandler,i,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){he()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,c={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(c);case"childFunction":return(e=i)(c);case"child":if((e=i).type&&"string"==typeof e.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(c,["targetRef"]);return o(e,u)}return o(e,c);case"childArray":return(e=i).map((function(e){return!!e&&o(e,c)}));default:return r.createElement(s,null)}}}(u);var ge=he()?d:h;let me=Be();const ye=e=>Ce(e,me);let ve=Be();ye.write=e=>Ce(e,ve);let be=Be();ye.onStart=e=>Ce(e,be);let we=Be();ye.onFrame=e=>Ce(e,we);let _e=Be();ye.onFinish=e=>Ce(e,_e);let Se=[];ye.setTimeout=(e,t)=>{let n=ye.now()+t,r=()=>{let e=Se.findIndex((e=>e.cancel==r));~e&&Se.splice(e,1),Oe-=~e?1:0},i={time:n,handler:e,cancel:r};return Se.splice($e(n),0,i),Oe+=1,He(),i};let $e=e=>~(~Se.findIndex((t=>t.time>e))||~Se.length);ye.cancel=e=>{be.delete(e),we.delete(e),_e.delete(e),me.delete(e),ve.delete(e)},ye.sync=e=>{ke=!0,ye.batchedUpdates(e),ke=!1},ye.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ye.onStart(n)}return r.handler=e,r.cancel=()=>{be.delete(n),t=null},r};let Fe="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ye.use=e=>Fe=e,ye.now="undefined"!=typeof performance?()=>performance.now():Date.now,ye.batchedUpdates=e=>e(),ye.catch=console.error,ye.frameLoop="always",ye.advance=()=>{"demand"!==ye.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ze()};let xe=-1,Oe=0,ke=!1;function Ce(e,t){ke?(t.delete(e),e(0)):(t.add(e),He())}function He(){xe<0&&(xe=0,"demand"!==ye.frameLoop&&Fe(Pe))}function Pe(){~xe&&(Fe(Pe),ye.batchedUpdates(ze))}function ze(){let e=xe;xe=ye.now();let t=$e(xe);t&&(Ae(Se.splice(0,t),(e=>e.handler())),Oe-=t),Oe?(be.flush(),me.flush(e?Math.min(64,xe-e):16.667),we.flush(),ve.flush(),_e.flush()):xe=-1}function Be(){let e=new Set,t=e;return{add(n){Oe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Oe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Oe-=t.size,Ae(t,(t=>t(n)&&e.add(t))),Oe+=e.size,t=e)}}}function Ae(e,t){e.forEach((e=>{try{t(e)}catch(e){ye.catch(e)}}))}function je(){}const De={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Ee(e,t){if(De.arr(e)){if(!De.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Me(e,t,n){if(De.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Re=e=>De.und(e)?[]:De.arr(e)?e:[e];function Te(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const Ve=(e,...t)=>Te(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let We,Le,qe=null,Ue=!1,Qe=je;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return We},get to(){return Le},get colors(){return qe},get skipAnimation(){return Ue},get willAdvance(){return Qe},assign:e=>{e.to&&(Le=e.to),e.now&&(ye.now=e.now),void 0!==e.colors&&(qe=e.colors),null!=e.skipAnimation&&(Ue=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&ye.use(e.requestAnimationFrame),e.batchedUpdates&&(ye.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(ye.frameLoop=e.frameLoop)}});const Xe=new Set;let Ze=[],Ye=[],Je=0;const Ke={get idle(){return!Xe.size&&!Ze.length},start(e){Je>e.priority?(Xe.add(e),ye.onStart(et)):(tt(e),ye(rt))},advance:rt,sort(e){if(Je)ye.onFrame((()=>Ke.sort(e)));else{const t=Ze.indexOf(e);~t&&(Ze.splice(t,1),nt(e))}},clear(){Ze=[],Xe.clear()}};function et(){Xe.forEach(tt),Xe.clear(),ye(rt)}function tt(e){Ze.includes(e)||nt(e)}function nt(e){Ze.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ze,(t=>t.priority>e.priority)),0,e)}function rt(e){const t=Ye;for(let n=0;n<Ze.length;n++){const r=Ze[n];Je=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Je=0,Ye=Ze,Ye.length=0,Ze=t,Ze.length>0}const it="[-+]?\\d*\\.?\\d+";function ot(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const at=new RegExp("rgb"+ot(it,it,it)),st=new RegExp("rgba"+ot(it,it,it,it)),lt=new RegExp("hsl"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ct=new RegExp("hsla"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",it)),ut=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ht=/^#([0-9a-fA-F]{6})$/,pt=/^#([0-9a-fA-F]{8})$/;function ft(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ft(i,r,e+1/3),a=ft(i,r,e),s=ft(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function mt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yt(e){return(parseFloat(e)%360+360)%360/360}function vt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ht.exec(e))?parseInt(t[1]+"ff",16)>>>0:qe&&void 0!==qe[e]?qe[e]:(t=at.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|255)>>>0:(t=st.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|vt(t[4]))>>>0:(t=ut.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pt.exec(e))?parseInt(t[1],16)>>>0:(t=dt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lt.exec(e))?(255|gt(yt(t[1]),bt(t[2]),bt(t[3])))>>>0:(t=ct.exec(e))?(gt(yt(t[1]),bt(t[2]),bt(t[3]))|vt(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const _t=(e,t,n)=>{if(De.fun(e))return e;if(De.arr(e))return _t({range:e,output:t,extrapolate:n});if(De.str(e.output[0]))return We(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}const $t=Symbol.for("FluidValue.get"),Ft=Symbol.for("FluidValue.observers"),xt=e=>Boolean(e&&e[$t]),Ot=e=>e&&e[$t]?e[$t]():e,kt=e=>e[Ft]||null;function Ct(e,t){let n=e[Ft];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ht{constructor(e){if(this[$t]=void 0,this[Ft]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Pt(this,e)}}const Pt=(e,t)=>At(e,$t,t);function zt(e,t){if(e[$t]){let n=e[Ft];n||At(e,Ft,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[Ft];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ft]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const At=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Et=new RegExp(`(${jt.source})(%|[a-z]+)`,"i"),It=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rt=e=>{const[t,n]=Tt(e);if(!t||Ne())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Mt.test(n)?Rt(n):n||e},Tt=e=>{const t=Mt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Vt;const Nt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Wt=e=>{Vt||(Vt=qe?new RegExp(`(${Object.keys(qe).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ot(e).replace(Mt,Rt).replace(Dt,wt).replace(Vt,wt))),n=t.map((e=>e.match(jt).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>_t(St({},e,{output:t}))));return e=>{var n;const i=!Et.test(t[0])&&(null==(n=t.find((e=>Et.test(e))))?void 0:n.replace(jt,""));let o=0;return t[0].replace(jt,(()=>`${r[o++](e)}${i||""}`)).replace(It,Nt)}},Lt="react-spring: ",qt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Lt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ut=qt(console.warn);const Qt=qt(console.warn);function Gt(e){return De.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&Mt.test(e)||e in(qe||{}))}const Xt=Ne()?d:h;function Zt(){const e=s()[1],t=(()=>{const e=a(!1);return Xt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const Yt=e=>d(e,Jt),Jt=[];function Kt(e){const t=a();return d((()=>{t.current=e})),t.current}const en=Symbol.for("Animated:node"),tn=e=>e&&e[en],nn=(e,t)=>{return n=e,r=en,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},rn=e=>e&&e[en]&&e[en].getPayload();class on{constructor(){this.payload=void 0,nn(this,this)}getPayload(){return this.payload||[]}}class an extends on{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,De.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new an(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return De.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,De.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class sn extends an{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=_t({output:[e,e]})}static create(e){return new sn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(De.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=_t({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ln={dependencies:null};class cn extends on{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Me(this.source,((n,r)=>{var i;(i=n)&&i[en]===i?t[r]=n.getValue(e):xt(n)?t[r]=Ot(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Me(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ln.dependencies&&xt(e)&&ln.dependencies.add(e);const t=rn(e);t&&Ie(t,(e=>this.add(e)))}}class un extends cn{constructor(e){super(e)}static create(e){return new un(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(dn)),!0)}}function dn(e){return(Gt(e)?sn:an).create(e)}function hn(e){const t=tn(e);return t?t.constructor:De.arr(e)?un:Gt(e)?sn:an}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}const fn=(e,t)=>{const n=!De.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((i,o)=>{const s=a(null),l=n&&f((e=>{s.current=function(e,t){e&&(De.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[c,u]=function(e,t){const n=new Set;ln.dependencies=n,e.style&&(e=pn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new cn(e),ln.dependencies=null,[e,n]}(i,t),h=Zt(),p=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&h()},g=new gn(p,u),m=a();Xt((()=>(m.current=g,Ie(u,(e=>zt(e,g))),()=>{m.current&&(Ie(m.current.deps,(e=>Bt(e,m.current))),ye.cancel(m.current.update))}))),d(p,[]),Yt((()=>()=>{const e=m.current;Ie(e.deps,(t=>Bt(t,e)))}));const y=t.getComponentProps(c.getValue());return r.createElement(e,pn({},y,{ref:l}))}))};class gn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ye.write(this.update)}}const mn=Symbol.for("AnimatedComponent"),yn=e=>De.str(e)?e:e&&De.str(e.displayName)?e.displayName:De.fun(e)&&e.name||null;function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(this,arguments)}function bn(e,...t){return De.fun(e)?e(...t):e}const wn=(e,t)=>!0===e||!!(t&&e&&(De.fun(e)?e(t):Re(e).includes(t))),_n=(e,t)=>De.obj(e)?t&&e[t]:e,Sn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,$n=e=>e,Fn=(e,t=$n)=>{let n=xn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);De.und(n)||(r[i]=n)}return r},xn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],On={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function kn(e){const t=function(e){const t={};let n=0;if(Me(e,((e,r)=>{On[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Me(e,((e,r)=>r in t||(n[r]=e))),n}return vn({},e)}function Cn(e){return e=Ot(e),De.arr(e)?e.map(Cn):Gt(e)?Ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hn(e){for(const t in e)return!0;return!1}function Pn(e){return De.fun(e)||De.arr(e)&&De.obj(e[0])}function zn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const An=1.70158,jn=1.525*An,Dn=2*Math.PI/3,En=2*Math.PI/4.5,In=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Mn=vn({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-An*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+An*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-jn)/2:(Math.pow(2*e-2,2)*((jn+1)*(2*e-2)+jn)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Dn),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Dn)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*En)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*En)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2}.linear,clamp:!1});class Rn{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Mn)}}function Tn(e,t){if(De.und(t.decay)){const n=!De.und(t.tension)||!De.und(t.friction);!n&&De.und(t.frequency)&&De.und(t.damping)&&De.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Vn=[];class Nn{constructor(){this.changed=!1,this.values=Vn,this.toValues=null,this.fromValues=Vn,this.to=void 0,this.from=void 0,this.config=new Rn,this.immediate=!1}}function Wn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=wn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{De.und(n.pause)||(i.paused=wn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||wn(e,t)),c=bn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-ye.now()}function p(){c>0&&!Ge.skipAnimation?(i.delayed=!0,u=ye.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(vn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Ln=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qn(e.get()):t.every((e=>e.noop))?qn(e.get()):Un(e.get(),t.every((e=>e.finished))),qn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Un=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qn=e=>({value:e,cancelled:!0,finished:!1});function Gn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Fn(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Qn(r)||i!==n.asyncId&&Un(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Zn,a=new Yn;return(async()=>{if(Ge.skipAnimation)throw Xn(n),a.result=Un(r,!1),d(a),a;p(o);const s=De.obj(e)?vn({},e):vn({},t,{to:e});s.parentId=i,Me(c,((e,t)=>{De.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ge.skipAnimation)return Xn(n),Un(r,!1);try{let t;t=De.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),g=Un(r.get(),!0,!1)}catch(e){if(e instanceof Zn)g=e.result;else{if(!(e instanceof Yn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return De.fun(a)&&ye.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Xn(e,t){Te(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Zn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Yn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Jn=e=>e instanceof er;let Kn=1;class er extends Ht{constructor(...e){super(...e),this.id=Kn++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=tn(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return Ut(`${Lt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ct(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),Ct(this,{type:"priority",parent:this,priority:e})}}const tr=Symbol.for("SpringPhase"),nr=e=>(1&e[tr])>0,rr=e=>(2&e[tr])>0,ir=e=>(4&e[tr])>0,or=(e,t)=>t?e[tr]|=3:e[tr]&=-3,ar=(e,t)=>t?e[tr]|=4:e[tr]&=-5;class sr extends er{constructor(e,t){if(super(),this.key=void 0,this.animation=new Nn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!De.und(e)||!De.und(t)){const n=De.obj(e)?vn({},e):vn({},t,{from:e});De.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(rr(this)||this._state.asyncTo)||ir(this)}get goal(){return Ot(this.animation.to)}get velocity(){const e=tn(this);return e instanceof an?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return nr(this)}get isAnimating(){return rr(this)}get isPaused(){return ir(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=rn(r.to);!a&&xt(r.to)&&(o=Re(Ot(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==sn?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=De.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(De.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!De.und(r),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=tn(this),l=s.getValue();if(t){const e=Ot(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ye.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(rr(this)){const{to:e,config:t}=this.animation;ye.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return De.und(e)?(n=this.queue||[],this.queue=[]):n=[De.obj(e)?e:vn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Ln(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Xn(this._state,e&&this._lastCallId),ye.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=De.obj(n)?n[t]:n,(null==n||Pn(n))&&(n=void 0),r=De.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return nr(this)||(e.reverse&&([n,r]=[r,n]),r=Ot(r),De.und(r)?tn(this)||this._set(n):this._set(r)),i}_update(e,t){let n=vn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Fn(n,((e,t)=>/^on/.test(t)?_n(e,r):e))),fr(this,n,"onProps"),gr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Wn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{ir(this)||(ar(this,!0),Ve(a.pauseQueue),gr(this,"onPause",Un(this,lr(this,this.animation.to)),this))},resume:()=>{ir(this)&&(ar(this,!1),rr(this)&&this._resume(),Ve(a.resumeQueue),gr(this,"onResume",Un(this,lr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=cr(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qn(this));const r=!De.und(e.to),i=!De.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Qn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!De.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Ee(d,c);h&&(s.from=d),d=Ot(d);const p=!Ee(u,l);p&&this._focus(u);const f=Pn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Tn(n=vn({},n),t),t=vn({},n,t)),Tn(e,t),Object.assign(e,t);for(const t in Mn)null==e[t]&&(e[t]=Mn[t]);let{mass:r,frequency:i,damping:o}=e;De.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,bn(t.config,o),t.config!==a.config?bn(a.config,o):void 0);let v=tn(this);if(!v||De.und(u))return n(Un(this,!0));const b=De.und(t.reset)?i&&!t.default:!De.und(d)&&wn(t.reset,o),w=b?d:this.get(),_=Cn(u),S=De.num(_)||De.arr(_)||Gt(_),$=!f&&(!S||wn(a.immediate||t.immediate,o));if(p){const e=hn(u);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=xt(u),O=!1;if(!x){const e=b||!nr(this)&&h;(p||e)&&(O=Ee(Cn(w),_),x=!O),(Ee(s.immediate,$)||$)&&Ee(g.decay,m)&&Ee(g.velocity,y)||(x=!0)}if(O&&rr(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||xt(l))&&(s.values=v.getPayload(),s.toValues=xt(u)?null:F==sn?[1]:Re(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;Ie(pr,(e=>fr(this,t,e)));const r=Un(this,lr(this,l));Ve(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ye.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?bn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Gn(t.to,t,this._state,this)):x?this._start():rr(this)&&!p?this._pendingCalls.add(n):n(qn(w))}_focus(e){const t=this.animation;e!==t.to&&(kt(this)&&this._detach(),t.to=e,kt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;xt(t)&&(zt(t,this),Jn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xt(e)&&Bt(e,this)}_set(e,t=!0){const n=Ot(e);if(!De.und(n)){const e=tn(this);if(!e||!Ee(n,e.getValue())){const r=hn(n);e&&e.constructor==r?e.setValue(n):nn(this,r.create(n)),e&&ye.batchedUpdates((()=>{this._onChange(n,t)}))}}return tn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gr(this,"onStart",Un(this,lr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bn(this.animation.onChange,e,this)),bn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;tn(this).reset(Ot(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),rr(this)||(or(this,!0),ir(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(rr(this)){or(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ct(this,{type:"idle",parent:this});const r=t?Qn(this.get()):Un(this.get(),lr(this,null!=e?e:n.to));Ve(this._pendingCalls,r),n.changed&&(n.changed=!1,gr(this,"onRest",r,this))}}}function lr(e,t){const n=Cn(t);return Ee(Cn(e.get()),n)}function cr(e,t=e.loop,n=e.to){let r=bn(t);if(r){const i=!0!==r&&kn(r),o=(i||e).reverse,a=!i||i.reset;return ur(vn({},e,{loop:t,default:!1,pause:void 0,to:!o||Pn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function ur(e){const{to:t,from:n}=e=kn(e),r=new Set;return De.obj(t)&&hr(t,r),De.obj(n)&&hr(n,r),e.keys=r.size?Array.from(r):null,e}function dr(e){const t=ur(e);return De.und(t.default)&&(t.default=Fn(t)),t}function hr(e,t){Me(e,((e,n)=>null!=e&&t.add(n)))}const pr=["onStart","onRest","onChange","onPause","onResume"];function fr(e,t,n){e.animation[n]=t[n]!==Sn(t,n)?_n(t[n],e.key):void 0}function gr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const mr=["onStart","onChange","onRest"];let yr=1;class vr{constructor(e,t){this.id=yr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(vn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];De.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ur(e)),this}start(e){let{queue:t}=this;return e?t=Re(e).map(ur):this.queue=[],this._flush?this._flush(this,t):(xr(this,t),br(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Re(t),(t=>n[t].stop(!!e)))}else Xn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(De.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Re(e),(e=>t[e].pause()))}return this}resume(e){if(De.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Re(e),(e=>t[e].resume()))}return this}each(e){Me(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Te(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Te(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Te(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ye.onFrame(this._onFrame)}}function br(e,t){return Promise.all(t.map((t=>wr(e,t)))).then((t=>Ln(e,t)))}async function wr(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=De.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=De.arr(i)||De.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ie(mr,(n=>{const r=t[n];if(De.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ve(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Sn(t,"cancel");(u||p&&d.asyncId)&&h.push(Wn(++e._lastAsyncId,{props:t,state:d,actions:{pause:je,resume:je,start(t,n){p?(Xn(d,e._lastAsyncId),n(Qn(e))):(t.onRest=s,n(Gn(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ln(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=cr(t,a,i);if(n)return xr(e,[n]),wr(e,n,!0)}return l&&ye.batchedUpdates((()=>l(f,e,e.item))),f}function _r(e,t){const n=vn({},e.springs);return t&&Ie(Re(t),(e=>{De.und(e.keys)&&(e=ur(e)),De.obj(e.to)||(e=vn({},e,{to:void 0})),Fr(n,e,(e=>$r(e)))})),Sr(e,n),n}function Sr(e,t){Me(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,zt(t,e))}))}function $r(e,t){const n=new sr;return n.key=e,t&&zt(n,t),n}function Fr(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function xr(e,t){Ie(t,(t=>{Fr(e.springs,t,(t=>$r(t,e)))}))}const Or=["children"],kr=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Or);const i=g(Cr),o=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=a(),i=r.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return d((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:l})),[o,l]);const{Provider:c}=Cr;return r.createElement(c,{value:n},t)},Cr=(Hr=kr,Pr={},Object.assign(Hr,r.createContext(Pr)),Hr.Provider._context=Hr,Hr.Consumer._context=Hr,Hr);var Hr,Pr;kr.Provider=Cr.Provider,kr.Consumer=Cr.Consumer;const zr=()=>{const e=[],t=function(t){Qt(`${Lt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(De.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(De.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return De.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=De.fun(t)&&t;r&&!n&&(n=[]);const i=m((()=>r||3==arguments.length?zr():void 0),[]),o=a(0),s=Zt(),l=m((()=>({ctrls:[],queue:[],flush(e,t){const n=_r(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?br(e,t):new Promise((r=>{Sr(e,n),l.queue.push((()=>{r(br(e,t))})),s()}))}})),[]),c=a([...l.ctrls]),u=[],d=Kt(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=c.current[i]||(c.current[i]=new vr(null,l.flush)),n=r?r(i,e):t[i];n&&(u[i]=dr(n))}}m((()=>{Ie(c.current.slice(e,d),(e=>{zn(e,i),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),m((()=>{h(0,Math.min(d,e))}),n);const p=c.current.map(((e,t)=>_r(e,u[t]))),f=g(kr),y=Kt(f),v=f!==y&&Hn(f);Xt((()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:f});const n=u[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Yt((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>vn({},e)));return i?[b,i]:b}let Ar;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ar||(Ar={}));class jr extends er{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=_t(...t);const n=this._get(),r=hn(n);nn(this,r.create(n))}advance(e){const t=this._get();Ee(t,this.get())||(tn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Er(this._active)&&Ir(this)}_get(){const e=De.arr(this.source)?this.source.map(Ot):Re(Ot(this.source));return this.calc(...e)}_start(){this.idle&&!Er(this._active)&&(this.idle=!1,Ie(rn(this),(e=>{e.done=!1})),Ge.skipAnimation?(ye.batchedUpdates((()=>this.advance())),Ir(this)):Ke.start(this))}_attach(){let e=1;Ie(Re(this.source),(t=>{xt(t)&&zt(t,this),Jn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Re(this.source),(e=>{xt(e)&&Bt(e,this)})),this._active.clear(),Ir(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Re(this.source).reduce(((e,t)=>Math.max(e,(Jn(t)?t.priority:0)+1)),0))}}function Dr(e){return!1!==e.idle}function Er(e){return!e.size||Array.from(e).every(Dr)}function Ir(e){e.idle||(e.idle=!0,Ie(rn(e),(e=>{e.done=!0})),Ct(e,{type:"idle",parent:e}))}function Mr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ge.assign({createStringInterpolator:Wt,to:(e,t)=>new jr(e,t)});const Rr=["style","children","scrollTop","scrollLeft"],Tr=/^--/;function Vr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Tr.test(e)||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}const Nr={};let Wr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Lr=["Webkit","Ms","Moz","O"];Wr=Object.keys(Wr).reduce(((e,t)=>(Lr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Wr);const qr=["x","y","z"],Ur=/^(matrix|translate|scale|rotate|skew)/,Qr=/^(translate)/,Gr=/^(rotate|skew)/,Xr=(e,t)=>De.num(e)&&0!==e?e+t:e,Zr=(e,t)=>De.arr(e)?e.every((e=>Zr(e,t))):De.num(e)?e===t:parseFloat(e)===t;class Yr extends cn{constructor(e){let{x:t,y:n,z:r}=e,i=Mr(e,qr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Xr(e,"px"))).join(",")})`,Zr(e,0)]))),Me(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Ur.test(t)){if(delete i[t],De.und(e))return;const n=Qr.test(t)?"px":Gr.test(t)?"deg":"";o.push(Re(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Xr(i,n)})`,Zr(i,0)]:e=>[`${t}(${e.map((e=>Xr(e,n))).join(",")})`,Zr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Jr(o,a)),super(i)}}class Jr extends Ht{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=Ot(n[0]),[o,a]=this.transforms[r](De.arr(i)?i:n.map(Ot));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&zt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ct(this,e)}}const Kr=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:v,createStringInterpolator:Wt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ei=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new cn(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=yn(e)||"Anonymous";return(e=De.str(e)?o[e]||(o[e]=fn(e,i)):e[mn]||(e[mn]=fn(e,i))).displayName=`Animated(${t})`,e};return Me(e,((t,n)=>{De.arr(e)&&(n=yn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Mr(r,Rr),c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Nr[t]||(Nr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Vr(t,i[t]);Tr.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new Yr(e),getComponentProps:e=>Mr(e,Kr)}),ti=ei.animated,ni=i.createContext(!1);var ri,ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},oi={};Object.defineProperty(oi,"__esModule",{value:!0});var ai=e;const si=e=>ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ai.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});si.displayName="ChevronUpIcon",ri=oi.ChevronUpIcon=si;var li=Array.isArray,ci="object"==typeof ii&&ii&&ii.Object===Object&&ii,ui="object"==typeof self&&self&&self.Object===Object&&self,di=ci||ui||Function("return this")(),hi=di.Symbol,pi=hi,fi=Object.prototype,gi=fi.hasOwnProperty,mi=fi.toString,yi=pi?pi.toStringTag:void 0;var vi=function(e){var t=gi.call(e,yi),n=e[yi];try{e[yi]=void 0;var r=!0}catch(e){}var i=mi.call(e);return r&&(t?e[yi]=n:delete e[yi]),i},bi=Object.prototype.toString;var wi=vi,_i=function(e){return bi.call(e)},Si=hi?hi.toStringTag:void 0;var $i=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Si&&Si in Object(e)?wi(e):_i(e)};var Fi=$i,xi=function(e){return null!=e&&"object"==typeof e};var Oi=function(e){return"symbol"==typeof e||xi(e)&&"[object Symbol]"==Fi(e)},ki=li,Ci=Oi,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;var zi=function(e,t){if(ki(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(Pi.test(e)||!Hi.test(e)||null!=t&&e in Object(t))};var Bi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ai=$i,ji=Bi;var Di,Ei=function(e){if(!ji(e))return!1;var t=Ai(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ii=di["__core-js_shared__"],Mi=(Di=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+Di:"";var Ri=function(e){return!!Mi&&Mi in e},Ti=Function.prototype.toString;var Vi=Ei,Ni=Ri,Wi=Bi,Li=function(e){if(null!=e){try{return Ti.call(e)}catch(e){}try{return e+""}catch(e){}}return""},qi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Qi=Object.prototype,Gi=Ui.toString,Xi=Qi.hasOwnProperty,Zi=RegExp("^"+Gi.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Yi=function(e){return!(!Wi(e)||Ni(e))&&(Vi(e)?Zi:qi).test(Li(e))},Ji=function(e,t){return null==e?void 0:e[t]};var Ki=function(e,t){var n=Ji(e,t);return Yi(n)?n:void 0},eo=Ki(Object,"create"),to=eo;var no=function(){this.__data__=to?to(null):{},this.size=0};var ro=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},io=eo,oo=Object.prototype.hasOwnProperty;var ao=function(e){var t=this.__data__;if(io){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return oo.call(t,e)?t[e]:void 0},so=eo,lo=Object.prototype.hasOwnProperty;var co=eo;var uo=no,ho=ro,po=ao,fo=function(e){var t=this.__data__;return so?void 0!==t[e]:lo.call(t,e)},go=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=co&&void 0===t?"__lodash_hash_undefined__":t,this};function mo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mo.prototype.clear=uo,mo.prototype.delete=ho,mo.prototype.get=po,mo.prototype.has=fo,mo.prototype.set=go;var yo=mo;var vo=function(){this.__data__=[],this.size=0};var bo=function(e,t){return e===t||e!=e&&t!=t};var wo=function(e,t){for(var n=e.length;n--;)if(bo(e[n][0],t))return n;return-1},_o=wo,So=Array.prototype.splice;var $o=wo;var Fo=wo;var xo=wo;var Oo=vo,ko=function(e){var t=this.__data__,n=_o(t,e);return!(n<0)&&(n==t.length-1?t.pop():So.call(t,n,1),--this.size,!0)},Co=function(e){var t=this.__data__,n=$o(t,e);return n<0?void 0:t[n][1]},Ho=function(e){return Fo(this.__data__,e)>-1},Po=function(e,t){var n=this.__data__,r=xo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function zo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zo.prototype.clear=Oo,zo.prototype.delete=ko,zo.prototype.get=Co,zo.prototype.has=Ho,zo.prototype.set=Po;var Bo=zo,Ao=Ki(di,"Map"),jo=yo,Do=Bo,Eo=Ao;var Io=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mo=function(e,t){var n=e.__data__;return Io(t)?n["string"==typeof t?"string":"hash"]:n.map},Ro=Mo;var To=Mo;var Vo=Mo;var No=Mo;var Wo=function(){this.size=0,this.__data__={hash:new jo,map:new(Eo||Do),string:new jo}},Lo=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},qo=function(e){return To(this,e).get(e)},Uo=function(e){return Vo(this,e).has(e)},Qo=function(e,t){var n=No(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Go(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Go.prototype.clear=Wo,Go.prototype.delete=Lo,Go.prototype.get=qo,Go.prototype.has=Uo,Go.prototype.set=Qo;var Xo=Go;function Zo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Zo.Cache||Xo),n}Zo.Cache=Xo;var Yo=Zo;var Jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ko=/\\(\\)?/g,ea=function(e){var t=Yo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Jo,(function(e,n,r,i){t.push(r?i.replace(Ko,"$1"):n||e)})),t}));var ta=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},na=li,ra=Oi,ia=hi?hi.prototype:void 0,oa=ia?ia.toString:void 0;var aa=function e(t){if("string"==typeof t)return t;if(na(t))return ta(t,e)+"";if(ra(t))return oa?oa.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},sa=aa;var la=li,ca=zi,ua=ea,da=function(e){return null==e?"":sa(e)};var ha=Oi;var pa=function(e,t){return la(e)?e:ca(e,t)?[e]:ua(da(e))},fa=function(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ga=function(e,t){for(var n=0,r=(t=pa(t,e)).length;null!=e&&n<r;)e=e[fa(t[n++])];return n&&n==r?e:void 0};var ma=function(e,t,n){var r=null==e?void 0:ga(e,t);return void 0===r?n:r};const ya=(e,t,n)=>t?ma(n,t)||ma(e,t):n||e,va=(e,t)=>{const n=t||e.defaultValue;return ma(e.collections,n)};var ba;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(ba||(ba={}));const wa={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},_a=e=>t=>{const n=t.theme,r=va(wa,n[ba.colorScheme]);return n.options&&n.options.color?ya(r,e,n.options.color):ya(r,e)},Sa={Brand:{1:_a("Brand.1"),2:_a("Brand.2"),3:_a("Brand.3"),4:_a("Brand.4"),5:_a("Brand.5"),6:_a("Brand.6")},Primary:_a("Primary"),PrimaryDark:_a("PrimaryDark"),Secondary:_a("Secondary"),Accent:{Light:{1:_a("Accent.Light.1"),2:_a("Accent.Light.2"),3:_a("Accent.Light.3"),4:_a("Accent.Light.4"),5:_a("Accent.Light.5"),6:_a("Accent.Light.6")},Dark:{1:_a("Accent.Dark.1"),2:_a("Accent.Dark.2"),3:_a("Accent.Dark.3")}},Neutral:{1:_a("Neutral.1"),2:_a("Neutral.2"),3:_a("Neutral.3"),4:_a("Neutral.4"),5:_a("Neutral.5"),6:_a("Neutral.6"),7:_a("Neutral.7"),8:_a("Neutral.8")},Validation:{Green:{Text:_a("Validation.Green.Text"),Icon:_a("Validation.Green.Icon"),Border:_a("Validation.Green.Border"),Background:_a("Validation.Green.Background")},Orange:{Text:_a("Validation.Orange.Text"),Icon:_a("Validation.Orange.Icon"),Border:_a("Validation.Orange.Border"),Background:_a("Validation.Orange.Background"),Badge:_a("Validation.Orange.Badge")},Red:{Text:_a("Validation.Red.Text"),Icon:_a("Validation.Red.Icon"),Border:_a("Validation.Red.Border"),Background:_a("Validation.Red.Background")}},Shadow:{Accent:_a("Shadow.Accent"),Red:_a("Shadow.Red"),Elevation:_a("Shadow.Elevation")}},$a=b.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -313,7 +313,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
|
|
|
313
313
|
height: auto;
|
|
314
314
|
}
|
|
315
315
|
`}
|
|
316
|
-
`,
|
|
316
|
+
`,cs=b((({color:e,className:r,size:i=18})=>n(ts,{className:r,$size:i,$color:e,children:[t(rs,{id:"inner1",$size:i-2,$borderWidth:2}),t(is,{id:"inner2",$size:i-2,$borderWidth:2}),t(os,{id:"inner3",$size:i-2,$borderWidth:2}),t(as,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
317
317
|
margin-right: 0.5rem;
|
|
318
318
|
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Sa.Primary(e);break;case"disabled":t=Sa.Neutral[3](e);break;default:t=Sa.Neutral[8](e)}return w`
|
|
319
319
|
#inner1,
|
|
@@ -323,7 +323,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
|
|
|
323
323
|
border-color: ${t} transparent transparent transparent;
|
|
324
324
|
}
|
|
325
325
|
`}}
|
|
326
|
-
`,
|
|
326
|
+
`,us={Default:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"default"};return n(ls,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...c,...l,children:[a&&t(cs,{...c}),t("span",{children:i})]})})),Small:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"small"};return n(ls,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...c,...l,children:[a&&t(cs,{...c,size:16}),t("span",{children:i})]})}))},ds=b.div`
|
|
327
327
|
width: 100%;
|
|
328
328
|
border-bottom: 1px solid ${Sa.Neutral[6]};
|
|
329
329
|
`,hs=b.div`
|
|
@@ -349,9 +349,9 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
|
|
|
349
349
|
visibility: hidden;
|
|
350
350
|
}
|
|
351
351
|
`}}
|
|
352
|
-
`,fs=b(
|
|
352
|
+
`,fs=b(us.Small)`
|
|
353
353
|
padding: 1.75rem 1rem; // larger clickable area
|
|
354
354
|
margin: -1rem -1rem -1rem 0px;
|
|
355
355
|
white-space: nowrap;
|
|
356
|
-
`,gs=Object.assign((({children:e,title:r,enableExpandAll:i=!0,showTitleInMobile:o=!1,className:a})=>{const[l,
|
|
356
|
+
`,gs=Object.assign((({children:e,title:r,enableExpandAll:i=!0,showTitleInMobile:o=!1,className:a})=>{const[l,c]=s(!0),u=e=>{e.preventDefault(),c((e=>!e))};return t(ni.Provider,{value:l,children:n(ds,{className:a,children:[n(hs,{$hasTitle:!!r||o,children:[r&&t(ps,{$showInMobile:o,"data-testid":"accordion-title",children:r}),i&&t(fs,{"data-testid":"accordion-expand-collapse-button",onClick:u,styleType:"link",children:l?"Hide all":"Show all"})]}),e]})})}),{Item:({title:e,children:r,expanded:i=!0,type:o="default",...l})=>{const c=g(ni),[u,h]=s(c||i),p=l["data-testid"]||"accordion-item",f=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,o=void 0===i?1e3:i,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,g=e.onResize,m=a(n),y=a(null),v=null!=p?p:y,b=a(),w=s({width:void 0,height:void 0}),_=w[0],S=w[1];return ge((function(){if(!he()){var e=fe(g,S,u,h);b.current=ue((function(t){(u||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!m.current&&!he()&&e({width:r,height:i}),m.current=!1}))}),r,o,l);var t=new window.ResizeObserver(b.current);return v.current&&t.observe(v.current,f),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[r,o,l,u,h,g,f,v.current]),$({ref:v},_)}(),m=f.ref;d((()=>{h(c)}),[c]),d((()=>{h(i)}),[i]);const y=function(e,t){const n=De.fun(e),[[r],i]=Br(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}({height:u?f.height:0});return n(Ua,{"data-testid":p,className:l.className,$isCollapsed:u,children:[n(Qa,{children:[t("small"===o?Za:Xa,{"data-testid":`${p}-title`,$isCollapsed:u,children:e}),t(Ya,{"data-testid":`${p}-expand-collapse-button`,onClick:e=>{e.preventDefault(),h((e=>!e))},$isCollapsed:u,focusHighlight:!1,focusOutline:"browser","aria-label":u?"Collapse":"Expand",children:t(Ja,{})})]}),t(Ka,{style:y,$isCollapsed:u,"data-testid":`${p}-expandable-container`,children:t(es,{ref:m,id:"content-container",children:r})})]})}});export{gs as Accordion};
|
|
357
357
|
//# sourceMappingURL=index.js.map
|