@lifesg/react-design-system 1.0.0 → 1.0.2
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/cjs/index.js +5 -5
- package/cjs/index.js.map +1 -1
- package/date-input/index.js +78 -78
- package/date-input/index.js.map +1 -1
- package/filter/index.js +166 -166
- package/filter/index.js.map +1 -1
- package/form/index.js +112 -112
- package/form/index.js.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/input-group/index.js +58 -58
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +168 -168
- package/input-select/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +59 -59
- package/phone-number-input/index.js.map +1 -1
- package/time-slot-bar/index.js +80 -80
- package/time-slot-bar/index.js.map +1 -1
- package/timepicker/index.js +205 -205
- package/timepicker/index.js.map +1 -1
- package/toggle/index.js +147 -147
- package/toggle/index.js.map +1 -1
- package/util/index.d.ts +1 -0
- package/util/simple-id-generator.d.ts +6 -0
package/input-group/index.js
CHANGED
|
@@ -308,19 +308,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
308
308
|
`:m`
|
|
309
309
|
margin-right: ${e.$readOnly?"0.25rem":"0.75rem"};
|
|
310
310
|
`};
|
|
311
|
-
`;var xr=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},Sr=Qe;var Cr=Qe,kr=Ze,Fr=ut;var Or=Qe,Br=function(){this.__data__=new Sr,this.size=0},jr=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ar=function(e){return this.__data__.get(e)},Pr=function(e){return this.__data__.has(e)},Ir=function(e,t){var r=this.__data__;if(r instanceof Cr){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Fr(n)}return r.set(e,t),this.size=r.size,this};function zr(e){var t=this.__data__=new Or(e);this.size=t.size}zr.prototype.clear=Br,zr.prototype.delete=jr,zr.prototype.get=Ar,zr.prototype.has=Pr,zr.prototype.set=Ir;var Nr=zr;var Dr=ut,Er=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Hr=function(e){return this.__data__.has(e)};function Mr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Dr;++t<r;)this.add(e[t])}Mr.prototype.add=Mr.prototype.push=Er,Mr.prototype.has=Hr;var Vr=Mr,Lr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Tr=function(e,t){return e.has(t)};var Rr=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Vr:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Lr(t,(function(e,t){if(!Tr(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Wr=S.Uint8Array,qr=Ie,Ur=Rr,Qr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Zr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Gr=C?C.prototype:void 0,Xr=Gr?Gr.valueOf:void 0;var Kr=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Wr(e),new Wr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qr;case"[object Set]":var l=1&n;if(s||(s=Zr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=Ur(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Xr)return Xr.call(e)==Xr.call(t)}return!1};var Yr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Jr=w;var en=function(e,t,r){var n=t(e);return Jr(e)?n:Yr(n,r(e))};var tn=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},rn=function(){return[]},nn=Object.prototype.propertyIsEnumerable,on=Object.getOwnPropertySymbols,an=on?function(e){return null==e?[]:(e=Object(e),tn(on(e),(function(t){return nn.call(e,t)})))}:rn;var sn=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},ln=D,cn=E;var un=function(e){return cn(e)&&"[object Arguments]"==ln(e)},dn=E,hn=Object.prototype,pn=hn.hasOwnProperty,fn=hn.propertyIsEnumerable,gn=un(function(){return arguments}())?un:function(e){return dn(e)&&pn.call(e,"callee")&&!fn.call(e,"callee")},mn={exports:{}};var yn=function(){return!1};!function(e,t){var r=S,n=yn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(mn,mn.exports);var vn=/^(?:0|[1-9]\d*)$/;var bn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&vn.test(e))&&e>-1&&e%1==0&&e<t};var wn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},$n=D,_n=wn,xn=E,Sn={};Sn["[object Float32Array]"]=Sn["[object Float64Array]"]=Sn["[object Int8Array]"]=Sn["[object Int16Array]"]=Sn["[object Int32Array]"]=Sn["[object Uint8Array]"]=Sn["[object Uint8ClampedArray]"]=Sn["[object Uint16Array]"]=Sn["[object Uint32Array]"]=!0,Sn["[object Arguments]"]=Sn["[object Array]"]=Sn["[object ArrayBuffer]"]=Sn["[object Boolean]"]=Sn["[object DataView]"]=Sn["[object Date]"]=Sn["[object Error]"]=Sn["[object Function]"]=Sn["[object Map]"]=Sn["[object Number]"]=Sn["[object Object]"]=Sn["[object RegExp]"]=Sn["[object Set]"]=Sn["[object String]"]=Sn["[object WeakMap]"]=!1;var Cn=function(e){return xn(e)&&_n(e.length)&&!!Sn[$n(e)]};var kn=function(e){return function(t){return e(t)}},Fn={exports:{}};!function(e,t){var r=$,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(Fn,Fn.exports);var On=Cn,Bn=kn,jn=Fn.exports,An=jn&&jn.isTypedArray,Pn=An?Bn(An):On,In=sn,zn=gn,Nn=w,Dn=mn.exports,En=bn,Hn=Pn,Mn=Object.prototype.hasOwnProperty;var Vn=function(e,t){var r=Nn(e),n=!r&&zn(e),i=!r&&!n&&Dn(e),o=!r&&!n&&!i&&Hn(e),a=r||n||i||o,s=a?In(e.length,String):[],l=s.length;for(var c in e)!t&&!Mn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||En(c,l))||s.push(c);return s},Ln=Object.prototype;var Tn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ln)};var Rn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Wn=Tn,qn=Rn,Un=Object.prototype.hasOwnProperty;var Qn=X,Zn=wn;var Gn=Vn,Xn=function(e){if(!Wn(e))return qn(e);var t=[];for(var r in Object(e))Un.call(e,r)&&"constructor"!=r&&t.push(r);return t},Kn=function(e){return null!=e&&Zn(e.length)&&!Qn(e)};var Yn=function(e){return Kn(e)?Gn(e):Xn(e)},Jn=en,ei=an,ti=Yn;var ri=function(e){return Jn(e,ti,ei)},ni=Object.prototype.hasOwnProperty;var ii=function(e,t,r,n,i,o){var a=1&r,s=ri(e),l=s.length;if(l!=ri(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:ni.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},oi=fe(S,"DataView"),ai=Ze,si=fe(S,"Promise"),li=fe(S,"Set"),ci=fe(S,"WeakMap"),ui=D,di=te,hi="[object Map]",pi="[object Promise]",fi="[object Set]",gi="[object WeakMap]",mi="[object DataView]",yi=di(oi),vi=di(ai),bi=di(si),wi=di(li),$i=di(ci),_i=ui;(oi&&_i(new oi(new ArrayBuffer(1)))!=mi||ai&&_i(new ai)!=hi||si&&_i(si.resolve())!=pi||li&&_i(new li)!=fi||ci&&_i(new ci)!=gi)&&(_i=function(e){var t=ui(e),r="[object Object]"==t?e.constructor:void 0,n=r?di(r):"";if(n)switch(n){case yi:return mi;case vi:return hi;case bi:return pi;case wi:return fi;case $i:return gi}return t});var xi=Nr,Si=Rr,Ci=Kr,ki=ii,Fi=_i,Oi=w,Bi=mn.exports,ji=Pn,Ai="[object Arguments]",Pi="[object Array]",Ii="[object Object]",zi=Object.prototype.hasOwnProperty;var Ni=function(e,t,r,n,i,o){var a=Oi(e),s=Oi(t),l=a?Pi:Fi(e),c=s?Pi:Fi(t),u=(l=l==Ai?Ii:l)==Ii,d=(c=c==Ai?Ii:c)==Ii,h=l==c;if(h&&Bi(e)){if(!Bi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new xi),a||ji(e)?Si(e,t,r,n,i,o):Ci(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&zi.call(e,"__wrapped__"),f=d&&zi.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new xi),i(g,m,r,n,o)}}return!!h&&(o||(o=new xi),ki(e,t,r,n,i,o))},Di=E;var Ei=function e(t,r,n,i,o){return t===r||(null==t||null==r||!Di(t)&&!Di(r)?t!=t&&r!=r:Ni(t,r,n,i,e,o))},Hi=Nr,Mi=Ei;var Vi=U;var Li=function(e){return e==e&&!Vi(e)},Ti=Li,Ri=Yn;var Wi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},qi=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Hi;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Mi(u,c,3,n,d):h))return!1}}return!0},Ui=function(e){for(var t=Ri(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ti(i)]}return t},Qi=Wi;var Zi=Ot,Gi=gn,Xi=w,Ki=bn,Yi=wn,Ji=jt;var eo=function(e,t){return null!=e&&t in Object(e)},to=function(e,t,r){for(var n=-1,i=(t=Zi(t,e)).length,o=!1;++n<i;){var a=Ji(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Yi(i)&&Ki(a,i)&&(Xi(e)||Gi(e))};var ro=Ei,no=Nt,io=function(e,t){return null!=e&&to(e,t,eo)},oo=q,ao=Li,so=Wi,lo=jt;var co=It;var uo=function(e){return function(t){return null==t?void 0:t[e]}},ho=function(e){return function(t){return co(t,e)}},po=q,fo=jt;var go=function(e){var t=Ui(e);return 1==t.length&&t[0][2]?Qi(t[0][0],t[0][1]):function(r){return r===e||qi(r,e,t)}},mo=function(e,t){return oo(e)&&ao(t)?so(lo(e),t):function(r){var n=no(r,e);return void 0===n&&n===t?io(r,e):ro(t,n,3)}},yo=function(e){return e},vo=w,bo=function(e){return po(e)?uo(fo(e)):ho(e)};var wo=/\s/;var $o=function(e){for(var t=e.length;t--&&wo.test(e.charAt(t)););return t},_o=/^\s+/;var xo=function(e){return e?e.slice(0,$o(e)+1).replace(_o,""):e},So=U,Co=V,ko=/^[-+]0x[0-9a-f]+$/i,Fo=/^0b[01]+$/i,Oo=/^0o[0-7]+$/i,Bo=parseInt;var jo=function(e){if("number"==typeof e)return e;if(Co(e))return NaN;if(So(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=So(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xo(e);var r=Fo.test(e);return r||Oo.test(e)?Bo(e.slice(2),r?2:8):ko.test(e)?NaN:+e},Ao=1/0;var Po=function(e){return e?(e=jo(e))===Ao||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Io=xr,zo=function(e){return"function"==typeof e?e:null==e?yo:"object"==typeof e?vo(e)?mo(e[0],e[1]):go(e):bo(e)},No=function(e){var t=Po(e),r=t%1;return t==t?r?t-r:t:0},Do=Math.max;var Eo=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:No(r);return i<0&&(i=Do(n+i,0)),Io(e,zo(t),i)};let Ho=ea();const Mo=e=>Xo(e,Ho);let Vo=ea();Mo.write=e=>Xo(e,Vo);let Lo=ea();Mo.onStart=e=>Xo(e,Lo);let To=ea();Mo.onFrame=e=>Xo(e,To);let Ro=ea();Mo.onFinish=e=>Xo(e,Ro);let Wo=[];Mo.setTimeout=(e,t)=>{let r=Mo.now()+t,n=()=>{let e=Wo.findIndex((e=>e.cancel==n));~e&&Wo.splice(e,1),Zo-=~e?1:0},i={time:r,handler:e,cancel:n};return Wo.splice(qo(r),0,i),Zo+=1,Ko(),i};let qo=e=>~(~Wo.findIndex((t=>t.time>e))||~Wo.length);Mo.cancel=e=>{Lo.delete(e),To.delete(e),Ro.delete(e),Ho.delete(e),Vo.delete(e)},Mo.sync=e=>{Go=!0,Mo.batchedUpdates(e),Go=!1},Mo.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Mo.onStart(r)}return n.handler=e,n.cancel=()=>{Lo.delete(r),t=null},n};let Uo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Mo.use=e=>Uo=e,Mo.now="undefined"!=typeof performance?()=>performance.now():Date.now,Mo.batchedUpdates=e=>e(),Mo.catch=console.error,Mo.frameLoop="always",Mo.advance=()=>{"demand"!==Mo.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Jo()};let Qo=-1,Zo=0,Go=!1;function Xo(e,t){Go?(t.delete(e),e(0)):(t.add(e),Ko())}function Ko(){Qo<0&&(Qo=0,"demand"!==Mo.frameLoop&&Uo(Yo))}function Yo(){~Qo&&(Uo(Yo),Mo.batchedUpdates(Jo))}function Jo(){let e=Qo;Qo=Mo.now();let t=qo(Qo);t&&(ta(Wo.splice(0,t),(e=>e.handler())),Zo-=t),Zo?(Lo.flush(),Ho.flush(e?Math.min(64,Qo-e):16.667),To.flush(),Vo.flush(),Ro.flush()):Qo=-1}function ea(){let e=new Set,t=e;return{add(r){Zo+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Zo-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Zo-=t.size,ta(t,(t=>t(r)&&e.add(t))),Zo+=e.size,t=e)}}}function ta(e,t){e.forEach((e=>{try{t(e)}catch(e){Mo.catch(e)}}))}function ra(){}const na={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 ia(e,t){if(na.arr(e)){if(!na.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const oa=(e,t)=>e.forEach(t);function aa(e,t,r){if(na.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const sa=e=>na.und(e)?[]:na.arr(e)?e:[e];function la(e,t){if(e.size){const r=Array.from(e);e.clear(),oa(r,t)}}const ca=(e,...t)=>la(e,(e=>e(...t))),ua=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let da,ha,pa=null,fa=!1,ga=ra;var ma=Object.freeze({__proto__:null,get createStringInterpolator(){return da},get to(){return ha},get colors(){return pa},get skipAnimation(){return fa},get willAdvance(){return ga},assign:e=>{e.to&&(ha=e.to),e.now&&(Mo.now=e.now),void 0!==e.colors&&(pa=e.colors),null!=e.skipAnimation&&(fa=e.skipAnimation),e.createStringInterpolator&&(da=e.createStringInterpolator),e.requestAnimationFrame&&Mo.use(e.requestAnimationFrame),e.batchedUpdates&&(Mo.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ga=e.willAdvance),e.frameLoop&&(Mo.frameLoop=e.frameLoop)}});const ya=new Set;let va=[],ba=[],wa=0;const $a={get idle(){return!ya.size&&!va.length},start(e){wa>e.priority?(ya.add(e),Mo.onStart(_a)):(xa(e),Mo(Ca))},advance:Ca,sort(e){if(wa)Mo.onFrame((()=>$a.sort(e)));else{const t=va.indexOf(e);~t&&(va.splice(t,1),Sa(e))}},clear(){va=[],ya.clear()}};function _a(){ya.forEach(xa),ya.clear(),Mo(Ca)}function xa(e){va.includes(e)||Sa(e)}function Sa(e){va.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(va,(t=>t.priority>e.priority)),0,e)}function Ca(e){const t=ba;for(let r=0;r<va.length;r++){const n=va[r];wa=n.priority,n.idle||(ga(n),n.advance(e),n.idle||t.push(n))}return wa=0,ba=va,ba.length=0,va=t,va.length>0}const ka="[-+]?\\d*\\.?\\d+",Fa=ka+"%";function Oa(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Ba=new RegExp("rgb"+Oa(ka,ka,ka)),ja=new RegExp("rgba"+Oa(ka,ka,ka,ka)),Aa=new RegExp("hsl"+Oa(ka,Fa,Fa)),Pa=new RegExp("hsla"+Oa(ka,Fa,Fa,ka)),Ia=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,za=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Na=/^#([0-9a-fA-F]{6})$/,Da=/^#([0-9a-fA-F]{8})$/;function Ea(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ha(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Ea(i,n,e+1/3),a=Ea(i,n,e),s=Ea(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Ma(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Va(e){return(parseFloat(e)%360+360)%360/360}function La(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ta(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ra(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Na.exec(e))?parseInt(t[1]+"ff",16)>>>0:pa&&void 0!==pa[e]?pa[e]:(t=Ba.exec(e))?(Ma(t[1])<<24|Ma(t[2])<<16|Ma(t[3])<<8|255)>>>0:(t=ja.exec(e))?(Ma(t[1])<<24|Ma(t[2])<<16|Ma(t[3])<<8|La(t[4]))>>>0:(t=Ia.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Da.exec(e))?parseInt(t[1],16)>>>0:(t=za.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Aa.exec(e))?(255|Ha(Va(t[1]),Ta(t[2]),Ta(t[3])))>>>0:(t=Pa.exec(e))?(Ha(Va(t[1]),Ta(t[2]),Ta(t[3]))|La(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 Wa=(e,t,r)=>{if(na.fun(e))return e;if(na.arr(e))return Wa({range:e,output:t,extrapolate:r});if(na.str(e.output[0]))return da(e);const n=e,i=n.output,o=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,o);return function(e,t,r,n,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>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};const qa=1.70158,Ua=1.525*qa,Qa=qa+1,Za=2*Math.PI/3,Ga=2*Math.PI/4.5,Xa=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},Ka={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=>Qa*e*e*e-qa*e*e,easeOutBack:e=>1+Qa*Math.pow(e-1,3)+qa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ua)/2:(Math.pow(2*e-2,2)*((Ua+1)*(2*e-2)+Ua)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Za),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Za)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ga)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ga)/2+1,easeInBounce:e=>1-Xa(1-e),easeOutBounce:Xa,easeInOutBounce:e=>e<.5?(1-Xa(1-2*e))/2:(1+Xa(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,i="end"===t?Math.floor(n):Math.ceil(n);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ya.apply(this,arguments)}const Ja=Symbol.for("FluidValue.get"),es=Symbol.for("FluidValue.observers"),ts=e=>Boolean(e&&e[Ja]),rs=e=>e&&e[Ja]?e[Ja]():e,ns=e=>e[es]||null;function is(e,t){let r=e[es];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class os{constructor(e){if(this[Ja]=void 0,this[es]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");as(this,e)}}const as=(e,t)=>cs(e,Ja,t);function ss(e,t){if(e[Ja]){let r=e[es];r||cs(e,es,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function ls(e,t){let r=e[es];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[es]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const cs=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),us=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ds=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hs=new RegExp(`(${us.source})(%|[a-z]+)`,"i"),ps=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gs=e=>{const[t,r]=ms(e);if(!t||ua())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&fs.test(r)?gs(r):r||e},ms=e=>{const t=fs.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let ys;const vs=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,bs=e=>{ys||(ys=pa?new RegExp(`(${Object.keys(pa).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>rs(e).replace(fs,gs).replace(ds,Ra).replace(ys,Ra))),r=t.map((e=>e.match(us).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Wa(Ya({},e,{output:t}))));return e=>{var r;const i=!hs.test(t[0])&&(null==(r=t.find((e=>hs.test(e))))?void 0:r.replace(us,""));let o=0;return t[0].replace(us,(()=>`${n[o++](e)}${i||""}`)).replace(ps,vs)}},ws="react-spring: ",$s=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${ws}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},_s=$s(console.warn);const xs=$s(console.warn);function Ss(e){return na.str(e)&&("#"==e[0]||/\d/.test(e)||!ua()&&fs.test(e)||e in(pa||{}))}const Cs=ua()?l:c,ks=()=>{const e=a(!1);return Cs((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Fs(){const e=u()[1],t=ks();return()=>{t.current&&e(Math.random())}}const Os=e=>l(e,Bs),Bs=[];function js(e){const t=a();return l((()=>{t.current=e})),t.current}const As=Symbol.for("Animated:node"),Ps=e=>e&&e[As],Is=(e,t)=>{return r=e,n=As,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},zs=e=>e&&e[As]&&e[As].getPayload();class Ns{constructor(){this.payload=void 0,Is(this,this)}getPayload(){return this.payload||[]}}class Ds extends Ns{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,na.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ds(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return na.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,na.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Es extends Ds{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Wa({output:[e,e]})}static create(e){return new Es(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(na.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=Wa({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Hs={dependencies:null};class Ms extends Ns{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return aa(this.source,((r,n)=>{var i;(i=r)&&i[As]===i?t[n]=r.getValue(e):ts(r)?t[n]=rs(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&oa(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return aa(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Hs.dependencies&&ts(e)&&Hs.dependencies.add(e);const t=zs(e);t&&oa(t,(e=>this.add(e)))}}class Vs extends Ms{constructor(e){super(e)}static create(e){return new Vs(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(Ls)),!0)}}function Ls(e){return(Ss(e)?Es:Ds).create(e)}function Ts(e){const t=Ps(e);return t?t.constructor:na.arr(e)?Vs:Ss(e)?Es:Ds}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rs.apply(this,arguments)}const Ws=(e,t)=>{const r=!na.fun(e)||e.prototype&&e.prototype.isReactComponent;return d(((n,o)=>{const s=a(null),c=r&&h((e=>{s.current=function(e,t){e&&(na.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,d]=function(e,t){const r=new Set;Hs.dependencies=r,e.style&&(e=Rs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Ms(e),Hs.dependencies=null,[e,r]}(n,t),p=Fs(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new qs(f,d),m=a();Cs((()=>(m.current=g,oa(d,(e=>ss(e,g))),()=>{m.current&&(oa(m.current.deps,(e=>ls(e,m.current))),Mo.cancel(m.current.update))}))),l(f,[]),Os((()=>()=>{const e=m.current;oa(e.deps,(t=>ls(t,e)))}));const y=t.getComponentProps(u.getValue());return i.createElement(e,Rs({},y,{ref:c}))}))};class qs{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Mo.write(this.update)}}const Us=Symbol.for("AnimatedComponent"),Qs=e=>na.str(e)?e:e&&na.str(e.displayName)?e.displayName:na.fun(e)&&e.name||null;function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}function Gs(e,...t){return na.fun(e)?e(...t):e}const Xs=(e,t)=>!0===e||!!(t&&e&&(na.fun(e)?e(t):sa(e).includes(t))),Ks=(e,t)=>na.obj(e)?t&&e[t]:e,Ys=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Js=e=>e,el=(e,t=Js)=>{let r=tl;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);na.und(r)||(n[i]=r)}return n},tl=["config","onProps","onStart","onChange","onPause","onResume","onRest"],rl={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 nl(e){const t=function(e){const t={};let r=0;if(aa(e,((e,n)=>{rl[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return aa(e,((e,n)=>n in t||(r[n]=e))),r}return Zs({},e)}function il(e){return e=rs(e),na.arr(e)?e.map(il):Ss(e)?ma.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ol(e){return na.fun(e)||na.arr(e)&&na.obj(e[0])}const al=Zs({},{tension:170,friction:26},{mass:1,damping:1,easing:Ka.linear,clamp:!1});class sl{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,al)}}function ll(e,t){if(na.und(t.decay)){const r=!na.und(t.tension)||!na.und(t.friction);!r&&na.und(t.frequency)&&na.und(t.damping)&&na.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const cl=[];class ul{constructor(){this.changed=!1,this.values=cl,this.toValues=null,this.fromValues=cl,this.to=void 0,this.from=void 0,this.config=new sl,this.immediate=!1}}function dl(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=Xs(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{na.und(r.pause)||(i.paused=Xs(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||Xs(e,t)),c=Gs(r.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-Mo.now()}function p(){c>0&&!ma.skipAnimation?(i.delayed=!0,u=Mo.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(Zs({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const hl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?gl(e.get()):t.every((e=>e.noop))?pl(e.get()):fl(e.get(),t.every((e=>e.finished))),pl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),fl=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),gl=e=>({value:e,cancelled:!0,finished:!1});function ml(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=el(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<=(r.cancelId||0)&&gl(n)||i!==r.asyncId&&fl(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new vl,a=new bl;return(async()=>{if(ma.skipAnimation)throw yl(r),a.result=fl(n,!1),d(a),a;p(o);const s=na.obj(e)?Zs({},e):Zs({},t,{to:e});s.parentId=i,aa(c,((e,t)=>{na.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(ma.skipAnimation)return yl(r),fl(n,!1);try{let t;t=na.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=fl(n.get(),!0,!1)}catch(e){if(e instanceof vl)g=e.result;else{if(!(e instanceof bl))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return na.fun(a)&&Mo.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function yl(e,t){la(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class vl 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 bl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const wl=e=>e instanceof _l;let $l=1;class _l extends os{constructor(...e){super(...e),this.id=$l++,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=Ps(this);return e&&e.getValue()}to(...e){return ma.to(this,e)}interpolate(...e){return _s(`${ws}The "interpolate" function is deprecated in v9 (use "to" instead)`),ma.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){is(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||$a.sort(this),is(this,{type:"priority",parent:this,priority:e})}}const xl=Symbol.for("SpringPhase"),Sl=e=>(1&e[xl])>0,Cl=e=>(2&e[xl])>0,kl=e=>(4&e[xl])>0,Fl=(e,t)=>t?e[xl]|=3:e[xl]&=-3,Ol=(e,t)=>t?e[xl]|=4:e[xl]&=-5;class Bl extends _l{constructor(e,t){if(super(),this.key=void 0,this.animation=new ul,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,!na.und(e)||!na.und(t)){const r=na.obj(e)?Zs({},e):Zs({},t,{from:e});na.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Cl(this)||this._state.asyncTo)||kl(this)}get goal(){return rs(this.animation.to)}get velocity(){const e=Ps(this);return e instanceof Ds?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Sl(this)}get isAnimating(){return Cl(this)}get isPaused(){return kl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=zs(n.to);!a&&ts(n.to)&&(o=sa(rs(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Es?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=na.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(na.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,n=i.clamp?0:i.bounce,l=!na.und(n),p=r==c?s.v0>0:r<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*n,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=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)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}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)&&(r=!0)}));const s=Ps(this),l=s.getValue();if(t){const e=rs(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return Mo.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Cl(this)){const{to:e,config:t}=this.animation;Mo.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 r;return na.und(e)?(r=this.queue||[],this.queue=[]):r=[na.obj(e)?e:Zs({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>hl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),yl(this._state,e&&this._lastCallId),Mo.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:r,from:n}=e;r=na.obj(r)?r[t]:r,(null==r||ol(r))&&(r=void 0),n=na.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return Sl(this)||(e.reverse&&([r,n]=[n,r]),n=rs(n),na.und(n)?Ps(this)||this._set(r):this._set(n)),i}_update(e,t){let r=Zs({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,el(r,((e,t)=>/^on/.test(t)?Ks(e,n):e))),Dl(this,r,"onProps"),El(this,"onProps",r,this);const o=this._prepareNode(r);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 dl(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{kl(this)||(Ol(this,!0),ca(a.pauseQueue),El(this,"onPause",fl(this,jl(this,this.animation.to)),this))},resume:()=>{kl(this)&&(Ol(this,!1),Cl(this)&&this._resume(),ca(a.resumeQueue),El(this,"onResume",fl(this,jl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=Al(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(gl(this));const n=!na.und(e.to),i=!na.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(gl(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||n||t.default&&!na.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!ia(d,c);h&&(s.from=d),d=rs(d);const p=!ia(u,l);p&&this._focus(u);const f=ol(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(ll(r=Zs({},r),t),t=Zs({},r,t)),ll(e,t),Object.assign(e,t);for(const t in al)null==e[t]&&(e[t]=al[t]);let{mass:n,frequency:i,damping:o}=e;na.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,Gs(t.config,o),t.config!==a.config?Gs(a.config,o):void 0);let v=Ps(this);if(!v||na.und(u))return r(fl(this,!0));const b=na.und(t.reset)?i&&!t.default:!na.und(d)&&Xs(t.reset,o),w=b?d:this.get(),$=il(u),_=na.num($)||na.arr($)||Ss($),x=!f&&(!_||Xs(a.immediate||t.immediate,o));if(p){const e=Ts(u);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set($)}}const S=v.constructor;let C=ts(u),k=!1;if(!C){const e=b||!Sl(this)&&h;(p||e)&&(k=ia(il(w),$),C=!k),(ia(s.immediate,x)||x)&&ia(g.decay,m)&&ia(g.velocity,y)||(C=!0)}if(k&&Cl(this)&&(s.changed&&!b?C=!0:C||this._stop(l)),!f&&((C||ts(l))&&(s.values=v.getPayload(),s.toValues=ts(u)?null:S==Es?[1]:sa($)),s.immediate!=x&&(s.immediate=x,x||b||this._set(l)),C)){const{onRest:e}=s;oa(Nl,(e=>Dl(this,t,e)));const n=fl(this,jl(this,l));ca(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&Mo.batchedUpdates((()=>{s.changed=!b,null==e||e(n,this),b?Gs(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}b&&this._set(w),f?r(ml(t.to,t,this._state,this)):C?this._start():Cl(this)&&!p?this._pendingCalls.add(r):r(pl(w))}_focus(e){const t=this.animation;e!==t.to&&(ns(this)&&this._detach(),t.to=e,ns(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ts(t)&&(ss(t,this),wl(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ts(e)&&ls(e,this)}_set(e,t=!0){const r=rs(e);if(!na.und(r)){const e=Ps(this);if(!e||!ia(r,e.getValue())){const n=Ts(r);e&&e.constructor==n?e.setValue(r):Is(this,n.create(r)),e&&Mo.batchedUpdates((()=>{this._onChange(r,t)}))}}return Ps(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,El(this,"onStart",fl(this,jl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gs(this.animation.onChange,e,this)),Gs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ps(this).reset(rs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Cl(this)||(Fl(this,!0),kl(this)||this._resume())}_resume(){ma.skipAnimation?this.finish():$a.start(this)}_stop(e,t){if(Cl(this)){Fl(this,!1);const r=this.animation;oa(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),is(this,{type:"idle",parent:this});const n=t?gl(this.get()):fl(this.get(),jl(this,null!=e?e:r.to));ca(this._pendingCalls,n),r.changed&&(r.changed=!1,El(this,"onRest",n,this))}}}function jl(e,t){const r=il(t);return ia(il(e.get()),r)}function Al(e,t=e.loop,r=e.to){let n=Gs(t);if(n){const i=!0!==n&&nl(n),o=(i||e).reverse,a=!i||i.reset;return Pl(Zs({},e,{loop:t,default:!1,pause:void 0,to:!o||ol(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function Pl(e){const{to:t,from:r}=e=nl(e),n=new Set;return na.obj(t)&&zl(t,n),na.obj(r)&&zl(r,n),e.keys=n.size?Array.from(n):null,e}function Il(e){const t=Pl(e);return na.und(t.default)&&(t.default=el(t)),t}function zl(e,t){aa(e,((e,r)=>null!=e&&t.add(r)))}const Nl=["onStart","onRest","onChange","onPause","onResume"];function Dl(e,t,r){e.animation[r]=t[r]!==Ys(t,r)?Ks(t[r],e.key):void 0}function El(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const Hl=["onStart","onChange","onRest"];let Ml=1;class Vl{constructor(e,t){this.id=Ml++,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(Zs({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];na.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Pl(e)),this}start(e){let{queue:t}=this;return e?t=sa(e).map(Pl):this.queue=[],this._flush?this._flush(this,t):(Ql(this,t),Ll(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;oa(sa(t),(t=>r[t].stop(!!e)))}else yl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(na.und(e))this.start({pause:!0});else{const t=this.springs;oa(sa(e),(e=>t[e].pause()))}return this}resume(e){if(na.und(e))this.start({pause:!1});else{const t=this.springs;oa(sa(e),(e=>t[e].resume()))}return this}each(e){aa(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,la(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&la(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,la(r,(([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)}Mo.onFrame(this._onFrame)}}function Ll(e,t){return Promise.all(t.map((t=>Tl(e,t)))).then((t=>hl(e,t)))}async function Tl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=na.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=na.arr(i)||na.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):oa(Hl,(r=>{const n=t[r];if(na.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ca(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===Ys(t,"cancel");(u||p&&d.asyncId)&&h.push(dl(++e._lastAsyncId,{props:t,state:d,actions:{pause:ra,resume:ra,start(t,r){p?(yl(d,e._lastAsyncId),r(gl(e))):(t.onRest=s,r(ml(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=hl(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=Al(t,a,i);if(r)return Ql(e,[r]),Tl(e,r,!0)}return l&&Mo.batchedUpdates((()=>l(f,e,e.item))),f}function Rl(e,t){const r=Zs({},e.springs);return t&&oa(sa(t),(e=>{na.und(e.keys)&&(e=Pl(e)),na.obj(e.to)||(e=Zs({},e,{to:void 0})),Ul(r,e,(e=>ql(e)))})),Wl(e,r),r}function Wl(e,t){aa(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,ss(t,e))}))}function ql(e,t){const r=new Bl;return r.key=e,t&&ss(r,t),r}function Ul(e,t,r){t.keys&&oa(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function Ql(e,t){oa(t,(t=>{Ul(e.springs,t,(t=>ql(t,e)))}))}const Zl=["children"],Gl=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,Zl);const n=p(Xl),o=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=u((()=>({inputs:t,result:e()}))),n=a(),i=n.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=r;return l((()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:c}=Xl;return i.createElement(c,{value:r},t)},Xl=(Kl=Gl,Yl={},Object.assign(Kl,i.createContext(Yl)),Kl.Provider._context=Kl,Kl.Consumer._context=Kl,Kl);var Kl,Yl;Gl.Provider=Xl.Provider,Gl.Consumer=Xl.Consumer;const Jl=()=>{const e=[],t=function(t){xs(`${ws}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 n=[];return oa(e,((e,i)=>{if(na.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return oa(e,(e=>e.pause(...arguments))),this},t.resume=function(){return oa(e,(e=>e.resume(...arguments))),this},t.set=function(t){oa(e,(e=>e.set(t)))},t.start=function(t){const r=[];return oa(e,((e,n)=>{if(na.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return oa(e,(e=>e.stop(...arguments))),this},t.update=function(t){return oa(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return na.fun(e)?e(r,t):e};return t._getProps=r,t};function ec(e,t){const r=na.fun(e),[[n],i]=function(e,t,r){const n=na.fun(t)&&t;n&&!r&&(r=[]);const i=f((()=>n||3==arguments.length?Jl():void 0),[]),o=a(0),s=Fs(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const r=Rl(e,t);return o.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Ll(e,t):new Promise((n=>{Wl(e,r),l.queue.push((()=>{n(Ll(e,t))})),s()}))}})),[]),c=a([...l.ctrls]),u=[],d=js(e)||0;function h(e,r){for(let i=e;i<r;i++){const e=c.current[i]||(c.current[i]=new Vl(null,l.flush)),r=n?n(i,e):t[i];r&&(u[i]=Il(r))}}f((()=>{oa(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),f((()=>{h(0,Math.min(d,e))}),r);const g=c.current.map(((e,t)=>Rl(e,u[t]))),m=p(Gl),y=js(m),v=m!==y&&function(e){for(const t in e)return!0;return!1}(m);Cs((()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],oa(e,(e=>e()))),oa(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),Os((()=>()=>{oa(l.ctrls,(e=>e.stop(!0)))}));const b=g.map((e=>Zs({},e)));return i?[b,i]:b}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}let tc;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(tc||(tc={}));class rc extends _l{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Wa(...t);const r=this._get(),n=Ts(r);Is(this,n.create(r))}advance(e){const t=this._get();ia(t,this.get())||(Ps(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ic(this._active)&&oc(this)}_get(){const e=na.arr(this.source)?this.source.map(rs):sa(rs(this.source));return this.calc(...e)}_start(){this.idle&&!ic(this._active)&&(this.idle=!1,oa(zs(this),(e=>{e.done=!1})),ma.skipAnimation?(Mo.batchedUpdates((()=>this.advance())),oc(this)):$a.start(this))}_attach(){let e=1;oa(sa(this.source),(t=>{ts(t)&&ss(t,this),wl(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){oa(sa(this.source),(e=>{ts(e)&&ls(e,this)})),this._active.clear(),oc(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=sa(this.source).reduce(((e,t)=>Math.max(e,(wl(t)?t.priority:0)+1)),0))}}function nc(e){return!1!==e.idle}function ic(e){return!e.size||Array.from(e).every(nc)}function oc(e){e.idle||(e.idle=!0,oa(zs(e),(e=>{e.done=!0})),is(e,{type:"idle",parent:e}))}function ac(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}ma.assign({createStringInterpolator:bs,to:(e,t)=>new rc(e,t)});const sc=["style","children","scrollTop","scrollLeft","viewBox"],lc=/^--/;function cc(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||lc.test(e)||dc.hasOwnProperty(e)&&dc[e]?(""+t).trim():t+"px"}const uc={};let dc={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 hc=["Webkit","Ms","Moz","O"];dc=Object.keys(dc).reduce(((e,t)=>(hc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),dc);const pc=["x","y","z"],fc=/^(matrix|translate|scale|rotate|skew)/,gc=/^(translate)/,mc=/^(rotate|skew)/,yc=(e,t)=>na.num(e)&&0!==e?e+t:e,vc=(e,t)=>na.arr(e)?e.every((e=>vc(e,t))):na.num(e)?e===t:parseFloat(e)===t;class bc extends Ms{constructor(e){let{x:t,y:r,z:n}=e,i=ac(e,pc);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>yc(e,"px"))).join(",")})`,vc(e,0)]))),aa(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(fc.test(t)){if(delete i[t],na.und(e))return;const r=gc.test(t)?"px":mc.test(t)?"deg":"";o.push(sa(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${yc(i,r)})`,vc(i,0)]:e=>[`${t}(${e.map((e=>yc(e,r))).join(",")})`,vc(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new wc(o,a)),super(i)}}class wc extends os{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 oa(this.inputs,((r,n)=>{const i=rs(r[0]),[o,a]=this.transforms[n](na.arr(i)?i:r.map(rs));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&oa(this.inputs,(e=>oa(e,(e=>ts(e)&&ss(e,this)))))}observerRemoved(e){0==e&&oa(this.inputs,(e=>oa(e,(e=>ts(e)&&ls(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),is(this,e)}}const $c=["scrollTop","scrollLeft"];ma.assign({batchedUpdates:v,createStringInterpolator:bs,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 _c=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new Ms(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=Qs(e)||"Anonymous";return(e=na.str(e)?o[e]||(o[e]=Ws(e,i)):e[Us]||(e[Us]=Ws(e,i))).displayName=`Animated(${t})`,e};return aa(e,((t,r)=>{na.arr(e)&&(r=Qs(t)),o[r]=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 r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=n,c=ac(n,sc),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:uc[t]||(uc[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 r=cc(t,i[t]);lc.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new bc(e),getComponentProps:e=>ac(e,$c)}),xc=_c.animated,Sc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Cc=e=>Object.keys(Sc).reduce(((t,r)=>{const n=Sc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),kc=Cc("max-width"),Fc=(Cc("min-width"),g.div`
|
|
311
|
+
`;var xr=Qe;var Sr=Qe,Cr=Ze,kr=ut;var Fr=Qe,Or=function(){this.__data__=new xr,this.size=0},Br=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},jr=function(e){return this.__data__.get(e)},Ar=function(e){return this.__data__.has(e)},Pr=function(e,t){var r=this.__data__;if(r instanceof Sr){var n=r.__data__;if(!Cr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kr(n)}return r.set(e,t),this.size=r.size,this};function Ir(e){var t=this.__data__=new Fr(e);this.size=t.size}Ir.prototype.clear=Or,Ir.prototype.delete=Br,Ir.prototype.get=jr,Ir.prototype.has=Ar,Ir.prototype.set=Pr;var zr=Ir;var Nr=ut,Dr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Er=function(e){return this.__data__.has(e)};function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}Hr.prototype.add=Hr.prototype.push=Dr,Hr.prototype.has=Er;var Mr=Hr,Vr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Lr=function(e,t){return e.has(t)};var Tr=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Mr:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Vr(t,(function(e,t){if(!Lr(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Rr=S.Uint8Array,Wr=Ie,qr=Tr,Ur=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Qr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Zr=C?C.prototype:void 0,Gr=Zr?Zr.valueOf:void 0;var Xr=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Rr(e),new Rr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ur;case"[object Set]":var l=1&n;if(s||(s=Qr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=qr(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Gr)return Gr.call(e)==Gr.call(t)}return!1};var Kr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Yr=w;var Jr=function(e,t,r){var n=t(e);return Yr(e)?n:Kr(n,r(e))};var en=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},tn=function(){return[]},rn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,on=nn?function(e){return null==e?[]:(e=Object(e),en(nn(e),(function(t){return rn.call(e,t)})))}:tn;var an=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},sn=D,ln=E;var cn=function(e){return ln(e)&&"[object Arguments]"==sn(e)},un=E,dn=Object.prototype,hn=dn.hasOwnProperty,pn=dn.propertyIsEnumerable,fn=cn(function(){return arguments}())?cn:function(e){return un(e)&&hn.call(e,"callee")&&!pn.call(e,"callee")},gn={exports:{}};var mn=function(){return!1};!function(e,t){var r=S,n=mn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(gn,gn.exports);var yn=/^(?:0|[1-9]\d*)$/;var vn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&yn.test(e))&&e>-1&&e%1==0&&e<t};var bn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},wn=D,$n=bn,_n=E,xn={};xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Arguments]"]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object Boolean]"]=xn["[object DataView]"]=xn["[object Date]"]=xn["[object Error]"]=xn["[object Function]"]=xn["[object Map]"]=xn["[object Number]"]=xn["[object Object]"]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object WeakMap]"]=!1;var Sn=function(e){return _n(e)&&$n(e.length)&&!!xn[wn(e)]};var Cn=function(e){return function(t){return e(t)}},kn={exports:{}};!function(e,t){var r=$,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(kn,kn.exports);var Fn=Sn,On=Cn,Bn=kn.exports,jn=Bn&&Bn.isTypedArray,An=jn?On(jn):Fn,Pn=an,In=fn,zn=w,Nn=gn.exports,Dn=vn,En=An,Hn=Object.prototype.hasOwnProperty;var Mn=function(e,t){var r=zn(e),n=!r&&In(e),i=!r&&!n&&Nn(e),o=!r&&!n&&!i&&En(e),a=r||n||i||o,s=a?Pn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dn(c,l))||s.push(c);return s},Vn=Object.prototype;var Ln=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vn)};var Tn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rn=Ln,Wn=Tn,qn=Object.prototype.hasOwnProperty;var Un=X,Qn=bn;var Zn=function(e){return null!=e&&Qn(e.length)&&!Un(e)},Gn=Mn,Xn=function(e){if(!Rn(e))return Wn(e);var t=[];for(var r in Object(e))qn.call(e,r)&&"constructor"!=r&&t.push(r);return t},Kn=Zn;var Yn=function(e){return Kn(e)?Gn(e):Xn(e)},Jn=Jr,ei=on,ti=Yn;var ri=function(e){return Jn(e,ti,ei)},ni=Object.prototype.hasOwnProperty;var ii=function(e,t,r,n,i,o){var a=1&r,s=ri(e),l=s.length;if(l!=ri(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:ni.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},oi=fe(S,"DataView"),ai=Ze,si=fe(S,"Promise"),li=fe(S,"Set"),ci=fe(S,"WeakMap"),ui=D,di=te,hi="[object Map]",pi="[object Promise]",fi="[object Set]",gi="[object WeakMap]",mi="[object DataView]",yi=di(oi),vi=di(ai),bi=di(si),wi=di(li),$i=di(ci),_i=ui;(oi&&_i(new oi(new ArrayBuffer(1)))!=mi||ai&&_i(new ai)!=hi||si&&_i(si.resolve())!=pi||li&&_i(new li)!=fi||ci&&_i(new ci)!=gi)&&(_i=function(e){var t=ui(e),r="[object Object]"==t?e.constructor:void 0,n=r?di(r):"";if(n)switch(n){case yi:return mi;case vi:return hi;case bi:return pi;case wi:return fi;case $i:return gi}return t});var xi=zr,Si=Tr,Ci=Xr,ki=ii,Fi=_i,Oi=w,Bi=gn.exports,ji=An,Ai="[object Arguments]",Pi="[object Array]",Ii="[object Object]",zi=Object.prototype.hasOwnProperty;var Ni=function(e,t,r,n,i,o){var a=Oi(e),s=Oi(t),l=a?Pi:Fi(e),c=s?Pi:Fi(t),u=(l=l==Ai?Ii:l)==Ii,d=(c=c==Ai?Ii:c)==Ii,h=l==c;if(h&&Bi(e)){if(!Bi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new xi),a||ji(e)?Si(e,t,r,n,i,o):Ci(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&zi.call(e,"__wrapped__"),f=d&&zi.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new xi),i(g,m,r,n,o)}}return!!h&&(o||(o=new xi),ki(e,t,r,n,i,o))},Di=E;var Ei=function e(t,r,n,i,o){return t===r||(null==t||null==r||!Di(t)&&!Di(r)?t!=t&&r!=r:Ni(t,r,n,i,e,o))},Hi=zr,Mi=Ei;var Vi=U;var Li=function(e){return e==e&&!Vi(e)},Ti=Li,Ri=Yn;var Wi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},qi=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Hi;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Mi(u,c,3,n,d):h))return!1}}return!0},Ui=function(e){for(var t=Ri(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ti(i)]}return t},Qi=Wi;var Zi=Ot,Gi=fn,Xi=w,Ki=vn,Yi=bn,Ji=jt;var eo=function(e,t){return null!=e&&t in Object(e)},to=function(e,t,r){for(var n=-1,i=(t=Zi(t,e)).length,o=!1;++n<i;){var a=Ji(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Yi(i)&&Ki(a,i)&&(Xi(e)||Gi(e))};var ro=Ei,no=Nt,io=function(e,t){return null!=e&&to(e,t,eo)},oo=q,ao=Li,so=Wi,lo=jt;var co=It;var uo=function(e){return function(t){return null==t?void 0:t[e]}},ho=function(e){return function(t){return co(t,e)}},po=q,fo=jt;var go=function(e){var t=Ui(e);return 1==t.length&&t[0][2]?Qi(t[0][0],t[0][1]):function(r){return r===e||qi(r,e,t)}},mo=function(e,t){return oo(e)&&ao(t)?so(lo(e),t):function(r){var n=no(r,e);return void 0===n&&n===t?io(r,e):ro(t,n,3)}},yo=function(e){return e},vo=w,bo=function(e){return po(e)?uo(fo(e)):ho(e)};var wo=function(e){return"function"==typeof e?e:null==e?yo:"object"==typeof e?vo(e)?mo(e[0],e[1]):go(e):bo(e)},$o=wo,_o=Zn,xo=Yn;var So=function(e){return function(t,r,n){var i=Object(t);if(!_o(t)){var o=$o(r);t=xo(t),r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}};var Co=/\s/;var ko=function(e){for(var t=e.length;t--&&Co.test(e.charAt(t)););return t},Fo=/^\s+/;var Oo=function(e){return e?e.slice(0,ko(e)+1).replace(Fo,""):e},Bo=U,jo=V,Ao=/^[-+]0x[0-9a-f]+$/i,Po=/^0b[01]+$/i,Io=/^0o[0-7]+$/i,zo=parseInt;var No=function(e){if("number"==typeof e)return e;if(jo(e))return NaN;if(Bo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Oo(e);var r=Po.test(e);return r||Io.test(e)?zo(e.slice(2),r?2:8):Ao.test(e)?NaN:+e},Do=1/0;var Eo=function(e){return e?(e=No(e))===Do||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Ho=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},Mo=wo,Vo=function(e){var t=Eo(e),r=t%1;return t==t?r?t-r:t:0},Lo=Math.max;var To=So((function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vo(r);return i<0&&(i=Lo(n+i,0)),Ho(e,Mo(t),i)})),Ro=Ei;var Wo=function(e,t){return Ro(e,t)};let qo=sa();const Uo=e=>na(e,qo);let Qo=sa();Uo.write=e=>na(e,Qo);let Zo=sa();Uo.onStart=e=>na(e,Zo);let Go=sa();Uo.onFrame=e=>na(e,Go);let Xo=sa();Uo.onFinish=e=>na(e,Xo);let Ko=[];Uo.setTimeout=(e,t)=>{let r=Uo.now()+t,n=()=>{let e=Ko.findIndex((e=>e.cancel==n));~e&&Ko.splice(e,1),ta-=~e?1:0},i={time:r,handler:e,cancel:n};return Ko.splice(Yo(r),0,i),ta+=1,ia(),i};let Yo=e=>~(~Ko.findIndex((t=>t.time>e))||~Ko.length);Uo.cancel=e=>{Zo.delete(e),Go.delete(e),Xo.delete(e),qo.delete(e),Qo.delete(e)},Uo.sync=e=>{ra=!0,Uo.batchedUpdates(e),ra=!1},Uo.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Uo.onStart(r)}return n.handler=e,n.cancel=()=>{Zo.delete(r),t=null},n};let Jo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Uo.use=e=>Jo=e,Uo.now="undefined"!=typeof performance?()=>performance.now():Date.now,Uo.batchedUpdates=e=>e(),Uo.catch=console.error,Uo.frameLoop="always",Uo.advance=()=>{"demand"!==Uo.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):aa()};let ea=-1,ta=0,ra=!1;function na(e,t){ra?(t.delete(e),e(0)):(t.add(e),ia())}function ia(){ea<0&&(ea=0,"demand"!==Uo.frameLoop&&Jo(oa))}function oa(){~ea&&(Jo(oa),Uo.batchedUpdates(aa))}function aa(){let e=ea;ea=Uo.now();let t=Yo(ea);t&&(la(Ko.splice(0,t),(e=>e.handler())),ta-=t),ta?(Zo.flush(),qo.flush(e?Math.min(64,ea-e):16.667),Go.flush(),Qo.flush(),Xo.flush()):ea=-1}function sa(){let e=new Set,t=e;return{add(r){ta+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(ta-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,ta-=t.size,la(t,(t=>t(r)&&e.add(t))),ta+=e.size,t=e)}}}function la(e,t){e.forEach((e=>{try{t(e)}catch(e){Uo.catch(e)}}))}function ca(){}const ua={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 da(e,t){if(ua.arr(e)){if(!ua.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const ha=(e,t)=>e.forEach(t);function pa(e,t,r){if(ua.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const fa=e=>ua.und(e)?[]:ua.arr(e)?e:[e];function ga(e,t){if(e.size){const r=Array.from(e);e.clear(),ha(r,t)}}const ma=(e,...t)=>ga(e,(e=>e(...t))),ya=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let va,ba,wa=null,$a=!1,_a=ca;var xa=Object.freeze({__proto__:null,get createStringInterpolator(){return va},get to(){return ba},get colors(){return wa},get skipAnimation(){return $a},get willAdvance(){return _a},assign:e=>{e.to&&(ba=e.to),e.now&&(Uo.now=e.now),void 0!==e.colors&&(wa=e.colors),null!=e.skipAnimation&&($a=e.skipAnimation),e.createStringInterpolator&&(va=e.createStringInterpolator),e.requestAnimationFrame&&Uo.use(e.requestAnimationFrame),e.batchedUpdates&&(Uo.batchedUpdates=e.batchedUpdates),e.willAdvance&&(_a=e.willAdvance),e.frameLoop&&(Uo.frameLoop=e.frameLoop)}});const Sa=new Set;let Ca=[],ka=[],Fa=0;const Oa={get idle(){return!Sa.size&&!Ca.length},start(e){Fa>e.priority?(Sa.add(e),Uo.onStart(Ba)):(ja(e),Uo(Pa))},advance:Pa,sort(e){if(Fa)Uo.onFrame((()=>Oa.sort(e)));else{const t=Ca.indexOf(e);~t&&(Ca.splice(t,1),Aa(e))}},clear(){Ca=[],Sa.clear()}};function Ba(){Sa.forEach(ja),Sa.clear(),Uo(Pa)}function ja(e){Ca.includes(e)||Aa(e)}function Aa(e){Ca.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(Ca,(t=>t.priority>e.priority)),0,e)}function Pa(e){const t=ka;for(let r=0;r<Ca.length;r++){const n=Ca[r];Fa=n.priority,n.idle||(_a(n),n.advance(e),n.idle||t.push(n))}return Fa=0,ka=Ca,ka.length=0,Ca=t,Ca.length>0}const Ia="[-+]?\\d*\\.?\\d+",za=Ia+"%";function Na(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Da=new RegExp("rgb"+Na(Ia,Ia,Ia)),Ea=new RegExp("rgba"+Na(Ia,Ia,Ia,Ia)),Ha=new RegExp("hsl"+Na(Ia,za,za)),Ma=new RegExp("hsla"+Na(Ia,za,za,Ia)),Va=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,La=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ta=/^#([0-9a-fA-F]{6})$/,Ra=/^#([0-9a-fA-F]{8})$/;function Wa(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function qa(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Wa(i,n,e+1/3),a=Wa(i,n,e),s=Wa(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Ua(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Qa(e){return(parseFloat(e)%360+360)%360/360}function Za(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ga(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Xa(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ta.exec(e))?parseInt(t[1]+"ff",16)>>>0:wa&&void 0!==wa[e]?wa[e]:(t=Da.exec(e))?(Ua(t[1])<<24|Ua(t[2])<<16|Ua(t[3])<<8|255)>>>0:(t=Ea.exec(e))?(Ua(t[1])<<24|Ua(t[2])<<16|Ua(t[3])<<8|Za(t[4]))>>>0:(t=Va.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ra.exec(e))?parseInt(t[1],16)>>>0:(t=La.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ha.exec(e))?(255|qa(Qa(t[1]),Ga(t[2]),Ga(t[3])))>>>0:(t=Ma.exec(e))?(qa(Qa(t[1]),Ga(t[2]),Ga(t[3]))|Za(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 Ka=(e,t,r)=>{if(ua.fun(e))return e;if(ua.arr(e))return Ka({range:e,output:t,extrapolate:r});if(ua.str(e.output[0]))return va(e);const n=e,i=n.output,o=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,o);return function(e,t,r,n,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>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};const Ya=1.70158,Ja=1.525*Ya,es=Ya+1,ts=2*Math.PI/3,rs=2*Math.PI/4.5,ns=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},is={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=>es*e*e*e-Ya*e*e,easeOutBack:e=>1+es*Math.pow(e-1,3)+Ya*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ja)/2:(Math.pow(2*e-2,2)*((Ja+1)*(2*e-2)+Ja)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ts),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ts)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*rs)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*rs)/2+1,easeInBounce:e=>1-ns(1-e),easeOutBounce:ns,easeInOutBounce:e=>e<.5?(1-ns(1-2*e))/2:(1+ns(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,i="end"===t?Math.floor(n):Math.ceil(n);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},os.apply(this,arguments)}const as=Symbol.for("FluidValue.get"),ss=Symbol.for("FluidValue.observers"),ls=e=>Boolean(e&&e[as]),cs=e=>e&&e[as]?e[as]():e,us=e=>e[ss]||null;function ds(e,t){let r=e[ss];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class hs{constructor(e){if(this[as]=void 0,this[ss]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ps(this,e)}}const ps=(e,t)=>ms(e,as,t);function fs(e,t){if(e[as]){let r=e[ss];r||ms(e,ss,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function gs(e,t){let r=e[ss];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ss]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const ms=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ys=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bs=new RegExp(`(${ys.source})(%|[a-z]+)`,"i"),ws=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,$s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_s=e=>{const[t,r]=xs(e);if(!t||ya())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&$s.test(r)?_s(r):r||e},xs=e=>{const t=$s.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Ss;const Cs=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,ks=e=>{Ss||(Ss=wa?new RegExp(`(${Object.keys(wa).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>cs(e).replace($s,_s).replace(vs,Xa).replace(Ss,Xa))),r=t.map((e=>e.match(ys).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ka(os({},e,{output:t}))));return e=>{var r;const i=!bs.test(t[0])&&(null==(r=t.find((e=>bs.test(e))))?void 0:r.replace(ys,""));let o=0;return t[0].replace(ys,(()=>`${n[o++](e)}${i||""}`)).replace(ws,Cs)}},Fs="react-spring: ",Os=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${Fs}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Bs=Os(console.warn);const js=Os(console.warn);function As(e){return ua.str(e)&&("#"==e[0]||/\d/.test(e)||!ya()&&$s.test(e)||e in(wa||{}))}const Ps=ya()?l:c,Is=()=>{const e=a(!1);return Ps((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function zs(){const e=u()[1],t=Is();return()=>{t.current&&e(Math.random())}}const Ns=e=>l(e,Ds),Ds=[];function Es(e){const t=a();return l((()=>{t.current=e})),t.current}const Hs=Symbol.for("Animated:node"),Ms=e=>e&&e[Hs],Vs=(e,t)=>{return r=e,n=Hs,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},Ls=e=>e&&e[Hs]&&e[Hs].getPayload();class Ts{constructor(){this.payload=void 0,Vs(this,this)}getPayload(){return this.payload||[]}}class Rs extends Ts{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,ua.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Rs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ua.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,ua.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Ws extends Rs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Ka({output:[e,e]})}static create(e){return new Ws(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ua.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=Ka({output:[this.getValue(),e]})),this._value=0,super.reset()}}const qs={dependencies:null};class Us extends Ts{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return pa(this.source,((r,n)=>{var i;(i=r)&&i[Hs]===i?t[n]=r.getValue(e):ls(r)?t[n]=cs(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ha(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return pa(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){qs.dependencies&&ls(e)&&qs.dependencies.add(e);const t=Ls(e);t&&ha(t,(e=>this.add(e)))}}class Qs extends Us{constructor(e){super(e)}static create(e){return new Qs(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(Zs)),!0)}}function Zs(e){return(As(e)?Ws:Rs).create(e)}function Gs(e){const t=Ms(e);return t?t.constructor:ua.arr(e)?Qs:As(e)?Ws:Rs}function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xs.apply(this,arguments)}const Ks=(e,t)=>{const r=!ua.fun(e)||e.prototype&&e.prototype.isReactComponent;return d(((n,o)=>{const s=a(null),c=r&&h((e=>{s.current=function(e,t){e&&(ua.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,d]=function(e,t){const r=new Set;qs.dependencies=r,e.style&&(e=Xs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Us(e),qs.dependencies=null,[e,r]}(n,t),p=zs(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new Ys(f,d),m=a();Ps((()=>(m.current=g,ha(d,(e=>fs(e,g))),()=>{m.current&&(ha(m.current.deps,(e=>gs(e,m.current))),Uo.cancel(m.current.update))}))),l(f,[]),Ns((()=>()=>{const e=m.current;ha(e.deps,(t=>gs(t,e)))}));const y=t.getComponentProps(u.getValue());return i.createElement(e,Xs({},y,{ref:c}))}))};class Ys{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Uo.write(this.update)}}const Js=Symbol.for("AnimatedComponent"),el=e=>ua.str(e)?e:e&&ua.str(e.displayName)?e.displayName:ua.fun(e)&&e.name||null;function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tl.apply(this,arguments)}function rl(e,...t){return ua.fun(e)?e(...t):e}const nl=(e,t)=>!0===e||!!(t&&e&&(ua.fun(e)?e(t):fa(e).includes(t))),il=(e,t)=>ua.obj(e)?t&&e[t]:e,ol=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,al=e=>e,sl=(e,t=al)=>{let r=ll;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);ua.und(r)||(n[i]=r)}return n},ll=["config","onProps","onStart","onChange","onPause","onResume","onRest"],cl={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 ul(e){const t=function(e){const t={};let r=0;if(pa(e,((e,n)=>{cl[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return pa(e,((e,n)=>n in t||(r[n]=e))),r}return tl({},e)}function dl(e){return e=cs(e),ua.arr(e)?e.map(dl):As(e)?xa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hl(e){return ua.fun(e)||ua.arr(e)&&ua.obj(e[0])}const pl=tl({},{tension:170,friction:26},{mass:1,damping:1,easing:is.linear,clamp:!1});class fl{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,pl)}}function gl(e,t){if(ua.und(t.decay)){const r=!ua.und(t.tension)||!ua.und(t.friction);!r&&ua.und(t.frequency)&&ua.und(t.damping)&&ua.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const ml=[];class yl{constructor(){this.changed=!1,this.values=ml,this.toValues=null,this.fromValues=ml,this.to=void 0,this.from=void 0,this.config=new fl,this.immediate=!1}}function vl(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=nl(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{ua.und(r.pause)||(i.paused=nl(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||nl(e,t)),c=rl(r.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-Uo.now()}function p(){c>0&&!xa.skipAnimation?(i.delayed=!0,u=Uo.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(tl({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const bl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?_l(e.get()):t.every((e=>e.noop))?wl(e.get()):$l(e.get(),t.every((e=>e.finished))),wl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$l=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),_l=e=>({value:e,cancelled:!0,finished:!1});function xl(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=sl(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<=(r.cancelId||0)&&_l(n)||i!==r.asyncId&&$l(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Cl,a=new kl;return(async()=>{if(xa.skipAnimation)throw Sl(r),a.result=$l(n,!1),d(a),a;p(o);const s=ua.obj(e)?tl({},e):tl({},t,{to:e});s.parentId=i,pa(c,((e,t)=>{ua.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(xa.skipAnimation)return Sl(r),$l(n,!1);try{let t;t=ua.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=$l(n.get(),!0,!1)}catch(e){if(e instanceof Cl)g=e.result;else{if(!(e instanceof kl))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return ua.fun(a)&&Uo.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function Sl(e,t){ga(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Cl 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 kl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Fl=e=>e instanceof Bl;let Ol=1;class Bl extends hs{constructor(...e){super(...e),this.id=Ol++,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=Ms(this);return e&&e.getValue()}to(...e){return xa.to(this,e)}interpolate(...e){return Bs(`${Fs}The "interpolate" function is deprecated in v9 (use "to" instead)`),xa.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){ds(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Oa.sort(this),ds(this,{type:"priority",parent:this,priority:e})}}const jl=Symbol.for("SpringPhase"),Al=e=>(1&e[jl])>0,Pl=e=>(2&e[jl])>0,Il=e=>(4&e[jl])>0,zl=(e,t)=>t?e[jl]|=3:e[jl]&=-3,Nl=(e,t)=>t?e[jl]|=4:e[jl]&=-5;class Dl extends Bl{constructor(e,t){if(super(),this.key=void 0,this.animation=new yl,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,!ua.und(e)||!ua.und(t)){const r=ua.obj(e)?tl({},e):tl({},t,{from:e});ua.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Pl(this)||this._state.asyncTo)||Il(this)}get goal(){return cs(this.animation.to)}get velocity(){const e=Ms(this);return e instanceof Rs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Al(this)}get isAnimating(){return Pl(this)}get isPaused(){return Il(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=Ls(n.to);!a&&ls(n.to)&&(o=fa(cs(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Ws?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=ua.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(ua.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,n=i.clamp?0:i.bounce,l=!ua.und(n),p=r==c?s.v0>0:r<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*n,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=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)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}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)&&(r=!0)}));const s=Ms(this),l=s.getValue();if(t){const e=cs(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return Uo.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pl(this)){const{to:e,config:t}=this.animation;Uo.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 r;return ua.und(e)?(r=this.queue||[],this.queue=[]):r=[ua.obj(e)?e:tl({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>bl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Sl(this._state,e&&this._lastCallId),Uo.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:r,from:n}=e;r=ua.obj(r)?r[t]:r,(null==r||hl(r))&&(r=void 0),n=ua.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return Al(this)||(e.reverse&&([r,n]=[n,r]),n=cs(n),ua.und(n)?Ms(this)||this._set(r):this._set(n)),i}_update(e,t){let r=tl({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,sl(r,((e,t)=>/^on/.test(t)?il(e,n):e))),Rl(this,r,"onProps"),Wl(this,"onProps",r,this);const o=this._prepareNode(r);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 vl(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{Il(this)||(Nl(this,!0),ma(a.pauseQueue),Wl(this,"onPause",$l(this,El(this,this.animation.to)),this))},resume:()=>{Il(this)&&(Nl(this,!1),Pl(this)&&this._resume(),ma(a.resumeQueue),Wl(this,"onResume",$l(this,El(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=Hl(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(_l(this));const n=!ua.und(e.to),i=!ua.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(_l(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||n||t.default&&!ua.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!da(d,c);h&&(s.from=d),d=cs(d);const p=!da(u,l);p&&this._focus(u);const f=hl(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(gl(r=tl({},r),t),t=tl({},r,t)),gl(e,t),Object.assign(e,t);for(const t in pl)null==e[t]&&(e[t]=pl[t]);let{mass:n,frequency:i,damping:o}=e;ua.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,rl(t.config,o),t.config!==a.config?rl(a.config,o):void 0);let v=Ms(this);if(!v||ua.und(u))return r($l(this,!0));const b=ua.und(t.reset)?i&&!t.default:!ua.und(d)&&nl(t.reset,o),w=b?d:this.get(),$=dl(u),_=ua.num($)||ua.arr($)||As($),x=!f&&(!_||nl(a.immediate||t.immediate,o));if(p){const e=Gs(u);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set($)}}const S=v.constructor;let C=ls(u),k=!1;if(!C){const e=b||!Al(this)&&h;(p||e)&&(k=da(dl(w),$),C=!k),(da(s.immediate,x)||x)&&da(g.decay,m)&&da(g.velocity,y)||(C=!0)}if(k&&Pl(this)&&(s.changed&&!b?C=!0:C||this._stop(l)),!f&&((C||ls(l))&&(s.values=v.getPayload(),s.toValues=ls(u)?null:S==Ws?[1]:fa($)),s.immediate!=x&&(s.immediate=x,x||b||this._set(l)),C)){const{onRest:e}=s;ha(Tl,(e=>Rl(this,t,e)));const n=$l(this,El(this,l));ma(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&Uo.batchedUpdates((()=>{s.changed=!b,null==e||e(n,this),b?rl(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}b&&this._set(w),f?r(xl(t.to,t,this._state,this)):C?this._start():Pl(this)&&!p?this._pendingCalls.add(r):r(wl(w))}_focus(e){const t=this.animation;e!==t.to&&(us(this)&&this._detach(),t.to=e,us(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ls(t)&&(fs(t,this),Fl(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ls(e)&&gs(e,this)}_set(e,t=!0){const r=cs(e);if(!ua.und(r)){const e=Ms(this);if(!e||!da(r,e.getValue())){const n=Gs(r);e&&e.constructor==n?e.setValue(r):Vs(this,n.create(r)),e&&Uo.batchedUpdates((()=>{this._onChange(r,t)}))}}return Ms(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Wl(this,"onStart",$l(this,El(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),rl(this.animation.onChange,e,this)),rl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ms(this).reset(cs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Pl(this)||(zl(this,!0),Il(this)||this._resume())}_resume(){xa.skipAnimation?this.finish():Oa.start(this)}_stop(e,t){if(Pl(this)){zl(this,!1);const r=this.animation;ha(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),ds(this,{type:"idle",parent:this});const n=t?_l(this.get()):$l(this.get(),El(this,null!=e?e:r.to));ma(this._pendingCalls,n),r.changed&&(r.changed=!1,Wl(this,"onRest",n,this))}}}function El(e,t){const r=dl(t);return da(dl(e.get()),r)}function Hl(e,t=e.loop,r=e.to){let n=rl(t);if(n){const i=!0!==n&&ul(n),o=(i||e).reverse,a=!i||i.reset;return Ml(tl({},e,{loop:t,default:!1,pause:void 0,to:!o||hl(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function Ml(e){const{to:t,from:r}=e=ul(e),n=new Set;return ua.obj(t)&&Ll(t,n),ua.obj(r)&&Ll(r,n),e.keys=n.size?Array.from(n):null,e}function Vl(e){const t=Ml(e);return ua.und(t.default)&&(t.default=sl(t)),t}function Ll(e,t){pa(e,((e,r)=>null!=e&&t.add(r)))}const Tl=["onStart","onRest","onChange","onPause","onResume"];function Rl(e,t,r){e.animation[r]=t[r]!==ol(t,r)?il(t[r],e.key):void 0}function Wl(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const ql=["onStart","onChange","onRest"];let Ul=1;class Ql{constructor(e,t){this.id=Ul++,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(tl({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];ua.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ml(e)),this}start(e){let{queue:t}=this;return e?t=fa(e).map(Ml):this.queue=[],this._flush?this._flush(this,t):(ec(this,t),Zl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;ha(fa(t),(t=>r[t].stop(!!e)))}else Sl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(ua.und(e))this.start({pause:!0});else{const t=this.springs;ha(fa(e),(e=>t[e].pause()))}return this}resume(e){if(ua.und(e))this.start({pause:!1});else{const t=this.springs;ha(fa(e),(e=>t[e].resume()))}return this}each(e){pa(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,ga(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&ga(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,ga(r,(([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)}Uo.onFrame(this._onFrame)}}function Zl(e,t){return Promise.all(t.map((t=>Gl(e,t)))).then((t=>bl(e,t)))}async function Gl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=ua.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=ua.arr(i)||ua.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ha(ql,(r=>{const n=t[r];if(ua.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ma(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===ol(t,"cancel");(u||p&&d.asyncId)&&h.push(vl(++e._lastAsyncId,{props:t,state:d,actions:{pause:ca,resume:ca,start(t,r){p?(Sl(d,e._lastAsyncId),r(_l(e))):(t.onRest=s,r(xl(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=bl(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=Hl(t,a,i);if(r)return ec(e,[r]),Gl(e,r,!0)}return l&&Uo.batchedUpdates((()=>l(f,e,e.item))),f}function Xl(e,t){const r=tl({},e.springs);return t&&ha(fa(t),(e=>{ua.und(e.keys)&&(e=Ml(e)),ua.obj(e.to)||(e=tl({},e,{to:void 0})),Jl(r,e,(e=>Yl(e)))})),Kl(e,r),r}function Kl(e,t){pa(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,fs(t,e))}))}function Yl(e,t){const r=new Dl;return r.key=e,t&&fs(r,t),r}function Jl(e,t,r){t.keys&&ha(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function ec(e,t){ha(t,(t=>{Jl(e.springs,t,(t=>Yl(t,e)))}))}const tc=["children"],rc=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,tc);const n=p(nc),o=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=u((()=>({inputs:t,result:e()}))),n=a(),i=n.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=r;return l((()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:c}=nc;return i.createElement(c,{value:r},t)},nc=(ic=rc,oc={},Object.assign(ic,i.createContext(oc)),ic.Provider._context=ic,ic.Consumer._context=ic,ic);var ic,oc;rc.Provider=nc.Provider,rc.Consumer=nc.Consumer;const ac=()=>{const e=[],t=function(t){js(`${Fs}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 n=[];return ha(e,((e,i)=>{if(ua.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return ha(e,(e=>e.pause(...arguments))),this},t.resume=function(){return ha(e,(e=>e.resume(...arguments))),this},t.set=function(t){ha(e,(e=>e.set(t)))},t.start=function(t){const r=[];return ha(e,((e,n)=>{if(ua.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return ha(e,(e=>e.stop(...arguments))),this},t.update=function(t){return ha(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return ua.fun(e)?e(r,t):e};return t._getProps=r,t};function sc(e,t){const r=ua.fun(e),[[n],i]=function(e,t,r){const n=ua.fun(t)&&t;n&&!r&&(r=[]);const i=f((()=>n||3==arguments.length?ac():void 0),[]),o=a(0),s=zs(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const r=Xl(e,t);return o.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Zl(e,t):new Promise((n=>{Kl(e,r),l.queue.push((()=>{n(Zl(e,t))})),s()}))}})),[]),c=a([...l.ctrls]),u=[],d=Es(e)||0;function h(e,r){for(let i=e;i<r;i++){const e=c.current[i]||(c.current[i]=new Ql(null,l.flush)),r=n?n(i,e):t[i];r&&(u[i]=Vl(r))}}f((()=>{ha(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),f((()=>{h(0,Math.min(d,e))}),r);const g=c.current.map(((e,t)=>Xl(e,u[t]))),m=p(rc),y=Es(m),v=m!==y&&function(e){for(const t in e)return!0;return!1}(m);Ps((()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],ha(e,(e=>e()))),ha(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),Ns((()=>()=>{ha(l.ctrls,(e=>e.stop(!0)))}));const b=g.map((e=>tl({},e)));return i?[b,i]:b}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}let lc;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(lc||(lc={}));class cc extends Bl{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Ka(...t);const r=this._get(),n=Gs(r);Vs(this,n.create(r))}advance(e){const t=this._get();da(t,this.get())||(Ms(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&dc(this._active)&&hc(this)}_get(){const e=ua.arr(this.source)?this.source.map(cs):fa(cs(this.source));return this.calc(...e)}_start(){this.idle&&!dc(this._active)&&(this.idle=!1,ha(Ls(this),(e=>{e.done=!1})),xa.skipAnimation?(Uo.batchedUpdates((()=>this.advance())),hc(this)):Oa.start(this))}_attach(){let e=1;ha(fa(this.source),(t=>{ls(t)&&fs(t,this),Fl(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){ha(fa(this.source),(e=>{ls(e)&&gs(e,this)})),this._active.clear(),hc(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=fa(this.source).reduce(((e,t)=>Math.max(e,(Fl(t)?t.priority:0)+1)),0))}}function uc(e){return!1!==e.idle}function dc(e){return!e.size||Array.from(e).every(uc)}function hc(e){e.idle||(e.idle=!0,ha(Ls(e),(e=>{e.done=!0})),ds(e,{type:"idle",parent:e}))}function pc(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}xa.assign({createStringInterpolator:ks,to:(e,t)=>new cc(e,t)});const fc=["style","children","scrollTop","scrollLeft","viewBox"],gc=/^--/;function mc(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||gc.test(e)||vc.hasOwnProperty(e)&&vc[e]?(""+t).trim():t+"px"}const yc={};let vc={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 bc=["Webkit","Ms","Moz","O"];vc=Object.keys(vc).reduce(((e,t)=>(bc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),vc);const wc=["x","y","z"],$c=/^(matrix|translate|scale|rotate|skew)/,_c=/^(translate)/,xc=/^(rotate|skew)/,Sc=(e,t)=>ua.num(e)&&0!==e?e+t:e,Cc=(e,t)=>ua.arr(e)?e.every((e=>Cc(e,t))):ua.num(e)?e===t:parseFloat(e)===t;class kc extends Us{constructor(e){let{x:t,y:r,z:n}=e,i=pc(e,wc);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>Sc(e,"px"))).join(",")})`,Cc(e,0)]))),pa(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if($c.test(t)){if(delete i[t],ua.und(e))return;const r=_c.test(t)?"px":xc.test(t)?"deg":"";o.push(fa(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${Sc(i,r)})`,Cc(i,0)]:e=>[`${t}(${e.map((e=>Sc(e,r))).join(",")})`,Cc(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Fc(o,a)),super(i)}}class Fc extends hs{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 ha(this.inputs,((r,n)=>{const i=cs(r[0]),[o,a]=this.transforms[n](ua.arr(i)?i:r.map(cs));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&ha(this.inputs,(e=>ha(e,(e=>ls(e)&&fs(e,this)))))}observerRemoved(e){0==e&&ha(this.inputs,(e=>ha(e,(e=>ls(e)&&gs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),ds(this,e)}}const Oc=["scrollTop","scrollLeft"];xa.assign({batchedUpdates:v,createStringInterpolator:ks,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 Bc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new Us(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=el(e)||"Anonymous";return(e=ua.str(e)?o[e]||(o[e]=Ks(e,i)):e[Js]||(e[Js]=Ks(e,i))).displayName=`Animated(${t})`,e};return pa(e,((t,r)=>{ua.arr(e)&&(r=el(t)),o[r]=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 r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=n,c=pc(n,fc),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:yc[t]||(yc[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 r=mc(t,i[t]);gc.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new kc(e),getComponentProps:e=>pc(e,Oc)}),jc=Bc.animated,Ac={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Pc=e=>Object.keys(Ac).reduce(((t,r)=>{const n=Ac[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),Ic=Pc("max-width"),zc=(Pc("min-width"),g.div`
|
|
312
312
|
display: inline-block;
|
|
313
313
|
position: relative;
|
|
314
314
|
width: ${e=>e.$size}px;
|
|
315
315
|
height: ${e=>e.$size}px;
|
|
316
|
-
`),
|
|
316
|
+
`),Nc=y`
|
|
317
317
|
0% {
|
|
318
318
|
transform: rotate(0deg);
|
|
319
319
|
}
|
|
320
320
|
100% {
|
|
321
321
|
transform: rotate(360deg);
|
|
322
322
|
}
|
|
323
|
-
`,
|
|
323
|
+
`,Dc=g.div`
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
display: block;
|
|
326
326
|
position: absolute;
|
|
@@ -332,12 +332,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
332
332
|
border-radius: 50%;
|
|
333
333
|
border-color: ${e=>e.$color||Lt.Neutral[8](e)}
|
|
334
334
|
transparent transparent transparent;
|
|
335
|
-
animation: ${
|
|
336
|
-
`,
|
|
335
|
+
animation: ${Nc} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
336
|
+
`,Ec=g(Dc)`
|
|
337
337
|
animation-delay: -0.45s;
|
|
338
|
-
`,
|
|
338
|
+
`,Hc=g(Dc)`
|
|
339
339
|
animation-delay: -0.3s;
|
|
340
|
-
`,
|
|
340
|
+
`,Mc=g(Dc)`
|
|
341
341
|
animation-delay: -0.15s;
|
|
342
342
|
`;g.button`
|
|
343
343
|
padding: 0.5rem 1rem;
|
|
@@ -405,7 +405,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
405
405
|
background-color: ${Lt.Primary(e)};
|
|
406
406
|
border: 1px solid transparent;
|
|
407
407
|
|
|
408
|
-
${
|
|
408
|
+
${Ic.mobileL} {
|
|
409
409
|
width: 100%;
|
|
410
410
|
}
|
|
411
411
|
|
|
@@ -423,7 +423,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
423
423
|
${or("H5","semibold")}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
${
|
|
426
|
+
${Ic.mobileS} {
|
|
427
427
|
height: auto;
|
|
428
428
|
}
|
|
429
429
|
`:m`
|
|
@@ -432,11 +432,11 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
432
432
|
${or("H4","semibold")}
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
${
|
|
435
|
+
${Ic.mobileS} {
|
|
436
436
|
height: auto;
|
|
437
437
|
}
|
|
438
438
|
`}
|
|
439
|
-
`;const
|
|
439
|
+
`;const Vc=g((({color:e,className:n,size:i=18})=>t(zc,{className:n,$size:i,$color:e,children:[r(Dc,{id:"inner1",$size:i-2,$borderWidth:2}),r(Ec,{id:"inner2",$size:i-2,$borderWidth:2}),r(Hc,{id:"inner3",$size:i-2,$borderWidth:2}),r(Mc,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
440
440
|
margin-right: 0.5rem;
|
|
441
441
|
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Lt.Primary(e);break;case"disabled":t=Lt.Neutral[3](e);break;default:t=Lt.Neutral[8](e)}return m`
|
|
442
442
|
#inner1,
|
|
@@ -446,7 +446,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
446
446
|
border-color: ${t} transparent transparent transparent;
|
|
447
447
|
}
|
|
448
448
|
`}}
|
|
449
|
-
`;var
|
|
449
|
+
`;var Lc,Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});var Rc=e;const Wc=e=>Rc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Rc.jsx("path",{d:"M9.99999 10.792C10.236 10.792 10.441 10.705 10.615 10.531C10.7883 10.3577 10.875 10.153 10.875 9.91701V6.70801C10.875 6.47201 10.7883 6.27067 10.615 6.10401C10.441 5.93734 10.236 5.85401 9.99999 5.85401C9.76399 5.85401 9.55899 5.94101 9.38499 6.11501C9.21166 6.28834 9.12499 6.49301 9.12499 6.72901V9.93801C9.12499 10.174 9.21166 10.3753 9.38499 10.542C9.55899 10.7087 9.76399 10.792 9.99999 10.792ZM9.99999 14.188C10.236 14.188 10.441 14.108 10.615 13.948C10.7883 13.788 10.875 13.576 10.875 13.312C10.875 13.076 10.7883 12.8713 10.615 12.698C10.441 12.5247 10.236 12.438 9.99999 12.438C9.76399 12.438 9.55899 12.5247 9.38499 12.698C9.21166 12.8713 9.12499 13.076 9.12499 13.312C9.12499 13.576 9.21166 13.788 9.38499 13.948C9.55899 14.108 9.76399 14.188 9.99999 14.188ZM9.99999 18.333C8.84733 18.333 7.76399 18.1143 6.74999 17.677C5.73599 17.2397 4.85399 16.646 4.10399 15.896C3.35399 15.146 2.76033 14.264 2.32299 13.25C1.88566 12.236 1.66699 11.1527 1.66699 10C1.66699 8.84734 1.88566 7.76401 2.32299 6.75001C2.76033 5.73601 3.35399 4.85401 4.10399 4.10401C4.85399 3.35401 5.73599 2.76034 6.74999 2.32301C7.76399 1.88567 8.84733 1.66701 9.99999 1.66701C11.1527 1.66701 12.236 1.88567 13.25 2.32301C14.264 2.76034 15.146 3.35401 15.896 4.10401C16.646 4.85401 17.2397 5.73601 17.677 6.75001C18.1143 7.76401 18.333 8.84734 18.333 10C18.333 11.1527 18.1143 12.236 17.677 13.25C17.2397 14.264 16.646 15.146 15.896 15.896C15.146 16.646 14.264 17.2397 13.25 17.677C12.236 18.1143 11.1527 18.333 9.99999 18.333Z",fill:"currentColor"})});Wc.displayName="ExclamationCircleFillIcon",Lc=Tc.ExclamationCircleFillIcon=Wc;var qc,Uc={};Object.defineProperty(Uc,"__esModule",{value:!0});var Qc=e;const Zc=e=>Qc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Qc.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});Zc.displayName="TickIcon",qc=Uc.TickIcon=Zc;const Gc=g.div`
|
|
450
450
|
display: flex;
|
|
451
451
|
justify-content: center;
|
|
452
452
|
align-items: center;
|
|
@@ -463,22 +463,22 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
463
463
|
background: transparent;
|
|
464
464
|
|
|
465
465
|
${e=>{let t,r;return e.selected&&(t=Lt.Primary(e),r=Lt.Primary(e)),e.disabled&&(t=Lt.Neutral[6](e),r=Lt.Neutral[6](e)),`\n\t\t\tborder: 1px solid ${t};\n\t\t\tbackground: ${r};\n\t\t`}}
|
|
466
|
-
`,
|
|
466
|
+
`,Xc=g.input`
|
|
467
467
|
position: absolute;
|
|
468
468
|
opacity: 0;
|
|
469
469
|
height: 100%;
|
|
470
470
|
width: 100%;
|
|
471
471
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
472
|
-
`,
|
|
472
|
+
`,Kc=g(qc)`
|
|
473
473
|
${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return m`
|
|
474
474
|
height: ${t};
|
|
475
475
|
width: ${t};
|
|
476
476
|
`}}
|
|
477
477
|
color: ${e=>e.disabled?Lt.Neutral[4]:Lt.Neutral[8]};
|
|
478
|
-
`,
|
|
478
|
+
`,Yc=g(jc.div)`
|
|
479
479
|
overflow: hidden;
|
|
480
480
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
481
|
-
`,
|
|
481
|
+
`,Jc=g.ul`
|
|
482
482
|
border-bottom-left-radius: 4px;
|
|
483
483
|
border-bottom-right-radius: 4px;
|
|
484
484
|
background: transparent;
|
|
@@ -502,10 +502,10 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
502
502
|
border-bottom-right-radius: 4px;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
${
|
|
505
|
+
${Ic.mobileL} {
|
|
506
506
|
max-height: 15rem;
|
|
507
507
|
}
|
|
508
|
-
`,
|
|
508
|
+
`,eu=g.li`
|
|
509
509
|
:hover,
|
|
510
510
|
:focus,
|
|
511
511
|
:active {
|
|
@@ -514,7 +514,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
514
514
|
${e=>{if(e.checked)return m`
|
|
515
515
|
background: ${Lt.Accent.Light[5]};
|
|
516
516
|
`}}
|
|
517
|
-
`,
|
|
517
|
+
`,tu=g.button`
|
|
518
518
|
display: flex;
|
|
519
519
|
${e=>e.multiSelect?m`
|
|
520
520
|
padding: 0.5rem 1rem;
|
|
@@ -546,7 +546,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
546
546
|
justify-content: center;
|
|
547
547
|
align-items: center;
|
|
548
548
|
background: ${Lt.Neutral[8]};
|
|
549
|
-
`;const
|
|
549
|
+
`;const ru=g.div`
|
|
550
550
|
${or("Body","regular")}
|
|
551
551
|
color: ${Lt.Neutral[1]};
|
|
552
552
|
text-align: left;
|
|
@@ -558,19 +558,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
558
558
|
-webkit-line-clamp: 2;
|
|
559
559
|
-webkit-box-orient: vertical;
|
|
560
560
|
`}}
|
|
561
|
-
`,
|
|
561
|
+
`,nu=g.span`
|
|
562
562
|
color: ${Lt.Neutral[4]};
|
|
563
563
|
display: inline;
|
|
564
564
|
padding-left: 0.4rem;
|
|
565
|
-
`,
|
|
565
|
+
`,iu=g.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex-direction: column;
|
|
568
|
-
`,
|
|
568
|
+
`,ou=g.div`
|
|
569
569
|
width: 100%;
|
|
570
570
|
height: 1.5rem;
|
|
571
571
|
word-break: break-all;
|
|
572
572
|
overflow: hidden;
|
|
573
|
-
`,
|
|
573
|
+
`,au=g.div`
|
|
574
574
|
width: 100%;
|
|
575
575
|
text-overflow: ellipsis;
|
|
576
576
|
white-space: nowrap;
|
|
@@ -589,15 +589,15 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
589
589
|
outline-color: ${Lt.Accent.Light[3]};
|
|
590
590
|
color: ${Lt.Neutral[1]};
|
|
591
591
|
}
|
|
592
|
-
`;const
|
|
592
|
+
`;const su=g((({className:e,checked:n,disabled:i,onChange:o,onKeyPress:a,displaySize:s="default",...c})=>{const[d,h]=u(n);l((()=>{h(n)}),[n]);const p=e=>{if(!i){const t=e;if(!(" "===t.key||"change"===e.type))return;o&&o(e),a&&a(t)}};return t(Gc,{selected:d,disabled:i,className:e,"data-testid":"checkbox",$displaySize:s,role:"checkbox","aria-checked":d,"aria-labelledby":"checkbox-input",tabIndex:i?-1:0,onKeyDown:p,children:[r(Xc,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:p,disabled:i,checked:d,...c}),d&&r(Kc,{id:"checkmark","data-testid":"checkmark",disabled:i,$displaySize:s})]})}))`
|
|
593
593
|
flex: 0 0 1.5rem;
|
|
594
594
|
margin-right: 1rem;
|
|
595
|
-
`,
|
|
595
|
+
`,lu=g.div`
|
|
596
596
|
width: 100%;
|
|
597
597
|
display: flex;
|
|
598
598
|
justify-content: flex-end;
|
|
599
599
|
padding: 1rem 0 0.5rem 0;
|
|
600
|
-
`,
|
|
600
|
+
`,cu=g.button`
|
|
601
601
|
${or("Body","semibold")}
|
|
602
602
|
background-color: transparent;
|
|
603
603
|
background-repeat: no-repeat;
|
|
@@ -606,17 +606,17 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
606
606
|
overflow: hidden;
|
|
607
607
|
outline: none;
|
|
608
608
|
${e=>`\n\t\t\tcolor: ${Lt.Primary(e)};\n\t\t`}
|
|
609
|
-
`,
|
|
609
|
+
`,uu=g.div`
|
|
610
610
|
width: 100%;
|
|
611
611
|
display: flex;
|
|
612
612
|
padding: 1rem 0.5rem;
|
|
613
613
|
align-items: center;
|
|
614
|
-
`,
|
|
614
|
+
`,du=g(gr.Body)``,hu=g(Lc)`
|
|
615
615
|
margin-right: 0.625rem;
|
|
616
616
|
height: 1.5rem;
|
|
617
617
|
width: 1.5rem;
|
|
618
618
|
color: ${Lt.Validation.Red.Icon};
|
|
619
|
-
`;var
|
|
619
|
+
`;var pu,fu={};Object.defineProperty(fu,"__esModule",{value:!0});var gu=e;const mu=e=>gu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:gu.jsx("path",{d:"M15.688 16.896L11.125 12.333C10.667 12.6803 10.1703 12.941 9.635 13.115C9.10033 13.2883 8.54133 13.375 7.958 13.375C6.44467 13.375 5.15667 12.8507 4.094 11.802C3.03133 10.7533 2.5 9.472 2.5 7.958C2.5 6.44467 3.03133 5.15667 4.094 4.094C5.15667 3.03133 6.44467 2.5 7.958 2.5C9.472 2.5 10.7533 3.03133 11.802 4.094C12.8507 5.15667 13.375 6.44467 13.375 7.958C13.375 8.54133 13.2917 9.10033 13.125 9.635C12.9583 10.1703 12.6943 10.66 12.333 11.104L16.917 15.708C17.0837 15.8747 17.1633 16.0727 17.156 16.302C17.1493 16.5313 17.0627 16.7293 16.896 16.896C16.7293 17.0627 16.528 17.146 16.292 17.146C16.056 17.146 15.8547 17.0627 15.688 16.896ZM7.958 11.625C8.972 11.625 9.83667 11.2673 10.552 10.552C11.2673 9.83667 11.625 8.972 11.625 7.958C11.625 6.93067 11.2707 6.05567 10.562 5.333C9.854 4.611 8.986 4.25 7.958 4.25C6.93067 4.25 6.05567 4.611 5.333 5.333C4.611 6.05567 4.25 6.93067 4.25 7.958C4.25 8.986 4.611 9.854 5.333 10.562C6.05567 11.2707 6.93067 11.625 7.958 11.625Z",fill:"currentColor"})});mu.displayName="MagnifierIcon",pu=fu.MagnifierIcon=mu;const yu=g.button`
|
|
620
620
|
display: flex;
|
|
621
621
|
justify-content: center;
|
|
622
622
|
align-items: center;
|
|
@@ -638,12 +638,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
638
638
|
background-color: ${Lt.Neutral[7]};
|
|
639
639
|
`}
|
|
640
640
|
}
|
|
641
|
-
`,
|
|
641
|
+
`,vu=o.forwardRef((({children:e,focusHighlight:t=!0,focusOutline:n="none",...i},o)=>r(yu,{ref:o,$outline:n,$highlight:t,...i,children:e}))),bu=g.li`
|
|
642
642
|
background: ${Lt.Neutral[7]};
|
|
643
643
|
display: flex;
|
|
644
644
|
border-radius: 4px;
|
|
645
645
|
align-items: center;
|
|
646
|
-
`,
|
|
646
|
+
`,wu=g.input`
|
|
647
647
|
${or("Body","regular")}
|
|
648
648
|
height: 3rem;
|
|
649
649
|
border: none;
|
|
@@ -661,30 +661,30 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
661
661
|
::-webkit-input-placeholder {
|
|
662
662
|
color: ${Lt.Neutral[3]};
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
`,$u=g(pu)`
|
|
665
665
|
height: 1.375rem;
|
|
666
666
|
width: 1.375rem;
|
|
667
667
|
margin: 0 0.5rem;
|
|
668
668
|
color: ${Lt.Neutral[3]};
|
|
669
|
-
`,
|
|
669
|
+
`,_u=g(vu)`
|
|
670
670
|
padding: 0;
|
|
671
671
|
margin: 0 0.5rem;
|
|
672
672
|
color: ${Lt.Neutral[3]};
|
|
673
673
|
cursor: pointer;
|
|
674
|
-
`,
|
|
674
|
+
`,xu=g(Zt)`
|
|
675
675
|
height: 1.375rem;
|
|
676
676
|
width: 1.375rem;
|
|
677
677
|
color: ${Lt.Neutral[3]};
|
|
678
|
-
`,
|
|
678
|
+
`,Su=d(((e,n)=>{const{onClear:i,...o}=e;return t(bu,{children:[r($u,{}),r(wu,{ref:n,...o}),o.value&&r(_u,{"aria-label":"Clear search",focusOutline:"browser",onClick:i,children:r(xu,{})})]},"search")})),Cu=({listItems:e,listExtractor:i,valueExtractor:o,onSelectItem:s,listStyleWidth:c,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,multiSelect:y,selectedItems:v,onSelectAll:b,onRetry:w,itemsLoadState:$="success",itemTruncationType:_="end",renderListItem:x,onBlur:S,...C})=>{const[k,F]=u(0),[O,B]=u(""),[j,A]=u(e),[P,I]=u(0),z=sc({height:P}),N=a(),D=a(),E=a([]),H=a(),M=a(k),V=a(j),L=e=>{M.current=e,F(e)},T=e=>{V.current=e,A(e)};l((()=>(document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)})),[]),l((()=>{U(O)}),[O]),l((()=>{B(""),d?(I(Q()),H&&H.current?(H.current.focus(),L(-1)):E.current[k]&&E.current[k].focus()):I(0)}),[d]),l((()=>{if(d){const e=Q();I(e)}}),[j]),l((()=>{T(e),B(""),L(0)}),[e]);const R=e=>i?i(e):e.toString(),W=e=>{const t=i?i(e):e.toString();let r=0;return D&&D.current&&(r=D.current.getBoundingClientRect().width-100),Qt.shouldTruncateToTwoLines("string"==typeof t?t:t.title,r)},q=e=>!!To(v,(t=>Wo(t,e))),U=t=>{if(""===t)T(e);else if(g){const e=g(t);T(e)}else{const r=e.filter((e=>{const r=R(e),n="object"==typeof r?r.title.toLowerCase():r.toLowerCase();return"object"==typeof r&&r.secondaryLabel?n.includes(t.trim().toLowerCase())||r.secondaryLabel.includes(t.trim().toLowerCase()):n.includes(t.trim().toLowerCase())}));T(r)}},Q=()=>D&&D.current?D.current.getBoundingClientRect().height:0,Z=e=>{if(N&&N.current.contains(e.target))switch(e.code){case"ArrowDown":if(M.current<V.current.length-1){const e=M.current+1;E.current[e].focus(),L(e)}break;case"ArrowUp":if(M.current>0){const e=M.current-1;E.current[e].focus(),L(M.current-1)}break;case"Escape":m&&m()}},G=(e,t)=>{e.preventDefault(),s&&s(t,(e=>o?o(e):e)(t))},X=e=>{const t=e.target.value;B(t),f&&f()},K=()=>{B(""),f&&f()},Y=()=>{w&&w()},J=()=>{S&&S()},ee=e=>{const n=R(e),i="string"==typeof n?n:n.title;return t(iu,{"data-testid":"truncate-middle-container",children:[r(ou,{children:i}),t(au,{children:[" ",i]})]})},te=e=>{const i=R(e);return"string"==typeof i?r(n,{children:i}):t(n,{children:[i.title,i.secondaryLabel&&r(nu,{children:i.secondaryLabel})]})},re=()=>{if(!w||w&&"success"===$)return j.map(((e,n)=>r(eu,{checked:q(e)&&!y,children:t(tu,{onClick:t=>{G(t,e)},ref:e=>E.current[n]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,multiSelect:y,onBlur:J,children:[y&&r(su,{checked:q(e),displaySize:"small"}),x?x(e,{selected:q(e)}):r(ru,{truncateType:_,children:"middle"===_&&W(e)?ee(e):te(e)})]})},((e,t)=>`item_${t}__${o?o(e):e}`)(e,n))))},ne=()=>{if(y&&j.length>0&&!O&&"success"===$)return r(lu,{children:r(cu,{onClick:b,children:0===v.length?"Select all":"Unselect all"})},"selectAll")},ie=()=>{if(O&&0===j.length)return t(uu,{"data-testid":"list-no-results",children:[r(hu,{"data-testid":"no-result-icon"}),r(du,{children:"No results found."})]},"noResults")},oe=()=>{if(w&&"loading"===$)return t(uu,{"data-testid":"list-loading",children:[r(Vc,{$buttonStyle:"secondary",size:24}),r(du,{children:"Loading..."})]},"loading")},ae=()=>{if(w&&"fail"===$)return t(uu,{"data-testid":"list-fail",children:[r(hu,{"data-testid":"load-error-icon"}),r(du,{children:"Failed to load."}),r(cu,{onClick:Y,children:"Try again."})]},"noResults")};return r(Yc,{style:z,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:N,children:(()=>{if(d)return t(Jc,{ref:D,"data-testid":"dropdown-list",width:c,role:"list",...C,children:[(h||g)&&"success"===$?r(Su,{ref:H,onChange:X,value:O,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:K}):null,ne(),ie(),oe(),ae(),re()]})})()})};var ku,Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var Ou=e;const Bu=e=>Ou.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Ou.jsx("path",{d:"M2.62611 5.81312C2.84811 5.59112 3.10478 5.48012 3.39611 5.48012C3.68811 5.48012 3.94511 5.59112 4.16711 5.81312L10.1881 11.8341L16.2301 5.79212C16.4381 5.58412 16.6881 5.48012 16.9801 5.48012C17.2714 5.48012 17.5281 5.59112 17.7501 5.81312C17.9588 6.02179 18.0631 6.27545 18.0631 6.57412C18.0631 6.87279 17.9588 7.12612 17.7501 7.33412L10.8131 14.2721C10.7158 14.3688 10.6151 14.4381 10.5111 14.4801C10.4071 14.5215 10.2994 14.5421 10.1881 14.5421C10.0768 14.5421 9.96911 14.5215 9.86511 14.4801C9.76111 14.4381 9.66044 14.3688 9.56311 14.2721L2.60511 7.31312C2.38244 7.09112 2.27811 6.83779 2.29211 6.55312C2.30611 6.26845 2.41744 6.02179 2.62611 5.81312Z",fill:"currentColor"})});Bu.displayName="ChevronDownIcon",ku=Fu.ChevronDownIcon=Bu;const ju="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",Au=g.div`
|
|
679
679
|
position: relative;
|
|
680
680
|
min-height: 3rem;
|
|
681
681
|
height: 3rem; // Need this to persist the height when expanding or collapsing list
|
|
682
682
|
width: 100%;
|
|
683
683
|
|
|
684
|
-
${
|
|
684
|
+
${Ic.tablet} {
|
|
685
685
|
height: auto;
|
|
686
686
|
}
|
|
687
|
-
`,
|
|
687
|
+
`,Pu=g.button`
|
|
688
688
|
display: flex;
|
|
689
689
|
position: relative;
|
|
690
690
|
align-items: center;
|
|
@@ -705,7 +705,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
705
705
|
:focus-visible {
|
|
706
706
|
outline: 2px solid ${Lt.Accent.Light[3]};
|
|
707
707
|
}
|
|
708
|
-
`,
|
|
708
|
+
`,Iu=y`
|
|
709
709
|
from {
|
|
710
710
|
position: absolute;
|
|
711
711
|
top: 0;
|
|
@@ -717,7 +717,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
717
717
|
to {
|
|
718
718
|
position: relative;
|
|
719
719
|
}
|
|
720
|
-
`,
|
|
720
|
+
`,zu=g.div`
|
|
721
721
|
position: relative;
|
|
722
722
|
border: 1px solid ${Lt.Neutral[5]};
|
|
723
723
|
border-radius: ${"4px"};
|
|
@@ -735,13 +735,13 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
735
735
|
width: 100%;
|
|
736
736
|
z-index: 2;
|
|
737
737
|
`:m`
|
|
738
|
-
animation: ${
|
|
738
|
+
animation: ${Iu} 0.5s ease-in-out;
|
|
739
739
|
`}
|
|
740
740
|
|
|
741
741
|
${e=>e.disabled?m`
|
|
742
742
|
background: ${Lt.Neutral[6](e)};
|
|
743
743
|
|
|
744
|
-
${
|
|
744
|
+
${Pu} {
|
|
745
745
|
cursor: not-allowed;
|
|
746
746
|
}
|
|
747
747
|
|
|
@@ -753,7 +753,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
753
753
|
border: none;
|
|
754
754
|
background: transparent !important;
|
|
755
755
|
|
|
756
|
-
${
|
|
756
|
+
${Pu} {
|
|
757
757
|
padding-left: 0rem;
|
|
758
758
|
}
|
|
759
759
|
|
|
@@ -771,9 +771,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
771
771
|
`:void 0}
|
|
772
772
|
`;g.div`
|
|
773
773
|
transform: rotate(${e=>e.expanded?180:0}deg);
|
|
774
|
-
transition: ${
|
|
774
|
+
transition: ${ju};
|
|
775
775
|
margin-left: 1rem;
|
|
776
|
-
`,g(
|
|
776
|
+
`,g(ku)`
|
|
777
777
|
color: ${Lt.Neutral[3]};
|
|
778
778
|
height: ${tr.Body.fontSize}rem;
|
|
779
779
|
width: ${tr.Body.fontSize}rem;
|
|
@@ -784,7 +784,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
784
784
|
`,g.div`
|
|
785
785
|
display: flex;
|
|
786
786
|
flex: 1;
|
|
787
|
-
`;const
|
|
787
|
+
`;const Nu=g(gr.Body)`
|
|
788
788
|
text-align: left;
|
|
789
789
|
line-height: 1.375rem;
|
|
790
790
|
${e=>{if("middle"!==e.truncateType)return m`
|
|
@@ -794,9 +794,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
794
794
|
text-overflow: ellipsis;
|
|
795
795
|
`}}
|
|
796
796
|
overflow: hidden;
|
|
797
|
-
`;g(
|
|
797
|
+
`;g(Nu)`
|
|
798
798
|
color: ${Lt.Neutral[3]};
|
|
799
|
-
`;const
|
|
799
|
+
`;const Du=Au,Eu=g(zu)``,Hu=g.div`
|
|
800
800
|
position: relative;
|
|
801
801
|
display: flex;
|
|
802
802
|
margin: 0 1rem;
|
|
@@ -813,29 +813,29 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
813
813
|
`:m`
|
|
814
814
|
flex-direction: row;
|
|
815
815
|
`}
|
|
816
|
-
`,
|
|
816
|
+
`,Mu=g(Pu)`
|
|
817
817
|
padding: 0;
|
|
818
818
|
width: auto;
|
|
819
|
-
`,
|
|
819
|
+
`,Vu=g.div`
|
|
820
820
|
height: 3rem;
|
|
821
821
|
display: flex;
|
|
822
822
|
align-items: center;
|
|
823
823
|
padding: 0;
|
|
824
824
|
background: transparent;
|
|
825
825
|
margin-right: 0.75rem;
|
|
826
|
-
`,
|
|
826
|
+
`,Lu=g.div`
|
|
827
827
|
transform: rotate(${e=>e.$expanded?180:0}deg);
|
|
828
|
-
transition: ${
|
|
828
|
+
transition: ${ju};
|
|
829
829
|
margin: 0 0.75rem;
|
|
830
|
-
`,
|
|
830
|
+
`,Tu=g(ku)`
|
|
831
831
|
color: ${Lt.Neutral[3]};
|
|
832
832
|
height: ${tr.Body.fontSize}rem;
|
|
833
833
|
width: ${tr.Body.fontSize}rem;
|
|
834
834
|
vertical-align: bottom;
|
|
835
|
-
`,
|
|
835
|
+
`,Ru=g.div`
|
|
836
836
|
display: flex;
|
|
837
837
|
flex: 1 1 auto;
|
|
838
|
-
`,
|
|
838
|
+
`,Wu=g(gr.Body)`
|
|
839
839
|
text-align: left;
|
|
840
840
|
display: -webkit-box;
|
|
841
841
|
-webkit-line-clamp: 2;
|
|
@@ -843,9 +843,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
843
843
|
overflow: hidden;
|
|
844
844
|
text-overflow: ellipsis;
|
|
845
845
|
margin-top: 1px; // align with input
|
|
846
|
-
`,
|
|
846
|
+
`,qu=g(Wu)`
|
|
847
847
|
color: ${Lt.Neutral[3]};
|
|
848
|
-
`,
|
|
848
|
+
`,Uu=g.div`
|
|
849
849
|
width: 1px;
|
|
850
850
|
background: ${Lt.Neutral[5]};
|
|
851
851
|
|
|
@@ -858,5 +858,5 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
858
858
|
`:m`
|
|
859
859
|
margin: 1rem 0.75rem 1rem 0;
|
|
860
860
|
`}
|
|
861
|
-
`,
|
|
861
|
+
`,Qu=({addon:e,error:i,onChange:o,readOnly:s,className:c,onBlur:d,...h})=>{const{placeholder:p,options:f,enableSearch:g,searchFunction:m,searchPlaceholder:y,valueExtractor:v,listExtractor:b,displayValueExtractor:w,selectedOption:$,onSelectOption:_,onHideOptions:x,onShowOptions:S,"data-selector-testid":C}=e.attributes,{position:k}=e,[F,O]=u($),[B,j]=u(!1),A=a(),P=a();l((()=>{O($)}),[$]),l((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[]);const I=()=>w?w(F):v?v(F):F.toString(),z=e=>{!e&&x&&x(),e&&S&&S()},N=e=>{if(!h.disabled){if(A&&A.current.contains(e.target))return;j(!1),z(!1),M()}},D=e=>{e.preventDefault(),h.disabled||(j(!B),z(!B))},E=(e,t)=>{O(e),j(!1),z(!1),P&&P.current.focus(),_&&_(e,t)},H=e=>{o&&o(e)},M=()=>{d&&d()},V=()=>{j(!1),z(!1),P&&P.current.focus()};return r(Du,{className:c,children:t(Eu,{ref:A,disabled:h.disabled,error:i&&!B,expanded:B,$readOnly:s,children:[t(Hu,{$expanded:B,$readOnly:s,$position:k,children:[s?F?r(Vu,{children:r(Wu,{"data-testid":"selector-label",children:I()})}):null:r(Mu,{ref:P,type:"button",disabled:h.disabled,"data-testid":C||"addon-selector",onClick:D,children:t(n,{children:[t(Ru,{children:[p&&!F&&r(qu,{children:p}),F&&r(Wu,{"data-testid":"selector-label",children:I()})]}),r(Lu,{$expanded:B,children:r(Tu,{})})]})}),r(Uu,{$readOnly:s,$position:k}),r($r,{...h,readOnly:s,error:i,onChange:H,"data-testid":h["data-testid"]||"input",onBlur:M})]}),f&&f.length>0?r(Cu,{listItems:f,selectedItems:$?[$]:[],onSelectItem:E,valueExtractor:v,listExtractor:b,visible:B,enableSearch:g,searchFunction:m,searchPlaceholder:y,"data-testid":"dropdown-list",onBlur:M,onDismiss:V}):null]})})},Zu=o.forwardRef((({addon:e,error:n,className:i,...o},a)=>{const s=()=>r(wr,{disabled:o.disabled,$error:n,$readOnly:o.readOnly,"data-testid":o["data-testid"],className:i,children:r($r,{ref:a,...o,"data-testid":"input"})});if(!e)return s();{const{type:a="label",position:l="left"}=e,{allowClear:c}=o;switch(a){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(Qu,{addon:e,error:n,className:i,...o}):s()}case"custom":{const a=e.attributes;return a.children?t(Ut,{$error:n,disabled:o.disabled,$readOnly:o.readOnly,"data-testid":o["data-testid"],$position:l,className:i,children:[r(_r,{"data-testid":"addon",disabled:o.disabled,$readOnly:o.readOnly,$position:l,children:a.children}),r($r,{...o,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}default:{const a=e.attributes;return a.value?t(Ut,{disabled:o.disabled,$error:n,$readOnly:o.readOnly,"data-testid":o["data-testid"],$position:l,className:i,children:[r(_r,{"data-testid":"addon",disabled:o.disabled,$readOnly:o.readOnly,$position:l,children:a.value}),r($r,{...o,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}}}}));export{Zu as InputGroup};
|
|
862
862
|
//# sourceMappingURL=index.js.map
|