ymy-components 0.0.48 → 0.0.49
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/dist/index.cjs.js +42 -99
- package/dist/index.es.js +1963 -3116
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),ws=require("react-dom"),$=require("styled-components");function Es(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const vr=Es(k);var ft={exports:{}},Ie={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var on;function xs(){if(on)return Ie;on=1;var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(u,l,c){var f,d={},h=null,y=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(y=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(d[f]=l[f]);if(u&&u.defaultProps)for(f in l=u.defaultProps,l)d[f]===void 0&&(d[f]=l[f]);return{$$typeof:t,type:u,key:h,ref:y,props:d,_owner:i.current}}return Ie.Fragment=r,Ie.jsx=a,Ie.jsxs=a,Ie}var Ve={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,77 +14,20 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),U=
|
|
21
|
-
`+
|
|
17
|
+
*/var an;function Ss(){return an||(an=1,process.env.NODE_ENV!=="production"&&function(){var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),w=Symbol.iterator,x="@@iterator";function g(o){if(o===null||typeof o!="object")return null;var p=w&&o[w]||o[x];return typeof p=="function"?p:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(o){{for(var p=arguments.length,E=new Array(p>1?p-1:0),O=1;O<p;O++)E[O-1]=arguments[O];b("error",o,E)}}function b(o,p,E){{var O=v.ReactDebugCurrentFrame,j=O.getStackAddendum();j!==""&&(p+="%s",E=E.concat([j]));var D=E.map(function(T){return String(T)});D.unshift("Warning: "+p),Function.prototype.apply.call(console[o],console,D)}}var S=!1,R=!1,z=!1,I=!1,M=!1,F;F=Symbol.for("react.module.reference");function re(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||M||o===i||o===c||o===f||I||o===y||S||R||z||typeof o=="object"&&o!==null&&(o.$$typeof===h||o.$$typeof===d||o.$$typeof===a||o.$$typeof===u||o.$$typeof===l||o.$$typeof===F||o.getModuleId!==void 0))}function B(o,p,E){var O=o.displayName;if(O)return O;var j=p.displayName||p.name||"";return j!==""?E+"("+j+")":E}function ne(o){return o.displayName||"Context"}function q(o){if(o==null)return null;if(typeof o.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case f:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case u:var p=o;return ne(p)+".Consumer";case a:var E=o;return ne(E._context)+".Provider";case l:return B(o,o.render,"ForwardRef");case d:var O=o.displayName||null;return O!==null?O:q(o.type)||"Memo";case h:{var j=o,D=j._payload,T=j._init;try{return q(T(D))}catch{return null}}}return null}var ce=Object.assign,je=0,Vr,Mr,Fr,$r,zr,Ur,Lr;function Br(){}Br.__reactDisabledLog=!0;function Qi(){{if(je===0){Vr=console.log,Mr=console.info,Fr=console.warn,$r=console.error,zr=console.group,Ur=console.groupCollapsed,Lr=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Br,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}je++}}function Ki(){{if(je--,je===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},o,{value:Vr}),info:ce({},o,{value:Mr}),warn:ce({},o,{value:Fr}),error:ce({},o,{value:$r}),group:ce({},o,{value:zr}),groupCollapsed:ce({},o,{value:Ur}),groupEnd:ce({},o,{value:Lr})})}je<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $t=v.ReactCurrentDispatcher,zt;function at(o,p,E){{if(zt===void 0)try{throw Error()}catch(j){var O=j.stack.trim().match(/\n( *(at )?)/);zt=O&&O[1]||""}return`
|
|
18
|
+
`+zt+o}}var Ut=!1,ut;{var Gi=typeof WeakMap=="function"?WeakMap:Map;ut=new Gi}function qr(o,p){if(!o||Ut)return"";{var E=ut.get(o);if(E!==void 0)return E}var O;Ut=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=$t.current,$t.current=null,Qi();try{if(p){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(Y){O=Y}Reflect.construct(o,[],T)}else{try{T.call()}catch(Y){O=Y}o.call(T.prototype)}}else{try{throw Error()}catch(Y){O=Y}o()}}catch(Y){if(Y&&O&&typeof Y.stack=="string"){for(var N=Y.stack.split(`
|
|
19
|
+
`),H=O.stack.split(`
|
|
20
|
+
`),U=N.length-1,L=H.length-1;U>=1&&L>=0&&N[U]!==H[L];)L--;for(;U>=1&&L>=0;U--,L--)if(N[U]!==H[L]){if(U!==1||L!==1)do if(U--,L--,L<0||N[U]!==H[L]){var Z=`
|
|
21
|
+
`+N[U].replace(" at new "," at ");return o.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",o.displayName)),typeof o=="function"&&ut.set(o,Z),Z}while(U>=1&&L>=0);break}}}finally{Ut=!1,$t.current=D,Ki(),Error.prepareStackTrace=j}var Pe=o?o.displayName||o.name:"",ve=Pe?at(Pe):"";return typeof o=="function"&&ut.set(o,ve),ve}function Ji(o,p,E){return qr(o,!1)}function Xi(o){var p=o.prototype;return!!(p&&p.isReactComponent)}function ct(o,p,E){if(o==null)return"";if(typeof o=="function")return qr(o,Xi(o));if(typeof o=="string")return at(o);switch(o){case c:return at("Suspense");case f:return at("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Ji(o.render);case d:return ct(o.type,p,E);case h:{var O=o,j=O._payload,D=O._init;try{return ct(D(j),p,E)}catch{}}}return""}var De=Object.prototype.hasOwnProperty,Wr={},Hr=v.ReactDebugCurrentFrame;function lt(o){if(o){var p=o._owner,E=ct(o.type,o._source,p?p.type:null);Hr.setExtraStackFrame(E)}else Hr.setExtraStackFrame(null)}function Zi(o,p,E,O,j){{var D=Function.call.bind(De);for(var T in o)if(D(o,T)){var N=void 0;try{if(typeof o[T]!="function"){var H=Error((O||"React class")+": "+E+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}N=o[T](p,T,O,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){N=U}N&&!(N instanceof Error)&&(lt(j),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",E,T,typeof N),lt(null)),N instanceof Error&&!(N.message in Wr)&&(Wr[N.message]=!0,lt(j),_("Failed %s type: %s",E,N.message),lt(null))}}}var es=Array.isArray;function Lt(o){return es(o)}function ts(o){{var p=typeof Symbol=="function"&&Symbol.toStringTag,E=p&&o[Symbol.toStringTag]||o.constructor.name||"Object";return E}}function rs(o){try{return Yr(o),!1}catch{return!0}}function Yr(o){return""+o}function Qr(o){if(rs(o))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ts(o)),Yr(o)}var Kr=v.ReactCurrentOwner,ns={key:!0,ref:!0,__self:!0,__source:!0},Gr,Jr;function is(o){if(De.call(o,"ref")){var p=Object.getOwnPropertyDescriptor(o,"ref").get;if(p&&p.isReactWarning)return!1}return o.ref!==void 0}function ss(o){if(De.call(o,"key")){var p=Object.getOwnPropertyDescriptor(o,"key").get;if(p&&p.isReactWarning)return!1}return o.key!==void 0}function os(o,p){typeof o.ref=="string"&&Kr.current}function as(o,p){{var E=function(){Gr||(Gr=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(o,"key",{get:E,configurable:!0})}}function us(o,p){{var E=function(){Jr||(Jr=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(o,"ref",{get:E,configurable:!0})}}var cs=function(o,p,E,O,j,D,T){var N={$$typeof:t,type:o,key:p,ref:E,props:T,_owner:D};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function ls(o,p,E,O,j){{var D,T={},N=null,H=null;E!==void 0&&(Qr(E),N=""+E),ss(p)&&(Qr(p.key),N=""+p.key),is(p)&&(H=p.ref,os(p,j));for(D in p)De.call(p,D)&&!ns.hasOwnProperty(D)&&(T[D]=p[D]);if(o&&o.defaultProps){var U=o.defaultProps;for(D in U)T[D]===void 0&&(T[D]=U[D])}if(N||H){var L=typeof o=="function"?o.displayName||o.name||"Unknown":o;N&&as(T,L),H&&us(T,L)}return cs(o,N,H,j,O,Kr.current,T)}}var Bt=v.ReactCurrentOwner,Xr=v.ReactDebugCurrentFrame;function Oe(o){if(o){var p=o._owner,E=ct(o.type,o._source,p?p.type:null);Xr.setExtraStackFrame(E)}else Xr.setExtraStackFrame(null)}var qt;qt=!1;function Wt(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function Zr(){{if(Bt.current){var o=q(Bt.current.type);if(o)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+o+"`."}return""}}function fs(o){return""}var en={};function ds(o){{var p=Zr();if(!p){var E=typeof o=="string"?o:o.displayName||o.name;E&&(p=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+E+">.")}return p}}function tn(o,p){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var E=ds(p);if(en[E])return;en[E]=!0;var O="";o&&o._owner&&o._owner!==Bt.current&&(O=" It was passed a child from "+q(o._owner.type)+"."),Oe(o),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,O),Oe(null)}}function rn(o,p){{if(typeof o!="object")return;if(Lt(o))for(var E=0;E<o.length;E++){var O=o[E];Wt(O)&&tn(O,p)}else if(Wt(o))o._store&&(o._store.validated=!0);else if(o){var j=g(o);if(typeof j=="function"&&j!==o.entries)for(var D=j.call(o),T;!(T=D.next()).done;)Wt(T.value)&&tn(T.value,p)}}}function hs(o){{var p=o.type;if(p==null||typeof p=="string")return;var E;if(typeof p=="function")E=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===l||p.$$typeof===d))E=p.propTypes;else return;if(E){var O=q(p);Zi(E,o.props,"prop",O,o)}else if(p.PropTypes!==void 0&&!qt){qt=!0;var j=q(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ps(o){{for(var p=Object.keys(o.props),E=0;E<p.length;E++){var O=p[E];if(O!=="children"&&O!=="key"){Oe(o),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),Oe(null);break}}o.ref!==null&&(Oe(o),_("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}}var nn={};function sn(o,p,E,O,j,D){{var T=re(o);if(!T){var N="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var H=fs();H?N+=H:N+=Zr();var U;o===null?U="null":Lt(o)?U="array":o!==void 0&&o.$$typeof===t?(U="<"+(q(o.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):U=typeof o,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,N)}var L=ls(o,p,E,j,D);if(L==null)return L;if(T){var Z=p.children;if(Z!==void 0)if(O)if(Lt(Z)){for(var Pe=0;Pe<Z.length;Pe++)rn(Z[Pe],o);Object.freeze&&Object.freeze(Z)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else rn(Z,o)}if(De.call(p,"key")){var ve=q(o),Y=Object.keys(p).filter(function(_s){return _s!=="key"}),Ht=Y.length>0?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}";if(!nn[ve+Ht]){var bs=Y.length>0?"{"+Y.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Kr,Fe,ba,Fe),gi[Fe+Kr]=!0}}return c===n?pa(H):ha(H),H}}function ma(c,g,x){return vi(c,g,x,!0)}function ya(c,g,x){return vi(c,g,x,!1)}var ga=ya,va=ma;St.Fragment=n,St.jsx=ga,St.jsxs=va}()),St}var _i;function ka(){return _i||(_i=1,process.env.NODE_ENV==="production"?Zt.exports=Sa():Zt.exports=xa()),Zt.exports}var j=ka(),$n=Yt(),R=e=>Ht(e,$n),Mn=Yt();R.write=e=>Ht(e,Mn);var Pr=Yt();R.onStart=e=>Ht(e,Pr);var zn=Yt();R.onFrame=e=>Ht(e,zn);var Fn=Yt();R.onFinish=e=>Ht(e,Fn);var at=[];R.setTimeout=(e,t)=>{const r=R.now()+t,n=()=>{const o=at.findIndex(s=>s.cancel==n);~o&&at.splice(o,1),Ve-=~o?1:0},i={time:r,handler:e,cancel:n};return at.splice(wo(r),0,i),Ve+=1,_o(),i};var wo=e=>~(~at.findIndex(t=>t.time>e)||~at.length);R.cancel=e=>{Pr.delete(e),zn.delete(e),Fn.delete(e),$n.delete(e),Mn.delete(e)};R.sync=e=>{ln=!0,R.batchedUpdates(e),ln=!1};R.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,R.onStart(r)}return n.handler=e,n.cancel=()=>{Pr.delete(r),t=null},n};var Ln=typeof window<"u"?window.requestAnimationFrame:()=>{};R.use=e=>Ln=e;R.now=typeof performance<"u"?()=>performance.now():Date.now;R.batchedUpdates=e=>e();R.catch=console.error;R.frameLoop="always";R.advance=()=>{R.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):So()};var je=-1,Ve=0,ln=!1;function Ht(e,t){ln?(t.delete(e),e(0)):(t.add(e),_o())}function _o(){je<0&&(je=0,R.frameLoop!=="demand"&&Ln(Eo))}function Oa(){je=-1}function Eo(){~je&&(Ln(Eo),R.batchedUpdates(So))}function So(){const e=je;je=R.now();const t=wo(je);if(t&&(xo(at.splice(0,t),r=>r.handler()),Ve-=t),!Ve){Oa();return}Pr.flush(),$n.flush(e?Math.min(64,je-e):16.667),zn.flush(),Mn.flush(),Fn.flush()}function Yt(){let e=new Set,t=e;return{add(r){Ve+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Ve-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Ve-=t.size,xo(t,n=>n(r)&&e.add(n)),Ve+=e.size,t=e)}}}function xo(e,t){e.forEach(r=>{try{t(r)}catch(n){R.catch(n)}})}var Pa=Object.defineProperty,Na=(e,t)=>{for(var r in t)Pa(e,r,{get:t[r],enumerable:!0})},we={};Na(we,{assign:()=>Ra,colors:()=>$e,createStringInterpolator:()=>Un,skipAnimation:()=>Oo,to:()=>ko,willAdvance:()=>qn});function fn(){}var Ca=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ke(e,t){if(_.arr(e)){if(!_.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}var I=(e,t)=>e.forEach(t);function Se(e,t,r){if(_.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var oe=e=>_.und(e)?[]:_.arr(e)?e:[e];function Rt(e,t){if(e.size){const r=Array.from(e);e.clear(),I(r,t)}}var Pt=(e,...t)=>Rt(e,r=>r(...t)),Bn=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Un,ko,$e=null,Oo=!1,qn=fn,Ra=e=>{e.to&&(ko=e.to),e.now&&(R.now=e.now),e.colors!==void 0&&($e=e.colors),e.skipAnimation!=null&&(Oo=e.skipAnimation),e.createStringInterpolator&&(Un=e.createStringInterpolator),e.requestAnimationFrame&&R.use(e.requestAnimationFrame),e.batchedUpdates&&(R.batchedUpdates=e.batchedUpdates),e.willAdvance&&(qn=e.willAdvance),e.frameLoop&&(R.frameLoop=e.frameLoop)},At=new Set,fe=[],Qr=[],pr=0,Nr={get idle(){return!At.size&&!fe.length},start(e){pr>e.priority?(At.add(e),R.onStart(Aa)):(Po(e),R(dn))},advance:dn,sort(e){if(pr)R.onFrame(()=>Nr.sort(e));else{const t=fe.indexOf(e);~t&&(fe.splice(t,1),No(e))}},clear(){fe=[],At.clear()}};function Aa(){At.forEach(Po),At.clear(),R(dn)}function Po(e){fe.includes(e)||No(e)}function No(e){fe.splice(Ta(fe,t=>t.priority>e.priority),0,e)}function dn(e){const t=Qr;for(let r=0;r<fe.length;r++){const n=fe[r];pr=n.priority,n.idle||(qn(n),n.advance(e),n.idle||t.push(n))}return pr=0,Qr=fe,Qr.length=0,fe=t,fe.length>0}function Ta(e,t){const r=e.findIndex(t);return r<0?e.length:r}var Ia={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},ve="[-+]?\\d*\\.?\\d+",mr=ve+"%";function Cr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Da=new RegExp("rgb"+Cr(ve,ve,ve)),ja=new RegExp("rgba"+Cr(ve,ve,ve,ve)),Va=new RegExp("hsl"+Cr(ve,mr,mr)),$a=new RegExp("hsla"+Cr(ve,mr,mr,ve)),Ma=/^#([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})$/,Fa=/^#([0-9a-fA-F]{6})$/,La=/^#([0-9a-fA-F]{8})$/;function Ba(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Fa.exec(e))?parseInt(t[1]+"ff",16)>>>0:$e&&$e[e]!==void 0?$e[e]:(t=Da.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|255)>>>0:(t=ja.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|xi(t[4]))>>>0:(t=Ma.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=La.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=Va.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|255)>>>0:(t=$a.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|xi(t[4]))>>>0:null}function Xr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ei(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Xr(i,n,e+1/3),s=Xr(i,n,e),a=Xr(i,n,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function ot(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Si(e){return(parseFloat(e)%360+360)%360/360}function xi(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function er(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ki(e){let t=Ba(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${r}, ${n}, ${i}, ${o})`}var jt=(e,t,r)=>{if(_.fun(e))return e;if(_.arr(e))return jt({range:e,output:t,extrapolate:r});if(_.str(e.output[0]))return Un(e);const n=e,i=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{const f=qa(l,o);return Ua(l,o[f],o[f+1],i[f],i[f+1],u,s,a,n.map)}};function Ua(e,t,r,n,i,o,s,a,u){let l=u?u(e):e;if(l<t){if(s==="identity")return l;s==="clamp"&&(l=t)}if(l>r){if(a==="identity")return l;a==="clamp"&&(l=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=o(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function qa(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Wa={linear:e=>e},Vt=Symbol.for("FluidValue.get"),ut=Symbol.for("FluidValue.observers"),le=e=>!!(e&&e[Vt]),ee=e=>e&&e[Vt]?e[Vt]():e,Oi=e=>e[ut]||null;function Ha(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $t(e,t){const r=e[ut];r&&r.forEach(n=>{Ha(n,t)})}var Co=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ya(this,e)}},Ya=(e,t)=>Ro(e,Vt,t);function yt(e,t){if(e[Vt]){let r=e[ut];r||Ro(e,ut,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Mt(e,t){const r=e[ut];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ut]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Ro=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ar=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ga=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pi=new RegExp(`(${ar.source})(%|[a-z]+)`,"i"),Ka=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Rr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ao=e=>{const[t,r]=Qa(e);if(!t||Bn())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&Rr.test(r))return Ao(r);if(r)return r}return e},Qa=e=>{const t=Rr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Jr,Xa=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,To=e=>{Jr||(Jr=$e?new RegExp(`(${Object.keys($e).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>ee(o).replace(Rr,Ao).replace(Ga,ki).replace(Jr,ki)),r=t.map(o=>o.match(ar).map(Number)),i=r[0].map((o,s)=>r.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>jt({...e,output:o}));return o=>{var u;const s=!Pi.test(t[0])&&((u=t.find(l=>Pi.test(l)))==null?void 0:u.replace(ar,""));let a=0;return t[0].replace(ar,()=>`${i[a++](o)}${s||""}`).replace(Ka,Xa)}},Wn="react-spring: ",Io=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${Wn}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Ja=Io(console.warn);function Za(){Ja(`${Wn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ec=Io(console.warn);function tc(){ec(`${Wn}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`)}function Ar(e){return _.str(e)&&(e[0]=="#"||/\d/.test(e)||!Bn()&&Rr.test(e)||e in($e||{}))}var Hn=Bn()?N.useEffect:N.useLayoutEffect,rc=()=>{const e=N.useRef(!1);return Hn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Do(){const e=N.useState()[1],t=rc();return()=>{t.current&&e(Math.random())}}function nc(e,t){const[r]=N.useState(()=>({inputs:t,result:e()})),n=N.useRef(),i=n.current;let o=i;return o?t&&o.inputs&&ic(t,o.inputs)||(o={inputs:t,result:e()}):o=r,N.useEffect(()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}function ic(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}var jo=e=>N.useEffect(e,oc),oc=[];function Ni(e){const t=N.useRef();return N.useEffect(()=>{t.current=e}),t.current}var zt=Symbol.for("Animated:node"),sc=e=>!!e&&e[zt]===e,_e=e=>e&&e[zt],Yn=(e,t)=>Ca(e,zt,t),Tr=e=>e&&e[zt]&&e[zt].getPayload(),Vo=class{constructor(){Yn(this,this)}getPayload(){return this.payload||[]}},Gt=class extends Vo{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Gt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return _.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ft=class extends Gt{constructor(e){super(0),this._string=null,this._toString=jt({output:[e,e]})}static create(e){return new Ft(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jt({output:[this.getValue(),e]})),this._value=0,super.reset()}},yr={dependencies:null},Ir=class extends Vo{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Se(this.source,(r,n)=>{sc(r)?t[n]=r.getValue(e):le(r)?t[n]=ee(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&I(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Se(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yr.dependencies&&le(e)&&yr.dependencies.add(e);const t=Tr(e);t&&I(t,r=>this.add(r))}},$o=class extends Ir{constructor(e){super(e)}static create(e){return new $o(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(ac)),!0)}};function ac(e){return(Ar(e)?Ft:Gt).create(e)}function hn(e){const t=_e(e);return t?t.constructor:_.arr(e)?$o:Ar(e)?Ft:Gt}var Ci=(e,t)=>{const r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((n,i)=>{const o=N.useRef(null),s=r&&N.useCallback(v=>{o.current=lc(i,v)},[i]),[a,u]=uc(n,t),l=Do(),f=()=>{const v=o.current;if(r&&!v)return;(v?t.applyAnimatedValues(v,a.getValue(!0)):!1)===!1&&l()},d=new cc(f,u),h=N.useRef();Hn(()=>(h.current=d,I(u,v=>yt(v,d)),()=>{h.current&&(I(h.current.deps,v=>Mt(v,h.current)),R.cancel(h.current.update))})),N.useEffect(f,[]),jo(()=>()=>{const v=h.current;I(v.deps,E=>Mt(E,v))});const p=t.getComponentProps(a.getValue());return Vn.createElement(e,{...p,ref:s})})},cc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&R.write(this.update)}};function uc(e,t){const r=new Set;return yr.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ir(e),yr.dependencies=null,[e,r]}function lc(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var Ri=Symbol.for("AnimatedComponent"),fc=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Ir(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=s=>{const a=Ai(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=Ci(s,i)):s=s[Ri]||(s[Ri]=Ci(s,i)),s.displayName=`Animated(${a})`,s};return Se(e,(s,a)=>{_.arr(e)&&(a=Ai(s)),o[a]=o(s)}),{animated:o}},Ai=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function Be(e,...t){return _.fun(e)?e(...t):e}var Tt=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):oe(e).includes(t))),Mo=(e,t)=>_.obj(e)?t&&e[t]:e,zo=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dc=e=>e,Gn=(e,t=dc)=>{let r=hc;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const o=t(e[i],i);_.und(o)||(n[i]=o)}return n},hc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pc={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 mc(e){const t={};let r=0;if(Se(e,(n,i)=>{pc[i]||(t[i]=n,r++)}),r)return t}function Fo(e){const t=mc(e);if(t){const r={to:t};return Se(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Lt(e){return e=ee(e),_.arr(e)?e.map(Lt):Ar(e)?we.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yc(e){for(const t in e)return!0;return!1}function pn(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function gc(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function vc(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var bc={default:{tension:170,friction:26}},mn={...bc.default,mass:1,damping:1,easing:Wa.linear,clamp:!1},wc=class{constructor(){this.velocity=0,Object.assign(this,mn)}};function _c(e,t,r){r&&(r={...r},Ti(r,t),t={...r,...t}),Ti(e,t),Object.assign(e,t);for(const s in mn)e[s]==null&&(e[s]=mn[s]);let{frequency:n,damping:i}=e;const{mass:o}=e;return _.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*i*o/n),e}function Ti(e,t){if(!_.und(t.decay))e.duration=void 0;else{const r=!_.und(t.tension)||!_.und(t.friction);(r||!_.und(t.frequency)||!_.und(t.damping)||!_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Ii=[],Ec=class{constructor(){this.changed=!1,this.values=Ii,this.toValues=null,this.fromValues=Ii,this.config=new wc,this.immediate=!1}};function Lo(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise((s,a)=>{let u,l,f=Tt(r.cancel??(n==null?void 0:n.cancel),t);if(f)p();else{_.und(r.pause)||(i.paused=Tt(r.pause,t));let v=n==null?void 0:n.pause;v!==!0&&(v=i.paused||Tt(v,t)),u=Be(r.delay||0,t),v?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-R.now()}function h(){u>0&&!we.skipAnimation?(i.delayed=!0,l=R.setTimeout(p,u),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(f=!0);try{o.start({...r,callId:e,cancel:f},s)}catch(v){a(v)}}})}var Kn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?ct(e.get()):t.every(r=>r.noop)?Bo(e.get()):ge(e.get(),t.every(r=>r.finished)),Bo=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ge=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ct=e=>({value:e,cancelled:!0,finished:!1});function Uo(e,t,r,n){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:u}=r;return!o&&e===a&&!t.reset?u:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const l=Gn(t,(w,y)=>y==="onRest"?void 0:w);let f,d;const h=new Promise((w,y)=>(f=w,d=y)),p=w=>{const y=i<=(r.cancelId||0)&&ct(n)||i!==r.asyncId&&ge(n,!1);if(y)throw w.result=y,d(w),w},v=(w,y)=>{const b=new Di,m=new ji;return(async()=>{if(we.skipAnimation)throw Bt(r),m.result=ge(n,!1),d(m),m;p(b);const S=_.obj(w)?{...w}:{...y,to:w};S.parentId=i,Se(l,(P,k)=>{_.und(S[k])&&(S[k]=P)});const O=await n.start(S);return p(b),r.paused&&await new Promise(P=>{r.resumeQueue.add(P)}),O})()};let E;if(we.skipAnimation)return Bt(r),ge(n,!1);try{let w;_.arr(e)?w=(async y=>{for(const b of y)await v(b)})(e):w=Promise.resolve(e(v,n.stop.bind(n))),await Promise.all([w.then(f),h]),E=ge(n.get(),!0,!1)}catch(w){if(w instanceof Di)E=w.result;else if(w instanceof ji)E=w.result;else throw w}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?a:void 0,r.promise=o?u:void 0)}return _.fun(s)&&R.batchedUpdates(()=>{s(E,n,n.item)}),E})()}function Bt(e,t){Rt(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Di=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ji=class extends Error{constructor(){super("SkipAnimationSignal")}},yn=e=>e instanceof Qn,Sc=1,Qn=class extends Co{constructor(){super(...arguments),this.id=Sc++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=_e(this);return e&&e.getValue()}to(...e){return we.to(this,e)}interpolate(...e){return Za(),we.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$t(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Nr.sort(this),$t(this,{type:"priority",parent:this,priority:e})}},Ge=Symbol.for("SpringPhase"),qo=1,Wo=2,Ho=4,Zr=e=>(e[Ge]&qo)>0,Te=e=>(e[Ge]&Wo)>0,xt=e=>(e[Ge]&Ho)>0,Vi=(e,t)=>t?e[Ge]|=Wo|qo:e[Ge]&=-3,$i=(e,t)=>t?e[Ge]|=Ho:e[Ge]&=-5,xc=class extends Qn{constructor(e,t){if(super(),this.animation=new Ec,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,!_.und(e)||!_.und(t)){const r=_.obj(e)?{...e}:{...t,from:e};_.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Te(this)||this._state.asyncTo)||xt(this)}get goal(){return ee(this.animation.to)}get velocity(){const e=_e(this);return e instanceof Gt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Zr(this)}get isAnimating(){return Te(this)}get isPaused(){return xt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:o}=n,s=Tr(n.to);!s&&le(n.to)&&(i=oe(ee(n.to))),n.values.forEach((l,f)=>{if(l.done)return;const d=l.constructor==Ft?1:s?s[f].lastPosition:i[f];let h=n.immediate,p=d;if(!h){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let v=l.elapsedTime+=e;const E=n.fromValues[f],w=l.v0!=null?l.v0:l.v0=_.arr(o.velocity)?o.velocity[f]:o.velocity;let y;const b=o.precision||(E==d?.005:Math.min(1,Math.abs(d-E)*.001));if(_.und(o.duration))if(o.decay){const m=o.decay===!0?.998:o.decay,S=Math.exp(-(1-m)*v);p=E+w/(1-m)*(1-S),h=Math.abs(l.lastPosition-p)<=b,y=w*S}else{y=l.lastVelocity==null?w:l.lastVelocity;const m=o.restVelocity||b/10,S=o.clamp?0:o.bounce,O=!_.und(S),P=E==d?l.v0>0:E<d;let k,V=!1;const z=1,ne=Math.ceil(e/z);for(let G=0;G<ne&&(k=Math.abs(y)>m,!(!k&&(h=Math.abs(d-p)<=b,h)));++G){O&&(V=p==d||p>d==P,V&&(y=-y*S,p=d));const ie=-o.tension*1e-6*(p-d),W=-o.friction*.001*y,he=(ie+W)/o.mass;y=y+he*z,p=p+y*z}}else{let m=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,v=l.elapsedTime+=e)),m=(o.progress||0)+v/this._memoizedDuration,m=m>1?1:m<0?0:m,l.durationProgress=m),p=E+o.easing(m)*(d-E),y=(p-l.lastPosition)/e,h=m==1}l.lastVelocity=y,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[f].done&&(h=!1),h?l.done=!0:t=!1,l.setValue(p,o.round)&&(r=!0)});const a=_e(this),u=a.getValue();if(t){const l=ee(n.to);(u!==l||r)&&!o.decay?(a.setValue(l),this._onChange(l)):r&&o.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return R.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Te(this)){const{to:e,config:t}=this.animation;R.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 _.und(e)?(r=this.queue||[],this.queue=[]):r=[_.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Kn(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Bt(this._state,e&&this._lastCallId),R.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=_.obj(r)?r[t]:r,(r==null||pn(r))&&(r=void 0),n=_.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return Zr(this)||(e.reverse&&([r,n]=[n,r]),n=ee(n),_.und(n)?_e(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Gn(e,(s,a)=>/^on/.test(a)?Mo(s,r):s)),zi(this,e,"onProps"),Ot(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Lo(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{xt(this)||($i(this,!0),Pt(o.pauseQueue),Ot(this,"onPause",ge(this,kt(this,this.animation.to)),this))},resume:()=>{xt(this)&&($i(this,!1),Te(this)&&this._resume(),Pt(o.resumeQueue),Ot(this,"onResume",ge(this,kt(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=Yo(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ct(this));const n=!_.und(e.to),i=!_.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(ct(this));const{key:o,defaultProps:s,animation:a}=this,{to:u,from:l}=a;let{to:f=u,from:d=l}=e;i&&!n&&(!t.default||_.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const h=!ke(d,l);h&&(a.from=d),d=ee(d);const p=!ke(f,u);p&&this._focus(f);const v=pn(t.to),{config:E}=a,{decay:w,velocity:y}=E;(n||i)&&(E.velocity=0),t.config&&!v&&_c(E,Be(t.config,o),t.config!==s.config?Be(s.config,o):void 0);let b=_e(this);if(!b||_.und(f))return r(ge(this,!0));const m=_.und(t.reset)?i&&!t.default:!_.und(d)&&Tt(t.reset,o),S=m?d:this.get(),O=Lt(f),P=_.num(O)||_.arr(O)||Ar(O),k=!v&&(!P||Tt(s.immediate||t.immediate,o));if(p){const G=hn(f);if(G!==b.constructor)if(k)b=this._set(O);else throw Error(`Cannot animate between ${b.constructor.name} and ${G.name}, as the "to" prop suggests`)}const V=b.constructor;let z=le(f),ne=!1;if(!z){const G=m||!Zr(this)&&h;(p||G)&&(ne=ke(Lt(S),O),z=!ne),(!ke(a.immediate,k)&&!k||!ke(E.decay,w)||!ke(E.velocity,y))&&(z=!0)}if(ne&&Te(this)&&(a.changed&&!m?z=!0:z||this._stop(u)),!v&&((z||le(u))&&(a.values=b.getPayload(),a.toValues=le(f)?null:V==Ft?[1]:oe(O)),a.immediate!=k&&(a.immediate=k,!k&&!m&&this._set(u)),z)){const{onRest:G}=a;I(Oc,W=>zi(this,t,W));const ie=ge(this,kt(this,u));Pt(this._pendingCalls,ie),this._pendingCalls.add(r),a.changed&&R.batchedUpdates(()=>{var W;a.changed=!m,G==null||G(ie,this),m?Be(s.onRest,ie):(W=a.onStart)==null||W.call(a,ie,this)})}m&&this._set(S),v?r(Uo(t.to,t,this._state,this)):z?this._start():Te(this)&&!p?this._pendingCalls.add(r):r(Bo(S))}_focus(e){const t=this.animation;e!==t.to&&(Oi(this)&&this._detach(),t.to=e,Oi(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;le(t)&&(yt(t,this),yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;le(e)&&Mt(e,this)}_set(e,t=!0){const r=ee(e);if(!_.und(r)){const n=_e(this);if(!n||!ke(r,n.getValue())){const i=hn(r);!n||n.constructor!=i?Yn(this,i.create(r)):n.setValue(r),n&&R.batchedUpdates(()=>{this._onChange(r,t)})}}return _e(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ot(this,"onStart",ge(this,kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_e(this).reset(ee(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Te(this)||(Vi(this,!0),xt(this)||this._resume())}_resume(){we.skipAnimation?this.finish():Nr.start(this)}_stop(e,t){if(Te(this)){Vi(this,!1);const r=this.animation;I(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),$t(this,{type:"idle",parent:this});const n=t?ct(this.get()):ge(this.get(),kt(this,e??r.to));Pt(this._pendingCalls,n),r.changed&&(r.changed=!1,Ot(this,"onRest",n,this))}}};function kt(e,t){const r=Lt(t),n=Lt(e.get());return ke(n,r)}function Yo(e,t=e.loop,r=e.to){const n=Be(t);if(n){const i=n!==!0&&Fo(n),o=(i||e).reverse,s=!i||i.reset;return Ut({...e,loop:t,default:!1,pause:void 0,to:!o||pn(r)?r:void 0,from:s?e.from:void 0,reset:s,...i})}}function Ut(e){const{to:t,from:r}=e=Fo(e),n=new Set;return _.obj(t)&&Mi(t,n),_.obj(r)&&Mi(r,n),e.keys=n.size?Array.from(n):null,e}function kc(e){const t=Ut(e);return _.und(t.default)&&(t.default=Gn(t)),t}function Mi(e,t){Se(e,(r,n)=>r!=null&&t.add(n))}var Oc=["onStart","onRest","onChange","onPause","onResume"];function zi(e,t,r){e.animation[r]=t[r]!==zo(t,r)?Mo(t[r],e.key):void 0}function Ot(e,t,...r){var n,i,o,s;(i=(n=e.animation)[t])==null||i.call(n,...r),(s=(o=e.defaultProps)[t])==null||s.call(o,...r)}var Pc=["onStart","onChange","onRest"],Nc=1,Cc=class{constructor(e,t){this.id=Nc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({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];_.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ut(e)),this}start(e){let{queue:t}=this;return e?t=oe(e).map(Ut):this.queue=[],this._flush?this._flush(this,t):(Jo(this,t),gn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;I(oe(t),n=>r[n].stop(!!e))}else Bt(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(_.und(e))this.start({pause:!0});else{const t=this.springs;I(oe(e),r=>t[r].pause())}return this}resume(e){if(_.und(e))this.start({pause:!1});else{const t=this.springs;I(oe(e),r=>t[r].resume())}return this}each(e){Se(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,Rt(e,([a,u])=>{u.value=this.get(),a(u,this,this._item)}));const o=!n&&this._started,s=i||o&&r.size?this.get():null;i&&t.size&&Rt(t,([a,u])=>{u.value=s,a(u,this,this._item)}),o&&(this._started=!1,Rt(r,([a,u])=>{u.value=s,a(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;R.onFrame(this._onFrame)}};function gn(e,t){return Promise.all(t.map(r=>Go(e,r))).then(r=>Kn(e,r))}async function Go(e,t,r){const{keys:n,to:i,from:o,loop:s,onRest:a,onResolve:u}=t,l=_.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const f=_.arr(i)||_.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):I(Pc,E=>{const w=t[E];if(_.fun(w)){const y=e._events[E];t[E]=({finished:b,cancelled:m})=>{const S=y.get(w);S?(b||(S.finished=!1),m&&(S.cancelled=!0)):y.set(w,{value:null,finished:b||!1,cancelled:m||!1})},l&&(l[E]=t[E])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Pt(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),p=t.cancel===!0||zo(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push(Lo(++e._lastAsyncId,{props:t,state:d,actions:{pause:fn,resume:fn,start(E,w){p?(Bt(d,e._lastAsyncId),w(ct(e))):(E.onRest=a,w(Uo(f,E,d,e)))}}})),d.paused&&await new Promise(E=>{d.resumeQueue.add(E)});const v=Kn(e,await Promise.all(h));if(s&&v.finished&&!(r&&v.noop)){const E=Yo(t,s,i);if(E)return Jo(e,[E]),Go(e,E,!0)}return u&&R.batchedUpdates(()=>u(v,e,e.item)),v}function Fi(e,t){const r={...e.springs};return t&&I(oe(t),n=>{_.und(n.keys)&&(n=Ut(n)),_.obj(n.to)||(n={...n,to:void 0}),Xo(r,n,i=>Qo(i))}),Ko(e,r),r}function Ko(e,t){Se(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,yt(r,e))})}function Qo(e,t){const r=new xc;return r.key=e,t&&yt(r,t),r}function Xo(e,t,r){t.keys&&I(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Jo(e,t){I(t,r=>{Xo(e.springs,r,n=>Qo(n,e))})}var Dr=({children:e,...t})=>{const r=N.useContext(gr),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=nc(()=>({pause:n,immediate:i}),[n,i]);const{Provider:o}=gr;return Vn.createElement(o,{value:t},e)},gr=Rc(Dr,{});Dr.Provider=gr.Provider;Dr.Consumer=gr.Consumer;function Rc(e,t){return Object.assign(e,Vn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ac=()=>{const e=[],t=function(n){tc();const i=[];return I(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=r(n,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return I(e,n=>n.pause(...arguments)),this},t.resume=function(){return I(e,n=>n.resume(...arguments)),this},t.set=function(n){I(e,(i,o)=>{const s=_.fun(n)?n(o,i):n;s&&i.set(s)})},t.start=function(n){const i=[];return I(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=this._getProps(n,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return I(e,n=>n.stop(...arguments)),this},t.update=function(n){return I(e,(i,o)=>i.update(this._getProps(n,i,o))),this};const r=function(n,i,o){return _.fun(n)?n(o,i):n};return t._getProps=r,t};function Tc(e,t,r){const n=_.fun(t)&&t;n&&!r&&(r=[]);const i=N.useMemo(()=>n||arguments.length==3?Ac():void 0,[]),o=N.useRef(0),s=Do(),a=N.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const m=Fi(y,b);return o.current>0&&!a.queue.length&&!Object.keys(m).some(O=>!y.springs[O])?gn(y,b):new Promise(O=>{Ko(y,m),a.queue.push(()=>{O(gn(y,b))}),s()})}}),[]),u=N.useRef([...a.ctrls]),l=[],f=Ni(e)||0;N.useMemo(()=>{I(u.current.slice(e,f),y=>{gc(y,i),y.stop(!0)}),u.current.length=e,d(f,e)},[e]),N.useMemo(()=>{d(0,Math.min(f,e))},r);function d(y,b){for(let m=y;m<b;m++){const S=u.current[m]||(u.current[m]=new Cc(null,a.flush)),O=n?n(m,S):t[m];O&&(l[m]=kc(O))}}const h=u.current.map((y,b)=>Fi(y,l[b])),p=N.useContext(Dr),v=Ni(p),E=p!==v&&yc(p);Hn(()=>{o.current++,a.ctrls=u.current;const{queue:y}=a;y.length&&(a.queue=[],I(y,b=>b())),I(u.current,(b,m)=>{i==null||i.add(b),E&&b.start({default:p});const S=l[m];S&&(vc(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),jo(()=>()=>{I(a.ctrls,y=>y.stop(!0))});const w=h.map(y=>({...y}));return i?[w,i]:w}function Zo(e,t){const r=_.fun(e),[[n],i]=Tc(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Ic=class extends Qn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jt(...t);const r=this._get(),n=hn(r);Yn(this,n.create(r))}advance(e){const t=this._get(),r=this.get();ke(t,r)||(_e(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Li(this._active)&&en(this)}_get(){const e=_.arr(this.source)?this.source.map(ee):oe(ee(this.source));return this.calc(...e)}_start(){this.idle&&!Li(this._active)&&(this.idle=!1,I(Tr(this),e=>{e.done=!1}),we.skipAnimation?(R.batchedUpdates(()=>this.advance()),en(this)):Nr.start(this))}_attach(){let e=1;I(oe(this.source),t=>{le(t)&&yt(t,this),yn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){I(oe(this.source),e=>{le(e)&&Mt(e,this)}),this._active.clear(),en(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=oe(this.source).reduce((t,r)=>Math.max(t,(yn(r)?r.priority:0)+1),0))}};function Dc(e){return e.idle!==!1}function Li(e){return!e.size||Array.from(e).every(Dc)}function en(e){e.idle||(e.idle=!0,I(Tr(e),t=>{t.done=!0}),$t(e,{type:"idle",parent:e}))}we.assign({createStringInterpolator:To,to:(e,t)=>new Ic(e,t)});var es=/^--/;function jc(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!es.test(e)&&!(It.hasOwnProperty(e)&&It[e])?t+"px":(""+t).trim()}var Bi={};function Vc(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:u,...l}=t,f=Object.values(l),d=Object.keys(l).map(h=>r||e.hasAttribute(h)?h:Bi[h]||(Bi[h]=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const h in i)if(i.hasOwnProperty(h)){const p=jc(h,i[h]);es.test(h)?e.style.setProperty(h,p):e.style[h]=p}d.forEach((h,p)=>{e.setAttribute(h,f[p])}),n!==void 0&&(e.className=n),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a),u!==void 0&&e.setAttribute("viewBox",u)}var It={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},$c=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Mc=["Webkit","Ms","Moz","O"];It=Object.keys(It).reduce((e,t)=>(Mc.forEach(r=>e[$c(r,t)]=e[t]),e),It);var zc=/^(matrix|translate|scale|rotate|skew)/,Fc=/^(translate)/,Lc=/^(rotate|skew)/,tn=(e,t)=>_.num(e)&&e!==0?e+t:e,cr=(e,t)=>_.arr(e)?e.every(r=>cr(r,t)):_.num(e)?e===t:parseFloat(e)===t,Bc=class extends Ir{constructor({x:e,y:t,z:r,...n}){const i=[],o=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),o.push(s=>[`translate3d(${s.map(a=>tn(a,"px")).join(",")})`,cr(s,0)])),Se(n,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(u=>[u,u===""]);else if(zc.test(a)){if(delete n[a],_.und(s))return;const u=Fc.test(a)?"px":Lc.test(a)?"deg":"";i.push(oe(s)),o.push(a==="rotate3d"?([l,f,d,h])=>[`rotate3d(${l},${f},${d},${tn(h,u)})`,cr(h,0)]:l=>[`${a}(${l.map(f=>tn(f,u)).join(",")})`,cr(l,a.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new Uc(i,o)),super(n)}},Uc=class extends Co{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return I(this.inputs,(r,n)=>{const i=ee(r[0]),[o,s]=this.transforms[n](_.arr(i)?i:r.map(ee));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&I(this.inputs,t=>I(t,r=>le(r)&&yt(r,this)))}observerRemoved(e){e==0&&I(this.inputs,t=>I(t,r=>le(r)&&Mt(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$t(this,e)}},qc=["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"];we.assign({batchedUpdates:_a.unstable_batchedUpdates,createStringInterpolator:To,colors:Ia});var Wc=fc(qc,{applyAnimatedValues:Vc,createAnimatedStyle:e=>new Bc(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),ts=Wc.animated;function Xn({animate:e=!0,content:t,textStyles:r,htmlElement:n,fadeIn:i,characterPreference:o="simplified",maxDelay:s=15e3}){const a=n??"div",[u,l]=N.useState(!1),[f,d]=Zo(()=>({opacity:i?0:1,transform:i?"scale(0)":"scale(1)",config:{duration:200}})),h=N.useRef(e);N.useEffect(()=>{if(!e){h.current=e;return}const ne=!h.current&&e;h.current=e;const G=ne?500:Math.floor(Math.random()*(s-3500+1))+3500,ie=setTimeout(()=>{d.start({opacity:0,transform:"translateY(15px)",onRest:()=>{l(W=>!W),d.start({opacity:1,transform:"translateY(0px)"})}})},G);return()=>clearTimeout(ie)},[u,e,d,s]);const p=o==="traditional"?t.traditional:t.simplified,v=e&&u?p:t.english,{fontSize:E,fontFamily:w,fontWeight:y,fontStyle:b,letterSpacing:m,lineHeight:S,...O}=r||{},P={fontSize:E,fontFamily:w,fontWeight:y,fontStyle:b,letterSpacing:m,lineHeight:S},k={...O,display:"inline-grid",alignContent:"center"},V={...P,gridArea:"1 / 1"},z={...P,gridArea:"1 / 1",visibility:"hidden"};return j.jsx(ts.div,{style:{...f,display:"inline-block"},children:j.jsxs(a,{style:k,children:[j.jsx("span",{style:V,children:v}),j.jsx("span",{style:z,children:t.english}),j.jsx("span",{style:z,children:t.simplified}),j.jsx("span",{style:z,children:t.traditional})]})})}var re=function(){return re=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},re.apply(this,arguments)};function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Hc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gc=Hc(function(e){return Yc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L="-ms-",Dt="-moz-",M="-webkit-",rs="comm",jr="rule",Jn="decl",Kc="@import",ns="@keyframes",Qc="@layer",is=Math.abs,Zn=String.fromCharCode,vn=Object.assign;function Xc(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function os(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function A(e,t,r){return e.replace(t,r)}function ur(e,t,r){return e.indexOf(t,r)}function K(e,t){return e.charCodeAt(t)|0}function lt(e,t,r){return e.slice(t,r)}function Ee(e){return e.length}function ss(e){return e.length}function Nt(e,t){return t.push(e),e}function Jc(e,t){return e.map(t).join("")}function Ui(e,t){return e.filter(function(r){return!Oe(r,t)})}var Vr=1,ft=1,as=0,de=0,Y=0,gt="";function $r(e,t,r,n,i,o,s,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Vr,column:ft,length:s,return:"",siblings:a}}function Ie(e,t){return vn($r("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function st(e){for(;e.root;)e=Ie(e.root,{children:[e]});Nt(e,e.siblings)}function Zc(){return Y}function eu(){return Y=de>0?K(gt,--de):0,ft--,Y===10&&(ft=1,Vr--),Y}function be(){return Y=de<as?K(gt,de++):0,ft++,Y===10&&(ft=1,Vr++),Y}function We(){return K(gt,de)}function lr(){return de}function Mr(e,t){return lt(gt,e,t)}function bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tu(e){return Vr=ft=1,as=Ee(gt=e),de=0,[]}function ru(e){return gt="",e}function rn(e){return os(Mr(de-1,wn(e===91?e+2:e===40?e+1:e)))}function nu(e){for(;(Y=We())&&Y<33;)be();return bn(e)>2||bn(Y)>3?"":" "}function iu(e,t){for(;--t&&be()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Mr(e,lr()+(t<6&&We()==32&&be()==32))}function wn(e){for(;be();)switch(Y){case e:return de;case 34:case 39:e!==34&&e!==39&&wn(Y);break;case 40:e===41&&wn(e);break;case 92:be();break}return de}function ou(e,t){for(;be()&&e+Y!==57;)if(e+Y===84&&We()===47)break;return"/*"+Mr(t,de-1)+"*"+Zn(e===47?e:be())}function su(e){for(;!bn(We());)be();return Mr(e,de)}function au(e){return ru(fr("",null,null,null,[""],e=tu(e),0,[0],e))}function fr(e,t,r,n,i,o,s,a,u){for(var l=0,f=0,d=s,h=0,p=0,v=0,E=1,w=1,y=1,b=0,m="",S=i,O=o,P=n,k=m;w;)switch(v=b,b=be()){case 40:if(v!=108&&K(k,d-1)==58){ur(k+=A(rn(b),"&","&\f"),"&\f",is(l?a[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:k+=rn(b);break;case 9:case 10:case 13:case 32:k+=nu(v);break;case 92:k+=iu(lr()-1,7);continue;case 47:switch(We()){case 42:case 47:Nt(cu(ou(be(),lr()),t,r,u),u);break;default:k+="/"}break;case 123*E:a[l++]=Ee(k)*y;case 125*E:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:y==-1&&(k=A(k,/\f/g,"")),p>0&&Ee(k)-d&&Nt(p>32?Wi(k+";",n,r,d-1,u):Wi(A(k," ","")+";",n,r,d-2,u),u);break;case 59:k+=";";default:if(Nt(P=qi(k,t,r,l,f,i,a,m,S=[],O=[],d,o),o),b===123)if(f===0)fr(k,t,P,P,S,o,d,a,O);else switch(h===99&&K(k,3)===110?100:h){case 100:case 108:case 109:case 115:fr(e,P,P,n&&Nt(qi(e,P,P,0,0,i,a,m,i,S=[],d,O),O),i,O,d,a,n?S:O);break;default:fr(k,P,P,P,[""],O,0,a,O)}}l=f=p=0,E=y=1,m=k="",d=s;break;case 58:d=1+Ee(k),p=v;default:if(E<1){if(b==123)--E;else if(b==125&&E++==0&&eu()==125)continue}switch(k+=Zn(b),b*E){case 38:y=f>0?1:(k+="\f",-1);break;case 44:a[l++]=(Ee(k)-1)*y,y=1;break;case 64:We()===45&&(k+=rn(be())),h=We(),f=d=Ee(m=k+=su(lr())),b++;break;case 45:v===45&&Ee(k)==2&&(E=0)}}return o}function qi(e,t,r,n,i,o,s,a,u,l,f,d){for(var h=i-1,p=i===0?o:[""],v=ss(p),E=0,w=0,y=0;E<n;++E)for(var b=0,m=lt(e,h+1,h=is(w=s[E])),S=e;b<v;++b)(S=os(w>0?p[b]+" "+m:A(m,/&\f/g,p[b])))&&(u[y++]=S);return $r(e,t,r,i===0?jr:a,u,l,f,d)}function cu(e,t,r,n){return $r(e,t,r,rs,Zn(Zc()),lt(e,2,-2),0,n)}function Wi(e,t,r,n,i){return $r(e,t,r,Jn,lt(e,0,n),lt(e,n+1,-1),n,i)}function cs(e,t,r){switch(Xc(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 4789:return Dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Dt+e+L+e+e;case 5936:switch(K(e,t+11)){case 114:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+L+e+e;case 6165:return M+e+L+"flex-"+e+e;case 5187:return M+e+A(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return M+e+L+"flex-item-"+A(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":L+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return M+e+L+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+L+A(e,"shrink","negative")+e;case 5292:return M+e+L+A(e,"basis","preferred-size")+e;case 6060:return M+"box-"+A(e,"-grow","")+M+e+L+A(e,"grow","positive")+e;case 4554:return M+A(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return L+"grid-column-align"+lt(e,t)+e;break;case 2592:case 3360:return L+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,Oe(n.props,/grid-\w+-end/)})?~ur(e+(r=r[t].value),"span",0)?e:L+A(e,"-start","")+e+L+"grid-row-span:"+(~ur(r,"span",0)?Oe(r,/\d+/):+Oe(r,/\d+/)-+Oe(e,/\d+/))+";":L+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Oe(n.props,/grid-\w+-start/)})?e:L+A(A(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ee(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Dt+(K(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch",0)?cs(A(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return A(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,s,a,u,l){return L+i+":"+o+l+(s?L+i+"-span:"+(a?u:+u-+o)+l:"")+e});case 4949:if(K(e,t+6)===121)return A(e,":",":"+M)+e;break;case 6444:switch(K(e,K(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(K(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+L+"$2box$3")+e;case 100:return A(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return A(e,"scroll-","scroll-snap-")+e}return e}function vr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function uu(e,t,r,n){switch(e.type){case Qc:if(e.children.length)break;case Kc:case Jn:return e.return=e.return||e.value;case rs:return"";case ns:return e.return=e.value+"{"+vr(e.children,n)+"}";case jr:if(!Ee(e.value=e.props.join(",")))return""}return Ee(r=vr(e.children,n))?e.return=e.value+"{"+r+"}":""}function lu(e){var t=ss(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}function fu(e){return function(t){t.root||(t=t.return)&&e(t)}}function du(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jn:e.return=cs(e.value,e.length,r);return;case ns:return vr([Ie(e,{value:A(e.value,"@","@"+M)})],n);case jr:if(e.length)return Jc(r=e.props,function(i){switch(Oe(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":st(Ie(e,{props:[A(i,/:(read-\w+)/,":"+Dt+"$1")]})),st(Ie(e,{props:[i]})),vn(e,{props:Ui(r,n)});break;case"::placeholder":st(Ie(e,{props:[A(i,/:(plac\w+)/,":"+M+"input-$1")]})),st(Ie(e,{props:[A(i,/:(plac\w+)/,":"+Dt+"$1")]})),st(Ie(e,{props:[A(i,/:(plac\w+)/,L+"input-$1")]})),st(Ie(e,{props:[i]})),vn(e,{props:Ui(r,n)});break}return""})}}var hu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",us="active",ls="data-styled-version",zr="6.1.16",ei=`/*!sc*/
|
|
31
|
-
`,br=typeof window<"u"&&"HTMLElement"in window,pu=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Hi=/invalid hook call/i,tr=new Set,mu=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
32
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
33
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(s){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];Hi.test(s)?(o=!1,tr.delete(n)):i.apply(void 0,Ke([s],a,!1))},N.useRef(),o&&!tr.has(n)&&(console.warn(n),tr.add(n))}catch(s){Hi.test(s.message)&&tr.delete(n)}finally{console.error=i}}},Fr=Object.freeze([]),dt=Object.freeze({});function yu(e,t,r){return r===void 0&&(r=dt),e.theme!==r.theme&&e.theme||t||r.theme}var _n=new Set(["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","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),gu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vu=/(^-|-$)/g;function Yi(e){return e.replace(gu,"-").replace(vu,"")}var bu=/(a)(d)/gi,rr=52,Gi=function(e){return String.fromCharCode(e+(e>25?39:97))};function En(e){var t,r="";for(t=Math.abs(e);t>rr;t=t/rr|0)r=Gi(t%rr)+r;return(Gi(t%rr)+r).replace(bu,"$1-$2")}var nn,fs=5381,Ue=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ds=function(e){return Ue(fs,e)};function hs(e){return En(ds(e)>>>0)}function ps(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function on(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ms=typeof Symbol=="function"&&Symbol.for,ys=ms?Symbol.for("react.memo"):60115,wu=ms?Symbol.for("react.forward_ref"):60112,_u={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Eu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Su=((nn={})[wu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn[ys]=gs,nn);function Ki(e){return("type"in(t=e)&&t.type.$$typeof)===ys?gs:"$$typeof"in e?Su[e.$$typeof]:_u;var t}var xu=Object.defineProperty,ku=Object.getOwnPropertyNames,Qi=Object.getOwnPropertySymbols,Ou=Object.getOwnPropertyDescriptor,Pu=Object.getPrototypeOf,Xi=Object.prototype;function vs(e,t,r){if(typeof t!="string"){if(Xi){var n=Pu(t);n&&n!==Xi&&vs(e,n,r)}var i=ku(t);Qi&&(i=i.concat(Qi(t)));for(var o=Ki(e),s=Ki(t),a=0;a<i.length;++a){var u=i[a];if(!(u in Eu||r&&r[u]||s&&u in s||o&&u in o)){var l=Ou(t,u);try{xu(e,u,l)}catch{}}}}return e}function ht(e){return typeof e=="function"}function ti(e){return typeof e=="object"&&"styledComponentId"in e}function qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sn(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function pt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xn(e,t,r){if(r===void 0&&(r=!1),!r&&!pt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=xn(e[n],t[n]);else if(pt(t))for(var n in t)e[n]=xn(e[n],t[n]);return e}function ri(e,t){Object.defineProperty(e,"toString",{value:t})}var Nu=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
34
|
-
|
|
35
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
36
|
-
|
|
37
|
-
- Are you trying to reuse it across renders?
|
|
38
|
-
- Are you accidentally calling collectStyles twice?
|
|
39
|
-
|
|
40
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
41
|
-
|
|
42
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
43
|
-
|
|
44
|
-
- Does this error occur on the client and is your target falsy?
|
|
45
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
46
|
-
|
|
47
|
-
`,5:`The clone method cannot be used on the client!
|
|
48
|
-
|
|
49
|
-
- Are you running in a client-like environment on the server?
|
|
50
|
-
- Are you trying to run SSR on the client?
|
|
51
|
-
|
|
52
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
53
|
-
|
|
54
|
-
- Are you using a custom target that isn't mounted?
|
|
55
|
-
- Does your document not have a valid head element?
|
|
56
|
-
- Have you accidentally removed a style tag manually?
|
|
57
|
-
|
|
58
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
59
|
-
|
|
60
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
61
|
-
|
|
62
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
63
|
-
|
|
64
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
65
|
-
|
|
66
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
67
|
-
|
|
68
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
69
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
70
|
-
as for instance in your render method then you may be running into this limitation.
|
|
71
|
-
|
|
72
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
73
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
74
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Cu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],i=1,o=e.length;i<o;i+=1)n.push(e[i]);return n.forEach(function(s){r=r.replace(/%[a-z]/,s)}),r}function vt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Cu.apply(void 0,Ke([Nu[e]],t,!1)).trim())}var Ru=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;t>=o;)if((o<<=1)<0)throw vt(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),u=(s=0,r.length);s<u;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r;this.groupSizes[t]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n,s=i;s<o;s++)r+="".concat(this.tag.getRule(s)).concat(ei);return r},e}(),Au=1<<30,dr=new Map,wr=new Map,hr=1,nr=function(e){if(dr.has(e))return dr.get(e);for(;wr.has(hr);)hr++;var t=hr++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Au))throw vt(16,"".concat(t));return dr.set(e,t),wr.set(t,e),t},Tu=function(e,t){hr=t+1,dr.set(e,t),wr.set(t,e)},Iu="style[".concat(Qe,"][").concat(ls,'="').concat(zr,'"]'),Du=new RegExp("^".concat(Qe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ju=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},Vu=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(ei),i=[],o=0,s=n.length;o<s;o++){var a=n[o].trim();if(a){var u=a.match(Du);if(u){var l=0|parseInt(u[1],10),f=u[2];l!==0&&(Tu(f,l),ju(e,f,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(a)}}},Ji=function(e){for(var t=document.querySelectorAll(Iu),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(Qe)!==us&&(Vu(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function $u(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var bs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(a){var u=Array.from(a.querySelectorAll("style[".concat(Qe,"]")));return u[u.length-1]}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Qe,us),n.setAttribute(ls,zr);var s=$u();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},Mu=function(){function e(t){this.element=bs(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var s=n[i];if(s.ownerNode===r)return s}throw vt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),zu=function(){function e(t){this.element=bs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Fu=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Zi=br,Lu={isServer:!br,useCSSOMInjection:!pu},ws=function(){function e(t,r,n){t===void 0&&(t=dt),r===void 0&&(r={});var i=this;this.options=re(re({},Lu),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&br&&Zi&&(Zi=!1,Ji(this)),ri(this,function(){return function(o){for(var s=o.getTag(),a=s.length,u="",l=function(d){var h=function(y){return wr.get(y)}(d);if(h===void 0)return"continue";var p=o.names.get(h),v=s.getGroup(d);if(p===void 0||!p.size||v.length===0)return"continue";var E="".concat(Qe,".g").concat(d,'[id="').concat(h,'"]'),w="";p!==void 0&&p.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),u+="".concat(v).concat(E,'{content:"').concat(w,'"}').concat(ei)},f=0;f<a;f++)l(f);return u}(i)})}return e.registerId=function(t){return nr(t)},e.prototype.rehydrate=function(){!this.server&&br&&Ji(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(re(re({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new Fu(i):n?new Mu(i):new zu(i)}(this.options),new Ru(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(nr(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(nr(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nr(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Bu=/&/g,Uu=/^\s*\/\/.*$/gm;function _s(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=_s(r.children,t)),r})}function qu(e){var t,r,n,i=dt,o=i.options,s=o===void 0?dt:o,a=i.plugins,u=a===void 0?Fr:a,l=function(h,p,v){return v.startsWith(r)&&v.endsWith(r)&&v.replaceAll(r,"").length>0?".".concat(t):h},f=u.slice();f.push(function(h){h.type===jr&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Bu,r).replace(n,l))}),s.prefix&&f.push(du),f.push(uu);var d=function(h,p,v,E){p===void 0&&(p=""),v===void 0&&(v=""),E===void 0&&(E="&"),t=E,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var w=h.replace(Uu,""),y=au(v||p?"".concat(v," ").concat(p," { ").concat(w," }"):w);s.namespace&&(y=_s(y,s.namespace));var b=[];return vr(y,lu(f.concat(fu(function(m){return b.push(m)})))),b};return d.hash=u.length?u.reduce(function(h,p){return p.name||vt(15),Ue(h,p.name)},fs).toString():"",d}var Wu=new ws,kn=qu(),Es=N.createContext({shouldForwardProp:void 0,styleSheet:Wu,stylis:kn});Es.Consumer;N.createContext(void 0);function eo(){return N.useContext(Es)}var On=function(){function e(t,r){var n=this;this.inject=function(i,o){o===void 0&&(o=kn);var s=n.name+o.hash;i.hasNameForId(n.id,s)||i.insertRules(n.id,s,o(n.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ri(this,function(){throw vt(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=kn),this.name+t.hash},e}(),Hu=function(e){return e>="A"&&e<="Z"};function to(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Hu(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ss=function(e){return e==null||e===!1||e===""},xs=function(e){var t,r,n=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!Ss(o)&&(Array.isArray(o)&&o.isCss||ht(o)?n.push("".concat(to(i),":"),o,";"):pt(o)?n.push.apply(n,Ke(Ke(["".concat(i," {")],xs(o),!1),["}"],!1)):n.push("".concat(to(i),": ").concat((t=i,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in hu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function He(e,t,r,n){if(Ss(e))return[];if(ti(e))return[".".concat(e.styledComponentId)];if(ht(e)){if(!ht(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof On||pt(i)||i===null||console.error("".concat(ps(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),He(i,t,r,n)}var o;return e instanceof On?r?(e.inject(r,n),[e.getName(n)]):[e]:pt(e)?xs(e):Array.isArray(e)?Array.prototype.concat.apply(Fr,e.map(function(s){return He(s,t,r,n)})):[e.toString()]}function Yu(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ht(r)&&!ti(r))return!1}return!0}var Gu=ds(zr),Ku=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Yu(t),this.componentId=r,this.baseHash=Ue(Gu,r),this.baseStyle=n,ws.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=qe(i,this.staticRulesId);else{var o=Sn(He(this.rules,t,r,n)),s=En(Ue(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,s)){var a=n(o,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,a)}i=qe(i,s),this.staticRulesId=s}else{for(var u=Ue(this.baseHash,n.hash),l="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(u=Ue(u,d));else if(d){var h=Sn(He(d,t,r,n));u=Ue(u,h+f),l+=h}}if(l){var p=En(u>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),i=qe(i,p)}}return i},e}(),ks=N.createContext(void 0);ks.Consumer;var sn={},ro=new Set;function Qu(e,t,r){var n=ti(e),i=e,o=!on(e),s=t.attrs,a=s===void 0?Fr:s,u=t.componentId,l=u===void 0?function(S,O){var P=typeof S!="string"?"sc":Yi(S);sn[P]=(sn[P]||0)+1;var k="".concat(P,"-").concat(hs(zr+P+sn[P]));return O?"".concat(O,"-").concat(k):k}(t.displayName,t.parentComponentId):u,f=t.displayName,d=f===void 0?function(S){return on(S)?"styled.".concat(S):"Styled(".concat(ps(S),")")}(e):f,h=t.displayName&&t.componentId?"".concat(Yi(t.displayName),"-").concat(t.componentId):t.componentId||l,p=n&&i.attrs?i.attrs.concat(a).filter(Boolean):a,v=t.shouldForwardProp;if(n&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;v=function(S,O){return E(S,O)&&w(S,O)}}else v=E}var y=new Ku(r,h,n?i.componentStyle:void 0);function b(S,O){return function(P,k,V){var z=P.attrs,ne=P.componentStyle,G=P.defaultProps,ie=P.foldedComponentIds,W=P.styledComponentId,he=P.target,ze=N.useContext(ks),Qt=eo(),Ze=P.shouldForwardProp||Qt.shouldForwardProp;process.env.NODE_ENV!=="production"&&N.useDebugValue(W);var bt=yu(k,ze,G)||dt,ce=function(tt,xe,Re){for(var pe,me=re(re({},xe),{className:void 0,theme:Re}),Ae=0;Ae<tt.length;Ae+=1){var rt=ht(pe=tt[Ae])?pe(me):pe;for(var ye in rt)me[ye]=ye==="className"?qe(me[ye],rt[ye]):ye==="style"?re(re({},me[ye]),rt[ye]):rt[ye]}return xe.className&&(me.className=qe(me.className,xe.className)),me}(z,k,bt),Ne=ce.as||he,Ce={};for(var X in ce)ce[X]===void 0||X[0]==="$"||X==="as"||X==="theme"&&ce.theme===bt||(X==="forwardedAs"?Ce.as=ce.forwardedAs:Ze&&!Ze(X,Ne)||(Ce[X]=ce[X],Ze||process.env.NODE_ENV!=="development"||Gc(X)||ro.has(X)||!_n.has(Ne)||(ro.add(X),console.warn('styled-components: it looks like an unknown prop "'.concat(X,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var et=function(tt,xe){var Re=eo(),pe=tt.generateAndInjectStyles(xe,Re.styleSheet,Re.stylis);return process.env.NODE_ENV!=="production"&&N.useDebugValue(pe),pe}(ne,ce);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(et);var wt=qe(ie,W);return et&&(wt+=" "+et),ce.className&&(wt+=" "+ce.className),Ce[on(Ne)&&!_n.has(Ne)?"class":"className"]=wt,V&&(Ce.ref=V),N.createElement(Ne,Ce)}(m,S,O)}b.displayName=d;var m=N.forwardRef(b);return m.attrs=p,m.componentStyle=y,m.displayName=d,m.shouldForwardProp=v,m.foldedComponentIds=n?qe(i.foldedComponentIds,i.styledComponentId):"",m.styledComponentId=h,m.target=n?i.target:e,Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=n?function(O){for(var P=[],k=1;k<arguments.length;k++)P[k-1]=arguments[k];for(var V=0,z=P;V<z.length;V++)xn(O,z[V],!0);return O}({},i.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(mu(d,h),m.warnTooManyClasses=function(S,O){var P={},k=!1;return function(V){if(!k&&(P[V]=!0,Object.keys(P).length>=200)){var z=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(z,`.
|
|
75
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
76
|
-
Example:
|
|
77
|
-
const Component = styled.div.attrs(props => ({
|
|
78
|
-
style: {
|
|
79
|
-
background: props.background,
|
|
80
|
-
},
|
|
81
|
-
}))\`width: 100%;\`
|
|
82
|
-
|
|
83
|
-
<Component />`),k=!0,P={}}}}(d,h)),ri(m,function(){return".".concat(m.styledComponentId)}),o&&vs(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}function no(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var io=function(e){return Object.assign(e,{isCss:!0})};function Os(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ht(e)||pt(e))return io(He(no(Fr,Ke([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?He(n):io(He(no(n,t)))}function Pn(e,t,r){if(r===void 0&&(r=dt),!t)throw vt(1,t);var n=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,Os.apply(void 0,Ke([i],o,!1)))};return n.attrs=function(i){return Pn(e,t,re(re({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return Pn(e,t,re(re({},r),i))},n}var Ps=function(e){return Pn(Qu,e)},q=Ps;_n.forEach(function(e){q[e]=Ps(e)});function Ns(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=Sn(Os.apply(void 0,Ke([e],t,!1))),i=hs(n);return new On(i,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
84
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
85
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ir="__sc-".concat(Qe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ir]||(window[ir]=0),window[ir]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
86
|
-
|
|
87
|
-
See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
30
|
+
<%s key={someKey} {...props} />`,Ht,ve,bs,ve),nn[ve+Ht]=!0}}return o===n?ps(L):hs(L),L}}function ms(o,p,E){return sn(o,p,E,!0)}function ys(o,p,E){return sn(o,p,E,!1)}var gs=ys,vs=ms;Ve.Fragment=n,Ve.jsx=gs,Ve.jsxs=vs}()),Ve}var un;function Os(){return un||(un=1,process.env.NODE_ENV==="production"?ft.exports=xs():ft.exports=Ss()),ft.exports}var A=Os(),br=it(),P=e=>nt(e,br),_r=it();P.write=e=>nt(e,_r);var kt=it();P.onStart=e=>nt(e,kt);var wr=it();P.onFrame=e=>nt(e,wr);var Er=it();P.onFinish=e=>nt(e,Er);var Re=[];P.setTimeout=(e,t)=>{const r=P.now()+t,n=()=>{const s=Re.findIndex(a=>a.cancel==n);~s&&Re.splice(s,1),me-=~s?1:0},i={time:r,handler:e,cancel:n};return Re.splice(qn(r),0,i),me+=1,Wn(),i};var qn=e=>~(~Re.findIndex(t=>t.time>e)||~Re.length);P.cancel=e=>{kt.delete(e),wr.delete(e),Er.delete(e),br.delete(e),_r.delete(e)};P.sync=e=>{rr=!0,P.batchedUpdates(e),rr=!1};P.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,P.onStart(r)}return n.handler=e,n.cancel=()=>{kt.delete(r),t=null},n};var xr=typeof window<"u"?window.requestAnimationFrame:()=>{};P.use=e=>xr=e;P.now=typeof performance<"u"?()=>performance.now():Date.now;P.batchedUpdates=e=>e();P.catch=console.error;P.frameLoop="always";P.advance=()=>{P.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Yn()};var pe=-1,me=0,rr=!1;function nt(e,t){rr?(t.delete(e),e(0)):(t.add(e),Wn())}function Wn(){pe<0&&(pe=0,P.frameLoop!=="demand"&&xr(Hn))}function Ps(){pe=-1}function Hn(){~pe&&(xr(Hn),P.batchedUpdates(Yn))}function Yn(){const e=pe;pe=P.now();const t=qn(pe);if(t&&(Qn(Re.splice(0,t),r=>r.handler()),me-=t),!me){Ps();return}kt.flush(),br.flush(e?Math.min(64,pe-e):16.667),wr.flush(),_r.flush(),Er.flush()}function it(){let e=new Set,t=e;return{add(r){me+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return me-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,me-=t.size,Qn(t,n=>n(r)&&e.add(n)),me+=e.size,t=e)}}}function Qn(e,t){e.forEach(r=>{try{t(r)}catch(n){P.catch(n)}})}var ks=Object.defineProperty,Rs=(e,t)=>{for(var r in t)ks(e,r,{get:t[r],enumerable:!0})},oe={};Rs(oe,{assign:()=>Cs,colors:()=>ye,createStringInterpolator:()=>Or,skipAnimation:()=>Gn,to:()=>Kn,willAdvance:()=>Pr});function nr(){}var Ns=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),m={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function le(e,t){if(m.arr(e)){if(!m.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}var C=(e,t)=>e.forEach(t);function ue(e,t,r){if(m.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var G=e=>m.und(e)?[]:m.arr(e)?e:[e];function Le(e,t){if(e.size){const r=Array.from(e);e.clear(),C(r,t)}}var ze=(e,...t)=>Le(e,r=>r(...t)),Sr=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Or,Kn,ye=null,Gn=!1,Pr=nr,Cs=e=>{e.to&&(Kn=e.to),e.now&&(P.now=e.now),e.colors!==void 0&&(ye=e.colors),e.skipAnimation!=null&&(Gn=e.skipAnimation),e.createStringInterpolator&&(Or=e.createStringInterpolator),e.requestAnimationFrame&&P.use(e.requestAnimationFrame),e.batchedUpdates&&(P.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Pr=e.willAdvance),e.frameLoop&&(P.frameLoop=e.frameLoop)},Be=new Set,te=[],Yt=[],gt=0,Rt={get idle(){return!Be.size&&!te.length},start(e){gt>e.priority?(Be.add(e),P.onStart(Ts)):(Jn(e),P(ir))},advance:ir,sort(e){if(gt)P.onFrame(()=>Rt.sort(e));else{const t=te.indexOf(e);~t&&(te.splice(t,1),Xn(e))}},clear(){te=[],Be.clear()}};function Ts(){Be.forEach(Jn),Be.clear(),P(ir)}function Jn(e){te.includes(e)||Xn(e)}function Xn(e){te.splice(As(te,t=>t.priority>e.priority),0,e)}function ir(e){const t=Yt;for(let r=0;r<te.length;r++){const n=te[r];gt=n.priority,n.idle||(Pr(n),n.advance(e),n.idle||t.push(n))}return gt=0,Yt=te,Yt.length=0,te=t,te.length>0}function As(e,t){const r=e.findIndex(t);return r<0?e.length:r}var js={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},se="[-+]?\\d*\\.?\\d+",vt=se+"%";function Nt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ds=new RegExp("rgb"+Nt(se,se,se)),Is=new RegExp("rgba"+Nt(se,se,se,se)),Vs=new RegExp("hsl"+Nt(se,vt,vt)),Ms=new RegExp("hsla"+Nt(se,vt,vt,se)),Fs=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$s=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zs=/^#([0-9a-fA-F]{6})$/,Us=/^#([0-9a-fA-F]{8})$/;function Ls(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zs.exec(e))?parseInt(t[1]+"ff",16)>>>0:ye&&ye[e]!==void 0?ye[e]:(t=Ds.exec(e))?(ke(t[1])<<24|ke(t[2])<<16|ke(t[3])<<8|255)>>>0:(t=Is.exec(e))?(ke(t[1])<<24|ke(t[2])<<16|ke(t[3])<<8|fn(t[4]))>>>0:(t=Fs.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Us.exec(e))?parseInt(t[1],16)>>>0:(t=$s.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Vs.exec(e))?(cn(ln(t[1]),dt(t[2]),dt(t[3]))|255)>>>0:(t=Ms.exec(e))?(cn(ln(t[1]),dt(t[2]),dt(t[3]))|fn(t[4]))>>>0:null}function Qt(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function cn(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,s=Qt(i,n,e+1/3),a=Qt(i,n,e),u=Qt(i,n,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(u*255)<<8}function ke(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ln(e){return(parseFloat(e)%360+360)%360/360}function fn(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function dt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function dn(e){let t=Ls(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${r}, ${n}, ${i}, ${s})`}var He=(e,t,r)=>{if(m.fun(e))return e;if(m.arr(e))return He({range:e,output:t,extrapolate:r});if(m.str(e.output[0]))return Or(e);const n=e,i=n.output,s=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(c=>c);return c=>{const f=qs(c,s);return Bs(c,s[f],s[f+1],i[f],i[f+1],l,a,u,n.map)}};function Bs(e,t,r,n,i,s,a,u,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>r){if(u==="identity")return c;u==="clamp"&&(c=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?c=-c:r===1/0?c=c-t:c=(c-t)/(r-t),c=s(c),n===-1/0?c=-c:i===1/0?c=c+n:c=c*(i-n)+n,c)}function qs(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Ws={linear:e=>e},Ye=Symbol.for("FluidValue.get"),Ce=Symbol.for("FluidValue.observers"),ee=e=>!!(e&&e[Ye]),Q=e=>e&&e[Ye]?e[Ye]():e,hn=e=>e[Ce]||null;function Hs(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Qe(e,t){const r=e[Ce];r&&r.forEach(n=>{Hs(n,t)})}var Zn=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ys(this,e)}},Ys=(e,t)=>ei(e,Ye,t);function Ae(e,t){if(e[Ye]){let r=e[Ce];r||ei(e,Ce,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Ke(e,t){const r=e[Ce];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Ce]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var ei=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),mt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,pn=new RegExp(`(${mt.source})(%|[a-z]+)`,"i"),Ks=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ct=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ti=e=>{const[t,r]=Gs(e);if(!t||Sr())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&Ct.test(r))return ti(r);if(r)return r}return e},Gs=e=>{const t=Ct.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Kt,Js=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,ri=e=>{Kt||(Kt=ye?new RegExp(`(${Object.keys(ye).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Q(s).replace(Ct,ti).replace(Qs,dn).replace(Kt,dn)),r=t.map(s=>s.match(mt).map(Number)),i=r[0].map((s,a)=>r.map(u=>{if(!(a in u))throw Error('The arity of each "output" value must be equal');return u[a]})).map(s=>He({...e,output:s}));return s=>{var l;const a=!pn.test(t[0])&&((l=t.find(c=>pn.test(c)))==null?void 0:l.replace(mt,""));let u=0;return t[0].replace(mt,()=>`${i[u++](s)}${a||""}`).replace(Ks,Js)}},kr="react-spring: ",ni=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${kr}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Xs=ni(console.warn);function Zs(){Xs(`${kr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eo=ni(console.warn);function to(){eo(`${kr}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`)}function Tt(e){return m.str(e)&&(e[0]=="#"||/\d/.test(e)||!Sr()&&Ct.test(e)||e in(ye||{}))}var Rr=Sr()?k.useEffect:k.useLayoutEffect,ro=()=>{const e=k.useRef(!1);return Rr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ii(){const e=k.useState()[1],t=ro();return()=>{t.current&&e(Math.random())}}function no(e,t){const[r]=k.useState(()=>({inputs:t,result:e()})),n=k.useRef(),i=n.current;let s=i;return s?t&&s.inputs&&io(t,s.inputs)||(s={inputs:t,result:e()}):s=r,k.useEffect(()=>{n.current=s,i==r&&(r.inputs=r.result=void 0)},[s]),s.result}function io(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}var si=e=>k.useEffect(e,so),so=[];function mn(e){const t=k.useRef();return k.useEffect(()=>{t.current=e}),t.current}var Ge=Symbol.for("Animated:node"),oo=e=>!!e&&e[Ge]===e,ae=e=>e&&e[Ge],Nr=(e,t)=>Ns(e,Ge,t),At=e=>e&&e[Ge]&&e[Ge].getPayload(),oi=class{constructor(){Nr(this,this)}getPayload(){return this.payload||[]}},st=class extends oi{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,m.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new st(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return m.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,m.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Je=class extends st{constructor(e){super(0),this._string=null,this._toString=He({output:[e,e]})}static create(e){return new Je(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(m.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=He({output:[this.getValue(),e]})),this._value=0,super.reset()}},bt={dependencies:null},jt=class extends oi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ue(this.source,(r,n)=>{oo(r)?t[n]=r.getValue(e):ee(r)?t[n]=Q(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&C(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ue(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bt.dependencies&&ee(e)&&bt.dependencies.add(e);const t=At(e);t&&C(t,r=>this.add(r))}},ai=class extends jt{constructor(e){super(e)}static create(e){return new ai(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(ao)),!0)}};function ao(e){return(Tt(e)?Je:st).create(e)}function sr(e){const t=ae(e);return t?t.constructor:m.arr(e)?ai:Tt(e)?Je:st}var yn=(e,t)=>{const r=!m.fun(e)||e.prototype&&e.prototype.isReactComponent;return k.forwardRef((n,i)=>{const s=k.useRef(null),a=r&&k.useCallback(w=>{s.current=lo(i,w)},[i]),[u,l]=co(n,t),c=ii(),f=()=>{const w=s.current;if(r&&!w)return;(w?t.applyAnimatedValues(w,u.getValue(!0)):!1)===!1&&c()},d=new uo(f,l),h=k.useRef();Rr(()=>(h.current=d,C(l,w=>Ae(w,d)),()=>{h.current&&(C(h.current.deps,w=>Ke(w,h.current)),P.cancel(h.current.update))})),k.useEffect(f,[]),si(()=>()=>{const w=h.current;C(w.deps,x=>Ke(x,w))});const y=t.getComponentProps(u.getValue());return vr.createElement(e,{...y,ref:a})})},uo=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&P.write(this.update)}};function co(e,t){const r=new Set;return bt.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new jt(e),bt.dependencies=null,[e,r]}function lo(e,t){return e&&(m.fun(e)?e(t):e.current=t),t}var gn=Symbol.for("AnimatedComponent"),fo=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new jt(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},s=a=>{const u=vn(a)||"Anonymous";return m.str(a)?a=s[a]||(s[a]=yn(a,i)):a=a[gn]||(a[gn]=yn(a,i)),a.displayName=`Animated(${u})`,a};return ue(e,(a,u)=>{m.arr(e)&&(u=vn(a)),s[u]=s(a)}),{animated:s}},vn=e=>m.str(e)?e:e&&m.str(e.displayName)?e.displayName:m.fun(e)&&e.name||null;function _e(e,...t){return m.fun(e)?e(...t):e}var qe=(e,t)=>e===!0||!!(t&&e&&(m.fun(e)?e(t):G(e).includes(t))),ui=(e,t)=>m.obj(e)?t&&e[t]:e,ci=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,ho=e=>e,Cr=(e,t=ho)=>{let r=po;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const s=t(e[i],i);m.und(s)||(n[i]=s)}return n},po=["config","onProps","onStart","onChange","onPause","onResume","onRest"],mo={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 yo(e){const t={};let r=0;if(ue(e,(n,i)=>{mo[i]||(t[i]=n,r++)}),r)return t}function li(e){const t=yo(e);if(t){const r={to:t};return ue(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Xe(e){return e=Q(e),m.arr(e)?e.map(Xe):Tt(e)?oe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function go(e){for(const t in e)return!0;return!1}function or(e){return m.fun(e)||m.arr(e)&&m.obj(e[0])}function vo(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function bo(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var _o={default:{tension:170,friction:26}},ar={..._o.default,mass:1,damping:1,easing:Ws.linear,clamp:!1},wo=class{constructor(){this.velocity=0,Object.assign(this,ar)}};function Eo(e,t,r){r&&(r={...r},bn(r,t),t={...r,...t}),bn(e,t),Object.assign(e,t);for(const a in ar)e[a]==null&&(e[a]=ar[a]);let{frequency:n,damping:i}=e;const{mass:s}=e;return m.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*s,e.friction=4*Math.PI*i*s/n),e}function bn(e,t){if(!m.und(t.decay))e.duration=void 0;else{const r=!m.und(t.tension)||!m.und(t.friction);(r||!m.und(t.frequency)||!m.und(t.damping)||!m.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var _n=[],xo=class{constructor(){this.changed=!1,this.values=_n,this.toValues=null,this.fromValues=_n,this.config=new wo,this.immediate=!1}};function fi(e,{key:t,props:r,defaultProps:n,state:i,actions:s}){return new Promise((a,u)=>{let l,c,f=qe(r.cancel??(n==null?void 0:n.cancel),t);if(f)y();else{m.und(r.pause)||(i.paused=qe(r.pause,t));let w=n==null?void 0:n.pause;w!==!0&&(w=i.paused||qe(w,t)),l=_e(r.delay||0,t),w?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(c),c.cancel(),l=c.time-P.now()}function h(){l>0&&!oe.skipAnimation?(i.delayed=!0,c=P.setTimeout(y,l),i.pauseQueue.add(d),i.timeouts.add(c)):y()}function y(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(f=!0);try{s.start({...r,callId:e,cancel:f},a)}catch(w){u(w)}}})}var Tr=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Ne(e.get()):t.every(r=>r.noop)?di(e.get()):ie(e.get(),t.every(r=>r.finished)),di=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ie=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Ne=e=>({value:e,cancelled:!0,finished:!1});function hi(e,t,r,n){const{callId:i,parentId:s,onRest:a}=t,{asyncTo:u,promise:l}=r;return!s&&e===u&&!t.reset?l:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=Cr(t,(g,v)=>v==="onRest"?void 0:g);let f,d;const h=new Promise((g,v)=>(f=g,d=v)),y=g=>{const v=i<=(r.cancelId||0)&&Ne(n)||i!==r.asyncId&&ie(n,!1);if(v)throw g.result=v,d(g),g},w=(g,v)=>{const _=new wn,b=new En;return(async()=>{if(oe.skipAnimation)throw Ze(r),b.result=ie(n,!1),d(b),b;y(_);const S=m.obj(g)?{...g}:{...v,to:g};S.parentId=i,ue(c,(z,I)=>{m.und(S[I])&&(S[I]=z)});const R=await n.start(S);return y(_),r.paused&&await new Promise(z=>{r.resumeQueue.add(z)}),R})()};let x;if(oe.skipAnimation)return Ze(r),ie(n,!1);try{let g;m.arr(e)?g=(async v=>{for(const _ of v)await w(_)})(e):g=Promise.resolve(e(w,n.stop.bind(n))),await Promise.all([g.then(f),h]),x=ie(n.get(),!0,!1)}catch(g){if(g instanceof wn)x=g.result;else if(g instanceof En)x=g.result;else throw g}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?u:void 0,r.promise=s?l:void 0)}return m.fun(a)&&P.batchedUpdates(()=>{a(x,n,n.item)}),x})()}function Ze(e,t){Le(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var wn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},En=class extends Error{constructor(){super("SkipAnimationSignal")}},ur=e=>e instanceof Ar,So=1,Ar=class extends Zn{constructor(){super(...arguments),this.id=So++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ae(this);return e&&e.getValue()}to(...e){return oe.to(this,e)}interpolate(...e){return Zs(),oe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Qe(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Rt.sort(this),Qe(this,{type:"priority",parent:this,priority:e})}},Ee=Symbol.for("SpringPhase"),pi=1,mi=2,yi=4,Gt=e=>(e[Ee]&pi)>0,de=e=>(e[Ee]&mi)>0,Me=e=>(e[Ee]&yi)>0,xn=(e,t)=>t?e[Ee]|=mi|pi:e[Ee]&=-3,Sn=(e,t)=>t?e[Ee]|=yi:e[Ee]&=-5,Oo=class extends Ar{constructor(e,t){if(super(),this.animation=new xo,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,!m.und(e)||!m.und(t)){const r=m.obj(e)?{...e}:{...t,from:e};m.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(de(this)||this._state.asyncTo)||Me(this)}get goal(){return Q(this.animation.to)}get velocity(){const e=ae(this);return e instanceof st?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Gt(this)}get isAnimating(){return de(this)}get isPaused(){return Me(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:s}=n,a=At(n.to);!a&&ee(n.to)&&(i=G(Q(n.to))),n.values.forEach((c,f)=>{if(c.done)return;const d=c.constructor==Je?1:a?a[f].lastPosition:i[f];let h=n.immediate,y=d;if(!h){if(y=c.lastPosition,s.tension<=0){c.done=!0;return}let w=c.elapsedTime+=e;const x=n.fromValues[f],g=c.v0!=null?c.v0:c.v0=m.arr(s.velocity)?s.velocity[f]:s.velocity;let v;const _=s.precision||(x==d?.005:Math.min(1,Math.abs(d-x)*.001));if(m.und(s.duration))if(s.decay){const b=s.decay===!0?.998:s.decay,S=Math.exp(-(1-b)*w);y=x+g/(1-b)*(1-S),h=Math.abs(c.lastPosition-y)<=_,v=g*S}else{v=c.lastVelocity==null?g:c.lastVelocity;const b=s.restVelocity||_/10,S=s.clamp?0:s.bounce,R=!m.und(S),z=x==d?c.v0>0:x<d;let I,M=!1;const F=1,re=Math.ceil(e/F);for(let B=0;B<re&&(I=Math.abs(v)>b,!(!I&&(h=Math.abs(d-y)<=_,h)));++B){R&&(M=y==d||y>d==z,M&&(v=-v*S,y=d));const ne=-s.tension*1e-6*(y-d),q=-s.friction*.001*v,ce=(ne+q)/s.mass;v=v+ce*F,y=y+v*F}}else{let b=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,c.durationProgress>0&&(c.elapsedTime=s.duration*c.durationProgress,w=c.elapsedTime+=e)),b=(s.progress||0)+w/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),y=x+s.easing(b)*(d-x),v=(y-c.lastPosition)/e,h=b==1}c.lastVelocity=v,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),h=!0)}a&&!a[f].done&&(h=!1),h?c.done=!0:t=!1,c.setValue(y,s.round)&&(r=!0)});const u=ae(this),l=u.getValue();if(t){const c=Q(n.to);(l!==c||r)&&!s.decay?(u.setValue(c),this._onChange(c)):r&&s.decay&&this._onChange(l),this._stop()}else r&&this._onChange(l)}set(e){return P.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(de(this)){const{to:e,config:t}=this.animation;P.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 m.und(e)?(r=this.queue||[],this.queue=[]):r=[m.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Tr(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ze(this._state,e&&this._lastCallId),P.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=m.obj(r)?r[t]:r,(r==null||or(r))&&(r=void 0),n=m.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return Gt(this)||(e.reverse&&([r,n]=[n,r]),n=Q(n),m.und(n)?ae(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Cr(e,(a,u)=>/^on/.test(u)?ui(a,r):a)),Pn(this,e,"onProps"),$e(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return fi(++this._lastCallId,{key:r,props:e,defaultProps:n,state:s,actions:{pause:()=>{Me(this)||(Sn(this,!0),ze(s.pauseQueue),$e(this,"onPause",ie(this,Fe(this,this.animation.to)),this))},resume:()=>{Me(this)&&(Sn(this,!1),de(this)&&this._resume(),ze(s.resumeQueue),$e(this,"onResume",ie(this,Fe(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const u=gi(e);if(u)return this._update(u,!0)}return a})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Ne(this));const n=!m.und(e.to),i=!m.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(Ne(this));const{key:s,defaultProps:a,animation:u}=this,{to:l,from:c}=u;let{to:f=l,from:d=c}=e;i&&!n&&(!t.default||m.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const h=!le(d,c);h&&(u.from=d),d=Q(d);const y=!le(f,l);y&&this._focus(f);const w=or(t.to),{config:x}=u,{decay:g,velocity:v}=x;(n||i)&&(x.velocity=0),t.config&&!w&&Eo(x,_e(t.config,s),t.config!==a.config?_e(a.config,s):void 0);let _=ae(this);if(!_||m.und(f))return r(ie(this,!0));const b=m.und(t.reset)?i&&!t.default:!m.und(d)&&qe(t.reset,s),S=b?d:this.get(),R=Xe(f),z=m.num(R)||m.arr(R)||Tt(R),I=!w&&(!z||qe(a.immediate||t.immediate,s));if(y){const B=sr(f);if(B!==_.constructor)if(I)_=this._set(R);else throw Error(`Cannot animate between ${_.constructor.name} and ${B.name}, as the "to" prop suggests`)}const M=_.constructor;let F=ee(f),re=!1;if(!F){const B=b||!Gt(this)&&h;(y||B)&&(re=le(Xe(S),R),F=!re),(!le(u.immediate,I)&&!I||!le(x.decay,g)||!le(x.velocity,v))&&(F=!0)}if(re&&de(this)&&(u.changed&&!b?F=!0:F||this._stop(l)),!w&&((F||ee(l))&&(u.values=_.getPayload(),u.toValues=ee(f)?null:M==Je?[1]:G(R)),u.immediate!=I&&(u.immediate=I,!I&&!b&&this._set(l)),F)){const{onRest:B}=u;C(ko,q=>Pn(this,t,q));const ne=ie(this,Fe(this,l));ze(this._pendingCalls,ne),this._pendingCalls.add(r),u.changed&&P.batchedUpdates(()=>{var q;u.changed=!b,B==null||B(ne,this),b?_e(a.onRest,ne):(q=u.onStart)==null||q.call(u,ne,this)})}b&&this._set(S),w?r(hi(t.to,t,this._state,this)):F?this._start():de(this)&&!y?this._pendingCalls.add(r):r(di(S))}_focus(e){const t=this.animation;e!==t.to&&(hn(this)&&this._detach(),t.to=e,hn(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ee(t)&&(Ae(t,this),ur(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ee(e)&&Ke(e,this)}_set(e,t=!0){const r=Q(e);if(!m.und(r)){const n=ae(this);if(!n||!le(r,n.getValue())){const i=sr(r);!n||n.constructor!=i?Nr(this,i.create(r)):n.setValue(r),n&&P.batchedUpdates(()=>{this._onChange(r,t)})}}return ae(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,$e(this,"onStart",ie(this,Fe(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),_e(this.animation.onChange,e,this)),_e(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ae(this).reset(Q(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),de(this)||(xn(this,!0),Me(this)||this._resume())}_resume(){oe.skipAnimation?this.finish():Rt.start(this)}_stop(e,t){if(de(this)){xn(this,!1);const r=this.animation;C(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Qe(this,{type:"idle",parent:this});const n=t?Ne(this.get()):ie(this.get(),Fe(this,e??r.to));ze(this._pendingCalls,n),r.changed&&(r.changed=!1,$e(this,"onRest",n,this))}}};function Fe(e,t){const r=Xe(t),n=Xe(e.get());return le(n,r)}function gi(e,t=e.loop,r=e.to){const n=_e(t);if(n){const i=n!==!0&&li(n),s=(i||e).reverse,a=!i||i.reset;return et({...e,loop:t,default:!1,pause:void 0,to:!s||or(r)?r:void 0,from:a?e.from:void 0,reset:a,...i})}}function et(e){const{to:t,from:r}=e=li(e),n=new Set;return m.obj(t)&&On(t,n),m.obj(r)&&On(r,n),e.keys=n.size?Array.from(n):null,e}function Po(e){const t=et(e);return m.und(t.default)&&(t.default=Cr(t)),t}function On(e,t){ue(e,(r,n)=>r!=null&&t.add(n))}var ko=["onStart","onRest","onChange","onPause","onResume"];function Pn(e,t,r){e.animation[r]=t[r]!==ci(t,r)?ui(t[r],e.key):void 0}function $e(e,t,...r){var n,i,s,a;(i=(n=e.animation)[t])==null||i.call(n,...r),(a=(s=e.defaultProps)[t])==null||a.call(s,...r)}var Ro=["onStart","onChange","onRest"],No=1,Co=class{constructor(e,t){this.id=No++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({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];m.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(et(e)),this}start(e){let{queue:t}=this;return e?t=G(e).map(et):this.queue=[],this._flush?this._flush(this,t):(Ei(this,t),cr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;C(G(t),n=>r[n].stop(!!e))}else Ze(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(m.und(e))this.start({pause:!0});else{const t=this.springs;C(G(e),r=>t[r].pause())}return this}resume(e){if(m.und(e))this.start({pause:!1});else{const t=this.springs;C(G(e),r=>t[r].resume())}return this}each(e){ue(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,Le(e,([u,l])=>{l.value=this.get(),u(l,this,this._item)}));const s=!n&&this._started,a=i||s&&r.size?this.get():null;i&&t.size&&Le(t,([u,l])=>{l.value=a,u(l,this,this._item)}),s&&(this._started=!1,Le(r,([u,l])=>{l.value=a,u(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;P.onFrame(this._onFrame)}};function cr(e,t){return Promise.all(t.map(r=>vi(e,r))).then(r=>Tr(e,r))}async function vi(e,t,r){const{keys:n,to:i,from:s,loop:a,onRest:u,onResolve:l}=t,c=m.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const f=m.arr(i)||m.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):C(Ro,x=>{const g=t[x];if(m.fun(g)){const v=e._events[x];t[x]=({finished:_,cancelled:b})=>{const S=v.get(g);S?(_||(S.finished=!1),b&&(S.cancelled=!0)):v.set(g,{value:null,finished:_||!1,cancelled:b||!1})},c&&(c[x]=t[x])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ze(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map(x=>e.springs[x].start(t)),y=t.cancel===!0||ci(t,"cancel")===!0;(f||y&&d.asyncId)&&h.push(fi(++e._lastAsyncId,{props:t,state:d,actions:{pause:nr,resume:nr,start(x,g){y?(Ze(d,e._lastAsyncId),g(Ne(e))):(x.onRest=u,g(hi(f,x,d,e)))}}})),d.paused&&await new Promise(x=>{d.resumeQueue.add(x)});const w=Tr(e,await Promise.all(h));if(a&&w.finished&&!(r&&w.noop)){const x=gi(t,a,i);if(x)return Ei(e,[x]),vi(e,x,!0)}return l&&P.batchedUpdates(()=>l(w,e,e.item)),w}function kn(e,t){const r={...e.springs};return t&&C(G(t),n=>{m.und(n.keys)&&(n=et(n)),m.obj(n.to)||(n={...n,to:void 0}),wi(r,n,i=>_i(i))}),bi(e,r),r}function bi(e,t){ue(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,Ae(r,e))})}function _i(e,t){const r=new Oo;return r.key=e,t&&Ae(r,t),r}function wi(e,t,r){t.keys&&C(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Ei(e,t){C(t,r=>{wi(e.springs,r,n=>_i(n,e))})}var Dt=({children:e,...t})=>{const r=k.useContext(_t),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=no(()=>({pause:n,immediate:i}),[n,i]);const{Provider:s}=_t;return vr.createElement(s,{value:t},e)},_t=To(Dt,{});Dt.Provider=_t.Provider;Dt.Consumer=_t.Consumer;function To(e,t){return Object.assign(e,vr.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ao=()=>{const e=[],t=function(n){to();const i=[];return C(e,(s,a)=>{if(m.und(n))i.push(s.start());else{const u=r(n,s,a);u&&i.push(s.start(u))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return C(e,n=>n.pause(...arguments)),this},t.resume=function(){return C(e,n=>n.resume(...arguments)),this},t.set=function(n){C(e,(i,s)=>{const a=m.fun(n)?n(s,i):n;a&&i.set(a)})},t.start=function(n){const i=[];return C(e,(s,a)=>{if(m.und(n))i.push(s.start());else{const u=this._getProps(n,s,a);u&&i.push(s.start(u))}}),i},t.stop=function(){return C(e,n=>n.stop(...arguments)),this},t.update=function(n){return C(e,(i,s)=>i.update(this._getProps(n,i,s))),this};const r=function(n,i,s){return m.fun(n)?n(s,i):n};return t._getProps=r,t};function jo(e,t,r){const n=m.fun(t)&&t;n&&!r&&(r=[]);const i=k.useMemo(()=>n||arguments.length==3?Ao():void 0,[]),s=k.useRef(0),a=ii(),u=k.useMemo(()=>({ctrls:[],queue:[],flush(v,_){const b=kn(v,_);return s.current>0&&!u.queue.length&&!Object.keys(b).some(R=>!v.springs[R])?cr(v,_):new Promise(R=>{bi(v,b),u.queue.push(()=>{R(cr(v,_))}),a()})}}),[]),l=k.useRef([...u.ctrls]),c=[],f=mn(e)||0;k.useMemo(()=>{C(l.current.slice(e,f),v=>{vo(v,i),v.stop(!0)}),l.current.length=e,d(f,e)},[e]),k.useMemo(()=>{d(0,Math.min(f,e))},r);function d(v,_){for(let b=v;b<_;b++){const S=l.current[b]||(l.current[b]=new Co(null,u.flush)),R=n?n(b,S):t[b];R&&(c[b]=Po(R))}}const h=l.current.map((v,_)=>kn(v,c[_])),y=k.useContext(Dt),w=mn(y),x=y!==w&&go(y);Rr(()=>{s.current++,u.ctrls=l.current;const{queue:v}=u;v.length&&(u.queue=[],C(v,_=>_())),C(l.current,(_,b)=>{i==null||i.add(_),x&&_.start({default:y});const S=c[b];S&&(bo(_,S.ref),_.ref?_.queue.push(S):_.start(S))})}),si(()=>()=>{C(u.ctrls,v=>v.stop(!0))});const g=h.map(v=>({...v}));return i?[g,i]:g}function xi(e,t){const r=m.fun(e),[[n],i]=jo(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Do=class extends Ar{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=He(...t);const r=this._get(),n=sr(r);Nr(this,n.create(r))}advance(e){const t=this._get(),r=this.get();le(t,r)||(ae(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Rn(this._active)&&Jt(this)}_get(){const e=m.arr(this.source)?this.source.map(Q):G(Q(this.source));return this.calc(...e)}_start(){this.idle&&!Rn(this._active)&&(this.idle=!1,C(At(this),e=>{e.done=!1}),oe.skipAnimation?(P.batchedUpdates(()=>this.advance()),Jt(this)):Rt.start(this))}_attach(){let e=1;C(G(this.source),t=>{ee(t)&&Ae(t,this),ur(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){C(G(this.source),e=>{ee(e)&&Ke(e,this)}),this._active.clear(),Jt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=G(this.source).reduce((t,r)=>Math.max(t,(ur(r)?r.priority:0)+1),0))}};function Io(e){return e.idle!==!1}function Rn(e){return!e.size||Array.from(e).every(Io)}function Jt(e){e.idle||(e.idle=!0,C(At(e),t=>{t.done=!0}),Qe(e,{type:"idle",parent:e}))}oe.assign({createStringInterpolator:ri,to:(e,t)=>new Do(e,t)});var Si=/^--/;function Vo(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Si.test(e)&&!(We.hasOwnProperty(e)&&We[e])?t+"px":(""+t).trim()}var Nn={};function Mo(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:i,children:s,scrollTop:a,scrollLeft:u,viewBox:l,...c}=t,f=Object.values(c),d=Object.keys(c).map(h=>r||e.hasAttribute(h)?h:Nn[h]||(Nn[h]=h.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));s!==void 0&&(e.textContent=s);for(const h in i)if(i.hasOwnProperty(h)){const y=Vo(h,i[h]);Si.test(h)?e.style.setProperty(h,y):e.style[h]=y}d.forEach((h,y)=>{e.setAttribute(h,f[y])}),n!==void 0&&(e.className=n),a!==void 0&&(e.scrollTop=a),u!==void 0&&(e.scrollLeft=u),l!==void 0&&e.setAttribute("viewBox",l)}var We={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},Fo=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),$o=["Webkit","Ms","Moz","O"];We=Object.keys(We).reduce((e,t)=>($o.forEach(r=>e[Fo(r,t)]=e[t]),e),We);var zo=/^(matrix|translate|scale|rotate|skew)/,Uo=/^(translate)/,Lo=/^(rotate|skew)/,Xt=(e,t)=>m.num(e)&&e!==0?e+t:e,yt=(e,t)=>m.arr(e)?e.every(r=>yt(r,t)):m.num(e)?e===t:parseFloat(e)===t,Bo=class extends jt{constructor({x:e,y:t,z:r,...n}){const i=[],s=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),s.push(a=>[`translate3d(${a.map(u=>Xt(u,"px")).join(",")})`,yt(a,0)])),ue(n,(a,u)=>{if(u==="transform")i.push([a||""]),s.push(l=>[l,l===""]);else if(zo.test(u)){if(delete n[u],m.und(a))return;const l=Uo.test(u)?"px":Lo.test(u)?"deg":"";i.push(G(a)),s.push(u==="rotate3d"?([c,f,d,h])=>[`rotate3d(${c},${f},${d},${Xt(h,l)})`,yt(h,0)]:c=>[`${u}(${c.map(f=>Xt(f,l)).join(",")})`,yt(c,u.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new qo(i,s)),super(n)}},qo=class extends Zn{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return C(this.inputs,(r,n)=>{const i=Q(r[0]),[s,a]=this.transforms[n](m.arr(i)?i:r.map(Q));e+=" "+s,t=t&&a}),t?"none":e}observerAdded(e){e==1&&C(this.inputs,t=>C(t,r=>ee(r)&&Ae(r,this)))}observerRemoved(e){e==0&&C(this.inputs,t=>C(t,r=>ee(r)&&Ke(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Qe(this,e)}},Wo=["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"];oe.assign({batchedUpdates:ws.unstable_batchedUpdates,createStringInterpolator:ri,colors:js});var Ho=fo(Wo,{applyAnimatedValues:Mo,createAnimatedStyle:e=>new Bo(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Oi=Ho.animated;function jr({animate:e=!0,content:t,textStyles:r,htmlElement:n,fadeIn:i,characterPreference:s="simplified",maxDelay:a=15e3}){const u=n??"div",[l,c]=k.useState(!1),[f,d]=xi(()=>({opacity:i?0:1,transform:i?"scale(0)":"scale(1)",config:{duration:200}})),h=k.useRef(e);k.useEffect(()=>{if(!e){h.current=e;return}const re=!h.current&&e;h.current=e;const B=re?500:Math.floor(Math.random()*(a-3500+1))+3500,ne=setTimeout(()=>{d.start({opacity:0,transform:"translateY(15px)",onRest:()=>{c(q=>!q),d.start({opacity:1,transform:"translateY(0px)"})}})},B);return()=>clearTimeout(ne)},[l,e,d,a]);const y=s==="traditional"?t.traditional:t.simplified,w=e&&l?y:t.english,{fontSize:x,fontFamily:g,fontWeight:v,fontStyle:_,letterSpacing:b,lineHeight:S,...R}=r||{},z={fontSize:x,fontFamily:g,fontWeight:v,fontStyle:_,letterSpacing:b,lineHeight:S},I={...R,display:"inline-grid",alignContent:"center"},M={...z,gridArea:"1 / 1"},F={...z,gridArea:"1 / 1",visibility:"hidden"};return A.jsx(Oi.div,{style:{...f,display:"inline-block"},children:A.jsxs(u,{style:I,children:[A.jsx("span",{style:M,children:w}),A.jsx("span",{style:F,children:t.english}),A.jsx("span",{style:F,children:t.simplified}),A.jsx("span",{style:F,children:t.traditional})]})})}const Yo=$.keyframes`
|
|
88
31
|
0% {
|
|
89
32
|
transform: scale(1);
|
|
90
33
|
}
|
|
@@ -94,7 +37,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
94
37
|
100% {
|
|
95
38
|
transform: scale(1);
|
|
96
39
|
}
|
|
97
|
-
`,
|
|
40
|
+
`,Qo=$.div`
|
|
98
41
|
display: inline-block;
|
|
99
42
|
position: relative;
|
|
100
43
|
overflow: hidden;
|
|
@@ -103,9 +46,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
103
46
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
|
104
47
|
|
|
105
48
|
&:active {
|
|
106
|
-
animation: ${
|
|
49
|
+
animation: ${Yo} 0.2s;
|
|
107
50
|
}
|
|
108
|
-
`,
|
|
51
|
+
`,Ko=$.button`
|
|
109
52
|
display: flex;
|
|
110
53
|
align-items: center;
|
|
111
54
|
position: relative;
|
|
@@ -124,14 +67,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
124
67
|
background-color: #ffb652;
|
|
125
68
|
color: black;
|
|
126
69
|
}
|
|
127
|
-
`,
|
|
70
|
+
`,Go=$.div`
|
|
128
71
|
display: flex;
|
|
129
72
|
margin-right: 1.25rem;
|
|
130
73
|
|
|
131
74
|
@media (min-width: 640px) {
|
|
132
75
|
margin-right: 0.25rem;
|
|
133
76
|
}
|
|
134
|
-
`;var
|
|
77
|
+
`;var Pi={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cn=k.createContext&&k.createContext(Pi),Jo=["attr","size","title"];function Xo(e,t){if(e==null)return{};var r=Zo(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zo(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wt(){return wt=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},wt.apply(this,arguments)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tn(Object(r),!0).forEach(function(n){ea(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ea(e,t,r){return t=ta(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ta(e){var t=ra(e,"string");return typeof t=="symbol"?t:t+""}function ra(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ki(e){return e&&e.map((t,r)=>k.createElement(t.tag,Et({key:r},t.attr),ki(t.child)))}function ge(e){return t=>k.createElement(na,wt({attr:Et({},e.attr)},t),ki(e.child))}function na(e){var t=r=>{var{attr:n,size:i,title:s}=e,a=Xo(e,Jo),u=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),k.createElement("svg",wt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:Et(Et({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&k.createElement("title",null,s),e.children)};return Cn!==void 0?k.createElement(Cn.Consumer,null,r=>t(r)):t(Pi)}function ia(e){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function sa(e){return ge({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const oa=({iconComponent:e,buttonText:t,buttonType:r="primary",onClick:n,characterPreference:i,animate:s=!0})=>{let a;e==="plus"?a=A.jsx(ia,{}):e==="send"&&(a=A.jsx(sa,{}));const u=()=>{n&&n()};return A.jsx(Qo,{onClick:u,children:A.jsxs(Ko,{className:r,children:[A.jsx(Go,{children:a}),A.jsx(jr,{textStyles:{lineHeight:"0.8rem",minWidth:"3rem"},content:t,animate:s,characterPreference:i})]})})},aa=$(Oi.div)`
|
|
135
78
|
width: 2.5rem;
|
|
136
79
|
height: 2.5rem;
|
|
137
80
|
border-radius: 50%;
|
|
@@ -140,11 +83,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
140
83
|
align-items: center;
|
|
141
84
|
justify-content: center;
|
|
142
85
|
cursor: pointer;
|
|
143
|
-
`,
|
|
86
|
+
`,ua=$.span`
|
|
144
87
|
display: flex;
|
|
145
88
|
color: black;
|
|
146
89
|
font-size: 1.125rem;
|
|
147
|
-
`;function
|
|
90
|
+
`;function ca(e){return ge({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"},child:[]}]})(e)}function la(e){return ge({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z"},child:[]},{tag:"path",attr:{d:"M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z"},child:[]},{tag:"path",attr:{d:"M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z"},child:[]},{tag:"path",attr:{d:"M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z"},child:[]},{tag:"path",attr:{d:"M12 9h2V8h-2z"},child:[]}]})(e)}const fa=({iconComponent:e,onClick:t})=>{const r=xi({from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"}}),n=()=>{t&&t()};let i;return e==="person"?i=A.jsx(ca,{}):e==="qr"&&(i=A.jsx(la,{})),A.jsx(aa,{style:r,onClick:n,children:A.jsx(ua,{children:i})})};function da(e){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}const ha=({size:e,onClick:t})=>{const r=()=>{t&&t()};return A.jsx(da,{size:e??"1.5rem",onClick:r})},pa=$.keyframes`
|
|
148
91
|
0% {
|
|
149
92
|
transform: scale(0);
|
|
150
93
|
opacity: 0.6;
|
|
@@ -153,7 +96,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
153
96
|
transform: scale(10);
|
|
154
97
|
opacity: 0;
|
|
155
98
|
}
|
|
156
|
-
`,
|
|
99
|
+
`,ma=$.span`
|
|
157
100
|
position: absolute;
|
|
158
101
|
left: ${({$x:e})=>e}px;
|
|
159
102
|
top: ${({$y:e})=>e}px;
|
|
@@ -164,60 +107,60 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
164
107
|
border-radius: 50%;
|
|
165
108
|
background-color: rgba(0, 0, 0, 0.15);
|
|
166
109
|
pointer-events: none;
|
|
167
|
-
animation: ${
|
|
168
|
-
|
|
110
|
+
animation: ${pa} 0.4s ease-out forwards;
|
|
111
|
+
`;$.div`
|
|
169
112
|
position: absolute;
|
|
170
113
|
left: 0;
|
|
171
114
|
right: 0;
|
|
172
115
|
display: flex;
|
|
173
116
|
flex-direction: column;
|
|
174
117
|
z-index: 1;
|
|
175
|
-
|
|
118
|
+
`;$.div`
|
|
176
119
|
display: flex;
|
|
177
120
|
flex-direction: column;
|
|
178
121
|
padding: 1.5rem var(--app-standard-padding);
|
|
179
122
|
color: black;
|
|
180
123
|
gap: 2rem;
|
|
181
124
|
justify-self: center;
|
|
182
|
-
|
|
125
|
+
`;$.div`
|
|
183
126
|
display: flex;
|
|
184
127
|
flex-direction: column;
|
|
185
128
|
gap: 1.5rem;
|
|
186
|
-
`;const
|
|
129
|
+
`;const ya=$.ul`
|
|
187
130
|
display: flex;
|
|
188
131
|
flex-direction: column;
|
|
189
132
|
justify-content: center;
|
|
190
133
|
padding-inline-start: unset;
|
|
191
|
-
`,
|
|
134
|
+
`,ga=$.li`
|
|
192
135
|
position: relative;
|
|
193
136
|
list-style: none;
|
|
194
137
|
cursor: pointer;
|
|
195
138
|
overflow: hidden;
|
|
196
139
|
-webkit-tap-highlight-color: transparent;
|
|
197
140
|
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
|
|
198
|
-
`,
|
|
141
|
+
`,va=$.div`
|
|
199
142
|
display: flex;
|
|
200
143
|
flex-direction: row;
|
|
201
144
|
justify-content: space-between;
|
|
202
145
|
align-items: center;
|
|
203
146
|
padding: 0.5rem 0.75rem;
|
|
204
|
-
`,
|
|
147
|
+
`,ba=$.div`
|
|
205
148
|
display: flex;
|
|
206
149
|
flex-direction: row;
|
|
207
150
|
gap: 2rem;
|
|
208
151
|
align-items: center;
|
|
209
|
-
`,
|
|
152
|
+
`,An=$.div`
|
|
210
153
|
display: flex;
|
|
211
154
|
flex-direction: column;
|
|
212
155
|
justify-content: center;
|
|
213
|
-
`,
|
|
156
|
+
`,_a=$.span`
|
|
214
157
|
font-size: 1rem;
|
|
215
|
-
`;function
|
|
158
|
+
`;function wa(e){return ge({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"},child:[]}]})(e)}function Ea(e){return ge({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(e)}function xa(e){return ge({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(e)}const Sa=$.input`
|
|
216
159
|
opacity: 0;
|
|
217
160
|
width: 0;
|
|
218
161
|
height: 0;
|
|
219
162
|
position: absolute;
|
|
220
|
-
`,
|
|
163
|
+
`,lr=$.span`
|
|
221
164
|
position: absolute;
|
|
222
165
|
top: 50%;
|
|
223
166
|
left: ${({$checked:e})=>e?"14px":"0px"};
|
|
@@ -229,7 +172,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
229
172
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
230
173
|
left 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
231
174
|
pointer-events: none;
|
|
232
|
-
`,
|
|
175
|
+
`,Oa=$.label`
|
|
233
176
|
position: relative;
|
|
234
177
|
display: inline-flex;
|
|
235
178
|
align-items: center;
|
|
@@ -237,21 +180,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
237
180
|
-webkit-tap-highlight-color: transparent;
|
|
238
181
|
|
|
239
182
|
@media (hover: hover) {
|
|
240
|
-
&:hover ${
|
|
183
|
+
&:hover ${lr} {
|
|
241
184
|
background-color: ${({$checked:e})=>e?"rgba(72, 159, 181, 0.08)":"rgba(0, 0, 0, 0.04)"};
|
|
242
185
|
}
|
|
243
186
|
}
|
|
244
187
|
|
|
245
|
-
&:focus-within ${
|
|
188
|
+
&:focus-within ${lr} {
|
|
246
189
|
background-color: ${({$checked:e})=>e?"rgba(72, 159, 181, 0.12)":"rgba(0, 0, 0, 0.06)"};
|
|
247
190
|
}
|
|
248
|
-
`,
|
|
191
|
+
`,Pa=$.span`
|
|
249
192
|
width: 34px;
|
|
250
193
|
height: 14px;
|
|
251
194
|
background-color: ${({$checked:e})=>e?"rgba(72, 159, 181, 0.5)":"rgba(0, 0, 0, 0.38)"};
|
|
252
195
|
border-radius: 7px;
|
|
253
196
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
254
|
-
`,
|
|
197
|
+
`,ka=$.span`
|
|
255
198
|
position: absolute;
|
|
256
199
|
top: 50%;
|
|
257
200
|
left: ${({$checked:e})=>e?"14px":"0px"};
|
|
@@ -266,12 +209,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Xu=Ns`
|
|
|
266
209
|
transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
267
210
|
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
268
211
|
pointer-events: none;
|
|
269
|
-
`,As=({checked:e,defaultChecked:t=!1,onChange:r,disabled:n=!1})=>{const[i,o]=N.useState(t),s=e!==void 0,a=s?e:i,u=l=>{if(n)return;l.target.blur();const f=!a;s||o(f),r==null||r(f)};return j.jsxs(Cl,{$checked:a,onClick:l=>l.stopPropagation(),children:[j.jsx(Nl,{type:"checkbox",checked:a,onChange:u,disabled:n}),j.jsx(Rl,{$checked:a}),j.jsx(Nn,{$checked:a}),j.jsx(Al,{$checked:a})]})},Tl={translate:kl,sunny:Pl,character:({size:e})=>j.jsx("span",{style:{fontSize:e||"1rem",height:e||"1rem",lineHeight:e||"1rem",display:"inline-flex",alignItems:"center"},children:"字"})},Il=({icon:e,text:t,textContent:r,characterPreference:n,animate:i=!0,maxDelay:o,actionIcon:s="chevron",onClick:a,styles:u,switchChecked:l,onSwitchChange:f})=>{const d=Tl[e],[h,p]=N.useState(null),v=w=>{const y=w.currentTarget.getBoundingClientRect(),b=w.clientX-y.left,m=w.clientY-y.top;p({x:b,y:m,key:Date.now()}),s==="switch"&&f?f(!l):a&&a()},E=()=>s==="switch"?j.jsx(As,{checked:l,onChange:f}):j.jsx(Ol,{});return j.jsxs(_l,{onClick:v,style:u,children:[h&&j.jsx(bl,{$x:h.x,$y:h.y},h.key),j.jsxs(El,{children:[j.jsxs(Sl,{children:[j.jsx(ao,{children:j.jsx(d,{size:"1rem"})}),j.jsx(xl,{children:r?j.jsx(Xn,{content:r,characterPreference:n,animate:i,maxDelay:o}):t})]}),j.jsx(ao,{children:E()})]})]})};function Q(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Dl=typeof Symbol=="function"&&Symbol.observable||"@@observable",co=Dl,an=()=>Math.random().toString(36).substring(7).split("").join("."),jl={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},Ye=jl;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Vl(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(zl(e))return"date";if(Ml(e))return"error";const r=$l(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function $l(e){return typeof e.constructor=="function"?e.constructor.name:null}function Ml(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function zl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function De(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Vl(e)),t}function Ts(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Q(2):`Expected the root reducer to be a function. Instead, received: '${De(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Q(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Q(1):`Expected the enhancer to be a function. Instead, received: '${De(r)}'`);return r(Ts)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,u=!1;function l(){s===o&&(s=new Map,o.forEach((w,y)=>{s.set(y,w)}))}function f(){if(u)throw new Error(process.env.NODE_ENV==="production"?Q(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?Q(4):`Expected the listener to be a function. Instead, received: '${De(w)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?Q(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;l();const b=a++;return s.set(b,w),function(){if(y){if(u)throw new Error(process.env.NODE_ENV==="production"?Q(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,l(),s.delete(b),o=null}}}function h(w){if(!Kt(w))throw new Error(process.env.NODE_ENV==="production"?Q(7):`Actions must be plain objects. Instead, the actual type was: '${De(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?Q(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof w.type!="string")throw new Error(process.env.NODE_ENV==="production"?Q(17):`Action "type" property must be a string. Instead, the actual type was: '${De(w.type)}'. Value was: '${w.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?Q(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,w)}finally{u=!1}return(o=s).forEach(b=>{b()}),w}function p(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?Q(10):`Expected the nextReducer to be a function. Instead, received: '${De(w)}`);n=w,h({type:Ye.REPLACE})}function v(){const w=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Q(11):`Expected the observer to be an object. Instead, received: '${De(y)}'`);function b(){const S=y;S.next&&S.next(f())}return b(),{unsubscribe:w(b)}},[co](){return this}}}return h({type:Ye.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:p,[co]:v}}function uo(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Fl(e,t,r,n){const i=Object.keys(t),o=r&&r.type===Ye.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${o} has unexpected type of "${De(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!n[a]);if(s.forEach(a=>{n[a]=!0}),!(r&&r.type===Ye.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Ll(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ye.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Q(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Q(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ye.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Is(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const a=t[s];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&uo(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Ll(r)}catch(s){o=s}return function(a={},u){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=Fl(a,r,u,i);d&&uo(d)}let l=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],p=r[h],v=a[h],E=p(v,u);if(typeof E>"u"){const w=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?Q(14):`When called with an action of type ${w?`"${String(w)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=E,l=l||E!==v}return l=l||n.length!==Object.keys(a).length,l?f:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Bl(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?Q(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(u,...l)=>o(u,...l)},a=e.map(u=>u(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function Ds(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var js=Symbol.for("immer-nothing"),lo=Symbol.for("immer-draftable"),se=Symbol.for("immer-state"),Ul=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function te(e,...t){if(process.env.NODE_ENV!=="production"){const r=Ul[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object.getPrototypeOf;function Xe(e){return!!e&&!!e[se]}function Pe(e){var t;return e?Vs(e)||Array.isArray(e)||!!e[lo]||!!((t=e.constructor)!=null&&t[lo])||Br(e)||Ur(e):!1}var ql=Object.prototype.constructor.toString();function Vs(e){if(!e||typeof e!="object")return!1;const t=mt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===ql}function xr(e,t){Lr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Lr(e){const t=e[se];return t?t.type_:Array.isArray(e)?1:Br(e)?2:Ur(e)?3:0}function Cn(e,t){return Lr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t,r){const n=Lr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Br(e){return e instanceof Map}function Ur(e){return e instanceof Set}function Le(e){return e.copy_||e.base_}function Rn(e,t){if(Br(e))return new Map(e);if(Ur(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Vs(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[se];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(mt(e),n)}else{const n=mt(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ni(e,t=!1){return qr(e)||Xe(e)||!Pe(e)||(Lr(e)>1&&(e.set=e.add=e.clear=e.delete=Hl),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ni(n,!0))),e}function Hl(){te(2)}function qr(e){return Object.isFrozen(e)}var Yl={};function Je(e){const t=Yl[e];return t||te(0,e),t}var qt;function Ms(){return qt}function Gl(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fo(e,t){t&&(Je("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function An(e){Tn(e),e.drafts_.forEach(Kl),e.drafts_=null}function Tn(e){e===qt&&(qt=e.parent_)}function ho(e){return qt=Gl(qt,e)}function Kl(e){const t=e[se];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function po(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[se].modified_&&(An(t),te(4)),Pe(e)&&(e=kr(t,e),t.parent_||Or(t,e)),t.patches_&&Je("Patches").generateReplacementPatches_(r[se].base_,e,t.patches_,t.inversePatches_)):e=kr(t,r,[]),An(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==js?e:void 0}function kr(e,t,r){if(qr(t))return t;const n=t[se];if(!n)return xr(t,(i,o)=>mo(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Or(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),xr(o,(a,u)=>mo(e,n,i,a,u,r,s)),Or(e,i,!1),r&&e.patches_&&Je("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function mo(e,t,r,n,i,o,s){if(process.env.NODE_ENV!=="production"&&i===r&&te(5),Xe(i)){const a=o&&t&&t.type_!==3&&!Cn(t.assigned_,n)?o.concat(n):void 0,u=kr(e,i,a);if($s(r,n,u),Xe(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Pe(i)&&!qr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;kr(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Or(e,i)}}function Or(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ni(t,r)}function Ql(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ms(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=ii;r&&(i=[n],o=Wt);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var ii={get(e,t){if(t===se)return e;const r=Le(e);if(!Cn(r,t))return Xl(e,r,t);const n=r[t];return e.finalized_||!Pe(n)?n:n===cn(e.base_,t)?(un(e),e.copy_[t]=Dn(n,e)):n},has(e,t){return t in Le(e)},ownKeys(e){return Reflect.ownKeys(Le(e))},set(e,t,r){const n=zs(Le(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=cn(Le(e),t),o=i==null?void 0:i[se];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Wl(r,i)&&(r!==void 0||Cn(e.base_,t)))return!0;un(e),In(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,un(e),In(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Le(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){te(11)},getPrototypeOf(e){return mt(e.base_)},setPrototypeOf(){te(12)}},Wt={};xr(ii,(e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Wt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&te(13),Wt.set.call(this,e,t,void 0)};Wt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&te(14),ii.set.call(this,e[0],t,r,e[0])};function cn(e,t){const r=e[se];return(r?Le(r):e)[t]}function Xl(e,t,r){var i;const n=zs(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function zs(e,t){if(!(t in e))return;let r=mt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=mt(r)}}function In(e){e.modified_||(e.modified_=!0,e.parent_&&In(e.parent_))}function un(e){e.copy_||(e.copy_=Rn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Jl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(u=o,...l){return s.produce(u,f=>r.call(this,f,...l))}}typeof r!="function"&&te(6),n!==void 0&&typeof n!="function"&&te(7);let i;if(Pe(t)){const o=ho(this),s=Dn(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?An(o):Tn(o)}return fo(o,n),po(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===js&&(i=void 0),this.autoFreeze_&&ni(i,!0),n){const o=[],s=[];Je("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else te(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pe(e)||te(8),Xe(e)&&(e=Zl(e));const t=ho(this),r=Dn(e,void 0);return r[se].isManual_=!0,Tn(t),r}finishDraft(e,t){const r=e&&e[se];(!r||!r.isManual_)&&te(9);const{scope_:n}=r;return fo(n,t),po(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Je("Patches").applyPatches_;return Xe(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dn(e,t){const r=Br(e)?Je("MapSet").proxyMap_(e,t):Ur(e)?Je("MapSet").proxySet_(e,t):Ql(e,t);return(t?t.scope_:Ms()).drafts_.push(r),r}function Zl(e){return Xe(e)||te(10,e),Fs(e)}function Fs(e){if(!Pe(e)||qr(e))return e;const t=e[se];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Rn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Rn(e,!0);return xr(r,(n,i)=>{$s(r,n,Fs(i))}),t&&(t.finalized_=!1),r}var ae=new Jl,Ls=ae.produce;ae.produceWithPatches.bind(ae);ae.setAutoFreeze.bind(ae);ae.setUseStrictShallowCopy.bind(ae);ae.applyPatches.bind(ae);ae.createDraft.bind(ae);ae.finishDraft.bind(ae);function Bs(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ef=Bs(),tf=Bs,rf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},nf=e=>e&&typeof e.match=="function";function yo(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?B(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Ds(n)&&n.type===e,r}function of(e){return typeof e=="function"&&"type"in e&&nf(e)}function sf(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
270
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function
|
|
212
|
+
`,Ri=({checked:e,defaultChecked:t=!1,onChange:r,disabled:n=!1})=>{const[i,s]=k.useState(t),a=e!==void 0,u=a?e:i,l=c=>{if(n)return;c.target.blur();const f=!u;a||s(f),r==null||r(f)};return A.jsxs(Oa,{$checked:u,onClick:c=>c.stopPropagation(),children:[A.jsx(Sa,{type:"checkbox",checked:u,onChange:l,disabled:n}),A.jsx(Pa,{$checked:u}),A.jsx(lr,{$checked:u}),A.jsx(ka,{$checked:u})]})},Ra={translate:wa,sunny:xa,character:({size:e})=>A.jsx("span",{style:{fontSize:e||"1rem",height:e||"1rem",lineHeight:e||"1rem",display:"inline-flex",alignItems:"center"},children:"字"})},Na=({icon:e,text:t,textContent:r,characterPreference:n,animate:i=!0,maxDelay:s,actionIcon:a="chevron",onClick:u,styles:l,switchChecked:c,onSwitchChange:f})=>{const d=Ra[e],[h,y]=k.useState(null),w=g=>{const v=g.currentTarget.getBoundingClientRect(),_=g.clientX-v.left,b=g.clientY-v.top;y({x:_,y:b,key:Date.now()}),a==="switch"&&f?f(!c):u&&u()},x=()=>a==="switch"?A.jsx(Ri,{checked:c,onChange:f}):A.jsx(Ea,{});return A.jsxs(ga,{onClick:w,style:l,children:[h&&A.jsx(ma,{$x:h.x,$y:h.y},h.key),A.jsxs(va,{children:[A.jsxs(ba,{children:[A.jsx(An,{children:A.jsx(d,{size:"1rem"})}),A.jsx(_a,{children:r?A.jsx(jr,{content:r,characterPreference:n,animate:i,maxDelay:s}):t})]}),A.jsx(An,{children:x()})]})]})};function W(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ca=typeof Symbol=="function"&&Symbol.observable||"@@observable",jn=Ca,Zt=()=>Math.random().toString(36).substring(7).split("").join("."),Ta={INIT:`@@redux/INIT${Zt()}`,REPLACE:`@@redux/REPLACE${Zt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zt()}`},we=Ta;function ot(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Aa(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Ia(e))return"date";if(Da(e))return"error";const r=ja(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function ja(e){return typeof e.constructor=="function"?e.constructor.name:null}function Da(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Ia(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function he(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Aa(e)),t}function Ni(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?W(2):`Expected the root reducer to be a function. Instead, received: '${he(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?W(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?W(1):`Expected the enhancer to be a function. Instead, received: '${he(r)}'`);return r(Ni)(e,t)}let n=e,i=t,s=new Map,a=s,u=0,l=!1;function c(){a===s&&(a=new Map,s.forEach((g,v)=>{a.set(v,g)}))}function f(){if(l)throw new Error(process.env.NODE_ENV==="production"?W(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?W(4):`Expected the listener to be a function. Instead, received: '${he(g)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?W(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;c();const _=u++;return a.set(_,g),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?W(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c(),a.delete(_),s=null}}}function h(g){if(!ot(g))throw new Error(process.env.NODE_ENV==="production"?W(7):`Actions must be plain objects. Instead, the actual type was: '${he(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?W(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?W(17):`Action "type" property must be a string. Instead, the actual type was: '${he(g.type)}'. Value was: '${g.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?W(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,g)}finally{l=!1}return(s=a).forEach(_=>{_()}),g}function y(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?W(10):`Expected the nextReducer to be a function. Instead, received: '${he(g)}`);n=g,h({type:we.REPLACE})}function w(){const g=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?W(11):`Expected the observer to be an object. Instead, received: '${he(v)}'`);function _(){const S=v;S.next&&S.next(f())}return _(),{unsubscribe:g(_)}},[jn](){return this}}}return h({type:we.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:y,[jn]:w}}function Dn(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Va(e,t,r,n){const i=Object.keys(t),s=r&&r.type===we.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!ot(e))return`The ${s} has unexpected type of "${he(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(u=>!t.hasOwnProperty(u)&&!n[u]);if(a.forEach(u=>{n[u]=!0}),!(r&&r.type===we.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Ma(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:we.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?W(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:we.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?W(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${we.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Ci(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const u=t[a];process.env.NODE_ENV!=="production"&&typeof e[u]>"u"&&Dn(`No reducer provided for key "${u}"`),typeof e[u]=="function"&&(r[u]=e[u])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{Ma(r)}catch(a){s=a}return function(u={},l){if(s)throw s;if(process.env.NODE_ENV!=="production"){const d=Va(u,r,l,i);d&&Dn(d)}let c=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],y=r[h],w=u[h],x=y(w,l);if(typeof x>"u"){const g=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?W(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=x,c=c||x!==w}return c=c||n.length!==Object.keys(u).length,c?f:u}}function xt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Fa(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?W(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(l,...c)=>s(l,...c)},u=e.map(l=>l(a));return s=xt(...u)(i.dispatch),{...i,dispatch:s}}}function Ti(e){return ot(e)&&"type"in e&&typeof e.type=="string"}var Ai=Symbol.for("immer-nothing"),In=Symbol.for("immer-draftable"),J=Symbol.for("immer-state"),$a=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function K(e,...t){if(process.env.NODE_ENV!=="production"){const r=$a[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Te=Object.getPrototypeOf;function xe(e){return!!e&&!!e[J]}function fe(e){var t;return e?ji(e)||Array.isArray(e)||!!e[In]||!!((t=e.constructor)!=null&&t[In])||Vt(e)||Mt(e):!1}var za=Object.prototype.constructor.toString();function ji(e){if(!e||typeof e!="object")return!1;const t=Te(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===za}function St(e,t){It(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function It(e){const t=e[J];return t?t.type_:Array.isArray(e)?1:Vt(e)?2:Mt(e)?3:0}function fr(e,t){return It(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Di(e,t,r){const n=It(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ua(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Vt(e){return e instanceof Map}function Mt(e){return e instanceof Set}function be(e){return e.copy_||e.base_}function dr(e,t){if(Vt(e))return new Map(e);if(Mt(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=ji(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[J];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){const a=i[s],u=n[a];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[a]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[a]})}return Object.create(Te(e),n)}else{const n=Te(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Dr(e,t=!1){return Ft(e)||xe(e)||!fe(e)||(It(e)>1&&(e.set=e.add=e.clear=e.delete=La),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Dr(n,!0))),e}function La(){K(2)}function Ft(e){return Object.isFrozen(e)}var Ba={};function Se(e){const t=Ba[e];return t||K(0,e),t}var tt;function Ii(){return tt}function qa(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vn(e,t){t&&(Se("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function hr(e){pr(e),e.drafts_.forEach(Wa),e.drafts_=null}function pr(e){e===tt&&(tt=e.parent_)}function Mn(e){return tt=qa(tt,e)}function Wa(e){const t=e[J];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Fn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[J].modified_&&(hr(t),K(4)),fe(e)&&(e=Ot(t,e),t.parent_||Pt(t,e)),t.patches_&&Se("Patches").generateReplacementPatches_(r[J].base_,e,t.patches_,t.inversePatches_)):e=Ot(t,r,[]),hr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ai?e:void 0}function Ot(e,t,r){if(Ft(t))return t;const n=t[J];if(!n)return St(t,(i,s)=>$n(e,n,t,i,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Pt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let s=i,a=!1;n.type_===3&&(s=new Set(i),i.clear(),a=!0),St(s,(u,l)=>$n(e,n,i,u,l,r,a)),Pt(e,i,!1),r&&e.patches_&&Se("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function $n(e,t,r,n,i,s,a){if(process.env.NODE_ENV!=="production"&&i===r&&K(5),xe(i)){const u=s&&t&&t.type_!==3&&!fr(t.assigned_,n)?s.concat(n):void 0,l=Ot(e,i,u);if(Di(r,n,l),xe(l))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(fe(i)&&!Ft(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ot(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Pt(e,i)}}function Pt(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Dr(t,r)}function Ha(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ii(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,s=Ir;r&&(i=[n],s=rt);const{revoke:a,proxy:u}=Proxy.revocable(i,s);return n.draft_=u,n.revoke_=a,u}var Ir={get(e,t){if(t===J)return e;const r=be(e);if(!fr(r,t))return Ya(e,r,t);const n=r[t];return e.finalized_||!fe(n)?n:n===er(e.base_,t)?(tr(e),e.copy_[t]=yr(n,e)):n},has(e,t){return t in be(e)},ownKeys(e){return Reflect.ownKeys(be(e))},set(e,t,r){const n=Vi(be(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=er(be(e),t),s=i==null?void 0:i[J];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ua(r,i)&&(r!==void 0||fr(e.base_,t)))return!0;tr(e),mr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return er(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,tr(e),mr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=be(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){K(11)},getPrototypeOf(e){return Te(e.base_)},setPrototypeOf(){K(12)}},rt={};St(Ir,(e,t)=>{rt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});rt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&K(13),rt.set.call(this,e,t,void 0)};rt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&K(14),Ir.set.call(this,e[0],t,r,e[0])};function er(e,t){const r=e[J];return(r?be(r):e)[t]}function Ya(e,t,r){var i;const n=Vi(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function Vi(e,t){if(!(t in e))return;let r=Te(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Te(r)}}function mr(e){e.modified_||(e.modified_=!0,e.parent_&&mr(e.parent_))}function tr(e){e.copy_||(e.copy_=dr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qa=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const a=this;return function(l=s,...c){return a.produce(l,f=>r.call(this,f,...c))}}typeof r!="function"&&K(6),n!==void 0&&typeof n!="function"&&K(7);let i;if(fe(t)){const s=Mn(this),a=yr(t,void 0);let u=!0;try{i=r(a),u=!1}finally{u?hr(s):pr(s)}return Vn(s,n),Fn(i,s)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Ai&&(i=void 0),this.autoFreeze_&&Dr(i,!0),n){const s=[],a=[];Se("Patches").generateReplacementPatches_(t,i,s,a),n(s,a)}return i}else K(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...u)=>this.produceWithPatches(a,l=>t(l,...u));let n,i;return[this.produce(t,r,(a,u)=>{n=a,i=u}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fe(e)||K(8),xe(e)&&(e=Ka(e));const t=Mn(this),r=yr(e,void 0);return r[J].isManual_=!0,pr(t),r}finishDraft(e,t){const r=e&&e[J];(!r||!r.isManual_)&&K(9);const{scope_:n}=r;return Vn(n,t),Fn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Se("Patches").applyPatches_;return xe(e)?n(e,t):this.produce(e,i=>n(i,t))}};function yr(e,t){const r=Vt(e)?Se("MapSet").proxyMap_(e,t):Mt(e)?Se("MapSet").proxySet_(e,t):Ha(e,t);return(t?t.scope_:Ii()).drafts_.push(r),r}function Ka(e){return xe(e)||K(10,e),Mi(e)}function Mi(e){if(!fe(e)||Ft(e))return e;const t=e[J];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=dr(e,t.scope_.immer_.useStrictShallowCopy_)}else r=dr(e,!0);return St(r,(n,i)=>{Di(r,n,Mi(i))}),t&&(t.finalized_=!1),r}var X=new Qa,Fi=X.produce;X.produceWithPatches.bind(X);X.setAutoFreeze.bind(X);X.setUseStrictShallowCopy.bind(X);X.applyPatches.bind(X);X.createDraft.bind(X);X.finishDraft.bind(X);function $i(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var Ga=$i(),Ja=$i,Xa=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xt:xt.apply(null,arguments)},Za=e=>e&&typeof e.match=="function";function zn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?V(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Ti(n)&&n.type===e,r}function eu(e){return typeof e=="function"&&"type"in e&&Za(e)}function tu(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
213
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function ru(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=eu}=e;return()=>r=>n=>(t(n)&&console.warn(tu(n.type)),r(n))}function zi(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const s=Date.now();r+=s-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
271
214
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
272
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
273
|
-
Take a look at the logic that dispatched this action: `,
|
|
215
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Ui=class Ue extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ue.prototype)}static get[Symbol.species](){return Ue}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ue(...t[0].concat(this)):new Ue(...t.concat(this))}};function Un(e){return fe(e)?Fi(e,()=>{}):e}function Ln(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function nu(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function iu(e,t,r){const n=Li(e,t,r);return{detectMutations(){return Bi(e,t,n,r)}}}function Li(e,t=[],r,n="",i=new Set){const s={value:r};if(!e(r)&&!i.has(r)){i.add(r),s.children={};for(const a in r){const u=n?n+"."+a:a;t.length&&t.indexOf(u)!==-1||(s.children[a]=Li(e,t,r[a],u))}}return s}function Bi(e,t=[],r,n,i=!1,s=""){const a=r?r.value:void 0,u=a===n;if(i&&!u&&!Number.isNaN(n))return{wasMutated:!0,path:s};if(e(a)||e(n))return{wasMutated:!1};const l={};for(let f in r.children)l[f]=!0;for(let f in n)l[f]=!0;const c=t.length>0;for(let f in l){const d=s?s+"."+f:f;if(c&&t.some(w=>w instanceof RegExp?w.test(d):d===w))continue;const h=Bi(e,t,r.children[f],n[f],u,d);if(h.wasMutated)return h}return{wasMutated:!1}}function su(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(u,l,c,f){return JSON.stringify(u,r(l,f),c)},r=function(u,l){let c=[],f=[];return l||(l=function(d,h){return c[0]===h?"[Circular ~]":"[Circular ~."+f.slice(0,c.indexOf(h)).join(".")+"]"}),function(d,h){if(c.length>0){var y=c.indexOf(this);~y?c.splice(y+1):c.push(this),~y?f.splice(y,1/0,d):f.push(d),~c.indexOf(h)&&(h=l.call(this,d,h))}else c.push(h);return u==null?h:u.call(this,d,h)}},{isImmutable:n=nu,ignoredPaths:i,warnAfter:s=32}=e;const a=iu.bind(null,n,i);return({getState:u})=>{let l=u(),c=a(l),f;return d=>h=>{const y=zi(s,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(l=u(),f=c.detectMutations(),c=a(l),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?V(19):`A state mutation was detected between dispatches, in the path '${f.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const w=d(h);return y.measureTime(()=>{if(l=u(),f=c.detectMutations(),c=a(l),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?V(20):`A state mutation was detected inside a dispatch, in the path: ${f.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),w}}}}function qi(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||ot(e)}function gr(e,t="",r=qi,n,i=[],s){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s!=null&&s.has(e))return!1;const u=n!=null?n(e):Object.entries(e),l=i.length>0;for(const[c,f]of u){const d=t?t+"."+c:c;if(!(l&&i.some(y=>y instanceof RegExp?y.test(d):d===y))){if(!r(f))return{keyPath:d,value:f};if(typeof f=="object"&&(a=gr(f,d,r,n,i,s),a))return a}}return s&&Wi(e)&&s.add(e),!1}function Wi(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Wi(t))return!1;return!0}function ou(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=qi,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:u=!1,ignoreActions:l=!1,disableCache:c=!1}=e,f=!c&&WeakSet?new WeakSet:void 0;return d=>h=>y=>{if(!Ti(y))return h(y);const w=h(y),x=zi(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(y.type)!==-1)&&x.measureTime(()=>{const g=gr(y,"",t,r,i,f);if(g){const{keyPath:v,value:_}=g;console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`,_,`
|
|
216
|
+
Take a look at the logic that dispatched this action: `,y,`
|
|
274
217
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
275
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),
|
|
276
|
-
Take a look at the reducer(s) handling this action type: ${
|
|
277
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),E.warnIfExceeded()),v}}}function or(e){return typeof e=="boolean"}var df=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new qs;if(r&&(or(r)?s.push(ef):s.push(tf(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let a={};or(n)||(a=n),s.unshift(lf(a))}if(i){let a={};or(i)||(a=i),s.push(ff(a))}if(o){let a={};or(o)||(a=o),s.unshift(af(a))}}return s},hf="RTK_autoBatch",bo=e=>t=>{setTimeout(t,e)},pf=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bo(10):e.type==="callback"?e.queueNotification:bo(e.timeout),l=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const d=()=>i&&f(),h=n.subscribe(d);return a.add(f),()=>{h(),a.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[hf]),o=!i,o&&(s||(s=!0,u(l))),n.dispatch(f)}finally{i=!0}}})},mf=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new qs(e);return n&&i.push(pf(typeof n=="object"?n:void 0)),i};function yf(e){const t=df(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(Kt(r))a=Is(r);else throw new Error(process.env.NODE_ENV==="production"?B(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?B(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?B(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?B(4):"each middleware provided to configureStore must be a function");let l=Sr;i&&(l=rf({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=Bl(...u),d=mf(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?B(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?B(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?B(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=l(...h);return Ts(a,o,p)}function Ks(e){const t={},r=[];let n;const i={addCase(o,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?B(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?B(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a=typeof o=="string"?o:o.type;if(!a)throw new Error(process.env.NODE_ENV==="production"?B(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error(process.env.NODE_ENV==="production"?B(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=s,i},addMatcher(o,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?B(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?B(31):"`builder.addDefaultCase` can only be called once");return n=o,i}};return e(i),[t,r,n]}function gf(e){return typeof e=="function"}function vf(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?B(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Ks(t),o;if(gf(e))o=()=>go(e());else{const a=go(e);o=()=>a}function s(a=o(),u){let l=[r[u.type],...n.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return l.filter(f=>!!f).length===0&&(l=[i]),l.reduce((f,d)=>{if(d)if(Xe(f)){const p=d(f,u);return p===void 0?f:p}else{if(Pe(f))return Ls(f,h=>d(h,u));{const h=d(f,u);if(h===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return f},a)}return s.getInitialState=o,s}var bf=Symbol.for("rtk-slice-createasyncthunk");function wf(e,t){return`${e}/${t}`}function _f({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[bf];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(process.env.NODE_ENV==="production"?B(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof i.reducers=="function"?i.reducers(xf()):i.reducers)||{},u=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,S){const O=typeof m=="string"?m:m.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?B(12):"`context.addCase` cannot be called with an empty action type");if(O in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?B(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return l.sliceCaseReducersByType[O]=S,f},addMatcher(m,S){return l.sliceMatchers.push({matcher:m,reducer:S}),f},exposeAction(m,S){return l.actionCreators[m]=S,f},exposeCaseReducer(m,S){return l.sliceCaseReducersByName[m]=S,f}};u.forEach(m=>{const S=a[m],O={reducerName:m,type:wf(o,m),createNotation:typeof i.reducers=="function"};Of(S)?Nf(O,S,f,t):kf(O,S,f)});function d(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?B(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[m={},S=[],O=void 0]=typeof i.extraReducers=="function"?Ks(i.extraReducers):[i.extraReducers],P={...m,...l.sliceCaseReducersByType};return vf(i.initialState,k=>{for(let V in P)k.addCase(V,P[V]);for(let V of l.sliceMatchers)k.addMatcher(V.matcher,V.reducer);for(let V of S)k.addMatcher(V.matcher,V.reducer);O&&k.addDefaultCase(O)})}const h=m=>m,p=new Map;let v;function E(m,S){return v||(v=d()),v(m,S)}function w(){return v||(v=d()),v.getInitialState()}function y(m,S=!1){function O(k){let V=k[m];if(typeof V>"u"){if(S)V=w();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?B(15):"selectSlice returned undefined for an uninjected slice reducer")}return V}function P(k=h){const V=vo(p,S,()=>new WeakMap);return vo(V,k,()=>{const z={};for(const[ne,G]of Object.entries(i.selectors??{}))z[ne]=Ef(G,k,w,S);return z})}return{reducerPath:m,getSelectors:P,get selectors(){return P(O)},selectSlice:O}}const b={name:o,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...y(s),injectInto(m,{reducerPath:S,...O}={}){const P=S??s;return m.inject({reducerPath:P,reducer:E},O),{...b,...y(P,!0)}}};return b}}function Ef(e,t,r,n){function i(o,...s){let a=t(o);if(typeof a>"u"){if(n)a=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?B(16):"selectState returned undefined for an uninjected slice reducer")}return e(a,...s)}return i.unwrapped=e,i}var Sf=_f();function xf(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function kf({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!Pf(n))throw new Error(process.env.NODE_ENV==="production"?B(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?yo(e,s):yo(e))}function Of(e){return e._reducerDefinitionType==="asyncThunk"}function Pf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Nf({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?B(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:l,options:f}=r,d=i(e,o,f);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),u&&n.addCase(d.rejected,u),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:s||sr,pending:a||sr,rejected:u||sr,settled:l||sr})}function sr(){}function B(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Cf={cardPosition:"transit-to-home"},Qs=Sf({name:"navigation",initialState:Cf,reducers:{setCardState:(e,t)=>(e.cardPosition=t.payload.state,e)}}),{setCardState:Tf}=Qs.actions,Rf=Is({navigation:Qs.reducer}),Af=yf({reducer:Rf});exports.AnimatedText=Xn;exports.BackButton=gl;exports.BannerButton=ll;exports.CircleIconButton=ml;exports.ListItem=Il;exports.ToggleSwitch=As;exports.UnorderedListItemContainer=wl;exports.ymyStore=Af;
|
|
218
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),u||(x.measureTime(()=>{const g=d.getState(),v=gr(g,"",t,r,s,f);if(v){const{keyPath:_,value:b}=v;console.error(`A non-serializable value was detected in the state, in the path: \`${_}\`. Value:`,b,`
|
|
219
|
+
Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
220
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),x.warnIfExceeded()),w}}}function ht(e){return typeof e=="boolean"}var au=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Ui;if(r&&(ht(r)?a.push(Ga):a.push(Ja(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};ht(n)||(u=n),a.unshift(su(u))}if(i){let u={};ht(i)||(u=i),a.push(ou(u))}if(s){let u={};ht(s)||(u=s),a.unshift(ru(u))}}return a},uu="RTK_autoBatch",Bn=e=>t=>{setTimeout(t,e)},cu=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,s=!1,a=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bn(10):e.type==="callback"?e.queueNotification:Bn(e.timeout),c=()=>{a=!1,s&&(s=!1,u.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const d=()=>i&&f(),h=n.subscribe(d);return u.add(f),()=>{h(),u.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[uu]),s=!i,s&&(a||(a=!0,l(c))),n.dispatch(f)}finally{i=!0}}})},lu=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Ui(e);return n&&i.push(cu(typeof n=="object"?n:void 0)),i};function fu(e){const t=au(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(ot(r))u=Ci(r);else throw new Error(process.env.NODE_ENV==="production"?V(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?V(2):"`middleware` field must be a callback");let l;if(typeof n=="function"){if(l=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(l))throw new Error(process.env.NODE_ENV==="production"?V(3):"when using a middleware builder function, an array of middleware must be returned")}else l=t();if(process.env.NODE_ENV!=="production"&&l.some(w=>typeof w!="function"))throw new Error(process.env.NODE_ENV==="production"?V(4):"each middleware provided to configureStore must be a function");let c=xt;i&&(c=Xa({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=Fa(...l),d=lu(f);if(process.env.NODE_ENV!=="production"&&a&&typeof a!="function")throw new Error(process.env.NODE_ENV==="production"?V(5):"`enhancers` field must be a callback");let h=typeof a=="function"?a(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?V(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(w=>typeof w!="function"))throw new Error(process.env.NODE_ENV==="production"?V(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&l.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const y=c(...h);return Ni(u,s,y)}function Hi(e){const t={},r=[];let n;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?V(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?V(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const u=typeof s=="string"?s:s.type;if(!u)throw new Error(process.env.NODE_ENV==="production"?V(28):"`builder.addCase` cannot be called with an empty action type");if(u in t)throw new Error(process.env.NODE_ENV==="production"?V(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${u}'`);return t[u]=a,i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?V(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?V(31):"`builder.addDefaultCase` can only be called once");return n=s,i}};return e(i),[t,r,n]}function du(e){return typeof e=="function"}function hu(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?V(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Hi(t),s;if(du(e))s=()=>Un(e());else{const u=Un(e);s=()=>u}function a(u=s(),l){let c=[r[l.type],...n.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,d)=>{if(d)if(xe(f)){const y=d(f,l);return y===void 0?f:y}else{if(fe(f))return Fi(f,h=>d(h,l));{const h=d(f,l);if(h===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return f},u)}return a.getInitialState=s,a}var pu=Symbol.for("rtk-slice-createasyncthunk");function mu(e,t){return`${e}/${t}`}function yu({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[pu];return function(i){const{name:s,reducerPath:a=s}=i;if(!s)throw new Error(process.env.NODE_ENV==="production"?V(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const u=(typeof i.reducers=="function"?i.reducers(bu()):i.reducers)||{},l=Object.keys(u),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(b,S){const R=typeof b=="string"?b:b.type;if(!R)throw new Error(process.env.NODE_ENV==="production"?V(12):"`context.addCase` cannot be called with an empty action type");if(R in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?V(13):"`context.addCase` cannot be called with two reducers for the same action type: "+R);return c.sliceCaseReducersByType[R]=S,f},addMatcher(b,S){return c.sliceMatchers.push({matcher:b,reducer:S}),f},exposeAction(b,S){return c.actionCreators[b]=S,f},exposeCaseReducer(b,S){return c.sliceCaseReducersByName[b]=S,f}};l.forEach(b=>{const S=u[b],R={reducerName:b,type:mu(s,b),createNotation:typeof i.reducers=="function"};wu(S)?xu(R,S,f,t):_u(R,S,f)});function d(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?V(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[b={},S=[],R=void 0]=typeof i.extraReducers=="function"?Hi(i.extraReducers):[i.extraReducers],z={...b,...c.sliceCaseReducersByType};return hu(i.initialState,I=>{for(let M in z)I.addCase(M,z[M]);for(let M of c.sliceMatchers)I.addMatcher(M.matcher,M.reducer);for(let M of S)I.addMatcher(M.matcher,M.reducer);R&&I.addDefaultCase(R)})}const h=b=>b,y=new Map;let w;function x(b,S){return w||(w=d()),w(b,S)}function g(){return w||(w=d()),w.getInitialState()}function v(b,S=!1){function R(I){let M=I[b];if(typeof M>"u"){if(S)M=g();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?V(15):"selectSlice returned undefined for an uninjected slice reducer")}return M}function z(I=h){const M=Ln(y,S,()=>new WeakMap);return Ln(M,I,()=>{const F={};for(const[re,B]of Object.entries(i.selectors??{}))F[re]=gu(B,I,g,S);return F})}return{reducerPath:b,getSelectors:z,get selectors(){return z(R)},selectSlice:R}}const _={name:s,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...v(a),injectInto(b,{reducerPath:S,...R}={}){const z=S??a;return b.inject({reducerPath:z,reducer:x},R),{..._,...v(z,!0)}}};return _}}function gu(e,t,r,n){function i(s,...a){let u=t(s);if(typeof u>"u"){if(n)u=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?V(16):"selectState returned undefined for an uninjected slice reducer")}return e(u,...a)}return i.unwrapped=e,i}var vu=yu();function bu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function _u({type:e,reducerName:t,createNotation:r},n,i){let s,a;if("reducer"in n){if(r&&!Eu(n))throw new Error(process.env.NODE_ENV==="production"?V(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=n.reducer,a=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?zn(e,a):zn(e))}function wu(e){return e._reducerDefinitionType==="asyncThunk"}function Eu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function xu({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?V(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:u,rejected:l,settled:c,options:f}=r,d=i(e,s,f);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),u&&n.addCase(d.pending,u),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:a||pt,pending:u||pt,rejected:l||pt,settled:c||pt})}function pt(){}function V(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Su={cardPosition:"transit-to-home"},Yi=vu({name:"navigation",initialState:Su,reducers:{setCardState:(e,t)=>(e.cardPosition=t.payload.state,e)}}),{setCardState:ku}=Yi.actions,Ou=Ci({navigation:Yi.reducer}),Pu=fu({reducer:Ou});exports.AnimatedText=jr;exports.BackButton=ha;exports.BannerButton=oa;exports.CircleIconButton=fa;exports.ListItem=Na;exports.ToggleSwitch=Ri;exports.UnorderedListItemContainer=ya;exports.ymyStore=Pu;
|