@hxtos/hx-components 0.9.4 → 0.10.0
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.d.ts +16 -1
- package/dist/index.es.js +11574 -11378
- package/dist/index.umd.js +91 -91
- package/dist/src/components/Table/Table.stories.d.ts +13 -0
- package/dist/src/components/Table/index.d.ts +17 -0
- package/dist/src/components/TableAction/index.d.ts +9 -0
- package/package.json +2 -2
- /package/dist/src/components/{File → Field}/BaseField.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Color.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Date.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Datetime.d.ts +0 -0
- /package/dist/src/components/{File → Field}/ExampleForm.d.ts +0 -0
- /package/dist/src/components/{File → Field}/MaskedText.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Number.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Select.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Text.d.ts +0 -0
- /package/dist/src/components/{File → Field}/Time.d.ts +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Ge,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],b):(Ge=typeof globalThis<"u"?globalThis:Ge||self,b(Ge["@hxtos/hx-components"]={},Ge.React,Ge.ReactDOM))})(this,function(Ge,b,Wl){"use strict";function tS(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ie=tS(b);var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xl={exports:{}},Qo={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -6,17 +6,17 @@
|
|
|
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
|
|
10
|
-
`+z+x}}var G=!1,q;{var
|
|
11
|
-
`),
|
|
12
|
-
`),
|
|
13
|
-
`+me[
|
|
9
|
+
*/var Qp;function nS(){return Qp||(Qp=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),C=Symbol.iterator,S="@@iterator";function E(x){if(x===null||typeof x!="object")return null;var B=C&&x[C]||x[S];return typeof B=="function"?B:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(x){{for(var B=arguments.length,W=new Array(B>1?B-1:0),fe=1;fe<B;fe++)W[fe-1]=arguments[fe];L("error",x,W)}}function L(x,B,W){{var fe=_.ReactDebugCurrentFrame,we=fe.getStackAddendum();we!==""&&(B+="%s",W=W.concat([we]));var _e=W.map(function(be){return String(be)});_e.unshift("Warning: "+B),Function.prototype.apply.call(console[x],console,_e)}}var $=!1,V=!1,U=!1,X=!1,te=!1,de;de=Symbol.for("react.module.reference");function Pe(x){return!!(typeof x=="string"||typeof x=="function"||x===r||x===a||te||x===i||x===f||x===h||X||x===v||$||V||U||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===p||x.$$typeof===u||x.$$typeof===l||x.$$typeof===c||x.$$typeof===de||x.getModuleId!==void 0))}function ke(x,B,W){var fe=x.displayName;if(fe)return fe;var we=B.displayName||B.name||"";return we!==""?W+"("+we+")":W}function He(x){return x.displayName||"Context"}function ee(x){if(x==null)return null;if(typeof x.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case l:var B=x;return He(B)+".Consumer";case u:var W=x;return He(W._context)+".Provider";case c:return ke(x,x.render,"ForwardRef");case p:var fe=x.displayName||null;return fe!==null?fe:ee(x.type)||"Memo";case m:{var we=x,_e=we._payload,be=we._init;try{return ee(be(_e))}catch{return null}}}return null}var ve=Object.assign,ye=0,Ee,Ve,Ke,F,T,M,O;function y(){}y.__reactDisabledLog=!0;function H(){{if(ye===0){Ee=console.log,Ve=console.info,Ke=console.warn,F=console.error,T=console.group,M=console.groupCollapsed,O=console.groupEnd;var x={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}ye++}}function ne(){{if(ye--,ye===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ve({},x,{value:Ee}),info:ve({},x,{value:Ve}),warn:ve({},x,{value:Ke}),error:ve({},x,{value:F}),group:ve({},x,{value:T}),groupCollapsed:ve({},x,{value:M}),groupEnd:ve({},x,{value:O})})}ye<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=_.ReactCurrentDispatcher,z;function Y(x,B,W){{if(z===void 0)try{throw Error()}catch(we){var fe=we.stack.trim().match(/\n( *(at )?)/);z=fe&&fe[1]||""}return`
|
|
10
|
+
`+z+x}}var G=!1,q;{var ue=typeof WeakMap=="function"?WeakMap:Map;q=new ue}function J(x,B){if(!x||G)return"";{var W=q.get(x);if(W!==void 0)return W}var fe;G=!0;var we=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ae.current,ae.current=null,H();try{if(B){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(Et){fe=Et}Reflect.construct(x,[],be)}else{try{be.call()}catch(Et){fe=Et}x.call(be.prototype)}}else{try{throw Error()}catch(Et){fe=Et}x()}}catch(Et){if(Et&&fe&&typeof Et.stack=="string"){for(var me=Et.stack.split(`
|
|
11
|
+
`),at=fe.stack.split(`
|
|
12
|
+
`),Ze=me.length-1,ze=at.length-1;Ze>=1&&ze>=0&&me[Ze]!==at[ze];)ze--;for(;Ze>=1&&ze>=0;Ze--,ze--)if(me[Ze]!==at[ze]){if(Ze!==1||ze!==1)do if(Ze--,ze--,ze<0||me[Ze]!==at[ze]){var gt=`
|
|
13
|
+
`+me[Ze].replace(" at new "," at ");return x.displayName&>.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",x.displayName)),typeof x=="function"&&q.set(x,gt),gt}while(Ze>=1&&ze>=0);break}}}finally{G=!1,ae.current=_e,ne(),Error.prepareStackTrace=we}var jt=x?x.displayName||x.name:"",Di=jt?Y(jt):"";return typeof x=="function"&&q.set(x,Di),Di}function le(x,B,W){return J(x,!1)}function Q(x){var B=x.prototype;return!!(B&&B.isReactComponent)}function he(x,B,W){if(x==null)return"";if(typeof x=="function")return J(x,Q(x));if(typeof x=="string")return Y(x);switch(x){case f:return Y("Suspense");case h:return Y("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case c:return le(x.render);case p:return he(x.type,B,W);case m:{var fe=x,we=fe._payload,_e=fe._init;try{return he(_e(we),B,W)}catch{}}}return""}var Se=Object.prototype.hasOwnProperty,xe={},Be=_.ReactDebugCurrentFrame;function We(x){if(x){var B=x._owner,W=he(x.type,x._source,B?B.type:null);Be.setExtraStackFrame(W)}else Be.setExtraStackFrame(null)}function Qe(x,B,W,fe,we){{var _e=Function.call.bind(Se);for(var be in x)if(_e(x,be)){var me=void 0;try{if(typeof x[be]!="function"){var at=Error((fe||"React class")+": "+W+" type `"+be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw at.name="Invariant Violation",at}me=x[be](B,be,fe,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ze){me=Ze}me&&!(me instanceof Error)&&(We(we),R("%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).",fe||"React class",W,be,typeof me),We(null)),me instanceof Error&&!(me.message in xe)&&(xe[me.message]=!0,We(we),R("Failed %s type: %s",W,me.message),We(null))}}}var ot=Array.isArray;function st(x){return ot(x)}function It(x){{var B=typeof Symbol=="function"&&Symbol.toStringTag,W=B&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W}}function Yt(x){try{return Mt(x),!1}catch{return!0}}function Mt(x){return""+x}function Gn(x){if(Yt(x))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(x)),Mt(x)}var Vt=_.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},yr,xr,Hn;Hn={};function Ci(x){if(Se.call(x,"ref")){var B=Object.getOwnPropertyDescriptor(x,"ref").get;if(B&&B.isReactWarning)return!1}return x.ref!==void 0}function wi(x){if(Se.call(x,"key")){var B=Object.getOwnPropertyDescriptor(x,"key").get;if(B&&B.isReactWarning)return!1}return x.key!==void 0}function Si(x,B){if(typeof x.ref=="string"&&Vt.current&&B&&Vt.current.stateNode!==B){var W=ee(Vt.current.type);Hn[W]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ee(Vt.current.type),x.ref),Hn[W]=!0)}}function Ii(x,B){{var W=function(){yr||(yr=!0,R("%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)",B))};W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}}function Ei(x,B){{var W=function(){xr||(xr=!0,R("%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)",B))};W.isReactWarning=!0,Object.defineProperty(x,"ref",{get:W,configurable:!0})}}var Ai=function(x,B,W,fe,we,_e,be){var me={$$typeof:t,type:x,key:B,ref:W,props:be,_owner:_e};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Ya(x,B,W,fe,we){{var _e,be={},me=null,at=null;W!==void 0&&(Gn(W),me=""+W),wi(B)&&(Gn(B.key),me=""+B.key),Ci(B)&&(at=B.ref,Si(B,we));for(_e in B)Se.call(B,_e)&&!er.hasOwnProperty(_e)&&(be[_e]=B[_e]);if(x&&x.defaultProps){var Ze=x.defaultProps;for(_e in Ze)be[_e]===void 0&&(be[_e]=Ze[_e])}if(me||at){var ze=typeof x=="function"?x.displayName||x.name||"Unknown":x;me&&Ii(be,ze),at&&Ei(be,ze)}return Ai(x,me,at,we,fe,Vt.current,be)}}var Cr=_.ReactCurrentOwner,_i=_.ReactDebugCurrentFrame;function Jt(x){if(x){var B=x._owner,W=he(x.type,x._source,B?B.type:null);_i.setExtraStackFrame(W)}else _i.setExtraStackFrame(null)}var tr;tr=!1;function wr(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function Pi(){{if(Cr.current){var x=ee(Cr.current.type);if(x)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+x+"`."}return""}}function
|
|
15
|
+
Check the render method of \``+x+"`."}return""}}function Ja(x){{if(x!==void 0){var B=x.fileName.replace(/^.*[\\\/]/,""),W=x.lineNumber;return`
|
|
16
16
|
|
|
17
|
-
Check your code at `+
|
|
17
|
+
Check your code at `+B+":"+W+"."}return""}}var Ti={};function Vo(x){{var B=Pi();if(!B){var W=typeof x=="string"?x:x.displayName||x.name;W&&(B=`
|
|
18
18
|
|
|
19
|
-
Check the top-level render call using <`+W+">.")}return
|
|
19
|
+
Check the top-level render call using <`+W+">.")}return B}}function Fi(x,B){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=Vo(B);if(Ti[W])return;Ti[W]=!0;var fe="";x&&x._owner&&x._owner!==Cr.current&&(fe=" It was passed a child from "+ee(x._owner.type)+"."),Jt(x),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,fe),Jt(null)}}function Oi(x,B){{if(typeof x!="object")return;if(st(x))for(var W=0;W<x.length;W++){var fe=x[W];wr(fe)&&Fi(fe,B)}else if(wr(x))x._store&&(x._store.validated=!0);else if(x){var we=E(x);if(typeof we=="function"&&we!==x.entries)for(var _e=we.call(x),be;!(be=_e.next()).done;)wr(be.value)&&Fi(be.value,B)}}}function Ka(x){{var B=x.type;if(B==null||typeof B=="string")return;var W;if(typeof B=="function")W=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===c||B.$$typeof===p))W=B.propTypes;else return;if(W){var fe=ee(B);Qe(W,x.props,"prop",fe,x)}else if(B.PropTypes!==void 0&&!tr){tr=!0;var we=ee(B);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",we||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(x){{for(var B=Object.keys(x.props),W=0;W<B.length;W++){var fe=B[W];if(fe!=="children"&&fe!=="key"){Jt(x),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),Jt(null);break}}x.ref!==null&&(Jt(x),R("Invalid attribute `ref` supplied to `React.Fragment`."),Jt(null))}}function Mi(x,B,W,fe,we,_e){{var be=Pe(x);if(!be){var me="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(me+=" 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 at=Ja(we);at?me+=at:me+=Pi();var Ze;x===null?Ze="null":st(x)?Ze="array":x!==void 0&&x.$$typeof===t?(Ze="<"+(ee(x.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof x,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,me)}var ze=Ya(x,B,W,we,_e);if(ze==null)return ze;if(be){var gt=B.children;if(gt!==void 0)if(fe)if(st(gt)){for(var jt=0;jt<gt.length;jt++)Oi(gt[jt],x);Object.freeze&&Object.freeze(gt)}else R("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 Oi(gt,x)}return x===r?Ri(ze):Ka(ze),ze}}function Li(x,B,W){return Mi(x,B,W,!0)}function qa(x,B,W){return Mi(x,B,W,!1)}var Qa=qa,es=Li;Qo.Fragment=r,Qo.jsx=Qa,Qo.jsxs=es}()),Qo}var ea={};/**
|
|
20
20
|
* @license React
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
22
22
|
*
|
|
@@ -24,7 +24,7 @@ Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/var
|
|
27
|
+
*/var eg;function rS(){if(eg)return ea;eg=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,c,f){var h,p={},m=null,v=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=c.ref);for(h in c)r.call(c,h)&&!a.hasOwnProperty(h)&&(p[h]=c[h]);if(l&&l.defaultProps)for(h in c=l.defaultProps,c)p[h]===void 0&&(p[h]=c[h]);return{$$typeof:t,type:l,key:m,ref:v,props:p,_owner:i.current}}return ea.Fragment=n,ea.jsx=u,ea.jsxs=u,ea}process.env.NODE_ENV==="production"?Xl.exports=rS():Xl.exports=nS();var A=Xl.exports,zl={exports:{}},ta={};/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.production.min.js
|
|
30
30
|
*
|
|
@@ -32,7 +32,7 @@ Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var
|
|
35
|
+
*/var tg;function iS(){if(tg)return ta;tg=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,c,f){var h,p={},m=null,v=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=c.ref);for(h in c)r.call(c,h)&&!a.hasOwnProperty(h)&&(p[h]=c[h]);if(l&&l.defaultProps)for(h in c=l.defaultProps,c)p[h]===void 0&&(p[h]=c[h]);return{$$typeof:t,type:l,key:m,ref:v,props:p,_owner:i.current}}return ta.Fragment=n,ta.jsx=u,ta.jsxs=u,ta}var ms={};/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
38
38
|
*
|
|
@@ -40,21 +40,21 @@ Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(
|
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var
|
|
44
|
-
`+z+x}}var G=!1,q;{var
|
|
45
|
-
`),
|
|
46
|
-
`),
|
|
47
|
-
`+me[
|
|
43
|
+
*/var ng;function oS(){return ng||(ng=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),C=Symbol.iterator,S="@@iterator";function E(x){if(x===null||typeof x!="object")return null;var B=C&&x[C]||x[S];return typeof B=="function"?B:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(x){{for(var B=arguments.length,W=new Array(B>1?B-1:0),fe=1;fe<B;fe++)W[fe-1]=arguments[fe];L("error",x,W)}}function L(x,B,W){{var fe=_.ReactDebugCurrentFrame,we=fe.getStackAddendum();we!==""&&(B+="%s",W=W.concat([we]));var _e=W.map(function(be){return String(be)});_e.unshift("Warning: "+B),Function.prototype.apply.call(console[x],console,_e)}}var $=!1,V=!1,U=!1,X=!1,te=!1,de;de=Symbol.for("react.module.reference");function Pe(x){return!!(typeof x=="string"||typeof x=="function"||x===r||x===a||te||x===i||x===f||x===h||X||x===v||$||V||U||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===p||x.$$typeof===u||x.$$typeof===l||x.$$typeof===c||x.$$typeof===de||x.getModuleId!==void 0))}function ke(x,B,W){var fe=x.displayName;if(fe)return fe;var we=B.displayName||B.name||"";return we!==""?W+"("+we+")":W}function He(x){return x.displayName||"Context"}function ee(x){if(x==null)return null;if(typeof x.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case l:var B=x;return He(B)+".Consumer";case u:var W=x;return He(W._context)+".Provider";case c:return ke(x,x.render,"ForwardRef");case p:var fe=x.displayName||null;return fe!==null?fe:ee(x.type)||"Memo";case m:{var we=x,_e=we._payload,be=we._init;try{return ee(be(_e))}catch{return null}}}return null}var ve=Object.assign,ye=0,Ee,Ve,Ke,F,T,M,O;function y(){}y.__reactDisabledLog=!0;function H(){{if(ye===0){Ee=console.log,Ve=console.info,Ke=console.warn,F=console.error,T=console.group,M=console.groupCollapsed,O=console.groupEnd;var x={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}ye++}}function ne(){{if(ye--,ye===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ve({},x,{value:Ee}),info:ve({},x,{value:Ve}),warn:ve({},x,{value:Ke}),error:ve({},x,{value:F}),group:ve({},x,{value:T}),groupCollapsed:ve({},x,{value:M}),groupEnd:ve({},x,{value:O})})}ye<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=_.ReactCurrentDispatcher,z;function Y(x,B,W){{if(z===void 0)try{throw Error()}catch(we){var fe=we.stack.trim().match(/\n( *(at )?)/);z=fe&&fe[1]||""}return`
|
|
44
|
+
`+z+x}}var G=!1,q;{var ue=typeof WeakMap=="function"?WeakMap:Map;q=new ue}function J(x,B){if(!x||G)return"";{var W=q.get(x);if(W!==void 0)return W}var fe;G=!0;var we=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ae.current,ae.current=null,H();try{if(B){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(Et){fe=Et}Reflect.construct(x,[],be)}else{try{be.call()}catch(Et){fe=Et}x.call(be.prototype)}}else{try{throw Error()}catch(Et){fe=Et}x()}}catch(Et){if(Et&&fe&&typeof Et.stack=="string"){for(var me=Et.stack.split(`
|
|
45
|
+
`),at=fe.stack.split(`
|
|
46
|
+
`),Ze=me.length-1,ze=at.length-1;Ze>=1&&ze>=0&&me[Ze]!==at[ze];)ze--;for(;Ze>=1&&ze>=0;Ze--,ze--)if(me[Ze]!==at[ze]){if(Ze!==1||ze!==1)do if(Ze--,ze--,ze<0||me[Ze]!==at[ze]){var gt=`
|
|
47
|
+
`+me[Ze].replace(" at new "," at ");return x.displayName&>.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",x.displayName)),typeof x=="function"&&q.set(x,gt),gt}while(Ze>=1&&ze>=0);break}}}finally{G=!1,ae.current=_e,ne(),Error.prepareStackTrace=we}var jt=x?x.displayName||x.name:"",Di=jt?Y(jt):"";return typeof x=="function"&&q.set(x,Di),Di}function le(x,B,W){return J(x,!1)}function Q(x){var B=x.prototype;return!!(B&&B.isReactComponent)}function he(x,B,W){if(x==null)return"";if(typeof x=="function")return J(x,Q(x));if(typeof x=="string")return Y(x);switch(x){case f:return Y("Suspense");case h:return Y("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case c:return le(x.render);case p:return he(x.type,B,W);case m:{var fe=x,we=fe._payload,_e=fe._init;try{return he(_e(we),B,W)}catch{}}}return""}var Se=Object.prototype.hasOwnProperty,xe={},Be=_.ReactDebugCurrentFrame;function We(x){if(x){var B=x._owner,W=he(x.type,x._source,B?B.type:null);Be.setExtraStackFrame(W)}else Be.setExtraStackFrame(null)}function Qe(x,B,W,fe,we){{var _e=Function.call.bind(Se);for(var be in x)if(_e(x,be)){var me=void 0;try{if(typeof x[be]!="function"){var at=Error((fe||"React class")+": "+W+" type `"+be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw at.name="Invariant Violation",at}me=x[be](B,be,fe,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ze){me=Ze}me&&!(me instanceof Error)&&(We(we),R("%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).",fe||"React class",W,be,typeof me),We(null)),me instanceof Error&&!(me.message in xe)&&(xe[me.message]=!0,We(we),R("Failed %s type: %s",W,me.message),We(null))}}}var ot=Array.isArray;function st(x){return ot(x)}function It(x){{var B=typeof Symbol=="function"&&Symbol.toStringTag,W=B&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W}}function Yt(x){try{return Mt(x),!1}catch{return!0}}function Mt(x){return""+x}function Gn(x){if(Yt(x))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(x)),Mt(x)}var Vt=_.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},yr,xr,Hn;Hn={};function Ci(x){if(Se.call(x,"ref")){var B=Object.getOwnPropertyDescriptor(x,"ref").get;if(B&&B.isReactWarning)return!1}return x.ref!==void 0}function wi(x){if(Se.call(x,"key")){var B=Object.getOwnPropertyDescriptor(x,"key").get;if(B&&B.isReactWarning)return!1}return x.key!==void 0}function Si(x,B){if(typeof x.ref=="string"&&Vt.current&&B&&Vt.current.stateNode!==B){var W=ee(Vt.current.type);Hn[W]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ee(Vt.current.type),x.ref),Hn[W]=!0)}}function Ii(x,B){{var W=function(){yr||(yr=!0,R("%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)",B))};W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}}function Ei(x,B){{var W=function(){xr||(xr=!0,R("%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)",B))};W.isReactWarning=!0,Object.defineProperty(x,"ref",{get:W,configurable:!0})}}var Ai=function(x,B,W,fe,we,_e,be){var me={$$typeof:t,type:x,key:B,ref:W,props:be,_owner:_e};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Ya(x,B,W,fe,we){{var _e,be={},me=null,at=null;W!==void 0&&(Gn(W),me=""+W),wi(B)&&(Gn(B.key),me=""+B.key),Ci(B)&&(at=B.ref,Si(B,we));for(_e in B)Se.call(B,_e)&&!er.hasOwnProperty(_e)&&(be[_e]=B[_e]);if(x&&x.defaultProps){var Ze=x.defaultProps;for(_e in Ze)be[_e]===void 0&&(be[_e]=Ze[_e])}if(me||at){var ze=typeof x=="function"?x.displayName||x.name||"Unknown":x;me&&Ii(be,ze),at&&Ei(be,ze)}return Ai(x,me,at,we,fe,Vt.current,be)}}var Cr=_.ReactCurrentOwner,_i=_.ReactDebugCurrentFrame;function Jt(x){if(x){var B=x._owner,W=he(x.type,x._source,B?B.type:null);_i.setExtraStackFrame(W)}else _i.setExtraStackFrame(null)}var tr;tr=!1;function wr(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function Pi(){{if(Cr.current){var x=ee(Cr.current.type);if(x)return`
|
|
48
48
|
|
|
49
|
-
Check the render method of \``+x+"`."}return""}}function
|
|
49
|
+
Check the render method of \``+x+"`."}return""}}function Ja(x){{if(x!==void 0){var B=x.fileName.replace(/^.*[\\\/]/,""),W=x.lineNumber;return`
|
|
50
50
|
|
|
51
|
-
Check your code at `+
|
|
51
|
+
Check your code at `+B+":"+W+"."}return""}}var Ti={};function Vo(x){{var B=Pi();if(!B){var W=typeof x=="string"?x:x.displayName||x.name;W&&(B=`
|
|
52
52
|
|
|
53
|
-
Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=Lo(V);if(Ai[W])return;Ai[W]=!0;var ce="";x&&x._owner&&x._owner!==yr.current&&(ce=" It was passed a child from "+he(x._owner.type)+"."),Ut(x),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,ce),Ut(null)}}function Pi(x,V){{if(typeof x!="object")return;if(at(x))for(var W=0;W<x.length;W++){var ce=x[W];xr(ce)&&_i(ce,V)}else if(xr(x))x._store&&(x._store.validated=!0);else if(x){var we=E(x);if(typeof we=="function"&&we!==x.entries)for(var Ae=we.call(x),ve;!(ve=Ae.next()).done;)xr(ve.value)&&_i(ve.value,V)}}}function Xa(x){{var V=x.type;if(V==null||typeof V=="string")return;var W;if(typeof V=="function")W=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===h))W=V.propTypes;else return;if(W){var ce=he(V);Ke(W,x.props,"prop",ce,x)}else if(V.PropTypes!==void 0&&!Qn){Qn=!0;var we=he(V);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",we||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ti(x){{for(var V=Object.keys(x.props),W=0;W<V.length;W++){var ce=V[W];if(ce!=="children"&&ce!=="key"){Ut(x),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),Ut(null);break}}x.ref!==null&&(Ut(x),M("Invalid attribute `ref` supplied to `React.Fragment`."),Ut(null))}}function Oi(x,V,W,ce,we,Ae){{var ve=Oe(x);if(!ve){var me="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(me+=" 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 ot=Za(we);ot?me+=ot:me+=Ei();var je;x===null?je="null":at(x)?je="array":x!==void 0&&x.$$typeof===t?(je="<"+(he(x.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):je=typeof x,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,me)}var We=Wa(x,V,W,we,Ae);if(We==null)return We;if(ve){var ht=V.children;if(ht!==void 0)if(ce)if(at(ht)){for(var kt=0;kt<ht.length;kt++)Pi(ht[kt],x);Object.freeze&&Object.freeze(ht)}else M("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 Pi(ht,x)}return x===r?Ti(We):Xa(We),We}}function Fi(x,V,W){return Oi(x,V,W,!0)}function za(x,V,W){return Oi(x,V,W,!1)}var Ua=za,Ya=Fi;fs.Fragment=r,fs.jsx=Ua,fs.jsxs=Ya}()),fs}process.env.NODE_ENV==="production"?Bl.exports=O2():Bl.exports=F2();var le=Bl.exports;function R2(e){return le.jsx("svg",{...e,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M5 16H11C11.2833 16 11.5208 15.9042 11.7125 15.7125C11.9042 15.5208 12 15.2833 12 15C12 14.7167 11.9042 14.4792 11.7125 14.2875C11.5208 14.0958 11.2833 14 11 14H5C4.71667 14 4.47917 14.0958 4.2875 14.2875C4.09583 14.4792 4 14.7167 4 15C4 15.2833 4.09583 15.5208 4.2875 15.7125C4.47917 15.9042 4.71667 16 5 16ZM5 12H11C11.2833 12 11.5208 11.9042 11.7125 11.7125C11.9042 11.5208 12 11.2833 12 11C12 10.7167 11.9042 10.4792 11.7125 10.2875C11.5208 10.0958 11.2833 10 11 10H5C4.71667 10 4.47917 10.0958 4.2875 10.2875C4.09583 10.4792 4 10.7167 4 11C4 11.2833 4.09583 11.5208 4.2875 11.7125C4.47917 11.9042 4.71667 12 5 12ZM2 20C1.45 20 0.979167 19.8042 0.5875 19.4125C0.195833 19.0208 0 18.55 0 18V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H9.175C9.44167 0 9.69583 0.05 9.9375 0.15C10.1792 0.25 10.3917 0.391667 10.575 0.575L15.425 5.425C15.6083 5.60833 15.75 5.82083 15.85 6.0625C15.95 6.30417 16 6.55833 16 6.825V18C16 18.55 15.8042 19.0208 15.4125 19.4125C15.0208 19.8042 14.55 20 14 20H2ZM9 6V2H2V18H14V7H10C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6Z",fill:"currentColor"})})}function M2(e){return le.jsx("svg",{...e,width:"25",height:"15",viewBox:"0 0 25 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M1.38889 15H23.6111C24.375 15 25 14.4375 25 13.75C25 13.0625 24.375 12.5 23.6111 12.5H1.38889C0.625 12.5 0 13.0625 0 13.75C0 14.4375 0.625 15 1.38889 15ZM1.38889 8.75H23.6111C24.375 8.75 25 8.1875 25 7.5C25 6.8125 24.375 6.25 23.6111 6.25H1.38889C0.625 6.25 0 6.8125 0 7.5C0 8.1875 0.625 8.75 1.38889 8.75ZM0 1.25C0 1.9375 0.625 2.5 1.38889 2.5H23.6111C24.375 2.5 25 1.9375 25 1.25C25 0.5625 24.375 0 23.6111 0H1.38889C0.625 0 0 0.5625 0 1.25Z",fill:"currentColor"})})}function L2(e){return le.jsx("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.625 0V8.88889H9.51389V0H0.625ZM7.29167 6.66667H2.84722V2.22222H7.29167V6.66667ZM0.625 11.1111V20H9.51389V11.1111H0.625ZM7.29167 17.7778H2.84722V13.3333H7.29167V17.7778ZM11.7361 0V8.88889H20.625V0H11.7361ZM18.4028 6.66667H13.9583V2.22222H18.4028V6.66667ZM11.7361 11.1111V20H20.625V11.1111H11.7361ZM18.4028 17.7778H13.9583V13.3333H18.4028V17.7778Z",fill:"currentColor"})})}function $2(e){return le.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M12 12C15.315 12 18 9.315 18 6C18 2.685 15.315 0 12 0C8.685 0 6 2.685 6 6C6 9.315 8.685 12 12 12ZM12 15C7.995 15 0 17.01 0 21V22.5C0 23.325 0.675 24 1.5 24H22.5C23.325 24 24 23.325 24 22.5V21C24 17.01 16.005 15 12 15Z",fill:"currentColor"})})}function D2(e){return le.jsxs("svg",{...e,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("path",{d:"M1.54167 1.54167H5.79167C6.18125 1.54167 6.5 1.22292 6.5 0.833333C6.5 0.44375 6.18125 0.125 5.79167 0.125H1.54167C0.7625 0.125 0.125 0.7625 0.125 1.54167V11.4583C0.125 12.2375 0.7625 12.875 1.54167 12.875H5.79167C6.18125 12.875 6.5 12.5562 6.5 12.1667C6.5 11.7771 6.18125 11.4583 5.79167 11.4583H1.54167V1.54167Z",fill:"#333333"}),le.jsx("path",{d:"M12.6271 6.25205L10.6508 4.2758C10.6016 4.22519 10.5383 4.19043 10.4692 4.17597C10.4001 4.16151 10.3282 4.16801 10.2628 4.19464C10.1974 4.22126 10.1414 4.2668 10.102 4.32542C10.0626 4.38405 10.0416 4.45309 10.0417 4.52372V5.79163H5.08333C4.69375 5.79163 4.375 6.11038 4.375 6.49997C4.375 6.88955 4.69375 7.2083 5.08333 7.2083H10.0417V8.47622C10.0417 8.79497 10.4242 8.9508 10.6437 8.72413L12.62 6.74788C12.7617 6.6133 12.7617 6.38663 12.6271 6.25205Z",fill:"#333333"})]})}function N2(e){return le.jsxs("svg",{...e,width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsxs("g",{clipPath:"url(#clip0_35_134)",children:[le.jsx("path",{d:"M19 9C19 1.8 13 0 10 0C7 0 13.5 1.8 13.5 9C13.5 16.2 7 18 10 18C13 18 19 16.2 19 9Z",fill:"black"}),le.jsx("path",{d:"M8.8682 7.44825L6.3887 7.08789L5.28031 4.84082C5.25003 4.7793 5.20023 4.7295 5.1387 4.69922C4.98441 4.62305 4.79691 4.68653 4.71976 4.84082L3.61136 7.08789L1.13187 7.44825C1.06351 7.45801 1.00101 7.49024 0.953158 7.53907C0.895308 7.59853 0.86343 7.67852 0.864529 7.76147C0.865628 7.84442 0.899613 7.92354 0.959017 7.98145L2.75296 9.73047L2.32913 12.2002C2.3192 12.2576 2.32555 12.3167 2.34749 12.3708C2.36942 12.4248 2.40605 12.4716 2.45322 12.5058C2.5004 12.5401 2.55623 12.5605 2.61439 12.5646C2.67254 12.5688 2.7307 12.5565 2.78226 12.5293L5.00003 11.3633L7.21781 12.5293C7.27835 12.5615 7.34867 12.5723 7.41605 12.5605C7.58597 12.5313 7.70023 12.3701 7.67093 12.2002L7.2471 9.73047L9.04105 7.98145C9.08988 7.9336 9.1221 7.8711 9.13187 7.80274C9.15824 7.63184 9.03909 7.47364 8.8682 7.44825Z",fill:"black"})]}),le.jsx("defs",{children:le.jsx("clipPath",{id:"clip0_35_134",children:le.jsx("rect",{width:"19",height:"18",fill:"white"})})})]})}function V2(e){return le.jsxs("svg",{...e,width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("g",{clipPath:"url(#clip0_38_137)",children:le.jsx("path",{d:"M1.86625 0.800537L5.5 4.42637L9.13375 0.800537L10.25 1.91679L5.5 6.66679L0.75 1.91679L1.86625 0.800537Z",fill:"currentColor"})}),le.jsx("defs",{children:le.jsx("clipPath",{id:"clip0_38_137",children:le.jsx("rect",{width:"11",height:"7",fill:"white"})})})]})}function B2(e){return le.jsxs("svg",{...e,width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("g",{clipPath:"url(#clip0_38_137)",children:le.jsx("path",{d:"M9.13375 6.19946L5.5 2.57363L1.86625 6.19946L0.75 5.08321L5.5 0.333209L10.25 5.08321L9.13375 6.19946Z",fill:"currentColor"})}),le.jsx("defs",{children:le.jsx("clipPath",{id:"clip0_38_137",children:le.jsx("rect",{width:"11",height:"7",fill:"white",transform:"matrix(-1 0 0 -1 11 7)"})})})]})}function k2(e){return le.jsx("svg",{...e,width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M10.5 5L5.5 0L0.5 5L10.5 5Z",fill:"currentColor"})})}function j2(e){return le.jsx("svg",{...e,width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M0.5 0.5L5.5 5.5L10.5 0.5H0.5Z",fill:"currentColor"})})}function Zh(e){return le.jsx("svg",{...e,width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M6 10.6667L1.33333 6.00002L6 1.33335",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function Xh(e){return le.jsx("svg",{...e,width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M1 1.33331L5.66667 5.99998L1 10.6666",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function G2(e){return le.jsx("svg",{...e,width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M6.33334 10.6667L1.66667 6.00002L6.33334 1.33335M11.6667 10.6667L7 6.00002L11.6667 1.33335",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function H2(e){return le.jsx("svg",{...e,width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M6.66668 1.33331L11.3333 5.99998L6.66668 10.6666M1.33334 1.33331L6.00001 5.99998L1.33334 10.6666",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function W2(e){return le.jsx("svg",{...e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M11.9246 3.81796L9.09596 0.989257C8.99538 0.888678 8.8323 0.888678 8.73176 0.989223L8.2461 1.47485C8.19778 1.52316 8.17065 1.58865 8.17065 1.65698C8.17065 1.72529 8.19778 1.79077 8.24606 1.83909L9.80606 3.39912H2.19401L3.754 1.83915C3.80229 1.79087 3.82941 1.72535 3.82941 1.65705C3.82941 1.58875 3.80229 1.52323 3.754 1.47495L3.26834 0.989257C3.16776 0.888712 3.00472 0.888643 2.90411 0.989257L0.0754091 3.81792C0.027128 3.8662 0 3.93172 0 4.00002C0 4.06832 0.027128 4.13384 0.0754091 4.18212L2.90414 7.01082C2.95445 7.0611 3.02038 7.08627 3.08628 7.08627C3.15217 7.08627 3.21811 7.06113 3.26841 7.01082L3.75407 6.52516C3.80235 6.47688 3.82948 6.41136 3.82948 6.34306C3.82948 6.27476 3.80235 6.20924 3.75407 6.16096L2.19404 4.60096H9.8061L8.24606 6.16096C8.19778 6.20924 8.17065 6.27476 8.17065 6.34306C8.17065 6.41136 8.19778 6.47688 8.24606 6.52516L8.73172 7.01082C8.78004 7.05914 8.84552 7.08627 8.91386 7.08627C8.98216 7.08627 9.04768 7.05914 9.09599 7.01082L11.9246 4.18216C12.0251 4.08158 12.0251 3.9185 11.9246 3.81796Z",fill:"currentColor"})})}function zh(e){return le.jsx("svg",{...e,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M10.999 9.67361H10.304L10.0576 9.4362C10.6075 8.7978 11.0093 8.04582 11.2344 7.23408C11.4595 6.42235 11.5023 5.57092 11.3597 4.74072C10.9462 2.29625 8.90505 0.344195 6.44155 0.0452311C5.57547 -0.0642724 4.6958 0.0256856 3.86986 0.308221C3.04392 0.590757 2.29359 1.05838 1.6763 1.67531C1.059 2.29224 0.591104 3.04213 0.308402 3.86759C0.0257007 4.69305 -0.0643101 5.5722 0.0452576 6.43777C0.344397 8.89983 2.2976 10.9398 4.7435 11.3531C5.57418 11.4956 6.42611 11.4528 7.23833 11.2278C8.05054 11.0029 8.80296 10.6012 9.44174 10.0517L9.67929 10.2979V10.9926L13.4185 14.7296C13.7793 15.0901 14.3687 15.0901 14.7295 14.7296C15.0902 14.3691 15.0902 13.78 14.7295 13.4195L10.999 9.67361ZM5.7201 9.67361C3.52935 9.67361 1.76091 7.90621 1.76091 5.71674C1.76091 3.52728 3.52935 1.75987 5.7201 1.75987C7.91085 1.75987 9.67929 3.52728 9.67929 5.71674C9.67929 7.90621 7.91085 9.67361 5.7201 9.67361Z",fill:"currentColor"})})}function Z2(e){return le.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:le.jsxs("g",{children:[le.jsx("path",{d:"M9.97214 5.00009L-0.0278625 5.00009L4.97214 9.14335e-05L9.97214 5.00009Z",fill:"currentColor"}),le.jsx("path",{d:"M10.0279 8.99992L5.02786 13.9999L0.0278625 8.99992L10.0279 8.99992ZM7.43858 10.0713L2.61715 10.0713L5.02786 12.4821L7.43858 10.0713Z",fill:"currentColor"})]})})}function X2(e){return le.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:le.jsxs("g",{children:[le.jsx("path",{d:"M-2.38419e-07 9H10L5 14L-2.38419e-07 9Z",fill:"currentColor"}),le.jsx("path",{d:"M-2.38419e-07 5L5 0L10 5L-2.38419e-07 5ZM2.58929 3.92857L7.41071 3.92857L5 1.51786L2.58929 3.92857Z",fill:"currentColor"})]})})}function z2(e){return le.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:le.jsxs("g",{children:[le.jsx("path",{d:"M-2.38419e-07 9H10L5 14L-2.38419e-07 9ZM2.58929 10.0714L5 12.4821L7.41071 10.0714H2.58929Z",fill:"currentColor"}),le.jsx("path",{d:"M10 5L0 5L5 -1.19209e-07L10 5ZM7.41071 3.92857L5 1.51786L2.58929 3.92857L7.41071 3.92857Z",fill:"currentColor"})]})})}function U2(e){return le.jsx("svg",{...e,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M0.625 13.2775V15.9375C0.625 16.1825 0.8175 16.375 1.0625 16.375H3.7225C3.83625 16.375 3.95 16.3313 4.02875 16.2438L13.5837 6.6975L10.3025 3.41625L0.75625 12.9625C0.66875 13.05 0.625 13.155 0.625 13.2775ZM16.1212 4.16C16.2024 4.07905 16.2667 3.9829 16.3106 3.87705C16.3545 3.7712 16.3771 3.65772 16.3771 3.54313C16.3771 3.42853 16.3545 3.31506 16.3106 3.20921C16.2667 3.10335 16.2024 3.0072 16.1212 2.92625L14.0738 0.878752C13.9928 0.797637 13.8966 0.733283 13.7908 0.689374C13.6849 0.645465 13.5715 0.622864 13.4569 0.622864C13.3423 0.622864 13.2288 0.645465 13.123 0.689374C13.0171 0.733283 12.9209 0.797637 12.84 0.878752L11.2388 2.48L14.52 5.76125L16.1212 4.16V4.16Z",fill:"currentColor"})})}function Y2(e){return le.jsxs("svg",{...e,className:"w-4 h-4",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsxs("g",{clipPath:"url(#clip0_7015_29301)",children:[le.jsx("path",{d:"M15.375 6.7C14.775 3.175 11.7 0.5 8 0.5C4.3 0.5 1.225 3.175 0.625 6.7L8 3L15.375 6.7ZM0.625 9.3C1.225 12.825 4.3 15.5 8 15.5C11.7 15.5 14.775 12.825 15.375 9.3L8 13L0.625 9.3Z",fill:"#699635"}),le.jsx("path",{d:"M8 3L0.625 6.7C0.55 7.125 0.5 7.55 0.5 8C0.5 8.45 0.55 8.875 0.625 9.3L8 13L15.375 9.3C15.45 8.875 15.5 8.45 15.5 8C15.5 7.55 15.45 7.125 15.375 6.7L8 3Z",fill:"#FFE62E"}),le.jsx("path",{d:"M6.5 7.10001C5.7 7.10001 4.95 7.27501 4.275 7.57501C4.25 7.72501 4.25 7.85001 4.25 8.00001C4.25 10.075 5.925 11.75 8 11.75C9.4 11.75 10.625 10.975 11.275 9.85001C10.35 8.22501 8.55 7.10001 6.5 7.10001Z",fill:"#428BC1"}),le.jsx("path",{d:"M11.7 8.6C11.725 8.4 11.75 8.2 11.75 8C11.75 5.925 10.075 4.25 8 4.25C6.525 4.25 5.25 5.1 4.625 6.35C5.225 6.175 5.85 6.075 6.5 6.075C8.625 6.075 10.5 7.075 11.7 8.6Z",fill:"#428BC1"}),le.jsx("path",{d:"M6.4999 6.075C5.8499 6.075 5.2249 6.175 4.6249 6.35C4.4499 6.725 4.3249 7.125 4.2749 7.575C4.9499 7.275 5.6999 7.1 6.4999 7.1C8.5499 7.1 10.3499 8.2 11.2749 9.825C11.4999 9.45 11.6249 9.025 11.6999 8.6C10.4999 7.075 8.6249 6.075 6.4999 6.075Z",fill:"white"}),le.jsx("path",{d:"M5.5 8.25C5.63807 8.25 5.75 8.13807 5.75 8C5.75 7.86193 5.63807 7.75 5.5 7.75C5.36193 7.75 5.25 7.86193 5.25 8C5.25 8.13807 5.36193 8.25 5.5 8.25Z",fill:"white"}),le.jsx("path",{d:"M6.5 9.75C6.63807 9.75 6.75 9.63807 6.75 9.5C6.75 9.36193 6.63807 9.25 6.5 9.25C6.36193 9.25 6.25 9.36193 6.25 9.5C6.25 9.63807 6.36193 9.75 6.5 9.75Z",fill:"white"}),le.jsx("path",{d:"M8 9.75C8.13807 9.75 8.25 9.63807 8.25 9.5C8.25 9.36193 8.13807 9.25 8 9.25C7.86193 9.25 7.75 9.36193 7.75 9.5C7.75 9.63807 7.86193 9.75 8 9.75Z",fill:"white"}),le.jsx("path",{d:"M8 10.75C8.13807 10.75 8.25 10.6381 8.25 10.5C8.25 10.3619 8.13807 10.25 8 10.25C7.86193 10.25 7.75 10.3619 7.75 10.5C7.75 10.6381 7.86193 10.75 8 10.75Z",fill:"white"}),le.jsx("path",{d:"M10 9.75C10.1381 9.75 10.25 9.63807 10.25 9.5C10.25 9.36193 10.1381 9.25 10 9.25C9.86193 9.25 9.75 9.36193 9.75 9.5C9.75 9.63807 9.86193 9.75 10 9.75Z",fill:"white"}),le.jsx("path",{d:"M10 10.75C10.1381 10.75 10.25 10.6381 10.25 10.5C10.25 10.3619 10.1381 10.25 10 10.25C9.86193 10.25 9.75 10.3619 9.75 10.5C9.75 10.6381 9.86193 10.75 10 10.75Z",fill:"white"}),le.jsx("path",{d:"M9 10.25C9.13807 10.25 9.25 10.1381 9.25 10C9.25 9.86193 9.13807 9.75 9 9.75C8.86193 9.75 8.75 9.86193 8.75 10C8.75 10.1381 8.86193 10.25 9 10.25Z",fill:"white"}),le.jsx("path",{d:"M5.5 9.25C5.63807 9.25 5.75 9.13807 5.75 9C5.75 8.86193 5.63807 8.75 5.5 8.75C5.36193 8.75 5.25 8.86193 5.25 9C5.25 9.13807 5.36193 9.25 5.5 9.25Z",fill:"white"})]}),le.jsx("defs",{children:le.jsx("clipPath",{id:"clip0_7015_29301",children:le.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function J2(e){return le.jsxs("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsxs("g",{clipPath:"url(#clip0_496_231)",children:[le.jsx("path",{d:"M12 1.65C10.825 0.925 9.475 0.5 8 0.5V1.65H12Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M8 2.80002H13.4C12.975 2.37502 12.5 1.97502 12 1.65002H8V2.80002Z",fill:"white"}),le.jsx("path",{d:"M8 3.95005H14.325C14.05 3.52505 13.75 3.15005 13.425 2.80005H8V3.95005Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M8 5.09995H14.925C14.75 4.69995 14.55 4.29995 14.325 3.94995H8V5.09995Z",fill:"white"}),le.jsx("path",{d:"M8 6.24998H15.3C15.2 5.84998 15.075 5.47498 14.925 5.09998H8V6.24998Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M8 7.42502H15.475C15.45 7.02502 15.375 6.65002 15.3 6.27502H8V7.42502Z",fill:"white"}),le.jsx("path",{d:"M15.475 7.42505H8V8.00005H0.5C0.5 8.20005 0.5 8.37505 0.525 8.57505H15.475C15.5 8.37505 15.5 8.20005 15.5 8.00005C15.5 7.80005 15.5 7.60005 15.475 7.42505Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M0.700024 9.72495H15.3C15.4 9.34995 15.45 8.97495 15.475 8.57495H0.525024C0.550024 8.94995 0.600024 9.34995 0.700024 9.72495Z",fill:"white"}),le.jsx("path",{d:"M1.07501 10.875H14.925C15.075 10.5 15.2 10.125 15.3 9.72498H0.700012C0.800012 10.125 0.925012 10.5 1.07501 10.875Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M1.67501 12.025H14.325C14.55 11.65 14.75 11.275 14.925 10.875H1.07501C1.25001 11.275 1.45001 11.65 1.67501 12.025Z",fill:"white"}),le.jsx("path",{d:"M2.57499 13.175H13.425C13.75 12.825 14.075 12.425 14.325 12.025H1.67499C1.92499 12.45 2.24999 12.825 2.57499 13.175Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M3.97501 14.325H12.025C12.55 14 13 13.6 13.425 13.175H2.57501C3.00001 13.625 3.47501 14 3.97501 14.325Z",fill:"white"}),le.jsx("path",{d:"M7.99998 15.5C9.47498 15.5 10.85 15.075 12.025 14.325H3.97498C5.14998 15.075 6.52498 15.5 7.99998 15.5Z",fill:"#ED4C5C"}),le.jsx("path",{d:"M4 1.65C3.475 1.975 3 2.375 2.575 2.8C2.225 3.15 1.925 3.55 1.675 3.95C1.45 4.325 1.225 4.7 1.075 5.1C0.925 5.475 0.8 5.85 0.7 6.25C0.6 6.625 0.55 7 0.525 7.4C0.5 7.6 0.5 7.8 0.5 8H8V0.5C6.525 0.5 5.175 0.925 4 1.65Z",fill:"#428BC1"}),le.jsx("path",{d:"M6.24998 0.75L6.37498 1.125H6.74998L6.44998 1.375L6.54998 1.75L6.24998 1.525L5.94998 1.75L6.04998 1.375L5.74998 1.125H6.12498L6.24998 0.75ZM7.24998 2.25L7.37498 2.625H7.74998L7.44998 2.875L7.54998 3.25L7.24998 3.025L6.94998 3.25L7.04998 2.875L6.74998 2.625H7.12498L7.24998 2.25ZM5.24998 2.25L5.37498 2.625H5.74998L5.44998 2.875L5.54998 3.25L5.24998 3.025L4.94998 3.25L5.04998 2.875L4.74998 2.625H5.12498L5.24998 2.25ZM6.24998 3.75L6.37498 4.125H6.74998L6.44998 4.375L6.54998 4.75L6.24998 4.525L5.94998 4.75L6.04998 4.375L5.74998 4.125H6.12498L6.24998 3.75ZM4.24998 3.75L4.37498 4.125H4.74998L4.44998 4.375L4.54998 4.75L4.24998 4.525L3.94998 4.75L4.04998 4.375L3.74998 4.125H4.12498L4.24998 3.75ZM2.24998 3.75L2.37498 4.125H2.74998L2.44998 4.375L2.54998 4.75L2.24998 4.525L1.94998 4.75L2.04998 4.375L1.74998 4.125H2.12498L2.24998 3.75ZM7.24998 5.25L7.37498 5.625H7.74998L7.44998 5.875L7.54998 6.25L7.24998 6.025L6.94998 6.25L7.04998 5.875L6.74998 5.625H7.12498L7.24998 5.25ZM5.24998 5.25L5.37498 5.625H5.74998L5.44998 5.875L5.54998 6.25L5.24998 6.025L4.94998 6.25L5.04998 5.875L4.74998 5.625H5.12498L5.24998 5.25ZM3.24998 5.25L3.37498 5.625H3.74998L3.44998 5.875L3.54998 6.25L3.24998 6.025L2.94998 6.25L3.04998 5.875L2.74998 5.625H3.12498L3.24998 5.25ZM6.24998 6.75L6.37498 7.125H6.74998L6.44998 7.375L6.54998 7.75L6.24998 7.525L5.94998 7.75L6.04998 7.375L5.74998 7.125H6.12498L6.24998 6.75ZM4.24998 6.75L4.37498 7.125H4.74998L4.44998 7.375L4.54998 7.75L4.24998 7.525L3.94998 7.75L4.04998 7.375L3.74998 7.125H4.12498L4.24998 6.75ZM2.24998 6.75L2.37498 7.125H2.74998L2.44998 7.375L2.54998 7.75L2.24998 7.525L1.94998 7.75L2.04998 7.375L1.74998 7.125H2.12498L2.24998 6.75ZM2.94998 3.25L3.24998 3.025L3.54998 3.25L3.42498 2.875L3.72498 2.625H3.34998L3.24998 2.25L3.12498 2.625H2.77498L3.07498 2.85L2.94998 3.25ZM0.949976 6.25L1.24998 6.025L1.54998 6.25L1.42498 5.875L1.72498 5.625H1.37498L1.24998 5.25L1.12498 5.625H0.874976C0.874976 5.65 0.849976 5.675 0.849976 5.7L1.04998 5.85L0.949976 6.25Z",fill:"white"})]}),le.jsx("defs",{children:le.jsx("clipPath",{id:"clip0_496_231",children:le.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function K2(e){return le.jsx("svg",{...e,width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M16.125 5.36665C15.8451 3.94808 15.0813 2.6707 13.9642 1.75268C12.8471 0.834674 11.4459 0.332986 10 0.333313C7.59167 0.333313 5.5 1.69998 4.45833 3.69998C3.23353 3.83234 2.10084 4.41265 1.27791 5.32941C0.454976 6.24617 -0.000143085 7.43471 3.3744e-08 8.66665C3.3744e-08 11.425 2.24167 13.6666 5 13.6666H15.8333C18.1333 13.6666 20 11.8 20 9.49998C20 7.29998 18.2917 5.51665 16.125 5.36665ZM11.6667 7.83331V11.1666H8.33333V7.83331H5.83333L10 3.66665L14.1667 7.83331H11.6667Z",fill:"currentColor"})})}var Uh={exports:{}};/*!
|
|
53
|
+
Check the top-level render call using <`+W+">.")}return B}}function Fi(x,B){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=Vo(B);if(Ti[W])return;Ti[W]=!0;var fe="";x&&x._owner&&x._owner!==Cr.current&&(fe=" It was passed a child from "+ee(x._owner.type)+"."),Jt(x),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,fe),Jt(null)}}function Oi(x,B){{if(typeof x!="object")return;if(st(x))for(var W=0;W<x.length;W++){var fe=x[W];wr(fe)&&Fi(fe,B)}else if(wr(x))x._store&&(x._store.validated=!0);else if(x){var we=E(x);if(typeof we=="function"&&we!==x.entries)for(var _e=we.call(x),be;!(be=_e.next()).done;)wr(be.value)&&Fi(be.value,B)}}}function Ka(x){{var B=x.type;if(B==null||typeof B=="string")return;var W;if(typeof B=="function")W=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===c||B.$$typeof===p))W=B.propTypes;else return;if(W){var fe=ee(B);Qe(W,x.props,"prop",fe,x)}else if(B.PropTypes!==void 0&&!tr){tr=!0;var we=ee(B);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",we||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(x){{for(var B=Object.keys(x.props),W=0;W<B.length;W++){var fe=B[W];if(fe!=="children"&&fe!=="key"){Jt(x),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),Jt(null);break}}x.ref!==null&&(Jt(x),R("Invalid attribute `ref` supplied to `React.Fragment`."),Jt(null))}}function Mi(x,B,W,fe,we,_e){{var be=Pe(x);if(!be){var me="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(me+=" 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 at=Ja(we);at?me+=at:me+=Pi();var Ze;x===null?Ze="null":st(x)?Ze="array":x!==void 0&&x.$$typeof===t?(Ze="<"+(ee(x.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof x,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,me)}var ze=Ya(x,B,W,we,_e);if(ze==null)return ze;if(be){var gt=B.children;if(gt!==void 0)if(fe)if(st(gt)){for(var jt=0;jt<gt.length;jt++)Oi(gt[jt],x);Object.freeze&&Object.freeze(gt)}else R("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 Oi(gt,x)}return x===r?Ri(ze):Ka(ze),ze}}function Li(x,B,W){return Mi(x,B,W,!0)}function qa(x,B,W){return Mi(x,B,W,!1)}var Qa=qa,es=Li;ms.Fragment=r,ms.jsx=Qa,ms.jsxs=es}()),ms}process.env.NODE_ENV==="production"?zl.exports=iS():zl.exports=oS();var ce=zl.exports;function aS(e){return ce.jsx("svg",{...e,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M5 16H11C11.2833 16 11.5208 15.9042 11.7125 15.7125C11.9042 15.5208 12 15.2833 12 15C12 14.7167 11.9042 14.4792 11.7125 14.2875C11.5208 14.0958 11.2833 14 11 14H5C4.71667 14 4.47917 14.0958 4.2875 14.2875C4.09583 14.4792 4 14.7167 4 15C4 15.2833 4.09583 15.5208 4.2875 15.7125C4.47917 15.9042 4.71667 16 5 16ZM5 12H11C11.2833 12 11.5208 11.9042 11.7125 11.7125C11.9042 11.5208 12 11.2833 12 11C12 10.7167 11.9042 10.4792 11.7125 10.2875C11.5208 10.0958 11.2833 10 11 10H5C4.71667 10 4.47917 10.0958 4.2875 10.2875C4.09583 10.4792 4 10.7167 4 11C4 11.2833 4.09583 11.5208 4.2875 11.7125C4.47917 11.9042 4.71667 12 5 12ZM2 20C1.45 20 0.979167 19.8042 0.5875 19.4125C0.195833 19.0208 0 18.55 0 18V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H9.175C9.44167 0 9.69583 0.05 9.9375 0.15C10.1792 0.25 10.3917 0.391667 10.575 0.575L15.425 5.425C15.6083 5.60833 15.75 5.82083 15.85 6.0625C15.95 6.30417 16 6.55833 16 6.825V18C16 18.55 15.8042 19.0208 15.4125 19.4125C15.0208 19.8042 14.55 20 14 20H2ZM9 6V2H2V18H14V7H10C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6Z",fill:"currentColor"})})}function sS(e){return ce.jsx("svg",{...e,width:"25",height:"15",viewBox:"0 0 25 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M1.38889 15H23.6111C24.375 15 25 14.4375 25 13.75C25 13.0625 24.375 12.5 23.6111 12.5H1.38889C0.625 12.5 0 13.0625 0 13.75C0 14.4375 0.625 15 1.38889 15ZM1.38889 8.75H23.6111C24.375 8.75 25 8.1875 25 7.5C25 6.8125 24.375 6.25 23.6111 6.25H1.38889C0.625 6.25 0 6.8125 0 7.5C0 8.1875 0.625 8.75 1.38889 8.75ZM0 1.25C0 1.9375 0.625 2.5 1.38889 2.5H23.6111C24.375 2.5 25 1.9375 25 1.25C25 0.5625 24.375 0 23.6111 0H1.38889C0.625 0 0 0.5625 0 1.25Z",fill:"currentColor"})})}function uS(e){return ce.jsx("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.625 0V8.88889H9.51389V0H0.625ZM7.29167 6.66667H2.84722V2.22222H7.29167V6.66667ZM0.625 11.1111V20H9.51389V11.1111H0.625ZM7.29167 17.7778H2.84722V13.3333H7.29167V17.7778ZM11.7361 0V8.88889H20.625V0H11.7361ZM18.4028 6.66667H13.9583V2.22222H18.4028V6.66667ZM11.7361 11.1111V20H20.625V11.1111H11.7361ZM18.4028 17.7778H13.9583V13.3333H18.4028V17.7778Z",fill:"currentColor"})})}function lS(e){return ce.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M12 12C15.315 12 18 9.315 18 6C18 2.685 15.315 0 12 0C8.685 0 6 2.685 6 6C6 9.315 8.685 12 12 12ZM12 15C7.995 15 0 17.01 0 21V22.5C0 23.325 0.675 24 1.5 24H22.5C23.325 24 24 23.325 24 22.5V21C24 17.01 16.005 15 12 15Z",fill:"currentColor"})})}function cS(e){return ce.jsxs("svg",{...e,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsx("path",{d:"M1.54167 1.54167H5.79167C6.18125 1.54167 6.5 1.22292 6.5 0.833333C6.5 0.44375 6.18125 0.125 5.79167 0.125H1.54167C0.7625 0.125 0.125 0.7625 0.125 1.54167V11.4583C0.125 12.2375 0.7625 12.875 1.54167 12.875H5.79167C6.18125 12.875 6.5 12.5562 6.5 12.1667C6.5 11.7771 6.18125 11.4583 5.79167 11.4583H1.54167V1.54167Z",fill:"#333333"}),ce.jsx("path",{d:"M12.6271 6.25205L10.6508 4.2758C10.6016 4.22519 10.5383 4.19043 10.4692 4.17597C10.4001 4.16151 10.3282 4.16801 10.2628 4.19464C10.1974 4.22126 10.1414 4.2668 10.102 4.32542C10.0626 4.38405 10.0416 4.45309 10.0417 4.52372V5.79163H5.08333C4.69375 5.79163 4.375 6.11038 4.375 6.49997C4.375 6.88955 4.69375 7.2083 5.08333 7.2083H10.0417V8.47622C10.0417 8.79497 10.4242 8.9508 10.6437 8.72413L12.62 6.74788C12.7617 6.6133 12.7617 6.38663 12.6271 6.25205Z",fill:"#333333"})]})}function fS(e){return ce.jsxs("svg",{...e,width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsxs("g",{clipPath:"url(#clip0_35_134)",children:[ce.jsx("path",{d:"M19 9C19 1.8 13 0 10 0C7 0 13.5 1.8 13.5 9C13.5 16.2 7 18 10 18C13 18 19 16.2 19 9Z",fill:"black"}),ce.jsx("path",{d:"M8.8682 7.44825L6.3887 7.08789L5.28031 4.84082C5.25003 4.7793 5.20023 4.7295 5.1387 4.69922C4.98441 4.62305 4.79691 4.68653 4.71976 4.84082L3.61136 7.08789L1.13187 7.44825C1.06351 7.45801 1.00101 7.49024 0.953158 7.53907C0.895308 7.59853 0.86343 7.67852 0.864529 7.76147C0.865628 7.84442 0.899613 7.92354 0.959017 7.98145L2.75296 9.73047L2.32913 12.2002C2.3192 12.2576 2.32555 12.3167 2.34749 12.3708C2.36942 12.4248 2.40605 12.4716 2.45322 12.5058C2.5004 12.5401 2.55623 12.5605 2.61439 12.5646C2.67254 12.5688 2.7307 12.5565 2.78226 12.5293L5.00003 11.3633L7.21781 12.5293C7.27835 12.5615 7.34867 12.5723 7.41605 12.5605C7.58597 12.5313 7.70023 12.3701 7.67093 12.2002L7.2471 9.73047L9.04105 7.98145C9.08988 7.9336 9.1221 7.8711 9.13187 7.80274C9.15824 7.63184 9.03909 7.47364 8.8682 7.44825Z",fill:"black"})]}),ce.jsx("defs",{children:ce.jsx("clipPath",{id:"clip0_35_134",children:ce.jsx("rect",{width:"19",height:"18",fill:"white"})})})]})}function dS(e){return ce.jsxs("svg",{...e,width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsx("g",{clipPath:"url(#clip0_38_137)",children:ce.jsx("path",{d:"M1.86625 0.800537L5.5 4.42637L9.13375 0.800537L10.25 1.91679L5.5 6.66679L0.75 1.91679L1.86625 0.800537Z",fill:"currentColor"})}),ce.jsx("defs",{children:ce.jsx("clipPath",{id:"clip0_38_137",children:ce.jsx("rect",{width:"11",height:"7",fill:"white"})})})]})}function hS(e){return ce.jsxs("svg",{...e,width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsx("g",{clipPath:"url(#clip0_38_137)",children:ce.jsx("path",{d:"M9.13375 6.19946L5.5 2.57363L1.86625 6.19946L0.75 5.08321L5.5 0.333209L10.25 5.08321L9.13375 6.19946Z",fill:"currentColor"})}),ce.jsx("defs",{children:ce.jsx("clipPath",{id:"clip0_38_137",children:ce.jsx("rect",{width:"11",height:"7",fill:"white",transform:"matrix(-1 0 0 -1 11 7)"})})})]})}function pS(e){return ce.jsx("svg",{...e,width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M10.5 5L5.5 0L0.5 5L10.5 5Z",fill:"currentColor"})})}function gS(e){return ce.jsx("svg",{...e,width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M0.5 0.5L5.5 5.5L10.5 0.5H0.5Z",fill:"currentColor"})})}function Ul(e){return ce.jsx("svg",{...e,width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M6 10.6667L1.33333 6.00002L6 1.33335",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function Yl(e){return ce.jsx("svg",{...e,width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M1 1.33331L5.66667 5.99998L1 10.6666",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function rg(e){return ce.jsx("svg",{...e,width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M6.33334 10.6667L1.66667 6.00002L6.33334 1.33335M11.6667 10.6667L7 6.00002L11.6667 1.33335",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function ig(e){return ce.jsx("svg",{...e,width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M6.66668 1.33331L11.3333 5.99998L6.66668 10.6666M1.33334 1.33331L6.00001 5.99998L1.33334 10.6666",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function og(e){return ce.jsx("svg",{...e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M11.9246 3.81796L9.09596 0.989257C8.99538 0.888678 8.8323 0.888678 8.73176 0.989223L8.2461 1.47485C8.19778 1.52316 8.17065 1.58865 8.17065 1.65698C8.17065 1.72529 8.19778 1.79077 8.24606 1.83909L9.80606 3.39912H2.19401L3.754 1.83915C3.80229 1.79087 3.82941 1.72535 3.82941 1.65705C3.82941 1.58875 3.80229 1.52323 3.754 1.47495L3.26834 0.989257C3.16776 0.888712 3.00472 0.888643 2.90411 0.989257L0.0754091 3.81792C0.027128 3.8662 0 3.93172 0 4.00002C0 4.06832 0.027128 4.13384 0.0754091 4.18212L2.90414 7.01082C2.95445 7.0611 3.02038 7.08627 3.08628 7.08627C3.15217 7.08627 3.21811 7.06113 3.26841 7.01082L3.75407 6.52516C3.80235 6.47688 3.82948 6.41136 3.82948 6.34306C3.82948 6.27476 3.80235 6.20924 3.75407 6.16096L2.19404 4.60096H9.8061L8.24606 6.16096C8.19778 6.20924 8.17065 6.27476 8.17065 6.34306C8.17065 6.41136 8.19778 6.47688 8.24606 6.52516L8.73172 7.01082C8.78004 7.05914 8.84552 7.08627 8.91386 7.08627C8.98216 7.08627 9.04768 7.05914 9.09599 7.01082L11.9246 4.18216C12.0251 4.08158 12.0251 3.9185 11.9246 3.81796Z",fill:"currentColor"})})}function Jl(e){return ce.jsx("svg",{...e,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M10.999 9.67361H10.304L10.0576 9.4362C10.6075 8.7978 11.0093 8.04582 11.2344 7.23408C11.4595 6.42235 11.5023 5.57092 11.3597 4.74072C10.9462 2.29625 8.90505 0.344195 6.44155 0.0452311C5.57547 -0.0642724 4.6958 0.0256856 3.86986 0.308221C3.04392 0.590757 2.29359 1.05838 1.6763 1.67531C1.059 2.29224 0.591104 3.04213 0.308402 3.86759C0.0257007 4.69305 -0.0643101 5.5722 0.0452576 6.43777C0.344397 8.89983 2.2976 10.9398 4.7435 11.3531C5.57418 11.4956 6.42611 11.4528 7.23833 11.2278C8.05054 11.0029 8.80296 10.6012 9.44174 10.0517L9.67929 10.2979V10.9926L13.4185 14.7296C13.7793 15.0901 14.3687 15.0901 14.7295 14.7296C15.0902 14.3691 15.0902 13.78 14.7295 13.4195L10.999 9.67361ZM5.7201 9.67361C3.52935 9.67361 1.76091 7.90621 1.76091 5.71674C1.76091 3.52728 3.52935 1.75987 5.7201 1.75987C7.91085 1.75987 9.67929 3.52728 9.67929 5.71674C9.67929 7.90621 7.91085 9.67361 5.7201 9.67361Z",fill:"currentColor"})})}function ag(e){return ce.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:ce.jsxs("g",{children:[ce.jsx("path",{d:"M9.97214 5.00009L-0.0278625 5.00009L4.97214 9.14335e-05L9.97214 5.00009Z",fill:"currentColor"}),ce.jsx("path",{d:"M10.0279 8.99992L5.02786 13.9999L0.0278625 8.99992L10.0279 8.99992ZM7.43858 10.0713L2.61715 10.0713L5.02786 12.4821L7.43858 10.0713Z",fill:"currentColor"})]})})}function sg(e){return ce.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:ce.jsxs("g",{children:[ce.jsx("path",{d:"M-2.38419e-07 9H10L5 14L-2.38419e-07 9Z",fill:"currentColor"}),ce.jsx("path",{d:"M-2.38419e-07 5L5 0L10 5L-2.38419e-07 5ZM2.58929 3.92857L7.41071 3.92857L5 1.51786L2.58929 3.92857Z",fill:"currentColor"})]})})}function ug(e){return ce.jsx("svg",{...e,width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:ce.jsxs("g",{children:[ce.jsx("path",{d:"M-2.38419e-07 9H10L5 14L-2.38419e-07 9ZM2.58929 10.0714L5 12.4821L7.41071 10.0714H2.58929Z",fill:"currentColor"}),ce.jsx("path",{d:"M10 5L0 5L5 -1.19209e-07L10 5ZM7.41071 3.92857L5 1.51786L2.58929 3.92857L7.41071 3.92857Z",fill:"currentColor"})]})})}function mS(e){return ce.jsx("svg",{...e,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M0.625 13.2775V15.9375C0.625 16.1825 0.8175 16.375 1.0625 16.375H3.7225C3.83625 16.375 3.95 16.3313 4.02875 16.2438L13.5837 6.6975L10.3025 3.41625L0.75625 12.9625C0.66875 13.05 0.625 13.155 0.625 13.2775ZM16.1212 4.16C16.2024 4.07905 16.2667 3.9829 16.3106 3.87705C16.3545 3.7712 16.3771 3.65772 16.3771 3.54313C16.3771 3.42853 16.3545 3.31506 16.3106 3.20921C16.2667 3.10335 16.2024 3.0072 16.1212 2.92625L14.0738 0.878752C13.9928 0.797637 13.8966 0.733283 13.7908 0.689374C13.6849 0.645465 13.5715 0.622864 13.4569 0.622864C13.3423 0.622864 13.2288 0.645465 13.123 0.689374C13.0171 0.733283 12.9209 0.797637 12.84 0.878752L11.2388 2.48L14.52 5.76125L16.1212 4.16V4.16Z",fill:"currentColor"})})}function vS(e){return ce.jsxs("svg",{...e,className:"w-4 h-4",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsxs("g",{clipPath:"url(#clip0_7015_29301)",children:[ce.jsx("path",{d:"M15.375 6.7C14.775 3.175 11.7 0.5 8 0.5C4.3 0.5 1.225 3.175 0.625 6.7L8 3L15.375 6.7ZM0.625 9.3C1.225 12.825 4.3 15.5 8 15.5C11.7 15.5 14.775 12.825 15.375 9.3L8 13L0.625 9.3Z",fill:"#699635"}),ce.jsx("path",{d:"M8 3L0.625 6.7C0.55 7.125 0.5 7.55 0.5 8C0.5 8.45 0.55 8.875 0.625 9.3L8 13L15.375 9.3C15.45 8.875 15.5 8.45 15.5 8C15.5 7.55 15.45 7.125 15.375 6.7L8 3Z",fill:"#FFE62E"}),ce.jsx("path",{d:"M6.5 7.10001C5.7 7.10001 4.95 7.27501 4.275 7.57501C4.25 7.72501 4.25 7.85001 4.25 8.00001C4.25 10.075 5.925 11.75 8 11.75C9.4 11.75 10.625 10.975 11.275 9.85001C10.35 8.22501 8.55 7.10001 6.5 7.10001Z",fill:"#428BC1"}),ce.jsx("path",{d:"M11.7 8.6C11.725 8.4 11.75 8.2 11.75 8C11.75 5.925 10.075 4.25 8 4.25C6.525 4.25 5.25 5.1 4.625 6.35C5.225 6.175 5.85 6.075 6.5 6.075C8.625 6.075 10.5 7.075 11.7 8.6Z",fill:"#428BC1"}),ce.jsx("path",{d:"M6.4999 6.075C5.8499 6.075 5.2249 6.175 4.6249 6.35C4.4499 6.725 4.3249 7.125 4.2749 7.575C4.9499 7.275 5.6999 7.1 6.4999 7.1C8.5499 7.1 10.3499 8.2 11.2749 9.825C11.4999 9.45 11.6249 9.025 11.6999 8.6C10.4999 7.075 8.6249 6.075 6.4999 6.075Z",fill:"white"}),ce.jsx("path",{d:"M5.5 8.25C5.63807 8.25 5.75 8.13807 5.75 8C5.75 7.86193 5.63807 7.75 5.5 7.75C5.36193 7.75 5.25 7.86193 5.25 8C5.25 8.13807 5.36193 8.25 5.5 8.25Z",fill:"white"}),ce.jsx("path",{d:"M6.5 9.75C6.63807 9.75 6.75 9.63807 6.75 9.5C6.75 9.36193 6.63807 9.25 6.5 9.25C6.36193 9.25 6.25 9.36193 6.25 9.5C6.25 9.63807 6.36193 9.75 6.5 9.75Z",fill:"white"}),ce.jsx("path",{d:"M8 9.75C8.13807 9.75 8.25 9.63807 8.25 9.5C8.25 9.36193 8.13807 9.25 8 9.25C7.86193 9.25 7.75 9.36193 7.75 9.5C7.75 9.63807 7.86193 9.75 8 9.75Z",fill:"white"}),ce.jsx("path",{d:"M8 10.75C8.13807 10.75 8.25 10.6381 8.25 10.5C8.25 10.3619 8.13807 10.25 8 10.25C7.86193 10.25 7.75 10.3619 7.75 10.5C7.75 10.6381 7.86193 10.75 8 10.75Z",fill:"white"}),ce.jsx("path",{d:"M10 9.75C10.1381 9.75 10.25 9.63807 10.25 9.5C10.25 9.36193 10.1381 9.25 10 9.25C9.86193 9.25 9.75 9.36193 9.75 9.5C9.75 9.63807 9.86193 9.75 10 9.75Z",fill:"white"}),ce.jsx("path",{d:"M10 10.75C10.1381 10.75 10.25 10.6381 10.25 10.5C10.25 10.3619 10.1381 10.25 10 10.25C9.86193 10.25 9.75 10.3619 9.75 10.5C9.75 10.6381 9.86193 10.75 10 10.75Z",fill:"white"}),ce.jsx("path",{d:"M9 10.25C9.13807 10.25 9.25 10.1381 9.25 10C9.25 9.86193 9.13807 9.75 9 9.75C8.86193 9.75 8.75 9.86193 8.75 10C8.75 10.1381 8.86193 10.25 9 10.25Z",fill:"white"}),ce.jsx("path",{d:"M5.5 9.25C5.63807 9.25 5.75 9.13807 5.75 9C5.75 8.86193 5.63807 8.75 5.5 8.75C5.36193 8.75 5.25 8.86193 5.25 9C5.25 9.13807 5.36193 9.25 5.5 9.25Z",fill:"white"})]}),ce.jsx("defs",{children:ce.jsx("clipPath",{id:"clip0_7015_29301",children:ce.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function bS(e){return ce.jsxs("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ce.jsxs("g",{clipPath:"url(#clip0_496_231)",children:[ce.jsx("path",{d:"M12 1.65C10.825 0.925 9.475 0.5 8 0.5V1.65H12Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M8 2.80002H13.4C12.975 2.37502 12.5 1.97502 12 1.65002H8V2.80002Z",fill:"white"}),ce.jsx("path",{d:"M8 3.95005H14.325C14.05 3.52505 13.75 3.15005 13.425 2.80005H8V3.95005Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M8 5.09995H14.925C14.75 4.69995 14.55 4.29995 14.325 3.94995H8V5.09995Z",fill:"white"}),ce.jsx("path",{d:"M8 6.24998H15.3C15.2 5.84998 15.075 5.47498 14.925 5.09998H8V6.24998Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M8 7.42502H15.475C15.45 7.02502 15.375 6.65002 15.3 6.27502H8V7.42502Z",fill:"white"}),ce.jsx("path",{d:"M15.475 7.42505H8V8.00005H0.5C0.5 8.20005 0.5 8.37505 0.525 8.57505H15.475C15.5 8.37505 15.5 8.20005 15.5 8.00005C15.5 7.80005 15.5 7.60005 15.475 7.42505Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M0.700024 9.72495H15.3C15.4 9.34995 15.45 8.97495 15.475 8.57495H0.525024C0.550024 8.94995 0.600024 9.34995 0.700024 9.72495Z",fill:"white"}),ce.jsx("path",{d:"M1.07501 10.875H14.925C15.075 10.5 15.2 10.125 15.3 9.72498H0.700012C0.800012 10.125 0.925012 10.5 1.07501 10.875Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M1.67501 12.025H14.325C14.55 11.65 14.75 11.275 14.925 10.875H1.07501C1.25001 11.275 1.45001 11.65 1.67501 12.025Z",fill:"white"}),ce.jsx("path",{d:"M2.57499 13.175H13.425C13.75 12.825 14.075 12.425 14.325 12.025H1.67499C1.92499 12.45 2.24999 12.825 2.57499 13.175Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M3.97501 14.325H12.025C12.55 14 13 13.6 13.425 13.175H2.57501C3.00001 13.625 3.47501 14 3.97501 14.325Z",fill:"white"}),ce.jsx("path",{d:"M7.99998 15.5C9.47498 15.5 10.85 15.075 12.025 14.325H3.97498C5.14998 15.075 6.52498 15.5 7.99998 15.5Z",fill:"#ED4C5C"}),ce.jsx("path",{d:"M4 1.65C3.475 1.975 3 2.375 2.575 2.8C2.225 3.15 1.925 3.55 1.675 3.95C1.45 4.325 1.225 4.7 1.075 5.1C0.925 5.475 0.8 5.85 0.7 6.25C0.6 6.625 0.55 7 0.525 7.4C0.5 7.6 0.5 7.8 0.5 8H8V0.5C6.525 0.5 5.175 0.925 4 1.65Z",fill:"#428BC1"}),ce.jsx("path",{d:"M6.24998 0.75L6.37498 1.125H6.74998L6.44998 1.375L6.54998 1.75L6.24998 1.525L5.94998 1.75L6.04998 1.375L5.74998 1.125H6.12498L6.24998 0.75ZM7.24998 2.25L7.37498 2.625H7.74998L7.44998 2.875L7.54998 3.25L7.24998 3.025L6.94998 3.25L7.04998 2.875L6.74998 2.625H7.12498L7.24998 2.25ZM5.24998 2.25L5.37498 2.625H5.74998L5.44998 2.875L5.54998 3.25L5.24998 3.025L4.94998 3.25L5.04998 2.875L4.74998 2.625H5.12498L5.24998 2.25ZM6.24998 3.75L6.37498 4.125H6.74998L6.44998 4.375L6.54998 4.75L6.24998 4.525L5.94998 4.75L6.04998 4.375L5.74998 4.125H6.12498L6.24998 3.75ZM4.24998 3.75L4.37498 4.125H4.74998L4.44998 4.375L4.54998 4.75L4.24998 4.525L3.94998 4.75L4.04998 4.375L3.74998 4.125H4.12498L4.24998 3.75ZM2.24998 3.75L2.37498 4.125H2.74998L2.44998 4.375L2.54998 4.75L2.24998 4.525L1.94998 4.75L2.04998 4.375L1.74998 4.125H2.12498L2.24998 3.75ZM7.24998 5.25L7.37498 5.625H7.74998L7.44998 5.875L7.54998 6.25L7.24998 6.025L6.94998 6.25L7.04998 5.875L6.74998 5.625H7.12498L7.24998 5.25ZM5.24998 5.25L5.37498 5.625H5.74998L5.44998 5.875L5.54998 6.25L5.24998 6.025L4.94998 6.25L5.04998 5.875L4.74998 5.625H5.12498L5.24998 5.25ZM3.24998 5.25L3.37498 5.625H3.74998L3.44998 5.875L3.54998 6.25L3.24998 6.025L2.94998 6.25L3.04998 5.875L2.74998 5.625H3.12498L3.24998 5.25ZM6.24998 6.75L6.37498 7.125H6.74998L6.44998 7.375L6.54998 7.75L6.24998 7.525L5.94998 7.75L6.04998 7.375L5.74998 7.125H6.12498L6.24998 6.75ZM4.24998 6.75L4.37498 7.125H4.74998L4.44998 7.375L4.54998 7.75L4.24998 7.525L3.94998 7.75L4.04998 7.375L3.74998 7.125H4.12498L4.24998 6.75ZM2.24998 6.75L2.37498 7.125H2.74998L2.44998 7.375L2.54998 7.75L2.24998 7.525L1.94998 7.75L2.04998 7.375L1.74998 7.125H2.12498L2.24998 6.75ZM2.94998 3.25L3.24998 3.025L3.54998 3.25L3.42498 2.875L3.72498 2.625H3.34998L3.24998 2.25L3.12498 2.625H2.77498L3.07498 2.85L2.94998 3.25ZM0.949976 6.25L1.24998 6.025L1.54998 6.25L1.42498 5.875L1.72498 5.625H1.37498L1.24998 5.25L1.12498 5.625H0.874976C0.874976 5.65 0.849976 5.675 0.849976 5.7L1.04998 5.85L0.949976 6.25Z",fill:"white"})]}),ce.jsx("defs",{children:ce.jsx("clipPath",{id:"clip0_496_231",children:ce.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function yS(e){return ce.jsx("svg",{...e,width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ce.jsx("path",{d:"M16.125 5.36665C15.8451 3.94808 15.0813 2.6707 13.9642 1.75268C12.8471 0.834674 11.4459 0.332986 10 0.333313C7.59167 0.333313 5.5 1.69998 4.45833 3.69998C3.23353 3.83234 2.10084 4.41265 1.27791 5.32941C0.454976 6.24617 -0.000143085 7.43471 3.3744e-08 8.66665C3.3744e-08 11.425 2.24167 13.6666 5 13.6666H15.8333C18.1333 13.6666 20 11.8 20 9.49998C20 7.29998 18.2917 5.51665 16.125 5.36665ZM11.6667 7.83331V11.1666H8.33333V7.83331H5.83333L10 3.66665L14.1667 7.83331H11.6667Z",fill:"currentColor"})})}var lg={exports:{}};/*!
|
|
54
54
|
Copyright (c) 2018 Jed Watson.
|
|
55
55
|
Licensed under the MIT License (MIT), see
|
|
56
56
|
http://jedwatson.github.io/classnames
|
|
57
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(a=i(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var l in a)t.call(a,l)&&a[l]&&(u=i(u,l));return u}function i(a,u){return u?a?a+" "+u:a+u:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Uh);var q2=Uh.exports;const et=Nl(q2);function Yh({size:e="md",...t}){return F.jsx("div",{className:`${et("bg-brand-primary rounded-full flex items-center justify-center",{"h-8 w-8":e==="sm","h-12 w-12":e==="md","h-16 w-16":e==="lg"})}`,...t,children:F.jsx($2,{className:et("text-brand-background",{"h-4 w-4":e==="sm","h-6 w-6":e==="md","h-8 w-8":e==="lg"})})})}const Jh=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ds=b.createContext({}),ps=b.createContext(null),hs=typeof document<"u",kl=hs?b.useLayoutEffect:b.useEffect,Kh=b.createContext({strict:!1}),jl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),qh="data-"+jl("framerAppearId");function Q2(e,t,n,r){const{visualElement:i}=b.useContext(ds),a=b.useContext(Kh),u=b.useContext(ps),l=b.useContext(Jh).reducedMotion,c=b.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l}));const f=c.current;b.useInsertionEffect(()=>{f&&f.update(n,u)});const p=b.useRef(!!(n[qh]&&!window.HandoffComplete));return kl(()=>{f&&(f.render(),p.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(f.updateFeatures(),!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),f}function Gi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eS(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gi(n)&&(n.current=r))},[t])}function qo(e){return typeof e=="string"||Array.isArray(e)}function gs(e){return typeof e=="object"&&typeof e.start=="function"}const Gl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hl=["initial",...Gl];function ms(e){return gs(e.animate)||Hl.some(t=>qo(e[t]))}function Qh(e){return!!(ms(e)||e.variants)}function tS(e,t){if(ms(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qo(n)?n:void 0,animate:qo(r)?r:void 0}}return e.inherit!==!1?t:{}}function nS(e){const{initial:t,animate:n}=tS(e,b.useContext(ds));return b.useMemo(()=>({initial:t,animate:n}),[eg(t),eg(n)])}function eg(e){return Array.isArray(e)?e.join(" "):e}const tg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qo={};for(const e in tg)Qo[e]={isEnabled:t=>tg[e].some(n=>!!t[n])};function rS(e){for(const t in e)Qo[t]={...Qo[t],...e[t]}}const Wl=b.createContext({}),ng=b.createContext({}),iS=Symbol.for("motionComponentSymbol");function oS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&rS(e);function a(l,c){let f;const p={...b.useContext(Jh),...l,layoutId:aS(l)},{isStatic:h}=p,m=nS(l),v=r(l,h);if(!h&&hs){m.visualElement=Q2(i,v,p,t);const S=b.useContext(ng),C=b.useContext(Kh).strict;m.visualElement&&(f=m.visualElement.loadFeatures(p,C,e,S))}return re.createElement(ds.Provider,{value:m},f&&m.visualElement?re.createElement(f,{visualElement:m.visualElement,...p}):null,n(i,l,eS(v,m.visualElement,c),v,h,m.visualElement))}const u=b.forwardRef(a);return u[iS]=i,u}function aS({layoutId:e}){const t=b.useContext(Wl).id;return t&&e!==void 0?t+"-"+e:e}function sS(e){function t(r,i={}){return oS(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const uS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Zl(e){return typeof e!="string"||e.includes("-")?!1:!!(uS.indexOf(e)>-1||/[A-Z]/.test(e))}const vs={};function lS(e){Object.assign(vs,e)}const ea=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qr=new Set(ea);function rg(e,{layout:t,layoutId:n}){return Qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vs[e]||e==="opacity")}const tn=e=>!!(e&&e.getVelocity),cS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fS=ea.length;function dS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let u=0;u<fS;u++){const l=ea[u];if(e[l]!==void 0){const c=cS[l]||l;a+=`${c}(${e[l]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const ig=e=>t=>typeof t=="string"&&t.startsWith(e),og=ig("--"),Xl=ig("var(--"),pS=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,hS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Or=(e,t,n)=>Math.min(Math.max(n,e),t),ei={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ta={...ei,transform:e=>Or(0,1,e)},bs={...ei,default:1},na=e=>Math.round(e*1e5)/1e5,ys=/(-)?([\d]*\.?[\d])+/g,ag=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ra(e){return typeof e=="string"}const ia=e=>({test:t=>ra(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fr=ia("deg"),Xn=ia("%"),$e=ia("px"),mS=ia("vh"),vS=ia("vw"),sg={...Xn,parse:e=>Xn.parse(e)/100,transform:e=>Xn.transform(e*100)},ug={...ei,transform:Math.round},lg={borderWidth:$e,borderTopWidth:$e,borderRightWidth:$e,borderBottomWidth:$e,borderLeftWidth:$e,borderRadius:$e,radius:$e,borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomRightRadius:$e,borderBottomLeftRadius:$e,width:$e,maxWidth:$e,height:$e,maxHeight:$e,size:$e,top:$e,right:$e,bottom:$e,left:$e,padding:$e,paddingTop:$e,paddingRight:$e,paddingBottom:$e,paddingLeft:$e,margin:$e,marginTop:$e,marginRight:$e,marginBottom:$e,marginLeft:$e,rotate:Fr,rotateX:Fr,rotateY:Fr,rotateZ:Fr,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:Fr,skewX:Fr,skewY:Fr,distance:$e,translateX:$e,translateY:$e,translateZ:$e,x:$e,y:$e,z:$e,perspective:$e,transformPerspective:$e,opacity:ta,originX:sg,originY:sg,originZ:$e,zIndex:ug,fillOpacity:ta,strokeOpacity:ta,numOctaves:ug};function zl(e,t,n,r){const{style:i,vars:a,transform:u,transformOrigin:l}=e;let c=!1,f=!1,p=!0;for(const h in t){const m=t[h];if(og(h)){a[h]=m;continue}const v=lg[h],S=hS(m,v);if(Qr.has(h)){if(c=!0,u[h]=S,!p)continue;m!==(v.default||0)&&(p=!1)}else h.startsWith("origin")?(f=!0,l[h]=S):i[h]=S}if(t.transform||(c||r?i.transform=dS(e.transform,n,p,r):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:v=0}=l;i.transformOrigin=`${h} ${m} ${v}`}}const Ul=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cg(e,t,n){for(const r in t)!tn(t[r])&&!rg(r,n)&&(e[r]=t[r])}function bS({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Ul();return zl(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function yS(e,t,n){const r=e.style||{},i={};return cg(i,r,e),Object.assign(i,bS(e,t,n)),e.transformValues?e.transformValues(i):i}function xS(e,t,n){const r={},i=yS(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const CS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function xs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||CS.has(e)}let fg=e=>!xs(e);function wS(e){e&&(fg=t=>t.startsWith("on")?!xs(t):e(t))}try{wS(require("@emotion/is-prop-valid").default)}catch{}function SS(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(fg(i)||n===!0&&xs(i)||!t&&!xs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dg(e,t,n){return typeof e=="string"?e:$e.transform(t+n*e)}function IS(e,t,n){const r=dg(t,e.x,e.width),i=dg(n,e.y,e.height);return`${r} ${i}`}const ES={offset:"stroke-dashoffset",array:"stroke-dasharray"},AS={offset:"strokeDashoffset",array:"strokeDasharray"};function _S(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?ES:AS;e[a.offset]=$e.transform(-r);const u=$e.transform(t),l=$e.transform(n);e[a.array]=`${u} ${l}`}function Yl(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:u,pathSpacing:l=1,pathOffset:c=0,...f},p,h,m){if(zl(e,f,p,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:S,dimensions:C}=e;v.transform&&(C&&(S.transform=v.transform),delete v.transform),C&&(i!==void 0||a!==void 0||S.transform)&&(S.transformOrigin=IS(C,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),u!==void 0&&_S(v,u,l,c,!1)}const pg=()=>({...Ul(),attrs:{}}),Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PS(e,t,n,r){const i=b.useMemo(()=>{const a=pg();return Yl(a,t,{enableHardwareAcceleration:!1},Jl(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};cg(a,e.style,e),i.style={...a,...i.style}}return i}function TS(e=!1){return(n,r,i,{latestValues:a},u)=>{const c=(Zl(n)?PS:xS)(r,a,u,n),p={...SS(r,typeof n=="string",e),...c,ref:i},{children:h}=r,m=b.useMemo(()=>tn(h)?h.get():h,[h]);return b.createElement(n,{...p,children:m})}}function hg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mg(e,t,n,r){hg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gg.has(i)?i:jl(i),t.attrs[i])}function Kl(e,t){const{style:n}=e,r={};for(const i in n)(tn(n[i])||t.style&&tn(t.style[i])||rg(i,e))&&(r[i]=n[i]);return r}function vg(e,t){const n=Kl(e,t);for(const r in e)if(tn(e[r])||tn(t[r])){const i=ea.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function ql(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function bg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Cs=e=>Array.isArray(e),OS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FS=e=>Cs(e)?e[e.length-1]||0:e;function ws(e){const t=tn(e)?e.get():e;return OS(t)?t.toValue():t}function RS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const u={latestValues:MS(r,i,a,e),renderState:t()};return n&&(u.mount=l=>n(r,l,u)),u}const yg=e=>(t,n)=>{const r=b.useContext(ds),i=b.useContext(ps),a=()=>RS(e,t,r,i);return n?a():bg(a)};function MS(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ws(a[m]);let{initial:u,animate:l}=e;const c=ms(e),f=Qh(e);t&&f&&!c&&e.inherit!==!1&&(u===void 0&&(u=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||u===!1;const h=p?l:u;return h&&typeof h!="boolean"&&!gs(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const S=ql(e,v);if(!S)return;const{transitionEnd:C,transition:E,...P}=S;for(const M in P){let $=P[M];if(Array.isArray($)){const B=p?$.length-1:0;$=$[B]}$!==null&&(i[M]=$)}for(const M in C)i[M]=C[M]}),i}const Pt=e=>e;class xg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function LS(e){let t=new xg,n=new xg,r=0,i=!1,a=!1;const u=new WeakSet,l={schedule:(c,f=!1,p=!1)=>{const h=p&&i,m=h?t:n;return f&&u.add(c),m.add(c)&&h&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),u.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f<r;f++){const p=t.order[f];p(c),u.has(p)&&(l.schedule(p),e())}i=!1,a&&(a=!1,l.process(c))}};return l}const Ss=["prepare","read","update","preRender","render","postRender"],$S=40;function DS(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Ss.reduce((h,m)=>(h[m]=LS(()=>n=!0),h),{}),u=h=>a[h].process(i),l=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,$S),1),i.timestamp=h,i.isProcessing=!0,Ss.forEach(u),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ss.reduce((h,m)=>{const v=a[m];return h[m]=(S,C=!1,E=!1)=>(n||c(),v.schedule(S,C,E)),h},{}),cancel:h=>Ss.forEach(m=>a[m].cancel(h)),state:i,steps:a}}const{schedule:mt,cancel:ir,state:Zt,steps:Ql}=DS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pt,!0),NS={useVisualState:yg({scrapeMotionValuesFromProps:vg,createRenderState:pg,onMount:(e,t,{renderState:n,latestValues:r})=>{mt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),mt.render(()=>{Yl(n,r,{enableHardwareAcceleration:!1},Jl(t.tagName),e.transformTemplate),mg(t,n)})}})},VS={useVisualState:yg({scrapeMotionValuesFromProps:Kl,createRenderState:Ul})};function BS(e,{forwardMotionProps:t=!1},n,r){return{...Zl(e)?NS:VS,preloadedFeatures:n,useRender:TS(t),createVisualElement:r,Component:e}}function or(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Cg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Is(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const kS=e=>t=>Cg(t)&&e(t,Is(t));function ar(e,t,n,r){return or(e,t,kS(n),r)}const jS=(e,t)=>n=>t(e(n)),Rr=(...e)=>e.reduce(jS);function wg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Sg=wg("dragHorizontal"),Ig=wg("dragVertical");function Eg(e){let t=!1;if(e==="y")t=Ig();else if(e==="x")t=Sg();else{const n=Sg(),r=Ig();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Ag(){const e=Eg(!0);return e?(e(),!1):!0}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _g(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,u)=>{if(a.type==="touch"||Ag())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&mt.update(()=>l[r](a,u))};return ar(e.current,n,i,{passive:!e.getProps()[r]})}class GS extends Mr{mount(){this.unmount=Rr(_g(this.node,!0),_g(this.node,!1))}unmount(){}}class HS extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rr(or(this.node.current,"focus",()=>this.onFocus()),or(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Pg=(e,t)=>t?e===t?!0:Pg(e,t.parentElement):!1;function ec(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Is(n))}class WS extends Mr{constructor(){super(...arguments),this.removeStartListeners=Pt,this.removeEndListeners=Pt,this.removeAccessibleListeners=Pt,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=ar(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:p}=this.node.getProps();mt.update(()=>{Pg(this.node.current,l.target)?f&&f(l,c):p&&p(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),u=ar(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Rr(a,u),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const u=l=>{l.key!=="Enter"||!this.checkPressEnd()||ec("up",(c,f)=>{const{onTap:p}=this.node.getProps();p&&mt.update(()=>p(c,f))})};this.removeEndListeners(),this.removeEndListeners=or(this.node.current,"keyup",u),ec("down",(l,c)=>{this.startPress(l,c)})},n=or(this.node.current,"keydown",t),r=()=>{this.isPressing&&ec("cancel",(a,u)=>this.cancelPress(a,u))},i=or(this.node.current,"blur",r);this.removeAccessibleListeners=Rr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&mt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ag()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&mt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ar(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=or(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const tc=new WeakMap,nc=new WeakMap,ZS=e=>{const t=tc.get(e.target);t&&t(e)},XS=e=>{e.forEach(ZS)};function zS({root:e,...t}){const n=e||document;nc.has(n)||nc.set(n,{});const r=nc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XS,{root:e,...t})),r[i]}function US(e,t,n){const r=zS(t);return tc.set(e,n),r.observe(e),()=>{tc.delete(e),r.unobserve(e)}}const YS={some:0,all:1};class JS extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:YS[i]},l=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:h}=this.node.getProps(),m=f?p:h;m&&m(c)};return US(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(KS(t,n))&&this.startObserver()}unmount(){}}function KS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const qS={inView:{Feature:JS},tap:{Feature:WS},focus:{Feature:HS},hover:{Feature:GS}};function Tg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function QS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function e5(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Es(e,t,n){const r=e.getProps();return ql(r,t,n!==void 0?n:r.custom,QS(e),e5(e))}let oa=Pt,Rn=Pt;process.env.NODE_ENV!=="production"&&(oa=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Rn=(e,t)=>{if(!e)throw new Error(t)});const Lr=e=>e*1e3,sr=e=>e/1e3,t5={current:!1},Og=e=>Array.isArray(e)&&typeof e[0]=="number";function Fg(e){return!!(!e||typeof e=="string"&&Rg[e]||Og(e)||Array.isArray(e)&&e.every(Fg))}const aa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function Mg(e){if(e)return Og(e)?aa(e):Array.isArray(e)?e.map(Mg):Rg[e]}function n5(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:u="loop",ease:l,times:c}={}){const f={[t]:n};c&&(f.offset=c);const p=Mg(l);return Array.isArray(p)&&(f.easing=p),e.animate(f,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"})}function r5(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,i5=1e-7,o5=12;function a5(e,t,n,r,i){let a,u,l=0;do u=t+(n-t)/2,a=Lg(u,r,i)-e,a>0?n=u:t=u;while(Math.abs(a)>i5&&++l<o5);return u}function sa(e,t,n,r){if(e===t&&n===r)return Pt;const i=a=>a5(a,0,1,e,n);return a=>a===0||a===1?a:Lg(i(a),t,r)}const s5=sa(.42,0,1,1),u5=sa(0,0,.58,1),$g=sa(.42,0,.58,1),l5=e=>Array.isArray(e)&&typeof e[0]!="number",Dg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ng=e=>t=>1-e(1-t),rc=e=>1-Math.sin(Math.acos(e)),Vg=Ng(rc),c5=Dg(rc),Bg=sa(.33,1.53,.69,.99),ic=Ng(Bg),f5=Dg(ic),kg={linear:Pt,easeIn:s5,easeInOut:$g,easeOut:u5,circIn:rc,circInOut:c5,circOut:Vg,backIn:ic,backInOut:f5,backOut:Bg,anticipate:e=>(e*=2)<1?.5*ic(e):.5*(2-Math.pow(2,-10*(e-1)))},jg=e=>{if(Array.isArray(e)){Rn(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return sa(t,n,r,i)}else if(typeof e=="string")return Rn(kg[e]!==void 0,`Invalid easing type '${e}'`),kg[e];return e},oc=(e,t)=>n=>!!(ra(n)&&gS.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Gg=(e,t,n)=>r=>{if(!ra(r))return r;const[i,a,u,l]=r.match(ys);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},d5=e=>Or(0,255,e),ac={...ei,transform:e=>Math.round(d5(e))},ti={test:oc("rgb","red"),parse:Gg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ac.transform(e)+", "+ac.transform(t)+", "+ac.transform(n)+", "+na(ta.transform(r))+")"};function p5(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const sc={test:oc("#"),parse:p5,transform:ti.transform},Hi={test:oc("hsl","hue"),parse:Gg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xn.transform(na(t))+", "+Xn.transform(na(n))+", "+na(ta.transform(r))+")"},Kt={test:e=>ti.test(e)||sc.test(e)||Hi.test(e),parse:e=>ti.test(e)?ti.parse(e):Hi.test(e)?Hi.parse(e):sc.parse(e),transform:e=>ra(e)?e:e.hasOwnProperty("red")?ti.transform(e):Hi.transform(e)},At=(e,t,n)=>-n*e+n*t+e;function uc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function h5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,u=0;if(!t)i=a=u=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=uc(c,l,e+1/3),a=uc(c,l,e),u=uc(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:r}}const lc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},g5=[sc,ti,Hi],m5=e=>g5.find(t=>t.test(e));function Hg(e){const t=m5(e);Rn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Hi&&(n=h5(n)),n}const Wg=(e,t)=>{const n=Hg(e),r=Hg(t),i={...n};return a=>(i.red=lc(n.red,r.red,a),i.green=lc(n.green,r.green,a),i.blue=lc(n.blue,r.blue,a),i.alpha=At(n.alpha,r.alpha,a),ti.transform(i))};function v5(e){var t,n;return isNaN(e)&&ra(e)&&(((t=e.match(ys))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ag))===null||n===void 0?void 0:n.length)||0)>0}const Zg={regex:pS,countKey:"Vars",token:"${v}",parse:Pt},Xg={regex:ag,countKey:"Colors",token:"${c}",parse:Kt.parse},zg={regex:ys,countKey:"Numbers",token:"${n}",parse:ei.parse};function cc(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function As(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&cc(n,Zg),cc(n,Xg),cc(n,zg),n}function Ug(e){return As(e).values}function Yg(e){const{values:t,numColors:n,numVars:r,tokenised:i}=As(e),a=t.length;return u=>{let l=i;for(let c=0;c<a;c++)c<r?l=l.replace(Zg.token,u[c]):c<r+n?l=l.replace(Xg.token,Kt.transform(u[c])):l=l.replace(zg.token,na(u[c]));return l}}const b5=e=>typeof e=="number"?0:e;function y5(e){const t=Ug(e);return Yg(e)(t.map(b5))}const $r={test:v5,parse:Ug,createTransformer:Yg,getAnimatableNone:y5},Jg=(e,t)=>n=>`${n>0?t:e}`;function Kg(e,t){return typeof e=="number"?n=>At(e,t,n):Kt.test(e)?Wg(e,t):e.startsWith("var(")?Jg(e,t):Qg(e,t)}const qg=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,u)=>Kg(a,t[u]));return a=>{for(let u=0;u<r;u++)n[u]=i[u](a);return n}},x5=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Kg(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},Qg=(e,t)=>{const n=$r.createTransformer(t),r=As(e),i=As(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Rr(qg(r.values,i.values),n):(oa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Jg(e,t))},ua=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},e0=(e,t)=>n=>At(e,t,n);function C5(e){return typeof e=="number"?e0:typeof e=="string"?Kt.test(e)?Wg:Qg:Array.isArray(e)?qg:typeof e=="object"?x5:e0}function w5(e,t,n){const r=[],i=n||C5(e[0]),a=e.length-1;for(let u=0;u<a;u++){let l=i(e[u],e[u+1]);if(t){const c=Array.isArray(t)?t[u]||Pt:t;l=Rr(c,l)}r.push(l)}return r}function t0(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Rn(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=w5(t,r,i),l=u.length,c=f=>{let p=0;if(l>1)for(;p<e.length-2&&!(f<e[p+1]);p++);const h=ua(e[p],e[p+1],f);return u[p](h)};return n?f=>c(Or(e[0],e[a-1],f)):c}function S5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ua(0,t,r);e.push(At(n,1,i))}}function I5(e){const t=[0];return S5(t,e.length-1),t}function E5(e,t){return e.map(n=>n*t)}function A5(e,t){return e.map(()=>t||$g).splice(0,e.length-1)}function _s({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=l5(r)?r.map(jg):jg(r),a={done:!1,value:t[0]},u=E5(n&&n.length===t.length?n:I5(t),e),l=t0(u,t,{ease:Array.isArray(i)?i:A5(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}function n0(e,t){return t?e*(1e3/t):0}const _5=5;function r0(e,t,n){const r=Math.max(t-_5,0);return n0(n-e(r),t-r)}const fc=.001,P5=.01,i0=10,T5=.05,O5=1;function F5({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;oa(e<=Lr(i0),"Spring duration must be 10 seconds or less");let u=1-t;u=Or(T5,O5,u),e=Or(P5,i0,sr(e)),u<1?(i=f=>{const p=f*u,h=p*e,m=p-n,v=dc(f,u),S=Math.exp(-h);return fc-m/v*S},a=f=>{const h=f*u*e,m=h*n+n,v=Math.pow(u,2)*Math.pow(f,2)*e,S=Math.exp(-h),C=dc(Math.pow(f,2),u);return(-i(f)+fc>0?-1:1)*((m-v)*S)/C}):(i=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-fc+p*h},a=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const l=5/e,c=M5(i,a,l);if(e=Lr(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:u*2*Math.sqrt(r*f),duration:e}}}const R5=12;function M5(e,t,n){let r=n;for(let i=1;i<R5;i++)r=r-e(r)/t(r);return r}function dc(e,t){return e*Math.sqrt(1-t*t)}const L5=["duration","bounce"],$5=["stiffness","damping","mass"];function o0(e,t){return t.some(n=>e[n]!==void 0)}function D5(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!o0(e,$5)&&o0(e,L5)){const n=F5(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function a0({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],u={done:!1,value:i},{stiffness:l,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=D5(r),v=p?-sr(p):0,S=c/(2*Math.sqrt(l*f)),C=a-i,E=sr(Math.sqrt(l/f)),P=Math.abs(C)<5;n||(n=P?.01:2),t||(t=P?.005:.5);let M;if(S<1){const $=dc(E,S);M=B=>{const N=Math.exp(-S*E*B);return a-N*((v+S*E*C)/$*Math.sin($*B)+C*Math.cos($*B))}}else if(S===1)M=$=>a-Math.exp(-E*$)*(C+(v+E*C)*$);else{const $=E*Math.sqrt(S*S-1);M=B=>{const N=Math.exp(-S*E*B),U=Math.min($*B,300);return a-N*((v+S*E*C)*Math.sinh(U)+$*C*Math.cosh(U))/$}}return{calculatedDuration:m&&h||null,next:$=>{const B=M($);if(m)u.done=$>=h;else{let N=v;$!==0&&(S<1?N=r0(M,$,B):N=0);const U=Math.abs(N)<=n,X=Math.abs(a-B)<=t;u.done=U&&X}return u.value=u.done?a:B,u}}}function s0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:u,min:l,max:c,restDelta:f=.5,restSpeed:p}){const h=e[0],m={done:!1,value:h},v=ee=>l!==void 0&&ee<l||c!==void 0&&ee>c,S=ee=>l===void 0?c:c===void 0||Math.abs(l-ee)<Math.abs(c-ee)?l:c;let C=n*t;const E=h+C,P=u===void 0?E:u(E);P!==E&&(C=P-h);const M=ee=>-C*Math.exp(-ee/r),$=ee=>P+M(ee),B=ee=>{const fe=M(ee),Oe=$(ee);m.done=Math.abs(fe)<=f,m.value=m.done?P:Oe};let N,U;const X=ee=>{v(m.value)&&(N=ee,U=a0({keyframes:[m.value,S(m.value)],velocity:r0($,ee,m.value),damping:i,stiffness:a,restDelta:f,restSpeed:p}))};return X(0),{calculatedDuration:null,next:ee=>{let fe=!1;return!U&&N===void 0&&(fe=!0,B(ee),X(ee)),N!==void 0&&ee>N?U.next(ee-N):(!fe&&B(ee),m)}}}const N5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mt.update(t,!0),stop:()=>ir(t),now:()=>Zt.isProcessing?Zt.timestamp:performance.now()}},u0=2e4;function l0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<u0;)t+=n,r=e.next(t);return t>=u0?1/0:t}const V5={decay:s0,inertia:s0,tween:_s,keyframes:_s,spring:a0};function Ps({autoplay:e=!0,delay:t=0,driver:n=N5,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:l="loop",onPlay:c,onStop:f,onComplete:p,onUpdate:h,...m}){let v=1,S=!1,C,E;const P=()=>{E=new Promise(R=>{C=R})};P();let M;const $=V5[i]||_s;let B;$!==_s&&typeof r[0]!="number"&&(B=t0([0,100],r,{clamp:!1}),r=[0,100]);const N=$({...m,keyframes:r});let U;l==="mirror"&&(U=$({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let X="idle",ee=null,fe=null,Oe=null;N.calculatedDuration===null&&a&&(N.calculatedDuration=l0(N));const{calculatedDuration:ze}=N;let He=1/0,he=1/0;ze!==null&&(He=ze+u,he=He*(a+1)-u);let Ce=0;const be=R=>{if(fe===null)return;v>0&&(fe=Math.min(fe,R)),v<0&&(fe=Math.min(R-he/v,fe)),ee!==null?Ce=ee:Ce=Math.round(R-fe)*v;const O=Ce-t*(v>=0?1:-1),y=v>=0?O<0:O>he;Ce=Math.max(O,0),X==="finished"&&ee===null&&(Ce=he);let H=Ce,te=N;if(a){const G=Ce/He;let q=Math.floor(G),se=G%1;!se&&G>=1&&(se=1),se===1&&q--,q=Math.min(q,a+1);const J=!!(q%2);J&&(l==="reverse"?(se=1-se,u&&(se-=u/He)):l==="mirror"&&(te=U));let ue=Or(0,1,se);Ce>he&&(ue=l==="reverse"&&J?1:0),H=ue*He}const oe=y?{done:!1,value:r[0]}:te.next(H);B&&(oe.value=B(oe.value));let{done:z}=oe;!y&&ze!==null&&(z=v>=0?Ce>=he:Ce<=0);const Y=ee===null&&(X==="finished"||X==="running"&&z);return h&&h(oe.value),Y&&Ye(),oe},_e=()=>{M&&M.stop(),M=void 0},De=()=>{X="idle",_e(),C(),P(),fe=Oe=null},Ye=()=>{X="finished",p&&p(),_e(),C()},T=()=>{if(S)return;M||(M=n(be));const R=M.now();c&&c(),ee!==null?fe=R-ee:(!fe||X==="finished")&&(fe=R),X==="finished"&&P(),Oe=fe,ee=null,X="running",M.start()};e&&T();const _={then(R,O){return E.then(R,O)},get time(){return sr(Ce)},set time(R){R=Lr(R),Ce=R,ee!==null||!M||v===0?ee=R:fe=M.now()-R/v},get duration(){const R=N.calculatedDuration===null?l0(N):N.calculatedDuration;return sr(R)},get speed(){return v},set speed(R){R===v||!M||(v=R,_.time=sr(Ce))},get state(){return X},play:T,pause:()=>{X="paused",ee=Ce},stop:()=>{S=!0,X!=="idle"&&(X="idle",f&&f(),De())},cancel:()=>{Oe!==null&&be(Oe),De()},complete:()=>{X="finished"},sample:R=>(fe=0,be(R))};return _}function B5(e){let t;return()=>(t===void 0&&(t=e()),t)}const k5=B5(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),j5=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ts=10,G5=2e4,H5=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Fg(t.ease);function W5(e,t,{onUpdate:n,onComplete:r,...i}){if(!(k5()&&j5.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let u=!1,l,c;const f=()=>{c=new Promise(M=>{l=M})};f();let{keyframes:p,duration:h=300,ease:m,times:v}=i;if(H5(t,i)){const M=Ps({...i,repeat:0,delay:0});let $={done:!1,value:p[0]};const B=[];let N=0;for(;!$.done&&N<G5;)$=M.sample(N),B.push($.value),N+=Ts;v=void 0,p=B,h=N-Ts,m="linear"}const S=n5(e.owner.current,t,p,{...i,duration:h,ease:m,times:v}),C=()=>S.cancel(),E=()=>{mt.update(C),l(),f()};return S.onfinish=()=>{e.set(r5(p,i)),r&&r(),E()},{then(M,$){return c.then(M,$)},attachTimeline(M){return S.timeline=M,S.onfinish=null,Pt},get time(){return sr(S.currentTime||0)},set time(M){S.currentTime=Lr(M)},get speed(){return S.playbackRate},set speed(M){S.playbackRate=M},get duration(){return sr(h)},play:()=>{u||(S.play(),ir(C))},pause:()=>S.pause(),stop:()=>{if(u=!0,S.playState==="idle")return;const{currentTime:M}=S;if(M){const $=Ps({...i,autoplay:!1});e.setWithVelocity($.sample(M-Ts).value,$.sample(M).value,Ts)}E()},complete:()=>S.finish(),cancel:E}}function Z5({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Pt,pause:Pt,stop:Pt,then:a=>(a(),Promise.resolve()),cancel:Pt,complete:Pt});return t?Ps({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const X5={type:"spring",stiffness:500,damping:25,restSpeed:10},z5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),U5={type:"keyframes",duration:.8},Y5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J5=(e,{keyframes:t})=>t.length>2?U5:Qr.has(e)?e.startsWith("scale")?z5(t[1]):X5:Y5,pc=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($r.test(t)||t==="0")&&!t.startsWith("url(")),K5=new Set(["brightness","contrast","saturate","opacity"]);function q5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ys)||[];if(!r)return e;const i=n.replace(r,"");let a=K5.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Q5=/([a-z-]*)\(.*?\)/g,hc={...$r,getAnimatableNone:e=>{const t=e.match(Q5);return t?t.map(q5).join(" "):e}},eI={...lg,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:hc,WebkitFilter:hc},gc=e=>eI[e];function c0(e,t){let n=gc(e);return n!==hc&&(n=$r),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const f0=e=>/^0[^.\s]+$/.test(e);function tI(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||f0(e)}function nI(e,t,n,r){const i=pc(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const u=r.from!==void 0?r.from:e.get();let l;const c=[];for(let f=0;f<a.length;f++)a[f]===null&&(a[f]=f===0?u:a[f-1]),tI(a[f])&&c.push(f),typeof a[f]=="string"&&a[f]!=="none"&&a[f]!=="0"&&(l=a[f]);if(i&&c.length&&l)for(let f=0;f<c.length;f++){const p=c[f];a[p]=c0(t,l)}return a}function rI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:u,repeatDelay:l,from:c,elapsed:f,...p}){return!!Object.keys(p).length}function mc(e,t){return e[t]||e.default||e}const vc=(e,t,n,r={})=>i=>{const a=mc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Lr(u);const c=nI(t,e,n,a),f=c[0],p=c[c.length-1],h=pc(e,f),m=pc(e,p);oa(h===m,`You are trying to animate ${e} from "${f}" to "${p}". ${f} is not an animatable value - to enable this animation set ${f} to a value animatable to ${p} via the \`style\` property.`);let v={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-l,onUpdate:S=>{t.set(S),a.onUpdate&&a.onUpdate(S)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(rI(a)||(v={...v,...J5(e,v)}),v.duration&&(v.duration=Lr(v.duration)),v.repeatDelay&&(v.repeatDelay=Lr(v.repeatDelay)),!h||!m||t5.current||a.type===!1)return Z5(v);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const S=W5(t,e,v);if(S)return S}return Ps(v)};function Os(e){return!!(tn(e)&&e.add)}const d0=e=>/^\-?\d*\.?\d+$/.test(e);function bc(e,t){e.indexOf(t)===-1&&e.push(t)}function yc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class xc{constructor(){this.subscriptions=[]}add(t){return bc(this.subscriptions,t),()=>yc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const u=this.subscriptions[a];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const p0=new Set;function Cc(e,t,n){e||p0.has(t)||(console.warn(t),n&&console.warn(n),p0.add(t))}const iI=e=>!isNaN(parseFloat(e));class oI{constructor(t,n={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:u}=Zt;this.lastUpdated!==u&&(this.timeDelta=a,this.lastUpdated=u,mt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>mt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=iI(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Cc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new xc);const r=this.events[t].add(n);return t==="change"?()=>{r(),mt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?n0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wi(e,t){return new oI(e,t)}const h0=e=>t=>t.test(e),g0=[ei,$e,Xn,Fr,vS,mS,{test:e=>e==="auto",parse:e=>e}],la=e=>g0.find(h0(e)),aI=[...g0,Kt,$r],sI=e=>aI.find(h0(e));function uI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wi(n))}function lI(e,t){const n=Es(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const u in a){const l=FS(a[u]);uI(e,u,l)}}function cI(e,t,n){var r,i;const a=Object.keys(t).filter(l=>!e.hasValue(l)),u=a.length;if(u)for(let l=0;l<u;l++){const c=a[l],f=t[c];let p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),p!=null&&(typeof p=="string"&&(d0(p)||f0(p))?p=parseFloat(p):!sI(p)&&$r.test(f)&&(p=c0(c,f)),e.addValue(c,Wi(p,{owner:e})),n[c]===void 0&&(n[c]=p),p!==null&&e.setBaseTarget(c,p))}}function fI(e,t){return t?(t[e]||t.default||t).from:void 0}function dI(e,t,n){const r={};for(const i in e){const a=fI(i,t);if(a!==void 0)r[i]=a;else{const u=n.getValue(i);u&&(r[i]=u.get())}}return r}function pI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hI(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function m0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(a=r);const f=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const m=e.getValue(h),v=l[h];if(!m||v===void 0||p&&pI(p,h))continue;const S={delay:n,elapsed:0,...mc(a||{},h)};if(window.HandoffAppearAnimations){const P=e.getProps()[qh];if(P){const M=window.HandoffAppearAnimations(P,h,m,mt);M!==null&&(S.elapsed=M,S.isHandoff=!0)}}let C=!S.isHandoff&&!hI(m,v);if(S.type==="spring"&&(m.getVelocity()||S.velocity)&&(C=!1),m.animation&&(C=!1),C)continue;m.start(vc(h,m,v,e.shouldReduceMotion&&Qr.has(h)?{type:!1}:S));const E=m.animation;Os(c)&&(c.add(h),E.then(()=>c.remove(h))),f.push(E)}return u&&Promise.all(f).then(()=>{u&&lI(e,u)}),f}function wc(e,t,n={}){const r=Es(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(m0(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:h}=i;return gI(e,t,f+c,p,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,f]=l==="beforeChildren"?[a,u]:[u,a];return c().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function gI(e,t,n=0,r=0,i=1,a){const u=[],l=(e.variantChildren.size-1)*r,c=i===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(mI).forEach((f,p)=>{f.notify("AnimationStart",t),u.push(wc(f,t,{...a,delay:n+c(p)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(u)}function mI(e,t){return e.sortNodePosition(t)}function vI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>wc(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=wc(e,t,n);else{const i=typeof t=="function"?Es(e,t,n.custom):t;r=Promise.all(m0(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const bI=[...Gl].reverse(),yI=Gl.length;function xI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>vI(e,n,r)))}function CI(e){let t=xI(e);const n=SI();let r=!0;const i=(c,f)=>{const p=Es(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function a(c){t=c(e)}function u(c,f){const p=e.getProps(),h=e.getVariantContext(!0)||{},m=[],v=new Set;let S={},C=1/0;for(let P=0;P<yI;P++){const M=bI[P],$=n[M],B=p[M]!==void 0?p[M]:h[M],N=qo(B),U=M===f?$.isActive:null;U===!1&&(C=P);let X=B===h[M]&&B!==p[M]&&N;if(X&&r&&e.manuallyAnimateOnMount&&(X=!1),$.protectedKeys={...S},!$.isActive&&U===null||!B&&!$.prevProp||gs(B)||typeof B=="boolean")continue;const ee=wI($.prevProp,B);let fe=ee||M===f&&$.isActive&&!X&&N||P>C&&N;const Oe=Array.isArray(B)?B:[B];let ze=Oe.reduce(i,{});U===!1&&(ze={});const{prevResolvedValues:He={}}=$,he={...He,...ze},Ce=be=>{fe=!0,v.delete(be),$.needsAnimating[be]=!0};for(const be in he){const _e=ze[be],De=He[be];S.hasOwnProperty(be)||(_e!==De?Cs(_e)&&Cs(De)?!Tg(_e,De)||ee?Ce(be):$.protectedKeys[be]=!0:_e!==void 0?Ce(be):v.add(be):_e!==void 0&&v.has(be)?Ce(be):$.protectedKeys[be]=!0)}$.prevProp=B,$.prevResolvedValues=ze,$.isActive&&(S={...S,...ze}),r&&e.blockInitialAnimation&&(fe=!1),fe&&!X&&m.push(...Oe.map(be=>({animation:be,options:{type:M,...c}})))}if(v.size){const P={};v.forEach(M=>{const $=e.getBaseTarget(M);$!==void 0&&(P[M]=$)}),m.push({animation:P})}let E=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(m):Promise.resolve()}function l(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var S;return(S=v.animationState)===null||S===void 0?void 0:S.setActive(c,f)}),n[c].isActive=f;const m=u(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:u,setActive:l,setAnimateFunction:a,getState:()=>n}}function wI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tg(t,e):!1}function ni(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SI(){return{animate:ni(!0),whileInView:ni(),whileHover:ni(),whileTap:ni(),whileDrag:ni(),whileFocus:ni(),exit:ni()}}class II extends Mr{constructor(t){super(t),t.animationState||(t.animationState=CI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),gs(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let EI=0;class AI extends Mr{constructor(){super(...arguments),this.id=EI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _I={animation:{Feature:II},exit:{Feature:AI}},v0=(e,t)=>Math.abs(e-t);function PI(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class b0{constructor(t,n,{transformPagePoint:r,contextWindow:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Ic(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=PI(p.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:v}=p,{timestamp:S}=Zt;this.history.push({...v,timestamp:S});const{onStart:C,onMove:E}=this.handlers;h||(C&&C(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Sc(h,this.transformPagePoint),mt.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:m,onSessionEnd:v}=this.handlers,S=Ic(p.type==="pointercancel"?this.lastMoveEventInfo:Sc(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,S),v&&v(p,S)},!Cg(t))return;this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Is(t),u=Sc(a,this.transformPagePoint),{point:l}=u,{timestamp:c}=Zt;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Ic(u,this.history)),this.removeListeners=Rr(ar(this.contextWindow,"pointermove",this.handlePointerMove),ar(this.contextWindow,"pointerup",this.handlePointerUp),ar(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ir(this.updatePoint)}}function Sc(e,t){return t?{point:t(e.point)}:e}function y0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ic({point:e},t){return{point:e,delta:y0(e,x0(t)),offset:y0(e,TI(t)),velocity:OI(t,.1)}}function TI(e){return e[0]}function x0(e){return e[e.length-1]}function OI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=x0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Lr(t)));)n--;if(!r)return{x:0,y:0};const a=sr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const u={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function cn(e){return e.max-e.min}function Ec(e,t=0,n=.01){return Math.abs(e-t)<=n}function C0(e,t,n,r=.5){e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=cn(n)/cn(t),(Ec(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(Ec(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ca(e,t,n,r){C0(e.x,t.x,n.x,r?r.originX:void 0),C0(e.y,t.y,n.y,r?r.originY:void 0)}function w0(e,t,n){e.min=n.min+t.min,e.max=e.min+cn(t)}function FI(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function S0(e,t,n){e.min=t.min-n.min,e.max=e.min+cn(t)}function fa(e,t,n){S0(e.x,t.x,n.x),S0(e.y,t.y,n.y)}function RI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?At(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?At(n,e,r.max):Math.min(e,n)),e}function I0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function MI(e,{top:t,left:n,bottom:r,right:i}){return{x:I0(e.x,n,i),y:I0(e.y,t,r)}}function E0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function LI(e,t){return{x:E0(e.x,t.x),y:E0(e.y,t.y)}}function $I(e,t){let n=.5;const r=cn(e),i=cn(t);return i>r?n=ua(t.min,t.max-r,e.min):r>i&&(n=ua(e.min,e.max-i,t.min)),Or(0,1,n)}function DI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ac=.35;function NI(e=Ac){return e===!1?e=0:e===!0&&(e=Ac),{x:A0(e,"left","right"),y:A0(e,"top","bottom")}}function A0(e,t,n){return{min:_0(e,t),max:_0(e,n)}}function _0(e,t){return typeof e=="number"?e:e[t]||0}const P0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zi=()=>({x:P0(),y:P0()}),T0=()=>({min:0,max:0}),$t=()=>({x:T0(),y:T0()});function zn(e){return[e("x"),e("y")]}function O0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function BI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _c(e){return e===void 0||e===1}function Pc({scale:e,scaleX:t,scaleY:n}){return!_c(e)||!_c(t)||!_c(n)}function ri(e){return Pc(e)||F0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function F0(e){return R0(e.x)||R0(e.y)}function R0(e){return e&&e!=="0%"}function Fs(e,t,n){const r=e-n,i=t*r;return n+i}function M0(e,t,n,r,i){return i!==void 0&&(e=Fs(e,i,r)),Fs(e,n,r)+t}function Tc(e,t=0,n=1,r,i){e.min=M0(e.min,t,n,r,i),e.max=M0(e.max,t,n,r,i)}function L0(e,{x:t,y:n}){Tc(e.x,t.translate,t.scale,t.originPoint),Tc(e.y,n.translate,n.scale,n.originPoint)}function kI(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,u;for(let l=0;l<i;l++){a=n[l],u=a.projectionDelta;const c=a.instance;c&&c.style&&c.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Xi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,L0(e,u)),r&&ri(a.latestValues)&&Xi(e,a.latestValues))}t.x=$0(t.x),t.y=$0(t.y)}function $0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Dr(e,t){e.min=e.min+t,e.max=e.max+t}function D0(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,u=At(e.min,e.max,a);Tc(e,t[n],t[r],u,t.scale)}const jI=["x","scaleX","originX"],GI=["y","scaleY","originY"];function Xi(e,t){D0(e.x,t,jI),D0(e.y,t,GI)}function N0(e,t){return O0(BI(e.getBoundingClientRect(),t))}function HI(e,t,n){const r=N0(e,n),{scroll:i}=t;return i&&(Dr(r.x,i.offset.x),Dr(r.y,i.offset.y)),r}const V0=({current:e})=>e?e.ownerDocument.defaultView:null,WI=new WeakMap;class ZI{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{this.stopAnimation(),n&&this.snapToCursor(Is(c,"page").point)},a=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eg(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(S=>{let C=this.getAxisMotionValue(S).get()||0;if(Xn.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[S];P&&(C=cn(P)*(parseFloat(C)/100))}}this.originPoint[S]=C}),m&&mt.update(()=>m(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},u=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:m,onDrag:v}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=f;if(h&&this.currentDirection===null){this.currentDirection=XI(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f);this.panSession=new b0(t,{onSessionStart:i,onStart:a,onMove:u,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:V0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&mt.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Rs(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=RI(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=MI(i.layoutBox,n):this.constraints=!1,this.elastic=NI(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&zn(u=>{this.getAxisMotionValue(u)&&(this.constraints[u]=DI(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(t))return!1;const r=t.current;Rn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=HI(r,i.root,this.visualElement.getTransformPagePoint());let u=LI(i.layout.layoutBox,a);if(n){const l=n(VI(u));this.hasMutatedConstraints=!!l,l&&(u=O0(l))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},f=zn(p=>{if(!Rs(p,n,this.currentDirection))return;let h=c&&c[p]||{};u&&(h={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(p,S)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(vc(t,r,0,n))}stopAnimation(){zn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){zn(n=>{const{drag:r}=this.getProps();if(!Rs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];a.set(t[n]-At(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zn(u=>{const l=this.getAxisMotionValue(u);if(l){const c=l.get();i[u]=$I({min:c,max:c},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zn(u=>{if(!Rs(u,t,null))return;const l=this.getAxisMotionValue(u),{min:c,max:f}=this.constraints[u];l.set(At(c,f,i[u]))})}addListeners(){if(!this.visualElement.current)return;WI.set(this.visualElement,this);const t=this.visualElement.current,n=ar(t,"pointerdown",c=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Gi(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const u=or(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(zn(p=>{const h=this.getAxisMotionValue(p);h&&(this.originPoint[p]+=c[p].translate,h.set(h.get()+c[p].translate))}),this.visualElement.render())});return()=>{u(),n(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:u=Ac,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:u,dragMomentum:l}}}function Rs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function XI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zI extends Mr{constructor(t){super(t),this.removeGroupControls=Pt,this.removeListeners=Pt,this.controls=new ZI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pt}unmount(){this.removeGroupControls(),this.removeListeners()}}const B0=e=>(t,n)=>{e&&mt.update(()=>e(t,n))};class UI extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Pt}onPointerDown(t){this.session=new b0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:B0(t),onStart:B0(n),onMove:r,onEnd:(a,u)=>{delete this.session,i&&mt.update(()=>i(a,u))}}}mount(){this.removePointerDownListener=ar(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function YI(){const e=b.useContext(ps);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function k0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const da={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($e.test(e))e=parseFloat(e);else return e;const n=k0(e,t.target.x),r=k0(e,t.target.y);return`${n}% ${r}%`}},JI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$r.parse(e);if(i.length>5)return r;const a=$r.createTransformer(e),u=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+u]/=l,i[1+u]/=c;const f=At(l,c,.5);return typeof i[2+u]=="number"&&(i[2+u]/=f),typeof i[3+u]=="number"&&(i[3+u]/=f),a(i)}};class KI extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;lS(qI),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,u=r.projection;return u&&(u.isPresent=a,i||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||mt.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function j0(e){const[t,n]=YI(),r=b.useContext(Wl);return b.createElement(KI,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(ng),isPresent:t,safeToRemove:n})}const qI={borderRadius:{...da,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:da,borderTopRightRadius:da,borderBottomLeftRadius:da,borderBottomRightRadius:da,boxShadow:JI},G0=["TopLeft","TopRight","BottomLeft","BottomRight"],QI=G0.length,H0=e=>typeof e=="string"?parseFloat(e):e,W0=e=>typeof e=="number"||$e.test(e);function eE(e,t,n,r,i,a){i?(e.opacity=At(0,n.opacity!==void 0?n.opacity:1,tE(r)),e.opacityExit=At(t.opacity!==void 0?t.opacity:1,0,nE(r))):a&&(e.opacity=At(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<QI;u++){const l=`border${G0[u]}Radius`;let c=Z0(t,l),f=Z0(n,l);if(c===void 0&&f===void 0)continue;c||(c=0),f||(f=0),c===0||f===0||W0(c)===W0(f)?(e[l]=Math.max(At(H0(c),H0(f),r),0),(Xn.test(f)||Xn.test(c))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,r))}function Z0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tE=X0(0,.5,Vg),nE=X0(.5,.95,Pt);function X0(e,t,n){return r=>r<e?0:r>t?1:n(ua(e,t,r))}function z0(e,t){e.min=t.min,e.max=t.max}function Cn(e,t){z0(e.x,t.x),z0(e.y,t.y)}function U0(e,t,n,r,i){return e-=t,e=Fs(e,1/n,r),i!==void 0&&(e=Fs(e,1/i,r)),e}function rE(e,t=0,n=1,r=.5,i,a=e,u=e){if(Xn.test(t)&&(t=parseFloat(t),t=At(u.min,u.max,t/100)-u.min),typeof t!="number")return;let l=At(a.min,a.max,r);e===a&&(l-=t),e.min=U0(e.min,t,n,l,i),e.max=U0(e.max,t,n,l,i)}function Y0(e,t,[n,r,i],a,u){rE(e,t[n],t[r],t[i],t.scale,a,u)}const iE=["x","scaleX","originX"],oE=["y","scaleY","originY"];function J0(e,t,n,r){Y0(e.x,t,iE,n?n.x:void 0,r?r.x:void 0),Y0(e.y,t,oE,n?n.y:void 0,r?r.y:void 0)}function K0(e){return e.translate===0&&e.scale===1}function q0(e){return K0(e.x)&&K0(e.y)}function aE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Q0(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function em(e){return cn(e.x)/cn(e.y)}class sE{constructor(){this.members=[]}add(t){bc(this.members,t),t.scheduleRender()}remove(t){if(yc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tm(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const uE=(e,t)=>e.depth-t.depth;class lE{constructor(){this.children=[],this.isDirty=!1}add(t){bc(this.children,t),this.isDirty=!0}remove(t){yc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uE),this.isDirty=!1,this.children.forEach(t)}}function cE(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ir(r),e(a-t))};return mt.read(r,!0),()=>ir(r)}function fE(e){window.MotionDebug&&window.MotionDebug.record(e)}function dE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function pE(e,t,n){const r=tn(e)?e:Wi(e);return r.start(vc("",r,t,n)),r.animation}const nm=["","X","Y","Z"],hE={visibility:"hidden"},rm=1e3;let gE=0;const ii={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function im({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=t==null?void 0:t()){this.id=gE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ii.totalNodes=ii.resolvedTargetDeltas=ii.recalculatedProjection=0,this.nodes.forEach(bE),this.nodes.forEach(SE),this.nodes.forEach(IE),this.nodes.forEach(yE),fE(ii)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new lE)}addEventListener(u,l){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new xc),this.eventHandlers.get(u).add(l)}notifyListeners(u,...l){const c=this.eventHandlers.get(u);c&&c.notify(...l)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dE(u),this.instance=u;const{layoutId:c,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=cE(m,250),Ms.hasAnimatedSinceResize&&(Ms.hasAnimatedSinceResize=!1,this.nodes.forEach(am))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||p.getDefaultTransition()||TE,{onLayoutAnimationStart:E,onLayoutAnimationComplete:P}=p.getProps(),M=!this.targetLayout||!Q0(this.targetLayout,S)||v,$=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||m&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,$);const B={...mc(C,"layout"),onPlay:E,onComplete:P};(p.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B)}else m||am(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ir(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(EE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const h=this.path[p];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(om);return}this.isUpdating||this.nodes.forEach(CE),this.isUpdating=!1,this.nodes.forEach(wE),this.nodes.forEach(mE),this.nodes.forEach(vE),this.clearAllSnapshots();const l=performance.now();Zt.delta=Or(0,1e3/60,l-Zt.timestamp),Zt.timestamp=l,Zt.isProcessing=!0,Ql.update.process(Zt),Ql.preRender.process(Zt),Ql.render.process(Zt),Zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(xE),this.sharedNodes.forEach(AE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:u,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const u=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!q0(this.projectionDelta),c=this.getTransformTemplate(),f=c?c(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;u&&(l||ri(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return u&&(c=this.removeTransform(c)),OE(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return $t();const l=u.measureViewportBox(),{scroll:c}=this.root;return c&&(Dr(l.x,c.offset.x),Dr(l.y,c.offset.y)),l}removeElementScroll(u){const l=$t();Cn(l,u);for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:p,options:h}=f;if(f!==this.root&&p&&h.layoutScroll){if(p.isRoot){Cn(l,u);const{scroll:m}=this.root;m&&(Dr(l.x,-m.offset.x),Dr(l.y,-m.offset.y))}Dr(l.x,p.offset.x),Dr(l.y,p.offset.y)}}return l}applyTransform(u,l=!1){const c=$t();Cn(c,u);for(let f=0;f<this.path.length;f++){const p=this.path[f];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Xi(c,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ri(p.latestValues)&&Xi(c,p.latestValues)}return ri(this.latestValues)&&Xi(c,this.latestValues),c}removeTransform(u){const l=$t();Cn(l,u);for(let c=0;c<this.path.length;c++){const f=this.path[c];if(!f.instance||!ri(f.latestValues))continue;Pc(f.latestValues)&&f.updateSnapshot();const p=$t(),h=f.measurePageBox();Cn(p,h),J0(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return ri(this.latestValues)&&J0(l,this.latestValues),l}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Zt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),fa(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cn(this.target,this.layout.layoutBox),L0(this.target,this.targetDelta)):Cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),fa(this.relativeTargetOrigin,this.target,v.target),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ii.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Pc(this.parent.latestValues)||F0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Zt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;Cn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;kI(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:S}=l;if(!S){this.projectionTransform&&(this.projectionDelta=Zi(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Zi(),this.projectionDeltaWithTransform=Zi());const C=this.projectionTransform;ca(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=tm(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==m||this.treeScale.y!==v)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),ii.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),u){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,l=!1){const c=this.snapshot,f=c?c.latestValues:{},p={...this.latestValues},h=Zi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=$t(),v=c?c.source:void 0,S=this.layout?this.layout.source:void 0,C=v!==S,E=this.getStack(),P=!E||E.members.length<=1,M=!!(C&&!P&&this.options.crossfade===!0&&!this.path.some(PE));this.animationProgress=0;let $;this.mixTargetDelta=B=>{const N=B/1e3;sm(h.x,u.x,N),sm(h.y,u.y,N),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fa(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_E(this.relativeTarget,this.relativeTargetOrigin,m,N),$&&aE(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=$t()),Cn($,this.relativeTarget)),C&&(this.animationValues=p,eE(p,f,this.latestValues,N,M,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mt.update(()=>{Ms.hasAnimatedSinceResize=!0,this.currentAnimation=pE(0,rm,{...u,onUpdate:l=>{this.mixTargetDelta(l),u.onUpdate&&u.onUpdate(l)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:c,layout:f,latestValues:p}=u;if(!(!l||!c||!f)){if(this!==u&&this.layout&&f&&dm(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||$t();const h=cn(this.layout.layoutBox.x);c.x.min=u.target.x.min,c.x.max=c.x.min+h;const m=cn(this.layout.layoutBox.y);c.y.min=u.target.y.min,c.y.max=c.y.min+m}Cn(l,c),Xi(l,p),ca(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new sE),this.sharedNodes.get(u).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:l}=this.options;return l?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:l}=this.options;return l?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:c}=u;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const f={};for(let p=0;p<nm.length;p++){const h="rotate"+nm[p];c[h]&&(f[h]=c[h],u.setStaticValue(h,0))}u.render();for(const p in f)u.setStaticValue(p,f[p]);u.scheduleRender()}getProjectionStyles(u){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hE;const f={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=ws(u==null?void 0:u.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=ws(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ri(this.latestValues)&&(C.transform=p?p({},""):"none",this.hasProjected=!1),C}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=tm(this.projectionDeltaWithTransform,this.treeScale,m),p&&(f.transform=p(m,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,h.animationValues?f.opacity=h===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const C in vs){if(m[C]===void 0)continue;const{correct:E,applyTo:P}=vs[C],M=f.transform==="none"?m[C]:E(m[C],h);if(P){const $=P.length;for(let B=0;B<$;B++)f[P[B]]=M}else f[C]=M}return this.options.layoutId&&(f.pointerEvents=h===this?ws(u==null?void 0:u.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var l;return(l=u.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(om),this.root.sharedNodes.clear()}}}function mE(e){e.updateLayout()}function vE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,u=n.source!==e.layout.source;a==="size"?zn(h=>{const m=u?n.measuredBox[h]:n.layoutBox[h],v=cn(m);m.min=r[h].min,m.max=m.min+v}):dm(a,n.layoutBox,r)&&zn(h=>{const m=u?n.measuredBox[h]:n.layoutBox[h],v=cn(r[h]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=Zi();ca(l,r,n.layoutBox);const c=Zi();u?ca(c,e.applyTransform(i,!0),n.measuredBox):ca(c,r,n.layoutBox);const f=!q0(l);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:v}=h;if(m&&v){const S=$t();fa(S,n.layoutBox,m.layoutBox);const C=$t();fa(C,r,v.layoutBox),Q0(S,C)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=S,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function bE(e){ii.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xE(e){e.clearSnapshot()}function om(e){e.clearMeasurements()}function CE(e){e.isLayoutDirty=!1}function wE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function am(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SE(e){e.resolveTargetDelta()}function IE(e){e.calcProjection()}function EE(e){e.resetRotation()}function AE(e){e.removeLeadSnapshot()}function sm(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function um(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}function _E(e,t,n,r){um(e.x,t.x,n.x,r),um(e.y,t.y,n.y,r)}function PE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const TE={duration:.45,ease:[.4,0,.1,1]},lm=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),cm=lm("applewebkit/")&&!lm("chrome/")?Math.round:Pt;function fm(e){e.min=cm(e.min),e.max=cm(e.max)}function OE(e){fm(e.x),fm(e.y)}function dm(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ec(em(t),em(n),.2)}const FE=im({attachResizeListener:(e,t)=>or(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oc={current:void 0},pm=im({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Oc.current){const e=new FE({});e.mount(window),e.setOptions({layoutScroll:!0}),Oc.current=e}return Oc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RE={pan:{Feature:UI},drag:{Feature:zI,ProjectionNode:pm,MeasureLayout:j0}},ME=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function LE(e){const t=ME.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const $E=4;function Fc(e,t,n=1){Rn(n<=$E,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=LE(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const u=a.trim();return d0(u)?parseFloat(u):u}else return Xl(i)?Fc(i,t,n+1):i}function DE(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!Xl(a))return;const u=Fc(a,r);u&&i.set(u)});for(const i in t){const a=t[i];if(!Xl(a))continue;const u=Fc(a,r);u&&(t[i]=u,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const NE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hm=e=>NE.has(e),VE=e=>Object.keys(e).some(hm),Ls=e=>e===ei||e===$e,gm=(e,t)=>parseFloat(e.split(", ")[t]),mm=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return gm(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?gm(a[1],e):0}},BE=new Set(["x","y","z"]),kE=ea.filter(e=>!BE.has(e));function jE(e){const t=[];return kE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const zi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mm(4,13),y:mm(5,14)};zi.translateX=zi.x,zi.translateY=zi.y;const GE=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:u}=a,l={};u==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{l[f]=zi[f](r,a)}),t.render();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);p&&p.jump(l[f]),e[f]=zi[f](c,a)}),e},HE=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(hm);let a=[],u=!1;const l=[];if(i.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=la(p);const m=t[c];let v;if(Cs(m)){const S=m.length,C=m[0]===null?1:0;p=m[C],h=la(p);for(let E=C;E<S&&m[E]!==null;E++)v?Rn(la(m[E])===v,"All keyframes must be of the same type"):(v=la(m[E]),Rn(v===h||Ls(h)&&Ls(v),"Keyframes must be of the same dimension as the current value"))}else v=la(m);if(h!==v)if(Ls(h)&&Ls(v)){const S=f.get();typeof S=="string"&&f.set(parseFloat(S)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&v===$e&&(t[c]=m.map(parseFloat))}else h!=null&&h.transform&&(v!=null&&v.transform)&&(p===0||m===0)?p===0?f.set(v.transform(p)):t[c]=h.transform(m):(u||(a=jE(e),u=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],f.jump(m))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,f=GE(t,e,l);return a.length&&a.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),hs&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function WE(e,t,n,r){return VE(t)?HE(e,t,n,r):{target:t,transitionEnd:r}}const ZE=(e,t,n,r)=>{const i=DE(e,t,r);return t=i.target,r=i.transitionEnd,WE(e,t,n,r)},Rc={current:null},vm={current:!1};function XE(){if(vm.current=!0,!!hs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rc.current=e.matches;e.addListener(t),t()}else Rc.current=!1}function zE(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],u=n[i];if(tn(a))e.addValue(i,a),Os(r)&&r.add(i),process.env.NODE_ENV==="development"&&Cc(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(tn(u))e.addValue(i,Wi(a,{owner:e})),Os(r)&&r.remove(i);else if(u!==a)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(a)}else{const l=e.getStaticValue(i);e.addValue(i,Wi(l!==void 0?l:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const bm=new WeakMap,ym=Object.keys(Qo),UE=ym.length,xm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],YE=Hl.length;class JE{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>mt.render(this.render,!1,!0);const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.isControllingVariants=ms(n),this.isVariantNode=Qh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{});for(const h in p){const m=p[h];l[h]!==void 0&&tn(m)&&(m.set(l[h],!1),Os(f)&&f.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,bm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),vm.current||XE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rc.current,process.env.NODE_ENV!=="production"&&Cc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bm.delete(this.current),this.projection&&this.projection.unmount(),ir(this.notifyUpdate),ir(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Qr.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&mt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let u,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?oa(!1,c):Rn(!1,c)}for(let c=0;c<UE;c++){const f=ym[c],{isEnabled:p,Feature:h,ProjectionNode:m,MeasureLayout:v}=Qo[f];m&&(u=m),p(n)&&(!this.features[f]&&h&&(this.features[f]=new h(this)),v&&(l=v))}if(!this.projection&&u){this.projection=new u(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:f,drag:p,dragConstraints:h,layoutScroll:m,layoutRoot:v}=n;this.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!p||h&&Gi(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:v})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<xm.length;r++){const i=xm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=zE(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<YE;r++){const i=Hl[r],a=this.props[i];(qo(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Wi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=ql(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!tn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Cm extends JE{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let u=dI(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),u&&(u=i(u))),a){cI(this,r,u);const l=ZE(this,r,u,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function KE(e){return window.getComputedStyle(e)}class qE extends Cm{readValueFromInstance(t,n){if(Qr.has(n)){const r=gc(n);return r&&r.default||0}else{const r=KE(t),i=(og(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return N0(t,n)}build(t,n,r,i){zl(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Kl(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;tn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){hg(t,n,r,i)}}class QE extends Cm{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qr.has(n)){const r=gc(n);return r&&r.default||0}return n=gg.has(n)?n:jl(n),t.getAttribute(n)}measureInstanceViewportBox(){return $t()}scrapeMotionValuesFromProps(t,n){return vg(t,n)}build(t,n,r,i){Yl(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){mg(t,n,r,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const eA=(e,t)=>Zl(e)?new QE(t,{enableHardwareAcceleration:!1}):new qE(t,{enableHardwareAcceleration:!0}),tA={..._I,...qS,...RE,...{layout:{ProjectionNode:pm,MeasureLayout:j0}}},Ui=sS((e,t)=>BS(e,t,tA,eA));function wm(){const e=b.useRef(!1);return kl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function nA(){const e=wm(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>mt.postRender(r),[r]),t]}class rA extends re.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function iA({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:a,height:u,top:l,left:c}=i.current;if(t||!r.current||!a||!u)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
|
|
57
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(a=i(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var l in a)t.call(a,l)&&a[l]&&(u=i(u,l));return u}function i(a,u){return u?a?a+" "+u:a+u:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lg);var xS=lg.exports;const Je=Zl(xS);function cg({size:e="md",...t}){return A.jsx("div",{className:`${Je("bg-brand-primary rounded-full flex items-center justify-center",{"h-8 w-8":e==="sm","h-12 w-12":e==="md","h-16 w-16":e==="lg"})}`,...t,children:A.jsx(lS,{className:Je("text-brand-background",{"h-4 w-4":e==="sm","h-6 w-6":e==="md","h-8 w-8":e==="lg"})})})}const fg=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),vs=b.createContext({}),bs=b.createContext(null),ys=typeof document<"u",Kl=ys?b.useLayoutEffect:b.useEffect,dg=b.createContext({strict:!1}),ql=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),hg="data-"+ql("framerAppearId");function CS(e,t,n,r){const{visualElement:i}=b.useContext(vs),a=b.useContext(dg),u=b.useContext(bs),l=b.useContext(fg).reducedMotion,c=b.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l}));const f=c.current;b.useInsertionEffect(()=>{f&&f.update(n,u)});const h=b.useRef(!!(n[hg]&&!window.HandoffComplete));return Kl(()=>{f&&(f.render(),h.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(f.updateFeatures(),!h.current&&f.animationState&&f.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))}),f}function Zi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wS(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Zi(n)&&(n.current=r))},[t])}function na(e){return typeof e=="string"||Array.isArray(e)}function xs(e){return typeof e=="object"&&typeof e.start=="function"}const Ql=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...Ql];function Cs(e){return xs(e.animate)||ec.some(t=>na(e[t]))}function pg(e){return!!(Cs(e)||e.variants)}function SS(e,t){if(Cs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function IS(e){const{initial:t,animate:n}=SS(e,b.useContext(vs));return b.useMemo(()=>({initial:t,animate:n}),[gg(t),gg(n)])}function gg(e){return Array.isArray(e)?e.join(" "):e}const mg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ra={};for(const e in mg)ra[e]={isEnabled:t=>mg[e].some(n=>!!t[n])};function ES(e){for(const t in e)ra[t]={...ra[t],...e[t]}}const tc=b.createContext({}),vg=b.createContext({}),AS=Symbol.for("motionComponentSymbol");function _S({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&ES(e);function a(l,c){let f;const h={...b.useContext(fg),...l,layoutId:PS(l)},{isStatic:p}=h,m=IS(l),v=r(l,p);if(!p&&ys){m.visualElement=CS(i,v,h,t);const C=b.useContext(vg),S=b.useContext(dg).strict;m.visualElement&&(f=m.visualElement.loadFeatures(h,S,e,C))}return ie.createElement(vs.Provider,{value:m},f&&m.visualElement?ie.createElement(f,{visualElement:m.visualElement,...h}):null,n(i,l,wS(v,m.visualElement,c),v,p,m.visualElement))}const u=b.forwardRef(a);return u[AS]=i,u}function PS({layoutId:e}){const t=b.useContext(tc).id;return t&&e!==void 0?t+"-"+e:e}function TS(e){function t(r,i={}){return _S(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const FS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nc(e){return typeof e!="string"||e.includes("-")?!1:!!(FS.indexOf(e)>-1||/[A-Z]/.test(e))}const ws={};function OS(e){Object.assign(ws,e)}const ia=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ni=new Set(ia);function bg(e,{layout:t,layoutId:n}){return ni.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ws[e]||e==="opacity")}const rn=e=>!!(e&&e.getVelocity),RS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MS=ia.length;function LS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let u=0;u<MS;u++){const l=ia[u];if(e[l]!==void 0){const c=RS[l]||l;a+=`${c}(${e[l]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const yg=e=>t=>typeof t=="string"&&t.startsWith(e),xg=yg("--"),rc=yg("var(--"),DS=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,$S=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Rr=(e,t,n)=>Math.min(Math.max(n,e),t),ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oa={...ri,transform:e=>Rr(0,1,e)},Ss={...ri,default:1},aa=e=>Math.round(e*1e5)/1e5,Is=/(-)?([\d]*\.?[\d])+/g,Cg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,NS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function sa(e){return typeof e=="string"}const ua=e=>({test:t=>sa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mr=ua("deg"),Un=ua("%"),Ne=ua("px"),VS=ua("vh"),BS=ua("vw"),wg={...Un,parse:e=>Un.parse(e)/100,transform:e=>Un.transform(e*100)},Sg={...ri,transform:Math.round},Ig={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,size:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,rotate:Mr,rotateX:Mr,rotateY:Mr,rotateZ:Mr,scale:Ss,scaleX:Ss,scaleY:Ss,scaleZ:Ss,skew:Mr,skewX:Mr,skewY:Mr,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:oa,originX:wg,originY:wg,originZ:Ne,zIndex:Sg,fillOpacity:oa,strokeOpacity:oa,numOctaves:Sg};function ic(e,t,n,r){const{style:i,vars:a,transform:u,transformOrigin:l}=e;let c=!1,f=!1,h=!0;for(const p in t){const m=t[p];if(xg(p)){a[p]=m;continue}const v=Ig[p],C=$S(m,v);if(ni.has(p)){if(c=!0,u[p]=C,!h)continue;m!==(v.default||0)&&(h=!1)}else p.startsWith("origin")?(f=!0,l[p]=C):i[p]=C}if(t.transform||(c||r?i.transform=LS(e.transform,n,h,r):i.transform&&(i.transform="none")),f){const{originX:p="50%",originY:m="50%",originZ:v=0}=l;i.transformOrigin=`${p} ${m} ${v}`}}const oc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Eg(e,t,n){for(const r in t)!rn(t[r])&&!bg(r,n)&&(e[r]=t[r])}function kS({transformTemplate:e},t,n){return b.useMemo(()=>{const r=oc();return ic(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function jS(e,t,n){const r=e.style||{},i={};return Eg(i,r,e),Object.assign(i,kS(e,t,n)),e.transformValues?e.transformValues(i):i}function GS(e,t,n){const r={},i=jS(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const HS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Es(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||HS.has(e)}let Ag=e=>!Es(e);function WS(e){e&&(Ag=t=>t.startsWith("on")?!Es(t):e(t))}try{WS(require("@emotion/is-prop-valid").default)}catch{}function ZS(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&Es(i)||!t&&!Es(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function _g(e,t,n){return typeof e=="string"?e:Ne.transform(t+n*e)}function XS(e,t,n){const r=_g(t,e.x,e.width),i=_g(n,e.y,e.height);return`${r} ${i}`}const zS={offset:"stroke-dashoffset",array:"stroke-dasharray"},US={offset:"strokeDashoffset",array:"strokeDasharray"};function YS(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?zS:US;e[a.offset]=Ne.transform(-r);const u=Ne.transform(t),l=Ne.transform(n);e[a.array]=`${u} ${l}`}function ac(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:u,pathSpacing:l=1,pathOffset:c=0,...f},h,p,m){if(ic(e,f,h,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:C,dimensions:S}=e;v.transform&&(S&&(C.transform=v.transform),delete v.transform),S&&(i!==void 0||a!==void 0||C.transform)&&(C.transformOrigin=XS(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),u!==void 0&&YS(v,u,l,c,!1)}const Pg=()=>({...oc(),attrs:{}}),sc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JS(e,t,n,r){const i=b.useMemo(()=>{const a=Pg();return ac(a,t,{enableHardwareAcceleration:!1},sc(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Eg(a,e.style,e),i.style={...a,...i.style}}return i}function KS(e=!1){return(n,r,i,{latestValues:a},u)=>{const c=(nc(n)?JS:GS)(r,a,u,n),h={...ZS(r,typeof n=="string",e),...c,ref:i},{children:p}=r,m=b.useMemo(()=>rn(p)?p.get():p,[p]);return b.createElement(n,{...h,children:m})}}function Tg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Fg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Og(e,t,n,r){Tg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Fg.has(i)?i:ql(i),t.attrs[i])}function uc(e,t){const{style:n}=e,r={};for(const i in n)(rn(n[i])||t.style&&rn(t.style[i])||bg(i,e))&&(r[i]=n[i]);return r}function Rg(e,t){const n=uc(e,t);for(const r in e)if(rn(e[r])||rn(t[r])){const i=ia.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function lc(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Mg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const As=e=>Array.isArray(e),qS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QS=e=>As(e)?e[e.length-1]||0:e;function _s(e){const t=rn(e)?e.get():e;return qS(t)?t.toValue():t}function e5({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const u={latestValues:t5(r,i,a,e),renderState:t()};return n&&(u.mount=l=>n(r,l,u)),u}const Lg=e=>(t,n)=>{const r=b.useContext(vs),i=b.useContext(bs),a=()=>e5(e,t,r,i);return n?a():Mg(a)};function t5(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=_s(a[m]);let{initial:u,animate:l}=e;const c=Cs(e),f=pg(e);t&&f&&!c&&e.inherit!==!1&&(u===void 0&&(u=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||u===!1;const p=h?l:u;return p&&typeof p!="boolean"&&!xs(p)&&(Array.isArray(p)?p:[p]).forEach(v=>{const C=lc(e,v);if(!C)return;const{transitionEnd:S,transition:E,..._}=C;for(const R in _){let L=_[R];if(Array.isArray(L)){const $=h?L.length-1:0;L=L[$]}L!==null&&(i[R]=L)}for(const R in S)i[R]=S[R]}),i}const Tt=e=>e;class Dg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function n5(e){let t=new Dg,n=new Dg,r=0,i=!1,a=!1;const u=new WeakSet,l={schedule:(c,f=!1,h=!1)=>{const p=h&&i,m=p?t:n;return f&&u.add(c),m.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),u.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f<r;f++){const h=t.order[f];h(c),u.has(h)&&(l.schedule(h),e())}i=!1,a&&(a=!1,l.process(c))}};return l}const Ps=["prepare","read","update","preRender","render","postRender"],r5=40;function i5(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Ps.reduce((p,m)=>(p[m]=n5(()=>n=!0),p),{}),u=p=>a[p].process(i),l=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,r5),1),i.timestamp=p,i.isProcessing=!0,Ps.forEach(u),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ps.reduce((p,m)=>{const v=a[m];return p[m]=(C,S=!1,E=!1)=>(n||c(),v.schedule(C,S,E)),p},{}),cancel:p=>Ps.forEach(m=>a[m].cancel(p)),state:i,steps:a}}const{schedule:vt,cancel:ar,state:Xt,steps:cc}=i5(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0),o5={useVisualState:Lg({scrapeMotionValuesFromProps:Rg,createRenderState:Pg,onMount:(e,t,{renderState:n,latestValues:r})=>{vt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vt.render(()=>{ac(n,r,{enableHardwareAcceleration:!1},sc(t.tagName),e.transformTemplate),Og(t,n)})}})},a5={useVisualState:Lg({scrapeMotionValuesFromProps:uc,createRenderState:oc})};function s5(e,{forwardMotionProps:t=!1},n,r){return{...nc(e)?o5:a5,preloadedFeatures:n,useRender:KS(t),createVisualElement:r,Component:e}}function sr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const $g=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ts(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const u5=e=>t=>$g(t)&&e(t,Ts(t));function ur(e,t,n,r){return sr(e,t,u5(n),r)}const l5=(e,t)=>n=>t(e(n)),Lr=(...e)=>e.reduce(l5);function Ng(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Vg=Ng("dragHorizontal"),Bg=Ng("dragVertical");function kg(e){let t=!1;if(e==="y")t=Bg();else if(e==="x")t=Vg();else{const n=Vg(),r=Bg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function jg(){const e=kg(!0);return e?(e(),!1):!0}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gg(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,u)=>{if(a.type==="touch"||jg())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&vt.update(()=>l[r](a,u))};return ur(e.current,n,i,{passive:!e.getProps()[r]})}class c5 extends Dr{mount(){this.unmount=Lr(Gg(this.node,!0),Gg(this.node,!1))}unmount(){}}class f5 extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Lr(sr(this.node.current,"focus",()=>this.onFocus()),sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Hg=(e,t)=>t?e===t?!0:Hg(e,t.parentElement):!1;function fc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ts(n))}class d5 extends Dr{constructor(){super(...arguments),this.removeStartListeners=Tt,this.removeEndListeners=Tt,this.removeAccessibleListeners=Tt,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=ur(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:h}=this.node.getProps();vt.update(()=>{Hg(this.node.current,l.target)?f&&f(l,c):h&&h(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),u=ur(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Lr(a,u),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const u=l=>{l.key!=="Enter"||!this.checkPressEnd()||fc("up",(c,f)=>{const{onTap:h}=this.node.getProps();h&&vt.update(()=>h(c,f))})};this.removeEndListeners(),this.removeEndListeners=sr(this.node.current,"keyup",u),fc("down",(l,c)=>{this.startPress(l,c)})},n=sr(this.node.current,"keydown",t),r=()=>{this.isPressing&&fc("cancel",(a,u)=>this.cancelPress(a,u))},i=sr(this.node.current,"blur",r);this.removeAccessibleListeners=Lr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&vt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!jg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&vt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ur(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Lr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dc=new WeakMap,hc=new WeakMap,h5=e=>{const t=dc.get(e.target);t&&t(e)},p5=e=>{e.forEach(h5)};function g5({root:e,...t}){const n=e||document;hc.has(n)||hc.set(n,{});const r=hc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(p5,{root:e,...t})),r[i]}function m5(e,t,n){const r=g5(t);return dc.set(e,n),r.observe(e),()=>{dc.delete(e),r.unobserve(e)}}const v5={some:0,all:1};class b5 extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:v5[i]},l=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),m=f?h:p;m&&m(c)};return m5(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(y5(t,n))&&this.startObserver()}unmount(){}}function y5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const x5={inView:{Feature:b5},tap:{Feature:d5},focus:{Feature:f5},hover:{Feature:c5}};function Wg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function C5(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function w5(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Fs(e,t,n){const r=e.getProps();return lc(r,t,n!==void 0?n:r.custom,C5(e),w5(e))}let la=Tt,Ln=Tt;process.env.NODE_ENV!=="production"&&(la=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ln=(e,t)=>{if(!e)throw new Error(t)});const $r=e=>e*1e3,lr=e=>e/1e3,S5={current:!1},Zg=e=>Array.isArray(e)&&typeof e[0]=="number";function Xg(e){return!!(!e||typeof e=="string"&&zg[e]||Zg(e)||Array.isArray(e)&&e.every(Xg))}const ca=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ca([0,.65,.55,1]),circOut:ca([.55,0,1,.45]),backIn:ca([.31,.01,.66,-.59]),backOut:ca([.33,1.53,.69,.99])};function Ug(e){if(e)return Zg(e)?ca(e):Array.isArray(e)?e.map(Ug):zg[e]}function I5(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:u="loop",ease:l,times:c}={}){const f={[t]:n};c&&(f.offset=c);const h=Ug(l);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"})}function E5(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Yg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,A5=1e-7,_5=12;function P5(e,t,n,r,i){let a,u,l=0;do u=t+(n-t)/2,a=Yg(u,r,i)-e,a>0?n=u:t=u;while(Math.abs(a)>A5&&++l<_5);return u}function fa(e,t,n,r){if(e===t&&n===r)return Tt;const i=a=>P5(a,0,1,e,n);return a=>a===0||a===1?a:Yg(i(a),t,r)}const T5=fa(.42,0,1,1),F5=fa(0,0,.58,1),Jg=fa(.42,0,.58,1),O5=e=>Array.isArray(e)&&typeof e[0]!="number",Kg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qg=e=>t=>1-e(1-t),pc=e=>1-Math.sin(Math.acos(e)),Qg=qg(pc),R5=Kg(pc),e0=fa(.33,1.53,.69,.99),gc=qg(e0),M5=Kg(gc),t0={linear:Tt,easeIn:T5,easeInOut:Jg,easeOut:F5,circIn:pc,circInOut:R5,circOut:Qg,backIn:gc,backInOut:M5,backOut:e0,anticipate:e=>(e*=2)<1?.5*gc(e):.5*(2-Math.pow(2,-10*(e-1)))},n0=e=>{if(Array.isArray(e)){Ln(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return fa(t,n,r,i)}else if(typeof e=="string")return Ln(t0[e]!==void 0,`Invalid easing type '${e}'`),t0[e];return e},mc=(e,t)=>n=>!!(sa(n)&&NS.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),r0=(e,t,n)=>r=>{if(!sa(r))return r;const[i,a,u,l]=r.match(Is);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},L5=e=>Rr(0,255,e),vc={...ri,transform:e=>Math.round(L5(e))},ii={test:mc("rgb","red"),parse:r0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vc.transform(e)+", "+vc.transform(t)+", "+vc.transform(n)+", "+aa(oa.transform(r))+")"};function D5(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const bc={test:mc("#"),parse:D5,transform:ii.transform},Xi={test:mc("hsl","hue"),parse:r0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Un.transform(aa(t))+", "+Un.transform(aa(n))+", "+aa(oa.transform(r))+")"},Qt={test:e=>ii.test(e)||bc.test(e)||Xi.test(e),parse:e=>ii.test(e)?ii.parse(e):Xi.test(e)?Xi.parse(e):bc.parse(e),transform:e=>sa(e)?e:e.hasOwnProperty("red")?ii.transform(e):Xi.transform(e)},_t=(e,t,n)=>-n*e+n*t+e;function yc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,u=0;if(!t)i=a=u=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=yc(c,l,e+1/3),a=yc(c,l,e),u=yc(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:r}}const xc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},N5=[bc,ii,Xi],V5=e=>N5.find(t=>t.test(e));function i0(e){const t=V5(e);Ln(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Xi&&(n=$5(n)),n}const o0=(e,t)=>{const n=i0(e),r=i0(t),i={...n};return a=>(i.red=xc(n.red,r.red,a),i.green=xc(n.green,r.green,a),i.blue=xc(n.blue,r.blue,a),i.alpha=_t(n.alpha,r.alpha,a),ii.transform(i))};function B5(e){var t,n;return isNaN(e)&&sa(e)&&(((t=e.match(Is))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Cg))===null||n===void 0?void 0:n.length)||0)>0}const a0={regex:DS,countKey:"Vars",token:"${v}",parse:Tt},s0={regex:Cg,countKey:"Colors",token:"${c}",parse:Qt.parse},u0={regex:Is,countKey:"Numbers",token:"${n}",parse:ri.parse};function Cc(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function Os(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Cc(n,a0),Cc(n,s0),Cc(n,u0),n}function l0(e){return Os(e).values}function c0(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Os(e),a=t.length;return u=>{let l=i;for(let c=0;c<a;c++)c<r?l=l.replace(a0.token,u[c]):c<r+n?l=l.replace(s0.token,Qt.transform(u[c])):l=l.replace(u0.token,aa(u[c]));return l}}const k5=e=>typeof e=="number"?0:e;function j5(e){const t=l0(e);return c0(e)(t.map(k5))}const Nr={test:B5,parse:l0,createTransformer:c0,getAnimatableNone:j5},f0=(e,t)=>n=>`${n>0?t:e}`;function d0(e,t){return typeof e=="number"?n=>_t(e,t,n):Qt.test(e)?o0(e,t):e.startsWith("var(")?f0(e,t):p0(e,t)}const h0=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,u)=>d0(a,t[u]));return a=>{for(let u=0;u<r;u++)n[u]=i[u](a);return n}},G5=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=d0(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},p0=(e,t)=>{const n=Nr.createTransformer(t),r=Os(e),i=Os(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Lr(h0(r.values,i.values),n):(la(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),f0(e,t))},da=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},g0=(e,t)=>n=>_t(e,t,n);function H5(e){return typeof e=="number"?g0:typeof e=="string"?Qt.test(e)?o0:p0:Array.isArray(e)?h0:typeof e=="object"?G5:g0}function W5(e,t,n){const r=[],i=n||H5(e[0]),a=e.length-1;for(let u=0;u<a;u++){let l=i(e[u],e[u+1]);if(t){const c=Array.isArray(t)?t[u]||Tt:t;l=Lr(c,l)}r.push(l)}return r}function m0(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ln(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=W5(t,r,i),l=u.length,c=f=>{let h=0;if(l>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const p=da(e[h],e[h+1],f);return u[h](p)};return n?f=>c(Rr(e[0],e[a-1],f)):c}function Z5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=da(0,t,r);e.push(_t(n,1,i))}}function X5(e){const t=[0];return Z5(t,e.length-1),t}function z5(e,t){return e.map(n=>n*t)}function U5(e,t){return e.map(()=>t||Jg).splice(0,e.length-1)}function Rs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=O5(r)?r.map(n0):n0(r),a={done:!1,value:t[0]},u=z5(n&&n.length===t.length?n:X5(t),e),l=m0(u,t,{ease:Array.isArray(i)?i:U5(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}function v0(e,t){return t?e*(1e3/t):0}const Y5=5;function b0(e,t,n){const r=Math.max(t-Y5,0);return v0(n-e(r),t-r)}const wc=.001,J5=.01,y0=10,K5=.05,q5=1;function Q5({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;la(e<=$r(y0),"Spring duration must be 10 seconds or less");let u=1-t;u=Rr(K5,q5,u),e=Rr(J5,y0,lr(e)),u<1?(i=f=>{const h=f*u,p=h*e,m=h-n,v=Sc(f,u),C=Math.exp(-p);return wc-m/v*C},a=f=>{const p=f*u*e,m=p*n+n,v=Math.pow(u,2)*Math.pow(f,2)*e,C=Math.exp(-p),S=Sc(Math.pow(f,2),u);return(-i(f)+wc>0?-1:1)*((m-v)*C)/S}):(i=f=>{const h=Math.exp(-f*e),p=(f-n)*e+1;return-wc+h*p},a=f=>{const h=Math.exp(-f*e),p=(n-f)*(e*e);return h*p});const l=5/e,c=tI(i,a,l);if(e=$r(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:u*2*Math.sqrt(r*f),duration:e}}}const eI=12;function tI(e,t,n){let r=n;for(let i=1;i<eI;i++)r=r-e(r)/t(r);return r}function Sc(e,t){return e*Math.sqrt(1-t*t)}const nI=["duration","bounce"],rI=["stiffness","damping","mass"];function x0(e,t){return t.some(n=>e[n]!==void 0)}function iI(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!x0(e,rI)&&x0(e,nI)){const n=Q5(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function C0({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],u={done:!1,value:i},{stiffness:l,damping:c,mass:f,velocity:h,duration:p,isResolvedFromDuration:m}=iI(r),v=h?-lr(h):0,C=c/(2*Math.sqrt(l*f)),S=a-i,E=lr(Math.sqrt(l/f)),_=Math.abs(S)<5;n||(n=_?.01:2),t||(t=_?.005:.5);let R;if(C<1){const L=Sc(E,C);R=$=>{const V=Math.exp(-C*E*$);return a-V*((v+C*E*S)/L*Math.sin(L*$)+S*Math.cos(L*$))}}else if(C===1)R=L=>a-Math.exp(-E*L)*(S+(v+E*S)*L);else{const L=E*Math.sqrt(C*C-1);R=$=>{const V=Math.exp(-C*E*$),U=Math.min(L*$,300);return a-V*((v+C*E*S)*Math.sinh(U)+L*S*Math.cosh(U))/L}}return{calculatedDuration:m&&p||null,next:L=>{const $=R(L);if(m)u.done=L>=p;else{let V=v;L!==0&&(C<1?V=b0(R,L,$):V=0);const U=Math.abs(V)<=n,X=Math.abs(a-$)<=t;u.done=U&&X}return u.value=u.done?a:$,u}}}function w0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:u,min:l,max:c,restDelta:f=.5,restSpeed:h}){const p=e[0],m={done:!1,value:p},v=te=>l!==void 0&&te<l||c!==void 0&&te>c,C=te=>l===void 0?c:c===void 0||Math.abs(l-te)<Math.abs(c-te)?l:c;let S=n*t;const E=p+S,_=u===void 0?E:u(E);_!==E&&(S=_-p);const R=te=>-S*Math.exp(-te/r),L=te=>_+R(te),$=te=>{const de=R(te),Pe=L(te);m.done=Math.abs(de)<=f,m.value=m.done?_:Pe};let V,U;const X=te=>{v(m.value)&&(V=te,U=C0({keyframes:[m.value,C(m.value)],velocity:b0(L,te,m.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return X(0),{calculatedDuration:null,next:te=>{let de=!1;return!U&&V===void 0&&(de=!0,$(te),X(te)),V!==void 0&&te>V?U.next(te-V):(!de&&$(te),m)}}}const oI=e=>{const t=({timestamp:n})=>e(n);return{start:()=>vt.update(t,!0),stop:()=>ar(t),now:()=>Xt.isProcessing?Xt.timestamp:performance.now()}},S0=2e4;function I0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<S0;)t+=n,r=e.next(t);return t>=S0?1/0:t}const aI={decay:w0,inertia:w0,tween:Rs,keyframes:Rs,spring:C0};function Ms({autoplay:e=!0,delay:t=0,driver:n=oI,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:l="loop",onPlay:c,onStop:f,onComplete:h,onUpdate:p,...m}){let v=1,C=!1,S,E;const _=()=>{E=new Promise(M=>{S=M})};_();let R;const L=aI[i]||Rs;let $;L!==Rs&&typeof r[0]!="number"&&($=m0([0,100],r,{clamp:!1}),r=[0,100]);const V=L({...m,keyframes:r});let U;l==="mirror"&&(U=L({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let X="idle",te=null,de=null,Pe=null;V.calculatedDuration===null&&a&&(V.calculatedDuration=I0(V));const{calculatedDuration:ke}=V;let He=1/0,ee=1/0;ke!==null&&(He=ke+u,ee=He*(a+1)-u);let ve=0;const ye=M=>{if(de===null)return;v>0&&(de=Math.min(de,M)),v<0&&(de=Math.min(M-ee/v,de)),te!==null?ve=te:ve=Math.round(M-de)*v;const O=ve-t*(v>=0?1:-1),y=v>=0?O<0:O>ee;ve=Math.max(O,0),X==="finished"&&te===null&&(ve=ee);let H=ve,ne=V;if(a){const G=ve/He;let q=Math.floor(G),ue=G%1;!ue&&G>=1&&(ue=1),ue===1&&q--,q=Math.min(q,a+1);const J=!!(q%2);J&&(l==="reverse"?(ue=1-ue,u&&(ue-=u/He)):l==="mirror"&&(ne=U));let le=Rr(0,1,ue);ve>ee&&(le=l==="reverse"&&J?1:0),H=le*He}const ae=y?{done:!1,value:r[0]}:ne.next(H);$&&(ae.value=$(ae.value));let{done:z}=ae;!y&&ke!==null&&(z=v>=0?ve>=ee:ve<=0);const Y=te===null&&(X==="finished"||X==="running"&&z);return p&&p(ae.value),Y&&Ke(),ae},Ee=()=>{R&&R.stop(),R=void 0},Ve=()=>{X="idle",Ee(),S(),_(),de=Pe=null},Ke=()=>{X="finished",h&&h(),Ee(),S()},F=()=>{if(C)return;R||(R=n(ye));const M=R.now();c&&c(),te!==null?de=M-te:(!de||X==="finished")&&(de=M),X==="finished"&&_(),Pe=de,te=null,X="running",R.start()};e&&F();const T={then(M,O){return E.then(M,O)},get time(){return lr(ve)},set time(M){M=$r(M),ve=M,te!==null||!R||v===0?te=M:de=R.now()-M/v},get duration(){const M=V.calculatedDuration===null?I0(V):V.calculatedDuration;return lr(M)},get speed(){return v},set speed(M){M===v||!R||(v=M,T.time=lr(ve))},get state(){return X},play:F,pause:()=>{X="paused",te=ve},stop:()=>{C=!0,X!=="idle"&&(X="idle",f&&f(),Ve())},cancel:()=>{Pe!==null&&ye(Pe),Ve()},complete:()=>{X="finished"},sample:M=>(de=0,ye(M))};return T}function sI(e){let t;return()=>(t===void 0&&(t=e()),t)}const uI=sI(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),lI=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ls=10,cI=2e4,fI=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Xg(t.ease);function dI(e,t,{onUpdate:n,onComplete:r,...i}){if(!(uI()&&lI.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let u=!1,l,c;const f=()=>{c=new Promise(R=>{l=R})};f();let{keyframes:h,duration:p=300,ease:m,times:v}=i;if(fI(t,i)){const R=Ms({...i,repeat:0,delay:0});let L={done:!1,value:h[0]};const $=[];let V=0;for(;!L.done&&V<cI;)L=R.sample(V),$.push(L.value),V+=Ls;v=void 0,h=$,p=V-Ls,m="linear"}const C=I5(e.owner.current,t,h,{...i,duration:p,ease:m,times:v}),S=()=>C.cancel(),E=()=>{vt.update(S),l(),f()};return C.onfinish=()=>{e.set(E5(h,i)),r&&r(),E()},{then(R,L){return c.then(R,L)},attachTimeline(R){return C.timeline=R,C.onfinish=null,Tt},get time(){return lr(C.currentTime||0)},set time(R){C.currentTime=$r(R)},get speed(){return C.playbackRate},set speed(R){C.playbackRate=R},get duration(){return lr(p)},play:()=>{u||(C.play(),ar(S))},pause:()=>C.pause(),stop:()=>{if(u=!0,C.playState==="idle")return;const{currentTime:R}=C;if(R){const L=Ms({...i,autoplay:!1});e.setWithVelocity(L.sample(R-Ls).value,L.sample(R).value,Ls)}E()},complete:()=>C.finish(),cancel:E}}function hI({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Tt,pause:Tt,stop:Tt,then:a=>(a(),Promise.resolve()),cancel:Tt,complete:Tt});return t?Ms({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const pI={type:"spring",stiffness:500,damping:25,restSpeed:10},gI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mI={type:"keyframes",duration:.8},vI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bI=(e,{keyframes:t})=>t.length>2?mI:ni.has(e)?e.startsWith("scale")?gI(t[1]):pI:vI,Ic=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nr.test(t)||t==="0")&&!t.startsWith("url(")),yI=new Set(["brightness","contrast","saturate","opacity"]);function xI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Is)||[];if(!r)return e;const i=n.replace(r,"");let a=yI.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const CI=/([a-z-]*)\(.*?\)/g,Ec={...Nr,getAnimatableNone:e=>{const t=e.match(CI);return t?t.map(xI).join(" "):e}},wI={...Ig,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:Ec,WebkitFilter:Ec},Ac=e=>wI[e];function E0(e,t){let n=Ac(e);return n!==Ec&&(n=Nr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const A0=e=>/^0[^.\s]+$/.test(e);function SI(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||A0(e)}function II(e,t,n,r){const i=Ic(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const u=r.from!==void 0?r.from:e.get();let l;const c=[];for(let f=0;f<a.length;f++)a[f]===null&&(a[f]=f===0?u:a[f-1]),SI(a[f])&&c.push(f),typeof a[f]=="string"&&a[f]!=="none"&&a[f]!=="0"&&(l=a[f]);if(i&&c.length&&l)for(let f=0;f<c.length;f++){const h=c[f];a[h]=E0(t,l)}return a}function EI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:u,repeatDelay:l,from:c,elapsed:f,...h}){return!!Object.keys(h).length}function _c(e,t){return e[t]||e.default||e}const Pc=(e,t,n,r={})=>i=>{const a=_c(r,e)||{},u=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-$r(u);const c=II(t,e,n,a),f=c[0],h=c[c.length-1],p=Ic(e,f),m=Ic(e,h);la(p===m,`You are trying to animate ${e} from "${f}" to "${h}". ${f} is not an animatable value - to enable this animation set ${f} to a value animatable to ${h} via the \`style\` property.`);let v={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-l,onUpdate:C=>{t.set(C),a.onUpdate&&a.onUpdate(C)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(EI(a)||(v={...v,...bI(e,v)}),v.duration&&(v.duration=$r(v.duration)),v.repeatDelay&&(v.repeatDelay=$r(v.repeatDelay)),!p||!m||S5.current||a.type===!1)return hI(v);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const C=dI(t,e,v);if(C)return C}return Ms(v)};function Ds(e){return!!(rn(e)&&e.add)}const _0=e=>/^\-?\d*\.?\d+$/.test(e);function Tc(e,t){e.indexOf(t)===-1&&e.push(t)}function Fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Oc{constructor(){this.subscriptions=[]}add(t){return Tc(this.subscriptions,t),()=>Fc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const u=this.subscriptions[a];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const P0=new Set;function Rc(e,t,n){e||P0.has(t)||(console.warn(t),n&&console.warn(n),P0.add(t))}const AI=e=>!isNaN(parseFloat(e));class _I{constructor(t,n={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:u}=Xt;this.lastUpdated!==u&&(this.timeDelta=a,this.lastUpdated=u,vt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=AI(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Rc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Oc);const r=this.events[t].add(n);return t==="change"?()=>{r(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?v0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zi(e,t){return new _I(e,t)}const T0=e=>t=>t.test(e),F0=[ri,Ne,Un,Mr,BS,VS,{test:e=>e==="auto",parse:e=>e}],ha=e=>F0.find(T0(e)),PI=[...F0,Qt,Nr],TI=e=>PI.find(T0(e));function FI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zi(n))}function OI(e,t){const n=Fs(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const u in a){const l=QS(a[u]);FI(e,u,l)}}function RI(e,t,n){var r,i;const a=Object.keys(t).filter(l=>!e.hasValue(l)),u=a.length;if(u)for(let l=0;l<u;l++){const c=a[l],f=t[c];let h=null;Array.isArray(f)&&(h=f[0]),h===null&&(h=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),h!=null&&(typeof h=="string"&&(_0(h)||A0(h))?h=parseFloat(h):!TI(h)&&Nr.test(f)&&(h=E0(c,f)),e.addValue(c,zi(h,{owner:e})),n[c]===void 0&&(n[c]=h),h!==null&&e.setBaseTarget(c,h))}}function MI(e,t){return t?(t[e]||t.default||t).from:void 0}function LI(e,t,n){const r={};for(const i in e){const a=MI(i,t);if(a!==void 0)r[i]=a;else{const u=n.getValue(i);u&&(r[i]=u.get())}}return r}function DI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $I(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function O0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(a=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const m=e.getValue(p),v=l[p];if(!m||v===void 0||h&&DI(h,p))continue;const C={delay:n,elapsed:0,..._c(a||{},p)};if(window.HandoffAppearAnimations){const _=e.getProps()[hg];if(_){const R=window.HandoffAppearAnimations(_,p,m,vt);R!==null&&(C.elapsed=R,C.isHandoff=!0)}}let S=!C.isHandoff&&!$I(m,v);if(C.type==="spring"&&(m.getVelocity()||C.velocity)&&(S=!1),m.animation&&(S=!1),S)continue;m.start(Pc(p,m,v,e.shouldReduceMotion&&ni.has(p)?{type:!1}:C));const E=m.animation;Ds(c)&&(c.add(p),E.then(()=>c.remove(p))),f.push(E)}return u&&Promise.all(f).then(()=>{u&&OI(e,u)}),f}function Mc(e,t,n={}){const r=Fs(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(O0(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:p}=i;return NI(e,t,f+c,h,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,f]=l==="beforeChildren"?[a,u]:[u,a];return c().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function NI(e,t,n=0,r=0,i=1,a){const u=[],l=(e.variantChildren.size-1)*r,c=i===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(VI).forEach((f,h)=>{f.notify("AnimationStart",t),u.push(Mc(f,t,{...a,delay:n+c(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(u)}function VI(e,t){return e.sortNodePosition(t)}function BI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mc(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mc(e,t,n);else{const i=typeof t=="function"?Fs(e,t,n.custom):t;r=Promise.all(O0(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const kI=[...Ql].reverse(),jI=Ql.length;function GI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BI(e,n,r)))}function HI(e){let t=GI(e);const n=ZI();let r=!0;const i=(c,f)=>{const h=Fs(e,f);if(h){const{transition:p,transitionEnd:m,...v}=h;c={...c,...v,...m}}return c};function a(c){t=c(e)}function u(c,f){const h=e.getProps(),p=e.getVariantContext(!0)||{},m=[],v=new Set;let C={},S=1/0;for(let _=0;_<jI;_++){const R=kI[_],L=n[R],$=h[R]!==void 0?h[R]:p[R],V=na($),U=R===f?L.isActive:null;U===!1&&(S=_);let X=$===p[R]&&$!==h[R]&&V;if(X&&r&&e.manuallyAnimateOnMount&&(X=!1),L.protectedKeys={...C},!L.isActive&&U===null||!$&&!L.prevProp||xs($)||typeof $=="boolean")continue;const te=WI(L.prevProp,$);let de=te||R===f&&L.isActive&&!X&&V||_>S&&V;const Pe=Array.isArray($)?$:[$];let ke=Pe.reduce(i,{});U===!1&&(ke={});const{prevResolvedValues:He={}}=L,ee={...He,...ke},ve=ye=>{de=!0,v.delete(ye),L.needsAnimating[ye]=!0};for(const ye in ee){const Ee=ke[ye],Ve=He[ye];C.hasOwnProperty(ye)||(Ee!==Ve?As(Ee)&&As(Ve)?!Wg(Ee,Ve)||te?ve(ye):L.protectedKeys[ye]=!0:Ee!==void 0?ve(ye):v.add(ye):Ee!==void 0&&v.has(ye)?ve(ye):L.protectedKeys[ye]=!0)}L.prevProp=$,L.prevResolvedValues=ke,L.isActive&&(C={...C,...ke}),r&&e.blockInitialAnimation&&(de=!1),de&&!X&&m.push(...Pe.map(ye=>({animation:ye,options:{type:R,...c}})))}if(v.size){const _={};v.forEach(R=>{const L=e.getBaseTarget(R);L!==void 0&&(_[R]=L)}),m.push({animation:_})}let E=!!m.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(m):Promise.resolve()}function l(c,f,h){var p;if(n[c].isActive===f)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(v=>{var C;return(C=v.animationState)===null||C===void 0?void 0:C.setActive(c,f)}),n[c].isActive=f;const m=u(h,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:u,setActive:l,setAnimateFunction:a,getState:()=>n}}function WI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wg(t,e):!1}function oi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ZI(){return{animate:oi(!0),whileInView:oi(),whileHover:oi(),whileTap:oi(),whileDrag:oi(),whileFocus:oi(),exit:oi()}}class XI extends Dr{constructor(t){super(t),t.animationState||(t.animationState=HI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),xs(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let zI=0;class UI extends Dr{constructor(){super(...arguments),this.id=zI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const YI={animation:{Feature:XI},exit:{Feature:UI}},R0=(e,t)=>Math.abs(e-t);function JI(e,t){const n=R0(e.x,t.x),r=R0(e.y,t.y);return Math.sqrt(n**2+r**2)}class M0{constructor(t,n,{transformPagePoint:r,contextWindow:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Dc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=JI(h.offset,{x:0,y:0})>=3;if(!p&&!m)return;const{point:v}=h,{timestamp:C}=Xt;this.history.push({...v,timestamp:C});const{onStart:S,onMove:E}=this.handlers;p||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Lc(p,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:m,onSessionEnd:v}=this.handlers,C=Dc(h.type==="pointercancel"?this.lastMoveEventInfo:Lc(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,C),v&&v(h,C)},!$g(t))return;this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Ts(t),u=Lc(a,this.transformPagePoint),{point:l}=u,{timestamp:c}=Xt;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Dc(u,this.history)),this.removeListeners=Lr(ur(this.contextWindow,"pointermove",this.handlePointerMove),ur(this.contextWindow,"pointerup",this.handlePointerUp),ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ar(this.updatePoint)}}function Lc(e,t){return t?{point:t(e.point)}:e}function L0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dc({point:e},t){return{point:e,delta:L0(e,D0(t)),offset:L0(e,KI(t)),velocity:qI(t,.1)}}function KI(e){return e[0]}function D0(e){return e[e.length-1]}function qI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=D0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$r(t)));)n--;if(!r)return{x:0,y:0};const a=lr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const u={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function dn(e){return e.max-e.min}function $c(e,t=0,n=.01){return Math.abs(e-t)<=n}function $0(e,t,n,r=.5){e.origin=r,e.originPoint=_t(t.min,t.max,e.origin),e.scale=dn(n)/dn(t),($c(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_t(n.min,n.max,e.origin)-e.originPoint,($c(e.translate)||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){$0(e.x,t.x,n.x,r?r.originX:void 0),$0(e.y,t.y,n.y,r?r.originY:void 0)}function N0(e,t,n){e.min=n.min+t.min,e.max=e.min+dn(t)}function QI(e,t,n){N0(e.x,t.x,n.x),N0(e.y,t.y,n.y)}function V0(e,t,n){e.min=t.min-n.min,e.max=e.min+dn(t)}function ga(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}function eE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_t(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_t(n,e,r.max):Math.min(e,n)),e}function B0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tE(e,{top:t,left:n,bottom:r,right:i}){return{x:B0(e.x,n,i),y:B0(e.y,t,r)}}function k0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nE(e,t){return{x:k0(e.x,t.x),y:k0(e.y,t.y)}}function rE(e,t){let n=.5;const r=dn(e),i=dn(t);return i>r?n=da(t.min,t.max-r,e.min):r>i&&(n=da(e.min,e.max-i,t.min)),Rr(0,1,n)}function iE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Nc=.35;function oE(e=Nc){return e===!1?e=0:e===!0&&(e=Nc),{x:j0(e,"left","right"),y:j0(e,"top","bottom")}}function j0(e,t,n){return{min:G0(e,t),max:G0(e,n)}}function G0(e,t){return typeof e=="number"?e:e[t]||0}const H0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ui=()=>({x:H0(),y:H0()}),W0=()=>({min:0,max:0}),$t=()=>({x:W0(),y:W0()});function Yn(e){return[e("x"),e("y")]}function Z0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vc(e){return e===void 0||e===1}function Bc({scale:e,scaleX:t,scaleY:n}){return!Vc(e)||!Vc(t)||!Vc(n)}function ai(e){return Bc(e)||X0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function X0(e){return z0(e.x)||z0(e.y)}function z0(e){return e&&e!=="0%"}function $s(e,t,n){const r=e-n,i=t*r;return n+i}function U0(e,t,n,r,i){return i!==void 0&&(e=$s(e,i,r)),$s(e,n,r)+t}function kc(e,t=0,n=1,r,i){e.min=U0(e.min,t,n,r,i),e.max=U0(e.max,t,n,r,i)}function Y0(e,{x:t,y:n}){kc(e.x,t.translate,t.scale,t.originPoint),kc(e.y,n.translate,n.scale,n.originPoint)}function uE(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,u;for(let l=0;l<i;l++){a=n[l],u=a.projectionDelta;const c=a.instance;c&&c.style&&c.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Yi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Y0(e,u)),r&&ai(a.latestValues)&&Yi(e,a.latestValues))}t.x=J0(t.x),t.y=J0(t.y)}function J0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Vr(e,t){e.min=e.min+t,e.max=e.max+t}function K0(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,u=_t(e.min,e.max,a);kc(e,t[n],t[r],u,t.scale)}const lE=["x","scaleX","originX"],cE=["y","scaleY","originY"];function Yi(e,t){K0(e.x,t,lE),K0(e.y,t,cE)}function q0(e,t){return Z0(sE(e.getBoundingClientRect(),t))}function fE(e,t,n){const r=q0(e,n),{scroll:i}=t;return i&&(Vr(r.x,i.offset.x),Vr(r.y,i.offset.y)),r}const Q0=({current:e})=>e?e.ownerDocument.defaultView:null,dE=new WeakMap;class hE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{this.stopAnimation(),n&&this.snapToCursor(Ts(c,"page").point)},a=(c,f)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kg(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yn(C=>{let S=this.getAxisMotionValue(C).get()||0;if(Un.test(S)){const{projection:E}=this.visualElement;if(E&&E.layout){const _=E.layout.layoutBox[C];_&&(S=dn(_)*(parseFloat(S)/100))}}this.originPoint[C]=S}),m&&vt.update(()=>m(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},u=(c,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:C}=f;if(p&&this.currentDirection===null){this.currentDirection=pE(C),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f);this.panSession=new M0(t,{onSessionStart:i,onStart:a,onMove:u,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:Q0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&vt.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ns(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=eE(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Zi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tE(i.layoutBox,n):this.constraints=!1,this.elastic=oE(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Yn(u=>{this.getAxisMotionValue(u)&&(this.constraints[u]=iE(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zi(t))return!1;const r=t.current;Ln(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=fE(r,i.root,this.visualElement.getTransformPagePoint());let u=nE(i.layout.layoutBox,a);if(n){const l=n(aE(u));this.hasMutatedConstraints=!!l,l&&(u=Z0(l))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},f=Yn(h=>{if(!Ns(h,n,this.currentDirection))return;let p=c&&c[h]||{};u&&(p={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,C={type:"inertia",velocity:r?t[h]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...a,...p};return this.startAxisValueAnimation(h,C)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Pc(t,r,0,n))}stopAnimation(){Yn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yn(n=>{const{drag:r}=this.getProps();if(!Ns(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];a.set(t[n]-_t(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Yn(u=>{const l=this.getAxisMotionValue(u);if(l){const c=l.get();i[u]=rE({min:c,max:c},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yn(u=>{if(!Ns(u,t,null))return;const l=this.getAxisMotionValue(u),{min:c,max:f}=this.constraints[u];l.set(_t(c,f,i[u]))})}addListeners(){if(!this.visualElement.current)return;dE.set(this.visualElement,this);const t=this.visualElement.current,n=ur(t,"pointerdown",c=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Zi(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const u=sr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(Yn(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=c[h].translate,p.set(p.get()+c[h].translate))}),this.visualElement.render())});return()=>{u(),n(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:u=Nc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:u,dragMomentum:l}}}function Ns(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gE extends Dr{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new hE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const em=e=>(t,n)=>{e&&vt.update(()=>e(t,n))};class mE extends Dr{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new M0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:em(t),onStart:em(n),onMove:r,onEnd:(a,u)=>{delete this.session,i&&vt.update(()=>i(a,u))}}}mount(){this.removePointerDownListener=ur(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function vE(){const e=b.useContext(bs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ma={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=tm(e,t.target.x),r=tm(e,t.target.y);return`${n}% ${r}%`}},bE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Nr.parse(e);if(i.length>5)return r;const a=Nr.createTransformer(e),u=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+u]/=l,i[1+u]/=c;const f=_t(l,c,.5);return typeof i[2+u]=="number"&&(i[2+u]/=f),typeof i[3+u]=="number"&&(i[3+u]/=f),a(i)}};class yE extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;OS(xE),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,u=r.projection;return u&&(u.isPresent=a,i||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||vt.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nm(e){const[t,n]=vE(),r=b.useContext(tc);return b.createElement(yE,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(vg),isPresent:t,safeToRemove:n})}const xE={borderRadius:{...ma,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ma,borderTopRightRadius:ma,borderBottomLeftRadius:ma,borderBottomRightRadius:ma,boxShadow:bE},rm=["TopLeft","TopRight","BottomLeft","BottomRight"],CE=rm.length,im=e=>typeof e=="string"?parseFloat(e):e,om=e=>typeof e=="number"||Ne.test(e);function wE(e,t,n,r,i,a){i?(e.opacity=_t(0,n.opacity!==void 0?n.opacity:1,SE(r)),e.opacityExit=_t(t.opacity!==void 0?t.opacity:1,0,IE(r))):a&&(e.opacity=_t(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<CE;u++){const l=`border${rm[u]}Radius`;let c=am(t,l),f=am(n,l);if(c===void 0&&f===void 0)continue;c||(c=0),f||(f=0),c===0||f===0||om(c)===om(f)?(e[l]=Math.max(_t(im(c),im(f),r),0),(Un.test(f)||Un.test(c))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=_t(t.rotate||0,n.rotate||0,r))}function am(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SE=sm(0,.5,Qg),IE=sm(.5,.95,Tt);function sm(e,t,n){return r=>r<e?0:r>t?1:n(da(e,t,r))}function um(e,t){e.min=t.min,e.max=t.max}function Sn(e,t){um(e.x,t.x),um(e.y,t.y)}function lm(e,t,n,r,i){return e-=t,e=$s(e,1/n,r),i!==void 0&&(e=$s(e,1/i,r)),e}function EE(e,t=0,n=1,r=.5,i,a=e,u=e){if(Un.test(t)&&(t=parseFloat(t),t=_t(u.min,u.max,t/100)-u.min),typeof t!="number")return;let l=_t(a.min,a.max,r);e===a&&(l-=t),e.min=lm(e.min,t,n,l,i),e.max=lm(e.max,t,n,l,i)}function cm(e,t,[n,r,i],a,u){EE(e,t[n],t[r],t[i],t.scale,a,u)}const AE=["x","scaleX","originX"],_E=["y","scaleY","originY"];function fm(e,t,n,r){cm(e.x,t,AE,n?n.x:void 0,r?r.x:void 0),cm(e.y,t,_E,n?n.y:void 0,r?r.y:void 0)}function dm(e){return e.translate===0&&e.scale===1}function hm(e){return dm(e.x)&&dm(e.y)}function PE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function pm(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gm(e){return dn(e.x)/dn(e.y)}class TE{constructor(){this.members=[]}add(t){Tc(this.members,t),t.scheduleRender()}remove(t){if(Fc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mm(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:f,rotateY:h}=n;c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const FE=(e,t)=>e.depth-t.depth;class OE{constructor(){this.children=[],this.isDirty=!1}add(t){Tc(this.children,t),this.isDirty=!0}remove(t){Fc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FE),this.isDirty=!1,this.children.forEach(t)}}function RE(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ar(r),e(a-t))};return vt.read(r,!0),()=>ar(r)}function ME(e){window.MotionDebug&&window.MotionDebug.record(e)}function LE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function DE(e,t,n){const r=rn(e)?e:zi(e);return r.start(Pc("",r,t,n)),r.animation}const vm=["","X","Y","Z"],$E={visibility:"hidden"},bm=1e3;let NE=0;const si={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ym({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=t==null?void 0:t()){this.id=NE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,si.totalNodes=si.resolvedTargetDeltas=si.recalculatedProjection=0,this.nodes.forEach(kE),this.nodes.forEach(ZE),this.nodes.forEach(XE),this.nodes.forEach(jE),ME(si)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new OE)}addEventListener(u,l){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Oc),this.eventHandlers.get(u).add(l)}notifyListeners(u,...l){const c=this.eventHandlers.get(u);c&&c.notify(...l)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=LE(u),this.instance=u;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||c)&&(this.isLayoutDirty=!0),e){let p;const m=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=RE(m,250),Vs.hasAnimatedSinceResize&&(Vs.hasAnimatedSinceResize=!1,this.nodes.forEach(Cm))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||KE,{onLayoutAnimationStart:E,onLayoutAnimationComplete:_}=h.getProps(),R=!this.targetLayout||!pm(this.targetLayout,C)||v,L=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||L||m&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,L);const $={..._c(S,"layout"),onPlay:E,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else m||Cm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ar(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const p=this.path[h];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xm);return}this.isUpdating||this.nodes.forEach(HE),this.isUpdating=!1,this.nodes.forEach(WE),this.nodes.forEach(VE),this.nodes.forEach(BE),this.clearAllSnapshots();const l=performance.now();Xt.delta=Rr(0,1e3/60,l-Xt.timestamp),Xt.timestamp=l,Xt.isProcessing=!0,cc.update.process(Xt),cc.preRender.process(Xt),cc.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(GE),this.sharedNodes.forEach(UE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:u,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const u=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!hm(this.projectionDelta),c=this.getTransformTemplate(),f=c?c(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;u&&(l||ai(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return u&&(c=this.removeTransform(c)),qE(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return $t();const l=u.measureViewportBox(),{scroll:c}=this.root;return c&&(Vr(l.x,c.offset.x),Vr(l.y,c.offset.y)),l}removeElementScroll(u){const l=$t();Sn(l,u);for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:h,options:p}=f;if(f!==this.root&&h&&p.layoutScroll){if(h.isRoot){Sn(l,u);const{scroll:m}=this.root;m&&(Vr(l.x,-m.offset.x),Vr(l.y,-m.offset.y))}Vr(l.x,h.offset.x),Vr(l.y,h.offset.y)}}return l}applyTransform(u,l=!1){const c=$t();Sn(c,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Yi(c,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ai(h.latestValues)&&Yi(c,h.latestValues)}return ai(this.latestValues)&&Yi(c,this.latestValues),c}removeTransform(u){const l=$t();Sn(l,u);for(let c=0;c<this.path.length;c++){const f=this.path[c];if(!f.instance||!ai(f.latestValues))continue;Bc(f.latestValues)&&f.updateSnapshot();const h=$t(),p=f.measurePageBox();Sn(h,p),fm(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ai(this.latestValues)&&fm(l,this.latestValues),l}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=Xt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),ga(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sn(this.target,this.layout.layoutBox),Y0(this.target,this.targetDelta)):Sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$t(),this.relativeTargetOrigin=$t(),ga(this.relativeTargetOrigin,this.target,v.target),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}si.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Bc(this.parent.latestValues)||X0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;Sn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;uE(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:C}=l;if(!C){this.projectionTransform&&(this.projectionDelta=Ui(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ui(),this.projectionDeltaWithTransform=Ui());const S=this.projectionTransform;pa(this.projectionDelta,this.layoutCorrected,C,this.latestValues),this.projectionTransform=mm(this.projectionDelta,this.treeScale),(this.projectionTransform!==S||this.treeScale.x!==m||this.treeScale.y!==v)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C)),si.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),u){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,l=!1){const c=this.snapshot,f=c?c.latestValues:{},h={...this.latestValues},p=Ui();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=$t(),v=c?c.source:void 0,C=this.layout?this.layout.source:void 0,S=v!==C,E=this.getStack(),_=!E||E.members.length<=1,R=!!(S&&!_&&this.options.crossfade===!0&&!this.path.some(JE));this.animationProgress=0;let L;this.mixTargetDelta=$=>{const V=$/1e3;wm(p.x,u.x,V),wm(p.y,u.y,V),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ga(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),YE(this.relativeTarget,this.relativeTargetOrigin,m,V),L&&PE(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=$t()),Sn(L,this.relativeTarget)),S&&(this.animationValues=h,wE(h,f,this.latestValues,V,R,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ar(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{Vs.hasAnimatedSinceResize=!0,this.currentAnimation=DE(0,bm,{...u,onUpdate:l=>{this.mixTargetDelta(l),u.onUpdate&&u.onUpdate(l)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:c,layout:f,latestValues:h}=u;if(!(!l||!c||!f)){if(this!==u&&this.layout&&f&&_m(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||$t();const p=dn(this.layout.layoutBox.x);c.x.min=u.target.x.min,c.x.max=c.x.min+p;const m=dn(this.layout.layoutBox.y);c.y.min=u.target.y.min,c.y.max=c.y.min+m}Sn(l,c),Yi(l,h),pa(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new TE),this.sharedNodes.get(u).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:l}=this.options;return l?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:l}=this.options;return l?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:c}=u;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const f={};for(let h=0;h<vm.length;h++){const p="rotate"+vm[h];c[p]&&(f[p]=c[p],u.setStaticValue(p,0))}u.render();for(const h in f)u.setStaticValue(h,f[h]);u.scheduleRender()}getProjectionStyles(u){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $E;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=_s(u==null?void 0:u.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=_s(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ai(this.latestValues)&&(S.transform=h?h({},""):"none",this.hasProjected=!1),S}const m=p.animationValues||p.latestValues;this.applyTransformsToTarget(),f.transform=mm(this.projectionDeltaWithTransform,this.treeScale,m),h&&(f.transform=h(m,f.transform));const{x:v,y:C}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${C.origin*100}% 0`,p.animationValues?f.opacity=p===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in ws){if(m[S]===void 0)continue;const{correct:E,applyTo:_}=ws[S],R=f.transform==="none"?m[S]:E(m[S],p);if(_){const L=_.length;for(let $=0;$<L;$++)f[_[$]]=R}else f[S]=R}return this.options.layoutId&&(f.pointerEvents=p===this?_s(u==null?void 0:u.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var l;return(l=u.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(xm),this.root.sharedNodes.clear()}}}function VE(e){e.updateLayout()}function BE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,u=n.source!==e.layout.source;a==="size"?Yn(p=>{const m=u?n.measuredBox[p]:n.layoutBox[p],v=dn(m);m.min=r[p].min,m.max=m.min+v}):_m(a,n.layoutBox,r)&&Yn(p=>{const m=u?n.measuredBox[p]:n.layoutBox[p],v=dn(r[p]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const l=Ui();pa(l,r,n.layoutBox);const c=Ui();u?pa(c,e.applyTransform(i,!0),n.measuredBox):pa(c,r,n.layoutBox);const f=!hm(l);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const C=$t();ga(C,n.layoutBox,m.layoutBox);const S=$t();ga(S,r,v.layoutBox),pm(C,S)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=C,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kE(e){si.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GE(e){e.clearSnapshot()}function xm(e){e.clearMeasurements()}function HE(e){e.isLayoutDirty=!1}function WE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ZE(e){e.resolveTargetDelta()}function XE(e){e.calcProjection()}function zE(e){e.resetRotation()}function UE(e){e.removeLeadSnapshot()}function wm(e,t,n){e.translate=_t(t.translate,0,n),e.scale=_t(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Sm(e,t,n,r){e.min=_t(t.min,n.min,r),e.max=_t(t.max,n.max,r)}function YE(e,t,n,r){Sm(e.x,t.x,n.x,r),Sm(e.y,t.y,n.y,r)}function JE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KE={duration:.45,ease:[.4,0,.1,1]},Im=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Em=Im("applewebkit/")&&!Im("chrome/")?Math.round:Tt;function Am(e){e.min=Em(e.min),e.max=Em(e.max)}function qE(e){Am(e.x),Am(e.y)}function _m(e,t,n){return e==="position"||e==="preserve-aspect"&&!$c(gm(t),gm(n),.2)}const QE=ym({attachResizeListener:(e,t)=>sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Pm=ym({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new QE({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eA={pan:{Feature:mE},drag:{Feature:gE,ProjectionNode:Pm,MeasureLayout:nm}},tA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nA(e){const t=tA.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const rA=4;function Gc(e,t,n=1){Ln(n<=rA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=nA(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const u=a.trim();return _0(u)?parseFloat(u):u}else return rc(i)?Gc(i,t,n+1):i}function iA(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!rc(a))return;const u=Gc(a,r);u&&i.set(u)});for(const i in t){const a=t[i];if(!rc(a))continue;const u=Gc(a,r);u&&(t[i]=u,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const oA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Tm=e=>oA.has(e),aA=e=>Object.keys(e).some(Tm),Bs=e=>e===ri||e===Ne,Fm=(e,t)=>parseFloat(e.split(", ")[t]),Om=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Fm(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?Fm(a[1],e):0}},sA=new Set(["x","y","z"]),uA=ia.filter(e=>!sA.has(e));function lA(e){const t=[];return uA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Ji={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Om(4,13),y:Om(5,14)};Ji.translateX=Ji.x,Ji.translateY=Ji.y;const cA=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:u}=a,l={};u==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{l[f]=Ji[f](r,a)}),t.render();const c=t.measureViewportBox();return n.forEach(f=>{const h=t.getValue(f);h&&h.jump(l[f]),e[f]=Ji[f](c,a)}),e},fA=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Tm);let a=[],u=!1;const l=[];if(i.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let h=n[c],p=ha(h);const m=t[c];let v;if(As(m)){const C=m.length,S=m[0]===null?1:0;h=m[S],p=ha(h);for(let E=S;E<C&&m[E]!==null;E++)v?Ln(ha(m[E])===v,"All keyframes must be of the same type"):(v=ha(m[E]),Ln(v===p||Bs(p)&&Bs(v),"Keyframes must be of the same dimension as the current value"))}else v=ha(m);if(p!==v)if(Bs(p)&&Bs(v)){const C=f.get();typeof C=="string"&&f.set(parseFloat(C)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&v===Ne&&(t[c]=m.map(parseFloat))}else p!=null&&p.transform&&(v!=null&&v.transform)&&(h===0||m===0)?h===0?f.set(v.transform(h)):t[c]=p.transform(m):(u||(a=lA(e),u=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],f.jump(m))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,f=cA(t,e,l);return a.length&&a.forEach(([h,p])=>{e.getValue(h).set(p)}),e.render(),ys&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function dA(e,t,n,r){return aA(t)?fA(e,t,n,r):{target:t,transitionEnd:r}}const hA=(e,t,n,r)=>{const i=iA(e,t,r);return t=i.target,r=i.transitionEnd,dA(e,t,n,r)},Hc={current:null},Rm={current:!1};function pA(){if(Rm.current=!0,!!ys)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hc.current=e.matches;e.addListener(t),t()}else Hc.current=!1}function gA(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],u=n[i];if(rn(a))e.addValue(i,a),Ds(r)&&r.add(i),process.env.NODE_ENV==="development"&&Rc(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(rn(u))e.addValue(i,zi(a,{owner:e})),Ds(r)&&r.remove(i);else if(u!==a)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(a)}else{const l=e.getStaticValue(i);e.addValue(i,zi(l!==void 0?l:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Mm=new WeakMap,Lm=Object.keys(ra),mA=Lm.length,Dm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vA=ec.length;class bA{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>vt.render(this.render,!1,!0);const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.isControllingVariants=Cs(n),this.isVariantNode=pg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{});for(const p in h){const m=h[p];l[p]!==void 0&&rn(m)&&(m.set(l[p],!1),Ds(f)&&f.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Mm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Rm.current||pA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Hc.current,process.env.NODE_ENV!=="production"&&Rc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Mm.delete(this.current),this.projection&&this.projection.unmount(),ar(this.notifyUpdate),ar(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=ni.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&vt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let u,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?la(!1,c):Ln(!1,c)}for(let c=0;c<mA;c++){const f=Lm[c],{isEnabled:h,Feature:p,ProjectionNode:m,MeasureLayout:v}=ra[f];m&&(u=m),h(n)&&(!this.features[f]&&p&&(this.features[f]=new p(this)),v&&(l=v))}if(!this.projection&&u){this.projection=new u(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:f,drag:h,dragConstraints:p,layoutScroll:m,layoutRoot:v}=n;this.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!h||p&&Zi(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:v})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Dm.length;r++){const i=Dm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=gA(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<vA;r++){const i=ec[r],a=this.props[i];(na(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=zi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=lc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!rn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Oc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $m extends bA{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let u=LI(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),u&&(u=i(u))),a){RI(this,r,u);const l=hA(this,r,u,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function yA(e){return window.getComputedStyle(e)}class xA extends $m{readValueFromInstance(t,n){if(ni.has(n)){const r=Ac(n);return r&&r.default||0}else{const r=yA(t),i=(xg(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return q0(t,n)}build(t,n,r,i){ic(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return uc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Tg(t,n,r,i)}}class CA extends $m{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ni.has(n)){const r=Ac(n);return r&&r.default||0}return n=Fg.has(n)?n:ql(n),t.getAttribute(n)}measureInstanceViewportBox(){return $t()}scrapeMotionValuesFromProps(t,n){return Rg(t,n)}build(t,n,r,i){ac(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Og(t,n,r,i)}mount(t){this.isSVGTag=sc(t.tagName),super.mount(t)}}const wA=(e,t)=>nc(e)?new CA(t,{enableHardwareAcceleration:!1}):new xA(t,{enableHardwareAcceleration:!0}),SA={...YI,...x5,...eA,...{layout:{ProjectionNode:Pm,MeasureLayout:nm}}},Ki=TS((e,t)=>s5(e,t,SA,wA));function Nm(){const e=b.useRef(!1);return Kl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function IA(){const e=Nm(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>vt.postRender(r),[r]),t]}class EA extends ie.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AA({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:a,height:u,top:l,left:c}=i.current;if(t||!r.current||!a||!u)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
|
|
58
58
|
[data-motion-pop-id="${n}"] {
|
|
59
59
|
position: absolute !important;
|
|
60
60
|
width: ${a}px !important;
|
|
@@ -62,9 +62,9 @@ Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(
|
|
|
62
62
|
top: ${l}px !important;
|
|
63
63
|
left: ${c}px !important;
|
|
64
64
|
}
|
|
65
|
-
`),()=>{document.head.removeChild(f)}},[t]),re.createElement(rA,{isPresent:t,childRef:r,sizeRef:i},re.cloneElement(e,{ref:r}))}const Mc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:u})=>{const l=bg(oA),c=b.useId(),f=b.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const h of l.values())if(!h)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),a?void 0:[n]);return b.useMemo(()=>{l.forEach((p,h)=>l.set(h,!1))},[n]),re.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),u==="popLayout"&&(e=re.createElement(iA,{isPresent:n},e)),re.createElement(ps.Provider,{value:f},e)};function oA(){return new Map}function aA(e){return b.useEffect(()=>()=>e(),[])}const oi=e=>e.key||"";function sA(e,t){e.forEach(n=>{const r=oi(n);t.set(r,n)})}function uA(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const $s=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:u="sync"})=>{Rn(!i,"Replace exitBeforeEnter with mode='wait'");const l=b.useContext(Wl).forceRender||nA()[0],c=wm(),f=uA(e);let p=f;const h=b.useRef(new Map).current,m=b.useRef(p),v=b.useRef(new Map).current,S=b.useRef(!0);if(kl(()=>{S.current=!1,sA(f,v),m.current=p}),aA(()=>{S.current=!0,v.clear(),h.clear()}),S.current)return re.createElement(re.Fragment,null,p.map(M=>re.createElement(Mc,{key:oi(M),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:u},M)));p=[...p];const C=m.current.map(oi),E=f.map(oi),P=C.length;for(let M=0;M<P;M++){const $=C[M];E.indexOf($)===-1&&!h.has($)&&h.set($,void 0)}return u==="wait"&&h.size&&(p=[]),h.forEach((M,$)=>{if(E.indexOf($)!==-1)return;const B=v.get($);if(!B)return;const N=C.indexOf($);let U=M;if(!U){const X=()=>{h.delete($);const ee=Array.from(v.keys()).filter(fe=>!E.includes(fe));if(ee.forEach(fe=>v.delete(fe)),m.current=f.filter(fe=>{const Oe=oi(fe);return Oe===$||ee.includes(Oe)}),!h.size){if(c.current===!1)return;l(),r&&r()}};U=re.createElement(Mc,{key:oi(B),isPresent:!1,onExitComplete:X,custom:t,presenceAffectsLayout:a,mode:u},B),h.set($,U)}p.splice(N,0,U)}),p=p.map(M=>{const $=M.key;return h.has($)?M:re.createElement(Mc,{key:oi(M),isPresent:!0,presenceAffectsLayout:a,mode:u},M)}),process.env.NODE_ENV!=="production"&&u==="wait"&&p.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),re.createElement(re.Fragment,null,h.size?p:p.map(M=>b.cloneElement(M)))};function Ds({isOpen:e,close:t,children:n,scrollToTop:r,isDialog:i=!1}){const a=()=>i?et("transition inset-0 bg-black",{"absolute z-[90]":r&&e,"fixed z-[90]":!r&&e,"bg-opacity-0 pointer-events-none backdrop-blur-none":!e,"bg-opacity-40 backdrop-blur-sm overflow-y-scroll":e}):et("transition inset-0 bg-black absolute z-[90]",{"bg-opacity-0 pointer-events-none backdrop-blur-none":!e,"bg-opacity-40 backdrop-blur-sm overflow-y-scroll":e});return b.useEffect(()=>{e?(document.body.style.overflow="hidden",r&&window.scrollTo({top:0})):document.body.style.overflow="unset"},[e,r]),F.jsx(Ui.div,{className:a(),onClick:t,children:F.jsx("div",{className:"relative",children:n})})}const Yi=({children:e,className:t,size:n="md",variant:r="primary",...i})=>F.jsx("button",{className:et("rounded-lg text-xs flex items-center justify-center","disabled:bg-brand-disabled disabled:text-white disabled:cursor-not-allowed","hover:bg-brand-secondary hover:text-white","transition hover:transition",{"bg-brand-primary text-white":r==="primary"||r==="remove","bg-brand-tertiary-light text-brand-primary":r==="secondary"},{"h-5 gap-1.5":r!=="remove"&&n==="sm","h-9 gap-2":r!=="remove"&&n==="md","h-9":r==="remove"},{"w-full":r!=="remove","w-9":r==="remove"},{className:t!==""}),...i,children:e}),lA=({children:e,className:t,...n})=>F.jsx("div",{className:et("w-full px-3 py-3.5 rounded","bg-white dark:bg-brand-background-dark","shadow-md hover:shadow-lg hover:transition-shadow transition-shadow",t),...n,children:e}),cA=({label:e,name:t,className:n,...r})=>F.jsx("div",{className:et("bg-brand-light-gray rounded-lg inline-block p-1.5 transition","border-2 border-transparent focus-within:border-brand-primary focus-within:transition",{className:n!==""}),children:F.jsxs("label",{htmlFor:(r==null?void 0:r.id)||t,className:et("relative","flex gap-2 items-center justify-center"),children:[F.jsx("input",{name:t,type:"checkbox",className:et("relative appearance-none w-5 h-5 border rounded-md text-brand-primary cursor-pointer transition-all focus:ring-0 focus:ring-offset-0 focus:outline-none","checked:after:absolute checked:before:absolute","checked:after:inset-0 checked:before:inset-0","checked:after:rounded-md checked:before:rounded-md checked:before:content-[✓] text-brand-primary","checked:after:scale-75","checked:border-2"),...r}),F.jsx("span",{className:"text-xs text-brand-secondary-text",children:e})]})});var wn={},pa={},fA=typeof rr=="object"&&rr&&rr.Object===Object&&rr,Sm=fA,dA=Sm,pA=typeof self=="object"&&self&&self.Object===Object&&self,hA=dA||pA||Function("return this")(),Un=hA,gA=Un,mA=gA.Symbol,ha=mA,Im=ha,Em=Object.prototype,vA=Em.hasOwnProperty,bA=Em.toString,ga=Im?Im.toStringTag:void 0;function yA(e){var t=vA.call(e,ga),n=e[ga];try{e[ga]=void 0;var r=!0}catch{}var i=bA.call(e);return r&&(t?e[ga]=n:delete e[ga]),i}var xA=yA,CA=Object.prototype,wA=CA.toString;function SA(e){return wA.call(e)}var IA=SA,Am=ha,EA=xA,AA=IA,_A="[object Null]",PA="[object Undefined]",_m=Am?Am.toStringTag:void 0;function TA(e){return e==null?e===void 0?PA:_A:_m&&_m in Object(e)?EA(e):AA(e)}var ai=TA,OA=Array.isArray,Mn=OA;function FA(e){return e!=null&&typeof e=="object"}var ur=FA,RA=ai,MA=Mn,LA=ur,$A="[object String]";function DA(e){return typeof e=="string"||!MA(e)&&LA(e)&&RA(e)==$A}var NA=DA;function VA(e){return function(t,n,r){for(var i=-1,a=Object(t),u=r(t),l=u.length;l--;){var c=u[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var BA=VA,kA=BA,jA=kA(),GA=jA;function HA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var WA=HA,ZA=ai,XA=ur,zA="[object Arguments]";function UA(e){return XA(e)&&ZA(e)==zA}var YA=UA,Pm=YA,JA=ur,Tm=Object.prototype,KA=Tm.hasOwnProperty,qA=Tm.propertyIsEnumerable,QA=Pm(function(){return arguments}())?Pm:function(e){return JA(e)&&KA.call(e,"callee")&&!qA.call(e,"callee")},Om=QA,Ns={exports:{}};function e_(){return!1}var t_=e_;Ns.exports,function(e,t){var n=Un,r=t_,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===i,l=u?n.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||r;e.exports=f}(Ns,Ns.exports);var Lc=Ns.exports,n_=9007199254740991,r_=/^(?:0|[1-9]\d*)$/;function i_(e,t){var n=typeof e;return t=t??n_,!!t&&(n=="number"||n!="symbol"&&r_.test(e))&&e>-1&&e%1==0&&e<t}var Fm=i_,o_=9007199254740991;function a_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=o_}var $c=a_,s_=ai,u_=$c,l_=ur,c_="[object Arguments]",f_="[object Array]",d_="[object Boolean]",p_="[object Date]",h_="[object Error]",g_="[object Function]",m_="[object Map]",v_="[object Number]",b_="[object Object]",y_="[object RegExp]",x_="[object Set]",C_="[object String]",w_="[object WeakMap]",S_="[object ArrayBuffer]",I_="[object DataView]",E_="[object Float32Array]",A_="[object Float64Array]",__="[object Int8Array]",P_="[object Int16Array]",T_="[object Int32Array]",O_="[object Uint8Array]",F_="[object Uint8ClampedArray]",R_="[object Uint16Array]",M_="[object Uint32Array]",yt={};yt[E_]=yt[A_]=yt[__]=yt[P_]=yt[T_]=yt[O_]=yt[F_]=yt[R_]=yt[M_]=!0,yt[c_]=yt[f_]=yt[S_]=yt[d_]=yt[I_]=yt[p_]=yt[h_]=yt[g_]=yt[m_]=yt[v_]=yt[b_]=yt[y_]=yt[x_]=yt[C_]=yt[w_]=!1;function L_(e){return l_(e)&&u_(e.length)&&!!yt[s_(e)]}var $_=L_;function D_(e){return function(t){return e(t)}}var Dc=D_,Vs={exports:{}};Vs.exports,function(e,t){var n=Sm,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,u=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||u&&u.binding&&u.binding("util")}catch{}}();e.exports=l}(Vs,Vs.exports);var Nc=Vs.exports,N_=$_,V_=Dc,Rm=Nc,Mm=Rm&&Rm.isTypedArray,B_=Mm?V_(Mm):N_,Lm=B_,k_=WA,j_=Om,G_=Mn,H_=Lc,W_=Fm,Z_=Lm,X_=Object.prototype,z_=X_.hasOwnProperty;function U_(e,t){var n=G_(e),r=!n&&j_(e),i=!n&&!r&&H_(e),a=!n&&!r&&!i&&Z_(e),u=n||r||i||a,l=u?k_(e.length,String):[],c=l.length;for(var f in e)(t||z_.call(e,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||W_(f,c)))&&l.push(f);return l}var $m=U_,Y_=Object.prototype;function J_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Y_;return e===n}var Vc=J_;function K_(e,t){return function(n){return e(t(n))}}var Dm=K_,q_=Dm,Q_=q_(Object.keys,Object),e9=Q_,t9=Vc,n9=e9,r9=Object.prototype,i9=r9.hasOwnProperty;function o9(e){if(!t9(e))return n9(e);var t=[];for(var n in Object(e))i9.call(e,n)&&n!="constructor"&&t.push(n);return t}var a9=o9;function s9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ji=s9,u9=ai,l9=Ji,c9="[object AsyncFunction]",f9="[object Function]",d9="[object GeneratorFunction]",p9="[object Proxy]";function h9(e){if(!l9(e))return!1;var t=u9(e);return t==f9||t==d9||t==c9||t==p9}var Nm=h9,g9=Nm,m9=$c;function v9(e){return e!=null&&m9(e.length)&&!g9(e)}var Bs=v9,b9=$m,y9=a9,x9=Bs;function C9(e){return x9(e)?b9(e):y9(e)}var ma=C9,w9=GA,S9=ma;function I9(e,t){return e&&w9(e,t,S9)}var Vm=I9;function E9(e){return e}var Bm=E9,A9=Bm;function _9(e){return typeof e=="function"?e:A9}var P9=_9,T9=Vm,O9=P9;function F9(e,t){return e&&T9(e,O9(t))}var Bc=F9,R9=Dm,M9=R9(Object.getPrototypeOf,Object),kc=M9,L9=ai,$9=kc,D9=ur,N9="[object Object]",V9=Function.prototype,B9=Object.prototype,km=V9.toString,k9=B9.hasOwnProperty,j9=km.call(Object);function G9(e){if(!D9(e)||L9(e)!=N9)return!1;var t=$9(e);if(t===null)return!0;var n=k9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&km.call(n)==j9}var H9=G9;function W9(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jm=W9;function Z9(){this.__data__=[],this.size=0}var X9=Z9;function z9(e,t){return e===t||e!==e&&t!==t}var jc=z9,U9=jc;function Y9(e,t){for(var n=e.length;n--;)if(U9(e[n][0],t))return n;return-1}var ks=Y9,J9=ks,K9=Array.prototype,q9=K9.splice;function Q9(e){var t=this.__data__,n=J9(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():q9.call(t,n,1),--this.size,!0}var e3=Q9,t3=ks;function n3(e){var t=this.__data__,n=t3(t,e);return n<0?void 0:t[n][1]}var r3=n3,i3=ks;function o3(e){return i3(this.__data__,e)>-1}var a3=o3,s3=ks;function u3(e,t){var n=this.__data__,r=s3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var l3=u3,c3=X9,f3=e3,d3=r3,p3=a3,h3=l3;function Ki(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ki.prototype.clear=c3,Ki.prototype.delete=f3,Ki.prototype.get=d3,Ki.prototype.has=p3,Ki.prototype.set=h3;var js=Ki,g3=js;function m3(){this.__data__=new g3,this.size=0}var v3=m3;function b3(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var y3=b3;function x3(e){return this.__data__.get(e)}var C3=x3;function w3(e){return this.__data__.has(e)}var S3=w3,I3=Un,E3=I3["__core-js_shared__"],A3=E3,Gc=A3,Gm=function(){var e=/[^.]+$/.exec(Gc&&Gc.keys&&Gc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _3(e){return!!Gm&&Gm in e}var P3=_3,T3=Function.prototype,O3=T3.toString;function F3(e){if(e!=null){try{return O3.call(e)}catch{}try{return e+""}catch{}}return""}var Hm=F3,R3=Nm,M3=P3,L3=Ji,$3=Hm,D3=/[\\^$.*+?()[\]{}|]/g,N3=/^\[object .+?Constructor\]$/,V3=Function.prototype,B3=Object.prototype,k3=V3.toString,j3=B3.hasOwnProperty,G3=RegExp("^"+k3.call(j3).replace(D3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function H3(e){if(!L3(e)||M3(e))return!1;var t=R3(e)?G3:N3;return t.test($3(e))}var W3=H3;function Z3(e,t){return e==null?void 0:e[t]}var X3=Z3,z3=W3,U3=X3;function Y3(e,t){var n=U3(e,t);return z3(n)?n:void 0}var si=Y3,J3=si,K3=Un,q3=J3(K3,"Map"),Hc=q3,Q3=si,e4=Q3(Object,"create"),Gs=e4,Wm=Gs;function t4(){this.__data__=Wm?Wm(null):{},this.size=0}var n4=t4;function r4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var i4=r4,o4=Gs,a4="__lodash_hash_undefined__",s4=Object.prototype,u4=s4.hasOwnProperty;function l4(e){var t=this.__data__;if(o4){var n=t[e];return n===a4?void 0:n}return u4.call(t,e)?t[e]:void 0}var c4=l4,f4=Gs,d4=Object.prototype,p4=d4.hasOwnProperty;function h4(e){var t=this.__data__;return f4?t[e]!==void 0:p4.call(t,e)}var g4=h4,m4=Gs,v4="__lodash_hash_undefined__";function b4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=m4&&t===void 0?v4:t,this}var y4=b4,x4=n4,C4=i4,w4=c4,S4=g4,I4=y4;function qi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qi.prototype.clear=x4,qi.prototype.delete=C4,qi.prototype.get=w4,qi.prototype.has=S4,qi.prototype.set=I4;var E4=qi,Zm=E4,A4=js,_4=Hc;function P4(){this.size=0,this.__data__={hash:new Zm,map:new(_4||A4),string:new Zm}}var T4=P4;function O4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var F4=O4,R4=F4;function M4(e,t){var n=e.__data__;return R4(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Hs=M4,L4=Hs;function $4(e){var t=L4(this,e).delete(e);return this.size-=t?1:0,t}var D4=$4,N4=Hs;function V4(e){return N4(this,e).get(e)}var B4=V4,k4=Hs;function j4(e){return k4(this,e).has(e)}var G4=j4,H4=Hs;function W4(e,t){var n=H4(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Z4=W4,X4=T4,z4=D4,U4=B4,Y4=G4,J4=Z4;function Qi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qi.prototype.clear=X4,Qi.prototype.delete=z4,Qi.prototype.get=U4,Qi.prototype.has=Y4,Qi.prototype.set=J4;var Wc=Qi,K4=js,q4=Hc,Q4=Wc,eP=200;function tP(e,t){var n=this.__data__;if(n instanceof K4){var r=n.__data__;if(!q4||r.length<eP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q4(r)}return n.set(e,t),this.size=n.size,this}var nP=tP,rP=js,iP=v3,oP=y3,aP=C3,sP=S3,uP=nP;function eo(e){var t=this.__data__=new rP(e);this.size=t.size}eo.prototype.clear=iP,eo.prototype.delete=oP,eo.prototype.get=aP,eo.prototype.has=sP,eo.prototype.set=uP;var Zc=eo,lP="__lodash_hash_undefined__";function cP(e){return this.__data__.set(e,lP),this}var fP=cP;function dP(e){return this.__data__.has(e)}var pP=dP,hP=Wc,gP=fP,mP=pP;function Ws(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hP;++t<n;)this.add(e[t])}Ws.prototype.add=Ws.prototype.push=gP,Ws.prototype.has=mP;var vP=Ws;function bP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yP=bP;function xP(e,t){return e.has(t)}var CP=xP,wP=vP,SP=yP,IP=CP,EP=1,AP=2;function _P(e,t,n,r,i,a){var u=n&EP,l=e.length,c=t.length;if(l!=c&&!(u&&c>l))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=n&AP?new wP:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var S=e[h],C=t[h];if(r)var E=u?r(C,S,h,t,e,a):r(S,C,h,e,t,a);if(E!==void 0){if(E)continue;m=!1;break}if(v){if(!SP(t,function(P,M){if(!IP(v,M)&&(S===P||i(S,P,n,r,a)))return v.push(M)})){m=!1;break}}else if(!(S===C||i(S,C,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var Xm=_P,PP=Un,TP=PP.Uint8Array,zm=TP;function OP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var FP=OP;function RP(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var MP=RP,Um=ha,Ym=zm,LP=jc,$P=Xm,DP=FP,NP=MP,VP=1,BP=2,kP="[object Boolean]",jP="[object Date]",GP="[object Error]",HP="[object Map]",WP="[object Number]",ZP="[object RegExp]",XP="[object Set]",zP="[object String]",UP="[object Symbol]",YP="[object ArrayBuffer]",JP="[object DataView]",Jm=Um?Um.prototype:void 0,Xc=Jm?Jm.valueOf:void 0;function KP(e,t,n,r,i,a,u){switch(n){case JP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case YP:return!(e.byteLength!=t.byteLength||!a(new Ym(e),new Ym(t)));case kP:case jP:case WP:return LP(+e,+t);case GP:return e.name==t.name&&e.message==t.message;case ZP:case zP:return e==t+"";case HP:var l=DP;case XP:var c=r&VP;if(l||(l=NP),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=BP,u.set(e,t);var p=$P(l(e),l(t),r,i,a,u);return u.delete(e),p;case UP:if(Xc)return Xc.call(e)==Xc.call(t)}return!1}var qP=KP;function QP(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Km=QP,eT=Km,tT=Mn;function nT(e,t,n){var r=t(e);return tT(e)?r:eT(r,n(e))}var qm=nT;function rT(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}var iT=rT;function oT(){return[]}var Qm=oT,aT=iT,sT=Qm,uT=Object.prototype,lT=uT.propertyIsEnumerable,ev=Object.getOwnPropertySymbols,cT=ev?function(e){return e==null?[]:(e=Object(e),aT(ev(e),function(t){return lT.call(e,t)}))}:sT,zc=cT,fT=qm,dT=zc,pT=ma;function hT(e){return fT(e,pT,dT)}var tv=hT,nv=tv,gT=1,mT=Object.prototype,vT=mT.hasOwnProperty;function bT(e,t,n,r,i,a){var u=n&gT,l=nv(e),c=l.length,f=nv(t),p=f.length;if(c!=p&&!u)return!1;for(var h=c;h--;){var m=l[h];if(!(u?m in t:vT.call(t,m)))return!1}var v=a.get(e),S=a.get(t);if(v&&S)return v==t&&S==e;var C=!0;a.set(e,t),a.set(t,e);for(var E=u;++h<c;){m=l[h];var P=e[m],M=t[m];if(r)var $=u?r(M,P,m,t,e,a):r(P,M,m,e,t,a);if(!($===void 0?P===M||i(P,M,n,r,a):$)){C=!1;break}E||(E=m=="constructor")}if(C&&!E){var B=e.constructor,N=t.constructor;B!=N&&"constructor"in e&&"constructor"in t&&!(typeof B=="function"&&B instanceof B&&typeof N=="function"&&N instanceof N)&&(C=!1)}return a.delete(e),a.delete(t),C}var yT=bT,xT=si,CT=Un,wT=xT(CT,"DataView"),ST=wT,IT=si,ET=Un,AT=IT(ET,"Promise"),_T=AT,PT=si,TT=Un,OT=PT(TT,"Set"),FT=OT,RT=si,MT=Un,LT=RT(MT,"WeakMap"),$T=LT,Uc=ST,Yc=Hc,Jc=_T,Kc=FT,qc=$T,rv=ai,to=Hm,iv="[object Map]",DT="[object Object]",ov="[object Promise]",av="[object Set]",sv="[object WeakMap]",uv="[object DataView]",NT=to(Uc),VT=to(Yc),BT=to(Jc),kT=to(Kc),jT=to(qc),ui=rv;(Uc&&ui(new Uc(new ArrayBuffer(1)))!=uv||Yc&&ui(new Yc)!=iv||Jc&&ui(Jc.resolve())!=ov||Kc&&ui(new Kc)!=av||qc&&ui(new qc)!=sv)&&(ui=function(e){var t=rv(e),n=t==DT?e.constructor:void 0,r=n?to(n):"";if(r)switch(r){case NT:return uv;case VT:return iv;case BT:return ov;case kT:return av;case jT:return sv}return t});var Zs=ui,Qc=Zc,GT=Xm,HT=qP,WT=yT,lv=Zs,cv=Mn,fv=Lc,ZT=Lm,XT=1,dv="[object Arguments]",pv="[object Array]",Xs="[object Object]",zT=Object.prototype,hv=zT.hasOwnProperty;function UT(e,t,n,r,i,a){var u=cv(e),l=cv(t),c=u?pv:lv(e),f=l?pv:lv(t);c=c==dv?Xs:c,f=f==dv?Xs:f;var p=c==Xs,h=f==Xs,m=c==f;if(m&&fv(e)){if(!fv(t))return!1;u=!0,p=!1}if(m&&!p)return a||(a=new Qc),u||ZT(e)?GT(e,t,n,r,i,a):HT(e,t,c,n,r,i,a);if(!(n&XT)){var v=p&&hv.call(e,"__wrapped__"),S=h&&hv.call(t,"__wrapped__");if(v||S){var C=v?e.value():e,E=S?t.value():t;return a||(a=new Qc),i(C,E,n,r,a)}}return m?(a||(a=new Qc),WT(e,t,n,r,i,a)):!1}var YT=UT,JT=YT,gv=ur;function mv(e,t,n,r,i){return e===t?!0:e==null||t==null||!gv(e)&&!gv(t)?e!==e&&t!==t:JT(e,t,n,r,mv,i)}var vv=mv,KT=Zc,qT=vv,QT=1,eO=2;function tO(e,t,n,r){var i=n.length,a=i,u=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],f=e[c],p=l[1];if(u&&l[2]){if(f===void 0&&!(c in e))return!1}else{var h=new KT;if(r)var m=r(f,p,c,e,t,h);if(!(m===void 0?qT(p,f,QT|eO,r,h):m))return!1}}return!0}var nO=tO,rO=Ji;function iO(e){return e===e&&!rO(e)}var bv=iO,oO=bv,aO=ma;function sO(e){for(var t=aO(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,oO(i)]}return t}var uO=sO;function lO(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var yv=lO,cO=nO,fO=uO,dO=yv;function pO(e){var t=fO(e);return t.length==1&&t[0][2]?dO(t[0][0],t[0][1]):function(n){return n===e||cO(n,e,t)}}var hO=pO,gO=ai,mO=ur,vO="[object Symbol]";function bO(e){return typeof e=="symbol"||mO(e)&&gO(e)==vO}var ef=bO,yO=Mn,xO=ef,CO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wO=/^\w*$/;function SO(e,t){if(yO(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xO(e)?!0:wO.test(e)||!CO.test(e)||t!=null&&e in Object(t)}var tf=SO,xv=Wc,IO="Expected a function";function nf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IO);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,r);return n.cache=a.set(i,u)||a,u};return n.cache=new(nf.Cache||xv),n}nf.Cache=xv;var EO=nf,AO=EO,_O=500;function PO(e){var t=AO(e,function(r){return n.size===_O&&n.clear(),r}),n=t.cache;return t}var TO=PO,OO=TO,FO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RO=/\\(\\)?/g,MO=OO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(FO,function(n,r,i,a){t.push(i?a.replace(RO,"$1"):r||n)}),t}),LO=MO,Cv=ha,$O=jm,DO=Mn,NO=ef,VO=1/0,wv=Cv?Cv.prototype:void 0,Sv=wv?wv.toString:void 0;function Iv(e){if(typeof e=="string")return e;if(DO(e))return $O(e,Iv)+"";if(NO(e))return Sv?Sv.call(e):"";var t=e+"";return t=="0"&&1/e==-VO?"-0":t}var BO=Iv,kO=BO;function jO(e){return e==null?"":kO(e)}var GO=jO,HO=Mn,WO=tf,ZO=LO,XO=GO;function zO(e,t){return HO(e)?e:WO(e,t)?[e]:ZO(XO(e))}var Ev=zO,UO=ef,YO=1/0;function JO(e){if(typeof e=="string"||UO(e))return e;var t=e+"";return t=="0"&&1/e==-YO?"-0":t}var zs=JO,KO=Ev,qO=zs;function QO(e,t){t=KO(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qO(t[n++])];return n&&n==r?e:void 0}var Av=QO,eF=Av;function tF(e,t,n){var r=e==null?void 0:eF(e,t);return r===void 0?n:r}var nF=tF;function rF(e,t){return e!=null&&t in Object(e)}var iF=rF,oF=Ev,aF=Om,sF=Mn,uF=Fm,lF=$c,cF=zs;function fF(e,t,n){t=oF(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var u=cF(t[r]);if(!(a=e!=null&&n(e,u)))break;e=e[u]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&lF(i)&&uF(u,i)&&(sF(e)||aF(e)))}var dF=fF,pF=iF,hF=dF;function gF(e,t){return e!=null&&hF(e,t,pF)}var mF=gF,vF=vv,bF=nF,yF=mF,xF=tf,CF=bv,wF=yv,SF=zs,IF=1,EF=2;function AF(e,t){return xF(e)&&CF(t)?wF(SF(e),t):function(n){var r=bF(n,e);return r===void 0&&r===t?yF(n,e):vF(t,r,IF|EF)}}var _F=AF;function PF(e){return function(t){return t==null?void 0:t[e]}}var TF=PF,OF=Av;function FF(e){return function(t){return OF(t,e)}}var RF=FF,MF=TF,LF=RF,$F=tf,DF=zs;function NF(e){return $F(e)?MF(DF(e)):LF(e)}var VF=NF,BF=hO,kF=_F,jF=Bm,GF=Mn,HF=VF;function WF(e){return typeof e=="function"?e:e==null?jF:typeof e=="object"?GF(e)?kF(e[0],e[1]):BF(e):HF(e)}var ZF=WF,XF=Bs;function zF(e,t){return function(n,r){if(n==null)return n;if(!XF(n))return e(n,r);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&r(u[a],a,u)!==!1;);return n}}var UF=zF,YF=Vm,JF=UF,KF=JF(YF),qF=KF,QF=qF,eR=Bs;function tR(e,t){var n=-1,r=eR(e)?Array(e.length):[];return QF(e,function(i,a,u){r[++n]=t(i,a,u)}),r}var nR=tR,rR=jm,iR=ZF,oR=nR,aR=Mn;function sR(e,t){var n=aR(e)?rR:oR;return n(e,iR(t))}var uR=sR;Object.defineProperty(pa,"__esModule",{value:!0}),pa.flattenNames=void 0;var lR=NA,cR=Us(lR),fR=Bc,dR=Us(fR),pR=H9,hR=Us(pR),gR=uR,mR=Us(gR);function Us(e){return e&&e.__esModule?e:{default:e}}var vR=pa.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,mR.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,hR.default)(r)?(0,dR.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,cR.default)(r)&&n.push(r)}),n};pa.default=vR;var va={};function bR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var yR=bR,xR=si,CR=function(){try{var e=xR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wR=CR,_v=wR;function SR(e,t,n){t=="__proto__"&&_v?_v(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Pv=SR,IR=Pv,ER=jc,AR=Object.prototype,_R=AR.hasOwnProperty;function PR(e,t,n){var r=e[t];(!(_R.call(e,t)&&ER(r,n))||n===void 0&&!(t in e))&&IR(e,t,n)}var Tv=PR,TR=Tv,OR=Pv;function FR(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?OR(n,l,c):TR(n,l,c)}return n}var Ys=FR,RR=Ys,MR=ma;function LR(e,t){return e&&RR(t,MR(t),e)}var $R=LR;function DR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var NR=DR,VR=Ji,BR=Vc,kR=NR,jR=Object.prototype,GR=jR.hasOwnProperty;function HR(e){if(!VR(e))return kR(e);var t=BR(e),n=[];for(var r in e)r=="constructor"&&(t||!GR.call(e,r))||n.push(r);return n}var WR=HR,ZR=$m,XR=WR,zR=Bs;function UR(e){return zR(e)?ZR(e,!0):XR(e)}var rf=UR,YR=Ys,JR=rf;function KR(e,t){return e&&YR(t,JR(t),e)}var qR=KR,Js={exports:{}};Js.exports,function(e,t){var n=Un,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,u=a?n.Buffer:void 0,l=u?u.allocUnsafe:void 0;function c(f,p){if(p)return f.slice();var h=f.length,m=l?l(h):new f.constructor(h);return f.copy(m),m}e.exports=c}(Js,Js.exports);var QR=Js.exports;function eM(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var tM=eM,nM=Ys,rM=zc;function iM(e,t){return nM(e,rM(e),t)}var oM=iM,aM=Km,sM=kc,uM=zc,lM=Qm,cM=Object.getOwnPropertySymbols,fM=cM?function(e){for(var t=[];e;)aM(t,uM(e)),e=sM(e);return t}:lM,Ov=fM,dM=Ys,pM=Ov;function hM(e,t){return dM(e,pM(e),t)}var gM=hM,mM=qm,vM=Ov,bM=rf;function yM(e){return mM(e,bM,vM)}var xM=yM,CM=Object.prototype,wM=CM.hasOwnProperty;function SM(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&wM.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var IM=SM,Fv=zm;function EM(e){var t=new e.constructor(e.byteLength);return new Fv(t).set(new Fv(e)),t}var of=EM,AM=of;function _M(e,t){var n=t?AM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var PM=_M,TM=/\w*$/;function OM(e){var t=new e.constructor(e.source,TM.exec(e));return t.lastIndex=e.lastIndex,t}var FM=OM,Rv=ha,Mv=Rv?Rv.prototype:void 0,Lv=Mv?Mv.valueOf:void 0;function RM(e){return Lv?Object(Lv.call(e)):{}}var MM=RM,LM=of;function $M(e,t){var n=t?LM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var DM=$M,NM=of,VM=PM,BM=FM,kM=MM,jM=DM,GM="[object Boolean]",HM="[object Date]",WM="[object Map]",ZM="[object Number]",XM="[object RegExp]",zM="[object Set]",UM="[object String]",YM="[object Symbol]",JM="[object ArrayBuffer]",KM="[object DataView]",qM="[object Float32Array]",QM="[object Float64Array]",eL="[object Int8Array]",tL="[object Int16Array]",nL="[object Int32Array]",rL="[object Uint8Array]",iL="[object Uint8ClampedArray]",oL="[object Uint16Array]",aL="[object Uint32Array]";function sL(e,t,n){var r=e.constructor;switch(t){case JM:return NM(e);case GM:case HM:return new r(+e);case KM:return VM(e,n);case qM:case QM:case eL:case tL:case nL:case rL:case iL:case oL:case aL:return jM(e,n);case WM:return new r;case ZM:case UM:return new r(e);case XM:return BM(e);case zM:return new r;case YM:return kM(e)}}var uL=sL,lL=Ji,$v=Object.create,cL=function(){function e(){}return function(t){if(!lL(t))return{};if($v)return $v(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),fL=cL,dL=fL,pL=kc,hL=Vc;function gL(e){return typeof e.constructor=="function"&&!hL(e)?dL(pL(e)):{}}var mL=gL,vL=Zs,bL=ur,yL="[object Map]";function xL(e){return bL(e)&&vL(e)==yL}var CL=xL,wL=CL,SL=Dc,Dv=Nc,Nv=Dv&&Dv.isMap,IL=Nv?SL(Nv):wL,EL=IL,AL=Zs,_L=ur,PL="[object Set]";function TL(e){return _L(e)&&AL(e)==PL}var OL=TL,FL=OL,RL=Dc,Vv=Nc,Bv=Vv&&Vv.isSet,ML=Bv?RL(Bv):FL,LL=ML,$L=Zc,DL=yR,NL=Tv,VL=$R,BL=qR,kL=QR,jL=tM,GL=oM,HL=gM,WL=tv,ZL=xM,XL=Zs,zL=IM,UL=uL,YL=mL,JL=Mn,KL=Lc,qL=EL,QL=Ji,e$=LL,t$=ma,n$=rf,r$=1,i$=2,o$=4,kv="[object Arguments]",a$="[object Array]",s$="[object Boolean]",u$="[object Date]",l$="[object Error]",jv="[object Function]",c$="[object GeneratorFunction]",f$="[object Map]",d$="[object Number]",Gv="[object Object]",p$="[object RegExp]",h$="[object Set]",g$="[object String]",m$="[object Symbol]",v$="[object WeakMap]",b$="[object ArrayBuffer]",y$="[object DataView]",x$="[object Float32Array]",C$="[object Float64Array]",w$="[object Int8Array]",S$="[object Int16Array]",I$="[object Int32Array]",E$="[object Uint8Array]",A$="[object Uint8ClampedArray]",_$="[object Uint16Array]",P$="[object Uint32Array]",vt={};vt[kv]=vt[a$]=vt[b$]=vt[y$]=vt[s$]=vt[u$]=vt[x$]=vt[C$]=vt[w$]=vt[S$]=vt[I$]=vt[f$]=vt[d$]=vt[Gv]=vt[p$]=vt[h$]=vt[g$]=vt[m$]=vt[E$]=vt[A$]=vt[_$]=vt[P$]=!0,vt[l$]=vt[jv]=vt[v$]=!1;function Ks(e,t,n,r,i,a){var u,l=t&r$,c=t&i$,f=t&o$;if(n&&(u=i?n(e,r,i,a):n(e)),u!==void 0)return u;if(!QL(e))return e;var p=JL(e);if(p){if(u=zL(e),!l)return jL(e,u)}else{var h=XL(e),m=h==jv||h==c$;if(KL(e))return kL(e,l);if(h==Gv||h==kv||m&&!i){if(u=c||m?{}:YL(e),!l)return c?HL(e,BL(u,e)):GL(e,VL(u,e))}else{if(!vt[h])return i?e:{};u=UL(e,h,l)}}a||(a=new $L);var v=a.get(e);if(v)return v;a.set(e,u),e$(e)?e.forEach(function(E){u.add(Ks(E,t,n,E,e,a))}):qL(e)&&e.forEach(function(E,P){u.set(P,Ks(E,t,n,P,e,a))});var S=f?c?ZL:WL:c?n$:t$,C=p?void 0:S(e);return DL(C||e,function(E,P){C&&(P=E,E=e[P]),NL(u,P,Ks(E,t,n,P,e,a))}),u}var T$=Ks,O$=T$,F$=1,R$=4;function M$(e){return O$(e,F$|R$)}var L$=M$;Object.defineProperty(va,"__esModule",{value:!0}),va.mergeClasses=void 0;var $$=Bc,D$=Hv($$),N$=L$,V$=Hv(N$),B$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Hv(e){return e&&e.__esModule?e:{default:e}}var k$=va.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,V$.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,D$.default)(a,function(u,l){r[l]||(r[l]={}),r[l]=B$({},r[l],a[l])}),i}),r};va.default=k$;var ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.autoprefix=void 0;var j$=Bc,Wv=H$(j$),G$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function H$(e){return e&&e.__esModule?e:{default:e}}var W$={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var r=n[t];return r||{extend:t}}},Z$=ba.autoprefix=function(t){var n={};return(0,Wv.default)(t,function(r,i){var a={};(0,Wv.default)(r,function(u,l){var c=W$[l];c?a=G$({},a,c(u)):a[l]=u}),n[i]=a}),n};ba.default=Z$;var ya={};Object.defineProperty(ya,"__esModule",{value:!0}),ya.hover=void 0;var X$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z$=b,af=U$(z$);function U$(e){return e&&e.__esModule?e:{default:e}}function Y$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function J$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var K$=ya.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){J$(i,r);function i(){var a,u,l,c;Y$(this,i);for(var f=arguments.length,p=Array(f),h=0;h<f;h++)p[h]=arguments[h];return c=(u=(l=Zv(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(p))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return af.default.createElement(n,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},af.default.createElement(t,X$({},l.props,l.state)))},u),Zv(l,c)}return i}(af.default.Component)};ya.default=K$;var xa={};Object.defineProperty(xa,"__esModule",{value:!0}),xa.active=void 0;var q$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q$=b,sf=eD(Q$);function eD(e){return e&&e.__esModule?e:{default:e}}function tD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rD=xa.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){nD(i,r);function i(){var a,u,l,c;tD(this,i);for(var f=arguments.length,p=Array(f),h=0;h<f;h++)p[h]=arguments[h];return c=(u=(l=Xv(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(p))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return sf.default.createElement(n,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},sf.default.createElement(t,q$({},l.props,l.state)))},u),Xv(l,c)}return i}(sf.default.Component)};xa.default=rD;var uf={};Object.defineProperty(uf,"__esModule",{value:!0});var iD=function(t,n){var r={},i=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[u]=l};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};uf.default=iD,Object.defineProperty(wn,"__esModule",{value:!0}),wn.ReactCSS=wn.loop=wn.handleActive=lf=wn.handleHover=wn.hover=void 0;var oD=pa,aD=no(oD),sD=va,uD=no(sD),lD=ba,cD=no(lD),fD=ya,zv=no(fD),dD=xa,pD=no(dD),hD=uf,gD=no(hD);function no(e){return e&&e.__esModule?e:{default:e}}wn.hover=zv.default;var lf=wn.handleHover=zv.default;wn.handleActive=pD.default,wn.loop=gD.default;var mD=wn.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=(0,aD.default)(r),u=(0,uD.default)(t,a);return(0,cD.default)(u)},Be=wn.default=mD,vD=function(t,n,r,i,a){var u=a.clientWidth,l=a.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,f=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,p=c-(a.getBoundingClientRect().left+window.pageXOffset),h=f-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var m=void 0;if(h<0?m=0:h>l?m=1:m=Math.round(h*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var v=void 0;if(p<0?v=0:p>u?v=1:v=Math.round(p*100/u)/100,i!==v)return{h:n.h,s:n.s,l:n.l,a:v,source:"rgb"}}return null},cf={},bD=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var u=a.getContext("2d");return u?(u.fillStyle=t,u.fillRect(0,0,a.width,a.height),u.fillStyle=n,u.fillRect(0,0,r,r),u.translate(r,r),u.fillRect(0,0,r,r),a.toDataURL()):null},yD=function(t,n,r,i){var a=t+"-"+n+"-"+r+(i?"-server":"");if(cf[a])return cf[a];var u=bD(t,n,r,i);return cf[a]=u,u},Uv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ro=function(t){var n=t.white,r=t.grey,i=t.size,a=t.renderers,u=t.borderRadius,l=t.boxShadow,c=t.children,f=Be({default:{grid:{borderRadius:u,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+yD(n,r,i,a.canvas)+") center left"}}});return b.isValidElement(c)?b.cloneElement(c,Uv({},c.props,{style:Uv({},c.props.style,f.grid)})):b.createElement("div",{style:f.grid})};ro.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var xD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CD=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ff=function(e){SD(t,e);function t(){var n,r,i,a;wD(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return a=(r=(i=Yv(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.handleChange=function(f){var p=vD(f,i.props.hsl,i.props.direction,i.props.a,i.container);p&&typeof i.props.onChange=="function"&&i.props.onChange(p,f)},i.handleMouseDown=function(f){i.handleChange(f),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},r),Yv(i,a)}return CD(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,i=this.props.rgb,a=Be({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
65
|
+
`),()=>{document.head.removeChild(f)}},[t]),ie.createElement(EA,{isPresent:t,childRef:r,sizeRef:i},ie.cloneElement(e,{ref:r}))}const Wc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:u})=>{const l=Mg(_A),c=b.useId(),f=b.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:h=>{l.set(h,!0);for(const p of l.values())if(!p)return;r&&r()},register:h=>(l.set(h,!1),()=>l.delete(h))}),a?void 0:[n]);return b.useMemo(()=>{l.forEach((h,p)=>l.set(p,!1))},[n]),ie.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),u==="popLayout"&&(e=ie.createElement(AA,{isPresent:n},e)),ie.createElement(bs.Provider,{value:f},e)};function _A(){return new Map}function PA(e){return b.useEffect(()=>()=>e(),[])}const ui=e=>e.key||"";function TA(e,t){e.forEach(n=>{const r=ui(n);t.set(r,n)})}function FA(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const ks=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:u="sync"})=>{Ln(!i,"Replace exitBeforeEnter with mode='wait'");const l=b.useContext(tc).forceRender||IA()[0],c=Nm(),f=FA(e);let h=f;const p=b.useRef(new Map).current,m=b.useRef(h),v=b.useRef(new Map).current,C=b.useRef(!0);if(Kl(()=>{C.current=!1,TA(f,v),m.current=h}),PA(()=>{C.current=!0,v.clear(),p.clear()}),C.current)return ie.createElement(ie.Fragment,null,h.map(R=>ie.createElement(Wc,{key:ui(R),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:u},R)));h=[...h];const S=m.current.map(ui),E=f.map(ui),_=S.length;for(let R=0;R<_;R++){const L=S[R];E.indexOf(L)===-1&&!p.has(L)&&p.set(L,void 0)}return u==="wait"&&p.size&&(h=[]),p.forEach((R,L)=>{if(E.indexOf(L)!==-1)return;const $=v.get(L);if(!$)return;const V=S.indexOf(L);let U=R;if(!U){const X=()=>{p.delete(L);const te=Array.from(v.keys()).filter(de=>!E.includes(de));if(te.forEach(de=>v.delete(de)),m.current=f.filter(de=>{const Pe=ui(de);return Pe===L||te.includes(Pe)}),!p.size){if(c.current===!1)return;l(),r&&r()}};U=ie.createElement(Wc,{key:ui($),isPresent:!1,onExitComplete:X,custom:t,presenceAffectsLayout:a,mode:u},$),p.set(L,U)}h.splice(V,0,U)}),h=h.map(R=>{const L=R.key;return p.has(L)?R:ie.createElement(Wc,{key:ui(R),isPresent:!0,presenceAffectsLayout:a,mode:u},R)}),process.env.NODE_ENV!=="production"&&u==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),ie.createElement(ie.Fragment,null,p.size?h:h.map(R=>b.cloneElement(R)))};function js({isOpen:e,close:t,children:n,scrollToTop:r,isDialog:i=!1}){const a=()=>i?Je("transition inset-0 bg-black",{"absolute z-[90]":r&&e,"fixed z-[90]":!r&&e,"bg-opacity-0 pointer-events-none backdrop-blur-none":!e,"bg-opacity-40 backdrop-blur-sm overflow-y-scroll":e}):Je("transition inset-0 bg-black absolute z-[90]",{"bg-opacity-0 pointer-events-none backdrop-blur-none":!e,"bg-opacity-40 backdrop-blur-sm overflow-y-scroll":e});return b.useEffect(()=>{e?(document.body.style.overflow="hidden",r&&window.scrollTo({top:0})):document.body.style.overflow="unset"},[e,r]),A.jsx(Ki.div,{className:a(),onClick:t,children:A.jsx("div",{className:"relative",children:n})})}const qi=({children:e,className:t,size:n="md",variant:r="primary",...i})=>A.jsx("button",{className:Je("rounded-lg text-xs flex items-center justify-center","disabled:bg-brand-disabled disabled:text-white disabled:cursor-not-allowed","hover:bg-brand-secondary hover:text-white","transition hover:transition",{"bg-brand-primary text-white":r==="primary"||r==="remove","bg-brand-tertiary-light text-brand-primary":r==="secondary"},{"h-5 gap-1.5":r!=="remove"&&n==="sm","h-9 gap-2":r!=="remove"&&n==="md","h-9":r==="remove"},{"w-full":r!=="remove","w-9":r==="remove"},{className:t!==""}),...i,children:e}),OA=({children:e,className:t,...n})=>A.jsx("div",{className:Je("w-full px-3 py-3.5 rounded","bg-white dark:bg-brand-background-dark","shadow-md hover:shadow-lg hover:transition-shadow transition-shadow",t),...n,children:e}),RA=({label:e,name:t,className:n,...r})=>A.jsx("div",{className:Je("bg-brand-light-gray rounded-lg inline-block p-1.5 transition","border-2 border-transparent focus-within:border-brand-primary focus-within:transition",{className:n!==""}),children:A.jsxs("label",{htmlFor:(r==null?void 0:r.id)||t,className:Je("relative","flex gap-2 items-center justify-center"),children:[A.jsx("input",{name:t,type:"checkbox",className:Je("relative appearance-none w-5 h-5 border rounded-md text-brand-primary cursor-pointer transition-all focus:ring-0 focus:ring-offset-0 focus:outline-none","checked:after:absolute checked:before:absolute","checked:after:inset-0 checked:before:inset-0","checked:after:rounded-md checked:before:rounded-md checked:before:content-[✓] text-brand-primary","checked:after:scale-75","checked:border-2"),...r}),A.jsx("span",{className:"text-xs text-brand-secondary-text",children:e})]})});var In={},va={},MA=typeof or=="object"&&or&&or.Object===Object&&or,Vm=MA,LA=Vm,DA=typeof self=="object"&&self&&self.Object===Object&&self,$A=LA||DA||Function("return this")(),Jn=$A,NA=Jn,VA=NA.Symbol,ba=VA,Bm=ba,km=Object.prototype,BA=km.hasOwnProperty,kA=km.toString,ya=Bm?Bm.toStringTag:void 0;function jA(e){var t=BA.call(e,ya),n=e[ya];try{e[ya]=void 0;var r=!0}catch{}var i=kA.call(e);return r&&(t?e[ya]=n:delete e[ya]),i}var GA=jA,HA=Object.prototype,WA=HA.toString;function ZA(e){return WA.call(e)}var XA=ZA,jm=ba,zA=GA,UA=XA,YA="[object Null]",JA="[object Undefined]",Gm=jm?jm.toStringTag:void 0;function KA(e){return e==null?e===void 0?JA:YA:Gm&&Gm in Object(e)?zA(e):UA(e)}var li=KA,qA=Array.isArray,Dn=qA;function QA(e){return e!=null&&typeof e=="object"}var cr=QA,e9=li,t9=Dn,n9=cr,r9="[object String]";function i9(e){return typeof e=="string"||!t9(e)&&n9(e)&&e9(e)==r9}var o9=i9;function a9(e){return function(t,n,r){for(var i=-1,a=Object(t),u=r(t),l=u.length;l--;){var c=u[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var s9=a9,u9=s9,l9=u9(),c9=l9;function f9(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var d9=f9,h9=li,p9=cr,g9="[object Arguments]";function m9(e){return p9(e)&&h9(e)==g9}var v9=m9,Hm=v9,b9=cr,Wm=Object.prototype,y9=Wm.hasOwnProperty,x9=Wm.propertyIsEnumerable,C9=Hm(function(){return arguments}())?Hm:function(e){return b9(e)&&y9.call(e,"callee")&&!x9.call(e,"callee")},Zm=C9,Gs={exports:{}};function w9(){return!1}var S9=w9;Gs.exports,function(e,t){var n=Jn,r=S9,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===i,l=u?n.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||r;e.exports=f}(Gs,Gs.exports);var Zc=Gs.exports,I9=9007199254740991,E9=/^(?:0|[1-9]\d*)$/;function A9(e,t){var n=typeof e;return t=t??I9,!!t&&(n=="number"||n!="symbol"&&E9.test(e))&&e>-1&&e%1==0&&e<t}var Xm=A9,_9=9007199254740991;function P9(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_9}var Xc=P9,T9=li,F9=Xc,O9=cr,R9="[object Arguments]",M9="[object Array]",L9="[object Boolean]",D9="[object Date]",$9="[object Error]",N9="[object Function]",V9="[object Map]",B9="[object Number]",k9="[object Object]",j9="[object RegExp]",G9="[object Set]",H9="[object String]",W9="[object WeakMap]",Z9="[object ArrayBuffer]",X9="[object DataView]",z9="[object Float32Array]",U9="[object Float64Array]",Y9="[object Int8Array]",J9="[object Int16Array]",K9="[object Int32Array]",q9="[object Uint8Array]",Q9="[object Uint8ClampedArray]",e_="[object Uint16Array]",t_="[object Uint32Array]",xt={};xt[z9]=xt[U9]=xt[Y9]=xt[J9]=xt[K9]=xt[q9]=xt[Q9]=xt[e_]=xt[t_]=!0,xt[R9]=xt[M9]=xt[Z9]=xt[L9]=xt[X9]=xt[D9]=xt[$9]=xt[N9]=xt[V9]=xt[B9]=xt[k9]=xt[j9]=xt[G9]=xt[H9]=xt[W9]=!1;function n_(e){return O9(e)&&F9(e.length)&&!!xt[T9(e)]}var r_=n_;function i_(e){return function(t){return e(t)}}var zc=i_,Hs={exports:{}};Hs.exports,function(e,t){var n=Vm,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,u=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||u&&u.binding&&u.binding("util")}catch{}}();e.exports=l}(Hs,Hs.exports);var Uc=Hs.exports,o_=r_,a_=zc,zm=Uc,Um=zm&&zm.isTypedArray,s_=Um?a_(Um):o_,Ym=s_,u_=d9,l_=Zm,c_=Dn,f_=Zc,d_=Xm,h_=Ym,p_=Object.prototype,g_=p_.hasOwnProperty;function m_(e,t){var n=c_(e),r=!n&&l_(e),i=!n&&!r&&f_(e),a=!n&&!r&&!i&&h_(e),u=n||r||i||a,l=u?u_(e.length,String):[],c=l.length;for(var f in e)(t||g_.call(e,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||d_(f,c)))&&l.push(f);return l}var Jm=m_,v_=Object.prototype;function b_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||v_;return e===n}var Yc=b_;function y_(e,t){return function(n){return e(t(n))}}var Km=y_,x_=Km,C_=x_(Object.keys,Object),w_=C_,S_=Yc,I_=w_,E_=Object.prototype,A_=E_.hasOwnProperty;function __(e){if(!S_(e))return I_(e);var t=[];for(var n in Object(e))A_.call(e,n)&&n!="constructor"&&t.push(n);return t}var P_=__;function T_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qi=T_,F_=li,O_=Qi,R_="[object AsyncFunction]",M_="[object Function]",L_="[object GeneratorFunction]",D_="[object Proxy]";function $_(e){if(!O_(e))return!1;var t=F_(e);return t==M_||t==L_||t==R_||t==D_}var qm=$_,N_=qm,V_=Xc;function B_(e){return e!=null&&V_(e.length)&&!N_(e)}var Ws=B_,k_=Jm,j_=P_,G_=Ws;function H_(e){return G_(e)?k_(e):j_(e)}var xa=H_,W_=c9,Z_=xa;function X_(e,t){return e&&W_(e,t,Z_)}var Qm=X_;function z_(e){return e}var ev=z_,U_=ev;function Y_(e){return typeof e=="function"?e:U_}var J_=Y_,K_=Qm,q_=J_;function Q_(e,t){return e&&K_(e,q_(t))}var Jc=Q_,e3=Km,t3=e3(Object.getPrototypeOf,Object),Kc=t3,n3=li,r3=Kc,i3=cr,o3="[object Object]",a3=Function.prototype,s3=Object.prototype,tv=a3.toString,u3=s3.hasOwnProperty,l3=tv.call(Object);function c3(e){if(!i3(e)||n3(e)!=o3)return!1;var t=r3(e);if(t===null)return!0;var n=u3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tv.call(n)==l3}var f3=c3;function d3(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var nv=d3;function h3(){this.__data__=[],this.size=0}var p3=h3;function g3(e,t){return e===t||e!==e&&t!==t}var qc=g3,m3=qc;function v3(e,t){for(var n=e.length;n--;)if(m3(e[n][0],t))return n;return-1}var Zs=v3,b3=Zs,y3=Array.prototype,x3=y3.splice;function C3(e){var t=this.__data__,n=b3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():x3.call(t,n,1),--this.size,!0}var w3=C3,S3=Zs;function I3(e){var t=this.__data__,n=S3(t,e);return n<0?void 0:t[n][1]}var E3=I3,A3=Zs;function _3(e){return A3(this.__data__,e)>-1}var P3=_3,T3=Zs;function F3(e,t){var n=this.__data__,r=T3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var O3=F3,R3=p3,M3=w3,L3=E3,D3=P3,$3=O3;function eo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eo.prototype.clear=R3,eo.prototype.delete=M3,eo.prototype.get=L3,eo.prototype.has=D3,eo.prototype.set=$3;var Xs=eo,N3=Xs;function V3(){this.__data__=new N3,this.size=0}var B3=V3;function k3(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var j3=k3;function G3(e){return this.__data__.get(e)}var H3=G3;function W3(e){return this.__data__.has(e)}var Z3=W3,X3=Jn,z3=X3["__core-js_shared__"],U3=z3,Qc=U3,rv=function(){var e=/[^.]+$/.exec(Qc&&Qc.keys&&Qc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Y3(e){return!!rv&&rv in e}var J3=Y3,K3=Function.prototype,q3=K3.toString;function Q3(e){if(e!=null){try{return q3.call(e)}catch{}try{return e+""}catch{}}return""}var iv=Q3,e4=qm,t4=J3,n4=Qi,r4=iv,i4=/[\\^$.*+?()[\]{}|]/g,o4=/^\[object .+?Constructor\]$/,a4=Function.prototype,s4=Object.prototype,u4=a4.toString,l4=s4.hasOwnProperty,c4=RegExp("^"+u4.call(l4).replace(i4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f4(e){if(!n4(e)||t4(e))return!1;var t=e4(e)?c4:o4;return t.test(r4(e))}var d4=f4;function h4(e,t){return e==null?void 0:e[t]}var p4=h4,g4=d4,m4=p4;function v4(e,t){var n=m4(e,t);return g4(n)?n:void 0}var ci=v4,b4=ci,y4=Jn,x4=b4(y4,"Map"),ef=x4,C4=ci,w4=C4(Object,"create"),zs=w4,ov=zs;function S4(){this.__data__=ov?ov(null):{},this.size=0}var I4=S4;function E4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var A4=E4,_4=zs,P4="__lodash_hash_undefined__",T4=Object.prototype,F4=T4.hasOwnProperty;function O4(e){var t=this.__data__;if(_4){var n=t[e];return n===P4?void 0:n}return F4.call(t,e)?t[e]:void 0}var R4=O4,M4=zs,L4=Object.prototype,D4=L4.hasOwnProperty;function $4(e){var t=this.__data__;return M4?t[e]!==void 0:D4.call(t,e)}var N4=$4,V4=zs,B4="__lodash_hash_undefined__";function k4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V4&&t===void 0?B4:t,this}var j4=k4,G4=I4,H4=A4,W4=R4,Z4=N4,X4=j4;function to(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}to.prototype.clear=G4,to.prototype.delete=H4,to.prototype.get=W4,to.prototype.has=Z4,to.prototype.set=X4;var z4=to,av=z4,U4=Xs,Y4=ef;function J4(){this.size=0,this.__data__={hash:new av,map:new(Y4||U4),string:new av}}var K4=J4;function q4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Q4=q4,eP=Q4;function tP(e,t){var n=e.__data__;return eP(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Us=tP,nP=Us;function rP(e){var t=nP(this,e).delete(e);return this.size-=t?1:0,t}var iP=rP,oP=Us;function aP(e){return oP(this,e).get(e)}var sP=aP,uP=Us;function lP(e){return uP(this,e).has(e)}var cP=lP,fP=Us;function dP(e,t){var n=fP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var hP=dP,pP=K4,gP=iP,mP=sP,vP=cP,bP=hP;function no(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}no.prototype.clear=pP,no.prototype.delete=gP,no.prototype.get=mP,no.prototype.has=vP,no.prototype.set=bP;var tf=no,yP=Xs,xP=ef,CP=tf,wP=200;function SP(e,t){var n=this.__data__;if(n instanceof yP){var r=n.__data__;if(!xP||r.length<wP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CP(r)}return n.set(e,t),this.size=n.size,this}var IP=SP,EP=Xs,AP=B3,_P=j3,PP=H3,TP=Z3,FP=IP;function ro(e){var t=this.__data__=new EP(e);this.size=t.size}ro.prototype.clear=AP,ro.prototype.delete=_P,ro.prototype.get=PP,ro.prototype.has=TP,ro.prototype.set=FP;var nf=ro,OP="__lodash_hash_undefined__";function RP(e){return this.__data__.set(e,OP),this}var MP=RP;function LP(e){return this.__data__.has(e)}var DP=LP,$P=tf,NP=MP,VP=DP;function Ys(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $P;++t<n;)this.add(e[t])}Ys.prototype.add=Ys.prototype.push=NP,Ys.prototype.has=VP;var BP=Ys;function kP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var jP=kP;function GP(e,t){return e.has(t)}var HP=GP,WP=BP,ZP=jP,XP=HP,zP=1,UP=2;function YP(e,t,n,r,i,a){var u=n&zP,l=e.length,c=t.length;if(l!=c&&!(u&&c>l))return!1;var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=n&UP?new WP:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var C=e[p],S=t[p];if(r)var E=u?r(S,C,p,t,e,a):r(C,S,p,e,t,a);if(E!==void 0){if(E)continue;m=!1;break}if(v){if(!ZP(t,function(_,R){if(!XP(v,R)&&(C===_||i(C,_,n,r,a)))return v.push(R)})){m=!1;break}}else if(!(C===S||i(C,S,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var sv=YP,JP=Jn,KP=JP.Uint8Array,uv=KP;function qP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var QP=qP;function eT(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var tT=eT,lv=ba,cv=uv,nT=qc,rT=sv,iT=QP,oT=tT,aT=1,sT=2,uT="[object Boolean]",lT="[object Date]",cT="[object Error]",fT="[object Map]",dT="[object Number]",hT="[object RegExp]",pT="[object Set]",gT="[object String]",mT="[object Symbol]",vT="[object ArrayBuffer]",bT="[object DataView]",fv=lv?lv.prototype:void 0,rf=fv?fv.valueOf:void 0;function yT(e,t,n,r,i,a,u){switch(n){case bT:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vT:return!(e.byteLength!=t.byteLength||!a(new cv(e),new cv(t)));case uT:case lT:case dT:return nT(+e,+t);case cT:return e.name==t.name&&e.message==t.message;case hT:case gT:return e==t+"";case fT:var l=iT;case pT:var c=r&aT;if(l||(l=oT),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=sT,u.set(e,t);var h=rT(l(e),l(t),r,i,a,u);return u.delete(e),h;case mT:if(rf)return rf.call(e)==rf.call(t)}return!1}var xT=yT;function CT(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var dv=CT,wT=dv,ST=Dn;function IT(e,t,n){var r=t(e);return ST(e)?r:wT(r,n(e))}var hv=IT;function ET(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}var AT=ET;function _T(){return[]}var pv=_T,PT=AT,TT=pv,FT=Object.prototype,OT=FT.propertyIsEnumerable,gv=Object.getOwnPropertySymbols,RT=gv?function(e){return e==null?[]:(e=Object(e),PT(gv(e),function(t){return OT.call(e,t)}))}:TT,of=RT,MT=hv,LT=of,DT=xa;function $T(e){return MT(e,DT,LT)}var mv=$T,vv=mv,NT=1,VT=Object.prototype,BT=VT.hasOwnProperty;function kT(e,t,n,r,i,a){var u=n&NT,l=vv(e),c=l.length,f=vv(t),h=f.length;if(c!=h&&!u)return!1;for(var p=c;p--;){var m=l[p];if(!(u?m in t:BT.call(t,m)))return!1}var v=a.get(e),C=a.get(t);if(v&&C)return v==t&&C==e;var S=!0;a.set(e,t),a.set(t,e);for(var E=u;++p<c;){m=l[p];var _=e[m],R=t[m];if(r)var L=u?r(R,_,m,t,e,a):r(_,R,m,e,t,a);if(!(L===void 0?_===R||i(_,R,n,r,a):L)){S=!1;break}E||(E=m=="constructor")}if(S&&!E){var $=e.constructor,V=t.constructor;$!=V&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof V=="function"&&V instanceof V)&&(S=!1)}return a.delete(e),a.delete(t),S}var jT=kT,GT=ci,HT=Jn,WT=GT(HT,"DataView"),ZT=WT,XT=ci,zT=Jn,UT=XT(zT,"Promise"),YT=UT,JT=ci,KT=Jn,qT=JT(KT,"Set"),QT=qT,eF=ci,tF=Jn,nF=eF(tF,"WeakMap"),rF=nF,af=ZT,sf=ef,uf=YT,lf=QT,cf=rF,bv=li,io=iv,yv="[object Map]",iF="[object Object]",xv="[object Promise]",Cv="[object Set]",wv="[object WeakMap]",Sv="[object DataView]",oF=io(af),aF=io(sf),sF=io(uf),uF=io(lf),lF=io(cf),fi=bv;(af&&fi(new af(new ArrayBuffer(1)))!=Sv||sf&&fi(new sf)!=yv||uf&&fi(uf.resolve())!=xv||lf&&fi(new lf)!=Cv||cf&&fi(new cf)!=wv)&&(fi=function(e){var t=bv(e),n=t==iF?e.constructor:void 0,r=n?io(n):"";if(r)switch(r){case oF:return Sv;case aF:return yv;case sF:return xv;case uF:return Cv;case lF:return wv}return t});var Js=fi,ff=nf,cF=sv,fF=xT,dF=jT,Iv=Js,Ev=Dn,Av=Zc,hF=Ym,pF=1,_v="[object Arguments]",Pv="[object Array]",Ks="[object Object]",gF=Object.prototype,Tv=gF.hasOwnProperty;function mF(e,t,n,r,i,a){var u=Ev(e),l=Ev(t),c=u?Pv:Iv(e),f=l?Pv:Iv(t);c=c==_v?Ks:c,f=f==_v?Ks:f;var h=c==Ks,p=f==Ks,m=c==f;if(m&&Av(e)){if(!Av(t))return!1;u=!0,h=!1}if(m&&!h)return a||(a=new ff),u||hF(e)?cF(e,t,n,r,i,a):fF(e,t,c,n,r,i,a);if(!(n&pF)){var v=h&&Tv.call(e,"__wrapped__"),C=p&&Tv.call(t,"__wrapped__");if(v||C){var S=v?e.value():e,E=C?t.value():t;return a||(a=new ff),i(S,E,n,r,a)}}return m?(a||(a=new ff),dF(e,t,n,r,i,a)):!1}var vF=mF,bF=vF,Fv=cr;function Ov(e,t,n,r,i){return e===t?!0:e==null||t==null||!Fv(e)&&!Fv(t)?e!==e&&t!==t:bF(e,t,n,r,Ov,i)}var Rv=Ov,yF=nf,xF=Rv,CF=1,wF=2;function SF(e,t,n,r){var i=n.length,a=i,u=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],f=e[c],h=l[1];if(u&&l[2]){if(f===void 0&&!(c in e))return!1}else{var p=new yF;if(r)var m=r(f,h,c,e,t,p);if(!(m===void 0?xF(h,f,CF|wF,r,p):m))return!1}}return!0}var IF=SF,EF=Qi;function AF(e){return e===e&&!EF(e)}var Mv=AF,_F=Mv,PF=xa;function TF(e){for(var t=PF(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_F(i)]}return t}var FF=TF;function OF(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Lv=OF,RF=IF,MF=FF,LF=Lv;function DF(e){var t=MF(e);return t.length==1&&t[0][2]?LF(t[0][0],t[0][1]):function(n){return n===e||RF(n,e,t)}}var $F=DF,NF=li,VF=cr,BF="[object Symbol]";function kF(e){return typeof e=="symbol"||VF(e)&&NF(e)==BF}var df=kF,jF=Dn,GF=df,HF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WF=/^\w*$/;function ZF(e,t){if(jF(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||GF(e)?!0:WF.test(e)||!HF.test(e)||t!=null&&e in Object(t)}var hf=ZF,Dv=tf,XF="Expected a function";function pf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(XF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,r);return n.cache=a.set(i,u)||a,u};return n.cache=new(pf.Cache||Dv),n}pf.Cache=Dv;var zF=pf,UF=zF,YF=500;function JF(e){var t=UF(e,function(r){return n.size===YF&&n.clear(),r}),n=t.cache;return t}var KF=JF,qF=KF,QF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eO=/\\(\\)?/g,tO=qF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QF,function(n,r,i,a){t.push(i?a.replace(eO,"$1"):r||n)}),t}),nO=tO,$v=ba,rO=nv,iO=Dn,oO=df,aO=1/0,Nv=$v?$v.prototype:void 0,Vv=Nv?Nv.toString:void 0;function Bv(e){if(typeof e=="string")return e;if(iO(e))return rO(e,Bv)+"";if(oO(e))return Vv?Vv.call(e):"";var t=e+"";return t=="0"&&1/e==-aO?"-0":t}var sO=Bv,uO=sO;function lO(e){return e==null?"":uO(e)}var cO=lO,fO=Dn,dO=hf,hO=nO,pO=cO;function gO(e,t){return fO(e)?e:dO(e,t)?[e]:hO(pO(e))}var kv=gO,mO=df,vO=1/0;function bO(e){if(typeof e=="string"||mO(e))return e;var t=e+"";return t=="0"&&1/e==-vO?"-0":t}var qs=bO,yO=kv,xO=qs;function CO(e,t){t=yO(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[xO(t[n++])];return n&&n==r?e:void 0}var jv=CO,wO=jv;function SO(e,t,n){var r=e==null?void 0:wO(e,t);return r===void 0?n:r}var IO=SO;function EO(e,t){return e!=null&&t in Object(e)}var AO=EO,_O=kv,PO=Zm,TO=Dn,FO=Xm,OO=Xc,RO=qs;function MO(e,t,n){t=_O(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var u=RO(t[r]);if(!(a=e!=null&&n(e,u)))break;e=e[u]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&OO(i)&&FO(u,i)&&(TO(e)||PO(e)))}var LO=MO,DO=AO,$O=LO;function NO(e,t){return e!=null&&$O(e,t,DO)}var VO=NO,BO=Rv,kO=IO,jO=VO,GO=hf,HO=Mv,WO=Lv,ZO=qs,XO=1,zO=2;function UO(e,t){return GO(e)&&HO(t)?WO(ZO(e),t):function(n){var r=kO(n,e);return r===void 0&&r===t?jO(n,e):BO(t,r,XO|zO)}}var YO=UO;function JO(e){return function(t){return t==null?void 0:t[e]}}var KO=JO,qO=jv;function QO(e){return function(t){return qO(t,e)}}var eR=QO,tR=KO,nR=eR,rR=hf,iR=qs;function oR(e){return rR(e)?tR(iR(e)):nR(e)}var aR=oR,sR=$F,uR=YO,lR=ev,cR=Dn,fR=aR;function dR(e){return typeof e=="function"?e:e==null?lR:typeof e=="object"?cR(e)?uR(e[0],e[1]):sR(e):fR(e)}var hR=dR,pR=Ws;function gR(e,t){return function(n,r){if(n==null)return n;if(!pR(n))return e(n,r);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&r(u[a],a,u)!==!1;);return n}}var mR=gR,vR=Qm,bR=mR,yR=bR(vR),xR=yR,CR=xR,wR=Ws;function SR(e,t){var n=-1,r=wR(e)?Array(e.length):[];return CR(e,function(i,a,u){r[++n]=t(i,a,u)}),r}var IR=SR,ER=nv,AR=hR,_R=IR,PR=Dn;function TR(e,t){var n=PR(e)?ER:_R;return n(e,AR(t))}var FR=TR;Object.defineProperty(va,"__esModule",{value:!0}),va.flattenNames=void 0;var OR=o9,RR=Qs(OR),MR=Jc,LR=Qs(MR),DR=f3,$R=Qs(DR),NR=FR,VR=Qs(NR);function Qs(e){return e&&e.__esModule?e:{default:e}}var BR=va.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,VR.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,$R.default)(r)?(0,LR.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,RR.default)(r)&&n.push(r)}),n};va.default=BR;var Ca={};function kR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var jR=kR,GR=ci,HR=function(){try{var e=GR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),WR=HR,Gv=WR;function ZR(e,t,n){t=="__proto__"&&Gv?Gv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Hv=ZR,XR=Hv,zR=qc,UR=Object.prototype,YR=UR.hasOwnProperty;function JR(e,t,n){var r=e[t];(!(YR.call(e,t)&&zR(r,n))||n===void 0&&!(t in e))&&XR(e,t,n)}var Wv=JR,KR=Wv,qR=Hv;function QR(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?qR(n,l,c):KR(n,l,c)}return n}var eu=QR,eM=eu,tM=xa;function nM(e,t){return e&&eM(t,tM(t),e)}var rM=nM;function iM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var oM=iM,aM=Qi,sM=Yc,uM=oM,lM=Object.prototype,cM=lM.hasOwnProperty;function fM(e){if(!aM(e))return uM(e);var t=sM(e),n=[];for(var r in e)r=="constructor"&&(t||!cM.call(e,r))||n.push(r);return n}var dM=fM,hM=Jm,pM=dM,gM=Ws;function mM(e){return gM(e)?hM(e,!0):pM(e)}var gf=mM,vM=eu,bM=gf;function yM(e,t){return e&&vM(t,bM(t),e)}var xM=yM,tu={exports:{}};tu.exports,function(e,t){var n=Jn,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,u=a?n.Buffer:void 0,l=u?u.allocUnsafe:void 0;function c(f,h){if(h)return f.slice();var p=f.length,m=l?l(p):new f.constructor(p);return f.copy(m),m}e.exports=c}(tu,tu.exports);var CM=tu.exports;function wM(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var SM=wM,IM=eu,EM=of;function AM(e,t){return IM(e,EM(e),t)}var _M=AM,PM=dv,TM=Kc,FM=of,OM=pv,RM=Object.getOwnPropertySymbols,MM=RM?function(e){for(var t=[];e;)PM(t,FM(e)),e=TM(e);return t}:OM,Zv=MM,LM=eu,DM=Zv;function $M(e,t){return LM(e,DM(e),t)}var NM=$M,VM=hv,BM=Zv,kM=gf;function jM(e){return VM(e,kM,BM)}var GM=jM,HM=Object.prototype,WM=HM.hasOwnProperty;function ZM(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&WM.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var XM=ZM,Xv=uv;function zM(e){var t=new e.constructor(e.byteLength);return new Xv(t).set(new Xv(e)),t}var mf=zM,UM=mf;function YM(e,t){var n=t?UM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var JM=YM,KM=/\w*$/;function qM(e){var t=new e.constructor(e.source,KM.exec(e));return t.lastIndex=e.lastIndex,t}var QM=qM,zv=ba,Uv=zv?zv.prototype:void 0,Yv=Uv?Uv.valueOf:void 0;function eL(e){return Yv?Object(Yv.call(e)):{}}var tL=eL,nL=mf;function rL(e,t){var n=t?nL(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var iL=rL,oL=mf,aL=JM,sL=QM,uL=tL,lL=iL,cL="[object Boolean]",fL="[object Date]",dL="[object Map]",hL="[object Number]",pL="[object RegExp]",gL="[object Set]",mL="[object String]",vL="[object Symbol]",bL="[object ArrayBuffer]",yL="[object DataView]",xL="[object Float32Array]",CL="[object Float64Array]",wL="[object Int8Array]",SL="[object Int16Array]",IL="[object Int32Array]",EL="[object Uint8Array]",AL="[object Uint8ClampedArray]",_L="[object Uint16Array]",PL="[object Uint32Array]";function TL(e,t,n){var r=e.constructor;switch(t){case bL:return oL(e);case cL:case fL:return new r(+e);case yL:return aL(e,n);case xL:case CL:case wL:case SL:case IL:case EL:case AL:case _L:case PL:return lL(e,n);case dL:return new r;case hL:case mL:return new r(e);case pL:return sL(e);case gL:return new r;case vL:return uL(e)}}var FL=TL,OL=Qi,Jv=Object.create,RL=function(){function e(){}return function(t){if(!OL(t))return{};if(Jv)return Jv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ML=RL,LL=ML,DL=Kc,$L=Yc;function NL(e){return typeof e.constructor=="function"&&!$L(e)?LL(DL(e)):{}}var VL=NL,BL=Js,kL=cr,jL="[object Map]";function GL(e){return kL(e)&&BL(e)==jL}var HL=GL,WL=HL,ZL=zc,Kv=Uc,qv=Kv&&Kv.isMap,XL=qv?ZL(qv):WL,zL=XL,UL=Js,YL=cr,JL="[object Set]";function KL(e){return YL(e)&&UL(e)==JL}var qL=KL,QL=qL,e7=zc,Qv=Uc,eb=Qv&&Qv.isSet,t7=eb?e7(eb):QL,n7=t7,r7=nf,i7=jR,o7=Wv,a7=rM,s7=xM,u7=CM,l7=SM,c7=_M,f7=NM,d7=mv,h7=GM,p7=Js,g7=XM,m7=FL,v7=VL,b7=Dn,y7=Zc,x7=zL,C7=Qi,w7=n7,S7=xa,I7=gf,E7=1,A7=2,_7=4,tb="[object Arguments]",P7="[object Array]",T7="[object Boolean]",F7="[object Date]",O7="[object Error]",nb="[object Function]",R7="[object GeneratorFunction]",M7="[object Map]",L7="[object Number]",rb="[object Object]",D7="[object RegExp]",$7="[object Set]",N7="[object String]",V7="[object Symbol]",B7="[object WeakMap]",k7="[object ArrayBuffer]",j7="[object DataView]",G7="[object Float32Array]",H7="[object Float64Array]",W7="[object Int8Array]",Z7="[object Int16Array]",X7="[object Int32Array]",z7="[object Uint8Array]",U7="[object Uint8ClampedArray]",Y7="[object Uint16Array]",J7="[object Uint32Array]",bt={};bt[tb]=bt[P7]=bt[k7]=bt[j7]=bt[T7]=bt[F7]=bt[G7]=bt[H7]=bt[W7]=bt[Z7]=bt[X7]=bt[M7]=bt[L7]=bt[rb]=bt[D7]=bt[$7]=bt[N7]=bt[V7]=bt[z7]=bt[U7]=bt[Y7]=bt[J7]=!0,bt[O7]=bt[nb]=bt[B7]=!1;function nu(e,t,n,r,i,a){var u,l=t&E7,c=t&A7,f=t&_7;if(n&&(u=i?n(e,r,i,a):n(e)),u!==void 0)return u;if(!C7(e))return e;var h=b7(e);if(h){if(u=g7(e),!l)return l7(e,u)}else{var p=p7(e),m=p==nb||p==R7;if(y7(e))return u7(e,l);if(p==rb||p==tb||m&&!i){if(u=c||m?{}:v7(e),!l)return c?f7(e,s7(u,e)):c7(e,a7(u,e))}else{if(!bt[p])return i?e:{};u=m7(e,p,l)}}a||(a=new r7);var v=a.get(e);if(v)return v;a.set(e,u),w7(e)?e.forEach(function(E){u.add(nu(E,t,n,E,e,a))}):x7(e)&&e.forEach(function(E,_){u.set(_,nu(E,t,n,_,e,a))});var C=f?c?h7:d7:c?I7:S7,S=h?void 0:C(e);return i7(S||e,function(E,_){S&&(_=E,E=e[_]),o7(u,_,nu(E,t,n,_,e,a))}),u}var K7=nu,q7=K7,Q7=1,eD=4;function tD(e){return q7(e,Q7|eD)}var nD=tD;Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.mergeClasses=void 0;var rD=Jc,iD=ib(rD),oD=nD,aD=ib(oD),sD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ib(e){return e&&e.__esModule?e:{default:e}}var uD=Ca.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,aD.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,iD.default)(a,function(u,l){r[l]||(r[l]={}),r[l]=sD({},r[l],a[l])}),i}),r};Ca.default=uD;var wa={};Object.defineProperty(wa,"__esModule",{value:!0}),wa.autoprefix=void 0;var lD=Jc,ob=fD(lD),cD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function fD(e){return e&&e.__esModule?e:{default:e}}var dD={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var r=n[t];return r||{extend:t}}},hD=wa.autoprefix=function(t){var n={};return(0,ob.default)(t,function(r,i){var a={};(0,ob.default)(r,function(u,l){var c=dD[l];c?a=cD({},a,c(u)):a[l]=u}),n[i]=a}),n};wa.default=hD;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.hover=void 0;var pD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD=b,vf=mD(gD);function mD(e){return e&&e.__esModule?e:{default:e}}function vD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function bD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yD=Sa.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){bD(i,r);function i(){var a,u,l,c;vD(this,i);for(var f=arguments.length,h=Array(f),p=0;p<f;p++)h[p]=arguments[p];return c=(u=(l=ab(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(h))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return vf.default.createElement(n,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},vf.default.createElement(t,pD({},l.props,l.state)))},u),ab(l,c)}return i}(vf.default.Component)};Sa.default=yD;var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.active=void 0;var xD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CD=b,bf=wD(CD);function wD(e){return e&&e.__esModule?e:{default:e}}function SD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sb(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ID(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ED=Ia.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){ID(i,r);function i(){var a,u,l,c;SD(this,i);for(var f=arguments.length,h=Array(f),p=0;p<f;p++)h[p]=arguments[p];return c=(u=(l=sb(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(h))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return bf.default.createElement(n,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},bf.default.createElement(t,xD({},l.props,l.state)))},u),sb(l,c)}return i}(bf.default.Component)};Ia.default=ED;var yf={};Object.defineProperty(yf,"__esModule",{value:!0});var AD=function(t,n){var r={},i=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[u]=l};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};yf.default=AD,Object.defineProperty(In,"__esModule",{value:!0}),In.ReactCSS=In.loop=In.handleActive=xf=In.handleHover=In.hover=void 0;var _D=va,PD=oo(_D),TD=Ca,FD=oo(TD),OD=wa,RD=oo(OD),MD=Sa,ub=oo(MD),LD=Ia,DD=oo(LD),$D=yf,ND=oo($D);function oo(e){return e&&e.__esModule?e:{default:e}}In.hover=ub.default;var xf=In.handleHover=ub.default;In.handleActive=DD.default,In.loop=ND.default;var VD=In.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=(0,PD.default)(r),u=(0,FD.default)(t,a);return(0,RD.default)(u)},je=In.default=VD,BD=function(t,n,r,i,a){var u=a.clientWidth,l=a.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,f=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,h=c-(a.getBoundingClientRect().left+window.pageXOffset),p=f-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var m=void 0;if(p<0?m=0:p>l?m=1:m=Math.round(p*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var v=void 0;if(h<0?v=0:h>u?v=1:v=Math.round(h*100/u)/100,i!==v)return{h:n.h,s:n.s,l:n.l,a:v,source:"rgb"}}return null},Cf={},kD=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var u=a.getContext("2d");return u?(u.fillStyle=t,u.fillRect(0,0,a.width,a.height),u.fillStyle=n,u.fillRect(0,0,r,r),u.translate(r,r),u.fillRect(0,0,r,r),a.toDataURL()):null},jD=function(t,n,r,i){var a=t+"-"+n+"-"+r+(i?"-server":"");if(Cf[a])return Cf[a];var u=kD(t,n,r,i);return Cf[a]=u,u},lb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao=function(t){var n=t.white,r=t.grey,i=t.size,a=t.renderers,u=t.borderRadius,l=t.boxShadow,c=t.children,f=je({default:{grid:{borderRadius:u,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+jD(n,r,i,a.canvas)+") center left"}}});return b.isValidElement(c)?b.cloneElement(c,lb({},c.props,{style:lb({},c.props.style,f.grid)})):b.createElement("div",{style:f.grid})};ao.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var GD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HD=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function WD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cb(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ZD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var wf=function(e){ZD(t,e);function t(){var n,r,i,a;WD(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return a=(r=(i=cb(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.handleChange=function(f){var h=BD(f,i.props.hsl,i.props.direction,i.props.a,i.container);h&&typeof i.props.onChange=="function"&&i.props.onChange(h,f)},i.handleMouseDown=function(f){i.handleChange(f),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},r),cb(i,a)}return HD(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,i=this.props.rgb,a=je({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
66
66
|
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
67
|
-
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:
|
|
67
|
+
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:GD({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return b.createElement("div",{style:a.alpha},b.createElement("div",{style:a.checkboard},b.createElement(ao,{renderers:this.props.renderers})),b.createElement("div",{style:a.gradient}),b.createElement("div",{style:a.container,ref:function(l){return r.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},b.createElement("div",{style:a.pointer},this.props.pointer?b.createElement(this.props.pointer,this.props):b.createElement("div",{style:a.slider}))))}}]),t}(b.PureComponent||b.Component),XD=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function zD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function JD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KD=1,fb=38,qD=40,QD=[fb,qD],e$=function(t){return QD.indexOf(t)>-1},t$=function(t){return Number(String(t).replace(/%/g,""))},n$=1,rt=function(e){JD(t,e);function t(n){UD(this,t);var r=YD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(i){r.setUpdatedValue(i.target.value,i)},r.handleKeyDown=function(i){var a=t$(i.target.value);if(!isNaN(a)&&e$(i.keyCode)){var u=r.getArrowOffset(),l=i.keyCode===fb?a+u:a-u;r.setUpdatedValue(l,i)}},r.handleDrag=function(i){if(r.props.dragLabel){var a=Math.round(r.props.value+i.movementX);a>=0&&a<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(a),i)}},r.handleMouseDown=function(i){r.props.dragLabel&&(i.preventDefault(),r.handleDrag(i),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+n$++,r}return XD(t,[{key:"componentDidUpdate",value:function(r,i){this.props.value!==this.state.value&&(r.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return zD({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||KD}},{key:"setUpdatedValue",value:function(r,i){var a=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(a,i),this.setState({value:r})}},{key:"render",value:function(){var r=this,i=je({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return b.createElement("div",{style:i.wrap},b.createElement("input",{id:this.inputId,style:i.input,ref:function(u){return r.input=u},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?b.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(b.PureComponent||b.Component),r$=function(t,n,r,i){var a=i.clientWidth,u=i.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,f=l-(i.getBoundingClientRect().left+window.pageXOffset),h=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var p=void 0;if(h<0)p=359;else if(h>u)p=0;else{var m=-(h*100/u)+100;p=360*m/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var v=void 0;if(f<0)v=0;else if(f>a)v=359;else{var C=f*100/a;v=360*C/100}if(r.h!==v)return{h:v,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},i$=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function a$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var so=function(e){a$(t,e);function t(){var n,r,i,a;o$(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return a=(r=(i=db(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.handleChange=function(f){var h=r$(f,i.props.direction,i.props.hsl,i.container);h&&typeof i.props.onChange=="function"&&i.props.onChange(h,f)},i.handleMouseDown=function(f){i.handleChange(f),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},r),db(i,a)}return i$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,i=this.props.direction,a=i===void 0?"horizontal":i,u=je({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:a==="vertical"});return b.createElement("div",{style:u.hue},b.createElement("div",{className:"hue-"+a,style:u.container,ref:function(c){return r.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},b.createElement("style",null,`
|
|
68
68
|
.hue-horizontal {
|
|
69
69
|
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
70
70
|
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
@@ -78,27 +78,27 @@ Check the top-level render call using <`+W+">.")}return V}}function _i(x,V){{if(
|
|
|
78
78
|
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
79
79
|
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
80
80
|
}
|
|
81
|
-
`),b.createElement("div",{style:u.pointer},this.props.pointer?b.createElement(this.props.pointer,this.props):b.createElement("div",{style:u.slider}))))}}]),t}(b.PureComponent||b.Component),
|
|
81
|
+
`),b.createElement("div",{style:u.pointer},this.props.pointer?b.createElement(this.props.pointer,this.props):b.createElement("div",{style:u.slider}))))}}]),t}(b.PureComponent||b.Component),Sf={exports:{}},If,hb;function Ef(){if(hb)return If;hb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return If=e,If}var Af,pb;function s$(){if(pb)return Af;pb=1;var e=Ef();function t(){}function n(){}return n.resetWarningCache=t,Af=function(){function r(u,l,c,f,h,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Af}var _f={exports:{}},ft={};/** @license React v16.13.1
|
|
82
82
|
* react-is.development.js
|
|
83
83
|
*
|
|
84
84
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the MIT license found in the
|
|
87
87
|
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/var
|
|
88
|
+
*/var gb;function u$(){return gb||(gb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function L(J){return typeof J=="string"||typeof J=="function"||J===r||J===f||J===a||J===i||J===p||J===m||typeof J=="object"&&J!==null&&(J.$$typeof===C||J.$$typeof===v||J.$$typeof===u||J.$$typeof===l||J.$$typeof===h||J.$$typeof===E||J.$$typeof===_||J.$$typeof===R||J.$$typeof===S)}function $(J){if(typeof J=="object"&&J!==null){var le=J.$$typeof;switch(le){case t:var Q=J.type;switch(Q){case c:case f:case r:case a:case i:case p:return Q;default:var he=Q&&Q.$$typeof;switch(he){case l:case h:case C:case v:case u:return he;default:return le}}case n:return le}}}var V=c,U=f,X=l,te=u,de=t,Pe=h,ke=r,He=C,ee=v,ve=n,ye=a,Ee=i,Ve=p,Ke=!1;function F(J){return Ke||(Ke=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),T(J)||$(J)===c}function T(J){return $(J)===f}function M(J){return $(J)===l}function O(J){return $(J)===u}function y(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function H(J){return $(J)===h}function ne(J){return $(J)===r}function ae(J){return $(J)===C}function z(J){return $(J)===v}function Y(J){return $(J)===n}function G(J){return $(J)===a}function q(J){return $(J)===i}function ue(J){return $(J)===p}ft.AsyncMode=V,ft.ConcurrentMode=U,ft.ContextConsumer=X,ft.ContextProvider=te,ft.Element=de,ft.ForwardRef=Pe,ft.Fragment=ke,ft.Lazy=He,ft.Memo=ee,ft.Portal=ve,ft.Profiler=ye,ft.StrictMode=Ee,ft.Suspense=Ve,ft.isAsyncMode=F,ft.isConcurrentMode=T,ft.isContextConsumer=M,ft.isContextProvider=O,ft.isElement=y,ft.isForwardRef=H,ft.isFragment=ne,ft.isLazy=ae,ft.isMemo=z,ft.isPortal=Y,ft.isProfiler=G,ft.isStrictMode=q,ft.isSuspense=ue,ft.isValidElementType=L,ft.typeOf=$}()),ft}var dt={};/** @license React v16.13.1
|
|
89
89
|
* react-is.production.min.js
|
|
90
90
|
*
|
|
91
91
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the MIT license found in the
|
|
94
94
|
* LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/var
|
|
95
|
+
*/var mb;function l$(){if(mb)return dt;mb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function L(V){if(typeof V=="object"&&V!==null){var U=V.$$typeof;switch(U){case t:switch(V=V.type,V){case c:case f:case r:case a:case i:case p:return V;default:switch(V=V&&V.$$typeof,V){case l:case h:case C:case v:case u:return V;default:return U}}case n:return U}}}function $(V){return L(V)===f}return dt.AsyncMode=c,dt.ConcurrentMode=f,dt.ContextConsumer=l,dt.ContextProvider=u,dt.Element=t,dt.ForwardRef=h,dt.Fragment=r,dt.Lazy=C,dt.Memo=v,dt.Portal=n,dt.Profiler=a,dt.StrictMode=i,dt.Suspense=p,dt.isAsyncMode=function(V){return $(V)||L(V)===c},dt.isConcurrentMode=$,dt.isContextConsumer=function(V){return L(V)===l},dt.isContextProvider=function(V){return L(V)===u},dt.isElement=function(V){return typeof V=="object"&&V!==null&&V.$$typeof===t},dt.isForwardRef=function(V){return L(V)===h},dt.isFragment=function(V){return L(V)===r},dt.isLazy=function(V){return L(V)===C},dt.isMemo=function(V){return L(V)===v},dt.isPortal=function(V){return L(V)===n},dt.isProfiler=function(V){return L(V)===a},dt.isStrictMode=function(V){return L(V)===i},dt.isSuspense=function(V){return L(V)===p},dt.isValidElementType=function(V){return typeof V=="string"||typeof V=="function"||V===r||V===f||V===a||V===i||V===p||V===m||typeof V=="object"&&V!==null&&(V.$$typeof===C||V.$$typeof===v||V.$$typeof===u||V.$$typeof===l||V.$$typeof===h||V.$$typeof===E||V.$$typeof===_||V.$$typeof===R||V.$$typeof===S)},dt.typeOf=L,dt}process.env.NODE_ENV==="production"?_f.exports=l$():_f.exports=u$();var Pf=_f.exports;/*
|
|
96
96
|
object-assign
|
|
97
97
|
(c) Sindre Sorhus
|
|
98
98
|
@license MIT
|
|
99
|
-
*/var
|
|
100
|
-
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var J=se(z,q,H,te,oe+"."+q,n);if(J)return J}return null}return E(R)}function Ce(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(Ce);if(_===null||l(_))return!0;var R=h(_);if(R){var O=R.call(_),y;if(R!==_.entries){for(;!(y=O.next()).done;)if(!Ce(y.value))return!1}else for(;!(y=O.next()).done;){var H=y.value;if(H&&!Ce(H[1]))return!1}}else return!1;return!0;default:return!1}}function be(_,R){return _==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function _e(_){var R=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":be(R,_)?"symbol":R}function De(_){if(typeof _>"u"||_===null)return""+_;var R=_e(_);if(R==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return R}function Ye(_){var R=De(_);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function T(_){return!_.constructor||!_.constructor.name?m:_.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Cf}if(process.env.NODE_ENV!=="production"){var ZD=vf,XD=!0;df.exports=WD()(ZD.isElement,XD)}else df.exports=BD()();var zD=df.exports;const pe=Nl(zD);function UD(){this.__data__=[],this.size=0}function Ca(e,t){return e===t||e!==e&&t!==t}function qs(e,t){for(var n=e.length;n--;)if(Ca(e[n][0],t))return n;return-1}var YD=Array.prototype,JD=YD.splice;function KD(e){var t=this.__data__,n=qs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():JD.call(t,n,1),--this.size,!0}function qD(e){var t=this.__data__,n=qs(t,e);return n<0?void 0:t[n][1]}function QD(e){return qs(this.__data__,e)>-1}function eN(e,t){var n=this.__data__,r=qs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function lr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lr.prototype.clear=UD,lr.prototype.delete=KD,lr.prototype.get=qD,lr.prototype.has=QD,lr.prototype.set=eN;function tN(){this.__data__=new lr,this.size=0}function nN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function rN(e){return this.__data__.get(e)}function iN(e){return this.__data__.has(e)}var oN=typeof global=="object"&&global&&global.Object===Object&&global;const sb=oN;var aN=typeof self=="object"&&self&&self.Object===Object&&self,sN=sb||aN||Function("return this")();const Ln=sN;var uN=Ln.Symbol;const Nr=uN;var ub=Object.prototype,lN=ub.hasOwnProperty,cN=ub.toString,wa=Nr?Nr.toStringTag:void 0;function fN(e){var t=lN.call(e,wa),n=e[wa];try{e[wa]=void 0;var r=!0}catch{}var i=cN.call(e);return r&&(t?e[wa]=n:delete e[wa]),i}var dN=Object.prototype,pN=dN.toString;function hN(e){return pN.call(e)}var gN="[object Null]",mN="[object Undefined]",lb=Nr?Nr.toStringTag:void 0;function li(e){return e==null?e===void 0?mN:gN:lb&&lb in Object(e)?fN(e):hN(e)}function Sn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vN="[object AsyncFunction]",bN="[object Function]",yN="[object GeneratorFunction]",xN="[object Proxy]";function wf(e){if(!Sn(e))return!1;var t=li(e);return t==bN||t==yN||t==vN||t==xN}var CN=Ln["__core-js_shared__"];const Sf=CN;var cb=function(){var e=/[^.]+$/.exec(Sf&&Sf.keys&&Sf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wN(e){return!!cb&&cb in e}var SN=Function.prototype,IN=SN.toString;function ci(e){if(e!=null){try{return IN.call(e)}catch{}try{return e+""}catch{}}return""}var EN=/[\\^$.*+?()[\]{}|]/g,AN=/^\[object .+?Constructor\]$/,_N=Function.prototype,PN=Object.prototype,TN=_N.toString,ON=PN.hasOwnProperty,FN=RegExp("^"+TN.call(ON).replace(EN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RN(e){if(!Sn(e)||wN(e))return!1;var t=wf(e)?FN:AN;return t.test(ci(e))}function MN(e,t){return e==null?void 0:e[t]}function fi(e,t){var n=MN(e,t);return RN(n)?n:void 0}var LN=fi(Ln,"Map");const Sa=LN;var $N=fi(Object,"create");const Ia=$N;function DN(){this.__data__=Ia?Ia(null):{},this.size=0}function NN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VN="__lodash_hash_undefined__",BN=Object.prototype,kN=BN.hasOwnProperty;function jN(e){var t=this.__data__;if(Ia){var n=t[e];return n===VN?void 0:n}return kN.call(t,e)?t[e]:void 0}var GN=Object.prototype,HN=GN.hasOwnProperty;function WN(e){var t=this.__data__;return Ia?t[e]!==void 0:HN.call(t,e)}var ZN="__lodash_hash_undefined__";function XN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ia&&t===void 0?ZN:t,this}function di(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}di.prototype.clear=DN,di.prototype.delete=NN,di.prototype.get=jN,di.prototype.has=WN,di.prototype.set=XN;function zN(){this.size=0,this.__data__={hash:new di,map:new(Sa||lr),string:new di}}function UN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qs(e,t){var n=e.__data__;return UN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function YN(e){var t=Qs(this,e).delete(e);return this.size-=t?1:0,t}function JN(e){return Qs(this,e).get(e)}function KN(e){return Qs(this,e).has(e)}function qN(e,t){var n=Qs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cr.prototype.clear=zN,cr.prototype.delete=YN,cr.prototype.get=JN,cr.prototype.has=KN,cr.prototype.set=qN;var QN=200;function e7(e,t){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!Sa||r.length<QN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cr(r)}return n.set(e,t),this.size=n.size,this}function Yn(e){var t=this.__data__=new lr(e);this.size=t.size}Yn.prototype.clear=tN,Yn.prototype.delete=nN,Yn.prototype.get=rN,Yn.prototype.has=iN,Yn.prototype.set=e7;var t7=function(){try{var e=fi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const eu=t7;function If(e,t,n){t=="__proto__"&&eu?eu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ef(e,t,n){(n!==void 0&&!Ca(e[t],n)||n===void 0&&!(t in e))&&If(e,t,n)}function n7(e){return function(t,n,r){for(var i=-1,a=Object(t),u=r(t),l=u.length;l--;){var c=u[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var r7=n7();const fb=r7;var db=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,pb=db&&typeof module=="object"&&module&&!module.nodeType&&module,i7=pb&&pb.exports===db,hb=i7?Ln.Buffer:void 0,gb=hb?hb.allocUnsafe:void 0;function o7(e,t){if(t)return e.slice();var n=e.length,r=gb?gb(n):new e.constructor(n);return e.copy(r),r}var a7=Ln.Uint8Array;const tu=a7;function s7(e){var t=new e.constructor(e.byteLength);return new tu(t).set(new tu(e)),t}function u7(e,t){var n=t?s7(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function l7(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var mb=Object.create,c7=function(){function e(){}return function(t){if(!Sn(t))return{};if(mb)return mb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const f7=c7;function vb(e,t){return function(n){return e(t(n))}}var d7=vb(Object.getPrototypeOf,Object);const bb=d7;var p7=Object.prototype;function Af(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||p7;return e===n}function h7(e){return typeof e.constructor=="function"&&!Af(e)?f7(bb(e)):{}}function Vr(e){return e!=null&&typeof e=="object"}var g7="[object Arguments]";function yb(e){return Vr(e)&&li(e)==g7}var xb=Object.prototype,m7=xb.hasOwnProperty,v7=xb.propertyIsEnumerable,b7=yb(function(){return arguments}())?yb:function(e){return Vr(e)&&m7.call(e,"callee")&&!v7.call(e,"callee")};const nu=b7;var y7=Array.isArray;const fn=y7;var x7=9007199254740991;function _f(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x7}function oo(e){return e!=null&&_f(e.length)&&!wf(e)}function C7(e){return Vr(e)&&oo(e)}function w7(){return!1}var Cb=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,wb=Cb&&typeof module=="object"&&module&&!module.nodeType&&module,S7=wb&&wb.exports===Cb,Sb=S7?Ln.Buffer:void 0,I7=Sb?Sb.isBuffer:void 0,E7=I7||w7;const ru=E7;var A7="[object Object]",_7=Function.prototype,P7=Object.prototype,Ib=_7.toString,T7=P7.hasOwnProperty,O7=Ib.call(Object);function F7(e){if(!Vr(e)||li(e)!=A7)return!1;var t=bb(e);if(t===null)return!0;var n=T7.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ib.call(n)==O7}var R7="[object Arguments]",M7="[object Array]",L7="[object Boolean]",$7="[object Date]",D7="[object Error]",N7="[object Function]",V7="[object Map]",B7="[object Number]",k7="[object Object]",j7="[object RegExp]",G7="[object Set]",H7="[object String]",W7="[object WeakMap]",Z7="[object ArrayBuffer]",X7="[object DataView]",z7="[object Float32Array]",U7="[object Float64Array]",Y7="[object Int8Array]",J7="[object Int16Array]",K7="[object Int32Array]",q7="[object Uint8Array]",Q7="[object Uint8ClampedArray]",eV="[object Uint16Array]",tV="[object Uint32Array]",xt={};xt[z7]=xt[U7]=xt[Y7]=xt[J7]=xt[K7]=xt[q7]=xt[Q7]=xt[eV]=xt[tV]=!0,xt[R7]=xt[M7]=xt[Z7]=xt[L7]=xt[X7]=xt[$7]=xt[D7]=xt[N7]=xt[V7]=xt[B7]=xt[k7]=xt[j7]=xt[G7]=xt[H7]=xt[W7]=!1;function nV(e){return Vr(e)&&_f(e.length)&&!!xt[li(e)]}function rV(e){return function(t){return e(t)}}var Eb=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,Ea=Eb&&typeof module=="object"&&module&&!module.nodeType&&module,iV=Ea&&Ea.exports===Eb,Pf=iV&&sb.process,oV=function(){try{var e=Ea&&Ea.require&&Ea.require("util").types;return e||Pf&&Pf.binding&&Pf.binding("util")}catch{}}();const Ab=oV;var _b=Ab&&Ab.isTypedArray,aV=_b?rV(_b):nV;const Tf=aV;function Of(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var sV=Object.prototype,uV=sV.hasOwnProperty;function lV(e,t,n){var r=e[t];(!(uV.call(e,t)&&Ca(r,n))||n===void 0&&!(t in e))&&If(e,t,n)}function cV(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?If(n,l,c):lV(n,l,c)}return n}function fV(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var dV=9007199254740991,pV=/^(?:0|[1-9]\d*)$/;function Ff(e,t){var n=typeof e;return t=t??dV,!!t&&(n=="number"||n!="symbol"&&pV.test(e))&&e>-1&&e%1==0&&e<t}var hV=Object.prototype,gV=hV.hasOwnProperty;function Pb(e,t){var n=fn(e),r=!n&&nu(e),i=!n&&!r&&ru(e),a=!n&&!r&&!i&&Tf(e),u=n||r||i||a,l=u?fV(e.length,String):[],c=l.length;for(var f in e)(t||gV.call(e,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Ff(f,c)))&&l.push(f);return l}function mV(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vV=Object.prototype,bV=vV.hasOwnProperty;function yV(e){if(!Sn(e))return mV(e);var t=Af(e),n=[];for(var r in e)r=="constructor"&&(t||!bV.call(e,r))||n.push(r);return n}function Tb(e){return oo(e)?Pb(e,!0):yV(e)}function xV(e){return cV(e,Tb(e))}function CV(e,t,n,r,i,a,u){var l=Of(e,n),c=Of(t,n),f=u.get(c);if(f){Ef(e,n,f);return}var p=a?a(l,c,n+"",e,t,u):void 0,h=p===void 0;if(h){var m=fn(c),v=!m&&ru(c),S=!m&&!v&&Tf(c);p=c,m||v||S?fn(l)?p=l:C7(l)?p=l7(l):v?(h=!1,p=o7(c,!0)):S?(h=!1,p=u7(c,!0)):p=[]:F7(c)||nu(c)?(p=l,nu(l)?p=xV(l):(!Sn(l)||wf(l))&&(p=h7(c))):h=!1}h&&(u.set(c,p),i(p,c,r,a,u),u.delete(c)),Ef(e,n,p)}function Ob(e,t,n,r,i){e!==t&&fb(t,function(a,u){if(i||(i=new Yn),Sn(a))CV(e,t,u,n,Ob,r,i);else{var l=r?r(Of(e,u),a,u+"",e,t,i):void 0;l===void 0&&(l=a),Ef(e,u,l)}},Tb)}function iu(e){return e}function wV(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fb=Math.max;function SV(e,t,n){return t=Fb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Fb(r.length-t,0),u=Array(a);++i<a;)u[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(u),wV(e,this,l)}}function IV(e){return function(){return e}}var EV=eu?function(e,t){return eu(e,"toString",{configurable:!0,enumerable:!1,value:IV(t),writable:!0})}:iu;const AV=EV;var _V=800,PV=16,TV=Date.now;function OV(e){var t=0,n=0;return function(){var r=TV(),i=PV-(r-n);if(n=r,i>0){if(++t>=_V)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var FV=OV(AV);const RV=FV;function MV(e,t){return RV(SV(e,t,iu),e+"")}function LV(e,t,n){if(!Sn(n))return!1;var r=typeof t;return(r=="number"?oo(n)&&Ff(t,n.length):r=="string"&&t in n)?Ca(n[t],e):!1}function $V(e){return MV(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,u&&LV(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}var DV=$V(function(e,t,n){Ob(e,t,n)});const nn=DV;var Aa=function(t){var n=t.zDepth,r=t.radius,i=t.background,a=t.children,u=t.styles,l=u===void 0?{}:u,c=Be(nn({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+n*4+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":n===1});return b.createElement("div",{style:c.wrap},b.createElement("div",{style:c.bg}),b.createElement("div",{style:c.content},a))};Aa.propTypes={background:pe.string,zDepth:pe.oneOf([0,1,2,3,4,5]),radius:pe.number,styles:pe.object},Aa.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var NV=function(){return Ln.Date.now()};const Rf=NV;var VV=/\s/;function BV(e){for(var t=e.length;t--&&VV.test(e.charAt(t)););return t}var kV=/^\s+/;function jV(e){return e&&e.slice(0,BV(e)+1).replace(kV,"")}var GV="[object Symbol]";function ou(e){return typeof e=="symbol"||Vr(e)&&li(e)==GV}var Rb=NaN,HV=/^[-+]0x[0-9a-f]+$/i,WV=/^0b[01]+$/i,ZV=/^0o[0-7]+$/i,XV=parseInt;function Mb(e){if(typeof e=="number")return e;if(ou(e))return Rb;if(Sn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jV(e);var n=WV.test(e);return n||ZV.test(e)?XV(e.slice(2),n?2:8):HV.test(e)?Rb:+e}var zV="Expected a function",UV=Math.max,YV=Math.min;function Lb(e,t,n){var r,i,a,u,l,c,f=0,p=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(zV);t=Mb(t)||0,Sn(n)&&(p=!!n.leading,h="maxWait"in n,a=h?UV(Mb(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function v(U){var X=r,ee=i;return r=i=void 0,f=U,u=e.apply(ee,X),u}function S(U){return f=U,l=setTimeout(P,t),p?v(U):u}function C(U){var X=U-c,ee=U-f,fe=t-X;return h?YV(fe,a-ee):fe}function E(U){var X=U-c,ee=U-f;return c===void 0||X>=t||X<0||h&&ee>=a}function P(){var U=Rf();if(E(U))return M(U);l=setTimeout(P,C(U))}function M(U){return l=void 0,m&&r?v(U):(r=i=void 0,u)}function $(){l!==void 0&&clearTimeout(l),f=0,r=c=i=l=void 0}function B(){return l===void 0?u:M(Rf())}function N(){var U=Rf(),X=E(U);if(r=arguments,i=this,c=U,X){if(l===void 0)return S(c);if(h)return clearTimeout(l),l=setTimeout(P,t),v(c)}return l===void 0&&(l=setTimeout(P,t)),u}return N.cancel=$,N.flush=B,N}var JV="Expected a function";function KV(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(JV);return Sn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lb(e,t,{leading:r,maxWait:t,trailing:i})}var qV=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,u=i.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,f=l-(r.getBoundingClientRect().left+window.pageXOffset),p=c-(r.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),p<0?p=0:p>u&&(p=u);var h=f/a,m=1-p/u;return{h:n.h,s:h,v:m,a:n.a,source:"hsv"}},QV=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function e6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t6(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function n6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var au=function(e){n6(t,e);function t(n){e6(this,t);var r=t6(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.handleChange=function(i){typeof r.props.onChange=="function"&&r.throttle(r.props.onChange,qV(i,r.props.hsl,r.container),i)},r.handleMouseDown=function(i){r.handleChange(i);var a=r.getContainerRenderWindow();a.addEventListener("mousemove",r.handleChange),a.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=KV(function(i,a,u){i(a,u)},50),r}return QV(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var r=this.container,i=window;!i.document.contains(r)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,i=this.props.style||{},a=i.color,u=i.white,l=i.black,c=i.pointer,f=i.circle,p=Be({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
101
|
-
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:u,black:l,pointer:c,circle:f}},{custom:!!this.props.style});return b.createElement("div",{style:
|
|
99
|
+
*/var Tf,vb;function c$(){if(vb)return Tf;vb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tf=i()?Object.assign:function(a,u){for(var l,c=r(a),f,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){f=e(l);for(var m=0;m<f.length;m++)n.call(l,f[m])&&(c[f[m]]=l[f[m]])}}return c},Tf}var Ff,bb;function yb(){return bb||(bb=1,Ff=Function.call.bind(Object.prototype.hasOwnProperty)),Ff}var Of,xb;function f$(){if(xb)return Of;xb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ef(),n={},r=yb();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function i(a,u,l,c,f){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var p;try{if(typeof a[h]!="function"){var m=Error((c||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=a[h](u,h,c,l,null,t)}catch(C){p=C}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var v=f?f():"";e("Failed "+l+" type: "+p.message+(v??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Of=i,Of}var Rf,Cb;function d$(){if(Cb)return Rf;Cb=1;var e=Pf,t=c$(),n=Ef(),r=yb(),i=f$(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function u(){return null}return Rf=function(l,c){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function p(T){var M=T&&(f&&T[f]||T[h]);if(typeof M=="function")return M}var m="<<anonymous>>",v={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:R(),arrayOf:L,element:$(),elementType:V(),instanceOf:U,node:Pe(),objectOf:te,oneOf:X,oneOfType:de,shape:He,exact:ee};function C(T,M){return T===M?T!==0||1/T===1/M:T!==T&&M!==M}function S(T,M){this.message=T,this.data=M&&typeof M=="object"?M:{},this.stack=""}S.prototype=Error.prototype;function E(T){if(process.env.NODE_ENV!=="production")var M={},O=0;function y(ne,ae,z,Y,G,q,ue){if(Y=Y||m,q=q||z,ue!==n){if(c){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=Y+":"+z;!M[le]&&O<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[le]=!0,O++)}}return ae[z]==null?ne?ae[z]===null?new S("The "+G+" `"+q+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new S("The "+G+" `"+q+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:T(ae,z,Y,G,q)}var H=y.bind(null,!1);return H.isRequired=y.bind(null,!0),H}function _(T){function M(O,y,H,ne,ae,z){var Y=O[y],G=Ee(Y);if(G!==T){var q=Ve(Y);return new S("Invalid "+ne+" `"+ae+"` of type "+("`"+q+"` supplied to `"+H+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return E(M)}function R(){return E(u)}function L(T){function M(O,y,H,ne,ae){if(typeof T!="function")return new S("Property `"+ae+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var z=O[y];if(!Array.isArray(z)){var Y=Ee(z);return new S("Invalid "+ne+" `"+ae+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an array."))}for(var G=0;G<z.length;G++){var q=T(z,G,H,ne,ae+"["+G+"]",n);if(q instanceof Error)return q}return null}return E(M)}function $(){function T(M,O,y,H,ne){var ae=M[O];if(!l(ae)){var z=Ee(ae);return new S("Invalid "+H+" `"+ne+"` of type "+("`"+z+"` supplied to `"+y+"`, expected a single ReactElement."))}return null}return E(T)}function V(){function T(M,O,y,H,ne){var ae=M[O];if(!e.isValidElementType(ae)){var z=Ee(ae);return new S("Invalid "+H+" `"+ne+"` of type "+("`"+z+"` supplied to `"+y+"`, expected a single ReactElement type."))}return null}return E(T)}function U(T){function M(O,y,H,ne,ae){if(!(O[y]instanceof T)){var z=T.name||m,Y=F(O[y]);return new S("Invalid "+ne+" `"+ae+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected ")+("instance of `"+z+"`."))}return null}return E(M)}function X(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function M(O,y,H,ne,ae){for(var z=O[y],Y=0;Y<T.length;Y++)if(C(z,T[Y]))return null;var G=JSON.stringify(T,function(ue,J){var le=Ve(J);return le==="symbol"?String(J):J});return new S("Invalid "+ne+" `"+ae+"` of value `"+String(z)+"` "+("supplied to `"+H+"`, expected one of "+G+"."))}return E(M)}function te(T){function M(O,y,H,ne,ae){if(typeof T!="function")return new S("Property `"+ae+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var z=O[y],Y=Ee(z);if(Y!=="object")return new S("Invalid "+ne+" `"+ae+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an object."));for(var G in z)if(r(z,G)){var q=T(z,G,H,ne,ae+"."+G,n);if(q instanceof Error)return q}return null}return E(M)}function de(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var M=0;M<T.length;M++){var O=T[M];if(typeof O!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ke(O)+" at index "+M+"."),u}function y(H,ne,ae,z,Y){for(var G=[],q=0;q<T.length;q++){var ue=T[q],J=ue(H,ne,ae,z,Y,n);if(J==null)return null;J.data&&r(J.data,"expectedType")&&G.push(J.data.expectedType)}var le=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new S("Invalid "+z+" `"+Y+"` supplied to "+("`"+ae+"`"+le+"."))}return E(y)}function Pe(){function T(M,O,y,H,ne){return ve(M[O])?null:new S("Invalid "+H+" `"+ne+"` supplied to "+("`"+y+"`, expected a ReactNode."))}return E(T)}function ke(T,M,O,y,H){return new S((T||"React class")+": "+M+" type `"+O+"."+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function He(T){function M(O,y,H,ne,ae){var z=O[y],Y=Ee(z);if(Y!=="object")return new S("Invalid "+ne+" `"+ae+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));for(var G in T){var q=T[G];if(typeof q!="function")return ke(H,ne,ae,G,Ve(q));var ue=q(z,G,H,ne,ae+"."+G,n);if(ue)return ue}return null}return E(M)}function ee(T){function M(O,y,H,ne,ae){var z=O[y],Y=Ee(z);if(Y!=="object")return new S("Invalid "+ne+" `"+ae+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));var G=t({},O[y],T);for(var q in G){var ue=T[q];if(r(T,q)&&typeof ue!="function")return ke(H,ne,ae,q,Ve(ue));if(!ue)return new S("Invalid "+ne+" `"+ae+"` key `"+q+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(O[y],null," ")+`
|
|
100
|
+
Valid keys: `+JSON.stringify(Object.keys(T),null," "));var J=ue(z,q,H,ne,ae+"."+q,n);if(J)return J}return null}return E(M)}function ve(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(ve);if(T===null||l(T))return!0;var M=p(T);if(M){var O=M.call(T),y;if(M!==T.entries){for(;!(y=O.next()).done;)if(!ve(y.value))return!1}else for(;!(y=O.next()).done;){var H=y.value;if(H&&!ve(H[1]))return!1}}else return!1;return!0;default:return!1}}function ye(T,M){return T==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function Ee(T){var M=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":ye(M,T)?"symbol":M}function Ve(T){if(typeof T>"u"||T===null)return""+T;var M=Ee(T);if(M==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return M}function Ke(T){var M=Ve(T);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function F(T){return!T.constructor||!T.constructor.name?m:T.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Rf}if(process.env.NODE_ENV!=="production"){var h$=Pf,p$=!0;Sf.exports=d$()(h$.isElement,p$)}else Sf.exports=s$()();var g$=Sf.exports;const pe=Zl(g$);function m$(){this.__data__=[],this.size=0}function Ea(e,t){return e===t||e!==e&&t!==t}function ru(e,t){for(var n=e.length;n--;)if(Ea(e[n][0],t))return n;return-1}var v$=Array.prototype,b$=v$.splice;function y$(e){var t=this.__data__,n=ru(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():b$.call(t,n,1),--this.size,!0}function x$(e){var t=this.__data__,n=ru(t,e);return n<0?void 0:t[n][1]}function C$(e){return ru(this.__data__,e)>-1}function w$(e,t){var n=this.__data__,r=ru(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fr.prototype.clear=m$,fr.prototype.delete=y$,fr.prototype.get=x$,fr.prototype.has=C$,fr.prototype.set=w$;function S$(){this.__data__=new fr,this.size=0}function I$(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function E$(e){return this.__data__.get(e)}function A$(e){return this.__data__.has(e)}var _$=typeof global=="object"&&global&&global.Object===Object&&global;const wb=_$;var P$=typeof self=="object"&&self&&self.Object===Object&&self,T$=wb||P$||Function("return this")();const $n=T$;var F$=$n.Symbol;const Br=F$;var Sb=Object.prototype,O$=Sb.hasOwnProperty,R$=Sb.toString,Aa=Br?Br.toStringTag:void 0;function M$(e){var t=O$.call(e,Aa),n=e[Aa];try{e[Aa]=void 0;var r=!0}catch{}var i=R$.call(e);return r&&(t?e[Aa]=n:delete e[Aa]),i}var L$=Object.prototype,D$=L$.toString;function $$(e){return D$.call(e)}var N$="[object Null]",V$="[object Undefined]",Ib=Br?Br.toStringTag:void 0;function di(e){return e==null?e===void 0?V$:N$:Ib&&Ib in Object(e)?M$(e):$$(e)}function En(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var B$="[object AsyncFunction]",k$="[object Function]",j$="[object GeneratorFunction]",G$="[object Proxy]";function Mf(e){if(!En(e))return!1;var t=di(e);return t==k$||t==j$||t==B$||t==G$}var H$=$n["__core-js_shared__"];const Lf=H$;var Eb=function(){var e=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W$(e){return!!Eb&&Eb in e}var Z$=Function.prototype,X$=Z$.toString;function hi(e){if(e!=null){try{return X$.call(e)}catch{}try{return e+""}catch{}}return""}var z$=/[\\^$.*+?()[\]{}|]/g,U$=/^\[object .+?Constructor\]$/,Y$=Function.prototype,J$=Object.prototype,K$=Y$.toString,q$=J$.hasOwnProperty,Q$=RegExp("^"+K$.call(q$).replace(z$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eN(e){if(!En(e)||W$(e))return!1;var t=Mf(e)?Q$:U$;return t.test(hi(e))}function tN(e,t){return e==null?void 0:e[t]}function pi(e,t){var n=tN(e,t);return eN(n)?n:void 0}var nN=pi($n,"Map");const _a=nN;var rN=pi(Object,"create");const Pa=rN;function iN(){this.__data__=Pa?Pa(null):{},this.size=0}function oN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var aN="__lodash_hash_undefined__",sN=Object.prototype,uN=sN.hasOwnProperty;function lN(e){var t=this.__data__;if(Pa){var n=t[e];return n===aN?void 0:n}return uN.call(t,e)?t[e]:void 0}var cN=Object.prototype,fN=cN.hasOwnProperty;function dN(e){var t=this.__data__;return Pa?t[e]!==void 0:fN.call(t,e)}var hN="__lodash_hash_undefined__";function pN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pa&&t===void 0?hN:t,this}function gi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gi.prototype.clear=iN,gi.prototype.delete=oN,gi.prototype.get=lN,gi.prototype.has=dN,gi.prototype.set=pN;function gN(){this.size=0,this.__data__={hash:new gi,map:new(_a||fr),string:new gi}}function mN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function iu(e,t){var n=e.__data__;return mN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vN(e){var t=iu(this,e).delete(e);return this.size-=t?1:0,t}function bN(e){return iu(this,e).get(e)}function yN(e){return iu(this,e).has(e)}function xN(e,t){var n=iu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dr.prototype.clear=gN,dr.prototype.delete=vN,dr.prototype.get=bN,dr.prototype.has=yN,dr.prototype.set=xN;var CN=200;function wN(e,t){var n=this.__data__;if(n instanceof fr){var r=n.__data__;if(!_a||r.length<CN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dr(r)}return n.set(e,t),this.size=n.size,this}function Kn(e){var t=this.__data__=new fr(e);this.size=t.size}Kn.prototype.clear=S$,Kn.prototype.delete=I$,Kn.prototype.get=E$,Kn.prototype.has=A$,Kn.prototype.set=wN;var SN=function(){try{var e=pi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ou=SN;function Df(e,t,n){t=="__proto__"&&ou?ou(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $f(e,t,n){(n!==void 0&&!Ea(e[t],n)||n===void 0&&!(t in e))&&Df(e,t,n)}function IN(e){return function(t,n,r){for(var i=-1,a=Object(t),u=r(t),l=u.length;l--;){var c=u[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var EN=IN();const Ab=EN;var _b=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Pb=_b&&typeof module=="object"&&module&&!module.nodeType&&module,AN=Pb&&Pb.exports===_b,Tb=AN?$n.Buffer:void 0,Fb=Tb?Tb.allocUnsafe:void 0;function _N(e,t){if(t)return e.slice();var n=e.length,r=Fb?Fb(n):new e.constructor(n);return e.copy(r),r}var PN=$n.Uint8Array;const au=PN;function TN(e){var t=new e.constructor(e.byteLength);return new au(t).set(new au(e)),t}function FN(e,t){var n=t?TN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ON(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ob=Object.create,RN=function(){function e(){}return function(t){if(!En(t))return{};if(Ob)return Ob(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const MN=RN;function Rb(e,t){return function(n){return e(t(n))}}var LN=Rb(Object.getPrototypeOf,Object);const Mb=LN;var DN=Object.prototype;function Nf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||DN;return e===n}function $N(e){return typeof e.constructor=="function"&&!Nf(e)?MN(Mb(e)):{}}function kr(e){return e!=null&&typeof e=="object"}var NN="[object Arguments]";function Lb(e){return kr(e)&&di(e)==NN}var Db=Object.prototype,VN=Db.hasOwnProperty,BN=Db.propertyIsEnumerable,kN=Lb(function(){return arguments}())?Lb:function(e){return kr(e)&&VN.call(e,"callee")&&!BN.call(e,"callee")};const su=kN;var jN=Array.isArray;const hn=jN;var GN=9007199254740991;function Vf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=GN}function uo(e){return e!=null&&Vf(e.length)&&!Mf(e)}function HN(e){return kr(e)&&uo(e)}function WN(){return!1}var $b=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Nb=$b&&typeof module=="object"&&module&&!module.nodeType&&module,ZN=Nb&&Nb.exports===$b,Vb=ZN?$n.Buffer:void 0,XN=Vb?Vb.isBuffer:void 0,zN=XN||WN;const uu=zN;var UN="[object Object]",YN=Function.prototype,JN=Object.prototype,Bb=YN.toString,KN=JN.hasOwnProperty,qN=Bb.call(Object);function QN(e){if(!kr(e)||di(e)!=UN)return!1;var t=Mb(e);if(t===null)return!0;var n=KN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Bb.call(n)==qN}var e6="[object Arguments]",t6="[object Array]",n6="[object Boolean]",r6="[object Date]",i6="[object Error]",o6="[object Function]",a6="[object Map]",s6="[object Number]",u6="[object Object]",l6="[object RegExp]",c6="[object Set]",f6="[object String]",d6="[object WeakMap]",h6="[object ArrayBuffer]",p6="[object DataView]",g6="[object Float32Array]",m6="[object Float64Array]",v6="[object Int8Array]",b6="[object Int16Array]",y6="[object Int32Array]",x6="[object Uint8Array]",C6="[object Uint8ClampedArray]",w6="[object Uint16Array]",S6="[object Uint32Array]",Ct={};Ct[g6]=Ct[m6]=Ct[v6]=Ct[b6]=Ct[y6]=Ct[x6]=Ct[C6]=Ct[w6]=Ct[S6]=!0,Ct[e6]=Ct[t6]=Ct[h6]=Ct[n6]=Ct[p6]=Ct[r6]=Ct[i6]=Ct[o6]=Ct[a6]=Ct[s6]=Ct[u6]=Ct[l6]=Ct[c6]=Ct[f6]=Ct[d6]=!1;function I6(e){return kr(e)&&Vf(e.length)&&!!Ct[di(e)]}function E6(e){return function(t){return e(t)}}var kb=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Ta=kb&&typeof module=="object"&&module&&!module.nodeType&&module,A6=Ta&&Ta.exports===kb,Bf=A6&&wb.process,_6=function(){try{var e=Ta&&Ta.require&&Ta.require("util").types;return e||Bf&&Bf.binding&&Bf.binding("util")}catch{}}();const jb=_6;var Gb=jb&&jb.isTypedArray,P6=Gb?E6(Gb):I6;const kf=P6;function jf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var T6=Object.prototype,F6=T6.hasOwnProperty;function O6(e,t,n){var r=e[t];(!(F6.call(e,t)&&Ea(r,n))||n===void 0&&!(t in e))&&Df(e,t,n)}function R6(e,t,n,r){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?Df(n,l,c):O6(n,l,c)}return n}function M6(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var L6=9007199254740991,D6=/^(?:0|[1-9]\d*)$/;function Gf(e,t){var n=typeof e;return t=t??L6,!!t&&(n=="number"||n!="symbol"&&D6.test(e))&&e>-1&&e%1==0&&e<t}var $6=Object.prototype,N6=$6.hasOwnProperty;function Hb(e,t){var n=hn(e),r=!n&&su(e),i=!n&&!r&&uu(e),a=!n&&!r&&!i&&kf(e),u=n||r||i||a,l=u?M6(e.length,String):[],c=l.length;for(var f in e)(t||N6.call(e,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Gf(f,c)))&&l.push(f);return l}function V6(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var B6=Object.prototype,k6=B6.hasOwnProperty;function j6(e){if(!En(e))return V6(e);var t=Nf(e),n=[];for(var r in e)r=="constructor"&&(t||!k6.call(e,r))||n.push(r);return n}function Wb(e){return uo(e)?Hb(e,!0):j6(e)}function G6(e){return R6(e,Wb(e))}function H6(e,t,n,r,i,a,u){var l=jf(e,n),c=jf(t,n),f=u.get(c);if(f){$f(e,n,f);return}var h=a?a(l,c,n+"",e,t,u):void 0,p=h===void 0;if(p){var m=hn(c),v=!m&&uu(c),C=!m&&!v&&kf(c);h=c,m||v||C?hn(l)?h=l:HN(l)?h=ON(l):v?(p=!1,h=_N(c,!0)):C?(p=!1,h=FN(c,!0)):h=[]:QN(c)||su(c)?(h=l,su(l)?h=G6(l):(!En(l)||Mf(l))&&(h=$N(c))):p=!1}p&&(u.set(c,h),i(h,c,r,a,u),u.delete(c)),$f(e,n,h)}function Zb(e,t,n,r,i){e!==t&&Ab(t,function(a,u){if(i||(i=new Kn),En(a))H6(e,t,u,n,Zb,r,i);else{var l=r?r(jf(e,u),a,u+"",e,t,i):void 0;l===void 0&&(l=a),$f(e,u,l)}},Wb)}function lu(e){return e}function W6(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Xb=Math.max;function Z6(e,t,n){return t=Xb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Xb(r.length-t,0),u=Array(a);++i<a;)u[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(u),W6(e,this,l)}}function X6(e){return function(){return e}}var z6=ou?function(e,t){return ou(e,"toString",{configurable:!0,enumerable:!1,value:X6(t),writable:!0})}:lu;const U6=z6;var Y6=800,J6=16,K6=Date.now;function q6(e){var t=0,n=0;return function(){var r=K6(),i=J6-(r-n);if(n=r,i>0){if(++t>=Y6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Q6=q6(U6);const eV=Q6;function tV(e,t){return eV(Z6(e,t,lu),e+"")}function nV(e,t,n){if(!En(n))return!1;var r=typeof t;return(r=="number"?uo(n)&&Gf(t,n.length):r=="string"&&t in n)?Ea(n[t],e):!1}function rV(e){return tV(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,u&&nV(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}var iV=rV(function(e,t,n){Zb(e,t,n)});const on=iV;var Fa=function(t){var n=t.zDepth,r=t.radius,i=t.background,a=t.children,u=t.styles,l=u===void 0?{}:u,c=je(on({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+n*4+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":n===1});return b.createElement("div",{style:c.wrap},b.createElement("div",{style:c.bg}),b.createElement("div",{style:c.content},a))};Fa.propTypes={background:pe.string,zDepth:pe.oneOf([0,1,2,3,4,5]),radius:pe.number,styles:pe.object},Fa.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var oV=function(){return $n.Date.now()};const Hf=oV;var aV=/\s/;function sV(e){for(var t=e.length;t--&&aV.test(e.charAt(t)););return t}var uV=/^\s+/;function lV(e){return e&&e.slice(0,sV(e)+1).replace(uV,"")}var cV="[object Symbol]";function cu(e){return typeof e=="symbol"||kr(e)&&di(e)==cV}var zb=NaN,fV=/^[-+]0x[0-9a-f]+$/i,dV=/^0b[01]+$/i,hV=/^0o[0-7]+$/i,pV=parseInt;function Ub(e){if(typeof e=="number")return e;if(cu(e))return zb;if(En(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=En(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lV(e);var n=dV.test(e);return n||hV.test(e)?pV(e.slice(2),n?2:8):fV.test(e)?zb:+e}var gV="Expected a function",mV=Math.max,vV=Math.min;function Yb(e,t,n){var r,i,a,u,l,c,f=0,h=!1,p=!1,m=!0;if(typeof e!="function")throw new TypeError(gV);t=Ub(t)||0,En(n)&&(h=!!n.leading,p="maxWait"in n,a=p?mV(Ub(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function v(U){var X=r,te=i;return r=i=void 0,f=U,u=e.apply(te,X),u}function C(U){return f=U,l=setTimeout(_,t),h?v(U):u}function S(U){var X=U-c,te=U-f,de=t-X;return p?vV(de,a-te):de}function E(U){var X=U-c,te=U-f;return c===void 0||X>=t||X<0||p&&te>=a}function _(){var U=Hf();if(E(U))return R(U);l=setTimeout(_,S(U))}function R(U){return l=void 0,m&&r?v(U):(r=i=void 0,u)}function L(){l!==void 0&&clearTimeout(l),f=0,r=c=i=l=void 0}function $(){return l===void 0?u:R(Hf())}function V(){var U=Hf(),X=E(U);if(r=arguments,i=this,c=U,X){if(l===void 0)return C(c);if(p)return clearTimeout(l),l=setTimeout(_,t),v(c)}return l===void 0&&(l=setTimeout(_,t)),u}return V.cancel=L,V.flush=$,V}var bV="Expected a function";function yV(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(bV);return En(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Yb(e,t,{leading:r,maxWait:t,trailing:i})}var xV=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,u=i.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,f=l-(r.getBoundingClientRect().left+window.pageXOffset),h=c-(r.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>u&&(h=u);var p=f/a,m=1-h/u;return{h:n.h,s:p,v:m,a:n.a,source:"hsv"}},CV=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function wV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SV(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function IV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fu=function(e){IV(t,e);function t(n){wV(this,t);var r=SV(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.handleChange=function(i){typeof r.props.onChange=="function"&&r.throttle(r.props.onChange,xV(i,r.props.hsl,r.container),i)},r.handleMouseDown=function(i){r.handleChange(i);var a=r.getContainerRenderWindow();a.addEventListener("mousemove",r.handleChange),a.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=yV(function(i,a,u){i(a,u)},50),r}return CV(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var r=this.container,i=window;!i.document.contains(r)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,i=this.props.style||{},a=i.color,u=i.white,l=i.black,c=i.pointer,f=i.circle,h=je({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
101
|
+
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:u,black:l,pointer:c,circle:f}},{custom:!!this.props.style});return b.createElement("div",{style:h.color,ref:function(m){return r.container=m},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},b.createElement("style",null,`
|
|
102
102
|
.saturation-white {
|
|
103
103
|
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
104
104
|
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
@@ -107,23 +107,36 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var J=se(z,q,H,te,oe+"."
|
|
|
107
107
|
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
108
108
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
109
109
|
}
|
|
110
|
-
`),b.createElement("div",{style:p.white,className:"saturation-white"},b.createElement("div",{style:p.black,className:"saturation-black"}),b.createElement("div",{style:p.pointer},this.props.pointer?b.createElement(this.props.pointer,this.props):b.createElement("div",{style:p.circle}))))}}]),t}(b.PureComponent||b.Component);function r6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var i6=vb(Object.keys,Object);const o6=i6;var a6=Object.prototype,s6=a6.hasOwnProperty;function u6(e){if(!Af(e))return o6(e);var t=[];for(var n in Object(e))s6.call(e,n)&&n!="constructor"&&t.push(n);return t}function Mf(e){return oo(e)?Pb(e):u6(e)}function l6(e,t){return e&&fb(e,t,Mf)}function c6(e,t){return function(n,r){if(n==null)return n;if(!oo(n))return e(n,r);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&r(u[a],a,u)!==!1;);return n}}var f6=c6(l6);const $b=f6;function d6(e){return typeof e=="function"?e:iu}function p6(e,t){var n=fn(e)?r6:$b;return n(e,d6(t))}function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}var h6=/^\s+/,g6=/\s+$/;function Ie(e,t){if(e=e||"",t=t||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,t);var n=m6(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,u,l;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?u=r/12.92:u=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=jb(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Nb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Nb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Db(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Db(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Vb(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return x6(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(wt(this._r,255)*100)+"%",g:Math.round(wt(this._g,255)*100)+"%",b:Math.round(wt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(wt(this._r,255)*100)+"%, "+Math.round(wt(this._g,255)*100)+"%, "+Math.round(wt(this._b,255)*100)+"%)":"rgba("+Math.round(wt(this._r,255)*100)+"%, "+Math.round(wt(this._g,255)*100)+"%, "+Math.round(wt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:R6[Vb(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Bb(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Ie(t);r="#"+Bb(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(I6,arguments)},brighten:function(){return this._applyModification(E6,arguments)},darken:function(){return this._applyModification(A6,arguments)},desaturate:function(){return this._applyModification(C6,arguments)},saturate:function(){return this._applyModification(w6,arguments)},greyscale:function(){return this._applyModification(S6,arguments)},spin:function(){return this._applyModification(_6,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(O6,arguments)},complement:function(){return this._applyCombination(P6,arguments)},monochromatic:function(){return this._applyCombination(F6,arguments)},splitcomplement:function(){return this._applyCombination(T6,arguments)},triad:function(){return this._applyCombination(kb,[3])},tetrad:function(){return this._applyCombination(kb,[4])}},Ie.fromRatio=function(e,t){if(su(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=_a(e[r]));e=n}return Ie(e,t)};function m6(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=D6(e)),su(e)=="object"&&(fr(e.r)&&fr(e.g)&&fr(e.b)?(t=v6(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fr(e.h)&&fr(e.s)&&fr(e.v)?(r=_a(e.s),i=_a(e.v),t=y6(e.h,r,i),u=!0,l="hsv"):fr(e.h)&&fr(e.s)&&fr(e.l)&&(r=_a(e.s),a=_a(e.l),t=b6(e.h,r,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=jb(n),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function v6(e,t,n){return{r:wt(e,255)*255,g:wt(t,255)*255,b:wt(n,255)*255}}function Db(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,u,l=(r+i)/2;if(r==i)a=u=0;else{var c=r-i;switch(u=l>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:u,l}}function b6(e,t,n){var r,i,a;e=wt(e,360),t=wt(t,100),n=wt(n,100);function u(f,p,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?f+(p-f)*6*h:h<1/2?p:h<2/3?f+(p-f)*(2/3-h)*6:f}if(t===0)r=i=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=u(c,l,e+1/3),i=u(c,l,e),a=u(c,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Nb(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,u,l=r,c=r-i;if(u=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:u,v:l}}function y6(e,t,n){e=wt(e,360)*6,t=wt(t,100),n=wt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),u=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,f=[n,u,a,a,l,n][c],p=[l,n,n,u,a,a][c],h=[a,a,l,n,n,u][c];return{r:f*255,g:p*255,b:h*255}}function Vb(e,t,n,r){var i=[$n(Math.round(e).toString(16)),$n(Math.round(t).toString(16)),$n(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function x6(e,t,n,r,i){var a=[$n(Math.round(e).toString(16)),$n(Math.round(t).toString(16)),$n(Math.round(n).toString(16)),$n(Gb(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Bb(e,t,n,r){var i=[$n(Gb(r)),$n(Math.round(e).toString(16)),$n(Math.round(t).toString(16)),$n(Math.round(n).toString(16))];return i.join("")}Ie.equals=function(e,t){return!e||!t?!1:Ie(e).toRgbString()==Ie(t).toRgbString()},Ie.random=function(){return Ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function C6(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s-=t/100,n.s=uu(n.s),Ie(n)}function w6(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s+=t/100,n.s=uu(n.s),Ie(n)}function S6(e){return Ie(e).desaturate(100)}function I6(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l+=t/100,n.l=uu(n.l),Ie(n)}function E6(e,t){t=t===0?0:t||10;var n=Ie(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),Ie(n)}function A6(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l-=t/100,n.l=uu(n.l),Ie(n)}function _6(e,t){var n=Ie(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Ie(n)}function P6(e){var t=Ie(e).toHsl();return t.h=(t.h+180)%360,Ie(t)}function kb(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Ie(e).toHsl(),r=[Ie(e)],i=360/t,a=1;a<t;a++)r.push(Ie({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function T6(e){var t=Ie(e).toHsl(),n=t.h;return[Ie(e),Ie({h:(n+72)%360,s:t.s,l:t.l}),Ie({h:(n+216)%360,s:t.s,l:t.l})]}function O6(e,t,n){t=t||6,n=n||30;var r=Ie(e).toHsl(),i=360/n,a=[Ie(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Ie(r));return a}function F6(e,t){t=t||6;for(var n=Ie(e).toHsv(),r=n.h,i=n.s,a=n.v,u=[],l=1/t;t--;)u.push(Ie({h:r,s:i,v:a})),a=(a+l)%1;return u}Ie.mix=function(e,t,n){n=n===0?0:n||50;var r=Ie(e).toRgb(),i=Ie(t).toRgb(),a=n/100,u={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Ie(u)},Ie.readability=function(e,t){var n=Ie(e),r=Ie(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Ie.isReadable=function(e,t,n){var r=Ie.readability(e,t),i,a;switch(a=!1,i=N6(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},Ie.mostReadable=function(e,t,n){var r=null,i=0,a,u,l,c;n=n||{},u=n.includeFallbackColors,l=n.level,c=n.size;for(var f=0;f<t.length;f++)a=Ie.readability(e,t[f]),a>i&&(i=a,r=Ie(t[f]));return Ie.isReadable(e,r,{level:l,size:c})||!u?r:(n.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],n))};var Lf=Ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R6=Ie.hexNames=M6(Lf);function M6(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function jb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wt(e,t){L6(e)&&(e="100%");var n=$6(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function uu(e){return Math.min(1,Math.max(0,e))}function dn(e){return parseInt(e,16)}function L6(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function $6(e){return typeof e=="string"&&e.indexOf("%")!=-1}function $n(e){return e.length==1?"0"+e:""+e}function _a(e){return e<=1&&(e=e*100+"%"),e}function Gb(e){return Math.round(parseFloat(e)*255).toString(16)}function Hb(e){return dn(e)/255}var Dn=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function fr(e){return!!Dn.CSS_UNIT.exec(e)}function D6(e){e=e.replace(h6,"").replace(g6,"").toLowerCase();var t=!1;if(Lf[e])e=Lf[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Dn.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Dn.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Dn.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Dn.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Dn.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Dn.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Dn.hex8.exec(e))?{r:dn(n[1]),g:dn(n[2]),b:dn(n[3]),a:Hb(n[4]),format:t?"name":"hex8"}:(n=Dn.hex6.exec(e))?{r:dn(n[1]),g:dn(n[2]),b:dn(n[3]),format:t?"name":"hex"}:(n=Dn.hex4.exec(e))?{r:dn(n[1]+""+n[1]),g:dn(n[2]+""+n[2]),b:dn(n[3]+""+n[3]),a:Hb(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Dn.hex3.exec(e))?{r:dn(n[1]+""+n[1]),g:dn(n[2]+""+n[2]),b:dn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function N6(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Wb=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return p6(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var u=/^\d+%$/;u.test(t[a])&&(i+=1)}}),r===i?t:!1},Pa=function(t,n){var r=t.hex?Ie(t.hex):Ie(t),i=r.toHsl(),a=r.toHsv(),u=r.toRgb(),l=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var c=l==="000000"&&u.a===0;return{hsl:i,hex:c?"transparent":"#"+l,rgb:u,hsv:a,oldHue:t.h||n||i.h,source:t.source}},Br=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ie(t).isValid()},$f=function(t){if(!t)return"#fff";var n=Pa(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},Df=function(t,n){var r=t.replace("°","");return Ie(n+" ("+r+")")._ok},Ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V6=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function B6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k6(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function j6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rn=function(t){var n=function(r){j6(i,r);function i(a){B6(this,i);var u=k6(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return u.handleChange=function(l,c){var f=Wb(l);if(f){var p=Pa(l,l.h||u.state.oldHue);u.setState(p),u.props.onChangeComplete&&u.debounce(u.props.onChangeComplete,p,c),u.props.onChange&&u.props.onChange(p,c)}},u.handleSwatchHover=function(l,c){var f=Wb(l);if(f){var p=Pa(l,l.h||u.state.oldHue);u.props.onSwatchHover&&u.props.onSwatchHover(p,c)}},u.state=Ta({},Pa(a.color,0)),u.debounce=Lb(function(l,c,f){l(c,f)},100),u}return V6(i,[{key:"render",value:function(){var u={};return this.props.onSwatchHover&&(u.onSwatchHover=this.handleSwatchHover),b.createElement(t,Ta({},this.props,this.state,{onChange:this.handleChange},u))}}],[{key:"getDerivedStateFromProps",value:function(u,l){return Ta({},Pa(u.color,l.oldHue))}}]),i}(b.PureComponent||b.Component);return n.propTypes=Ta({},t.propTypes),n.defaultProps=Ta({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),n},G6=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H6=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function W6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Z6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var X6=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Z6(i,r);function i(){var a,u,l,c;W6(this,i);for(var f=arguments.length,p=Array(f),h=0;h<f;h++)p[h]=arguments[h];return c=(u=(l=Zb(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(p))),l),l.state={focus:!1},l.handleFocus=function(){return l.setState({focus:!0})},l.handleBlur=function(){return l.setState({focus:!1})},u),Zb(l,c)}return H6(i,[{key:"render",value:function(){return b.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},b.createElement(t,G6({},this.props,this.state)))}}]),i}(b.Component)},Xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z6=13,U6=function(t){var n=t.color,r=t.style,i=t.onClick,a=i===void 0?function(){}:i,u=t.onHover,l=t.title,c=l===void 0?n:l,f=t.children,p=t.focus,h=t.focusStyle,m=h===void 0?{}:h,v=n==="transparent",S=Be({default:{swatch:Xb({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,p?m:{})}}),C=function(B){return a(n,B)},E=function(B){return B.keyCode===z6&&a(n,B)},P=function(B){return u(n,B)},M={};return u&&(M.onMouseOver=P),b.createElement("div",Xb({style:S.swatch,onClick:C,title:c,tabIndex:0,onKeyDown:E},M),f,v&&b.createElement(ro,{borderRadius:S.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const pi=X6(U6);var Y6=function(t){var n=t.direction,r=Be({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return b.createElement("div",{style:r.picker})},J6=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zb=function(t){var n=t.rgb,r=t.hsl,i=t.width,a=t.height,u=t.onChange,l=t.direction,c=t.style,f=t.renderers,p=t.pointer,h=t.className,m=h===void 0?"":h,v=Be({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:c}}});return b.createElement("div",{style:v.picker,className:"alpha-picker "+m},b.createElement(ff,J6({},v.alpha,{rgb:n,hsl:r,pointer:p,renderers:f,onChange:u,direction:l})))};zb.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Y6},rn(zb);function Ub(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var K6="__lodash_hash_undefined__";function q6(e){return this.__data__.set(e,K6),this}function Q6(e){return this.__data__.has(e)}function lu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new cr;++t<n;)this.add(e[t])}lu.prototype.add=lu.prototype.push=q6,lu.prototype.has=Q6;function e8(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function t8(e,t){return e.has(t)}var n8=1,r8=2;function Yb(e,t,n,r,i,a){var u=n&n8,l=e.length,c=t.length;if(l!=c&&!(u&&c>l))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=n&r8?new lu:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var S=e[h],C=t[h];if(r)var E=u?r(C,S,h,t,e,a):r(S,C,h,e,t,a);if(E!==void 0){if(E)continue;m=!1;break}if(v){if(!e8(t,function(P,M){if(!t8(v,M)&&(S===P||i(S,P,n,r,a)))return v.push(M)})){m=!1;break}}else if(!(S===C||i(S,C,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}function i8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function o8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var a8=1,s8=2,u8="[object Boolean]",l8="[object Date]",c8="[object Error]",f8="[object Map]",d8="[object Number]",p8="[object RegExp]",h8="[object Set]",g8="[object String]",m8="[object Symbol]",v8="[object ArrayBuffer]",b8="[object DataView]",Jb=Nr?Nr.prototype:void 0,Nf=Jb?Jb.valueOf:void 0;function y8(e,t,n,r,i,a,u){switch(n){case b8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v8:return!(e.byteLength!=t.byteLength||!a(new tu(e),new tu(t)));case u8:case l8:case d8:return Ca(+e,+t);case c8:return e.name==t.name&&e.message==t.message;case p8:case g8:return e==t+"";case f8:var l=i8;case h8:var c=r&a8;if(l||(l=o8),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=s8,u.set(e,t);var p=Yb(l(e),l(t),r,i,a,u);return u.delete(e),p;case m8:if(Nf)return Nf.call(e)==Nf.call(t)}return!1}function x8(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function C8(e,t,n){var r=t(e);return fn(e)?r:x8(r,n(e))}function w8(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}function S8(){return[]}var I8=Object.prototype,E8=I8.propertyIsEnumerable,Kb=Object.getOwnPropertySymbols,A8=Kb?function(e){return e==null?[]:(e=Object(e),w8(Kb(e),function(t){return E8.call(e,t)}))}:S8;const _8=A8;function qb(e){return C8(e,Mf,_8)}var P8=1,T8=Object.prototype,O8=T8.hasOwnProperty;function F8(e,t,n,r,i,a){var u=n&P8,l=qb(e),c=l.length,f=qb(t),p=f.length;if(c!=p&&!u)return!1;for(var h=c;h--;){var m=l[h];if(!(u?m in t:O8.call(t,m)))return!1}var v=a.get(e),S=a.get(t);if(v&&S)return v==t&&S==e;var C=!0;a.set(e,t),a.set(t,e);for(var E=u;++h<c;){m=l[h];var P=e[m],M=t[m];if(r)var $=u?r(M,P,m,t,e,a):r(P,M,m,e,t,a);if(!($===void 0?P===M||i(P,M,n,r,a):$)){C=!1;break}E||(E=m=="constructor")}if(C&&!E){var B=e.constructor,N=t.constructor;B!=N&&"constructor"in e&&"constructor"in t&&!(typeof B=="function"&&B instanceof B&&typeof N=="function"&&N instanceof N)&&(C=!1)}return a.delete(e),a.delete(t),C}var R8=fi(Ln,"DataView");const Vf=R8;var M8=fi(Ln,"Promise");const Bf=M8;var L8=fi(Ln,"Set");const kf=L8;var $8=fi(Ln,"WeakMap");const jf=$8;var Qb="[object Map]",D8="[object Object]",e1="[object Promise]",t1="[object Set]",n1="[object WeakMap]",r1="[object DataView]",N8=ci(Vf),V8=ci(Sa),B8=ci(Bf),k8=ci(kf),j8=ci(jf),hi=li;(Vf&&hi(new Vf(new ArrayBuffer(1)))!=r1||Sa&&hi(new Sa)!=Qb||Bf&&hi(Bf.resolve())!=e1||kf&&hi(new kf)!=t1||jf&&hi(new jf)!=n1)&&(hi=function(e){var t=li(e),n=t==D8?e.constructor:void 0,r=n?ci(n):"";if(r)switch(r){case N8:return r1;case V8:return Qb;case B8:return e1;case k8:return t1;case j8:return n1}return t});const i1=hi;var G8=1,o1="[object Arguments]",a1="[object Array]",cu="[object Object]",H8=Object.prototype,s1=H8.hasOwnProperty;function W8(e,t,n,r,i,a){var u=fn(e),l=fn(t),c=u?a1:i1(e),f=l?a1:i1(t);c=c==o1?cu:c,f=f==o1?cu:f;var p=c==cu,h=f==cu,m=c==f;if(m&&ru(e)){if(!ru(t))return!1;u=!0,p=!1}if(m&&!p)return a||(a=new Yn),u||Tf(e)?Yb(e,t,n,r,i,a):y8(e,t,c,n,r,i,a);if(!(n&G8)){var v=p&&s1.call(e,"__wrapped__"),S=h&&s1.call(t,"__wrapped__");if(v||S){var C=v?e.value():e,E=S?t.value():t;return a||(a=new Yn),i(C,E,n,r,a)}}return m?(a||(a=new Yn),F8(e,t,n,r,i,a)):!1}function Gf(e,t,n,r,i){return e===t?!0:e==null||t==null||!Vr(e)&&!Vr(t)?e!==e&&t!==t:W8(e,t,n,r,Gf,i)}var Z8=1,X8=2;function z8(e,t,n,r){var i=n.length,a=i,u=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],f=e[c],p=l[1];if(u&&l[2]){if(f===void 0&&!(c in e))return!1}else{var h=new Yn;if(r)var m=r(f,p,c,e,t,h);if(!(m===void 0?Gf(p,f,Z8|X8,r,h):m))return!1}}return!0}function u1(e){return e===e&&!Sn(e)}function U8(e){for(var t=Mf(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,u1(i)]}return t}function l1(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Y8(e){var t=U8(e);return t.length==1&&t[0][2]?l1(t[0][0],t[0][1]):function(n){return n===e||z8(n,e,t)}}var J8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K8=/^\w*$/;function Hf(e,t){if(fn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ou(e)?!0:K8.test(e)||!J8.test(e)||t!=null&&e in Object(t)}var q8="Expected a function";function Wf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(q8);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,r);return n.cache=a.set(i,u)||a,u};return n.cache=new(Wf.Cache||cr),n}Wf.Cache=cr;var Q8=500;function eB(e){var t=Wf(e,function(r){return n.size===Q8&&n.clear(),r}),n=t.cache;return t}var tB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nB=/\\(\\)?/g,rB=eB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tB,function(n,r,i,a){t.push(i?a.replace(nB,"$1"):r||n)}),t});const iB=rB;var oB=1/0,c1=Nr?Nr.prototype:void 0,f1=c1?c1.toString:void 0;function d1(e){if(typeof e=="string")return e;if(fn(e))return Ub(e,d1)+"";if(ou(e))return f1?f1.call(e):"";var t=e+"";return t=="0"&&1/e==-oB?"-0":t}function aB(e){return e==null?"":d1(e)}function p1(e,t){return fn(e)?e:Hf(e,t)?[e]:iB(aB(e))}var sB=1/0;function fu(e){if(typeof e=="string"||ou(e))return e;var t=e+"";return t=="0"&&1/e==-sB?"-0":t}function h1(e,t){t=p1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fu(t[n++])];return n&&n==r?e:void 0}function uB(e,t,n){var r=e==null?void 0:h1(e,t);return r===void 0?n:r}function lB(e,t){return e!=null&&t in Object(e)}function cB(e,t,n){t=p1(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var u=fu(t[r]);if(!(a=e!=null&&n(e,u)))break;e=e[u]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&_f(i)&&Ff(u,i)&&(fn(e)||nu(e)))}function fB(e,t){return e!=null&&cB(e,t,lB)}var dB=1,pB=2;function hB(e,t){return Hf(e)&&u1(t)?l1(fu(e),t):function(n){var r=uB(n,e);return r===void 0&&r===t?fB(n,e):Gf(t,r,dB|pB)}}function gB(e){return function(t){return t==null?void 0:t[e]}}function mB(e){return function(t){return h1(t,e)}}function vB(e){return Hf(e)?gB(fu(e)):mB(e)}function bB(e){return typeof e=="function"?e:e==null?iu:typeof e=="object"?fn(e)?hB(e[0],e[1]):Y8(e):vB(e)}function yB(e,t){var n=-1,r=oo(e)?Array(e.length):[];return $b(e,function(i,a,u){r[++n]=t(i,a,u)}),r}function gi(e,t){var n=fn(e)?Ub:yB;return n(e,bB(t))}var xB=function(t){var n=t.colors,r=t.onClick,i=t.onSwatchHover,a=Be({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return b.createElement("div",{style:a.swatches},gi(n,function(u){return b.createElement(pi,{key:u,color:u,style:a.swatch,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+u}})}),b.createElement("div",{style:a.clear}))},Zf=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.hex,a=t.colors,u=t.width,l=t.triangle,c=t.styles,f=c===void 0?{}:c,p=t.className,h=p===void 0?"":p,m=i==="transparent",v=function(E,P){Br(E)&&n({hex:E,source:"hex"},P)},S=Be(nn({default:{card:{width:u,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:$f(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},f),{"hide-triangle":l==="hide"});return b.createElement("div",{style:S.card,className:"block-picker "+h},b.createElement("div",{style:S.triangle}),b.createElement("div",{style:S.head},m&&b.createElement(ro,{borderRadius:"6px 6px 0 0"}),b.createElement("div",{style:S.label},i)),b.createElement("div",{style:S.body},b.createElement(xB,{colors:a,onClick:v,onSwatchHover:r}),b.createElement(nt,{style:{input:S.input},value:i,onChange:v})))};Zf.propTypes={width:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.string),triangle:pe.oneOf(["top","hide"]),styles:pe.object},Zf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},rn(Zf);var ao={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},so={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},lo={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},co={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},fo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},po={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},ho={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},go={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Oa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},mo={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},vo={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},bo={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},yo={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},xo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Co={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},wo={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},So={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},g1=function(t){var n=t.color,r=t.onClick,i=t.onSwatchHover,a=t.hover,u=t.active,l=t.circleSize,c=t.circleSpacing,f=Be({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+n,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+n}}},{hover:a,active:u});return b.createElement("div",{style:f.swatch},b.createElement(pi,{style:f.Swatch,color:n,onClick:r,onHover:i,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+n}}))};g1.defaultProps={circleSize:28,circleSpacing:14};const CB=lf(g1);var Xf=function(t){var n=t.width,r=t.onChange,i=t.onSwatchHover,a=t.colors,u=t.hex,l=t.circleSize,c=t.styles,f=c===void 0?{}:c,p=t.circleSpacing,h=t.className,m=h===void 0?"":h,v=Be(nn({default:{card:{width:n,display:"flex",flexWrap:"wrap",marginRight:-p,marginBottom:-p}}},f)),S=function(E,P){return r({hex:E,source:"hex"},P)};return b.createElement("div",{style:v.card,className:"circle-picker "+m},gi(a,function(C){return b.createElement(CB,{key:C,color:C,onClick:S,onSwatchHover:i,active:u===C.toLowerCase(),circleSize:l,circleSpacing:p})}))};Xf.propTypes={width:pe.oneOfType([pe.string,pe.number]),circleSize:pe.number,circleSpacing:pe.number,styles:pe.object},Xf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ao[500],so[500],uo[500],lo[500],co[500],fo[500],po[500],ho[500],go[500],Oa[500],mo[500],vo[500],bo[500],yo[500],xo[500],Co[500],wo[500],So[500]],styles:{}},rn(Xf);function m1(e){return e===void 0}var v1={};Object.defineProperty(v1,"__esModule",{value:!0});var b1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wB=b,y1=SB(wB);function SB(e){return e&&e.__esModule?e:{default:e}}function IB(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var du=24,EB=v1.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,i=r===void 0?du:r,a=e.height,u=a===void 0?du:a,l=e.style,c=l===void 0?{}:l,f=IB(e,["fill","width","height","style"]);return y1.default.createElement("svg",b1({viewBox:"0 0 "+du+" "+du,style:b1({fill:n,width:i,height:u},c)},f),y1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},AB=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function TB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var x1=function(e){TB(t,e);function t(n){_B(this,t);var r=PB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.toggleViews=function(){r.state.view==="hex"?r.setState({view:"rgb"}):r.state.view==="rgb"?r.setState({view:"hsl"}):r.state.view==="hsl"&&(r.props.hsl.a===1?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(i,a){i.hex?Br(i.hex)&&r.props.onChange({hex:i.hex,source:"hex"},a):i.r||i.g||i.b?r.props.onChange({r:i.r||r.props.rgb.r,g:i.g||r.props.rgb.g,b:i.b||r.props.rgb.b,source:"rgb"},a):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},a)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),r.props.onChange({h:i.h||r.props.hsl.h,s:Number(m1(i.s)?r.props.hsl.s:i.s),l:Number(m1(i.l)?r.props.hsl.l:i.l),source:"hsl"},a))},r.showHighlight=function(i){i.currentTarget.style.background="#eee"},r.hideHighlight=function(i){i.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?r.state={view:"rgb"}:r.state={view:n.view},r}return AB(t,[{key:"render",value:function(){var r=this,i=Be({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),b.createElement("div",{style:i.alpha},b.createElement(nt,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(nt,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),b.createElement("div",{style:i.alpha},b.createElement(nt,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),b.createElement("div",{style:i.wrap,className:"flexbox-fix"},a,b.createElement("div",{style:i.toggle},b.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(l){return r.icon=l}},b.createElement(EB,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(b.Component);x1.defaultProps={view:"hex"};var C1=function(){var t=Be({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return b.createElement("div",{style:t.picker})},OB=function(){var t=Be({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return b.createElement("div",{style:t.picker})},zf=function(t){var n=t.width,r=t.onChange,i=t.disableAlpha,a=t.rgb,u=t.hsl,l=t.hsv,c=t.hex,f=t.renderers,p=t.styles,h=p===void 0?{}:p,m=t.className,v=m===void 0?"":m,S=t.defaultView,C=Be(nn({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},h),{disableAlpha:i});return b.createElement("div",{style:C.picker,className:"chrome-picker "+v},b.createElement("div",{style:C.saturation},b.createElement(au,{style:C.Saturation,hsl:u,hsv:l,pointer:OB,onChange:r})),b.createElement("div",{style:C.body},b.createElement("div",{style:C.controls,className:"flexbox-fix"},b.createElement("div",{style:C.color},b.createElement("div",{style:C.swatch},b.createElement("div",{style:C.active}),b.createElement(ro,{renderers:f}))),b.createElement("div",{style:C.toggles},b.createElement("div",{style:C.hue},b.createElement(io,{style:C.Hue,hsl:u,pointer:C1,onChange:r})),b.createElement("div",{style:C.alpha},b.createElement(ff,{style:C.Alpha,rgb:a,hsl:u,pointer:C1,renderers:f,onChange:r})))),b.createElement(x1,{rgb:a,hsl:u,hex:c,view:S,onChange:r,disableAlpha:i})))};zf.propTypes={width:pe.oneOfType([pe.string,pe.number]),disableAlpha:pe.bool,styles:pe.object,defaultView:pe.oneOf(["hex","rgb","hsl"])},zf.defaultProps={width:225,disableAlpha:!1,styles:{}},rn(zf);var FB=function(t){var n=t.color,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=t.active,l=Be({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:$f(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return b.createElement(pi,{style:l.color,color:n,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},b.createElement("div",{style:l.dot}))},RB=function(t){var n=t.hex,r=t.rgb,i=t.onChange,a=Be({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),u=function(c,f){c.r||c.g||c.b?i({r:c.r||r.r,g:c.g||r.g,b:c.b||r.b,source:"rgb"},f):i({hex:c.hex,source:"hex"},f)};return b.createElement("div",{style:a.fields,className:"flexbox-fix"},b.createElement("div",{style:a.active}),b.createElement(nt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:n,onChange:u}),b.createElement(nt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:r.r,onChange:u}),b.createElement(nt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:r.g,onChange:u}),b.createElement(nt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:r.b,onChange:u}))},Uf=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.colors,a=t.hex,u=t.rgb,l=t.styles,c=l===void 0?{}:l,f=t.className,p=f===void 0?"":f,h=Be(nn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),m=function(S,C){S.hex?Br(S.hex)&&n({hex:S.hex,source:"hex"},C):n(S,C)};return b.createElement(Aa,{style:h.Compact,styles:c},b.createElement("div",{style:h.compact,className:"compact-picker "+p},b.createElement("div",null,gi(i,function(v){return b.createElement(FB,{key:v,color:v,active:v.toLowerCase()===a,onClick:m,onSwatchHover:r})}),b.createElement("div",{style:h.clear})),b.createElement(RB,{hex:a,rgb:u,onChange:m})))};Uf.propTypes={colors:pe.arrayOf(pe.string),styles:pe.object},Uf.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},rn(Uf);var MB=function(t){var n=t.hover,r=t.color,i=t.onClick,a=t.onSwatchHover,u={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=Be({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:u}},{hover:n});return b.createElement("div",{style:l.swatch},b.createElement(pi,{color:r,onClick:i,onHover:a,focusStyle:u}))};const LB=lf(MB);var Yf=function(t){var n=t.width,r=t.colors,i=t.onChange,a=t.onSwatchHover,u=t.triangle,l=t.styles,c=l===void 0?{}:l,f=t.className,p=f===void 0?"":f,h=Be(nn({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":u==="hide","top-left-triangle":u==="top-left","top-right-triangle":u==="top-right","bottom-left-triangle":u==="bottom-left","bottom-right-triangle":u==="bottom-right"}),m=function(S,C){return i({hex:S,source:"hex"},C)};return b.createElement("div",{style:h.card,className:"github-picker "+p},b.createElement("div",{style:h.triangleShadow}),b.createElement("div",{style:h.triangle}),gi(r,function(v){return b.createElement(LB,{color:v,key:v,onClick:m,onSwatchHover:a})}))};Yf.propTypes={width:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.string),triangle:pe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:pe.object},Yf.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},rn(Yf);var $B=function(t){var n=t.direction,r=Be({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return b.createElement("div",{style:r.picker})},DB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jf=function(t){var n=t.width,r=t.height,i=t.onChange,a=t.hsl,u=t.direction,l=t.pointer,c=t.styles,f=c===void 0?{}:c,p=t.className,h=p===void 0?"":p,m=Be(nn({default:{picker:{position:"relative",width:n,height:r},hue:{radius:"2px"}}},f)),v=function(C){return i({a:1,h:C.h,l:.5,s:1})};return b.createElement("div",{style:m.picker,className:"hue-picker "+h},b.createElement(io,DB({},m.hue,{hsl:a,pointer:l,onChange:v,direction:u})))};Jf.propTypes={styles:pe.object},Jf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:$B,styles:{}};const NB=rn(Jf);var VB=function(t){var n=t.onChange,r=t.hex,i=t.rgb,a=t.styles,u=a===void 0?{}:a,l=t.className,c=l===void 0?"":l,f=Be(nn({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+r,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},u)),p=function(m,v){m.hex?Br(m.hex)&&n({hex:m.hex,source:"hex"},v):(m.r||m.g||m.b)&&n({r:m.r||i.r,g:m.g||i.g,b:m.b||i.b,source:"rgb"},v)};return b.createElement(Aa,{styles:u},b.createElement("div",{style:f.material,className:"material-picker "+c},b.createElement(nt,{style:{wrap:f.HEXwrap,input:f.HEXinput,label:f.HEXlabel},label:"hex",value:r,onChange:p}),b.createElement("div",{style:f.split,className:"flexbox-fix"},b.createElement("div",{style:f.third},b.createElement(nt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"r",value:i.r,onChange:p})),b.createElement("div",{style:f.third},b.createElement(nt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"g",value:i.g,onChange:p})),b.createElement("div",{style:f.third},b.createElement(nt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"b",value:i.b,onChange:p})))))};rn(VB);var BB=function(t){var n=t.onChange,r=t.rgb,i=t.hsv,a=t.hex,u=Be({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(f,p){f["#"]?Br(f["#"])&&n({hex:f["#"],source:"hex"},p):f.r||f.g||f.b?n({r:f.r||r.r,g:f.g||r.g,b:f.b||r.b,source:"rgb"},p):(f.h||f.s||f.v)&&n({h:f.h||i.h,s:f.s||i.s,v:f.v||i.v,source:"hsv"},p)};return b.createElement("div",{style:u.fields},b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(i.h),onChange:l}),b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:l}),b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:l}),b.createElement("div",{style:u.divider}),b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:r.r,onChange:l}),b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:r.g,onChange:l}),b.createElement(nt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:r.b,onChange:l}),b.createElement("div",{style:u.divider}),b.createElement(nt,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:a.replace("#",""),onChange:l}),b.createElement("div",{style:u.fieldSymbols},b.createElement("div",{style:u.symbol},"°"),b.createElement("div",{style:u.symbol},"%"),b.createElement("div",{style:u.symbol},"%")))},kB=function(t){var n=t.hsl,r=Be({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":n.l>.5});return b.createElement("div",{style:r.picker})},jB=function(){var t=Be({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return b.createElement("div",{style:t.pointer},b.createElement("div",{style:t.left},b.createElement("div",{style:t.leftInside})),b.createElement("div",{style:t.right},b.createElement("div",{style:t.rightInside})))},w1=function(t){var n=t.onClick,r=t.label,i=t.children,a=t.active,u=Be({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return b.createElement("div",{style:u.button,onClick:n},r||i)},GB=function(t){var n=t.rgb,r=t.currentColor,i=Be({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return b.createElement("div",null,b.createElement("div",{style:i.label},"new"),b.createElement("div",{style:i.swatches},b.createElement("div",{style:i.new}),b.createElement("div",{style:i.current})),b.createElement("div",{style:i.label},"current"))},HB=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function WB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function XB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Kf=function(e){XB(t,e);function t(n){WB(this,t);var r=ZB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:n.hex},r}return HB(t,[{key:"render",value:function(){var r=this.props,i=r.styles,a=i===void 0?{}:i,u=r.className,l=u===void 0?"":u,c=Be(nn({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},a));return b.createElement("div",{style:c.picker,className:"photoshop-picker "+l},b.createElement("div",{style:c.head},this.props.header),b.createElement("div",{style:c.body,className:"flexbox-fix"},b.createElement("div",{style:c.saturation},b.createElement(au,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:kB,onChange:this.props.onChange})),b.createElement("div",{style:c.hue},b.createElement(io,{direction:"vertical",hsl:this.props.hsl,pointer:jB,onChange:this.props.onChange})),b.createElement("div",{style:c.controls},b.createElement("div",{style:c.top,className:"flexbox-fix"},b.createElement("div",{style:c.previews},b.createElement(GB,{rgb:this.props.rgb,currentColor:this.state.currentColor})),b.createElement("div",{style:c.actions},b.createElement(w1,{label:"OK",onClick:this.props.onAccept,active:!0}),b.createElement(w1,{label:"Cancel",onClick:this.props.onCancel}),b.createElement(BB,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(b.Component);Kf.propTypes={header:pe.string,styles:pe.object},Kf.defaultProps={header:"Color Picker",styles:{}},rn(Kf);var zB=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,a=t.hex,u=t.disableAlpha,l=Be({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),c=function(p,h){p.hex?Br(p.hex)&&n({hex:p.hex,source:"hex"},h):p.r||p.g||p.b?n({r:p.r||r.r,g:p.g||r.g,b:p.b||r.b,a:r.a,source:"rgb"},h):p.a&&(p.a<0?p.a=0:p.a>100&&(p.a=100),p.a/=100,n({h:i.h,s:i.s,l:i.l,a:p.a,source:"rgb"},h))};return b.createElement("div",{style:l.fields,className:"flexbox-fix"},b.createElement("div",{style:l.double},b.createElement(nt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:c})),b.createElement("div",{style:l.single},b.createElement(nt,{style:{input:l.input,label:l.label},label:"r",value:r.r,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.single},b.createElement(nt,{style:{input:l.input,label:l.label},label:"g",value:r.g,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.single},b.createElement(nt,{style:{input:l.input,label:l.label},label:"b",value:r.b,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.alpha},b.createElement(nt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(r.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},UB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S1=function(t){var n=t.colors,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=Be({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!n||!n.length}),l=function(f,p){i({hex:f,source:"hex"},p)};return b.createElement("div",{style:u.colors,className:"flexbox-fix"},n.map(function(c){var f=typeof c=="string"?{color:c}:c,p=""+f.color+(f.title||"");return b.createElement("div",{key:p,style:u.swatchWrap},b.createElement(pi,UB({},f,{style:u.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+f.color}})))}))};S1.propTypes={colors:pe.arrayOf(pe.oneOfType([pe.string,pe.shape({color:pe.string,title:pe.string})])).isRequired};var YB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qf=function(t){var n=t.width,r=t.rgb,i=t.hex,a=t.hsv,u=t.hsl,l=t.onChange,c=t.onSwatchHover,f=t.disableAlpha,p=t.presetColors,h=t.renderers,m=t.styles,v=m===void 0?{}:m,S=t.className,C=S===void 0?"":S,E=Be(nn({default:YB({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+r.r+","+r.g+","+r.b+","+r.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},v),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},v),{disableAlpha:f});return b.createElement("div",{style:E.picker,className:"sketch-picker "+C},b.createElement("div",{style:E.saturation},b.createElement(au,{style:E.Saturation,hsl:u,hsv:a,onChange:l})),b.createElement("div",{style:E.controls,className:"flexbox-fix"},b.createElement("div",{style:E.sliders},b.createElement("div",{style:E.hue},b.createElement(io,{style:E.Hue,hsl:u,onChange:l})),b.createElement("div",{style:E.alpha},b.createElement(ff,{style:E.Alpha,rgb:r,hsl:u,renderers:h,onChange:l}))),b.createElement("div",{style:E.color},b.createElement(ro,null),b.createElement("div",{style:E.activeColor}))),b.createElement(zB,{rgb:r,hsl:u,hex:i,onChange:l,disableAlpha:f}),b.createElement(S1,{colors:p,onClick:l,onSwatchHover:c}))};qf.propTypes={disableAlpha:pe.bool,width:pe.oneOfType([pe.string,pe.number]),styles:pe.object},qf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},rn(qf);var Fa=function(t){var n=t.hsl,r=t.offset,i=t.onClick,a=i===void 0?function(){}:i,u=t.active,l=t.first,c=t.last,f=Be({default:{swatch:{height:"12px",background:"hsl("+n.h+", 50%, "+r*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:u,first:l,last:c}),p=function(m){return a({h:n.h,s:.5,l:r,source:"hsl"},m)};return b.createElement("div",{style:f.swatch,onClick:p})},JB=function(t){var n=t.onClick,r=t.hsl,i=Be({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return b.createElement("div",{style:i.swatches},b.createElement("div",{style:i.swatch},b.createElement(Fa,{hsl:r,offset:".80",active:Math.abs(r.l-.8)<a&&Math.abs(r.s-.5)<a,onClick:n,first:!0})),b.createElement("div",{style:i.swatch},b.createElement(Fa,{hsl:r,offset:".65",active:Math.abs(r.l-.65)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Fa,{hsl:r,offset:".50",active:Math.abs(r.l-.5)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Fa,{hsl:r,offset:".35",active:Math.abs(r.l-.35)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Fa,{hsl:r,offset:".20",active:Math.abs(r.l-.2)<a&&Math.abs(r.s-.5)<a,onClick:n,last:!0})),b.createElement("div",{style:i.clear}))},KB=function(){var t=Be({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return b.createElement("div",{style:t.picker})},Qf=function(t){var n=t.hsl,r=t.onChange,i=t.pointer,a=t.styles,u=a===void 0?{}:a,l=t.className,c=l===void 0?"":l,f=Be(nn({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},u));return b.createElement("div",{style:f.wrap||{},className:"slider-picker "+c},b.createElement("div",{style:f.hue},b.createElement(io,{style:f.Hue,hsl:n,pointer:i,onChange:r})),b.createElement("div",{style:f.swatches},b.createElement(JB,{hsl:n,onClick:r})))};Qf.propTypes={styles:pe.object},Qf.defaultProps={pointer:KB,styles:{}},rn(Qf);var I1={};Object.defineProperty(I1,"__esModule",{value:!0});var E1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qB=b,A1=QB(qB);function QB(e){return e&&e.__esModule?e:{default:e}}function ek(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var pu=24,tk=I1.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,i=r===void 0?pu:r,a=e.height,u=a===void 0?pu:a,l=e.style,c=l===void 0?{}:l,f=ek(e,["fill","width","height","style"]);return A1.default.createElement("svg",E1({viewBox:"0 0 "+pu+" "+pu,style:E1({fill:n,width:i,height:u},c)},f),A1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},nk=function(t){var n=t.color,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=t.first,l=t.last,c=t.active,f=Be({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:$f(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:u,last:l,active:c,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return b.createElement(pi,{color:n,style:f.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},b.createElement("div",{style:f.check},b.createElement(tk,null)))},rk=function(t){var n=t.onClick,r=t.onSwatchHover,i=t.group,a=t.active,u=Be({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return b.createElement("div",{style:u.group},gi(i,function(l,c){return b.createElement(nk,{key:l,color:l,active:l.toLowerCase()===a,first:c===0,last:c===i.length-1,onClick:n,onSwatchHover:r})}))},ed=function(t){var n=t.width,r=t.height,i=t.onChange,a=t.onSwatchHover,u=t.colors,l=t.hex,c=t.styles,f=c===void 0?{}:c,p=t.className,h=p===void 0?"":p,m=Be(nn({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),v=function(C,E){return i({hex:C,source:"hex"},E)};return b.createElement("div",{style:m.picker,className:"swatches-picker "+h},b.createElement(Aa,null,b.createElement("div",{style:m.overflow},b.createElement("div",{style:m.body},gi(u,function(S){return b.createElement(rk,{key:S.toString(),group:S,active:l,onClick:v,onSwatchHover:a})}),b.createElement("div",{style:m.clear})))))};ed.propTypes={width:pe.oneOfType([pe.string,pe.number]),height:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.arrayOf(pe.string)),styles:pe.object},ed.defaultProps={width:320,height:240,colors:[[ao[900],ao[700],ao[500],ao[300],ao[100]],[so[900],so[700],so[500],so[300],so[100]],[uo[900],uo[700],uo[500],uo[300],uo[100]],[lo[900],lo[700],lo[500],lo[300],lo[100]],[co[900],co[700],co[500],co[300],co[100]],[fo[900],fo[700],fo[500],fo[300],fo[100]],[po[900],po[700],po[500],po[300],po[100]],[ho[900],ho[700],ho[500],ho[300],ho[100]],[go[900],go[700],go[500],go[300],go[100]],["#194D33",Oa[700],Oa[500],Oa[300],Oa[100]],[mo[900],mo[700],mo[500],mo[300],mo[100]],[vo[900],vo[700],vo[500],vo[300],vo[100]],[bo[900],bo[700],bo[500],bo[300],bo[100]],[yo[900],yo[700],yo[500],yo[300],yo[100]],[xo[900],xo[700],xo[500],xo[300],xo[100]],[Co[900],Co[700],Co[500],Co[300],Co[100]],[wo[900],wo[700],wo[500],wo[300],wo[100]],[So[900],So[700],So[500],So[300],So[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},rn(ed);var td=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.hex,a=t.colors,u=t.width,l=t.triangle,c=t.styles,f=c===void 0?{}:c,p=t.className,h=p===void 0?"":p,m=Be(nn({default:{card:{width:u,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),v=function(C,E){Br(C)&&n({hex:C,source:"hex"},E)};return b.createElement("div",{style:m.card,className:"twitter-picker "+h},b.createElement("div",{style:m.triangleShadow}),b.createElement("div",{style:m.triangle}),b.createElement("div",{style:m.body},gi(a,function(S,C){return b.createElement(pi,{key:C,color:S,hex:S,style:m.swatch,onClick:v,onHover:r,focusStyle:{boxShadow:"0 0 4px "+S}})}),b.createElement("div",{style:m.hash},"#"),b.createElement(nt,{label:null,style:{input:m.input},value:i.replace("#",""),onChange:v}),b.createElement("div",{style:m.clear})))};td.propTypes={width:pe.oneOfType([pe.string,pe.number]),triangle:pe.oneOf(["hide","top-left","top-right"]),colors:pe.arrayOf(pe.string),styles:pe.object},td.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},rn(td);var nd=function(t){var n=Be({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return b.createElement("div",{style:n.picker})};nd.propTypes={hsl:pe.shape({h:pe.number,s:pe.number,l:pe.number,a:pe.number})},nd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var rd=function(t){var n=Be({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return b.createElement("div",{style:n.picker})};rd.propTypes={hsl:pe.shape({h:pe.number,s:pe.number,l:pe.number,a:pe.number})},rd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var ik=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,a=t.hex,u=t.hsv,l=function(v,S){if(v.hex)Br(v.hex)&&n({hex:v.hex,source:"hex"},S);else if(v.rgb){var C=v.rgb.split(",");Df(v.rgb,"rgb")&&n({r:C[0],g:C[1],b:C[2],a:1,source:"rgb"},S)}else if(v.hsv){var E=v.hsv.split(",");Df(v.hsv,"hsv")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),E[1]==1?E[1]=.01:E[2]==1&&(E[2]=.01),n({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsv"},S))}else if(v.hsl){var P=v.hsl.split(",");Df(v.hsl,"hsl")&&(P[2]=P[2].replace("%",""),P[1]=P[1].replace("%",""),P[0]=P[0].replace("°",""),h[1]==1?h[1]=.01:h[2]==1&&(h[2]=.01),n({h:Number(P[0]),s:Number(P[1]),v:Number(P[2]),source:"hsl"},S))}},c=Be({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=r.r+", "+r.g+", "+r.b,p=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",h=Math.round(u.h)+"°, "+Math.round(u.s*100)+"%, "+Math.round(u.v*100)+"%";return b.createElement("div",{style:c.wrap,className:"flexbox-fix"},b.createElement("div",{style:c.fields},b.createElement("div",{style:c.double},b.createElement(nt,{style:{input:c.input,label:c.label},label:"hex",value:a,onChange:l})),b.createElement("div",{style:c.column},b.createElement("div",{style:c.single},b.createElement(nt,{style:{input:c.input2,label:c.label2},label:"rgb",value:f,onChange:l})),b.createElement("div",{style:c.single},b.createElement(nt,{style:{input:c.input2,label:c.label2},label:"hsv",value:h,onChange:l})),b.createElement("div",{style:c.single},b.createElement(nt,{style:{input:c.input2,label:c.label2},label:"hsl",value:p,onChange:l})))))},id=function(t){var n=t.width,r=t.onChange,i=t.rgb,a=t.hsl,u=t.hsv,l=t.hex,c=t.header,f=t.styles,p=f===void 0?{}:f,h=t.className,m=h===void 0?"":h,v=Be(nn({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},p));return b.createElement("div",{style:v.picker,className:"google-picker "+m},b.createElement("div",{style:v.head},c),b.createElement("div",{style:v.swatch}),b.createElement("div",{style:v.saturation},b.createElement(au,{hsl:a,hsv:u,pointer:nd,onChange:r})),b.createElement("div",{style:v.body},b.createElement("div",{style:v.controls,className:"flexbox-fix"},b.createElement("div",{style:v.hue},b.createElement(io,{style:v.Hue,hsl:a,radius:"4px",pointer:rd,onChange:r}))),b.createElement(ik,{rgb:i,hsl:a,hex:l,hsv:u,onChange:r})))};id.propTypes={width:pe.oneOfType([pe.string,pe.number]),styles:pe.object,header:pe.string},id.defaultProps={width:652,styles:{},header:"Color picker"},rn(id);const _1=({color:e="#ff0000",disabled:t=!1,onChange:n=()=>{}})=>{const[r,i]=b.useState(e),a=u=>{t||(i(u.hex),n(u.hex))};return F.jsxs("div",{className:"flex items-end justify-between w-full gap-2 px-2 bottom-1 hue-container",children:[F.jsx("div",{className:"relative h-2 grow bottom-1",children:F.jsx(NB,{className:et("h-3 w-full",{"saturate-0":t,"saturate-100":!t}),color:r,onChange:a})}),F.jsx("div",{className:"flex-1",children:F.jsx("input",{disabled:t,className:"w-full px-1 outline-none",value:r,onChange:u=>{i(u.target.value),n(u.target.value)}})}),F.jsx("div",{className:"flex-none",children:F.jsx("div",{style:{backgroundColor:r},className:`w-6 h-6 rounded-full shadow ${t?"saturate-0":"saturate-100"}`})})]})};function ok({open:e,children:t,close:n,size:r="2xl",scrollToTop:i=!0}){return F.jsx(Ds,{isOpen:e,close:n,scrollToTop:i,isDialog:!0,children:F.jsx("div",{className:"w-full h-full overflow-hidden",children:F.jsx($s,{mode:"wait",children:e&&F.jsx(Ui.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:{type:"spring"},className:"flex items-center min-h-screen",children:F.jsx("div",{className:et("flex-1 mx-auto",{"max-w-xs":r==="xs","max-w-sm":r==="sm","max-w-md":r==="md","max-w-lg":r==="lg","max-w-xl":r==="xl","max-w-2xl":r==="2xl","max-w-3xl":r==="3xl","max-w-4xl":r==="4xl","max-w-5xl":r==="5xl","max-w-6xl":r==="6xl","max-w-7xl":r==="7xl"}),onClick:a=>a.stopPropagation(),children:t})})})})})}const od=({children:e,...t})=>F.jsx("span",{className:"block min-h-full pt-1 pl-1 text-xs font-semibold text-left text-brand-danger",...t,children:e}),ak=({children:e,...t})=>F.jsx("h1",{className:"mb-4 text-2xl font-bold text-left text-brand-primary",...t,children:e}),ad=({children:e,...t})=>F.jsx("span",{className:"block min-h-full pt-1 text-xs font-semibold text-left text-primary-500 dark:text-white",...t,children:e});var sd={exports:{}},ud,P1;function sk(){if(P1)return ud;P1=1;var e=function(t,n,r,i,a,u,l,c){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var f;if(n===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[r,i,a,u,l,c],h=0;f=new Error(n.replace(/%s/g,function(){return p[h++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};return ud=e,ud}var ld,T1;function uk(){if(T1)return ld;T1=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(i,a){var u=arguments.length;a=new Array(u>1?u-1:0);for(var l=1;l<u;l++)a[l-1]=arguments[l];var c=0,f="Warning: "+i.replace(/%s/g,function(){return a[c++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};t=function(r,i,a){var u=arguments.length;a=new Array(u>2?u-2:0);for(var l=2;l<u;l++)a[l-2]=arguments[l];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(a))}}return ld=t,ld}var cd,O1;function lk(){if(O1)return cd;O1=1;function e(T){return T&&typeof T=="object"&&"default"in T?T.default:T}var t=e(b),n=Dl,r=e(sk()),i=e(uk());function a(T,_){for(var R=Object.getOwnPropertyNames(_),O=0;O<R.length;O++){var y=R[O],H=Object.getOwnPropertyDescriptor(_,y);H&&H.configurable&&T[y]===void 0&&Object.defineProperty(T,y,H)}return T}function u(){return u=Object.assign||function(T){for(var _=1;_<arguments.length;_++){var R=arguments[_];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(T[O]=R[O])}return T},u.apply(this,arguments)}function l(T,_){T.prototype=Object.create(_.prototype),T.prototype.constructor=T,a(T,_)}function c(T,_){if(T==null)return{};var R={},O=Object.keys(T),y,H;for(H=0;H<O.length;H++)y=O[H],!(_.indexOf(y)>=0)&&(R[y]=T[y]);return R}function f(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function p(T,_,R){if("selectionStart"in T&&"selectionEnd"in T)T.selectionStart=_,T.selectionEnd=R;else{var O=T.createTextRange();O.collapse(!0),O.moveStart("character",_),O.moveEnd("character",R-_),O.select()}}function h(T){var _=0,R=0;if("selectionStart"in T&&"selectionEnd"in T)_=T.selectionStart,R=T.selectionEnd;else{var O=document.selection.createRange();O.parentElement()===T&&(_=-O.moveStart("character",-T.value.length),R=-O.moveEnd("character",-T.value.length))}return{start:_,end:R,length:R-_}}var m={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},v="_";function S(T,_,R){var O="",y="",H=null,te=[];if(_===void 0&&(_=v),R==null&&(R=m),!T||typeof T!="string")return{maskChar:_,formatChars:R,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var oe=!1;return T.split("").forEach(function(z){!oe&&z==="\\"?oe=!0:(oe||!R[z]?(te.push(O.length),O.length===te.length-1&&(y+=z)):H=O.length+1,O+=z,oe=!1)}),{maskChar:_,formatChars:R,prefix:y,mask:O,lastEditablePosition:H,permanents:te}}function C(T,_){return T.permanents.indexOf(_)!==-1}function E(T,_,R){var O=T.mask,y=T.formatChars;if(!R)return!1;if(C(T,_))return O[_]===R;var H=O[_],te=y[H];return new RegExp(te).test(R)}function P(T,_){return _.split("").every(function(R,O){return C(T,O)||!E(T,O,R)})}function M(T,_){var R=T.maskChar,O=T.prefix;if(!R){for(;_.length>O.length&&C(T,_.length-1);)_=_.slice(0,_.length-1);return _.length}for(var y=O.length,H=_.length;H>=O.length;H--){var te=_[H],oe=!C(T,H)&&E(T,H,te);if(oe){y=H+1;break}}return y}function $(T,_){return M(T,_)===T.mask.length}function B(T,_){var R=T.maskChar,O=T.mask,y=T.prefix;if(!R){for(_=U(T,"",_,0),_.length<y.length&&(_=y);_.length<O.length&&C(T,_.length);)_+=O[_.length];return _}if(_){var H=B(T,"");return U(T,H,_,0)}for(var te=0;te<O.length;te++)C(T,te)?_+=O[te]:_+=R;return _}function N(T,_,R,O){var y=R+O,H=T.maskChar,te=T.mask,oe=T.prefix,z=_.split("");if(!H){for(var Y=y;Y<z.length;Y++)C(T,Y)&&(z[Y]="");return R=Math.max(oe.length,R),z.splice(R,y-R),_=z.join(""),B(T,_)}return z.map(function(G,q){return q<R||q>=y?G:C(T,q)?te[q]:H}).join("")}function U(T,_,R,O){var y=T.mask,H=T.maskChar,te=T.prefix,oe=R.split(""),z=$(T,_),Y=function(se,J){return!C(T,se)||J===y[se]},G=function(se,J){return!H||!C(T,J)||se!==H};return!H&&O>_.length&&(_+=y.slice(_.length,O)),oe.every(function(q){for(;!Y(O,q);){if(O>=_.length&&(_+=y[O]),!G(q,O))return!0;if(O++,O>=y.length)return!1}var se=E(T,O,q)||q===H;return se?(O<_.length?H||z||O<te.length?_=_.slice(0,O)+q+_.slice(O+1):(_=_.slice(0,O)+q+_.slice(O),_=B(T,_)):H||(_+=q),O++,O<y.length):!0}),_}function X(T,_,R,O){var y=T.mask,H=T.maskChar,te=R.split(""),oe=O,z=function(G,q){return!C(T,G)||q===y[G]};return te.every(function(Y){for(;!z(O,Y);)if(O++,O>=y.length)return!1;var G=E(T,O,Y)||Y===H;return G&&O++,O<y.length}),O-oe}function ee(T,_){for(var R=_;R>=0;--R)if(!C(T,R))return R;return null}function fe(T,_){for(var R=T.mask,O=_;O<R.length;++O)if(!C(T,O))return O;return null}function Oe(T){return!T&&T!==0?"":T+""}function ze(T,_,R,O,y){var H=T.mask,te=T.prefix,oe=T.lastEditablePosition,z=_,Y="",G=0,q=0,se=Math.min(y.start,R.start);if(R.end>y.start?(Y=z.slice(y.start,R.end),G=X(T,O,Y,se),G?q=y.length:q=0):z.length<O.length&&(q=O.length-z.length),z=O,q){if(q===1&&!y.length){var J=y.start===R.start;se=J?fe(T,R.start):ee(T,R.start)}z=N(T,z,se,q)}return z=U(T,z,Y,se),se=se+G,se>=H.length?se=H.length:se<te.length&&!G?se=te.length:se>=te.length&&se<oe&&G&&(se=fe(T,se)),z=B(T,z),Y||(Y=null),{value:z,enteredString:Y,selection:{start:se,end:se}}}function He(){var T=new RegExp("windows","i"),_=new RegExp("phone","i"),R=navigator.userAgent;return T.test(R)&&_.test(R)}function he(T){return typeof T=="function"}function Ce(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function be(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function _e(T){var _=!!be(),R;return _?R=Ce():R=function(){return setTimeout(T,1e3/60)},R(T)}function De(T){var _=be()||clearTimeout;_(T)}var Ye=function(T){l(_,T);function _(O){var y;y=T.call(this,O)||this,y.focused=!1,y.mounted=!1,y.previousSelection=null,y.selectionDeferId=null,y.saveSelectionLoopDeferId=null,y.saveSelectionLoop=function(){y.previousSelection=y.getSelection(),y.saveSelectionLoopDeferId=_e(y.saveSelectionLoop)},y.runSaveSelectionLoop=function(){y.saveSelectionLoopDeferId===null&&y.saveSelectionLoop()},y.stopSaveSelectionLoop=function(){y.saveSelectionLoopDeferId!==null&&(De(y.saveSelectionLoopDeferId),y.saveSelectionLoopDeferId=null,y.previousSelection=null)},y.getInputDOMNode=function(){if(!y.mounted)return null;var Q=n.findDOMNode(f(f(y))),de=typeof window<"u"&&Q instanceof window.Element;if(Q&&!de)return null;if(Q.nodeName!=="INPUT"&&(Q=Q.querySelector("input")),!Q)throw new Error("react-input-mask: inputComponent doesn't contain input node");return Q},y.getInputValue=function(){var Q=y.getInputDOMNode();return Q?Q.value:null},y.setInputValue=function(Q){var de=y.getInputDOMNode();de&&(y.value=Q,de.value=Q)},y.setCursorToEnd=function(){var Q=M(y.maskOptions,y.value),de=fe(y.maskOptions,Q);de!==null&&y.setCursorPosition(de)},y.setSelection=function(Q,de,Se){Se===void 0&&(Se={});var ye=y.getInputDOMNode(),Ne=y.isFocused();if(!(!ye||!Ne)){var ke=Se,Ke=ke.deferred;Ke||p(ye,Q,de),y.selectionDeferId!==null&&De(y.selectionDeferId),y.selectionDeferId=_e(function(){y.selectionDeferId=null,p(ye,Q,de)}),y.previousSelection={start:Q,end:de,length:Math.abs(de-Q)}}},y.getSelection=function(){var Q=y.getInputDOMNode();return h(Q)},y.getCursorPosition=function(){return y.getSelection().start},y.setCursorPosition=function(Q){y.setSelection(Q,Q)},y.isFocused=function(){return y.focused},y.getBeforeMaskedValueChangeConfig=function(){var Q=y.maskOptions,de=Q.mask,Se=Q.maskChar,ye=Q.permanents,Ne=Q.formatChars,ke=y.props.alwaysShowMask;return{mask:de,maskChar:Se,permanents:ye,alwaysShowMask:!!ke,formatChars:Ne}},y.isInputAutofilled=function(Q,de,Se,ye){var Ne=y.getInputDOMNode();try{if(Ne.matches(":-webkit-autofill"))return!0}catch{}return y.focused?ye.end<Se.length&&de.end===Q.length:!0},y.onChange=function(Q){var de=f(f(y)),Se=de.beforePasteState,ye=f(f(y)),Ne=ye.previousSelection,ke=y.props.beforeMaskedValueChange,Ke=y.getInputValue(),it=y.value,at=y.getSelection();y.isInputAutofilled(Ke,at,it,Ne)&&(it=B(y.maskOptions,""),Ne={start:0,end:0,length:0}),Se&&(Ne=Se.selection,it=Se.value,at={start:Ne.start+Ke.length,end:Ne.start+Ke.length,length:0},Ke=it.slice(0,Ne.start)+Ke+it.slice(Ne.end),y.beforePasteState=null);var St=ze(y.maskOptions,Ke,at,it,Ne),zt=St.enteredString,Rt=St.selection,kn=St.value;if(he(ke)){var Nt=ke({value:kn,selection:Rt},{value:it,selection:Ne},zt,y.getBeforeMaskedValueChangeConfig());kn=Nt.value,Rt=Nt.selection}y.setInputValue(kn),he(y.props.onChange)&&y.props.onChange(Q),y.isWindowsPhoneBrowser?y.setSelection(Rt.start,Rt.end,{deferred:!0}):y.setSelection(Rt.start,Rt.end)},y.onFocus=function(Q){var de=y.props.beforeMaskedValueChange,Se=y.maskOptions,ye=Se.mask,Ne=Se.prefix;if(y.focused=!0,y.mounted=!0,ye){if(y.value)M(y.maskOptions,y.value)<y.maskOptions.mask.length&&y.setCursorToEnd();else{var ke=B(y.maskOptions,Ne),Ke=B(y.maskOptions,ke),it=M(y.maskOptions,Ke),at=fe(y.maskOptions,it),St={start:at,end:at};if(he(de)){var zt=de({value:Ke,selection:St},{value:y.value,selection:null},null,y.getBeforeMaskedValueChangeConfig());Ke=zt.value,St=zt.selection}var Rt=Ke!==y.getInputValue();Rt&&y.setInputValue(Ke),Rt&&he(y.props.onChange)&&y.props.onChange(Q),y.setSelection(St.start,St.end)}y.runSaveSelectionLoop()}he(y.props.onFocus)&&y.props.onFocus(Q)},y.onBlur=function(Q){var de=y.props.beforeMaskedValueChange,Se=y.maskOptions.mask;if(y.stopSaveSelectionLoop(),y.focused=!1,Se&&!y.props.alwaysShowMask&&P(y.maskOptions,y.value)){var ye="";if(he(de)){var Ne=de({value:ye,selection:null},{value:y.value,selection:y.previousSelection},null,y.getBeforeMaskedValueChangeConfig());ye=Ne.value}var ke=ye!==y.getInputValue();ke&&y.setInputValue(ye),ke&&he(y.props.onChange)&&y.props.onChange(Q)}he(y.props.onBlur)&&y.props.onBlur(Q)},y.onMouseDown=function(Q){if(!y.focused&&document.addEventListener){y.mouseDownX=Q.clientX,y.mouseDownY=Q.clientY,y.mouseDownTime=new Date().getTime();var de=function Se(ye){if(document.removeEventListener("mouseup",Se),!!y.focused){var Ne=Math.abs(ye.clientX-y.mouseDownX),ke=Math.abs(ye.clientY-y.mouseDownY),Ke=Math.max(Ne,ke),it=new Date().getTime()-y.mouseDownTime;(Ke<=10&&it<=200||Ke<=5&&it<=300)&&y.setCursorToEnd()}};document.addEventListener("mouseup",de)}he(y.props.onMouseDown)&&y.props.onMouseDown(Q)},y.onPaste=function(Q){he(y.props.onPaste)&&y.props.onPaste(Q),Q.defaultPrevented||(y.beforePasteState={value:y.getInputValue(),selection:y.getSelection()},y.setInputValue(""))},y.handleRef=function(Q){y.props.children==null&&he(y.props.inputRef)&&y.props.inputRef(Q)};var H=O.mask,te=O.maskChar,oe=O.formatChars,z=O.alwaysShowMask,Y=O.beforeMaskedValueChange,G=O.defaultValue,q=O.value;y.maskOptions=S(H,te,oe),G==null&&(G=""),q==null&&(q=G);var se=Oe(q);if(y.maskOptions.mask&&(z||se)&&(se=B(y.maskOptions,se),he(Y))){var J=O.value;O.value==null&&(J=G),J=Oe(J);var ue=Y({value:se,selection:null},{value:J,selection:null},null,y.getBeforeMaskedValueChangeConfig());se=ue.value}return y.value=se,y}var R=_.prototype;return R.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=He(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},R.componentDidUpdate=function(){var y=this.previousSelection,H=this.props,te=H.beforeMaskedValueChange,oe=H.alwaysShowMask,z=H.mask,Y=H.maskChar,G=H.formatChars,q=this.maskOptions,se=oe||this.isFocused(),J=this.props.value!=null,ue=J?Oe(this.props.value):this.value,Q=y?y.start:null;if(this.maskOptions=S(z,Y,G),this.maskOptions.mask)!q.mask&&this.isFocused()&&this.runSaveSelectionLoop();else{q.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate());return}var de=this.maskOptions.mask&&this.maskOptions.mask!==q.mask;if(!q.mask&&!J&&(ue=this.getInputValue()),(de||this.maskOptions.mask&&(ue||se))&&(ue=B(this.maskOptions,ue)),de){var Se=M(this.maskOptions,ue);(Q===null||Se<Q)&&($(this.maskOptions,ue)?Q=Se:Q=fe(this.maskOptions,Se))}this.maskOptions.mask&&P(this.maskOptions,ue)&&!se&&(!J||!this.props.value)&&(ue="");var ye={start:Q,end:Q};if(he(te)){var Ne=te({value:ue,selection:ye},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ue=Ne.value,ye=Ne.selection}this.value=ue;var ke=this.getInputValue()!==this.value;ke?(this.setInputValue(this.value),this.forceUpdate()):de&&this.forceUpdate();var Ke=!1;ye.start!=null&&ye.end!=null&&(Ke=!y||y.start!==ye.start||y.end!==ye.end),(Ke||ke)&&this.setSelection(ye.start,ye.end)},R.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&De(this.selectionDeferId),this.stopSaveSelectionLoop()},R.render=function(){var y=this.props,H=y.mask;y.alwaysShowMask;var te=y.maskChar,oe=y.formatChars,z=y.inputRef;y.beforeMaskedValueChange;var Y=y.children,G=c(y,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]),q;if(process.env.NODE_ENV!=="production"&&i(!G.maxLength||!S(H,te,oe).mask,"react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."),Y){he(Y)||(process.env.NODE_ENV!=="production"?r(!1,"react-input-mask: children must be a function"):r(!1));var se=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],J=u({},G);se.forEach(function(de){return delete J[de]}),q=Y(J);var ue=se.filter(function(de){return q.props[de]!=null&&q.props[de]!==G[de]});ue.length&&(process.env.NODE_ENV!=="production"?r(!1,"react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: "+ue.join(", ")):r(!1)),process.env.NODE_ENV!=="production"&&i(!z,"react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead")}else q=t.createElement("input",u({ref:this.handleRef},G));var Q={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(!G.disabled&&!G.readOnly&&(Q.onChange=this.onChange,Q.onPaste=this.onPaste,Q.onMouseDown=this.onMouseDown),G.value!=null&&(Q.value=this.value)),q=t.cloneElement(q,Q),q},_}(t.Component);return cd=Ye,cd}var fd,F1;function ck(){if(F1)return fd;F1=1;function e(T){return T&&typeof T=="object"&&"default"in T?T.default:T}var t=e(b),n=Dl;function r(T,_){for(var R=Object.getOwnPropertyNames(_),O=0;O<R.length;O++){var y=R[O],H=Object.getOwnPropertyDescriptor(_,y);H&&H.configurable&&T[y]===void 0&&Object.defineProperty(T,y,H)}return T}function i(){return(i=Object.assign||function(T){for(var _=1;_<arguments.length;_++){var R=arguments[_];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(T[O]=R[O])}return T}).apply(this,arguments)}function a(T,_){T.prototype=Object.create(_.prototype),r(T.prototype.constructor=T,_)}function u(T,_){if(T==null)return{};var R,O,y={},H=Object.keys(T);for(O=0;O<H.length;O++)R=H[O],0<=_.indexOf(R)||(y[R]=T[R]);return y}function l(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}var c=function(T,_,R,O,y,H,te,oe){if(!T){var z;if(_===void 0)z=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var Y=[R,O,y,H,te,oe],G=0;(z=new Error(_.replace(/%s/g,function(){return Y[G++]}))).name="Invariant Violation"}throw z.framesToPop=1,z}},f=c;function p(T,_,R){if("selectionStart"in T&&"selectionEnd"in T)T.selectionStart=_,T.selectionEnd=R;else{var O=T.createTextRange();O.collapse(!0),O.moveStart("character",_),O.moveEnd("character",R-_),O.select()}}function h(T){var _=0,R=0;if("selectionStart"in T&&"selectionEnd"in T)_=T.selectionStart,R=T.selectionEnd;else{var O=document.selection.createRange();O.parentElement()===T&&(_=-O.moveStart("character",-T.value.length),R=-O.moveEnd("character",-T.value.length))}return{start:_,end:R,length:R-_}}var m={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},v="_";function S(T,_,R){var O="",y="",H=null,te=[];if(_===void 0&&(_=v),R==null&&(R=m),!T||typeof T!="string")return{maskChar:_,formatChars:R,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var oe=!1;return T.split("").forEach(function(z){oe=!oe&&z==="\\"||(oe||!R[z]?(te.push(O.length),O.length===te.length-1&&(y+=z)):H=O.length+1,O+=z,!1)}),{maskChar:_,formatChars:R,prefix:y,mask:O,lastEditablePosition:H,permanents:te}}function C(T,_){return T.permanents.indexOf(_)!==-1}function E(T,_,R){var O=T.mask,y=T.formatChars;if(!R)return!1;if(C(T,_))return O[_]===R;var H=y[O[_]];return new RegExp(H).test(R)}function P(T,_){return _.split("").every(function(R,O){return C(T,O)||!E(T,O,R)})}function M(T,_){var R=T.maskChar,O=T.prefix;if(!R){for(;_.length>O.length&&C(T,_.length-1);)_=_.slice(0,_.length-1);return _.length}for(var y=O.length,H=_.length;H>=O.length;H--){var te=_[H];if(!C(T,H)&&E(T,H,te)){y=H+1;break}}return y}function $(T,_){return M(T,_)===T.mask.length}function B(T,_){var R=T.maskChar,O=T.mask,y=T.prefix;if(!R){for((_=U(T,"",_,0)).length<y.length&&(_=y);_.length<O.length&&C(T,_.length);)_+=O[_.length];return _}if(_)return U(T,B(T,""),_,0);for(var H=0;H<O.length;H++)C(T,H)?_+=O[H]:_+=R;return _}function N(T,_,R,O){var y=R+O,H=T.maskChar,te=T.mask,oe=T.prefix,z=_.split("");if(H)return z.map(function(G,q){return q<R||y<=q?G:C(T,q)?te[q]:H}).join("");for(var Y=y;Y<z.length;Y++)C(T,Y)&&(z[Y]="");return R=Math.max(oe.length,R),z.splice(R,y-R),_=z.join(""),B(T,_)}function U(T,_,R,O){var y=T.mask,H=T.maskChar,te=T.prefix,oe=R.split(""),z=$(T,_);return!H&&O>_.length&&(_+=y.slice(_.length,O)),oe.every(function(Y){for(;J=Y,C(T,se=O)&&J!==y[se];){if(O>=_.length&&(_+=y[O]),G=Y,q=O,H&&C(T,q)&&G===H)return!0;if(++O>=y.length)return!1}var G,q,se,J;return!E(T,O,Y)&&Y!==H||(O<_.length?_=H||z||O<te.length?_.slice(0,O)+Y+_.slice(O+1):(_=_.slice(0,O)+Y+_.slice(O),B(T,_)):H||(_+=Y),++O<y.length)}),_}function X(T,_,R,O){var y=T.mask,H=T.maskChar,te=R.split(""),oe=O;return te.every(function(z){for(;G=z,C(T,Y=O)&&G!==y[Y];)if(++O>=y.length)return!1;var Y,G;return(E(T,O,z)||z===H)&&O++,O<y.length}),O-oe}function ee(T,_){for(var R=_;0<=R;--R)if(!C(T,R))return R;return null}function fe(T,_){for(var R=T.mask,O=_;O<R.length;++O)if(!C(T,O))return O;return null}function Oe(T){return T||T===0?T+"":""}function ze(T,_,R,O,y){var H=T.mask,te=T.prefix,oe=T.lastEditablePosition,z=_,Y="",G=0,q=0,se=Math.min(y.start,R.start);return R.end>y.start?q=(G=X(T,O,Y=z.slice(y.start,R.end),se))?y.length:0:z.length<O.length&&(q=O.length-z.length),z=O,q&&(q===1&&!y.length&&(se=y.start===R.start?fe(T,R.start):ee(T,R.start)),z=N(T,z,se,q)),z=U(T,z,Y,se),(se+=G)>=H.length?se=H.length:se<te.length&&!G?se=te.length:se>=te.length&&se<oe&&G&&(se=fe(T,se)),Y||(Y=null),{value:z=B(T,z),enteredString:Y,selection:{start:se,end:se}}}function He(){var T=new RegExp("windows","i"),_=new RegExp("phone","i"),R=navigator.userAgent;return T.test(R)&&_.test(R)}function he(T){return typeof T=="function"}function Ce(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function be(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function _e(T){return(be()?Ce():function(){return setTimeout(T,1e3/60)})(T)}function De(T){(be()||clearTimeout)(T)}var Ye=function(T){function _(O){var y=T.call(this,O)||this;y.focused=!1,y.mounted=!1,y.previousSelection=null,y.selectionDeferId=null,y.saveSelectionLoopDeferId=null,y.saveSelectionLoop=function(){y.previousSelection=y.getSelection(),y.saveSelectionLoopDeferId=_e(y.saveSelectionLoop)},y.runSaveSelectionLoop=function(){y.saveSelectionLoopDeferId===null&&y.saveSelectionLoop()},y.stopSaveSelectionLoop=function(){y.saveSelectionLoopDeferId!==null&&(De(y.saveSelectionLoopDeferId),y.saveSelectionLoopDeferId=null,y.previousSelection=null)},y.getInputDOMNode=function(){if(!y.mounted)return null;var ue=n.findDOMNode(l(l(y))),Q=typeof window<"u"&&ue instanceof window.Element;if(ue&&!Q)return null;if(ue.nodeName!=="INPUT"&&(ue=ue.querySelector("input")),!ue)throw new Error("react-input-mask: inputComponent doesn't contain input node");return ue},y.getInputValue=function(){var ue=y.getInputDOMNode();return ue?ue.value:null},y.setInputValue=function(ue){var Q=y.getInputDOMNode();Q&&(y.value=ue,Q.value=ue)},y.setCursorToEnd=function(){var ue=M(y.maskOptions,y.value),Q=fe(y.maskOptions,ue);Q!==null&&y.setCursorPosition(Q)},y.setSelection=function(ue,Q,de){de===void 0&&(de={});var Se=y.getInputDOMNode(),ye=y.isFocused();Se&&ye&&(de.deferred||p(Se,ue,Q),y.selectionDeferId!==null&&De(y.selectionDeferId),y.selectionDeferId=_e(function(){y.selectionDeferId=null,p(Se,ue,Q)}),y.previousSelection={start:ue,end:Q,length:Math.abs(Q-ue)})},y.getSelection=function(){return h(y.getInputDOMNode())},y.getCursorPosition=function(){return y.getSelection().start},y.setCursorPosition=function(ue){y.setSelection(ue,ue)},y.isFocused=function(){return y.focused},y.getBeforeMaskedValueChangeConfig=function(){var ue=y.maskOptions,Q=ue.mask,de=ue.maskChar,Se=ue.permanents,ye=ue.formatChars;return{mask:Q,maskChar:de,permanents:Se,alwaysShowMask:!!y.props.alwaysShowMask,formatChars:ye}},y.isInputAutofilled=function(ue,Q,de,Se){var ye=y.getInputDOMNode();try{if(ye.matches(":-webkit-autofill"))return!0}catch{}return!y.focused||Se.end<de.length&&Q.end===ue.length},y.onChange=function(ue){var Q=l(l(y)).beforePasteState,de=l(l(y)).previousSelection,Se=y.props.beforeMaskedValueChange,ye=y.getInputValue(),Ne=y.value,ke=y.getSelection();y.isInputAutofilled(ye,ke,Ne,de)&&(Ne=B(y.maskOptions,""),de={start:0,end:0,length:0}),Q&&(de=Q.selection,Ne=Q.value,ke={start:de.start+ye.length,end:de.start+ye.length,length:0},ye=Ne.slice(0,de.start)+ye+Ne.slice(de.end),y.beforePasteState=null);var Ke=ze(y.maskOptions,ye,ke,Ne,de),it=Ke.enteredString,at=Ke.selection,St=Ke.value;if(he(Se)){var zt=Se({value:St,selection:at},{value:Ne,selection:de},it,y.getBeforeMaskedValueChangeConfig());St=zt.value,at=zt.selection}y.setInputValue(St),he(y.props.onChange)&&y.props.onChange(ue),y.isWindowsPhoneBrowser?y.setSelection(at.start,at.end,{deferred:!0}):y.setSelection(at.start,at.end)},y.onFocus=function(ue){var Q=y.props.beforeMaskedValueChange,de=y.maskOptions,Se=de.mask,ye=de.prefix;if(y.focused=!0,y.mounted=!0,Se){if(y.value)M(y.maskOptions,y.value)<y.maskOptions.mask.length&&y.setCursorToEnd();else{var Ne=B(y.maskOptions,ye),ke=B(y.maskOptions,Ne),Ke=M(y.maskOptions,ke),it=fe(y.maskOptions,Ke),at={start:it,end:it};if(he(Q)){var St=Q({value:ke,selection:at},{value:y.value,selection:null},null,y.getBeforeMaskedValueChangeConfig());ke=St.value,at=St.selection}var zt=ke!==y.getInputValue();zt&&y.setInputValue(ke),zt&&he(y.props.onChange)&&y.props.onChange(ue),y.setSelection(at.start,at.end)}y.runSaveSelectionLoop()}he(y.props.onFocus)&&y.props.onFocus(ue)},y.onBlur=function(ue){var Q=y.props.beforeMaskedValueChange,de=y.maskOptions.mask;if(y.stopSaveSelectionLoop(),y.focused=!1,de&&!y.props.alwaysShowMask&&P(y.maskOptions,y.value)){var Se="";he(Q)&&(Se=Q({value:Se,selection:null},{value:y.value,selection:y.previousSelection},null,y.getBeforeMaskedValueChangeConfig()).value);var ye=Se!==y.getInputValue();ye&&y.setInputValue(Se),ye&&he(y.props.onChange)&&y.props.onChange(ue)}he(y.props.onBlur)&&y.props.onBlur(ue)},y.onMouseDown=function(ue){if(!y.focused&&document.addEventListener){y.mouseDownX=ue.clientX,y.mouseDownY=ue.clientY,y.mouseDownTime=new Date().getTime();var Q=function de(Se){if(document.removeEventListener("mouseup",de),y.focused){var ye=Math.abs(Se.clientX-y.mouseDownX),Ne=Math.abs(Se.clientY-y.mouseDownY),ke=Math.max(ye,Ne),Ke=new Date().getTime()-y.mouseDownTime;(ke<=10&&Ke<=200||ke<=5&&Ke<=300)&&y.setCursorToEnd()}};document.addEventListener("mouseup",Q)}he(y.props.onMouseDown)&&y.props.onMouseDown(ue)},y.onPaste=function(ue){he(y.props.onPaste)&&y.props.onPaste(ue),ue.defaultPrevented||(y.beforePasteState={value:y.getInputValue(),selection:y.getSelection()},y.setInputValue(""))},y.handleRef=function(ue){y.props.children==null&&he(y.props.inputRef)&&y.props.inputRef(ue)};var H=O.mask,te=O.maskChar,oe=O.formatChars,z=O.alwaysShowMask,Y=O.beforeMaskedValueChange,G=O.defaultValue,q=O.value;y.maskOptions=S(H,te,oe),G==null&&(G=""),q==null&&(q=G);var se=Oe(q);if(y.maskOptions.mask&&(z||se)&&(se=B(y.maskOptions,se),he(Y))){var J=O.value;O.value==null&&(J=G),se=Y({value:se,selection:null},{value:J=Oe(J),selection:null},null,y.getBeforeMaskedValueChangeConfig()).value}return y.value=se,y}a(_,T);var R=_.prototype;return R.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=He(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},R.componentDidUpdate=function(){var O=this.previousSelection,y=this.props,H=y.beforeMaskedValueChange,te=y.alwaysShowMask,oe=y.mask,z=y.maskChar,Y=y.formatChars,G=this.maskOptions,q=te||this.isFocused(),se=this.props.value!=null,J=se?Oe(this.props.value):this.value,ue=O?O.start:null;if(this.maskOptions=S(oe,z,Y),this.maskOptions.mask){!G.mask&&this.isFocused()&&this.runSaveSelectionLoop();var Q=this.maskOptions.mask&&this.maskOptions.mask!==G.mask;if(G.mask||se||(J=this.getInputValue()),(Q||this.maskOptions.mask&&(J||q))&&(J=B(this.maskOptions,J)),Q){var de=M(this.maskOptions,J);(ue===null||de<ue)&&(ue=$(this.maskOptions,J)?de:fe(this.maskOptions,de))}!this.maskOptions.mask||!P(this.maskOptions,J)||q||se&&this.props.value||(J="");var Se={start:ue,end:ue};if(he(H)){var ye=H({value:J,selection:Se},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());J=ye.value,Se=ye.selection}this.value=J;var Ne=this.getInputValue()!==this.value;Ne?(this.setInputValue(this.value),this.forceUpdate()):Q&&this.forceUpdate();var ke=!1;Se.start!=null&&Se.end!=null&&(ke=!O||O.start!==Se.start||O.end!==Se.end),(ke||Ne)&&this.setSelection(Se.start,Se.end)}else G.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},R.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&De(this.selectionDeferId),this.stopSaveSelectionLoop()},R.render=function(){var O,y=this.props,H=(y.mask,y.alwaysShowMask,y.maskChar,y.formatChars,y.inputRef,y.beforeMaskedValueChange,y.children),te=u(y,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(H){he(H)||f(!1);var oe=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],z=i({},te);oe.forEach(function(G){return delete z[G]}),O=H(z),oe.filter(function(G){return O.props[G]!=null&&O.props[G]!==te[G]}).length&&f(!1)}else O=t.createElement("input",i({ref:this.handleRef},te));var Y={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(te.disabled||te.readOnly||(Y.onChange=this.onChange,Y.onPaste=this.onPaste,Y.onMouseDown=this.onMouseDown),te.value!=null&&(Y.value=this.value)),O=t.cloneElement(O,Y)},_}(t.Component);return fd=Ye,fd}process.env.NODE_ENV==="production"?sd.exports=ck():sd.exports=lk();var fk=sd.exports;const dk=Nl(fk),dd=({className:e,children:t,disabled:n=!1,focused:r=!1,error:i,...a})=>F.jsx("label",{className:et("absolute origin-top-left bottom-1 left-2 text-sm","peer-focus:text-brand-primary","transition hover:transition","pointer-events-none",{"text-gray-500":!i&&!n&&!r,"text-brand-danger":i,"text-brand-secondary-text":n,"text-brand-primary":r},e),...a,children:t}),R1=({error:e,disabled:t,children:n})=>F.jsx("div",{className:et("border-brand-gray bg-brand-light-gray dark:bg-brand-dark-gray-dark focus-within:border-brand-secondary","relative h-[36px]","transition focus-within:transition","shadow-input focus-within:shadow-input-focus",{"bg-red-50 shadow-input-error focus-within:shadow-input-error":e,"border-gray-300 bg-[#cbcbcb] dark:bg-brand-text focus-within:border-brand cursor-not-allowed children:cursor-not-allowed":t}),children:n}),pk=({className:e,error:t,helper:n,label:r,mask:i,name:a,type:u,value:l,onChange:c,onBlur:f,disabled:p=!1,...h})=>{const m=et("peer","block w-full text-sm border-none appearance-none focus:outline-none focus:ring-0","absolute bottom-0","bg-transparent text-brand-secondary-text pb-0 px-2",e);return F.jsxs("div",{children:[F.jsxs(R1,{disabled:p,error:t,children:[u==="color"?F.jsx(_1,{color:l,disabled:p,onChange:c}):i?F.jsx(dk,{disabled:p,autoComplete:"off",type:"text",name:a,mask:i,value:l,onChange:c,onBlur:f,placeholder:" ",className:`${m}`}):F.jsx("input",{disabled:p,autoComplete:"off",type:u,name:a,value:l,onChange:c,onBlur:f,placeholder:" ",className:`${m}`,...h}),F.jsx(dd,{htmlFor:a,disabled:p,error:t,children:r})]}),n?F.jsx(ad,{children:n}):null,t?F.jsx(od,{children:t}):null]})},pd={Navbar:({children:e,className:t,...n})=>F.jsx("nav",{className:et("px-2 py-2 m-2","flex items-center justify-between rounded-lg select-none","bg-gradient-to-r from-primary-500 to-primary-400",t),...n,children:e}),Button:({children:e,className:t,...n})=>F.jsx("button",{className:et("rounded-md flex items-center justify-center","w-12 h-12","transition bg-white hover:bg-primary-50 active:bg-primary-100 text-primary-500",t),...n,children:e}),Title:({children:e,className:t,...n})=>F.jsx("h1",{className:et("pl-2 font-bold text-white text-2.5xl",t),...n,children:e})},hk=({label:e,name:t,className:n,...r})=>F.jsx("div",{className:et("bg-brand-light-gray rounded-lg inline-block p-1.5 transition","border-2 border-transparent focus-within:border-brand-primary focus-within:transition",{className:n!==""}),children:F.jsxs("label",{htmlFor:(r==null?void 0:r.id)||t,className:et("relative","flex gap-2 items-center justify-center"),children:[F.jsx("input",{name:t,type:"radio",className:et("relative appearance-none w-5 h-5 border rounded-full text-brand-primary cursor-pointer transition-all focus:ring-0 focus:ring-offset-0 focus:outline-none","checked:after:absolute checked:before:absolute","checked:after:inset-0 checked:before:inset-0","checked:after:rounded-full checked:before:rounded-full","checked:after:scale-75","checked:after:bg-brand-primary checked:before:bg-white","checked:border-2"),...r}),F.jsx("span",{className:"text-xs text-brand-secondary-text",children:e})]})});function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function gk(e,t){if(mi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M1(e){var t=gk(e,"string");return mi(t)=="symbol"?t:String(t)}function Ra(e,t,n){return t=M1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L1(Object(n),!0).forEach(function(r){Ra(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mk(e){if(Array.isArray(e))return e}function vk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,u,l=[],c=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){f=!0,i=p}finally{try{if(!c&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw i}}return l}}function hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $1(e,t){if(e){if(typeof e=="string")return hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hd(e,t)}}function bk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var u=Rk(i);try{u.insertRule(r,u.cssRules.length)}catch(l){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',l)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Xt="-ms-",gu="-moz-",st="-webkit-",vd="comm",bd="rule",yd="decl",$k="@import",N1="@keyframes",Dk="@layer",Nk=Math.abs,mu=String.fromCharCode,Vk=Object.assign;function Bk(e,t){return Gt(e,0)^45?(((t<<2^Gt(e,0))<<2^Gt(e,1))<<2^Gt(e,2))<<2^Gt(e,3):0}function V1(e){return e.trim()}function kk(e,t){return(e=t.exec(e))?e[0]:e}function ut(e,t,n){return e.replace(t,n)}function xd(e,t){return e.indexOf(t)}function Gt(e,t){return e.charCodeAt(t)|0}function Ma(e,t,n){return e.slice(t,n)}function Jn(e){return e.length}function Cd(e){return e.length}function vu(e,t){return t.push(e),e}function jk(e,t){return e.map(t).join("")}var bu=1,Io=1,B1=0,on=0,Dt=0,Eo="";function yu(e,t,n,r,i,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:bu,column:Io,length:u,return:""}}function La(e,t){return Vk(yu("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gk(){return Dt}function Hk(){return Dt=on>0?Gt(Eo,--on):0,Io--,Dt===10&&(Io=1,bu--),Dt}function pn(){return Dt=on<B1?Gt(Eo,on++):0,Io++,Dt===10&&(Io=1,bu++),Dt}function Kn(){return Gt(Eo,on)}function xu(){return on}function $a(e,t){return Ma(Eo,e,t)}function Da(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 k1(e){return bu=Io=1,B1=Jn(Eo=e),on=0,[]}function j1(e){return Eo="",e}function Cu(e){return V1($a(on-1,wd(e===91?e+2:e===40?e+1:e)))}function Wk(e){for(;(Dt=Kn())&&Dt<33;)pn();return Da(e)>2||Da(Dt)>3?"":" "}function Zk(e,t){for(;--t&&pn()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return $a(e,xu()+(t<6&&Kn()==32&&pn()==32))}function wd(e){for(;pn();)switch(Dt){case e:return on;case 34:case 39:e!==34&&e!==39&&wd(Dt);break;case 40:e===41&&wd(e);break;case 92:pn();break}return on}function Xk(e,t){for(;pn()&&e+Dt!==57;)if(e+Dt===84&&Kn()===47)break;return"/*"+$a(t,on-1)+"*"+mu(e===47?e:pn())}function zk(e){for(;!Da(Kn());)pn();return $a(e,on)}function Uk(e){return j1(wu("",null,null,null,[""],e=k1(e),0,[0],e))}function wu(e,t,n,r,i,a,u,l,c){for(var f=0,p=0,h=u,m=0,v=0,S=0,C=1,E=1,P=1,M=0,$="",B=i,N=a,U=r,X=$;E;)switch(S=M,M=pn()){case 40:if(S!=108&&Gt(X,h-1)==58){xd(X+=ut(Cu(M),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:X+=Cu(M);break;case 9:case 10:case 13:case 32:X+=Wk(S);break;case 92:X+=Zk(xu()-1,7);continue;case 47:switch(Kn()){case 42:case 47:vu(Yk(Xk(pn(),xu()),t,n),c);break;default:X+="/"}break;case 123*C:l[f++]=Jn(X)*P;case 125*C:case 59:case 0:switch(M){case 0:case 125:E=0;case 59+p:P==-1&&(X=ut(X,/\f/g,"")),v>0&&Jn(X)-h&&vu(v>32?H1(X+";",r,n,h-1):H1(ut(X," ","")+";",r,n,h-2),c);break;case 59:X+=";";default:if(vu(U=G1(X,t,n,f,p,i,l,$,B=[],N=[],h),a),M===123)if(p===0)wu(X,t,U,U,B,a,h,l,N);else switch(m===99&&Gt(X,3)===110?100:m){case 100:case 108:case 109:case 115:wu(e,U,U,r&&vu(G1(e,U,U,0,0,i,l,$,i,B=[],h),N),i,N,h,l,r?B:N);break;default:wu(X,U,U,U,[""],N,0,l,N)}}f=p=v=0,C=P=1,$=X="",h=u;break;case 58:h=1+Jn(X),v=S;default:if(C<1){if(M==123)--C;else if(M==125&&C++==0&&Hk()==125)continue}switch(X+=mu(M),M*C){case 38:P=p>0?1:(X+="\f",-1);break;case 44:l[f++]=(Jn(X)-1)*P,P=1;break;case 64:Kn()===45&&(X+=Cu(pn())),m=Kn(),p=h=Jn($=X+=zk(xu())),M++;break;case 45:S===45&&Jn(X)==2&&(C=0)}}return a}function G1(e,t,n,r,i,a,u,l,c,f,p){for(var h=i-1,m=i===0?a:[""],v=Cd(m),S=0,C=0,E=0;S<r;++S)for(var P=0,M=Ma(e,h+1,h=Nk(C=u[S])),$=e;P<v;++P)($=V1(C>0?m[P]+" "+M:ut(M,/&\f/g,m[P])))&&(c[E++]=$);return yu(e,t,n,i===0?bd:l,c,f,p)}function Yk(e,t,n){return yu(e,t,n,vd,mu(Gk()),Ma(e,2,-2),0)}function H1(e,t,n,r){return yu(e,t,n,yd,Ma(e,0,r),Ma(e,r+1,-1),r)}function Ao(e,t){for(var n="",r=Cd(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Jk(e,t,n,r){switch(e.type){case Dk:if(e.children.length)break;case $k:case yd:return e.return=e.return||e.value;case vd:return"";case N1:return e.return=e.value+"{"+Ao(e.children,r)+"}";case bd:e.value=e.props.join(",")}return Jn(n=Ao(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kk(e){var t=Cd(e);return function(n,r,i,a){for(var u="",l=0;l<t;l++)u+=e[l](n,r,i,a)||"";return u}}function qk(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qk(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ej=function(t,n,r){for(var i=0,a=0;i=a,a=Kn(),i===38&&a===12&&(n[r]=1),!Da(a);)pn();return $a(t,on)},tj=function(t,n){var r=-1,i=44;do switch(Da(i)){case 0:i===38&&Kn()===12&&(n[r]=1),t[r]+=ej(on-1,n,r);break;case 2:t[r]+=Cu(i);break;case 4:if(i===44){t[++r]=Kn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mu(i)}while(i=pn());return t},nj=function(t,n){return j1(tj(k1(t),n))},W1=new WeakMap,rj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!W1.get(r))&&!i){W1.set(t,!0);for(var a=[],u=nj(n,a),l=r.props,c=0,f=0;c<u.length;c++)for(var p=0;p<l.length;p++,f++)t.props[f]=a[c]?u[c].replace(/&\f/g,l[p]):l[p]+" "+u[c]}}},ij=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},oj="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",aj=function(t){return t.type==="comm"&&t.children.indexOf(oj)>-1},sj=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var u=!!n.parent,l=u?n.parent.children:i,c=l.length-1;c>=0;c--){var f=l[c];if(f.line<n.line)break;if(f.column<n.column){if(aj(f))return;break}}a.forEach(function(p){console.error('The pseudo class "'+p+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+p.split("-child")[0]+'-of-type".')})}}}},Z1=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},uj=function(t,n){for(var r=t-1;r>=0;r--)if(!Z1(n[r]))return!0;return!1},X1=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},lj=function(t,n,r){Z1(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),X1(t)):uj(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),X1(t)))};function z1(e,t){switch(Bk(e,t)){case 5103:return st+"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 st+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+gu+e+Xt+e+e;case 6828:case 4268:return st+e+Xt+e+e;case 6165:return st+e+Xt+"flex-"+e+e;case 5187:return st+e+ut(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+Xt+"flex-$1$2")+e;case 5443:return st+e+Xt+"flex-item-"+ut(e,/flex-|-self/,"")+e;case 4675:return st+e+Xt+"flex-line-pack"+ut(e,/align-content|flex-|-self/,"")+e;case 5548:return st+e+Xt+ut(e,"shrink","negative")+e;case 5292:return st+e+Xt+ut(e,"basis","preferred-size")+e;case 6060:return st+"box-"+ut(e,"-grow","")+st+e+Xt+ut(e,"grow","positive")+e;case 4554:return st+ut(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return ut(ut(ut(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return ut(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return ut(ut(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+Xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+st+e+e;case 4095:case 3583:case 4068:case 2532:return ut(e,/(.+)-inline(.+)/,st+"$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(Jn(e)-1-t>6)switch(Gt(e,t+1)){case 109:if(Gt(e,t+4)!==45)break;case 102:return ut(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+gu+(Gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xd(e,"stretch")?z1(ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Gt(e,t+1)!==115)break;case 6444:switch(Gt(e,Jn(e)-3-(~xd(e,"!important")&&10))){case 107:return ut(e,":",":"+st)+e;case 101:return ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(Gt(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+Xt+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return st+e+Xt+ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+Xt+ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+Xt+ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+Xt+e+e}return e}var cj=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case yd:t.return=z1(t.value,t.length);break;case N1:return Ao([La(t,{value:ut(t.value,"@","@"+st)})],i);case bd:if(t.length)return jk(t.props,function(a){switch(kk(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ao([La(t,{props:[ut(a,/:(read-\w+)/,":"+gu+"$1")]})],i);case"::placeholder":return Ao([La(t,{props:[ut(a,/:(plac\w+)/,":"+st+"input-$1")]}),La(t,{props:[ut(a,/:(plac\w+)/,":"+gu+"$1")]}),La(t,{props:[ut(a,/:(plac\w+)/,Xt+"input-$1")]})],i)}return""})}},fj=[cj],dj=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
114
|
-
|
|
110
|
+
`),b.createElement("div",{style:h.white,className:"saturation-white"},b.createElement("div",{style:h.black,className:"saturation-black"}),b.createElement("div",{style:h.pointer},this.props.pointer?b.createElement(this.props.pointer,this.props):b.createElement("div",{style:h.circle}))))}}]),t}(b.PureComponent||b.Component);function EV(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var AV=Rb(Object.keys,Object);const _V=AV;var PV=Object.prototype,TV=PV.hasOwnProperty;function FV(e){if(!Nf(e))return _V(e);var t=[];for(var n in Object(e))TV.call(e,n)&&n!="constructor"&&t.push(n);return t}function Wf(e){return uo(e)?Hb(e):FV(e)}function OV(e,t){return e&&Ab(e,t,Wf)}function RV(e,t){return function(n,r){if(n==null)return n;if(!uo(n))return e(n,r);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&r(u[a],a,u)!==!1;);return n}}var MV=RV(OV);const Jb=MV;function LV(e){return typeof e=="function"?e:lu}function DV(e,t){var n=hn(e)?EV:Jb;return n(e,LV(t))}function du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}var $V=/^\s+/,NV=/\s+$/;function Ie(e,t){if(e=e||"",t=t||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,t);var n=VV(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,u,l;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?u=r/12.92:u=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=n1(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=qb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=qb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Kb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Kb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Qb(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return GV(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(St(this._r,255)*100)+"%",g:Math.round(St(this._g,255)*100)+"%",b:Math.round(St(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(St(this._r,255)*100)+"%, "+Math.round(St(this._g,255)*100)+"%, "+Math.round(St(this._b,255)*100)+"%)":"rgba("+Math.round(St(this._r,255)*100)+"%, "+Math.round(St(this._g,255)*100)+"%, "+Math.round(St(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:e8[Qb(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+e1(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Ie(t);r="#"+e1(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(XV,arguments)},brighten:function(){return this._applyModification(zV,arguments)},darken:function(){return this._applyModification(UV,arguments)},desaturate:function(){return this._applyModification(HV,arguments)},saturate:function(){return this._applyModification(WV,arguments)},greyscale:function(){return this._applyModification(ZV,arguments)},spin:function(){return this._applyModification(YV,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(qV,arguments)},complement:function(){return this._applyCombination(JV,arguments)},monochromatic:function(){return this._applyCombination(QV,arguments)},splitcomplement:function(){return this._applyCombination(KV,arguments)},triad:function(){return this._applyCombination(t1,[3])},tetrad:function(){return this._applyCombination(t1,[4])}},Ie.fromRatio=function(e,t){if(du(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Oa(e[r]));e=n}return Ie(e,t)};function VV(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=i8(e)),du(e)=="object"&&(hr(e.r)&&hr(e.g)&&hr(e.b)?(t=BV(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):hr(e.h)&&hr(e.s)&&hr(e.v)?(r=Oa(e.s),i=Oa(e.v),t=jV(e.h,r,i),u=!0,l="hsv"):hr(e.h)&&hr(e.s)&&hr(e.l)&&(r=Oa(e.s),a=Oa(e.l),t=kV(e.h,r,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=n1(n),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function BV(e,t,n){return{r:St(e,255)*255,g:St(t,255)*255,b:St(n,255)*255}}function Kb(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,u,l=(r+i)/2;if(r==i)a=u=0;else{var c=r-i;switch(u=l>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:u,l}}function kV(e,t,n){var r,i,a;e=St(e,360),t=St(t,100),n=St(n,100);function u(f,h,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?f+(h-f)*6*p:p<1/2?h:p<2/3?f+(h-f)*(2/3-p)*6:f}if(t===0)r=i=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=u(c,l,e+1/3),i=u(c,l,e),a=u(c,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function qb(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,u,l=r,c=r-i;if(u=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:u,v:l}}function jV(e,t,n){e=St(e,360)*6,t=St(t,100),n=St(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),u=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,f=[n,u,a,a,l,n][c],h=[l,n,n,u,a,a][c],p=[a,a,l,n,n,u][c];return{r:f*255,g:h*255,b:p*255}}function Qb(e,t,n,r){var i=[Nn(Math.round(e).toString(16)),Nn(Math.round(t).toString(16)),Nn(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function GV(e,t,n,r,i){var a=[Nn(Math.round(e).toString(16)),Nn(Math.round(t).toString(16)),Nn(Math.round(n).toString(16)),Nn(r1(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function e1(e,t,n,r){var i=[Nn(r1(r)),Nn(Math.round(e).toString(16)),Nn(Math.round(t).toString(16)),Nn(Math.round(n).toString(16))];return i.join("")}Ie.equals=function(e,t){return!e||!t?!1:Ie(e).toRgbString()==Ie(t).toRgbString()},Ie.random=function(){return Ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function HV(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s-=t/100,n.s=hu(n.s),Ie(n)}function WV(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s+=t/100,n.s=hu(n.s),Ie(n)}function ZV(e){return Ie(e).desaturate(100)}function XV(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l+=t/100,n.l=hu(n.l),Ie(n)}function zV(e,t){t=t===0?0:t||10;var n=Ie(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),Ie(n)}function UV(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l-=t/100,n.l=hu(n.l),Ie(n)}function YV(e,t){var n=Ie(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Ie(n)}function JV(e){var t=Ie(e).toHsl();return t.h=(t.h+180)%360,Ie(t)}function t1(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Ie(e).toHsl(),r=[Ie(e)],i=360/t,a=1;a<t;a++)r.push(Ie({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function KV(e){var t=Ie(e).toHsl(),n=t.h;return[Ie(e),Ie({h:(n+72)%360,s:t.s,l:t.l}),Ie({h:(n+216)%360,s:t.s,l:t.l})]}function qV(e,t,n){t=t||6,n=n||30;var r=Ie(e).toHsl(),i=360/n,a=[Ie(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Ie(r));return a}function QV(e,t){t=t||6;for(var n=Ie(e).toHsv(),r=n.h,i=n.s,a=n.v,u=[],l=1/t;t--;)u.push(Ie({h:r,s:i,v:a})),a=(a+l)%1;return u}Ie.mix=function(e,t,n){n=n===0?0:n||50;var r=Ie(e).toRgb(),i=Ie(t).toRgb(),a=n/100,u={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Ie(u)},Ie.readability=function(e,t){var n=Ie(e),r=Ie(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Ie.isReadable=function(e,t,n){var r=Ie.readability(e,t),i,a;switch(a=!1,i=o8(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},Ie.mostReadable=function(e,t,n){var r=null,i=0,a,u,l,c;n=n||{},u=n.includeFallbackColors,l=n.level,c=n.size;for(var f=0;f<t.length;f++)a=Ie.readability(e,t[f]),a>i&&(i=a,r=Ie(t[f]));return Ie.isReadable(e,r,{level:l,size:c})||!u?r:(n.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],n))};var Zf=Ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},e8=Ie.hexNames=t8(Zf);function t8(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function n1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function St(e,t){n8(e)&&(e="100%");var n=r8(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function hu(e){return Math.min(1,Math.max(0,e))}function pn(e){return parseInt(e,16)}function n8(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function r8(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Nn(e){return e.length==1?"0"+e:""+e}function Oa(e){return e<=1&&(e=e*100+"%"),e}function r1(e){return Math.round(parseFloat(e)*255).toString(16)}function i1(e){return pn(e)/255}var Vn=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function hr(e){return!!Vn.CSS_UNIT.exec(e)}function i8(e){e=e.replace($V,"").replace(NV,"").toLowerCase();var t=!1;if(Zf[e])e=Zf[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Vn.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Vn.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Vn.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Vn.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Vn.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Vn.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Vn.hex8.exec(e))?{r:pn(n[1]),g:pn(n[2]),b:pn(n[3]),a:i1(n[4]),format:t?"name":"hex8"}:(n=Vn.hex6.exec(e))?{r:pn(n[1]),g:pn(n[2]),b:pn(n[3]),format:t?"name":"hex"}:(n=Vn.hex4.exec(e))?{r:pn(n[1]+""+n[1]),g:pn(n[2]+""+n[2]),b:pn(n[3]+""+n[3]),a:i1(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Vn.hex3.exec(e))?{r:pn(n[1]+""+n[1]),g:pn(n[2]+""+n[2]),b:pn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function o8(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var o1=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return DV(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var u=/^\d+%$/;u.test(t[a])&&(i+=1)}}),r===i?t:!1},Ra=function(t,n){var r=t.hex?Ie(t.hex):Ie(t),i=r.toHsl(),a=r.toHsv(),u=r.toRgb(),l=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var c=l==="000000"&&u.a===0;return{hsl:i,hex:c?"transparent":"#"+l,rgb:u,hsv:a,oldHue:t.h||n||i.h,source:t.source}},jr=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ie(t).isValid()},Xf=function(t){if(!t)return"#fff";var n=Ra(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},zf=function(t,n){var r=t.replace("°","");return Ie(n+" ("+r+")")._ok},Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a8=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u8(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var an=function(t){var n=function(r){l8(i,r);function i(a){s8(this,i);var u=u8(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return u.handleChange=function(l,c){var f=o1(l);if(f){var h=Ra(l,l.h||u.state.oldHue);u.setState(h),u.props.onChangeComplete&&u.debounce(u.props.onChangeComplete,h,c),u.props.onChange&&u.props.onChange(h,c)}},u.handleSwatchHover=function(l,c){var f=o1(l);if(f){var h=Ra(l,l.h||u.state.oldHue);u.props.onSwatchHover&&u.props.onSwatchHover(h,c)}},u.state=Ma({},Ra(a.color,0)),u.debounce=Yb(function(l,c,f){l(c,f)},100),u}return a8(i,[{key:"render",value:function(){var u={};return this.props.onSwatchHover&&(u.onSwatchHover=this.handleSwatchHover),b.createElement(t,Ma({},this.props,this.state,{onChange:this.handleChange},u))}}],[{key:"getDerivedStateFromProps",value:function(u,l){return Ma({},Ra(u.color,l.oldHue))}}]),i}(b.PureComponent||b.Component);return n.propTypes=Ma({},t.propTypes),n.defaultProps=Ma({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),n},c8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f8=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function d8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a1(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){h8(i,r);function i(){var a,u,l,c;d8(this,i);for(var f=arguments.length,h=Array(f),p=0;p<f;p++)h[p]=arguments[p];return c=(u=(l=a1(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(h))),l),l.state={focus:!1},l.handleFocus=function(){return l.setState({focus:!0})},l.handleBlur=function(){return l.setState({focus:!1})},u),a1(l,c)}return f8(i,[{key:"render",value:function(){return b.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},b.createElement(t,c8({},this.props,this.state)))}}]),i}(b.Component)},s1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g8=13,m8=function(t){var n=t.color,r=t.style,i=t.onClick,a=i===void 0?function(){}:i,u=t.onHover,l=t.title,c=l===void 0?n:l,f=t.children,h=t.focus,p=t.focusStyle,m=p===void 0?{}:p,v=n==="transparent",C=je({default:{swatch:s1({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,h?m:{})}}),S=function($){return a(n,$)},E=function($){return $.keyCode===g8&&a(n,$)},_=function($){return u(n,$)},R={};return u&&(R.onMouseOver=_),b.createElement("div",s1({style:C.swatch,onClick:S,title:c,tabIndex:0,onKeyDown:E},R),f,v&&b.createElement(ao,{borderRadius:C.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const mi=p8(m8);var v8=function(t){var n=t.direction,r=je({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return b.createElement("div",{style:r.picker})},b8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u1=function(t){var n=t.rgb,r=t.hsl,i=t.width,a=t.height,u=t.onChange,l=t.direction,c=t.style,f=t.renderers,h=t.pointer,p=t.className,m=p===void 0?"":p,v=je({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:c}}});return b.createElement("div",{style:v.picker,className:"alpha-picker "+m},b.createElement(wf,b8({},v.alpha,{rgb:n,hsl:r,pointer:h,renderers:f,onChange:u,direction:l})))};u1.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:v8},an(u1);function l1(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var y8="__lodash_hash_undefined__";function x8(e){return this.__data__.set(e,y8),this}function C8(e){return this.__data__.has(e)}function pu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dr;++t<n;)this.add(e[t])}pu.prototype.add=pu.prototype.push=x8,pu.prototype.has=C8;function w8(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function S8(e,t){return e.has(t)}var I8=1,E8=2;function c1(e,t,n,r,i,a){var u=n&I8,l=e.length,c=t.length;if(l!=c&&!(u&&c>l))return!1;var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=n&E8?new pu:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var C=e[p],S=t[p];if(r)var E=u?r(S,C,p,t,e,a):r(C,S,p,e,t,a);if(E!==void 0){if(E)continue;m=!1;break}if(v){if(!w8(t,function(_,R){if(!S8(v,R)&&(C===_||i(C,_,n,r,a)))return v.push(R)})){m=!1;break}}else if(!(C===S||i(C,S,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}function A8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function _8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var P8=1,T8=2,F8="[object Boolean]",O8="[object Date]",R8="[object Error]",M8="[object Map]",L8="[object Number]",D8="[object RegExp]",$8="[object Set]",N8="[object String]",V8="[object Symbol]",B8="[object ArrayBuffer]",k8="[object DataView]",f1=Br?Br.prototype:void 0,Uf=f1?f1.valueOf:void 0;function j8(e,t,n,r,i,a,u){switch(n){case k8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B8:return!(e.byteLength!=t.byteLength||!a(new au(e),new au(t)));case F8:case O8:case L8:return Ea(+e,+t);case R8:return e.name==t.name&&e.message==t.message;case D8:case N8:return e==t+"";case M8:var l=A8;case $8:var c=r&P8;if(l||(l=_8),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=T8,u.set(e,t);var h=c1(l(e),l(t),r,i,a,u);return u.delete(e),h;case V8:if(Uf)return Uf.call(e)==Uf.call(t)}return!1}function G8(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function H8(e,t,n){var r=t(e);return hn(e)?r:G8(r,n(e))}function W8(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}function Z8(){return[]}var X8=Object.prototype,z8=X8.propertyIsEnumerable,d1=Object.getOwnPropertySymbols,U8=d1?function(e){return e==null?[]:(e=Object(e),W8(d1(e),function(t){return z8.call(e,t)}))}:Z8;const Y8=U8;function h1(e){return H8(e,Wf,Y8)}var J8=1,K8=Object.prototype,q8=K8.hasOwnProperty;function Q8(e,t,n,r,i,a){var u=n&J8,l=h1(e),c=l.length,f=h1(t),h=f.length;if(c!=h&&!u)return!1;for(var p=c;p--;){var m=l[p];if(!(u?m in t:q8.call(t,m)))return!1}var v=a.get(e),C=a.get(t);if(v&&C)return v==t&&C==e;var S=!0;a.set(e,t),a.set(t,e);for(var E=u;++p<c;){m=l[p];var _=e[m],R=t[m];if(r)var L=u?r(R,_,m,t,e,a):r(_,R,m,e,t,a);if(!(L===void 0?_===R||i(_,R,n,r,a):L)){S=!1;break}E||(E=m=="constructor")}if(S&&!E){var $=e.constructor,V=t.constructor;$!=V&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof V=="function"&&V instanceof V)&&(S=!1)}return a.delete(e),a.delete(t),S}var eB=pi($n,"DataView");const Yf=eB;var tB=pi($n,"Promise");const Jf=tB;var nB=pi($n,"Set");const Kf=nB;var rB=pi($n,"WeakMap");const qf=rB;var p1="[object Map]",iB="[object Object]",g1="[object Promise]",m1="[object Set]",v1="[object WeakMap]",b1="[object DataView]",oB=hi(Yf),aB=hi(_a),sB=hi(Jf),uB=hi(Kf),lB=hi(qf),bi=di;(Yf&&bi(new Yf(new ArrayBuffer(1)))!=b1||_a&&bi(new _a)!=p1||Jf&&bi(Jf.resolve())!=g1||Kf&&bi(new Kf)!=m1||qf&&bi(new qf)!=v1)&&(bi=function(e){var t=di(e),n=t==iB?e.constructor:void 0,r=n?hi(n):"";if(r)switch(r){case oB:return b1;case aB:return p1;case sB:return g1;case uB:return m1;case lB:return v1}return t});const y1=bi;var cB=1,x1="[object Arguments]",C1="[object Array]",gu="[object Object]",fB=Object.prototype,w1=fB.hasOwnProperty;function dB(e,t,n,r,i,a){var u=hn(e),l=hn(t),c=u?C1:y1(e),f=l?C1:y1(t);c=c==x1?gu:c,f=f==x1?gu:f;var h=c==gu,p=f==gu,m=c==f;if(m&&uu(e)){if(!uu(t))return!1;u=!0,h=!1}if(m&&!h)return a||(a=new Kn),u||kf(e)?c1(e,t,n,r,i,a):j8(e,t,c,n,r,i,a);if(!(n&cB)){var v=h&&w1.call(e,"__wrapped__"),C=p&&w1.call(t,"__wrapped__");if(v||C){var S=v?e.value():e,E=C?t.value():t;return a||(a=new Kn),i(S,E,n,r,a)}}return m?(a||(a=new Kn),Q8(e,t,n,r,i,a)):!1}function Qf(e,t,n,r,i){return e===t?!0:e==null||t==null||!kr(e)&&!kr(t)?e!==e&&t!==t:dB(e,t,n,r,Qf,i)}var hB=1,pB=2;function gB(e,t,n,r){var i=n.length,a=i,u=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],f=e[c],h=l[1];if(u&&l[2]){if(f===void 0&&!(c in e))return!1}else{var p=new Kn;if(r)var m=r(f,h,c,e,t,p);if(!(m===void 0?Qf(h,f,hB|pB,r,p):m))return!1}}return!0}function S1(e){return e===e&&!En(e)}function mB(e){for(var t=Wf(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,S1(i)]}return t}function I1(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function vB(e){var t=mB(e);return t.length==1&&t[0][2]?I1(t[0][0],t[0][1]):function(n){return n===e||gB(n,e,t)}}var bB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yB=/^\w*$/;function ed(e,t){if(hn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cu(e)?!0:yB.test(e)||!bB.test(e)||t!=null&&e in Object(t)}var xB="Expected a function";function td(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xB);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,r);return n.cache=a.set(i,u)||a,u};return n.cache=new(td.Cache||dr),n}td.Cache=dr;var CB=500;function wB(e){var t=td(e,function(r){return n.size===CB&&n.clear(),r}),n=t.cache;return t}var SB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,IB=/\\(\\)?/g,EB=wB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SB,function(n,r,i,a){t.push(i?a.replace(IB,"$1"):r||n)}),t});const AB=EB;var _B=1/0,E1=Br?Br.prototype:void 0,A1=E1?E1.toString:void 0;function _1(e){if(typeof e=="string")return e;if(hn(e))return l1(e,_1)+"";if(cu(e))return A1?A1.call(e):"";var t=e+"";return t=="0"&&1/e==-_B?"-0":t}function PB(e){return e==null?"":_1(e)}function P1(e,t){return hn(e)?e:ed(e,t)?[e]:AB(PB(e))}var TB=1/0;function mu(e){if(typeof e=="string"||cu(e))return e;var t=e+"";return t=="0"&&1/e==-TB?"-0":t}function T1(e,t){t=P1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[mu(t[n++])];return n&&n==r?e:void 0}function FB(e,t,n){var r=e==null?void 0:T1(e,t);return r===void 0?n:r}function OB(e,t){return e!=null&&t in Object(e)}function RB(e,t,n){t=P1(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var u=mu(t[r]);if(!(a=e!=null&&n(e,u)))break;e=e[u]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Vf(i)&&Gf(u,i)&&(hn(e)||su(e)))}function MB(e,t){return e!=null&&RB(e,t,OB)}var LB=1,DB=2;function $B(e,t){return ed(e)&&S1(t)?I1(mu(e),t):function(n){var r=FB(n,e);return r===void 0&&r===t?MB(n,e):Qf(t,r,LB|DB)}}function NB(e){return function(t){return t==null?void 0:t[e]}}function VB(e){return function(t){return T1(t,e)}}function BB(e){return ed(e)?NB(mu(e)):VB(e)}function kB(e){return typeof e=="function"?e:e==null?lu:typeof e=="object"?hn(e)?$B(e[0],e[1]):vB(e):BB(e)}function jB(e,t){var n=-1,r=uo(e)?Array(e.length):[];return Jb(e,function(i,a,u){r[++n]=t(i,a,u)}),r}function yi(e,t){var n=hn(e)?l1:jB;return n(e,kB(t))}var GB=function(t){var n=t.colors,r=t.onClick,i=t.onSwatchHover,a=je({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return b.createElement("div",{style:a.swatches},yi(n,function(u){return b.createElement(mi,{key:u,color:u,style:a.swatch,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+u}})}),b.createElement("div",{style:a.clear}))},nd=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.hex,a=t.colors,u=t.width,l=t.triangle,c=t.styles,f=c===void 0?{}:c,h=t.className,p=h===void 0?"":h,m=i==="transparent",v=function(E,_){jr(E)&&n({hex:E,source:"hex"},_)},C=je(on({default:{card:{width:u,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Xf(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},f),{"hide-triangle":l==="hide"});return b.createElement("div",{style:C.card,className:"block-picker "+p},b.createElement("div",{style:C.triangle}),b.createElement("div",{style:C.head},m&&b.createElement(ao,{borderRadius:"6px 6px 0 0"}),b.createElement("div",{style:C.label},i)),b.createElement("div",{style:C.body},b.createElement(GB,{colors:a,onClick:v,onSwatchHover:r}),b.createElement(rt,{style:{input:C.input},value:i,onChange:v})))};nd.propTypes={width:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.string),triangle:pe.oneOf(["top","hide"]),styles:pe.object},nd.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},an(nd);var lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},co={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},fo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},ho={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},po={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},go={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},mo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},vo={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},bo={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},La={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},yo={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},xo={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Co={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},wo={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},So={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Io={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Eo={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ao={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},F1=function(t){var n=t.color,r=t.onClick,i=t.onSwatchHover,a=t.hover,u=t.active,l=t.circleSize,c=t.circleSpacing,f=je({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+n,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+n}}},{hover:a,active:u});return b.createElement("div",{style:f.swatch},b.createElement(mi,{style:f.Swatch,color:n,onClick:r,onHover:i,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+n}}))};F1.defaultProps={circleSize:28,circleSpacing:14};const HB=xf(F1);var rd=function(t){var n=t.width,r=t.onChange,i=t.onSwatchHover,a=t.colors,u=t.hex,l=t.circleSize,c=t.styles,f=c===void 0?{}:c,h=t.circleSpacing,p=t.className,m=p===void 0?"":p,v=je(on({default:{card:{width:n,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},f)),C=function(E,_){return r({hex:E,source:"hex"},_)};return b.createElement("div",{style:v.card,className:"circle-picker "+m},yi(a,function(S){return b.createElement(HB,{key:S,color:S,onClick:C,onSwatchHover:i,active:u===S.toLowerCase(),circleSize:l,circleSpacing:h})}))};rd.propTypes={width:pe.oneOfType([pe.string,pe.number]),circleSize:pe.number,circleSpacing:pe.number,styles:pe.object},rd.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[lo[500],co[500],fo[500],ho[500],po[500],go[500],mo[500],vo[500],bo[500],La[500],yo[500],xo[500],Co[500],wo[500],So[500],Io[500],Eo[500],Ao[500]],styles:{}},an(rd);function O1(e){return e===void 0}var R1={};Object.defineProperty(R1,"__esModule",{value:!0});var M1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WB=b,L1=ZB(WB);function ZB(e){return e&&e.__esModule?e:{default:e}}function XB(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var vu=24,zB=R1.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,i=r===void 0?vu:r,a=e.height,u=a===void 0?vu:a,l=e.style,c=l===void 0?{}:l,f=XB(e,["fill","width","height","style"]);return L1.default.createElement("svg",M1({viewBox:"0 0 "+vu+" "+vu,style:M1({fill:n,width:i,height:u},c)},f),L1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},UB=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function YB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function KB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var D1=function(e){KB(t,e);function t(n){YB(this,t);var r=JB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.toggleViews=function(){r.state.view==="hex"?r.setState({view:"rgb"}):r.state.view==="rgb"?r.setState({view:"hsl"}):r.state.view==="hsl"&&(r.props.hsl.a===1?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(i,a){i.hex?jr(i.hex)&&r.props.onChange({hex:i.hex,source:"hex"},a):i.r||i.g||i.b?r.props.onChange({r:i.r||r.props.rgb.r,g:i.g||r.props.rgb.g,b:i.b||r.props.rgb.b,source:"rgb"},a):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},a)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),r.props.onChange({h:i.h||r.props.hsl.h,s:Number(O1(i.s)?r.props.hsl.s:i.s),l:Number(O1(i.l)?r.props.hsl.l:i.l),source:"hsl"},a))},r.showHighlight=function(i){i.currentTarget.style.background="#eee"},r.hideHighlight=function(i){i.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?r.state={view:"rgb"}:r.state={view:n.view},r}return UB(t,[{key:"render",value:function(){var r=this,i=je({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),b.createElement("div",{style:i.alpha},b.createElement(rt,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=b.createElement("div",{style:i.fields,className:"flexbox-fix"},b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),b.createElement("div",{style:i.field},b.createElement(rt,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),b.createElement("div",{style:i.alpha},b.createElement(rt,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),b.createElement("div",{style:i.wrap,className:"flexbox-fix"},a,b.createElement("div",{style:i.toggle},b.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(l){return r.icon=l}},b.createElement(zB,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(b.Component);D1.defaultProps={view:"hex"};var $1=function(){var t=je({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return b.createElement("div",{style:t.picker})},qB=function(){var t=je({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return b.createElement("div",{style:t.picker})},id=function(t){var n=t.width,r=t.onChange,i=t.disableAlpha,a=t.rgb,u=t.hsl,l=t.hsv,c=t.hex,f=t.renderers,h=t.styles,p=h===void 0?{}:h,m=t.className,v=m===void 0?"":m,C=t.defaultView,S=je(on({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},p),{disableAlpha:i});return b.createElement("div",{style:S.picker,className:"chrome-picker "+v},b.createElement("div",{style:S.saturation},b.createElement(fu,{style:S.Saturation,hsl:u,hsv:l,pointer:qB,onChange:r})),b.createElement("div",{style:S.body},b.createElement("div",{style:S.controls,className:"flexbox-fix"},b.createElement("div",{style:S.color},b.createElement("div",{style:S.swatch},b.createElement("div",{style:S.active}),b.createElement(ao,{renderers:f}))),b.createElement("div",{style:S.toggles},b.createElement("div",{style:S.hue},b.createElement(so,{style:S.Hue,hsl:u,pointer:$1,onChange:r})),b.createElement("div",{style:S.alpha},b.createElement(wf,{style:S.Alpha,rgb:a,hsl:u,pointer:$1,renderers:f,onChange:r})))),b.createElement(D1,{rgb:a,hsl:u,hex:c,view:C,onChange:r,disableAlpha:i})))};id.propTypes={width:pe.oneOfType([pe.string,pe.number]),disableAlpha:pe.bool,styles:pe.object,defaultView:pe.oneOf(["hex","rgb","hsl"])},id.defaultProps={width:225,disableAlpha:!1,styles:{}},an(id);var QB=function(t){var n=t.color,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=t.active,l=je({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Xf(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return b.createElement(mi,{style:l.color,color:n,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},b.createElement("div",{style:l.dot}))},ek=function(t){var n=t.hex,r=t.rgb,i=t.onChange,a=je({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),u=function(c,f){c.r||c.g||c.b?i({r:c.r||r.r,g:c.g||r.g,b:c.b||r.b,source:"rgb"},f):i({hex:c.hex,source:"hex"},f)};return b.createElement("div",{style:a.fields,className:"flexbox-fix"},b.createElement("div",{style:a.active}),b.createElement(rt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:n,onChange:u}),b.createElement(rt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:r.r,onChange:u}),b.createElement(rt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:r.g,onChange:u}),b.createElement(rt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:r.b,onChange:u}))},od=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.colors,a=t.hex,u=t.rgb,l=t.styles,c=l===void 0?{}:l,f=t.className,h=f===void 0?"":f,p=je(on({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),m=function(C,S){C.hex?jr(C.hex)&&n({hex:C.hex,source:"hex"},S):n(C,S)};return b.createElement(Fa,{style:p.Compact,styles:c},b.createElement("div",{style:p.compact,className:"compact-picker "+h},b.createElement("div",null,yi(i,function(v){return b.createElement(QB,{key:v,color:v,active:v.toLowerCase()===a,onClick:m,onSwatchHover:r})}),b.createElement("div",{style:p.clear})),b.createElement(ek,{hex:a,rgb:u,onChange:m})))};od.propTypes={colors:pe.arrayOf(pe.string),styles:pe.object},od.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},an(od);var tk=function(t){var n=t.hover,r=t.color,i=t.onClick,a=t.onSwatchHover,u={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=je({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:u}},{hover:n});return b.createElement("div",{style:l.swatch},b.createElement(mi,{color:r,onClick:i,onHover:a,focusStyle:u}))};const nk=xf(tk);var ad=function(t){var n=t.width,r=t.colors,i=t.onChange,a=t.onSwatchHover,u=t.triangle,l=t.styles,c=l===void 0?{}:l,f=t.className,h=f===void 0?"":f,p=je(on({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":u==="hide","top-left-triangle":u==="top-left","top-right-triangle":u==="top-right","bottom-left-triangle":u==="bottom-left","bottom-right-triangle":u==="bottom-right"}),m=function(C,S){return i({hex:C,source:"hex"},S)};return b.createElement("div",{style:p.card,className:"github-picker "+h},b.createElement("div",{style:p.triangleShadow}),b.createElement("div",{style:p.triangle}),yi(r,function(v){return b.createElement(nk,{color:v,key:v,onClick:m,onSwatchHover:a})}))};ad.propTypes={width:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.string),triangle:pe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:pe.object},ad.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},an(ad);var rk=function(t){var n=t.direction,r=je({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:n==="vertical"});return b.createElement("div",{style:r.picker})},ik=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd=function(t){var n=t.width,r=t.height,i=t.onChange,a=t.hsl,u=t.direction,l=t.pointer,c=t.styles,f=c===void 0?{}:c,h=t.className,p=h===void 0?"":h,m=je(on({default:{picker:{position:"relative",width:n,height:r},hue:{radius:"2px"}}},f)),v=function(S){return i({a:1,h:S.h,l:.5,s:1})};return b.createElement("div",{style:m.picker,className:"hue-picker "+p},b.createElement(so,ik({},m.hue,{hsl:a,pointer:l,onChange:v,direction:u})))};sd.propTypes={styles:pe.object},sd.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:rk,styles:{}};const ok=an(sd);var ak=function(t){var n=t.onChange,r=t.hex,i=t.rgb,a=t.styles,u=a===void 0?{}:a,l=t.className,c=l===void 0?"":l,f=je(on({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+r,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},u)),h=function(m,v){m.hex?jr(m.hex)&&n({hex:m.hex,source:"hex"},v):(m.r||m.g||m.b)&&n({r:m.r||i.r,g:m.g||i.g,b:m.b||i.b,source:"rgb"},v)};return b.createElement(Fa,{styles:u},b.createElement("div",{style:f.material,className:"material-picker "+c},b.createElement(rt,{style:{wrap:f.HEXwrap,input:f.HEXinput,label:f.HEXlabel},label:"hex",value:r,onChange:h}),b.createElement("div",{style:f.split,className:"flexbox-fix"},b.createElement("div",{style:f.third},b.createElement(rt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"r",value:i.r,onChange:h})),b.createElement("div",{style:f.third},b.createElement(rt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"g",value:i.g,onChange:h})),b.createElement("div",{style:f.third},b.createElement(rt,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"b",value:i.b,onChange:h})))))};an(ak);var sk=function(t){var n=t.onChange,r=t.rgb,i=t.hsv,a=t.hex,u=je({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(f,h){f["#"]?jr(f["#"])&&n({hex:f["#"],source:"hex"},h):f.r||f.g||f.b?n({r:f.r||r.r,g:f.g||r.g,b:f.b||r.b,source:"rgb"},h):(f.h||f.s||f.v)&&n({h:f.h||i.h,s:f.s||i.s,v:f.v||i.v,source:"hsv"},h)};return b.createElement("div",{style:u.fields},b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(i.h),onChange:l}),b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:l}),b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:l}),b.createElement("div",{style:u.divider}),b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:r.r,onChange:l}),b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:r.g,onChange:l}),b.createElement(rt,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:r.b,onChange:l}),b.createElement("div",{style:u.divider}),b.createElement(rt,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:a.replace("#",""),onChange:l}),b.createElement("div",{style:u.fieldSymbols},b.createElement("div",{style:u.symbol},"°"),b.createElement("div",{style:u.symbol},"%"),b.createElement("div",{style:u.symbol},"%")))},uk=function(t){var n=t.hsl,r=je({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":n.l>.5});return b.createElement("div",{style:r.picker})},lk=function(){var t=je({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return b.createElement("div",{style:t.pointer},b.createElement("div",{style:t.left},b.createElement("div",{style:t.leftInside})),b.createElement("div",{style:t.right},b.createElement("div",{style:t.rightInside})))},N1=function(t){var n=t.onClick,r=t.label,i=t.children,a=t.active,u=je({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return b.createElement("div",{style:u.button,onClick:n},r||i)},ck=function(t){var n=t.rgb,r=t.currentColor,i=je({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return b.createElement("div",null,b.createElement("div",{style:i.label},"new"),b.createElement("div",{style:i.swatches},b.createElement("div",{style:i.new}),b.createElement("div",{style:i.current})),b.createElement("div",{style:i.label},"current"))},fk=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hk(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function pk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ud=function(e){pk(t,e);function t(n){dk(this,t);var r=hk(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:n.hex},r}return fk(t,[{key:"render",value:function(){var r=this.props,i=r.styles,a=i===void 0?{}:i,u=r.className,l=u===void 0?"":u,c=je(on({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},a));return b.createElement("div",{style:c.picker,className:"photoshop-picker "+l},b.createElement("div",{style:c.head},this.props.header),b.createElement("div",{style:c.body,className:"flexbox-fix"},b.createElement("div",{style:c.saturation},b.createElement(fu,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:uk,onChange:this.props.onChange})),b.createElement("div",{style:c.hue},b.createElement(so,{direction:"vertical",hsl:this.props.hsl,pointer:lk,onChange:this.props.onChange})),b.createElement("div",{style:c.controls},b.createElement("div",{style:c.top,className:"flexbox-fix"},b.createElement("div",{style:c.previews},b.createElement(ck,{rgb:this.props.rgb,currentColor:this.state.currentColor})),b.createElement("div",{style:c.actions},b.createElement(N1,{label:"OK",onClick:this.props.onAccept,active:!0}),b.createElement(N1,{label:"Cancel",onClick:this.props.onCancel}),b.createElement(sk,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(b.Component);ud.propTypes={header:pe.string,styles:pe.object},ud.defaultProps={header:"Color Picker",styles:{}},an(ud);var gk=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,a=t.hex,u=t.disableAlpha,l=je({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),c=function(h,p){h.hex?jr(h.hex)&&n({hex:h.hex,source:"hex"},p):h.r||h.g||h.b?n({r:h.r||r.r,g:h.g||r.g,b:h.b||r.b,a:r.a,source:"rgb"},p):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,n({h:i.h,s:i.s,l:i.l,a:h.a,source:"rgb"},p))};return b.createElement("div",{style:l.fields,className:"flexbox-fix"},b.createElement("div",{style:l.double},b.createElement(rt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:c})),b.createElement("div",{style:l.single},b.createElement(rt,{style:{input:l.input,label:l.label},label:"r",value:r.r,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.single},b.createElement(rt,{style:{input:l.input,label:l.label},label:"g",value:r.g,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.single},b.createElement(rt,{style:{input:l.input,label:l.label},label:"b",value:r.b,onChange:c,dragLabel:"true",dragMax:"255"})),b.createElement("div",{style:l.alpha},b.createElement(rt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(r.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},mk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1=function(t){var n=t.colors,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=je({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!n||!n.length}),l=function(f,h){i({hex:f,source:"hex"},h)};return b.createElement("div",{style:u.colors,className:"flexbox-fix"},n.map(function(c){var f=typeof c=="string"?{color:c}:c,h=""+f.color+(f.title||"");return b.createElement("div",{key:h,style:u.swatchWrap},b.createElement(mi,mk({},f,{style:u.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+f.color}})))}))};V1.propTypes={colors:pe.arrayOf(pe.oneOfType([pe.string,pe.shape({color:pe.string,title:pe.string})])).isRequired};var vk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ld=function(t){var n=t.width,r=t.rgb,i=t.hex,a=t.hsv,u=t.hsl,l=t.onChange,c=t.onSwatchHover,f=t.disableAlpha,h=t.presetColors,p=t.renderers,m=t.styles,v=m===void 0?{}:m,C=t.className,S=C===void 0?"":C,E=je(on({default:vk({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+r.r+","+r.g+","+r.b+","+r.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},v),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},v),{disableAlpha:f});return b.createElement("div",{style:E.picker,className:"sketch-picker "+S},b.createElement("div",{style:E.saturation},b.createElement(fu,{style:E.Saturation,hsl:u,hsv:a,onChange:l})),b.createElement("div",{style:E.controls,className:"flexbox-fix"},b.createElement("div",{style:E.sliders},b.createElement("div",{style:E.hue},b.createElement(so,{style:E.Hue,hsl:u,onChange:l})),b.createElement("div",{style:E.alpha},b.createElement(wf,{style:E.Alpha,rgb:r,hsl:u,renderers:p,onChange:l}))),b.createElement("div",{style:E.color},b.createElement(ao,null),b.createElement("div",{style:E.activeColor}))),b.createElement(gk,{rgb:r,hsl:u,hex:i,onChange:l,disableAlpha:f}),b.createElement(V1,{colors:h,onClick:l,onSwatchHover:c}))};ld.propTypes={disableAlpha:pe.bool,width:pe.oneOfType([pe.string,pe.number]),styles:pe.object},ld.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},an(ld);var Da=function(t){var n=t.hsl,r=t.offset,i=t.onClick,a=i===void 0?function(){}:i,u=t.active,l=t.first,c=t.last,f=je({default:{swatch:{height:"12px",background:"hsl("+n.h+", 50%, "+r*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:u,first:l,last:c}),h=function(m){return a({h:n.h,s:.5,l:r,source:"hsl"},m)};return b.createElement("div",{style:f.swatch,onClick:h})},bk=function(t){var n=t.onClick,r=t.hsl,i=je({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return b.createElement("div",{style:i.swatches},b.createElement("div",{style:i.swatch},b.createElement(Da,{hsl:r,offset:".80",active:Math.abs(r.l-.8)<a&&Math.abs(r.s-.5)<a,onClick:n,first:!0})),b.createElement("div",{style:i.swatch},b.createElement(Da,{hsl:r,offset:".65",active:Math.abs(r.l-.65)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Da,{hsl:r,offset:".50",active:Math.abs(r.l-.5)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Da,{hsl:r,offset:".35",active:Math.abs(r.l-.35)<a&&Math.abs(r.s-.5)<a,onClick:n})),b.createElement("div",{style:i.swatch},b.createElement(Da,{hsl:r,offset:".20",active:Math.abs(r.l-.2)<a&&Math.abs(r.s-.5)<a,onClick:n,last:!0})),b.createElement("div",{style:i.clear}))},yk=function(){var t=je({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return b.createElement("div",{style:t.picker})},cd=function(t){var n=t.hsl,r=t.onChange,i=t.pointer,a=t.styles,u=a===void 0?{}:a,l=t.className,c=l===void 0?"":l,f=je(on({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},u));return b.createElement("div",{style:f.wrap||{},className:"slider-picker "+c},b.createElement("div",{style:f.hue},b.createElement(so,{style:f.Hue,hsl:n,pointer:i,onChange:r})),b.createElement("div",{style:f.swatches},b.createElement(bk,{hsl:n,onClick:r})))};cd.propTypes={styles:pe.object},cd.defaultProps={pointer:yk,styles:{}},an(cd);var B1={};Object.defineProperty(B1,"__esModule",{value:!0});var k1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xk=b,j1=Ck(xk);function Ck(e){return e&&e.__esModule?e:{default:e}}function wk(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var bu=24,Sk=B1.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,r=e.width,i=r===void 0?bu:r,a=e.height,u=a===void 0?bu:a,l=e.style,c=l===void 0?{}:l,f=wk(e,["fill","width","height","style"]);return j1.default.createElement("svg",k1({viewBox:"0 0 "+bu+" "+bu,style:k1({fill:n,width:i,height:u},c)},f),j1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Ik=function(t){var n=t.color,r=t.onClick,i=r===void 0?function(){}:r,a=t.onSwatchHover,u=t.first,l=t.last,c=t.active,f=je({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:Xf(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:u,last:l,active:c,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return b.createElement(mi,{color:n,style:f.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+n}},b.createElement("div",{style:f.check},b.createElement(Sk,null)))},Ek=function(t){var n=t.onClick,r=t.onSwatchHover,i=t.group,a=t.active,u=je({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return b.createElement("div",{style:u.group},yi(i,function(l,c){return b.createElement(Ik,{key:l,color:l,active:l.toLowerCase()===a,first:c===0,last:c===i.length-1,onClick:n,onSwatchHover:r})}))},fd=function(t){var n=t.width,r=t.height,i=t.onChange,a=t.onSwatchHover,u=t.colors,l=t.hex,c=t.styles,f=c===void 0?{}:c,h=t.className,p=h===void 0?"":h,m=je(on({default:{picker:{width:n,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),v=function(S,E){return i({hex:S,source:"hex"},E)};return b.createElement("div",{style:m.picker,className:"swatches-picker "+p},b.createElement(Fa,null,b.createElement("div",{style:m.overflow},b.createElement("div",{style:m.body},yi(u,function(C){return b.createElement(Ek,{key:C.toString(),group:C,active:l,onClick:v,onSwatchHover:a})}),b.createElement("div",{style:m.clear})))))};fd.propTypes={width:pe.oneOfType([pe.string,pe.number]),height:pe.oneOfType([pe.string,pe.number]),colors:pe.arrayOf(pe.arrayOf(pe.string)),styles:pe.object},fd.defaultProps={width:320,height:240,colors:[[lo[900],lo[700],lo[500],lo[300],lo[100]],[co[900],co[700],co[500],co[300],co[100]],[fo[900],fo[700],fo[500],fo[300],fo[100]],[ho[900],ho[700],ho[500],ho[300],ho[100]],[po[900],po[700],po[500],po[300],po[100]],[go[900],go[700],go[500],go[300],go[100]],[mo[900],mo[700],mo[500],mo[300],mo[100]],[vo[900],vo[700],vo[500],vo[300],vo[100]],[bo[900],bo[700],bo[500],bo[300],bo[100]],["#194D33",La[700],La[500],La[300],La[100]],[yo[900],yo[700],yo[500],yo[300],yo[100]],[xo[900],xo[700],xo[500],xo[300],xo[100]],[Co[900],Co[700],Co[500],Co[300],Co[100]],[wo[900],wo[700],wo[500],wo[300],wo[100]],[So[900],So[700],So[500],So[300],So[100]],[Io[900],Io[700],Io[500],Io[300],Io[100]],[Eo[900],Eo[700],Eo[500],Eo[300],Eo[100]],[Ao[900],Ao[700],Ao[500],Ao[300],Ao[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},an(fd);var dd=function(t){var n=t.onChange,r=t.onSwatchHover,i=t.hex,a=t.colors,u=t.width,l=t.triangle,c=t.styles,f=c===void 0?{}:c,h=t.className,p=h===void 0?"":h,m=je(on({default:{card:{width:u,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),v=function(S,E){jr(S)&&n({hex:S,source:"hex"},E)};return b.createElement("div",{style:m.card,className:"twitter-picker "+p},b.createElement("div",{style:m.triangleShadow}),b.createElement("div",{style:m.triangle}),b.createElement("div",{style:m.body},yi(a,function(C,S){return b.createElement(mi,{key:S,color:C,hex:C,style:m.swatch,onClick:v,onHover:r,focusStyle:{boxShadow:"0 0 4px "+C}})}),b.createElement("div",{style:m.hash},"#"),b.createElement(rt,{label:null,style:{input:m.input},value:i.replace("#",""),onChange:v}),b.createElement("div",{style:m.clear})))};dd.propTypes={width:pe.oneOfType([pe.string,pe.number]),triangle:pe.oneOf(["hide","top-left","top-right"]),colors:pe.arrayOf(pe.string),styles:pe.object},dd.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},an(dd);var hd=function(t){var n=je({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return b.createElement("div",{style:n.picker})};hd.propTypes={hsl:pe.shape({h:pe.number,s:pe.number,l:pe.number,a:pe.number})},hd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var pd=function(t){var n=je({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return b.createElement("div",{style:n.picker})};pd.propTypes={hsl:pe.shape({h:pe.number,s:pe.number,l:pe.number,a:pe.number})},pd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ak=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,a=t.hex,u=t.hsv,l=function(v,C){if(v.hex)jr(v.hex)&&n({hex:v.hex,source:"hex"},C);else if(v.rgb){var S=v.rgb.split(",");zf(v.rgb,"rgb")&&n({r:S[0],g:S[1],b:S[2],a:1,source:"rgb"},C)}else if(v.hsv){var E=v.hsv.split(",");zf(v.hsv,"hsv")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),E[1]==1?E[1]=.01:E[2]==1&&(E[2]=.01),n({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsv"},C))}else if(v.hsl){var _=v.hsl.split(",");zf(v.hsl,"hsl")&&(_[2]=_[2].replace("%",""),_[1]=_[1].replace("%",""),_[0]=_[0].replace("°",""),p[1]==1?p[1]=.01:p[2]==1&&(p[2]=.01),n({h:Number(_[0]),s:Number(_[1]),v:Number(_[2]),source:"hsl"},C))}},c=je({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=r.r+", "+r.g+", "+r.b,h=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",p=Math.round(u.h)+"°, "+Math.round(u.s*100)+"%, "+Math.round(u.v*100)+"%";return b.createElement("div",{style:c.wrap,className:"flexbox-fix"},b.createElement("div",{style:c.fields},b.createElement("div",{style:c.double},b.createElement(rt,{style:{input:c.input,label:c.label},label:"hex",value:a,onChange:l})),b.createElement("div",{style:c.column},b.createElement("div",{style:c.single},b.createElement(rt,{style:{input:c.input2,label:c.label2},label:"rgb",value:f,onChange:l})),b.createElement("div",{style:c.single},b.createElement(rt,{style:{input:c.input2,label:c.label2},label:"hsv",value:p,onChange:l})),b.createElement("div",{style:c.single},b.createElement(rt,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:l})))))},gd=function(t){var n=t.width,r=t.onChange,i=t.rgb,a=t.hsl,u=t.hsv,l=t.hex,c=t.header,f=t.styles,h=f===void 0?{}:f,p=t.className,m=p===void 0?"":p,v=je(on({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return b.createElement("div",{style:v.picker,className:"google-picker "+m},b.createElement("div",{style:v.head},c),b.createElement("div",{style:v.swatch}),b.createElement("div",{style:v.saturation},b.createElement(fu,{hsl:a,hsv:u,pointer:hd,onChange:r})),b.createElement("div",{style:v.body},b.createElement("div",{style:v.controls,className:"flexbox-fix"},b.createElement("div",{style:v.hue},b.createElement(so,{style:v.Hue,hsl:a,radius:"4px",pointer:pd,onChange:r}))),b.createElement(Ak,{rgb:i,hsl:a,hex:l,hsv:u,onChange:r})))};gd.propTypes={width:pe.oneOfType([pe.string,pe.number]),styles:pe.object,header:pe.string},gd.defaultProps={width:652,styles:{},header:"Color picker"},an(gd);const G1=({color:e="#ff0000",disabled:t=!1,onChange:n=()=>{}})=>{const[r,i]=b.useState(e),a=u=>{t||(i(u.hex),n(u.hex))};return A.jsxs("div",{className:"flex items-end justify-between w-full gap-2 px-2 bottom-1 hue-container",children:[A.jsx("div",{className:"relative h-2 grow bottom-1",children:A.jsx(ok,{className:Je("h-3 w-full",{"saturate-0":t,"saturate-100":!t}),color:r,onChange:a})}),A.jsx("div",{className:"flex-1",children:A.jsx("input",{disabled:t,className:"w-full px-1 outline-none",value:r,onChange:u=>{i(u.target.value),n(u.target.value)}})}),A.jsx("div",{className:"flex-none",children:A.jsx("div",{style:{backgroundColor:r},className:`w-6 h-6 rounded-full shadow ${t?"saturate-0":"saturate-100"}`})})]})};function _k({open:e,children:t,close:n,size:r="2xl",scrollToTop:i=!0}){return A.jsx(js,{isOpen:e,close:n,scrollToTop:i,isDialog:!0,children:A.jsx("div",{className:"w-full h-full overflow-hidden",children:A.jsx(ks,{mode:"wait",children:e&&A.jsx(Ki.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:{type:"spring"},className:"flex items-center min-h-screen",children:A.jsx("div",{className:Je("flex-1 mx-auto",{"max-w-xs":r==="xs","max-w-sm":r==="sm","max-w-md":r==="md","max-w-lg":r==="lg","max-w-xl":r==="xl","max-w-2xl":r==="2xl","max-w-3xl":r==="3xl","max-w-4xl":r==="4xl","max-w-5xl":r==="5xl","max-w-6xl":r==="6xl","max-w-7xl":r==="7xl"}),onClick:a=>a.stopPropagation(),children:t})})})})})}function H1({title:e,data:t,disabledFilter:n}){const[r,i]=b.useState([]),[a,u]=b.useState(""),[l,c]=b.useState([]);b.useEffect(()=>{function E(){let _=t;a&&(_=_.filter(R=>a===""?!0:Object.values(R).some(L=>L==null?void 0:L.toString().toUpperCase().includes(a.toUpperCase())))),c(_)}E()},[t,a]);function f(E){const{checked:_}=E.target;if(!_){i([]);return}let R=l;n&&(R=R.filter(L=>!n(L))),i(R)}function h(E){i(_=>_.findIndex(L=>L.id===E)!==-1?_.filter(L=>L.id!==E):_)}function p(E){i(_=>_.findIndex(L=>L.id===E.id)===-1?[..._,E]:_)}function m(E){u(E.target.value)}const v=l?l.filter(E=>n?!n(E):!0):[],S=r.length===v.length&&r.length>0&&v.length>0;return{title:e,query:a,data:t||[],areAllSelected:S,selected:r,dataBox:l,select:p,unselect:h,setFilter:m,selectAll:f}}function Pk(e,t){return e.map(n=>n[t])}/*! *****************************************************************************
|
|
111
|
+
Copyright (c) Microsoft Corporation.
|
|
112
|
+
|
|
113
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
114
|
+
purpose with or without fee is hereby granted.
|
|
115
|
+
|
|
116
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
117
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
118
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
119
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
120
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
121
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
122
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
123
|
+
***************************************************************************** */var pr=function(){return pr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},pr.apply(this,arguments)};function W1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Tk={color:"#38ad48",enabled:!0,size:50,style:{}},Fk=function(e){return parseFloat(e.toString()).toString()===e.toString()?e+"px":e.toString()},Ok=function(e){var t=function(n){var r=n.color,i=n.enabled,a=n.size,u=n.style,l=W1(n,["color","enabled","size","style"]),c=pr(pr({},l),{style:pr({color:r,overflow:"visible",width:Fk(a)},u)});return i?b.createElement(e,pr({},c)):null};return t.defaultProps=Tk,t},Rk={speed:100,still:!1,thickness:100},Mk=pr(pr({},Rk),{secondaryColor:"rgba(0,0,0,0.44)"});function Lk(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Dk="@keyframes spinners-react-circular{0%{stroke-dashoffset:306}50%{stroke-dasharray:40,134}to{stroke-dasharray:1,174;stroke-dashoffset:132}}";Lk(Dk);var Z1=function(e){var t=e.secondaryColor,n=e.speed,r=e.still,i=e.thickness,a=W1(e,["secondaryColor","speed","still","thickness"]),u=4*(i/100),l=r?{}:{animation:"spinners-react-circular "+140/n+"s linear infinite"};return b.createElement("svg",pr({fill:"none"},a,{viewBox:"0 0 66 66"}),b.createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:t,strokeWidth:u}),b.createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"1, 174",strokeDashoffset:"306",strokeLinecap:"round",strokeWidth:u,style:l}))};Z1.defaultProps=Mk;var $k=Ok(Z1);const yu=({children:e="Carregando...",color:t="rgba(0, 147, 178, 1)",secondaryColor:n="rgba(0, 0, 0, 0.44)",silent:r=!1,size:i=100,thickness:a=480,speed:u=100})=>A.jsxs("div",{className:"flex flex-col justify-center gap-2",children:[A.jsx("div",{className:"mx-auto",children:A.jsx($k,{size:i,thickness:a,speed:u,color:t,secondaryColor:n})}),!r&&A.jsx("span",{className:"text-xl font-semibold text-center text-brand-primary",children:e})]});function X1({title:e,placeHolderSearchField:t,onChangeSearchField:n,headers:r,listOrder:i,labels:a,onChangeCheckBoxAll:u,checkedCheckBoxAll:l,list:c,isLoading:f}){return A.jsxs("div",{className:"flex flex-col justify-between flex-1 gap-2 p-4 border shadow-md rounded-xl border-stone-200",children:[A.jsx("h1",{className:"text-lg font-bold text-primary-500",children:e}),A.jsxs("div",{className:"space-y-2",children:[A.jsxs("div",{className:"flex items-center gap-2 px-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b-2 focus-within:border-primary-500 focus-within:ring-primary-500 dark:bg-gray-900",children:[A.jsx(Jl,{className:"w-5 h-5 text-gray-500"}),A.jsx("input",{type:"text",placeholder:t,className:"block w-full text-gray-500 bg-transparent border-none appearance-none focus:border-primary-500 focus:ring-0",onChange:n})]}),A.jsx("div",{id:"table-fix-head",className:"flex-1 overflow-y-auto h-80",children:A.jsxs("table",{className:"w-full border-collapse rounded-2xl",children:[A.jsx("thead",{className:"text-left border",children:A.jsxs("tr",{className:"bg-gray-100 sticky top-0 p-3 text-sm font-bold text-primary-500 dark:bg-gray-900",children:[r.map(({header:h,acessor:p})=>A.jsx("th",{children:A.jsx("div",{className:"flex items-center gap-2 p-2",children:h})},`table-header-${i}-list-${p}`)),A.jsx("th",{className:"flex items-center justify-center w-full h-10",children:A.jsx("input",{className:"w-5 h-5 rounded-md cursor-pointer border-primary-500 border-1 text-primary-500 focus:ring-0",type:"checkbox",name:`checkAllRowsBox${i}`,id:`checkAllRowsBox${i}`,onChange:u,checked:l})})]})}),A.jsxs("tbody",{children:[f&&A.jsx("tr",{children:A.jsx("td",{colSpan:r.length+1,rowSpan:1,children:A.jsx("div",{className:"py-2",children:A.jsx(yu,{size:36,children:A.jsx("p",{className:"text-xs",children:a.processing})})})})}),!f&&(c==null?void 0:c.data.length)===0&&A.jsx("tr",{children:A.jsx("td",{className:"w-full h-10 p-3",colSpan:r.length+1,rowSpan:1,children:A.jsx("p",{className:"text-sm text-center text-gray-500",children:a.noRecordFound})})}),!f&&c.dataBox.filter(h=>c.query===""?!0:Object.values(h).some(p=>p==null?void 0:p.toString().toUpperCase().includes(c.query.toUpperCase()))).map(h=>{const p=Pk(c.selected,"id"),m=p.includes(h.id),v=()=>{if(m){c.unselect(h.id);return}c.select(h)};return A.jsxs("tr",{className:`${h!=null&&h.isDisabled?"bg-stone-200 border-stone-300 cursor-not-allowed":"border-stone-200"} border`,children:[r.map(({acessor:C})=>A.jsxs("td",{className:"h-10 p-3",children:[A.jsx("label",{htmlFor:h.id}),A.jsx("p",{className:`text-sm text-gray-500 ${(h==null?void 0:h.isDisabled)&&"bg-stone-200"}`,children:h[C]})]},`table-tbody-${i}-list-${C}`)),A.jsx("td",{className:"flex items-center justify-center w-full h-10",children:A.jsx("input",{className:"w-5 h-5 rounded-md disabled:border-stone-400 disabled:cursor-not-allowed disabled:bg-stone-300 border-primary-500 border-1 text-primary-500 focus:ring-0",disabled:h==null?void 0:h.isDisabled,type:"checkbox",name:h.id,id:h.id,onChange:v,checked:p.includes(h.id)})})]},`td-${i}-${h.id}`)})]})]})})]}),A.jsx("div",{children:A.jsxs("div",{className:"flex flex-col w-full",children:[A.jsxs("p",{className:"text-sm",children:[A.jsxs("span",{className:"font-bold text-primary-500",children:[a.selected,": "]}),A.jsx("span",{className:"dark:text-white",children:c.selected.length})]}),A.jsxs("p",{className:"text-sm",children:[A.jsxs("span",{className:"font-bold text-primary-500",children:[a.all,": "]}),A.jsx("span",{className:"dark:text-white",children:c.dataBox.length})]})]})})]})}function Nk({headers:e,titleOne:t,titleTwo:n,dataOne:r,dataTwo:i,isLoadingOne:a,isLoadingTwo:u,labels:l,placeHolderSearchField:c,onAssociation:f,onDissociation:h}){const p=H1({title:t,data:r}),m=H1({title:n,data:i});function v(){f(p.selected),p.selected.forEach(S=>{p.unselect(S.id)})}function C(){h(m.selected),m.selected.forEach(S=>{m.unselect(S.id)})}return A.jsxs("div",{className:"flex gap-7",children:[A.jsx(X1,{title:t,placeHolderSearchField:c,onChangeSearchField:p.setFilter,headers:e,labels:l,checkedCheckBoxAll:p.areAllSelected,onChangeCheckBoxAll:p.selectAll,isLoading:a,list:p,listOrder:"first"},1),A.jsxs("div",{className:"flex flex-col items-center justify-center space-y-1 w-9",children:[A.jsx(qi,{type:"button",variant:"primary",onClick:v,disabled:p.selected.length===0,children:A.jsx(Yl,{className:"w-6 "})}),A.jsx(qi,{type:"button",variant:"primary",onClick:C,disabled:m.selected.length===0,children:A.jsx(Ul,{className:"w-6"})})]}),A.jsx(X1,{title:n,placeHolderSearchField:c,onChangeSearchField:m.setFilter,headers:e,labels:l,checkedCheckBoxAll:m.areAllSelected,onChangeCheckBoxAll:m.selectAll,isLoading:u,list:m,listOrder:"second"},2)]})}const md=({children:e,...t})=>A.jsx("span",{className:"block min-h-full pt-1 pl-1 text-xs font-semibold text-left text-brand-danger",...t,children:e}),Vk=({children:e,...t})=>A.jsx("h1",{className:"mb-4 text-2xl font-bold text-left text-brand-primary",...t,children:e}),vd=({children:e,...t})=>A.jsx("span",{className:"block min-h-full pt-1 text-xs font-semibold text-left text-primary-500 dark:text-white",...t,children:e});var bd={exports:{}},yd,z1;function Bk(){if(z1)return yd;z1=1;var e=function(t,n,r,i,a,u,l,c){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var f;if(n===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[r,i,a,u,l,c],p=0;f=new Error(n.replace(/%s/g,function(){return h[p++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};return yd=e,yd}var xd,U1;function kk(){if(U1)return xd;U1=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(i,a){var u=arguments.length;a=new Array(u>1?u-1:0);for(var l=1;l<u;l++)a[l-1]=arguments[l];var c=0,f="Warning: "+i.replace(/%s/g,function(){return a[c++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};t=function(r,i,a){var u=arguments.length;a=new Array(u>2?u-2:0);for(var l=2;l<u;l++)a[l-2]=arguments[l];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(a))}}return xd=t,xd}var Cd,Y1;function jk(){if(Y1)return Cd;Y1=1;function e(F){return F&&typeof F=="object"&&"default"in F?F.default:F}var t=e(b),n=Wl,r=e(Bk()),i=e(kk());function a(F,T){for(var M=Object.getOwnPropertyNames(T),O=0;O<M.length;O++){var y=M[O],H=Object.getOwnPropertyDescriptor(T,y);H&&H.configurable&&F[y]===void 0&&Object.defineProperty(F,y,H)}return F}function u(){return u=Object.assign||function(F){for(var T=1;T<arguments.length;T++){var M=arguments[T];for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&(F[O]=M[O])}return F},u.apply(this,arguments)}function l(F,T){F.prototype=Object.create(T.prototype),F.prototype.constructor=F,a(F,T)}function c(F,T){if(F==null)return{};var M={},O=Object.keys(F),y,H;for(H=0;H<O.length;H++)y=O[H],!(T.indexOf(y)>=0)&&(M[y]=F[y]);return M}function f(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function h(F,T,M){if("selectionStart"in F&&"selectionEnd"in F)F.selectionStart=T,F.selectionEnd=M;else{var O=F.createTextRange();O.collapse(!0),O.moveStart("character",T),O.moveEnd("character",M-T),O.select()}}function p(F){var T=0,M=0;if("selectionStart"in F&&"selectionEnd"in F)T=F.selectionStart,M=F.selectionEnd;else{var O=document.selection.createRange();O.parentElement()===F&&(T=-O.moveStart("character",-F.value.length),M=-O.moveEnd("character",-F.value.length))}return{start:T,end:M,length:M-T}}var m={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},v="_";function C(F,T,M){var O="",y="",H=null,ne=[];if(T===void 0&&(T=v),M==null&&(M=m),!F||typeof F!="string")return{maskChar:T,formatChars:M,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var ae=!1;return F.split("").forEach(function(z){!ae&&z==="\\"?ae=!0:(ae||!M[z]?(ne.push(O.length),O.length===ne.length-1&&(y+=z)):H=O.length+1,O+=z,ae=!1)}),{maskChar:T,formatChars:M,prefix:y,mask:O,lastEditablePosition:H,permanents:ne}}function S(F,T){return F.permanents.indexOf(T)!==-1}function E(F,T,M){var O=F.mask,y=F.formatChars;if(!M)return!1;if(S(F,T))return O[T]===M;var H=O[T],ne=y[H];return new RegExp(ne).test(M)}function _(F,T){return T.split("").every(function(M,O){return S(F,O)||!E(F,O,M)})}function R(F,T){var M=F.maskChar,O=F.prefix;if(!M){for(;T.length>O.length&&S(F,T.length-1);)T=T.slice(0,T.length-1);return T.length}for(var y=O.length,H=T.length;H>=O.length;H--){var ne=T[H],ae=!S(F,H)&&E(F,H,ne);if(ae){y=H+1;break}}return y}function L(F,T){return R(F,T)===F.mask.length}function $(F,T){var M=F.maskChar,O=F.mask,y=F.prefix;if(!M){for(T=U(F,"",T,0),T.length<y.length&&(T=y);T.length<O.length&&S(F,T.length);)T+=O[T.length];return T}if(T){var H=$(F,"");return U(F,H,T,0)}for(var ne=0;ne<O.length;ne++)S(F,ne)?T+=O[ne]:T+=M;return T}function V(F,T,M,O){var y=M+O,H=F.maskChar,ne=F.mask,ae=F.prefix,z=T.split("");if(!H){for(var Y=y;Y<z.length;Y++)S(F,Y)&&(z[Y]="");return M=Math.max(ae.length,M),z.splice(M,y-M),T=z.join(""),$(F,T)}return z.map(function(G,q){return q<M||q>=y?G:S(F,q)?ne[q]:H}).join("")}function U(F,T,M,O){var y=F.mask,H=F.maskChar,ne=F.prefix,ae=M.split(""),z=L(F,T),Y=function(ue,J){return!S(F,ue)||J===y[ue]},G=function(ue,J){return!H||!S(F,J)||ue!==H};return!H&&O>T.length&&(T+=y.slice(T.length,O)),ae.every(function(q){for(;!Y(O,q);){if(O>=T.length&&(T+=y[O]),!G(q,O))return!0;if(O++,O>=y.length)return!1}var ue=E(F,O,q)||q===H;return ue?(O<T.length?H||z||O<ne.length?T=T.slice(0,O)+q+T.slice(O+1):(T=T.slice(0,O)+q+T.slice(O),T=$(F,T)):H||(T+=q),O++,O<y.length):!0}),T}function X(F,T,M,O){var y=F.mask,H=F.maskChar,ne=M.split(""),ae=O,z=function(G,q){return!S(F,G)||q===y[G]};return ne.every(function(Y){for(;!z(O,Y);)if(O++,O>=y.length)return!1;var G=E(F,O,Y)||Y===H;return G&&O++,O<y.length}),O-ae}function te(F,T){for(var M=T;M>=0;--M)if(!S(F,M))return M;return null}function de(F,T){for(var M=F.mask,O=T;O<M.length;++O)if(!S(F,O))return O;return null}function Pe(F){return!F&&F!==0?"":F+""}function ke(F,T,M,O,y){var H=F.mask,ne=F.prefix,ae=F.lastEditablePosition,z=T,Y="",G=0,q=0,ue=Math.min(y.start,M.start);if(M.end>y.start?(Y=z.slice(y.start,M.end),G=X(F,O,Y,ue),G?q=y.length:q=0):z.length<O.length&&(q=O.length-z.length),z=O,q){if(q===1&&!y.length){var J=y.start===M.start;ue=J?de(F,M.start):te(F,M.start)}z=V(F,z,ue,q)}return z=U(F,z,Y,ue),ue=ue+G,ue>=H.length?ue=H.length:ue<ne.length&&!G?ue=ne.length:ue>=ne.length&&ue<ae&&G&&(ue=de(F,ue)),z=$(F,z),Y||(Y=null),{value:z,enteredString:Y,selection:{start:ue,end:ue}}}function He(){var F=new RegExp("windows","i"),T=new RegExp("phone","i"),M=navigator.userAgent;return F.test(M)&&T.test(M)}function ee(F){return typeof F=="function"}function ve(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function ye(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function Ee(F){var T=!!ye(),M;return T?M=ve():M=function(){return setTimeout(F,1e3/60)},M(F)}function Ve(F){var T=ye()||clearTimeout;T(F)}var Ke=function(F){l(T,F);function T(O){var y;y=F.call(this,O)||this,y.focused=!1,y.mounted=!1,y.previousSelection=null,y.selectionDeferId=null,y.saveSelectionLoopDeferId=null,y.saveSelectionLoop=function(){y.previousSelection=y.getSelection(),y.saveSelectionLoopDeferId=Ee(y.saveSelectionLoop)},y.runSaveSelectionLoop=function(){y.saveSelectionLoopDeferId===null&&y.saveSelectionLoop()},y.stopSaveSelectionLoop=function(){y.saveSelectionLoopDeferId!==null&&(Ve(y.saveSelectionLoopDeferId),y.saveSelectionLoopDeferId=null,y.previousSelection=null)},y.getInputDOMNode=function(){if(!y.mounted)return null;var Q=n.findDOMNode(f(f(y))),he=typeof window<"u"&&Q instanceof window.Element;if(Q&&!he)return null;if(Q.nodeName!=="INPUT"&&(Q=Q.querySelector("input")),!Q)throw new Error("react-input-mask: inputComponent doesn't contain input node");return Q},y.getInputValue=function(){var Q=y.getInputDOMNode();return Q?Q.value:null},y.setInputValue=function(Q){var he=y.getInputDOMNode();he&&(y.value=Q,he.value=Q)},y.setCursorToEnd=function(){var Q=R(y.maskOptions,y.value),he=de(y.maskOptions,Q);he!==null&&y.setCursorPosition(he)},y.setSelection=function(Q,he,Se){Se===void 0&&(Se={});var xe=y.getInputDOMNode(),Be=y.isFocused();if(!(!xe||!Be)){var We=Se,Qe=We.deferred;Qe||h(xe,Q,he),y.selectionDeferId!==null&&Ve(y.selectionDeferId),y.selectionDeferId=Ee(function(){y.selectionDeferId=null,h(xe,Q,he)}),y.previousSelection={start:Q,end:he,length:Math.abs(he-Q)}}},y.getSelection=function(){var Q=y.getInputDOMNode();return p(Q)},y.getCursorPosition=function(){return y.getSelection().start},y.setCursorPosition=function(Q){y.setSelection(Q,Q)},y.isFocused=function(){return y.focused},y.getBeforeMaskedValueChangeConfig=function(){var Q=y.maskOptions,he=Q.mask,Se=Q.maskChar,xe=Q.permanents,Be=Q.formatChars,We=y.props.alwaysShowMask;return{mask:he,maskChar:Se,permanents:xe,alwaysShowMask:!!We,formatChars:Be}},y.isInputAutofilled=function(Q,he,Se,xe){var Be=y.getInputDOMNode();try{if(Be.matches(":-webkit-autofill"))return!0}catch{}return y.focused?xe.end<Se.length&&he.end===Q.length:!0},y.onChange=function(Q){var he=f(f(y)),Se=he.beforePasteState,xe=f(f(y)),Be=xe.previousSelection,We=y.props.beforeMaskedValueChange,Qe=y.getInputValue(),ot=y.value,st=y.getSelection();y.isInputAutofilled(Qe,st,ot,Be)&&(ot=$(y.maskOptions,""),Be={start:0,end:0,length:0}),Se&&(Be=Se.selection,ot=Se.value,st={start:Be.start+Qe.length,end:Be.start+Qe.length,length:0},Qe=ot.slice(0,Be.start)+Qe+ot.slice(Be.end),y.beforePasteState=null);var It=ke(y.maskOptions,Qe,st,ot,Be),Yt=It.enteredString,Mt=It.selection,Gn=It.value;if(ee(We)){var Vt=We({value:Gn,selection:Mt},{value:ot,selection:Be},Yt,y.getBeforeMaskedValueChangeConfig());Gn=Vt.value,Mt=Vt.selection}y.setInputValue(Gn),ee(y.props.onChange)&&y.props.onChange(Q),y.isWindowsPhoneBrowser?y.setSelection(Mt.start,Mt.end,{deferred:!0}):y.setSelection(Mt.start,Mt.end)},y.onFocus=function(Q){var he=y.props.beforeMaskedValueChange,Se=y.maskOptions,xe=Se.mask,Be=Se.prefix;if(y.focused=!0,y.mounted=!0,xe){if(y.value)R(y.maskOptions,y.value)<y.maskOptions.mask.length&&y.setCursorToEnd();else{var We=$(y.maskOptions,Be),Qe=$(y.maskOptions,We),ot=R(y.maskOptions,Qe),st=de(y.maskOptions,ot),It={start:st,end:st};if(ee(he)){var Yt=he({value:Qe,selection:It},{value:y.value,selection:null},null,y.getBeforeMaskedValueChangeConfig());Qe=Yt.value,It=Yt.selection}var Mt=Qe!==y.getInputValue();Mt&&y.setInputValue(Qe),Mt&&ee(y.props.onChange)&&y.props.onChange(Q),y.setSelection(It.start,It.end)}y.runSaveSelectionLoop()}ee(y.props.onFocus)&&y.props.onFocus(Q)},y.onBlur=function(Q){var he=y.props.beforeMaskedValueChange,Se=y.maskOptions.mask;if(y.stopSaveSelectionLoop(),y.focused=!1,Se&&!y.props.alwaysShowMask&&_(y.maskOptions,y.value)){var xe="";if(ee(he)){var Be=he({value:xe,selection:null},{value:y.value,selection:y.previousSelection},null,y.getBeforeMaskedValueChangeConfig());xe=Be.value}var We=xe!==y.getInputValue();We&&y.setInputValue(xe),We&&ee(y.props.onChange)&&y.props.onChange(Q)}ee(y.props.onBlur)&&y.props.onBlur(Q)},y.onMouseDown=function(Q){if(!y.focused&&document.addEventListener){y.mouseDownX=Q.clientX,y.mouseDownY=Q.clientY,y.mouseDownTime=new Date().getTime();var he=function Se(xe){if(document.removeEventListener("mouseup",Se),!!y.focused){var Be=Math.abs(xe.clientX-y.mouseDownX),We=Math.abs(xe.clientY-y.mouseDownY),Qe=Math.max(Be,We),ot=new Date().getTime()-y.mouseDownTime;(Qe<=10&&ot<=200||Qe<=5&&ot<=300)&&y.setCursorToEnd()}};document.addEventListener("mouseup",he)}ee(y.props.onMouseDown)&&y.props.onMouseDown(Q)},y.onPaste=function(Q){ee(y.props.onPaste)&&y.props.onPaste(Q),Q.defaultPrevented||(y.beforePasteState={value:y.getInputValue(),selection:y.getSelection()},y.setInputValue(""))},y.handleRef=function(Q){y.props.children==null&&ee(y.props.inputRef)&&y.props.inputRef(Q)};var H=O.mask,ne=O.maskChar,ae=O.formatChars,z=O.alwaysShowMask,Y=O.beforeMaskedValueChange,G=O.defaultValue,q=O.value;y.maskOptions=C(H,ne,ae),G==null&&(G=""),q==null&&(q=G);var ue=Pe(q);if(y.maskOptions.mask&&(z||ue)&&(ue=$(y.maskOptions,ue),ee(Y))){var J=O.value;O.value==null&&(J=G),J=Pe(J);var le=Y({value:ue,selection:null},{value:J,selection:null},null,y.getBeforeMaskedValueChangeConfig());ue=le.value}return y.value=ue,y}var M=T.prototype;return M.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=He(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},M.componentDidUpdate=function(){var y=this.previousSelection,H=this.props,ne=H.beforeMaskedValueChange,ae=H.alwaysShowMask,z=H.mask,Y=H.maskChar,G=H.formatChars,q=this.maskOptions,ue=ae||this.isFocused(),J=this.props.value!=null,le=J?Pe(this.props.value):this.value,Q=y?y.start:null;if(this.maskOptions=C(z,Y,G),this.maskOptions.mask)!q.mask&&this.isFocused()&&this.runSaveSelectionLoop();else{q.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate());return}var he=this.maskOptions.mask&&this.maskOptions.mask!==q.mask;if(!q.mask&&!J&&(le=this.getInputValue()),(he||this.maskOptions.mask&&(le||ue))&&(le=$(this.maskOptions,le)),he){var Se=R(this.maskOptions,le);(Q===null||Se<Q)&&(L(this.maskOptions,le)?Q=Se:Q=de(this.maskOptions,Se))}this.maskOptions.mask&&_(this.maskOptions,le)&&!ue&&(!J||!this.props.value)&&(le="");var xe={start:Q,end:Q};if(ee(ne)){var Be=ne({value:le,selection:xe},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());le=Be.value,xe=Be.selection}this.value=le;var We=this.getInputValue()!==this.value;We?(this.setInputValue(this.value),this.forceUpdate()):he&&this.forceUpdate();var Qe=!1;xe.start!=null&&xe.end!=null&&(Qe=!y||y.start!==xe.start||y.end!==xe.end),(Qe||We)&&this.setSelection(xe.start,xe.end)},M.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&Ve(this.selectionDeferId),this.stopSaveSelectionLoop()},M.render=function(){var y=this.props,H=y.mask;y.alwaysShowMask;var ne=y.maskChar,ae=y.formatChars,z=y.inputRef;y.beforeMaskedValueChange;var Y=y.children,G=c(y,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]),q;if(process.env.NODE_ENV!=="production"&&i(!G.maxLength||!C(H,ne,ae).mask,"react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."),Y){ee(Y)||(process.env.NODE_ENV!=="production"?r(!1,"react-input-mask: children must be a function"):r(!1));var ue=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],J=u({},G);ue.forEach(function(he){return delete J[he]}),q=Y(J);var le=ue.filter(function(he){return q.props[he]!=null&&q.props[he]!==G[he]});le.length&&(process.env.NODE_ENV!=="production"?r(!1,"react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: "+le.join(", ")):r(!1)),process.env.NODE_ENV!=="production"&&i(!z,"react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead")}else q=t.createElement("input",u({ref:this.handleRef},G));var Q={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(!G.disabled&&!G.readOnly&&(Q.onChange=this.onChange,Q.onPaste=this.onPaste,Q.onMouseDown=this.onMouseDown),G.value!=null&&(Q.value=this.value)),q=t.cloneElement(q,Q),q},T}(t.Component);return Cd=Ke,Cd}var wd,J1;function Gk(){if(J1)return wd;J1=1;function e(F){return F&&typeof F=="object"&&"default"in F?F.default:F}var t=e(b),n=Wl;function r(F,T){for(var M=Object.getOwnPropertyNames(T),O=0;O<M.length;O++){var y=M[O],H=Object.getOwnPropertyDescriptor(T,y);H&&H.configurable&&F[y]===void 0&&Object.defineProperty(F,y,H)}return F}function i(){return(i=Object.assign||function(F){for(var T=1;T<arguments.length;T++){var M=arguments[T];for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&(F[O]=M[O])}return F}).apply(this,arguments)}function a(F,T){F.prototype=Object.create(T.prototype),r(F.prototype.constructor=F,T)}function u(F,T){if(F==null)return{};var M,O,y={},H=Object.keys(F);for(O=0;O<H.length;O++)M=H[O],0<=T.indexOf(M)||(y[M]=F[M]);return y}function l(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}var c=function(F,T,M,O,y,H,ne,ae){if(!F){var z;if(T===void 0)z=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var Y=[M,O,y,H,ne,ae],G=0;(z=new Error(T.replace(/%s/g,function(){return Y[G++]}))).name="Invariant Violation"}throw z.framesToPop=1,z}},f=c;function h(F,T,M){if("selectionStart"in F&&"selectionEnd"in F)F.selectionStart=T,F.selectionEnd=M;else{var O=F.createTextRange();O.collapse(!0),O.moveStart("character",T),O.moveEnd("character",M-T),O.select()}}function p(F){var T=0,M=0;if("selectionStart"in F&&"selectionEnd"in F)T=F.selectionStart,M=F.selectionEnd;else{var O=document.selection.createRange();O.parentElement()===F&&(T=-O.moveStart("character",-F.value.length),M=-O.moveEnd("character",-F.value.length))}return{start:T,end:M,length:M-T}}var m={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},v="_";function C(F,T,M){var O="",y="",H=null,ne=[];if(T===void 0&&(T=v),M==null&&(M=m),!F||typeof F!="string")return{maskChar:T,formatChars:M,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var ae=!1;return F.split("").forEach(function(z){ae=!ae&&z==="\\"||(ae||!M[z]?(ne.push(O.length),O.length===ne.length-1&&(y+=z)):H=O.length+1,O+=z,!1)}),{maskChar:T,formatChars:M,prefix:y,mask:O,lastEditablePosition:H,permanents:ne}}function S(F,T){return F.permanents.indexOf(T)!==-1}function E(F,T,M){var O=F.mask,y=F.formatChars;if(!M)return!1;if(S(F,T))return O[T]===M;var H=y[O[T]];return new RegExp(H).test(M)}function _(F,T){return T.split("").every(function(M,O){return S(F,O)||!E(F,O,M)})}function R(F,T){var M=F.maskChar,O=F.prefix;if(!M){for(;T.length>O.length&&S(F,T.length-1);)T=T.slice(0,T.length-1);return T.length}for(var y=O.length,H=T.length;H>=O.length;H--){var ne=T[H];if(!S(F,H)&&E(F,H,ne)){y=H+1;break}}return y}function L(F,T){return R(F,T)===F.mask.length}function $(F,T){var M=F.maskChar,O=F.mask,y=F.prefix;if(!M){for((T=U(F,"",T,0)).length<y.length&&(T=y);T.length<O.length&&S(F,T.length);)T+=O[T.length];return T}if(T)return U(F,$(F,""),T,0);for(var H=0;H<O.length;H++)S(F,H)?T+=O[H]:T+=M;return T}function V(F,T,M,O){var y=M+O,H=F.maskChar,ne=F.mask,ae=F.prefix,z=T.split("");if(H)return z.map(function(G,q){return q<M||y<=q?G:S(F,q)?ne[q]:H}).join("");for(var Y=y;Y<z.length;Y++)S(F,Y)&&(z[Y]="");return M=Math.max(ae.length,M),z.splice(M,y-M),T=z.join(""),$(F,T)}function U(F,T,M,O){var y=F.mask,H=F.maskChar,ne=F.prefix,ae=M.split(""),z=L(F,T);return!H&&O>T.length&&(T+=y.slice(T.length,O)),ae.every(function(Y){for(;J=Y,S(F,ue=O)&&J!==y[ue];){if(O>=T.length&&(T+=y[O]),G=Y,q=O,H&&S(F,q)&&G===H)return!0;if(++O>=y.length)return!1}var G,q,ue,J;return!E(F,O,Y)&&Y!==H||(O<T.length?T=H||z||O<ne.length?T.slice(0,O)+Y+T.slice(O+1):(T=T.slice(0,O)+Y+T.slice(O),$(F,T)):H||(T+=Y),++O<y.length)}),T}function X(F,T,M,O){var y=F.mask,H=F.maskChar,ne=M.split(""),ae=O;return ne.every(function(z){for(;G=z,S(F,Y=O)&&G!==y[Y];)if(++O>=y.length)return!1;var Y,G;return(E(F,O,z)||z===H)&&O++,O<y.length}),O-ae}function te(F,T){for(var M=T;0<=M;--M)if(!S(F,M))return M;return null}function de(F,T){for(var M=F.mask,O=T;O<M.length;++O)if(!S(F,O))return O;return null}function Pe(F){return F||F===0?F+"":""}function ke(F,T,M,O,y){var H=F.mask,ne=F.prefix,ae=F.lastEditablePosition,z=T,Y="",G=0,q=0,ue=Math.min(y.start,M.start);return M.end>y.start?q=(G=X(F,O,Y=z.slice(y.start,M.end),ue))?y.length:0:z.length<O.length&&(q=O.length-z.length),z=O,q&&(q===1&&!y.length&&(ue=y.start===M.start?de(F,M.start):te(F,M.start)),z=V(F,z,ue,q)),z=U(F,z,Y,ue),(ue+=G)>=H.length?ue=H.length:ue<ne.length&&!G?ue=ne.length:ue>=ne.length&&ue<ae&&G&&(ue=de(F,ue)),Y||(Y=null),{value:z=$(F,z),enteredString:Y,selection:{start:ue,end:ue}}}function He(){var F=new RegExp("windows","i"),T=new RegExp("phone","i"),M=navigator.userAgent;return F.test(M)&&T.test(M)}function ee(F){return typeof F=="function"}function ve(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function ye(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function Ee(F){return(ye()?ve():function(){return setTimeout(F,1e3/60)})(F)}function Ve(F){(ye()||clearTimeout)(F)}var Ke=function(F){function T(O){var y=F.call(this,O)||this;y.focused=!1,y.mounted=!1,y.previousSelection=null,y.selectionDeferId=null,y.saveSelectionLoopDeferId=null,y.saveSelectionLoop=function(){y.previousSelection=y.getSelection(),y.saveSelectionLoopDeferId=Ee(y.saveSelectionLoop)},y.runSaveSelectionLoop=function(){y.saveSelectionLoopDeferId===null&&y.saveSelectionLoop()},y.stopSaveSelectionLoop=function(){y.saveSelectionLoopDeferId!==null&&(Ve(y.saveSelectionLoopDeferId),y.saveSelectionLoopDeferId=null,y.previousSelection=null)},y.getInputDOMNode=function(){if(!y.mounted)return null;var le=n.findDOMNode(l(l(y))),Q=typeof window<"u"&&le instanceof window.Element;if(le&&!Q)return null;if(le.nodeName!=="INPUT"&&(le=le.querySelector("input")),!le)throw new Error("react-input-mask: inputComponent doesn't contain input node");return le},y.getInputValue=function(){var le=y.getInputDOMNode();return le?le.value:null},y.setInputValue=function(le){var Q=y.getInputDOMNode();Q&&(y.value=le,Q.value=le)},y.setCursorToEnd=function(){var le=R(y.maskOptions,y.value),Q=de(y.maskOptions,le);Q!==null&&y.setCursorPosition(Q)},y.setSelection=function(le,Q,he){he===void 0&&(he={});var Se=y.getInputDOMNode(),xe=y.isFocused();Se&&xe&&(he.deferred||h(Se,le,Q),y.selectionDeferId!==null&&Ve(y.selectionDeferId),y.selectionDeferId=Ee(function(){y.selectionDeferId=null,h(Se,le,Q)}),y.previousSelection={start:le,end:Q,length:Math.abs(Q-le)})},y.getSelection=function(){return p(y.getInputDOMNode())},y.getCursorPosition=function(){return y.getSelection().start},y.setCursorPosition=function(le){y.setSelection(le,le)},y.isFocused=function(){return y.focused},y.getBeforeMaskedValueChangeConfig=function(){var le=y.maskOptions,Q=le.mask,he=le.maskChar,Se=le.permanents,xe=le.formatChars;return{mask:Q,maskChar:he,permanents:Se,alwaysShowMask:!!y.props.alwaysShowMask,formatChars:xe}},y.isInputAutofilled=function(le,Q,he,Se){var xe=y.getInputDOMNode();try{if(xe.matches(":-webkit-autofill"))return!0}catch{}return!y.focused||Se.end<he.length&&Q.end===le.length},y.onChange=function(le){var Q=l(l(y)).beforePasteState,he=l(l(y)).previousSelection,Se=y.props.beforeMaskedValueChange,xe=y.getInputValue(),Be=y.value,We=y.getSelection();y.isInputAutofilled(xe,We,Be,he)&&(Be=$(y.maskOptions,""),he={start:0,end:0,length:0}),Q&&(he=Q.selection,Be=Q.value,We={start:he.start+xe.length,end:he.start+xe.length,length:0},xe=Be.slice(0,he.start)+xe+Be.slice(he.end),y.beforePasteState=null);var Qe=ke(y.maskOptions,xe,We,Be,he),ot=Qe.enteredString,st=Qe.selection,It=Qe.value;if(ee(Se)){var Yt=Se({value:It,selection:st},{value:Be,selection:he},ot,y.getBeforeMaskedValueChangeConfig());It=Yt.value,st=Yt.selection}y.setInputValue(It),ee(y.props.onChange)&&y.props.onChange(le),y.isWindowsPhoneBrowser?y.setSelection(st.start,st.end,{deferred:!0}):y.setSelection(st.start,st.end)},y.onFocus=function(le){var Q=y.props.beforeMaskedValueChange,he=y.maskOptions,Se=he.mask,xe=he.prefix;if(y.focused=!0,y.mounted=!0,Se){if(y.value)R(y.maskOptions,y.value)<y.maskOptions.mask.length&&y.setCursorToEnd();else{var Be=$(y.maskOptions,xe),We=$(y.maskOptions,Be),Qe=R(y.maskOptions,We),ot=de(y.maskOptions,Qe),st={start:ot,end:ot};if(ee(Q)){var It=Q({value:We,selection:st},{value:y.value,selection:null},null,y.getBeforeMaskedValueChangeConfig());We=It.value,st=It.selection}var Yt=We!==y.getInputValue();Yt&&y.setInputValue(We),Yt&&ee(y.props.onChange)&&y.props.onChange(le),y.setSelection(st.start,st.end)}y.runSaveSelectionLoop()}ee(y.props.onFocus)&&y.props.onFocus(le)},y.onBlur=function(le){var Q=y.props.beforeMaskedValueChange,he=y.maskOptions.mask;if(y.stopSaveSelectionLoop(),y.focused=!1,he&&!y.props.alwaysShowMask&&_(y.maskOptions,y.value)){var Se="";ee(Q)&&(Se=Q({value:Se,selection:null},{value:y.value,selection:y.previousSelection},null,y.getBeforeMaskedValueChangeConfig()).value);var xe=Se!==y.getInputValue();xe&&y.setInputValue(Se),xe&&ee(y.props.onChange)&&y.props.onChange(le)}ee(y.props.onBlur)&&y.props.onBlur(le)},y.onMouseDown=function(le){if(!y.focused&&document.addEventListener){y.mouseDownX=le.clientX,y.mouseDownY=le.clientY,y.mouseDownTime=new Date().getTime();var Q=function he(Se){if(document.removeEventListener("mouseup",he),y.focused){var xe=Math.abs(Se.clientX-y.mouseDownX),Be=Math.abs(Se.clientY-y.mouseDownY),We=Math.max(xe,Be),Qe=new Date().getTime()-y.mouseDownTime;(We<=10&&Qe<=200||We<=5&&Qe<=300)&&y.setCursorToEnd()}};document.addEventListener("mouseup",Q)}ee(y.props.onMouseDown)&&y.props.onMouseDown(le)},y.onPaste=function(le){ee(y.props.onPaste)&&y.props.onPaste(le),le.defaultPrevented||(y.beforePasteState={value:y.getInputValue(),selection:y.getSelection()},y.setInputValue(""))},y.handleRef=function(le){y.props.children==null&&ee(y.props.inputRef)&&y.props.inputRef(le)};var H=O.mask,ne=O.maskChar,ae=O.formatChars,z=O.alwaysShowMask,Y=O.beforeMaskedValueChange,G=O.defaultValue,q=O.value;y.maskOptions=C(H,ne,ae),G==null&&(G=""),q==null&&(q=G);var ue=Pe(q);if(y.maskOptions.mask&&(z||ue)&&(ue=$(y.maskOptions,ue),ee(Y))){var J=O.value;O.value==null&&(J=G),ue=Y({value:ue,selection:null},{value:J=Pe(J),selection:null},null,y.getBeforeMaskedValueChangeConfig()).value}return y.value=ue,y}a(T,F);var M=T.prototype;return M.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=He(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},M.componentDidUpdate=function(){var O=this.previousSelection,y=this.props,H=y.beforeMaskedValueChange,ne=y.alwaysShowMask,ae=y.mask,z=y.maskChar,Y=y.formatChars,G=this.maskOptions,q=ne||this.isFocused(),ue=this.props.value!=null,J=ue?Pe(this.props.value):this.value,le=O?O.start:null;if(this.maskOptions=C(ae,z,Y),this.maskOptions.mask){!G.mask&&this.isFocused()&&this.runSaveSelectionLoop();var Q=this.maskOptions.mask&&this.maskOptions.mask!==G.mask;if(G.mask||ue||(J=this.getInputValue()),(Q||this.maskOptions.mask&&(J||q))&&(J=$(this.maskOptions,J)),Q){var he=R(this.maskOptions,J);(le===null||he<le)&&(le=L(this.maskOptions,J)?he:de(this.maskOptions,he))}!this.maskOptions.mask||!_(this.maskOptions,J)||q||ue&&this.props.value||(J="");var Se={start:le,end:le};if(ee(H)){var xe=H({value:J,selection:Se},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());J=xe.value,Se=xe.selection}this.value=J;var Be=this.getInputValue()!==this.value;Be?(this.setInputValue(this.value),this.forceUpdate()):Q&&this.forceUpdate();var We=!1;Se.start!=null&&Se.end!=null&&(We=!O||O.start!==Se.start||O.end!==Se.end),(We||Be)&&this.setSelection(Se.start,Se.end)}else G.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},M.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&Ve(this.selectionDeferId),this.stopSaveSelectionLoop()},M.render=function(){var O,y=this.props,H=(y.mask,y.alwaysShowMask,y.maskChar,y.formatChars,y.inputRef,y.beforeMaskedValueChange,y.children),ne=u(y,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(H){ee(H)||f(!1);var ae=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],z=i({},ne);ae.forEach(function(G){return delete z[G]}),O=H(z),ae.filter(function(G){return O.props[G]!=null&&O.props[G]!==ne[G]}).length&&f(!1)}else O=t.createElement("input",i({ref:this.handleRef},ne));var Y={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(ne.disabled||ne.readOnly||(Y.onChange=this.onChange,Y.onPaste=this.onPaste,Y.onMouseDown=this.onMouseDown),ne.value!=null&&(Y.value=this.value)),O=t.cloneElement(O,Y)},T}(t.Component);return wd=Ke,wd}process.env.NODE_ENV==="production"?bd.exports=Gk():bd.exports=jk();var Hk=bd.exports;const Wk=Zl(Hk),Sd=({className:e,children:t,disabled:n=!1,focused:r=!1,error:i,...a})=>A.jsx("label",{className:Je("absolute origin-top-left bottom-1 left-2 text-sm","peer-focus:text-brand-primary","transition hover:transition","pointer-events-none",{"text-gray-500":!i&&!n&&!r,"text-brand-danger":i,"text-brand-secondary-text":n,"text-brand-primary":r},e),...a,children:t}),K1=({error:e,disabled:t,children:n})=>A.jsx("div",{className:Je("border-brand-gray bg-brand-light-gray dark:bg-brand-dark-gray-dark focus-within:border-brand-secondary","relative h-[36px]","transition focus-within:transition","shadow-input focus-within:shadow-input-focus",{"bg-red-50 shadow-input-error focus-within:shadow-input-error":e,"border-gray-300 bg-[#cbcbcb] dark:bg-brand-text focus-within:border-brand cursor-not-allowed children:cursor-not-allowed":t}),children:n}),q1=({className:e,error:t,helper:n,label:r,mask:i,name:a,type:u,value:l,onChange:c,onBlur:f,disabled:h=!1,...p})=>{const m=Je("peer","block w-full text-sm border-none appearance-none focus:outline-none focus:ring-0","absolute bottom-0","bg-transparent text-brand-secondary-text pb-0 px-2",e);return A.jsxs("div",{children:[A.jsxs(K1,{disabled:h,error:t,children:[u==="color"?A.jsx(G1,{color:l,disabled:h,onChange:c}):i?A.jsx(Wk,{disabled:h,autoComplete:"off",type:"text",name:a,mask:i,value:l,onChange:c,onBlur:f,placeholder:" ",className:`${m}`}):A.jsx("input",{disabled:h,autoComplete:"off",type:u,name:a,value:l,onChange:c,onBlur:f,placeholder:" ",className:`${m}`,...p}),A.jsx(Sd,{htmlFor:a,disabled:h,error:t,children:r})]}),n?A.jsx(vd,{children:n}):null,t?A.jsx(md,{children:t}):null]})},Id={Navbar:({children:e,className:t,...n})=>A.jsx("nav",{className:Je("px-2 py-2 m-2","flex items-center justify-between rounded-lg select-none","bg-gradient-to-r from-primary-500 to-primary-400",t),...n,children:e}),Button:({children:e,className:t,...n})=>A.jsx("button",{className:Je("rounded-md flex items-center justify-center","w-12 h-12","transition bg-white hover:bg-primary-50 active:bg-primary-100 text-primary-500",t),...n,children:e}),Title:({children:e,className:t,...n})=>A.jsx("h1",{className:Je("pl-2 font-bold text-white text-2.5xl",t),...n,children:e})},Zk=({label:e,name:t,className:n,...r})=>A.jsx("div",{className:Je("bg-brand-light-gray rounded-lg inline-block p-1.5 transition","border-2 border-transparent focus-within:border-brand-primary focus-within:transition",{className:n!==""}),children:A.jsxs("label",{htmlFor:(r==null?void 0:r.id)||t,className:Je("relative","flex gap-2 items-center justify-center"),children:[A.jsx("input",{name:t,type:"radio",className:Je("relative appearance-none w-5 h-5 border rounded-full text-brand-primary cursor-pointer transition-all focus:ring-0 focus:ring-offset-0 focus:outline-none","checked:after:absolute checked:before:absolute","checked:after:inset-0 checked:before:inset-0","checked:after:rounded-full checked:before:rounded-full","checked:after:scale-75","checked:after:bg-brand-primary checked:before:bg-white","checked:border-2"),...r}),A.jsx("span",{className:"text-xs text-brand-secondary-text",children:e})]})});function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function Xk(e,t){if(xi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q1(e){var t=Xk(e,"string");return xi(t)=="symbol"?t:String(t)}function $a(e,t,n){return t=Q1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(n),!0).forEach(function(r){$a(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zk(e){if(Array.isArray(e))return e}function Uk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,u,l=[],c=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(h){f=!0,i=h}finally{try{if(!c&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw i}}return l}}function Ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ty(e,t){if(e){if(typeof e=="string")return Ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ed(e,t)}}function Yk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
124
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gr(e,t){return zk(e)||Uk(e,t)||ty(e,t)||Yk()}function Jk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mr(e,t){if(e==null)return{};var n=Jk(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Kk=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function qk(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,u=a===void 0?null:a,l=e.inputValue,c=e.menuIsOpen,f=e.onChange,h=e.onInputChange,p=e.onMenuClose,m=e.onMenuOpen,v=e.value,C=mr(e,Kk),S=b.useState(l!==void 0?l:n),E=gr(S,2),_=E[0],R=E[1],L=b.useState(c!==void 0?c:i),$=gr(L,2),V=$[0],U=$[1],X=b.useState(v!==void 0?v:u),te=gr(X,2),de=te[0],Pe=te[1],ke=b.useCallback(function(Ke,F){typeof f=="function"&&f(Ke,F),Pe(Ke)},[f]),He=b.useCallback(function(Ke,F){var T;typeof h=="function"&&(T=h(Ke,F)),R(T!==void 0?T:Ke)},[h]),ee=b.useCallback(function(){typeof m=="function"&&m(),U(!0)},[m]),ve=b.useCallback(function(){typeof p=="function"&&p(),U(!1)},[p]),ye=l!==void 0?l:_,Ee=c!==void 0?c:V,Ve=v!==void 0?v:de;return Fe(Fe({},C),{},{inputValue:ye,menuIsOpen:Ee,onChange:ke,onInputChange:He,onMenuClose:ve,onMenuOpen:ee,value:Ve})}function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Re.apply(this,arguments)}function Qk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ny(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Q1(r.key),r)}}function ej(e,t,n){return t&&ny(e.prototype,t),n&&ny(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ad(e,t){return Ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ad(e,t)}function tj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ad(e,t)}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xu(e)}function nj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ij(e,t){if(t&&(xi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rj(e)}function oj(e){var t=nj();return function(){var r=xu(e),i;if(t){var a=xu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ij(this,i)}}function aj(e){if(Array.isArray(e))return Ed(e)}function sj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _d(e){return aj(e)||sj(e)||ty(e)||uj()}function lj(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function cj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var fj=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(cj(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
126
|
+
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var u=lj(i);try{u.insertRule(r,u.cssRules.length)}catch(l){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',l)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),zt="-ms-",Cu="-moz-",ut="-webkit-",Pd="comm",Td="rule",Fd="decl",dj="@import",ry="@keyframes",hj="@layer",pj=Math.abs,wu=String.fromCharCode,gj=Object.assign;function mj(e,t){return Ht(e,0)^45?(((t<<2^Ht(e,0))<<2^Ht(e,1))<<2^Ht(e,2))<<2^Ht(e,3):0}function iy(e){return e.trim()}function vj(e,t){return(e=t.exec(e))?e[0]:e}function lt(e,t,n){return e.replace(t,n)}function Od(e,t){return e.indexOf(t)}function Ht(e,t){return e.charCodeAt(t)|0}function Na(e,t,n){return e.slice(t,n)}function qn(e){return e.length}function Rd(e){return e.length}function Su(e,t){return t.push(e),e}function bj(e,t){return e.map(t).join("")}var Iu=1,_o=1,oy=0,sn=0,Nt=0,Po="";function Eu(e,t,n,r,i,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Iu,column:_o,length:u,return:""}}function Va(e,t){return gj(Eu("",null,null,"",null,null,0),e,{length:-e.length},t)}function yj(){return Nt}function xj(){return Nt=sn>0?Ht(Po,--sn):0,_o--,Nt===10&&(_o=1,Iu--),Nt}function gn(){return Nt=sn<oy?Ht(Po,sn++):0,_o++,Nt===10&&(_o=1,Iu++),Nt}function Qn(){return Ht(Po,sn)}function Au(){return sn}function Ba(e,t){return Na(Po,e,t)}function ka(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 ay(e){return Iu=_o=1,oy=qn(Po=e),sn=0,[]}function sy(e){return Po="",e}function _u(e){return iy(Ba(sn-1,Md(e===91?e+2:e===40?e+1:e)))}function Cj(e){for(;(Nt=Qn())&&Nt<33;)gn();return ka(e)>2||ka(Nt)>3?"":" "}function wj(e,t){for(;--t&&gn()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return Ba(e,Au()+(t<6&&Qn()==32&&gn()==32))}function Md(e){for(;gn();)switch(Nt){case e:return sn;case 34:case 39:e!==34&&e!==39&&Md(Nt);break;case 40:e===41&&Md(e);break;case 92:gn();break}return sn}function Sj(e,t){for(;gn()&&e+Nt!==57;)if(e+Nt===84&&Qn()===47)break;return"/*"+Ba(t,sn-1)+"*"+wu(e===47?e:gn())}function Ij(e){for(;!ka(Qn());)gn();return Ba(e,sn)}function Ej(e){return sy(Pu("",null,null,null,[""],e=ay(e),0,[0],e))}function Pu(e,t,n,r,i,a,u,l,c){for(var f=0,h=0,p=u,m=0,v=0,C=0,S=1,E=1,_=1,R=0,L="",$=i,V=a,U=r,X=L;E;)switch(C=R,R=gn()){case 40:if(C!=108&&Ht(X,p-1)==58){Od(X+=lt(_u(R),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:X+=_u(R);break;case 9:case 10:case 13:case 32:X+=Cj(C);break;case 92:X+=wj(Au()-1,7);continue;case 47:switch(Qn()){case 42:case 47:Su(Aj(Sj(gn(),Au()),t,n),c);break;default:X+="/"}break;case 123*S:l[f++]=qn(X)*_;case 125*S:case 59:case 0:switch(R){case 0:case 125:E=0;case 59+h:_==-1&&(X=lt(X,/\f/g,"")),v>0&&qn(X)-p&&Su(v>32?ly(X+";",r,n,p-1):ly(lt(X," ","")+";",r,n,p-2),c);break;case 59:X+=";";default:if(Su(U=uy(X,t,n,f,h,i,l,L,$=[],V=[],p),a),R===123)if(h===0)Pu(X,t,U,U,$,a,p,l,V);else switch(m===99&&Ht(X,3)===110?100:m){case 100:case 108:case 109:case 115:Pu(e,U,U,r&&Su(uy(e,U,U,0,0,i,l,L,i,$=[],p),V),i,V,p,l,r?$:V);break;default:Pu(X,U,U,U,[""],V,0,l,V)}}f=h=v=0,S=_=1,L=X="",p=u;break;case 58:p=1+qn(X),v=C;default:if(S<1){if(R==123)--S;else if(R==125&&S++==0&&xj()==125)continue}switch(X+=wu(R),R*S){case 38:_=h>0?1:(X+="\f",-1);break;case 44:l[f++]=(qn(X)-1)*_,_=1;break;case 64:Qn()===45&&(X+=_u(gn())),m=Qn(),h=p=qn(L=X+=Ij(Au())),R++;break;case 45:C===45&&qn(X)==2&&(S=0)}}return a}function uy(e,t,n,r,i,a,u,l,c,f,h){for(var p=i-1,m=i===0?a:[""],v=Rd(m),C=0,S=0,E=0;C<r;++C)for(var _=0,R=Na(e,p+1,p=pj(S=u[C])),L=e;_<v;++_)(L=iy(S>0?m[_]+" "+R:lt(R,/&\f/g,m[_])))&&(c[E++]=L);return Eu(e,t,n,i===0?Td:l,c,f,h)}function Aj(e,t,n){return Eu(e,t,n,Pd,wu(yj()),Na(e,2,-2),0)}function ly(e,t,n,r){return Eu(e,t,n,Fd,Na(e,0,r),Na(e,r+1,-1),r)}function To(e,t){for(var n="",r=Rd(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function _j(e,t,n,r){switch(e.type){case hj:if(e.children.length)break;case dj:case Fd:return e.return=e.return||e.value;case Pd:return"";case ry:return e.return=e.value+"{"+To(e.children,r)+"}";case Td:e.value=e.props.join(",")}return qn(n=To(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pj(e){var t=Rd(e);return function(n,r,i,a){for(var u="",l=0;l<t;l++)u+=e[l](n,r,i,a)||"";return u}}function Tj(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Oj=function(t,n,r){for(var i=0,a=0;i=a,a=Qn(),i===38&&a===12&&(n[r]=1),!ka(a);)gn();return Ba(t,sn)},Rj=function(t,n){var r=-1,i=44;do switch(ka(i)){case 0:i===38&&Qn()===12&&(n[r]=1),t[r]+=Oj(sn-1,n,r);break;case 2:t[r]+=_u(i);break;case 4:if(i===44){t[++r]=Qn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wu(i)}while(i=gn());return t},Mj=function(t,n){return sy(Rj(ay(t),n))},cy=new WeakMap,Lj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!cy.get(r))&&!i){cy.set(t,!0);for(var a=[],u=Mj(n,a),l=r.props,c=0,f=0;c<u.length;c++)for(var h=0;h<l.length;h++,f++)t.props[f]=a[c]?u[c].replace(/&\f/g,l[h]):l[h]+" "+u[c]}}},Dj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},$j="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Nj=function(t){return t.type==="comm"&&t.children.indexOf($j)>-1},Vj=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var u=!!n.parent,l=u?n.parent.children:i,c=l.length-1;c>=0;c--){var f=l[c];if(f.line<n.line)break;if(f.column<n.column){if(Nj(f))return;break}}a.forEach(function(h){console.error('The pseudo class "'+h+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+h.split("-child")[0]+'-of-type".')})}}}},fy=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Bj=function(t,n){for(var r=t-1;r>=0;r--)if(!fy(n[r]))return!0;return!1},dy=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},kj=function(t,n,r){fy(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),dy(t)):Bj(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),dy(t)))};function hy(e,t){switch(mj(e,t)){case 5103:return ut+"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 ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ut+e+Cu+e+zt+e+e;case 6828:case 4268:return ut+e+zt+e+e;case 6165:return ut+e+zt+"flex-"+e+e;case 5187:return ut+e+lt(e,/(\w+).+(:[^]+)/,ut+"box-$1$2"+zt+"flex-$1$2")+e;case 5443:return ut+e+zt+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return ut+e+zt+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return ut+e+zt+lt(e,"shrink","negative")+e;case 5292:return ut+e+zt+lt(e,"basis","preferred-size")+e;case 6060:return ut+"box-"+lt(e,"-grow","")+ut+e+zt+lt(e,"grow","positive")+e;case 4554:return ut+lt(e,/([^-])(transform)/g,"$1"+ut+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,ut+"$1"),/(image-set)/,ut+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,ut+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,ut+"box-pack:$3"+zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ut+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,ut+"$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(qn(e)-1-t>6)switch(Ht(e,t+1)){case 109:if(Ht(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+ut+"$2-$3$1"+Cu+(Ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Od(e,"stretch")?hy(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ht(e,t+1)!==115)break;case 6444:switch(Ht(e,qn(e)-3-(~Od(e,"!important")&&10))){case 107:return lt(e,":",":"+ut)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ut+(Ht(e,14)===45?"inline-":"")+"box$3$1"+ut+"$2$3$1"+zt+"$2box$3")+e}break;case 5936:switch(Ht(e,t+11)){case 114:return ut+e+zt+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ut+e+zt+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ut+e+zt+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ut+e+zt+e+e}return e}var jj=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Fd:t.return=hy(t.value,t.length);break;case ry:return To([Va(t,{value:lt(t.value,"@","@"+ut)})],i);case Td:if(t.length)return bj(t.props,function(a){switch(vj(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return To([Va(t,{props:[lt(a,/:(read-\w+)/,":"+Cu+"$1")]})],i);case"::placeholder":return To([Va(t,{props:[lt(a,/:(plac\w+)/,":"+ut+"input-$1")]}),Va(t,{props:[lt(a,/:(plac\w+)/,":"+Cu+"$1")]}),Va(t,{props:[lt(a,/:(plac\w+)/,zt+"input-$1")]})],i)}return""})}},Gj=[jj],Hj=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
127
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var E=S.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||Gj;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},u,l=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var E=S.getAttribute("data-emotion").split(" "),_=1;_<E.length;_++)a[E[_]]=!0;l.push(S)});var c,f=[Lj,Dj];process.env.NODE_ENV!=="production"&&f.push(Vj({get compat(){return C.compat}}),kj);{var h,p=[_j,process.env.NODE_ENV!=="production"?function(S){S.root||(S.return?h.insert(S.return):S.value&&S.type!==Pd&&h.insert(S.value+"{}"))}:Tj(function(S){h.insert(S)})],m=Pj(f.concat(i,p)),v=function(E){return To(Ej(E),m)};c=function(E,_,R,L){h=R,process.env.NODE_ENV!=="production"&&_.map!==void 0&&(h={insert:function(V){R.insert(V+_.map)}}),v(E?E+"{"+_.styles+"}":_.styles),L&&(C.inserted[_.name]=!0)}}var C={key:n,sheet:new fj({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return C.sheet.hydrate(l),C},py=Pf,Wj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gy={};gy[py.ForwardRef]=Wj,gy[py.Memo]=Zj;var Xj=!0;function my(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Ld=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Xj===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Dd=function(t,n,r){Ld(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function zj(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Uj={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},vy=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
115
128
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
116
129
|
You can read more about this here:
|
|
117
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
130
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Yj="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Jj=/[A-Z]|^ms/g,by=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$d=function(t){return t.charCodeAt(1)===45},yy=function(t){return t!=null&&typeof t!="boolean"},Nd=Fj(function(e){return $d(e)?e:e.replace(Jj,"-$&").toLowerCase()}),Tu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(by,function(r,i,a){return Bn={name:i,styles:a,next:Bn},i})}return Uj[t]!==1&&!$d(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Kj=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qj=["normal","none","initial","inherit","unset"],Qj=Tu,eG=/^-ms-/,tG=/-(.)/g,xy={};Tu=function(t,n){if(t==="content"&&(typeof n!="string"||qj.indexOf(n)===-1&&!Kj.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=Qj(t,n);return r!==""&&!$d(t)&&t.indexOf("-")!==-1&&xy[t]===void 0&&(xy[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(eG,"ms-").replace(tG,function(i,a){return a.toUpperCase()})+"?")),r}}var Cy="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ja(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Cy);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Bn={name:n.name,styles:n.styles,next:Bn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Bn={name:r.name,styles:r.styles,next:Bn},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return nG(e,t,n)}case"function":{if(e!==void 0){var a=Bn,u=n(e);return Bn=a,ja(e,t,u)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var l=[],c=n.replace(by,function(h,p,m){var v="animation"+l.length;return l.push("const "+v+" = keyframes`"+m.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join(`
|
|
118
131
|
`)+`
|
|
119
132
|
|
|
120
133
|
You should wrap it with \`css\` like this:
|
|
121
134
|
|
|
122
|
-
`+("css`"+c+"`"))}break}if(t==null)return n;var f=t[n];return f!==void 0?f:n}function
|
|
123
|
-
`),r=0;r<n.length;r++){var i=_j(n[r]);if(i){if(Pj.has(i))break;if(/^[A-Z]/.test(i))return Tj(i)}}},Od="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Fj=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)_d.call(n,i)&&(r[i]=n[i]);if(r[Od]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=Oj(new Error().stack);a&&(r[Fd]=a)}return r},Rj=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Sd(n,r,i),oy(function(){return Id(n,r,i)}),null},uy=Td(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Od],a=[r],u="";typeof e.className=="string"?u=J1(t.registered,a,e.className):e.className!=null&&(u=e.className+" ");var l=Va(a,void 0,re.useContext(Iu));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var c=e[Fd];c&&(l=Va([l,"label:"+c+";"]))}u+=t.key+"-"+l.name;var f={};for(var p in e)_d.call(e,p)&&p!=="css"&&p!==Od&&(process.env.NODE_ENV==="production"||p!==Fd)&&(f[p]=e[p]);return f.ref=n,f.className=u,re.createElement(re.Fragment,null,re.createElement(Rj,{cache:t,serialized:l,isStringTag:typeof i=="string"}),re.createElement(i,f))});process.env.NODE_ENV!=="production"&&(uy.displayName="EmotionCssPropInternal");var Mj=uy,Lj={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Pe=function(t,n){var r=arguments;if(n==null||!_d.call(n,"css"))return re.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Mj,a[1]=Fj(t,n);for(var u=2;u<i;u++)a[u]=r[u];return re.createElement.apply(null,a)},ly=!1,$j=Td(function(e,t){process.env.NODE_ENV!=="production"&&!ly&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ly=!0);var n=e.styles,r=Va([n],void 0,re.useContext(Iu)),i=re.useRef();return ay(function(){var a=t.key+"-global",u=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),u.hydrate([c])),i.current=[u,l],function(){u.flush()}},[t]),ay(function(){var a=i.current,u=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Id(t,r.next,!0),u.tags.length){var c=u.tags[u.tags.length-1].nextElementSibling;u.before=c,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&($j.displayName="EmotionGlobal");function Rd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Va(t)}var Dj=function(){var t=Rd.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Nj=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var u=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))u=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),u="";for(var l in a)a[l]&&l&&(u&&(u+=" "),u+=l)}break}default:u=a}u&&(i&&(i+=" "),i+=u)}}return i};function Vj(e,t,n){var r=[],i=J1(e,r,n);return r.length<2?n:i+t(r)}var Bj=function(t){var n=t.cache,r=t.serializedArr;return oy(function(){for(var i=0;i<r.length;i++)Id(n,r[i],!1)}),null},kj=Td(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];var m=Va(p,t.registered);return r.push(m),Sd(t,m,!1),t.key+"-"+m.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return Vj(t.registered,i,Nj(p))},u={css:i,cx:a,theme:re.useContext(Iu)},l=e.children(u);return n=!0,re.createElement(re.Fragment,null,re.createElement(Bj,{cache:t,serializedArr:r}),l)});if(process.env.NODE_ENV!=="production"&&(kj.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var cy=!0,jj=typeof jest<"u"||typeof vi<"u";if(cy&&!jj){var fy=typeof globalThis<"u"?globalThis:cy?window:global,dy="__EMOTION_REACT_"+Lj.version.split(".")[0]+"__";fy[dy]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),fy[dy]=!0}}function Gj(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Hj=Math.min,Wj=Math.max,Eu=Math.round,Au=Math.floor,_u=e=>({x:e,y:e});function Zj(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function py(e){return gy(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hy(e){var t;return(t=(gy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gy(e){return e instanceof Node||e instanceof Vn(e).Node}function Md(e){return e instanceof Element||e instanceof Vn(e).Element}function Ld(e){return e instanceof HTMLElement||e instanceof Vn(e).HTMLElement}function my(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}function vy(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$d(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Xj(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zj(e){return["html","body","#document"].includes(py(e))}function $d(e){return Vn(e).getComputedStyle(e)}function Uj(e){if(py(e)==="html")return e;const t=e.assignedSlot||e.parentNode||my(e)&&e.host||hy(e);return my(t)?t.host:t}function by(e){const t=Uj(e);return zj(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ld(t)&&vy(t)?t:by(t)}function Pu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=by(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),u=Vn(i);return a?t.concat(u,u.visualViewport||[],vy(i)?i:[],u.frameElement&&n?Pu(u.frameElement):[]):t.concat(i,Pu(i,[],n))}function Yj(e){const t=$d(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ld(e),a=i?e.offsetWidth:n,u=i?e.offsetHeight:r,l=Eu(n)!==a||Eu(r)!==u;return l&&(n=a,r=u),{width:n,height:r,$:l}}function Dd(e){return Md(e)?e:e.contextElement}function Nd(e){const t=Dd(e);if(!Ld(t))return _u(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Yj(t);let u=(a?Eu(n.width):n.width)/r,l=(a?Eu(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const Jj=_u(0);function Kj(e){const t=Vn(e);return!Xj()||!t.visualViewport?Jj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function yy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Dd(e);let u=_u(1);t&&(r?Md(r)&&(u=Nd(r)):u=Nd(e));const l=qj(a,n,r)?Kj(a):_u(0);let c=(i.left+l.x)/u.x,f=(i.top+l.y)/u.y,p=i.width/u.x,h=i.height/u.y;if(a){const m=Vn(a),v=r&&Md(r)?Vn(r):r;let S=m.frameElement;for(;S&&r&&v!==m;){const C=Nd(S),E=S.getBoundingClientRect(),P=$d(S),M=E.left+(S.clientLeft+parseFloat(P.paddingLeft))*C.x,$=E.top+(S.clientTop+parseFloat(P.paddingTop))*C.y;c*=C.x,f*=C.y,p*=C.x,h*=C.y,c+=M,f+=$,S=Vn(S).frameElement}}return Zj({width:p,height:h,x:c,y:f})}function Qj(e,t){let n=null,r;const i=hy(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function u(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const{left:f,top:p,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const v=Au(p),S=Au(i.clientWidth-(f+h)),C=Au(i.clientHeight-(p+m)),E=Au(f),M={rootMargin:-v+"px "+-S+"px "+-C+"px "+-E+"px",threshold:Wj(0,Hj(1,c))||1};let $=!0;function B(N){const U=N[0].intersectionRatio;if(U!==c){if(!$)return u();U?u(!1,U):r=setTimeout(()=>{u(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(B,{...M,root:i.ownerDocument})}catch{n=new IntersectionObserver(B,M)}n.observe(e)}return u(!0),a}function eG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=Dd(e),p=i||a?[...f?Pu(f):[],...Pu(t)]:[];p.forEach(P=>{i&&P.addEventListener("scroll",n,{passive:!0}),a&&P.addEventListener("resize",n)});const h=f&&l?Qj(f,n):null;let m=-1,v=null;u&&(v=new ResizeObserver(P=>{let[M]=P;M&&M.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),f&&!c&&v.observe(f),v.observe(t));let S,C=c?yy(e):null;c&&E();function E(){const P=yy(e);C&&(P.x!==C.x||P.y!==C.y||P.width!==C.width||P.height!==C.height)&&n(),C=P,S=requestAnimationFrame(E)}return n(),()=>{p.forEach(P=>{i&&P.removeEventListener("scroll",n),a&&P.removeEventListener("resize",n)}),h&&h(),v&&v.disconnect(),v=null,c&&cancelAnimationFrame(S)}}var Vd=b.useLayoutEffect,tG=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Tu=function(){};function nG(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function rG(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var u in t)t.hasOwnProperty(u)&&t[u]&&a.push("".concat(nG(e,u)));return a.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var xy=function(t){return dG(t)?t.filter(Boolean):mi(t)==="object"&&t!==null?[t]:[]},Cy=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=pr(t,tG);return Te({},n)},Tt=function(t,n,r){var i=t.cx,a=t.getStyles,u=t.getClassNames,l=t.className;return{css:a(n,t),className:i(r??{},u(n,t),l)}};function Ou(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function iG(e){return Ou(e)?window.innerHeight:e.clientHeight}function wy(e){return Ou(e)?window.pageYOffset:e.scrollTop}function Fu(e,t){if(Ou(e)){window.scrollTo(0,t);return}e.scrollTop=t}function oG(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function aG(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ru(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Tu,i=wy(e),a=t-i,u=10,l=0;function c(){l+=u;var f=aG(l,i,a,n);Fu(e,f),l<n?window.requestAnimationFrame(c):r(e)}c()}function Sy(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Fu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Fu(e,Math.max(t.offsetTop-i,0))}function sG(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Iy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function uG(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ey=!1,lG={get passive(){return Ey=!0}},Mu=typeof window<"u"?window:{};Mu.addEventListener&&Mu.removeEventListener&&(Mu.addEventListener("p",Tu,lG),Mu.removeEventListener("p",Tu,!1));var cG=Ey;function fG(e){return e!=null}function dG(e){return Array.isArray(e)}function Lu(e,t,n){return e?t:n}function Eee(e){return e}function Aee(e){return e}var pG=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(u){var l=dr(u,1),c=l[0];return!r.includes(c)});return a.reduce(function(u,l){var c=dr(l,2),f=c[0],p=c[1];return u[f]=p,u},{})},hG=["children","innerProps"],gG=["children","innerProps"];function mG(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,u=e.isFixedPosition,l=e.controlHeight,c=oG(n),f={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return f;var p=c.getBoundingClientRect(),h=p.height,m=n.getBoundingClientRect(),v=m.bottom,S=m.height,C=m.top,E=n.offsetParent.getBoundingClientRect(),P=E.top,M=u?window.innerHeight:iG(c),$=wy(c),B=parseInt(getComputedStyle(n).marginBottom,10),N=parseInt(getComputedStyle(n).marginTop,10),U=P-N,X=M-C,ee=U+$,fe=h-$-C,Oe=v-M+$+B,ze=$+C-N,He=160;switch(i){case"auto":case"bottom":if(X>=S)return{placement:"bottom",maxHeight:t};if(fe>=S&&!u)return a&&Ru(c,Oe,He),{placement:"bottom",maxHeight:t};if(!u&&fe>=r||u&&X>=r){a&&Ru(c,Oe,He);var he=u?X-B:fe-B;return{placement:"bottom",maxHeight:he}}if(i==="auto"||u){var Ce=t,be=u?U:ee;return be>=r&&(Ce=Math.min(be-B-l,t)),{placement:"top",maxHeight:Ce}}if(i==="bottom")return a&&Fu(c,Oe),{placement:"bottom",maxHeight:t};break;case"top":if(U>=S)return{placement:"top",maxHeight:t};if(ee>=S&&!u)return a&&Ru(c,ze,He),{placement:"top",maxHeight:t};if(!u&&ee>=r||u&&U>=r){var _e=t;return(!u&&ee>=r||u&&U>=r)&&(_e=u?U-N:ee-N),a&&Ru(c,ze,He),{placement:"top",maxHeight:_e}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return f}function vG(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Ay=function(t){return t==="auto"?"bottom":t},bG=function(t,n){var r,i=t.placement,a=t.theme,u=a.borderRadius,l=a.spacing,c=a.colors;return Te((r={label:"menu"},Ra(r,vG(i),"100%"),Ra(r,"position","absolute"),Ra(r,"width","100%"),Ra(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},_y=b.createContext(null),yG=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,u=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,f=b.useContext(_y)||{},p=f.setPortalPlacement,h=b.useRef(null),m=b.useState(i),v=dr(m,2),S=v[0],C=v[1],E=b.useState(null),P=dr(E,2),M=P[0],$=P[1],B=c.spacing.controlHeight;return Vd(function(){var N=h.current;if(N){var U=u==="fixed",X=l&&!U,ee=mG({maxHeight:i,menuEl:N,minHeight:r,placement:a,shouldScroll:X,isFixedPosition:U,controlHeight:B});C(ee.maxHeight),$(ee.placement),p==null||p(ee.placement)}},[i,a,u,l,r,p,B]),n({ref:h,placerProps:Te(Te({},t),{},{placement:M||Ay(a),maxHeight:S})})},xG=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return Pe("div",Re({},Tt(t,"menu",{menu:!0}),{ref:r},i),n)},CG=xG,wG=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Te({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},SG=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return Pe("div",Re({},Tt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Py=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return Te({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},IG=Py,EG=Py,AG=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=pr(t,hG);return Pe("div",Re({},Tt(Te(Te({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},_G=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=pr(t,gG);return Pe("div",Re({},Tt(Te(Te({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},PG=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},TG=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,u=t.menuPlacement,l=t.menuPosition,c=b.useRef(null),f=b.useRef(null),p=b.useState(Ay(u)),h=dr(p,2),m=h[0],v=h[1],S=b.useMemo(function(){return{setPortalPlacement:v}},[]),C=b.useState(null),E=dr(C,2),P=E[0],M=E[1],$=b.useCallback(function(){if(i){var X=sG(i),ee=l==="fixed"?0:window.pageYOffset,fe=X[m]+ee;(fe!==(P==null?void 0:P.offset)||X.left!==(P==null?void 0:P.rect.left)||X.width!==(P==null?void 0:P.rect.width))&&M({offset:fe,rect:X})}},[i,l,m,P==null?void 0:P.offset,P==null?void 0:P.rect.left,P==null?void 0:P.rect.width]);Vd(function(){$()},[$]);var B=b.useCallback(function(){typeof f.current=="function"&&(f.current(),f.current=null),i&&c.current&&(f.current=eG(i,c.current,$,{elementResize:"ResizeObserver"in window}))},[i,$]);Vd(function(){B()},[B]);var N=b.useCallback(function(X){c.current=X,B()},[B]);if(!n&&l!=="fixed"||!P)return null;var U=Pe("div",Re({ref:N},Tt(Te(Te({},t),{},{offset:P.offset,position:l,rect:P.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Pe(_y.Provider,{value:S},n?Dl.createPortal(U,n):U)},OG=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},FG=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return Pe("div",Re({},Tt(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},RG=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,u=t.selectProps.controlShouldRenderValue;return Te({alignItems:"center",display:i&&a&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},MG=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return Pe("div",Re({},Tt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},LG=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},$G=function(t){var n=t.children,r=t.innerProps;return Pe("div",Re({},Tt(t,"indicatorsContainer",{indicators:!0}),r),n)},Ty,DG=["size"],NG=["innerProps","isRtl","size"];function VG(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var BG=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:VG},Oy=function(t){var n=t.size,r=pr(t,DG);return Pe("svg",Re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:BG},r))},Bd=function(t){return Pe(Oy,Re({size:20},t),Pe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Fy=function(t){return Pe(Oy,Re({size:20},t),Pe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ry=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,u=i.colors;return Te({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:a*2,":hover":{color:r?u.neutral80:u.neutral40}})},kG=Ry,jG=function(t){var n=t.children,r=t.innerProps;return Pe("div",Re({},Tt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Pe(Fy,null))},GG=Ry,HG=function(t){var n=t.children,r=t.innerProps;return Pe("div",Re({},Tt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Pe(Bd,null))},WG=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,u=i.colors;return Te({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:a*2,marginTop:a*2})},ZG=function(t){var n=t.innerProps;return Pe("span",Re({},n,Tt(t,"indicatorSeparator",{"indicator-separator":!0})))},XG=Dj(Ty||(Ty=Gj([`
|
|
135
|
+
`+("css`"+c+"`"))}break}if(t==null)return n;var f=t[n];return f!==void 0?f:n}function nG(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ja(e,t,n[i])+";";else for(var a in n){var u=n[a];if(typeof u!="object")t!=null&&t[u]!==void 0?r+=a+"{"+t[u]+"}":yy(u)&&(r+=Nd(a)+":"+Tu(a,u)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Cy);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var l=0;l<u.length;l++)yy(u[l])&&(r+=Nd(a)+":"+Tu(a,u[l])+";");else{var c=ja(e,t,u);switch(a){case"animation":case"animationName":{r+=Nd(a)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(Yj),r+=a+"{"+c+"}"}}}}return r}var wy=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Sy;process.env.NODE_ENV!=="production"&&(Sy=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Bn,Ga=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";Bn=void 0;var u=t[0];u==null||u.raw===void 0?(i=!1,a+=ja(r,n,u)):(process.env.NODE_ENV!=="production"&&u[0]===void 0&&console.error(vy),a+=u[0]);for(var l=1;l<t.length;l++)a+=ja(r,n,t[l]),i&&(process.env.NODE_ENV!=="production"&&u[l]===void 0&&console.error(vy),a+=u[l]);var c;process.env.NODE_ENV!=="production"&&(a=a.replace(Sy,function(m){return c=m,""})),wy.lastIndex=0;for(var f="",h;(h=wy.exec(a))!==null;)f+="-"+h[1];var p=zj(a)+f;return process.env.NODE_ENV!=="production"?{name:p,styles:a,map:c,next:Bn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:p,styles:a,next:Bn}},rG=function(t){return t()},Iy=ie.useInsertionEffect?ie.useInsertionEffect:!1,Ey=Iy||rG,Ay=Iy||ie.useLayoutEffect,Vd={}.hasOwnProperty,Bd=ie.createContext(typeof HTMLElement<"u"?Hj({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Bd.displayName="EmotionCacheContext"),Bd.Provider;var kd=function(t){return b.forwardRef(function(n,r){var i=b.useContext(Bd);return t(n,i,r)})},Fu=ie.createContext({});process.env.NODE_ENV!=="production"&&(Fu.displayName="EmotionThemeContext");var _y=function(t){var n=t.split(".");return n[n.length-1]},iG=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return _y(n[1])},oG=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),aG=function(t){return t.replace(/\$/g,"-")},sG=function(t){if(t)for(var n=t.split(`
|
|
136
|
+
`),r=0;r<n.length;r++){var i=iG(n[r]);if(i){if(oG.has(i))break;if(/^[A-Z]/.test(i))return aG(i)}}},jd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",uG=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Vd.call(n,i)&&(r[i]=n[i]);if(r[jd]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=sG(new Error().stack);a&&(r[Gd]=a)}return r},lG=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ld(n,r,i),Ey(function(){return Dd(n,r,i)}),null},Py=kd(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[jd],a=[r],u="";typeof e.className=="string"?u=my(t.registered,a,e.className):e.className!=null&&(u=e.className+" ");var l=Ga(a,void 0,ie.useContext(Fu));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var c=e[Gd];c&&(l=Ga([l,"label:"+c+";"]))}u+=t.key+"-"+l.name;var f={};for(var h in e)Vd.call(e,h)&&h!=="css"&&h!==jd&&(process.env.NODE_ENV==="production"||h!==Gd)&&(f[h]=e[h]);return f.ref=n,f.className=u,ie.createElement(ie.Fragment,null,ie.createElement(lG,{cache:t,serialized:l,isStringTag:typeof i=="string"}),ie.createElement(i,f))});process.env.NODE_ENV!=="production"&&(Py.displayName="EmotionCssPropInternal");var cG=Py,fG={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Te=function(t,n){var r=arguments;if(n==null||!Vd.call(n,"css"))return ie.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=cG,a[1]=uG(t,n);for(var u=2;u<i;u++)a[u]=r[u];return ie.createElement.apply(null,a)},Ty=!1,dG=kd(function(e,t){process.env.NODE_ENV!=="production"&&!Ty&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ty=!0);var n=e.styles,r=Ga([n],void 0,ie.useContext(Fu)),i=ie.useRef();return Ay(function(){var a=t.key+"-global",u=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),u.hydrate([c])),i.current=[u,l],function(){u.flush()}},[t]),Ay(function(){var a=i.current,u=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Dd(t,r.next,!0),u.tags.length){var c=u.tags[u.tags.length-1].nextElementSibling;u.before=c,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(dG.displayName="EmotionGlobal");function Hd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ga(t)}var hG=function(){var t=Hd.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},pG=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var u=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))u=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),u="";for(var l in a)a[l]&&l&&(u&&(u+=" "),u+=l)}break}default:u=a}u&&(i&&(i+=" "),i+=u)}}return i};function gG(e,t,n){var r=[],i=my(e,r,n);return r.length<2?n:i+t(r)}var mG=function(t){var n=t.cache,r=t.serializedArr;return Ey(function(){for(var i=0;i<r.length;i++)Dd(n,r[i],!1)}),null},vG=kd(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];var m=Ga(h,t.registered);return r.push(m),Ld(t,m,!1),t.key+"-"+m.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return gG(t.registered,i,pG(h))},u={css:i,cx:a,theme:ie.useContext(Fu)},l=e.children(u);return n=!0,ie.createElement(ie.Fragment,null,ie.createElement(mG,{cache:t,serializedArr:r}),l)});if(process.env.NODE_ENV!=="production"&&(vG.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var Fy=!0,bG=typeof jest<"u"||typeof vi<"u";if(Fy&&!bG){var Oy=typeof globalThis<"u"?globalThis:Fy?window:global,Ry="__EMOTION_REACT_"+fG.version.split(".")[0]+"__";Oy[Ry]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Oy[Ry]=!0}}function yG(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const xG=Math.min,CG=Math.max,Ou=Math.round,Ru=Math.floor,Mu=e=>({x:e,y:e});function wG(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function My(e){return Dy(e)?(e.nodeName||"").toLowerCase():"#document"}function kn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ly(e){var t;return(t=(Dy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dy(e){return e instanceof Node||e instanceof kn(e).Node}function Wd(e){return e instanceof Element||e instanceof kn(e).Element}function Zd(e){return e instanceof HTMLElement||e instanceof kn(e).HTMLElement}function $y(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kn(e).ShadowRoot}function Ny(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Xd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function SG(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function IG(e){return["html","body","#document"].includes(My(e))}function Xd(e){return kn(e).getComputedStyle(e)}function EG(e){if(My(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$y(e)&&e.host||Ly(e);return $y(t)?t.host:t}function Vy(e){const t=EG(e);return IG(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zd(t)&&Ny(t)?t:Vy(t)}function Lu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Vy(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),u=kn(i);return a?t.concat(u,u.visualViewport||[],Ny(i)?i:[],u.frameElement&&n?Lu(u.frameElement):[]):t.concat(i,Lu(i,[],n))}function AG(e){const t=Xd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zd(e),a=i?e.offsetWidth:n,u=i?e.offsetHeight:r,l=Ou(n)!==a||Ou(r)!==u;return l&&(n=a,r=u),{width:n,height:r,$:l}}function zd(e){return Wd(e)?e:e.contextElement}function Ud(e){const t=zd(e);if(!Zd(t))return Mu(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=AG(t);let u=(a?Ou(n.width):n.width)/r,l=(a?Ou(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const _G=Mu(0);function PG(e){const t=kn(e);return!SG()||!t.visualViewport?_G:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kn(e)?!1:t}function By(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=zd(e);let u=Mu(1);t&&(r?Wd(r)&&(u=Ud(r)):u=Ud(e));const l=TG(a,n,r)?PG(a):Mu(0);let c=(i.left+l.x)/u.x,f=(i.top+l.y)/u.y,h=i.width/u.x,p=i.height/u.y;if(a){const m=kn(a),v=r&&Wd(r)?kn(r):r;let C=m.frameElement;for(;C&&r&&v!==m;){const S=Ud(C),E=C.getBoundingClientRect(),_=Xd(C),R=E.left+(C.clientLeft+parseFloat(_.paddingLeft))*S.x,L=E.top+(C.clientTop+parseFloat(_.paddingTop))*S.y;c*=S.x,f*=S.y,h*=S.x,p*=S.y,c+=R,f+=L,C=kn(C).frameElement}}return wG({width:h,height:p,x:c,y:f})}function FG(e,t){let n=null,r;const i=Ly(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function u(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const{left:f,top:h,width:p,height:m}=e.getBoundingClientRect();if(l||t(),!p||!m)return;const v=Ru(h),C=Ru(i.clientWidth-(f+p)),S=Ru(i.clientHeight-(h+m)),E=Ru(f),R={rootMargin:-v+"px "+-C+"px "+-S+"px "+-E+"px",threshold:CG(0,xG(1,c))||1};let L=!0;function $(V){const U=V[0].intersectionRatio;if(U!==c){if(!L)return u();U?u(!1,U):r=setTimeout(()=>{u(!1,1e-7)},100)}L=!1}try{n=new IntersectionObserver($,{...R,root:i.ownerDocument})}catch{n=new IntersectionObserver($,R)}n.observe(e)}return u(!0),a}function OG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=zd(e),h=i||a?[...f?Lu(f):[],...Lu(t)]:[];h.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),a&&_.addEventListener("resize",n)});const p=f&&l?FG(f,n):null;let m=-1,v=null;u&&(v=new ResizeObserver(_=>{let[R]=_;R&&R.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),f&&!c&&v.observe(f),v.observe(t));let C,S=c?By(e):null;c&&E();function E(){const _=By(e);S&&(_.x!==S.x||_.y!==S.y||_.width!==S.width||_.height!==S.height)&&n(),S=_,C=requestAnimationFrame(E)}return n(),()=>{h.forEach(_=>{i&&_.removeEventListener("scroll",n),a&&_.removeEventListener("resize",n)}),p&&p(),v&&v.disconnect(),v=null,c&&cancelAnimationFrame(C)}}var Yd=b.useLayoutEffect,RG=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Du=function(){};function MG(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function LG(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var u in t)t.hasOwnProperty(u)&&t[u]&&a.push("".concat(MG(e,u)));return a.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var ky=function(t){return HG(t)?t.filter(Boolean):xi(t)==="object"&&t!==null?[t]:[]},jy=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=mr(t,RG);return Fe({},n)},Ft=function(t,n,r){var i=t.cx,a=t.getStyles,u=t.getClassNames,l=t.className;return{css:a(n,t),className:i(r??{},u(n,t),l)}};function $u(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function DG(e){return $u(e)?window.innerHeight:e.clientHeight}function Gy(e){return $u(e)?window.pageYOffset:e.scrollTop}function Nu(e,t){if($u(e)){window.scrollTo(0,t);return}e.scrollTop=t}function $G(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function NG(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Vu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Du,i=Gy(e),a=t-i,u=10,l=0;function c(){l+=u;var f=NG(l,i,a,n);Nu(e,f),l<n?window.requestAnimationFrame(c):r(e)}c()}function Hy(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Nu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Nu(e,Math.max(t.offsetTop-i,0))}function VG(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Wy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function BG(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Zy=!1,kG={get passive(){return Zy=!0}},Bu=typeof window<"u"?window:{};Bu.addEventListener&&Bu.removeEventListener&&(Bu.addEventListener("p",Du,kG),Bu.removeEventListener("p",Du,!1));var jG=Zy;function GG(e){return e!=null}function HG(e){return Array.isArray(e)}function ku(e,t,n){return e?t:n}function Yee(e){return e}function Jee(e){return e}var WG=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(u){var l=gr(u,1),c=l[0];return!r.includes(c)});return a.reduce(function(u,l){var c=gr(l,2),f=c[0],h=c[1];return u[f]=h,u},{})},ZG=["children","innerProps"],XG=["children","innerProps"];function zG(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,u=e.isFixedPosition,l=e.controlHeight,c=$G(n),f={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return f;var h=c.getBoundingClientRect(),p=h.height,m=n.getBoundingClientRect(),v=m.bottom,C=m.height,S=m.top,E=n.offsetParent.getBoundingClientRect(),_=E.top,R=u?window.innerHeight:DG(c),L=Gy(c),$=parseInt(getComputedStyle(n).marginBottom,10),V=parseInt(getComputedStyle(n).marginTop,10),U=_-V,X=R-S,te=U+L,de=p-L-S,Pe=v-R+L+$,ke=L+S-V,He=160;switch(i){case"auto":case"bottom":if(X>=C)return{placement:"bottom",maxHeight:t};if(de>=C&&!u)return a&&Vu(c,Pe,He),{placement:"bottom",maxHeight:t};if(!u&&de>=r||u&&X>=r){a&&Vu(c,Pe,He);var ee=u?X-$:de-$;return{placement:"bottom",maxHeight:ee}}if(i==="auto"||u){var ve=t,ye=u?U:te;return ye>=r&&(ve=Math.min(ye-$-l,t)),{placement:"top",maxHeight:ve}}if(i==="bottom")return a&&Nu(c,Pe),{placement:"bottom",maxHeight:t};break;case"top":if(U>=C)return{placement:"top",maxHeight:t};if(te>=C&&!u)return a&&Vu(c,ke,He),{placement:"top",maxHeight:t};if(!u&&te>=r||u&&U>=r){var Ee=t;return(!u&&te>=r||u&&U>=r)&&(Ee=u?U-V:te-V),a&&Vu(c,ke,He),{placement:"top",maxHeight:Ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return f}function UG(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Xy=function(t){return t==="auto"?"bottom":t},YG=function(t,n){var r,i=t.placement,a=t.theme,u=a.borderRadius,l=a.spacing,c=a.colors;return Fe((r={label:"menu"},$a(r,UG(i),"100%"),$a(r,"position","absolute"),$a(r,"width","100%"),$a(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},zy=b.createContext(null),JG=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,u=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,f=b.useContext(zy)||{},h=f.setPortalPlacement,p=b.useRef(null),m=b.useState(i),v=gr(m,2),C=v[0],S=v[1],E=b.useState(null),_=gr(E,2),R=_[0],L=_[1],$=c.spacing.controlHeight;return Yd(function(){var V=p.current;if(V){var U=u==="fixed",X=l&&!U,te=zG({maxHeight:i,menuEl:V,minHeight:r,placement:a,shouldScroll:X,isFixedPosition:U,controlHeight:$});S(te.maxHeight),L(te.placement),h==null||h(te.placement)}},[i,a,u,l,r,h,$]),n({ref:p,placerProps:Fe(Fe({},t),{},{placement:R||Xy(a),maxHeight:C})})},KG=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return Te("div",Re({},Ft(t,"menu",{menu:!0}),{ref:r},i),n)},qG=KG,QG=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},eH=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return Te("div",Re({},Ft(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Uy=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return Fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},tH=Uy,nH=Uy,rH=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=mr(t,ZG);return Te("div",Re({},Ft(Fe(Fe({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},iH=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=mr(t,XG);return Te("div",Re({},Ft(Fe(Fe({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},oH=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},aH=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,u=t.menuPlacement,l=t.menuPosition,c=b.useRef(null),f=b.useRef(null),h=b.useState(Xy(u)),p=gr(h,2),m=p[0],v=p[1],C=b.useMemo(function(){return{setPortalPlacement:v}},[]),S=b.useState(null),E=gr(S,2),_=E[0],R=E[1],L=b.useCallback(function(){if(i){var X=VG(i),te=l==="fixed"?0:window.pageYOffset,de=X[m]+te;(de!==(_==null?void 0:_.offset)||X.left!==(_==null?void 0:_.rect.left)||X.width!==(_==null?void 0:_.rect.width))&&R({offset:de,rect:X})}},[i,l,m,_==null?void 0:_.offset,_==null?void 0:_.rect.left,_==null?void 0:_.rect.width]);Yd(function(){L()},[L]);var $=b.useCallback(function(){typeof f.current=="function"&&(f.current(),f.current=null),i&&c.current&&(f.current=OG(i,c.current,L,{elementResize:"ResizeObserver"in window}))},[i,L]);Yd(function(){$()},[$]);var V=b.useCallback(function(X){c.current=X,$()},[$]);if(!n&&l!=="fixed"||!_)return null;var U=Te("div",Re({ref:V},Ft(Fe(Fe({},t),{},{offset:_.offset,position:l,rect:_.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Te(zy.Provider,{value:C},n?Wl.createPortal(U,n):U)},sH=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},uH=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return Te("div",Re({},Ft(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},lH=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,u=t.selectProps.controlShouldRenderValue;return Fe({alignItems:"center",display:i&&a&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},cH=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return Te("div",Re({},Ft(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},fH=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},dH=function(t){var n=t.children,r=t.innerProps;return Te("div",Re({},Ft(t,"indicatorsContainer",{indicators:!0}),r),n)},Yy,hH=["size"],pH=["innerProps","isRtl","size"];function gH(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var mH=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:gH},Jy=function(t){var n=t.size,r=mr(t,hH);return Te("svg",Re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mH},r))},Jd=function(t){return Te(Jy,Re({size:20},t),Te("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ky=function(t){return Te(Jy,Re({size:20},t),Te("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},qy=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,u=i.colors;return Fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:a*2,":hover":{color:r?u.neutral80:u.neutral40}})},vH=qy,bH=function(t){var n=t.children,r=t.innerProps;return Te("div",Re({},Ft(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Te(Ky,null))},yH=qy,xH=function(t){var n=t.children,r=t.innerProps;return Te("div",Re({},Ft(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Te(Jd,null))},CH=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,u=i.colors;return Fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:a*2,marginTop:a*2})},wH=function(t){var n=t.innerProps;return Te("span",Re({},n,Ft(t,"indicatorSeparator",{"indicator-separator":!0})))},SH=hG(Yy||(Yy=yG([`
|
|
124
137
|
0%, 80%, 100% { opacity: 0; }
|
|
125
138
|
40% { opacity: 1; }
|
|
126
|
-
`]))),zG=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,u=a.colors,l=a.spacing.baseUnit;return Te({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?u.neutral60:u.neutral20,padding:l*2})},kd=function(t){var n=t.delay,r=t.offset;return Pe("span",{css:Rd({animation:"".concat(XG," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},UG=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,u=pr(t,NG);return Pe("div",Re({},Tt(Te(Te({},u),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Pe(kd,{delay:0,offset:r}),Pe(kd,{delay:160,offset:!0}),Pe(kd,{delay:320,offset:!r}))},YG=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,u=a.colors,l=a.borderRadius,c=a.spacing;return Te({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?u.neutral5:u.neutral0,borderColor:r?u.neutral10:i?u.primary:u.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:i?u.primary:u.neutral30}})},JG=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,u=t.innerProps,l=t.menuIsOpen;return Pe("div",Re({ref:a},Tt(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),u,{"aria-disabled":r||void 0}),n)},KG=JG,qG=["data"],QG=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},eH=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,u=t.Heading,l=t.headingProps,c=t.innerProps,f=t.label,p=t.theme,h=t.selectProps;return Pe("div",Re({},Tt(t,"group",{group:!0}),c),Pe(u,Re({},l,{selectProps:h,theme:p,getStyles:i,getClassNames:a,cx:r}),f),Pe("div",null,n))},tH=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return Te({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},nH=function(t){var n=Cy(t);n.data;var r=pr(n,qG);return Pe("div",Re({},Tt(t,"groupHeading",{"group-heading":!0}),r))},rH=eH,iH=["innerRef","isDisabled","isHidden","inputClassName"],oH=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,u=a.spacing,l=a.colors;return Te(Te({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},aH),n?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:l.neutral80})},My={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},aH={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Te({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},My)},sH=function(t){return Te({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},My)},uH=function(t){var n=t.cx,r=t.value,i=Cy(t),a=i.innerRef,u=i.isDisabled,l=i.isHidden,c=i.inputClassName,f=pr(i,iH);return Pe("div",Re({},Tt(t,"input",{"input-container":!0}),{"data-value":r||""}),Pe("input",Re({className:n({input:!0},c),ref:a,style:sH(l),disabled:u},f)))},lH=uH,cH=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,u=r.colors;return Te({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:u.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},fH=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,u=t.cropWithEllipsis;return Te({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},dH=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,u=r.colors,l=t.isFocused;return Te({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:l?u.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},Ly=function(t){var n=t.children,r=t.innerProps;return Pe("div",r,n)},pH=Ly,hH=Ly;function gH(e){var t=e.children,n=e.innerProps;return Pe("div",Re({role:"button"},n),t||Pe(Bd,{size:14}))}var mH=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,u=t.isDisabled,l=t.removeProps,c=t.selectProps,f=r.Container,p=r.Label,h=r.Remove;return Pe(f,{data:i,innerProps:Te(Te({},Tt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),a),selectProps:c},Pe(p,{data:i,innerProps:Te({},Tt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),Pe(h,{data:i,innerProps:Te(Te({},Tt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},vH=mH,bH=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,u=t.theme,l=u.spacing,c=u.colors;return Te({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?c.primary:i?c.primary25:"transparent",color:r?c.neutral20:a?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?c.primary:c.primary50}})},yH=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,u=t.innerRef,l=t.innerProps;return Pe("div",Re({},Tt(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:u,"aria-disabled":r},l),n)},xH=yH,CH=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return Te({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},wH=function(t){var n=t.children,r=t.innerProps;return Pe("div",Re({},Tt(t,"placeholder",{placeholder:!0}),r),n)},SH=wH,IH=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,u=i.colors;return Te({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?u.neutral40:u.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},EH=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return Pe("div",Re({},Tt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},AH=EH,kr={ClearIndicator:HG,Control:KG,DropdownIndicator:jG,DownChevron:Fy,CrossIcon:Bd,Group:rH,GroupHeading:nH,IndicatorsContainer:$G,IndicatorSeparator:ZG,Input:lH,LoadingIndicator:UG,Menu:CG,MenuList:SG,MenuPortal:TG,LoadingMessage:_G,NoOptionsMessage:AG,MultiValue:vH,MultiValueContainer:pH,MultiValueLabel:hH,MultiValueRemove:gH,Option:xH,Placeholder:SH,SelectContainer:FG,SingleValue:AH,ValueContainer:MG},_H=function(t){return Te(Te({},kr),t.components)},$y=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function PH(e,t){return!!(e===t||$y(e)&&$y(t))}function TH(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!PH(e[n],t[n]))return!1;return!0}function OH(e,t){t===void 0&&(t=TH);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var u=e.apply(this,i);return n={lastResult:u,lastArgs:i,lastThis:this},u}return r.clear=function(){n=null},r}function FH(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var RH=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:FH},MH=function(t){return Pe("span",Re({css:RH},t))},Dy=MH,LH={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,u=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return u?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,u=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,u=a===void 0?"":a,l=t.selectValue,c=t.isDisabled,f=t.isSelected,p=t.isAppleDevice,h=function(C,E){return C&&C.length?"".concat(C.indexOf(E)+1," of ").concat(C.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(h(l,r),".");if(n==="menu"&&p){var m=c?" disabled":"",v="".concat(f?" selected":"").concat(m);return"".concat(u).concat(v,", ").concat(h(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},$H=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,u=t.isFocused,l=t.selectValue,c=t.selectProps,f=t.id,p=t.isAppleDevice,h=c.ariaLiveMessages,m=c.getOptionLabel,v=c.inputValue,S=c.isMulti,C=c.isOptionDisabled,E=c.isSearchable,P=c.menuIsOpen,M=c.options,$=c.screenReaderStatus,B=c.tabSelectsValue,N=c.isLoading,U=c["aria-label"],X=c["aria-live"],ee=b.useMemo(function(){return Te(Te({},LH),h||{})},[h]),fe=b.useMemo(function(){var be="";if(n&&ee.onChange){var _e=n.option,De=n.options,Ye=n.removedValue,T=n.removedValues,_=n.value,R=function(Y){return Array.isArray(Y)?null:Y},O=Ye||_e||R(_),y=O?m(O):"",H=De||T||void 0,te=H?H.map(m):[],oe=Te({isDisabled:O&&C(O,l),label:y,labels:te},n);be=ee.onChange(oe)}return be},[n,ee,C,l,m]),Oe=b.useMemo(function(){var be="",_e=r||i,De=!!(r&&l&&l.includes(r));if(_e&&ee.onFocus){var Ye={focused:_e,label:m(_e),isDisabled:C(_e,l),isSelected:De,options:a,context:_e===r?"menu":"value",selectValue:l,isAppleDevice:p};be=ee.onFocus(Ye)}return be},[r,i,m,C,ee,a,l,p]),ze=b.useMemo(function(){var be="";if(P&&M.length&&!N&&ee.onFilter){var _e=$({count:a.length});be=ee.onFilter({inputValue:v,resultsMessage:_e})}return be},[a,v,P,ee,M,$,N]),He=(n==null?void 0:n.action)==="initial-input-focus",he=b.useMemo(function(){var be="";if(ee.guidance){var _e=i?"value":P?"menu":"input";be=ee.guidance({"aria-label":U,context:_e,isDisabled:r&&C(r,l),isMulti:S,isSearchable:E,tabSelectsValue:B,isInitialFocus:He})}return be},[U,r,i,S,C,E,P,ee,l,B,He]),Ce=Pe(b.Fragment,null,Pe("span",{id:"aria-selection"},fe),Pe("span",{id:"aria-focused"},Oe),Pe("span",{id:"aria-results"},ze),Pe("span",{id:"aria-guidance"},he));return Pe(b.Fragment,null,Pe(Dy,{id:f},He&&Ce),Pe(Dy,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!He&&Ce))},DH=$H,jd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],NH=new RegExp("["+jd.map(function(e){return e.letters}).join("")+"]","g"),Ny={},Gd=0;Gd<jd.length;Gd++)for(var Hd=jd[Gd],Wd=0;Wd<Hd.letters.length;Wd++)Ny[Hd.letters[Wd]]=Hd.base;var Vy=function(t){return t.replace(NH,function(n){return Ny[n]})},VH=OH(Vy),By=function(t){return t.replace(/^\s+|\s+$/g,"")},BH=function(t){return"".concat(t.label," ").concat(t.value)},kH=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=Te({ignoreCase:!0,ignoreAccents:!0,stringify:BH,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,u=i.ignoreAccents,l=i.stringify,c=i.trim,f=i.matchFrom,p=c?By(r):r,h=c?By(l(n)):l(n);return a&&(p=p.toLowerCase(),h=h.toLowerCase()),u&&(p=VH(p),h=Vy(h)),f==="start"?h.substr(0,p.length)===p:h.indexOf(p)>-1}},jH=["innerRef"];function GH(e){var t=e.innerRef,n=pr(e,jH),r=pG(n,"onExited","in","enter","exit","appear");return Pe("input",Re({ref:t},r,{css:Rd({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var HH=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function WH(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,u=b.useRef(!1),l=b.useRef(!1),c=b.useRef(0),f=b.useRef(null),p=b.useCallback(function(E,P){if(f.current!==null){var M=f.current,$=M.scrollTop,B=M.scrollHeight,N=M.clientHeight,U=f.current,X=P>0,ee=B-N-$,fe=!1;ee>P&&u.current&&(r&&r(E),u.current=!1),X&&l.current&&(a&&a(E),l.current=!1),X&&P>ee?(n&&!u.current&&n(E),U.scrollTop=B,fe=!0,u.current=!0):!X&&-P>$&&(i&&!l.current&&i(E),U.scrollTop=0,fe=!0,l.current=!0),fe&&HH(E)}},[n,r,i,a]),h=b.useCallback(function(E){p(E,E.deltaY)},[p]),m=b.useCallback(function(E){c.current=E.changedTouches[0].clientY},[]),v=b.useCallback(function(E){var P=c.current-E.changedTouches[0].clientY;p(E,P)},[p]),S=b.useCallback(function(E){if(E){var P=cG?{passive:!1}:!1;E.addEventListener("wheel",h,P),E.addEventListener("touchstart",m,P),E.addEventListener("touchmove",v,P)}},[v,m,h]),C=b.useCallback(function(E){E&&(E.removeEventListener("wheel",h,!1),E.removeEventListener("touchstart",m,!1),E.removeEventListener("touchmove",v,!1))},[v,m,h]);return b.useEffect(function(){if(t){var E=f.current;return S(E),function(){C(E)}}},[t,S,C]),function(E){f.current=E}}var ky=["boxSizing","height","overflow","paddingRight","position"],jy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Gy(e){e.preventDefault()}function Hy(e){e.stopPropagation()}function Wy(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zy(){return"ontouchstart"in window||navigator.maxTouchPoints}var Xy=!!(typeof window<"u"&&window.document&&window.document.createElement),Ba=0,_o={capture:!1,passive:!1};function ZH(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=b.useRef({}),a=b.useRef(null),u=b.useCallback(function(c){if(Xy){var f=document.body,p=f&&f.style;if(r&&ky.forEach(function(S){var C=p&&p[S];i.current[S]=C}),r&&Ba<1){var h=parseInt(i.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,v=window.innerWidth-m+h||0;Object.keys(jy).forEach(function(S){var C=jy[S];p&&(p[S]=C)}),p&&(p.paddingRight="".concat(v,"px"))}f&&Zy()&&(f.addEventListener("touchmove",Gy,_o),c&&(c.addEventListener("touchstart",Wy,_o),c.addEventListener("touchmove",Hy,_o))),Ba+=1}},[r]),l=b.useCallback(function(c){if(Xy){var f=document.body,p=f&&f.style;Ba=Math.max(Ba-1,0),r&&Ba<1&&ky.forEach(function(h){var m=i.current[h];p&&(p[h]=m)}),f&&Zy()&&(f.removeEventListener("touchmove",Gy,_o),c&&(c.removeEventListener("touchstart",Wy,_o),c.removeEventListener("touchmove",Hy,_o)))}},[r]);return b.useEffect(function(){if(t){var c=a.current;return u(c),function(){l(c)}}},[t,u,l]),function(c){a.current=c}}function XH(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var zH=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},UH=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:XH};function YH(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,u=e.onBottomLeave,l=e.onTopArrive,c=e.onTopLeave,f=WH({isEnabled:i,onBottomArrive:a,onBottomLeave:u,onTopArrive:l,onTopLeave:c}),p=ZH({isEnabled:n}),h=function(v){f(v),p(v)};return Pe(b.Fragment,null,n&&Pe("div",{onClick:zH,css:UH}),t(h))}function JH(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var KH=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:JH},qH=function(t){var n=t.name,r=t.onFocus;return Pe("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:KH,value:"",onChange:function(){}})},QH=qH;function Zd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function eW(){return Zd(/^iPhone/i)}function zy(){return Zd(/^Mac/i)}function tW(){return Zd(/^iPad/i)||zy()&&navigator.maxTouchPoints>1}function nW(){return eW()||tW()}function rW(){return zy()||nW()}var iW=function(t){return t.label},oW=function(t){return t.label},aW=function(t){return t.value},sW=function(t){return!!t.isDisabled},uW={clearIndicator:GG,container:OG,control:YG,dropdownIndicator:kG,group:QG,groupHeading:tH,indicatorsContainer:LG,indicatorSeparator:WG,input:oH,loadingIndicator:zG,loadingMessage:EG,menu:bG,menuList:wG,menuPortal:PG,multiValue:cH,multiValueLabel:fH,multiValueRemove:dH,noOptionsMessage:IG,option:bH,placeholder:CH,singleValue:IH,valueContainer:RG},lW={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},cW=4,Uy=4,fW=38,dW=Uy*2,pW={baseUnit:Uy,controlHeight:fW,menuGutter:dW},Xd={borderRadius:cW,colors:lW,spacing:pW},hW={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Iy(),captureMenuScroll:!Iy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kH(),formatGroupLabel:iW,getOptionLabel:oW,getOptionValue:aW,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:sW,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!uG(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yy(e,t,n,r){var i=ex(e,t,n),a=tx(e,t,n),u=Qy(e,t),l=Du(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:u,value:l,index:r}}function $u(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return Yy(e,u,t,l)}).filter(function(u){return qy(e,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Yy(e,n,t,r);return qy(e,a)?a:void 0}).filter(fG)}function Jy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,md(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ky(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,md(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function gW(e,t){return Jy($u(e,t))}function qy(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,u=t.label,l=t.value;return(!rx(e)||!a)&&nx(e,{label:u,value:l,data:i},r)}function mW(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function vW(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var zd=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},Qy=function(t,n){return t.getOptionLabel(n)},Du=function(t,n){return t.getOptionValue(n)};function ex(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function tx(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Du(e,t);return n.some(function(i){return Du(e,i)===r})}function nx(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var rx=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},bW=1,ix=function(e){Ik(n,e);var t=Pk(n);function n(r){var i;if(wk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=rW(),i.controlRef=null,i.getControlRef=function(c){i.controlRef=c},i.focusedOptionRef=null,i.getFocusedOptionRef=function(c){i.focusedOptionRef=c},i.menuListRef=null,i.getMenuListRef=function(c){i.menuListRef=c},i.inputRef=null,i.getInputRef=function(c){i.inputRef=c},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(c,f){var p=i.props,h=p.onChange,m=p.name;f.name=m,i.ariaOnChange(c,f),h(c,f)},i.setValue=function(c,f,p){var h=i.props,m=h.closeMenuOnSelect,v=h.isMulti,S=h.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:S}),m&&(i.setState({inputIsHiddenAfterUpdate:!v}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(c,{action:f,option:p})},i.selectOption=function(c){var f=i.props,p=f.blurInputOnSelect,h=f.isMulti,m=f.name,v=i.state.selectValue,S=h&&i.isOptionSelected(c,v),C=i.isOptionDisabled(c,v);if(S){var E=i.getOptionValue(c);i.setValue(v.filter(function(P){return i.getOptionValue(P)!==E}),"deselect-option",c)}else if(!C)h?i.setValue([].concat(md(v),[c]),"select-option",c):i.setValue(c,"select-option");else{i.ariaOnChange(c,{action:"select-option",option:c,name:m});return}p&&i.blurInput()},i.removeValue=function(c){var f=i.props.isMulti,p=i.state.selectValue,h=i.getOptionValue(c),m=p.filter(function(S){return i.getOptionValue(S)!==h}),v=Lu(f,m,m[0]||null);i.onChange(v,{action:"remove-value",removedValue:c}),i.focusInput()},i.clearValue=function(){var c=i.state.selectValue;i.onChange(Lu(i.props.isMulti,[],null),{action:"clear",removedValues:c})},i.popValue=function(){var c=i.props.isMulti,f=i.state.selectValue,p=f[f.length-1],h=f.slice(0,f.length-1),m=Lu(c,h,h[0]||null);i.onChange(m,{action:"pop-value",removedValue:p})},i.getFocusedOptionId=function(c){return zd(i.state.focusableOptionsWithIds,c)},i.getFocusableOptionsWithIds=function(){return Ky($u(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return rG.apply(void 0,[i.props.classNamePrefix].concat(f))},i.getOptionLabel=function(c){return Qy(i.props,c)},i.getOptionValue=function(c){return Du(i.props,c)},i.getStyles=function(c,f){var p=i.props.unstyled,h=uW[c](f,p);h.boxSizing="border-box";var m=i.props.styles[c];return m?m(h,f):h},i.getClassNames=function(c,f){var p,h;return(p=(h=i.props.classNames)[c])===null||p===void 0?void 0:p.call(h,f)},i.getElementId=function(c){return"".concat(i.state.instancePrefix,"-").concat(c)},i.getComponents=function(){return _H(i.props)},i.buildCategorizedOptions=function(){return $u(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Jy(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(c,f){i.setState({ariaSelection:Te({value:c},f)})},i.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(c){i.blockOptionHover=!1},i.onControlMouseDown=function(c){if(!c.defaultPrevented){var f=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&i.onMenuClose():f&&i.openMenu("first"):(f&&(i.openAfterFocus=!0),i.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},i.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!i.props.isDisabled){var f=i.props,p=f.isMulti,h=f.menuIsOpen;i.focusInput(),h?(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()):i.openMenu("first"),c.preventDefault()}},i.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(i.clearValue(),c.preventDefault(),i.openAfterFocus=!1,c.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(c){typeof i.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&Ou(c.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(c)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(c){var f=c.touches,p=f&&f.item(0);p&&(i.initialTouchX=p.clientX,i.initialTouchY=p.clientY,i.userIsDragging=!1)},i.onTouchMove=function(c){var f=c.touches,p=f&&f.item(0);if(p){var h=Math.abs(p.clientX-i.initialTouchX),m=Math.abs(p.clientY-i.initialTouchY),v=5;i.userIsDragging=h>v||m>v}},i.onTouchEnd=function(c){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(c.target)&&i.menuListRef&&!i.menuListRef.contains(c.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(c){i.userIsDragging||i.onControlMouseDown(c)},i.onClearIndicatorTouchEnd=function(c){i.userIsDragging||i.onClearIndicatorMouseDown(c)},i.onDropdownIndicatorTouchEnd=function(c){i.userIsDragging||i.onDropdownIndicatorMouseDown(c)},i.handleInputChange=function(c){var f=i.props.inputValue,p=c.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(p,{action:"input-change",prevInputValue:f}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(c){i.props.onFocus&&i.props.onFocus(c),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(c){var f=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(c),i.onInputChange("",{action:"input-blur",prevInputValue:f}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(c){if(!(i.blockOptionHover||i.state.focusedOption===c)){var f=i.getFocusableOptions(),p=f.indexOf(c);i.setState({focusedOption:c,focusedOptionId:p>-1?i.getFocusedOptionId(c):null})}},i.shouldHideSelectedOptions=function(){return rx(i.props)},i.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),i.focus()},i.onKeyDown=function(c){var f=i.props,p=f.isMulti,h=f.backspaceRemovesValue,m=f.escapeClearsValue,v=f.inputValue,S=f.isClearable,C=f.isDisabled,E=f.menuIsOpen,P=f.onKeyDown,M=f.tabSelectsValue,$=f.openMenuOnFocus,B=i.state,N=B.focusedOption,U=B.focusedValue,X=B.selectValue;if(!C&&!(typeof P=="function"&&(P(c),c.defaultPrevented))){switch(i.blockOptionHover=!0,c.key){case"ArrowLeft":if(!p||v)return;i.focusValue("previous");break;case"ArrowRight":if(!p||v)return;i.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(U)i.removeValue(U);else{if(!h)return;p?i.popValue():S&&i.clearValue()}break;case"Tab":if(i.isComposing||c.shiftKey||!E||!M||!N||$&&i.isOptionSelected(N,X))return;i.selectOption(N);break;case"Enter":if(c.keyCode===229)break;if(E){if(!N||i.isComposing)return;i.selectOption(N);break}return;case"Escape":E?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:v}),i.onMenuClose()):S&&m&&i.clearValue();break;case" ":if(v)return;if(!E){i.openMenu("first");break}if(!N)return;i.selectOption(N);break;case"ArrowUp":E?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":E?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!E)return;i.focusOption("pageup");break;case"PageDown":if(!E)return;i.focusOption("pagedown");break;case"Home":if(!E)return;i.focusOption("first");break;case"End":if(!E)return;i.focusOption("last");break;default:return}c.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++bW),i.state.selectValue=xy(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=u[l],i.state.focusedOptionId=zd(a,u[l])}return i}return Sk(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Sy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,u=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!u&&i.isDisabled||c&&l&&!i.menuIsOpen)&&this.focusInput(),c&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Sy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,u=this.state,l=u.selectValue,c=u.isFocused,f=this.buildFocusableOptions(),p=i==="first"?0:f.length-1;if(!this.props.isMulti){var h=f.indexOf(l[0]);h>-1&&(p=h)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:f[p],focusedOptionId:this.getFocusedOptionId(f[p])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,u=a.selectValue,l=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=u.indexOf(l);l||(c=-1);var f=u.length-1,p=-1;if(u.length){switch(i){case"previous":c===0?p=0:c===-1?p=f:p=c-1;break;case"next":c>-1&&c<f&&(p=c+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:u[p]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,f=l.indexOf(u);u||(f=-1),i==="up"?c=f>0?f-1:l.length-1:i==="down"?c=(f+1)%l.length:i==="pageup"?(c=f-a,c<0&&(c=0)):i==="pagedown"?(c=f+a,c>l.length-1&&(c=l.length-1)):i==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xd):Te(Te({},Xd),this.props.theme):Xd}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,u=this.getStyles,l=this.getClassNames,c=this.getValue,f=this.selectOption,p=this.setValue,h=this.props,m=h.isMulti,v=h.isRtl,S=h.options,C=this.hasValue();return{clearValue:i,cx:a,getStyles:u,getClassNames:l,getValue:c,hasValue:C,isMulti:m,isRtl:v,options:S,selectOption:f,selectProps:h,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,u=i.isMulti;return a===void 0?u:a}},{key:"isOptionDisabled",value:function(i,a){return ex(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return tx(this.props,i,a)}},{key:"filterOption",value:function(i,a){return nx(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,u=i.isSearchable,l=i.inputId,c=i.inputValue,f=i.tabIndex,p=i.form,h=i.menuIsOpen,m=i.required,v=this.getComponents(),S=v.Input,C=this.state,E=C.inputIsHidden,P=C.ariaSelection,M=this.commonProps,$=l||this.getElementId("input"),B=Te(Te(Te({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},h&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?re.createElement(S,Re({},M,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:$,innerRef:this.getInputRef,isDisabled:a,isHidden:E,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:f,form:p,type:"text",value:c},B)):re.createElement(GH,Re({id:$,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Tu,onFocus:this.onInputFocus,disabled:a,tabIndex:f,inputMode:"none",form:p,value:""},B))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),u=a.MultiValue,l=a.MultiValueContainer,c=a.MultiValueLabel,f=a.MultiValueRemove,p=a.SingleValue,h=a.Placeholder,m=this.commonProps,v=this.props,S=v.controlShouldRenderValue,C=v.isDisabled,E=v.isMulti,P=v.inputValue,M=v.placeholder,$=this.state,B=$.selectValue,N=$.focusedValue,U=$.isFocused;if(!this.hasValue()||!S)return P?null:re.createElement(h,Re({},m,{key:"placeholder",isDisabled:C,isFocused:U,innerProps:{id:this.getElementId("placeholder")}}),M);if(E)return B.map(function(ee,fe){var Oe=ee===N,ze="".concat(i.getOptionLabel(ee),"-").concat(i.getOptionValue(ee));return re.createElement(u,Re({},m,{components:{Container:l,Label:c,Remove:f},isFocused:Oe,isDisabled:C,key:ze,index:fe,removeProps:{onClick:function(){return i.removeValue(ee)},onTouchEnd:function(){return i.removeValue(ee)},onMouseDown:function(he){he.preventDefault()}},data:ee}),i.formatOptionLabel(ee,"value"))});if(P)return null;var X=B[0];return re.createElement(p,Re({},m,{data:X,isDisabled:C}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,u=this.commonProps,l=this.props,c=l.isDisabled,f=l.isLoading,p=this.state.isFocused;if(!this.isClearable()||!a||c||!this.hasValue()||f)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(a,Re({},u,{innerProps:h,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,u=this.commonProps,l=this.props,c=l.isDisabled,f=l.isLoading,p=this.state.isFocused;if(!a||!f)return null;var h={"aria-hidden":"true"};return re.createElement(a,Re({},u,{innerProps:h,isDisabled:c,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,u=i.IndicatorSeparator;if(!a||!u)return null;var l=this.commonProps,c=this.props.isDisabled,f=this.state.isFocused;return re.createElement(u,Re({},l,{isDisabled:c,isFocused:f}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var u=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,f={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(a,Re({},u,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),u=a.Group,l=a.GroupHeading,c=a.Menu,f=a.MenuList,p=a.MenuPortal,h=a.LoadingMessage,m=a.NoOptionsMessage,v=a.Option,S=this.commonProps,C=this.state.focusedOption,E=this.props,P=E.captureMenuScroll,M=E.inputValue,$=E.isLoading,B=E.loadingMessage,N=E.minMenuHeight,U=E.maxMenuHeight,X=E.menuIsOpen,ee=E.menuPlacement,fe=E.menuPosition,Oe=E.menuPortalTarget,ze=E.menuShouldBlockScroll,He=E.menuShouldScrollIntoView,he=E.noOptionsMessage,Ce=E.onMenuScrollToTop,be=E.onMenuScrollToBottom;if(!X)return null;var _e=function(y,H){var te=y.type,oe=y.data,z=y.isDisabled,Y=y.isSelected,G=y.label,q=y.value,se=C===oe,J=z?void 0:function(){return i.onOptionHover(oe)},ue=z?void 0:function(){return i.selectOption(oe)},Q="".concat(i.getElementId("option"),"-").concat(H),de={id:Q,onClick:ue,onMouseMove:J,onMouseOver:J,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Y};return re.createElement(v,Re({},S,{innerProps:de,data:oe,isDisabled:z,isSelected:Y,key:Q,label:G,type:te,value:q,isFocused:se,innerRef:se?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(y.data,"menu"))},De;if(this.hasOptions())De=this.getCategorizedOptions().map(function(O){if(O.type==="group"){var y=O.data,H=O.options,te=O.index,oe="".concat(i.getElementId("group"),"-").concat(te),z="".concat(oe,"-heading");return re.createElement(u,Re({},S,{key:oe,data:y,options:H,Heading:l,headingProps:{id:z,data:O.data},label:i.formatGroupLabel(O.data)}),O.options.map(function(Y){return _e(Y,"".concat(te,"-").concat(Y.index))}))}else if(O.type==="option")return _e(O,"".concat(O.index))});else if($){var Ye=B({inputValue:M});if(Ye===null)return null;De=re.createElement(h,S,Ye)}else{var T=he({inputValue:M});if(T===null)return null;De=re.createElement(m,S,T)}var _={minMenuHeight:N,maxMenuHeight:U,menuPlacement:ee,menuPosition:fe,menuShouldScrollIntoView:He},R=re.createElement(yG,Re({},S,_),function(O){var y=O.ref,H=O.placerProps,te=H.placement,oe=H.maxHeight;return re.createElement(c,Re({},S,_,{innerRef:y,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:$,placement:te}),re.createElement(YH,{captureEnabled:P,onTopArrive:Ce,onBottomArrive:be,lockEnabled:ze},function(z){return re.createElement(f,Re({},S,{innerRef:function(G){i.getMenuListRef(G),z(G)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:i.getElementId("listbox")},isLoading:$,maxHeight:oe,focusedOption:C}),De)}))});return Oe||fe==="fixed"?re.createElement(p,Re({},S,{appendTo:Oe,controlElement:this.controlRef,menuPlacement:ee,menuPosition:fe}),R):R}},{key:"renderFormField",value:function(){var i=this,a=this.props,u=a.delimiter,l=a.isDisabled,c=a.isMulti,f=a.name,p=a.required,h=this.state.selectValue;if(p&&!this.hasValue()&&!l)return re.createElement(QH,{name:f,onFocus:this.onValueInputFocus});if(!(!f||l))if(c)if(u){var m=h.map(function(C){return i.getOptionValue(C)}).join(u);return re.createElement("input",{name:f,type:"hidden",value:m})}else{var v=h.length>0?h.map(function(C,E){return re.createElement("input",{key:"i-".concat(E),name:f,type:"hidden",value:i.getOptionValue(C)})}):re.createElement("input",{name:f,type:"hidden",value:""});return re.createElement("div",null,v)}else{var S=h[0]?this.getOptionValue(h[0]):"";return re.createElement("input",{name:f,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,u=a.ariaSelection,l=a.focusedOption,c=a.focusedValue,f=a.isFocused,p=a.selectValue,h=this.getFocusableOptions();return re.createElement(DH,Re({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:c,isFocused:f,selectValue:p,focusableOptions:h,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,c=i.ValueContainer,f=this.props,p=f.className,h=f.id,m=f.isDisabled,v=f.menuIsOpen,S=this.state.isFocused,C=this.commonProps=this.getCommonProps();return re.createElement(l,Re({},C,{className:p,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:S}),this.renderLiveRegion(),re.createElement(a,Re({},C,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:S,menuIsOpen:v}),re.createElement(c,Re({},C,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),re.createElement(u,Re({},C,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var u=a.prevProps,l=a.clearFocusValueOnUpdate,c=a.inputIsHiddenAfterUpdate,f=a.ariaSelection,p=a.isFocused,h=a.prevWasFocused,m=a.instancePrefix,v=i.options,S=i.value,C=i.menuIsOpen,E=i.inputValue,P=i.isMulti,M=xy(S),$={};if(u&&(S!==u.value||v!==u.options||C!==u.menuIsOpen||E!==u.inputValue)){var B=C?gW(i,M):[],N=C?Ky($u(i,M),"".concat(m,"-option")):[],U=l?mW(a,M):null,X=vW(a,B),ee=zd(N,X);$={selectValue:M,focusedOption:X,focusedOptionId:ee,focusableOptionsWithIds:N,focusedValue:U,clearFocusValueOnUpdate:!1}}var fe=c!=null&&i!==u?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},Oe=f,ze=p&&h;return p&&!ze&&(Oe={value:Lu(P,M,M[0]||null),options:M,action:"initial-input-focus"},ze=!h),(f==null?void 0:f.action)==="initial-input-focus"&&(Oe=null),Te(Te(Te({},$),fe),{},{prevProps:i,ariaSelection:Oe,prevWasFocused:ze})}}]),n}(b.Component);ix.defaultProps=hW;var yW=b.forwardRef(function(e,t){var n=Ck(e);return re.createElement(ix,Re({ref:t},n))}),xW=yW;function CW({selectProps:e,...t}){const{label:n,error:r,name:i}=e,{isDisabled:a,isFocused:u}=t;return F.jsxs(R1,{disabled:a,error:r,children:[F.jsx(kr.SelectContainer,{...t}),F.jsx(dd,{htmlFor:i,disabled:a,error:r,focused:u,className:et({"text-brand-primary":u}),children:n})]})}function wW(e){return F.jsx(kr.Control,{className:"text-sm bg-transparent border-none focus-within:ring-0 focus:ring-0",...e})}function SW(e){return F.jsx(kr.ValueContainer,{className:"items-end",...e})}function IW(e){return F.jsx(kr.Placeholder,{className:"text-sm translate-y-1",...e})}function EW(e){return F.jsx(kr.Input,{className:"py-0 text-sm translate-y-1 text-brand-text children:text-brand-text children:text-sm",...e})}function AW({innerRef:e,innerProps:t,selectProps:n}){const{menuIsOpen:r}=n;return F.jsx(F.Fragment,{children:r?F.jsx(k2,{ref:e,className:"w-3 h-3 mx-3 text-brand-dark-gray",...t}):F.jsx(j2,{ref:e,className:"w-3 h-3 mx-3 text-brand-dark-gray",...t})})}function _W(e){return F.jsx(kr.SingleValue,{className:"translate-y-1",...e})}function PW(e){const{isSelected:t}=e;return F.jsx(kr.Option,{className:et("text-sm py-1 px-2","hover:bg-brand-tertiary-light hover:text-brand-primary",{"bg-brand-primary text-white":t}),...e})}const TW=({components:e,helper:t,error:n,...r})=>F.jsxs("div",{children:[F.jsx(xW,{isClearable:!0,noOptionsMessage:()=>"Nenhuma opção encontrada",styles:{option:(i,{isSelected:a})=>({...i,zIndex:9999,backgroundColor:a?"#0093B2":i.backgroundColor,color:a?"white":"inherit",":active":{backgroundColor:"#0093B2"},":hover":{color:"#0093B2",backgroundColor:"#BFF0FB"}})},components:{Control:wW,DropdownIndicator:AW,Input:EW,SelectContainer:CW,ValueContainer:SW,Placeholder:IW,SingleValue:_W,Option:PW,...e},...r}),t?F.jsx(ad,{children:t}):null,n?F.jsx(od,{children:n}):null]});/**
|
|
139
|
+
`]))),IH=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,u=a.colors,l=a.spacing.baseUnit;return Fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?u.neutral60:u.neutral20,padding:l*2})},Kd=function(t){var n=t.delay,r=t.offset;return Te("span",{css:Hd({animation:"".concat(SH," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},EH=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,u=mr(t,pH);return Te("div",Re({},Ft(Fe(Fe({},u),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Te(Kd,{delay:0,offset:r}),Te(Kd,{delay:160,offset:!0}),Te(Kd,{delay:320,offset:!r}))},AH=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,u=a.colors,l=a.borderRadius,c=a.spacing;return Fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?u.neutral5:u.neutral0,borderColor:r?u.neutral10:i?u.primary:u.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:i?u.primary:u.neutral30}})},_H=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,u=t.innerProps,l=t.menuIsOpen;return Te("div",Re({ref:a},Ft(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),u,{"aria-disabled":r||void 0}),n)},PH=_H,TH=["data"],FH=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},OH=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,u=t.Heading,l=t.headingProps,c=t.innerProps,f=t.label,h=t.theme,p=t.selectProps;return Te("div",Re({},Ft(t,"group",{group:!0}),c),Te(u,Re({},l,{selectProps:p,theme:h,getStyles:i,getClassNames:a,cx:r}),f),Te("div",null,n))},RH=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return Fe({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},MH=function(t){var n=jy(t);n.data;var r=mr(n,TH);return Te("div",Re({},Ft(t,"groupHeading",{"group-heading":!0}),r))},LH=OH,DH=["innerRef","isDisabled","isHidden","inputClassName"],$H=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,u=a.spacing,l=a.colors;return Fe(Fe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},NH),n?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:l.neutral80})},Qy={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NH={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qy)},VH=function(t){return Fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Qy)},BH=function(t){var n=t.cx,r=t.value,i=jy(t),a=i.innerRef,u=i.isDisabled,l=i.isHidden,c=i.inputClassName,f=mr(i,DH);return Te("div",Re({},Ft(t,"input",{"input-container":!0}),{"data-value":r||""}),Te("input",Re({className:n({input:!0},c),ref:a,style:VH(l),disabled:u},f)))},kH=BH,jH=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,u=r.colors;return Fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:u.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},GH=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,u=t.cropWithEllipsis;return Fe({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},HH=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,u=r.colors,l=t.isFocused;return Fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:l?u.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},ex=function(t){var n=t.children,r=t.innerProps;return Te("div",r,n)},WH=ex,ZH=ex;function XH(e){var t=e.children,n=e.innerProps;return Te("div",Re({role:"button"},n),t||Te(Jd,{size:14}))}var zH=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,u=t.isDisabled,l=t.removeProps,c=t.selectProps,f=r.Container,h=r.Label,p=r.Remove;return Te(f,{data:i,innerProps:Fe(Fe({},Ft(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),a),selectProps:c},Te(h,{data:i,innerProps:Fe({},Ft(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),Te(p,{data:i,innerProps:Fe(Fe({},Ft(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},UH=zH,YH=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,u=t.theme,l=u.spacing,c=u.colors;return Fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?c.primary:i?c.primary25:"transparent",color:r?c.neutral20:a?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?c.primary:c.primary50}})},JH=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,u=t.innerRef,l=t.innerProps;return Te("div",Re({},Ft(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:u,"aria-disabled":r},l),n)},KH=JH,qH=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return Fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},QH=function(t){var n=t.children,r=t.innerProps;return Te("div",Re({},Ft(t,"placeholder",{placeholder:!0}),r),n)},eW=QH,tW=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,u=i.colors;return Fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?u.neutral40:u.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},nW=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return Te("div",Re({},Ft(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},rW=nW,Gr={ClearIndicator:xH,Control:PH,DropdownIndicator:bH,DownChevron:Ky,CrossIcon:Jd,Group:LH,GroupHeading:MH,IndicatorsContainer:dH,IndicatorSeparator:wH,Input:kH,LoadingIndicator:EH,Menu:qG,MenuList:eH,MenuPortal:aH,LoadingMessage:iH,NoOptionsMessage:rH,MultiValue:UH,MultiValueContainer:WH,MultiValueLabel:ZH,MultiValueRemove:XH,Option:KH,Placeholder:eW,SelectContainer:uH,SingleValue:rW,ValueContainer:cH},iW=function(t){return Fe(Fe({},Gr),t.components)},tx=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function oW(e,t){return!!(e===t||tx(e)&&tx(t))}function aW(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!oW(e[n],t[n]))return!1;return!0}function sW(e,t){t===void 0&&(t=aW);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var u=e.apply(this,i);return n={lastResult:u,lastArgs:i,lastThis:this},u}return r.clear=function(){n=null},r}function uW(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var lW=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:uW},cW=function(t){return Te("span",Re({css:lW},t))},nx=cW,fW={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,u=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return u?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,u=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,u=a===void 0?"":a,l=t.selectValue,c=t.isDisabled,f=t.isSelected,h=t.isAppleDevice,p=function(S,E){return S&&S.length?"".concat(S.indexOf(E)+1," of ").concat(S.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(p(l,r),".");if(n==="menu"&&h){var m=c?" disabled":"",v="".concat(f?" selected":"").concat(m);return"".concat(u).concat(v,", ").concat(p(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},dW=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,u=t.isFocused,l=t.selectValue,c=t.selectProps,f=t.id,h=t.isAppleDevice,p=c.ariaLiveMessages,m=c.getOptionLabel,v=c.inputValue,C=c.isMulti,S=c.isOptionDisabled,E=c.isSearchable,_=c.menuIsOpen,R=c.options,L=c.screenReaderStatus,$=c.tabSelectsValue,V=c.isLoading,U=c["aria-label"],X=c["aria-live"],te=b.useMemo(function(){return Fe(Fe({},fW),p||{})},[p]),de=b.useMemo(function(){var ye="";if(n&&te.onChange){var Ee=n.option,Ve=n.options,Ke=n.removedValue,F=n.removedValues,T=n.value,M=function(Y){return Array.isArray(Y)?null:Y},O=Ke||Ee||M(T),y=O?m(O):"",H=Ve||F||void 0,ne=H?H.map(m):[],ae=Fe({isDisabled:O&&S(O,l),label:y,labels:ne},n);ye=te.onChange(ae)}return ye},[n,te,S,l,m]),Pe=b.useMemo(function(){var ye="",Ee=r||i,Ve=!!(r&&l&&l.includes(r));if(Ee&&te.onFocus){var Ke={focused:Ee,label:m(Ee),isDisabled:S(Ee,l),isSelected:Ve,options:a,context:Ee===r?"menu":"value",selectValue:l,isAppleDevice:h};ye=te.onFocus(Ke)}return ye},[r,i,m,S,te,a,l,h]),ke=b.useMemo(function(){var ye="";if(_&&R.length&&!V&&te.onFilter){var Ee=L({count:a.length});ye=te.onFilter({inputValue:v,resultsMessage:Ee})}return ye},[a,v,_,te,R,L,V]),He=(n==null?void 0:n.action)==="initial-input-focus",ee=b.useMemo(function(){var ye="";if(te.guidance){var Ee=i?"value":_?"menu":"input";ye=te.guidance({"aria-label":U,context:Ee,isDisabled:r&&S(r,l),isMulti:C,isSearchable:E,tabSelectsValue:$,isInitialFocus:He})}return ye},[U,r,i,C,S,E,_,te,l,$,He]),ve=Te(b.Fragment,null,Te("span",{id:"aria-selection"},de),Te("span",{id:"aria-focused"},Pe),Te("span",{id:"aria-results"},ke),Te("span",{id:"aria-guidance"},ee));return Te(b.Fragment,null,Te(nx,{id:f},He&&ve),Te(nx,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!He&&ve))},hW=dW,qd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pW=new RegExp("["+qd.map(function(e){return e.letters}).join("")+"]","g"),rx={},Qd=0;Qd<qd.length;Qd++)for(var eh=qd[Qd],th=0;th<eh.letters.length;th++)rx[eh.letters[th]]=eh.base;var ix=function(t){return t.replace(pW,function(n){return rx[n]})},gW=sW(ix),ox=function(t){return t.replace(/^\s+|\s+$/g,"")},mW=function(t){return"".concat(t.label," ").concat(t.value)},vW=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=Fe({ignoreCase:!0,ignoreAccents:!0,stringify:mW,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,u=i.ignoreAccents,l=i.stringify,c=i.trim,f=i.matchFrom,h=c?ox(r):r,p=c?ox(l(n)):l(n);return a&&(h=h.toLowerCase(),p=p.toLowerCase()),u&&(h=gW(h),p=ix(p)),f==="start"?p.substr(0,h.length)===h:p.indexOf(h)>-1}},bW=["innerRef"];function yW(e){var t=e.innerRef,n=mr(e,bW),r=WG(n,"onExited","in","enter","exit","appear");return Te("input",Re({ref:t},r,{css:Hd({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var xW=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function CW(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,u=b.useRef(!1),l=b.useRef(!1),c=b.useRef(0),f=b.useRef(null),h=b.useCallback(function(E,_){if(f.current!==null){var R=f.current,L=R.scrollTop,$=R.scrollHeight,V=R.clientHeight,U=f.current,X=_>0,te=$-V-L,de=!1;te>_&&u.current&&(r&&r(E),u.current=!1),X&&l.current&&(a&&a(E),l.current=!1),X&&_>te?(n&&!u.current&&n(E),U.scrollTop=$,de=!0,u.current=!0):!X&&-_>L&&(i&&!l.current&&i(E),U.scrollTop=0,de=!0,l.current=!0),de&&xW(E)}},[n,r,i,a]),p=b.useCallback(function(E){h(E,E.deltaY)},[h]),m=b.useCallback(function(E){c.current=E.changedTouches[0].clientY},[]),v=b.useCallback(function(E){var _=c.current-E.changedTouches[0].clientY;h(E,_)},[h]),C=b.useCallback(function(E){if(E){var _=jG?{passive:!1}:!1;E.addEventListener("wheel",p,_),E.addEventListener("touchstart",m,_),E.addEventListener("touchmove",v,_)}},[v,m,p]),S=b.useCallback(function(E){E&&(E.removeEventListener("wheel",p,!1),E.removeEventListener("touchstart",m,!1),E.removeEventListener("touchmove",v,!1))},[v,m,p]);return b.useEffect(function(){if(t){var E=f.current;return C(E),function(){S(E)}}},[t,C,S]),function(E){f.current=E}}var ax=["boxSizing","height","overflow","paddingRight","position"],sx={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ux(e){e.preventDefault()}function lx(e){e.stopPropagation()}function cx(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fx(){return"ontouchstart"in window||navigator.maxTouchPoints}var dx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ha=0,Fo={capture:!1,passive:!1};function wW(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=b.useRef({}),a=b.useRef(null),u=b.useCallback(function(c){if(dx){var f=document.body,h=f&&f.style;if(r&&ax.forEach(function(C){var S=h&&h[C];i.current[C]=S}),r&&Ha<1){var p=parseInt(i.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,v=window.innerWidth-m+p||0;Object.keys(sx).forEach(function(C){var S=sx[C];h&&(h[C]=S)}),h&&(h.paddingRight="".concat(v,"px"))}f&&fx()&&(f.addEventListener("touchmove",ux,Fo),c&&(c.addEventListener("touchstart",cx,Fo),c.addEventListener("touchmove",lx,Fo))),Ha+=1}},[r]),l=b.useCallback(function(c){if(dx){var f=document.body,h=f&&f.style;Ha=Math.max(Ha-1,0),r&&Ha<1&&ax.forEach(function(p){var m=i.current[p];h&&(h[p]=m)}),f&&fx()&&(f.removeEventListener("touchmove",ux,Fo),c&&(c.removeEventListener("touchstart",cx,Fo),c.removeEventListener("touchmove",lx,Fo)))}},[r]);return b.useEffect(function(){if(t){var c=a.current;return u(c),function(){l(c)}}},[t,u,l]),function(c){a.current=c}}function SW(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var IW=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},EW=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:SW};function AW(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,u=e.onBottomLeave,l=e.onTopArrive,c=e.onTopLeave,f=CW({isEnabled:i,onBottomArrive:a,onBottomLeave:u,onTopArrive:l,onTopLeave:c}),h=wW({isEnabled:n}),p=function(v){f(v),h(v)};return Te(b.Fragment,null,n&&Te("div",{onClick:IW,css:EW}),t(p))}function _W(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var PW=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:_W},TW=function(t){var n=t.name,r=t.onFocus;return Te("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:PW,value:"",onChange:function(){}})},FW=TW;function nh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function OW(){return nh(/^iPhone/i)}function hx(){return nh(/^Mac/i)}function RW(){return nh(/^iPad/i)||hx()&&navigator.maxTouchPoints>1}function MW(){return OW()||RW()}function LW(){return hx()||MW()}var DW=function(t){return t.label},$W=function(t){return t.label},NW=function(t){return t.value},VW=function(t){return!!t.isDisabled},BW={clearIndicator:yH,container:sH,control:AH,dropdownIndicator:vH,group:FH,groupHeading:RH,indicatorsContainer:fH,indicatorSeparator:CH,input:$H,loadingIndicator:IH,loadingMessage:nH,menu:YG,menuList:QG,menuPortal:oH,multiValue:jH,multiValueLabel:GH,multiValueRemove:HH,noOptionsMessage:tH,option:YH,placeholder:qH,singleValue:tW,valueContainer:lH},kW={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},jW=4,px=4,GW=38,HW=px*2,WW={baseUnit:px,controlHeight:GW,menuGutter:HW},rh={borderRadius:jW,colors:kW,spacing:WW},ZW={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Wy(),captureMenuScroll:!Wy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:vW(),formatGroupLabel:DW,getOptionLabel:$W,getOptionValue:NW,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:VW,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!BG(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gx(e,t,n,r){var i=xx(e,t,n),a=Cx(e,t,n),u=yx(e,t),l=Gu(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:u,value:l,index:r}}function ju(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return gx(e,u,t,l)}).filter(function(u){return bx(e,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=gx(e,n,t,r);return bx(e,a)?a:void 0}).filter(GG)}function mx(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,_d(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function vx(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,_d(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function XW(e,t){return mx(ju(e,t))}function bx(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,u=t.label,l=t.value;return(!Sx(e)||!a)&&wx(e,{label:u,value:l,data:i},r)}function zW(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function UW(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var ih=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},yx=function(t,n){return t.getOptionLabel(n)},Gu=function(t,n){return t.getOptionValue(n)};function xx(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Cx(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Gu(e,t);return n.some(function(i){return Gu(e,i)===r})}function wx(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Sx=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},YW=1,Ix=function(e){tj(n,e);var t=oj(n);function n(r){var i;if(Qk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=LW(),i.controlRef=null,i.getControlRef=function(c){i.controlRef=c},i.focusedOptionRef=null,i.getFocusedOptionRef=function(c){i.focusedOptionRef=c},i.menuListRef=null,i.getMenuListRef=function(c){i.menuListRef=c},i.inputRef=null,i.getInputRef=function(c){i.inputRef=c},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(c,f){var h=i.props,p=h.onChange,m=h.name;f.name=m,i.ariaOnChange(c,f),p(c,f)},i.setValue=function(c,f,h){var p=i.props,m=p.closeMenuOnSelect,v=p.isMulti,C=p.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:C}),m&&(i.setState({inputIsHiddenAfterUpdate:!v}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(c,{action:f,option:h})},i.selectOption=function(c){var f=i.props,h=f.blurInputOnSelect,p=f.isMulti,m=f.name,v=i.state.selectValue,C=p&&i.isOptionSelected(c,v),S=i.isOptionDisabled(c,v);if(C){var E=i.getOptionValue(c);i.setValue(v.filter(function(_){return i.getOptionValue(_)!==E}),"deselect-option",c)}else if(!S)p?i.setValue([].concat(_d(v),[c]),"select-option",c):i.setValue(c,"select-option");else{i.ariaOnChange(c,{action:"select-option",option:c,name:m});return}h&&i.blurInput()},i.removeValue=function(c){var f=i.props.isMulti,h=i.state.selectValue,p=i.getOptionValue(c),m=h.filter(function(C){return i.getOptionValue(C)!==p}),v=ku(f,m,m[0]||null);i.onChange(v,{action:"remove-value",removedValue:c}),i.focusInput()},i.clearValue=function(){var c=i.state.selectValue;i.onChange(ku(i.props.isMulti,[],null),{action:"clear",removedValues:c})},i.popValue=function(){var c=i.props.isMulti,f=i.state.selectValue,h=f[f.length-1],p=f.slice(0,f.length-1),m=ku(c,p,p[0]||null);i.onChange(m,{action:"pop-value",removedValue:h})},i.getFocusedOptionId=function(c){return ih(i.state.focusableOptionsWithIds,c)},i.getFocusableOptionsWithIds=function(){return vx(ju(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var c=arguments.length,f=new Array(c),h=0;h<c;h++)f[h]=arguments[h];return LG.apply(void 0,[i.props.classNamePrefix].concat(f))},i.getOptionLabel=function(c){return yx(i.props,c)},i.getOptionValue=function(c){return Gu(i.props,c)},i.getStyles=function(c,f){var h=i.props.unstyled,p=BW[c](f,h);p.boxSizing="border-box";var m=i.props.styles[c];return m?m(p,f):p},i.getClassNames=function(c,f){var h,p;return(h=(p=i.props.classNames)[c])===null||h===void 0?void 0:h.call(p,f)},i.getElementId=function(c){return"".concat(i.state.instancePrefix,"-").concat(c)},i.getComponents=function(){return iW(i.props)},i.buildCategorizedOptions=function(){return ju(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return mx(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(c,f){i.setState({ariaSelection:Fe({value:c},f)})},i.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(c){i.blockOptionHover=!1},i.onControlMouseDown=function(c){if(!c.defaultPrevented){var f=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&i.onMenuClose():f&&i.openMenu("first"):(f&&(i.openAfterFocus=!0),i.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},i.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!i.props.isDisabled){var f=i.props,h=f.isMulti,p=f.menuIsOpen;i.focusInput(),p?(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()):i.openMenu("first"),c.preventDefault()}},i.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(i.clearValue(),c.preventDefault(),i.openAfterFocus=!1,c.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(c){typeof i.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&$u(c.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(c)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(c){var f=c.touches,h=f&&f.item(0);h&&(i.initialTouchX=h.clientX,i.initialTouchY=h.clientY,i.userIsDragging=!1)},i.onTouchMove=function(c){var f=c.touches,h=f&&f.item(0);if(h){var p=Math.abs(h.clientX-i.initialTouchX),m=Math.abs(h.clientY-i.initialTouchY),v=5;i.userIsDragging=p>v||m>v}},i.onTouchEnd=function(c){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(c.target)&&i.menuListRef&&!i.menuListRef.contains(c.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(c){i.userIsDragging||i.onControlMouseDown(c)},i.onClearIndicatorTouchEnd=function(c){i.userIsDragging||i.onClearIndicatorMouseDown(c)},i.onDropdownIndicatorTouchEnd=function(c){i.userIsDragging||i.onDropdownIndicatorMouseDown(c)},i.handleInputChange=function(c){var f=i.props.inputValue,h=c.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(h,{action:"input-change",prevInputValue:f}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(c){i.props.onFocus&&i.props.onFocus(c),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(c){var f=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(c),i.onInputChange("",{action:"input-blur",prevInputValue:f}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(c){if(!(i.blockOptionHover||i.state.focusedOption===c)){var f=i.getFocusableOptions(),h=f.indexOf(c);i.setState({focusedOption:c,focusedOptionId:h>-1?i.getFocusedOptionId(c):null})}},i.shouldHideSelectedOptions=function(){return Sx(i.props)},i.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),i.focus()},i.onKeyDown=function(c){var f=i.props,h=f.isMulti,p=f.backspaceRemovesValue,m=f.escapeClearsValue,v=f.inputValue,C=f.isClearable,S=f.isDisabled,E=f.menuIsOpen,_=f.onKeyDown,R=f.tabSelectsValue,L=f.openMenuOnFocus,$=i.state,V=$.focusedOption,U=$.focusedValue,X=$.selectValue;if(!S&&!(typeof _=="function"&&(_(c),c.defaultPrevented))){switch(i.blockOptionHover=!0,c.key){case"ArrowLeft":if(!h||v)return;i.focusValue("previous");break;case"ArrowRight":if(!h||v)return;i.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(U)i.removeValue(U);else{if(!p)return;h?i.popValue():C&&i.clearValue()}break;case"Tab":if(i.isComposing||c.shiftKey||!E||!R||!V||L&&i.isOptionSelected(V,X))return;i.selectOption(V);break;case"Enter":if(c.keyCode===229)break;if(E){if(!V||i.isComposing)return;i.selectOption(V);break}return;case"Escape":E?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:v}),i.onMenuClose()):C&&m&&i.clearValue();break;case" ":if(v)return;if(!E){i.openMenu("first");break}if(!V)return;i.selectOption(V);break;case"ArrowUp":E?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":E?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!E)return;i.focusOption("pageup");break;case"PageDown":if(!E)return;i.focusOption("pagedown");break;case"Home":if(!E)return;i.focusOption("first");break;case"End":if(!E)return;i.focusOption("last");break;default:return}c.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++YW),i.state.selectValue=ky(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=u[l],i.state.focusedOptionId=ih(a,u[l])}return i}return ej(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Hy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,u=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!u&&i.isDisabled||c&&l&&!i.menuIsOpen)&&this.focusInput(),c&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Hy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,u=this.state,l=u.selectValue,c=u.isFocused,f=this.buildFocusableOptions(),h=i==="first"?0:f.length-1;if(!this.props.isMulti){var p=f.indexOf(l[0]);p>-1&&(h=p)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:f[h],focusedOptionId:this.getFocusedOptionId(f[h])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,u=a.selectValue,l=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=u.indexOf(l);l||(c=-1);var f=u.length-1,h=-1;if(u.length){switch(i){case"previous":c===0?h=0:c===-1?h=f:h=c-1;break;case"next":c>-1&&c<f&&(h=c+1);break}this.setState({inputIsHidden:h!==-1,focusedValue:u[h]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,f=l.indexOf(u);u||(f=-1),i==="up"?c=f>0?f-1:l.length-1:i==="down"?c=(f+1)%l.length:i==="pageup"?(c=f-a,c<0&&(c=0)):i==="pagedown"?(c=f+a,c>l.length-1&&(c=l.length-1)):i==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(rh):Fe(Fe({},rh),this.props.theme):rh}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,u=this.getStyles,l=this.getClassNames,c=this.getValue,f=this.selectOption,h=this.setValue,p=this.props,m=p.isMulti,v=p.isRtl,C=p.options,S=this.hasValue();return{clearValue:i,cx:a,getStyles:u,getClassNames:l,getValue:c,hasValue:S,isMulti:m,isRtl:v,options:C,selectOption:f,selectProps:p,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,u=i.isMulti;return a===void 0?u:a}},{key:"isOptionDisabled",value:function(i,a){return xx(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return Cx(this.props,i,a)}},{key:"filterOption",value:function(i,a){return wx(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,u=i.isSearchable,l=i.inputId,c=i.inputValue,f=i.tabIndex,h=i.form,p=i.menuIsOpen,m=i.required,v=this.getComponents(),C=v.Input,S=this.state,E=S.inputIsHidden,_=S.ariaSelection,R=this.commonProps,L=l||this.getElementId("input"),$=Fe(Fe(Fe({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(_==null?void 0:_.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?ie.createElement(C,Re({},R,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:L,innerRef:this.getInputRef,isDisabled:a,isHidden:E,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:f,form:h,type:"text",value:c},$)):ie.createElement(yW,Re({id:L,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Du,onFocus:this.onInputFocus,disabled:a,tabIndex:f,inputMode:"none",form:h,value:""},$))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),u=a.MultiValue,l=a.MultiValueContainer,c=a.MultiValueLabel,f=a.MultiValueRemove,h=a.SingleValue,p=a.Placeholder,m=this.commonProps,v=this.props,C=v.controlShouldRenderValue,S=v.isDisabled,E=v.isMulti,_=v.inputValue,R=v.placeholder,L=this.state,$=L.selectValue,V=L.focusedValue,U=L.isFocused;if(!this.hasValue()||!C)return _?null:ie.createElement(p,Re({},m,{key:"placeholder",isDisabled:S,isFocused:U,innerProps:{id:this.getElementId("placeholder")}}),R);if(E)return $.map(function(te,de){var Pe=te===V,ke="".concat(i.getOptionLabel(te),"-").concat(i.getOptionValue(te));return ie.createElement(u,Re({},m,{components:{Container:l,Label:c,Remove:f},isFocused:Pe,isDisabled:S,key:ke,index:de,removeProps:{onClick:function(){return i.removeValue(te)},onTouchEnd:function(){return i.removeValue(te)},onMouseDown:function(ee){ee.preventDefault()}},data:te}),i.formatOptionLabel(te,"value"))});if(_)return null;var X=$[0];return ie.createElement(h,Re({},m,{data:X,isDisabled:S}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,u=this.commonProps,l=this.props,c=l.isDisabled,f=l.isLoading,h=this.state.isFocused;if(!this.isClearable()||!a||c||!this.hasValue()||f)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ie.createElement(a,Re({},u,{innerProps:p,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,u=this.commonProps,l=this.props,c=l.isDisabled,f=l.isLoading,h=this.state.isFocused;if(!a||!f)return null;var p={"aria-hidden":"true"};return ie.createElement(a,Re({},u,{innerProps:p,isDisabled:c,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,u=i.IndicatorSeparator;if(!a||!u)return null;var l=this.commonProps,c=this.props.isDisabled,f=this.state.isFocused;return ie.createElement(u,Re({},l,{isDisabled:c,isFocused:f}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var u=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,f={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ie.createElement(a,Re({},u,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),u=a.Group,l=a.GroupHeading,c=a.Menu,f=a.MenuList,h=a.MenuPortal,p=a.LoadingMessage,m=a.NoOptionsMessage,v=a.Option,C=this.commonProps,S=this.state.focusedOption,E=this.props,_=E.captureMenuScroll,R=E.inputValue,L=E.isLoading,$=E.loadingMessage,V=E.minMenuHeight,U=E.maxMenuHeight,X=E.menuIsOpen,te=E.menuPlacement,de=E.menuPosition,Pe=E.menuPortalTarget,ke=E.menuShouldBlockScroll,He=E.menuShouldScrollIntoView,ee=E.noOptionsMessage,ve=E.onMenuScrollToTop,ye=E.onMenuScrollToBottom;if(!X)return null;var Ee=function(y,H){var ne=y.type,ae=y.data,z=y.isDisabled,Y=y.isSelected,G=y.label,q=y.value,ue=S===ae,J=z?void 0:function(){return i.onOptionHover(ae)},le=z?void 0:function(){return i.selectOption(ae)},Q="".concat(i.getElementId("option"),"-").concat(H),he={id:Q,onClick:le,onMouseMove:J,onMouseOver:J,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Y};return ie.createElement(v,Re({},C,{innerProps:he,data:ae,isDisabled:z,isSelected:Y,key:Q,label:G,type:ne,value:q,isFocused:ue,innerRef:ue?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(y.data,"menu"))},Ve;if(this.hasOptions())Ve=this.getCategorizedOptions().map(function(O){if(O.type==="group"){var y=O.data,H=O.options,ne=O.index,ae="".concat(i.getElementId("group"),"-").concat(ne),z="".concat(ae,"-heading");return ie.createElement(u,Re({},C,{key:ae,data:y,options:H,Heading:l,headingProps:{id:z,data:O.data},label:i.formatGroupLabel(O.data)}),O.options.map(function(Y){return Ee(Y,"".concat(ne,"-").concat(Y.index))}))}else if(O.type==="option")return Ee(O,"".concat(O.index))});else if(L){var Ke=$({inputValue:R});if(Ke===null)return null;Ve=ie.createElement(p,C,Ke)}else{var F=ee({inputValue:R});if(F===null)return null;Ve=ie.createElement(m,C,F)}var T={minMenuHeight:V,maxMenuHeight:U,menuPlacement:te,menuPosition:de,menuShouldScrollIntoView:He},M=ie.createElement(JG,Re({},C,T),function(O){var y=O.ref,H=O.placerProps,ne=H.placement,ae=H.maxHeight;return ie.createElement(c,Re({},C,T,{innerRef:y,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:L,placement:ne}),ie.createElement(AW,{captureEnabled:_,onTopArrive:ve,onBottomArrive:ye,lockEnabled:ke},function(z){return ie.createElement(f,Re({},C,{innerRef:function(G){i.getMenuListRef(G),z(G)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:i.getElementId("listbox")},isLoading:L,maxHeight:ae,focusedOption:S}),Ve)}))});return Pe||de==="fixed"?ie.createElement(h,Re({},C,{appendTo:Pe,controlElement:this.controlRef,menuPlacement:te,menuPosition:de}),M):M}},{key:"renderFormField",value:function(){var i=this,a=this.props,u=a.delimiter,l=a.isDisabled,c=a.isMulti,f=a.name,h=a.required,p=this.state.selectValue;if(h&&!this.hasValue()&&!l)return ie.createElement(FW,{name:f,onFocus:this.onValueInputFocus});if(!(!f||l))if(c)if(u){var m=p.map(function(S){return i.getOptionValue(S)}).join(u);return ie.createElement("input",{name:f,type:"hidden",value:m})}else{var v=p.length>0?p.map(function(S,E){return ie.createElement("input",{key:"i-".concat(E),name:f,type:"hidden",value:i.getOptionValue(S)})}):ie.createElement("input",{name:f,type:"hidden",value:""});return ie.createElement("div",null,v)}else{var C=p[0]?this.getOptionValue(p[0]):"";return ie.createElement("input",{name:f,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,u=a.ariaSelection,l=a.focusedOption,c=a.focusedValue,f=a.isFocused,h=a.selectValue,p=this.getFocusableOptions();return ie.createElement(hW,Re({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:c,isFocused:f,selectValue:h,focusableOptions:p,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,c=i.ValueContainer,f=this.props,h=f.className,p=f.id,m=f.isDisabled,v=f.menuIsOpen,C=this.state.isFocused,S=this.commonProps=this.getCommonProps();return ie.createElement(l,Re({},S,{className:h,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:C}),this.renderLiveRegion(),ie.createElement(a,Re({},S,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:C,menuIsOpen:v}),ie.createElement(c,Re({},S,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),ie.createElement(u,Re({},S,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var u=a.prevProps,l=a.clearFocusValueOnUpdate,c=a.inputIsHiddenAfterUpdate,f=a.ariaSelection,h=a.isFocused,p=a.prevWasFocused,m=a.instancePrefix,v=i.options,C=i.value,S=i.menuIsOpen,E=i.inputValue,_=i.isMulti,R=ky(C),L={};if(u&&(C!==u.value||v!==u.options||S!==u.menuIsOpen||E!==u.inputValue)){var $=S?XW(i,R):[],V=S?vx(ju(i,R),"".concat(m,"-option")):[],U=l?zW(a,R):null,X=UW(a,$),te=ih(V,X);L={selectValue:R,focusedOption:X,focusedOptionId:te,focusableOptionsWithIds:V,focusedValue:U,clearFocusValueOnUpdate:!1}}var de=c!=null&&i!==u?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},Pe=f,ke=h&&p;return h&&!ke&&(Pe={value:ku(_,R,R[0]||null),options:R,action:"initial-input-focus"},ke=!p),(f==null?void 0:f.action)==="initial-input-focus"&&(Pe=null),Fe(Fe(Fe({},L),de),{},{prevProps:i,ariaSelection:Pe,prevWasFocused:ke})}}]),n}(b.Component);Ix.defaultProps=ZW;var JW=b.forwardRef(function(e,t){var n=qk(e);return ie.createElement(Ix,Re({ref:t},n))}),KW=JW;function qW({selectProps:e,...t}){const{label:n,error:r,name:i}=e,{isDisabled:a,isFocused:u}=t;return A.jsxs(K1,{disabled:a,error:r,children:[A.jsx(Gr.SelectContainer,{...t}),A.jsx(Sd,{htmlFor:i,disabled:a,error:r,focused:u,className:Je({"text-brand-primary":u}),children:n})]})}function QW(e){return A.jsx(Gr.Control,{className:"text-sm bg-transparent border-none focus-within:ring-0 focus:ring-0",...e})}function eZ(e){return A.jsx(Gr.ValueContainer,{className:"items-end",...e})}function tZ(e){return A.jsx(Gr.Placeholder,{className:"text-sm translate-y-1",...e})}function nZ(e){return A.jsx(Gr.Input,{className:"py-0 text-sm translate-y-1 text-brand-text children:text-brand-text children:text-sm",...e})}function rZ({innerRef:e,innerProps:t,selectProps:n}){const{menuIsOpen:r}=n;return A.jsx(A.Fragment,{children:r?A.jsx(pS,{ref:e,className:"w-3 h-3 mx-3 text-brand-dark-gray",...t}):A.jsx(gS,{ref:e,className:"w-3 h-3 mx-3 text-brand-dark-gray",...t})})}function iZ(e){return A.jsx(Gr.SingleValue,{className:"translate-y-1",...e})}function oZ(e){const{isSelected:t}=e;return A.jsx(Gr.Option,{className:Je("text-sm py-1 px-2","hover:bg-brand-tertiary-light hover:text-brand-primary",{"bg-brand-primary text-white":t}),...e})}const Ex=({components:e,helper:t,error:n,...r})=>A.jsxs("div",{children:[A.jsx(KW,{isClearable:!0,noOptionsMessage:()=>"Nenhuma opção encontrada",styles:{option:(i,{isSelected:a})=>({...i,zIndex:9999,backgroundColor:a?"#0093B2":i.backgroundColor,color:a?"white":"inherit",":active":{backgroundColor:"#0093B2"},":hover":{color:"#0093B2",backgroundColor:"#BFF0FB"}})},components:{Control:QW,DropdownIndicator:rZ,Input:nZ,SelectContainer:qW,ValueContainer:eZ,Placeholder:tZ,SingleValue:iZ,Option:oZ,...e},...r}),t?A.jsx(vd,{children:t}):null,n?A.jsx(md,{children:n}):null]});/**
|
|
127
140
|
* @remix-run/router v1.14.1
|
|
128
141
|
*
|
|
129
142
|
* Copyright (c) Remix Software Inc.
|
|
@@ -132,7 +145,7 @@ You should wrap it with \`css\` like this:
|
|
|
132
145
|
* LICENSE.md file in the root directory of this source tree.
|
|
133
146
|
*
|
|
134
147
|
* @license MIT
|
|
135
|
-
*/function
|
|
148
|
+
*/function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oh.apply(this,arguments)}var Ax;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ax||(Ax={}));function Rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ah(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _x(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Px;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Px||(Px={}));function Tx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aZ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],u=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((f,h,p)=>{let{paramName:m,isOptional:v}=h;if(m==="*"){let S=l[p]||"";u=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const C=l[p];return v&&!C?f[m]=void 0:f[m]=sZ(C||"",m),f},{}),pathname:a,pathnameBase:u,pattern:e}}function aZ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(u,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function sZ(e,t){try{return decodeURIComponent(e)}catch(n){return Oo(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Wa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uZ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?_x(e):e;return{pathname:n?n.startsWith("/")?n:lZ(n,t):t,search:fZ(r),hash:dZ(i)}}function lZ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function cZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fx(e,t){let n=cZ(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ox(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=_x(e):(i=oh({},e),Rt(!i.pathname||!i.pathname.includes("?"),sh("?","pathname","search",i)),Rt(!i.pathname||!i.pathname.includes("#"),sh("#","pathname","hash",i)),Rt(!i.search||!i.search.includes("#"),sh("#","search","hash",i)));let a=e===""||i.pathname==="",u=a?"/":i.pathname,l;if(u==null)l=n;else{let p=t.length-1;if(!r&&u.startsWith("..")){let m=u.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}l=p>=0?t[p]:"/"}let c=uZ(i,l),f=u&&u!=="/"&&u.endsWith("/"),h=(a||u===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||h)&&(c.pathname+="/"),c}const uh=e=>e.join("/").replace(/\/\/+/g,"/"),fZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Rx=["post","put","patch","delete"];new Set(Rx);const hZ=["get",...Rx];new Set(hZ);/**
|
|
136
149
|
* React Router v6.21.1
|
|
137
150
|
*
|
|
138
151
|
* Copyright (c) Remix Software Inc.
|
|
@@ -141,7 +154,7 @@ You should wrap it with \`css\` like this:
|
|
|
141
154
|
* LICENSE.md file in the root directory of this source tree.
|
|
142
155
|
*
|
|
143
156
|
* @license MIT
|
|
144
|
-
*/function
|
|
157
|
+
*/function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lh.apply(this,arguments)}const Hu=ie.createContext(null);process.env.NODE_ENV!=="production"&&(Hu.displayName="DataRouter");const Mx=ie.createContext(null);process.env.NODE_ENV!=="production"&&(Mx.displayName="DataRouterState");const pZ=ie.createContext(null);process.env.NODE_ENV!=="production"&&(pZ.displayName="Await");const vr=ie.createContext(null);process.env.NODE_ENV!=="production"&&(vr.displayName="Navigation");const ch=ie.createContext(null);process.env.NODE_ENV!=="production"&&(ch.displayName="Location");const Ro=ie.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Ro.displayName="Route");const gZ=ie.createContext(null);process.env.NODE_ENV!=="production"&&(gZ.displayName="RouteError");function mZ(e,t){let{relative:n}=t===void 0?{}:t;fh()||(process.env.NODE_ENV!=="production"?Rt(!1,"useHref() may be used only in the context of a <Router> component."):Rt(!1));let{basename:r,navigator:i}=ie.useContext(vr),{hash:a,pathname:u,search:l}=Za(e,{relative:n}),c=u;return r!=="/"&&(c=u==="/"?r:uh([r,u])),i.createHref({pathname:c,search:l,hash:a})}function fh(){return ie.useContext(ch)!=null}function Mo(){return fh()||(process.env.NODE_ENV!=="production"?Rt(!1,"useLocation() may be used only in the context of a <Router> component."):Rt(!1)),ie.useContext(ch).location}const Lx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dx(e){ie.useContext(vr).static||ie.useLayoutEffect(e)}function vZ(){let{isDataRoute:e}=ie.useContext(Ro);return e?wZ():bZ()}function bZ(){fh()||(process.env.NODE_ENV!=="production"?Rt(!1,"useNavigate() may be used only in the context of a <Router> component."):Rt(!1));let e=ie.useContext(Hu),{basename:t,future:n,navigator:r}=ie.useContext(vr),{matches:i}=ie.useContext(Ro),{pathname:a}=Mo(),u=JSON.stringify(Fx(i,n.v7_relativeSplatPath)),l=ie.useRef(!1);return Dx(()=>{l.current=!0}),ie.useCallback(function(f,h){if(h===void 0&&(h={}),process.env.NODE_ENV!=="production"&&Oo(l.current,Lx),!l.current)return;if(typeof f=="number"){r.go(f);return}let p=Ox(f,JSON.parse(u),a,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:uh([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,u,a,e])}function Za(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=ie.useContext(vr),{matches:i}=ie.useContext(Ro),{pathname:a}=Mo(),u=JSON.stringify(Fx(i,r.v7_relativeSplatPath));return ie.useMemo(()=>Ox(e,JSON.parse(u),a,n==="path"),[e,u,a,n])}var $x=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($x||{}),dh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dh||{});function Nx(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function yZ(e){let t=ie.useContext(Hu);return t||(process.env.NODE_ENV!=="production"?Rt(!1,Nx(e)):Rt(!1)),t}function xZ(e){let t=ie.useContext(Ro);return t||(process.env.NODE_ENV!=="production"?Rt(!1,Nx(e)):Rt(!1)),t}function Vx(e){let t=xZ(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Rt(!1,e+' can only be used on routes that contain a unique "id"'):Rt(!1)),n.route.id}function CZ(){return Vx(dh.UseRouteId)}function wZ(){let{router:e}=yZ($x.UseNavigateStable),t=Vx(dh.UseNavigateStable),n=ie.useRef(!1);return Dx(()=>{n.current=!0}),ie.useCallback(function(i,a){a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&Oo(n.current,Lx),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,lh({fromRouteId:t},a)))},[e,t])}new Promise(()=>{});/**
|
|
145
158
|
* React Router DOM v6.21.1
|
|
146
159
|
*
|
|
147
160
|
* Copyright (c) Remix Software Inc.
|
|
@@ -150,68 +163,55 @@ You should wrap it with \`css\` like this:
|
|
|
150
163
|
* LICENSE.md file in the root directory of this source tree.
|
|
151
164
|
*
|
|
152
165
|
* @license MIT
|
|
153
|
-
*/function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(this,arguments)}function np(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Vu="get",Bu="application/x-www-form-urlencoded";function ku(e){return e!=null&&typeof e.tagName=="string"}function zW(e){return ku(e)&&e.tagName.toLowerCase()==="button"}function UW(e){return ku(e)&&e.tagName.toLowerCase()==="form"}function YW(e){return ku(e)&&e.tagName.toLowerCase()==="input"}function JW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KW(e,t){return e.button===0&&(!t||t==="_self")&&!JW(e)}let ju=null;function qW(){if(ju===null)try{new FormData(document.createElement("form"),0),ju=!1}catch{ju=!0}return ju}const QW=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rp(e){return e!=null&&!QW.has(e)?(process.env.NODE_ENV!=="production"&&Po(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Bu+'"')),null):e}function eZ(e,t){let n,r,i,a,u;if(UW(e)){let l=e.getAttribute("action");r=l?ka(l,t):null,n=e.getAttribute("method")||Vu,i=rp(e.getAttribute("enctype"))||Bu,a=new FormData(e)}else if(zW(e)||YW(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?ka(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Vu,i=rp(e.getAttribute("formenctype"))||rp(l.getAttribute("enctype"))||Bu,a=new FormData(l,e),!qW()){let{name:f,type:p,value:h}=e;if(p==="image"){let m=f?f+".":"";a.append(m+"x","0"),a.append(m+"y","0")}else f&&a.append(f,h)}}else{if(ku(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vu,r=null,i=Bu,u=e}return a&&i==="text/plain"&&(u=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:u}}const tZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],nZ=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],rZ=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],bx=re.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(bx.displayName="ViewTransition");const iZ=re.createContext(new Map);process.env.NODE_ENV!=="production"&&(iZ.displayName="Fetchers"),process.env.NODE_ENV;const oZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ip=re.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:u,state:l,target:c,to:f,preventScrollReset:p,unstable_viewTransition:h}=t,m=np(t,tZ),{basename:v}=re.useContext(hr),S,C=!1;if(typeof f=="string"&&aZ.test(f)&&(S=f,oZ))try{let $=new URL(window.location.href),B=f.startsWith("//")?new URL($.protocol+f):new URL(f),N=ka(B.pathname,v);B.origin===$.origin&&N!=null?f=N+B.search+B.hash:C=!0}catch{process.env.NODE_ENV!=="production"&&Po(!1,'<Link to="'+f+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let E=kW(f,{relative:i}),P=cZ(f,{replace:u,state:l,target:c,preventScrollReset:p,relative:i,unstable_viewTransition:h});function M($){r&&r($),$.defaultPrevented||P($)}return re.createElement("a",Fo({},m,{href:S||E,onClick:C||a?r:M,ref:n,target:c}))});process.env.NODE_ENV!=="production"&&(ip.displayName="Link");const sZ=re.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:u=!1,style:l,to:c,unstable_viewTransition:f,children:p}=t,h=np(t,nZ),m=ja(c,{relative:h.relative}),v=Oo(),S=re.useContext(dx),{navigator:C}=re.useContext(hr),E=S!=null&&mZ(m)&&f===!0,P=C.encodeLocation?C.encodeLocation(m).pathname:m.pathname,M=v.pathname,$=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(M=M.toLowerCase(),$=$?$.toLowerCase():null,P=P.toLowerCase());const B=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let N=M===P||!u&&M.startsWith(P)&&M.charAt(B)==="/",U=$!=null&&($===P||!u&&$.startsWith(P)&&$.charAt(P.length)==="/"),X={isActive:N,isPending:U,isTransitioning:E},ee=N?r:void 0,fe;typeof a=="function"?fe=a(X):fe=[a,N?"active":null,U?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let Oe=typeof l=="function"?l(X):l;return re.createElement(ip,Fo({},h,{"aria-current":ee,className:fe,ref:n,style:Oe,to:c,unstable_viewTransition:f}),typeof p=="function"?p(X):p)});process.env.NODE_ENV!=="production"&&(sZ.displayName="NavLink");const uZ=re.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:a,state:u,method:l=Vu,action:c,onSubmit:f,relative:p,preventScrollReset:h,unstable_viewTransition:m}=e,v=np(e,rZ),S=hZ(),C=gZ(c,{relative:p}),E=l.toLowerCase()==="get"?"get":"post",P=M=>{if(f&&f(M),M.defaultPrevented)return;M.preventDefault();let $=M.nativeEvent.submitter,B=($==null?void 0:$.getAttribute("formmethod"))||l;S($||M.currentTarget,{fetcherKey:n,method:B,navigate:r,replace:a,state:u,relative:p,preventScrollReset:h,unstable_viewTransition:m})};return re.createElement("form",Fo({ref:t,method:E,action:C,onSubmit:i?f:P},v))});process.env.NODE_ENV!=="production"&&(uZ.displayName="Form"),process.env.NODE_ENV;var Gu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gu||(Gu={}));var yx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yx||(yx={}));function lZ(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function xx(e){let t=re.useContext(Nu);return t||(process.env.NODE_ENV!=="production"?Ft(!1,lZ(e)):Ft(!1)),t}function cZ(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:l}=t===void 0?{}:t,c=jW(),f=Oo(),p=ja(e,{relative:u});return re.useCallback(h=>{if(KW(h,n)){h.preventDefault();let m=r!==void 0?r:Yd(f)===Yd(p);c(e,{replace:m,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:l})}},[f,c,p,r,i,n,e,a,u,l])}function fZ(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let dZ=0,pZ=()=>"__"+String(++dZ)+"__";function hZ(){let{router:e}=xx(Gu.UseSubmit),{basename:t}=re.useContext(hr),n=ZW();return re.useCallback(function(r,i){i===void 0&&(i={}),fZ();let{action:a,method:u,encType:l,formData:c,body:f}=eZ(r,t);if(i.navigate===!1){let p=i.fetcherKey||pZ();e.fetch(p,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||u,formEncType:i.encType||l,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||u,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,t,n])}function gZ(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=re.useContext(hr),i=re.useContext(To);i||(process.env.NODE_ENV!=="production"?Ft(!1,"useFormAction must be used inside a RouteContext"):Ft(!1));let[a]=i.matches.slice(-1),u=Fo({},ja(e||".",{relative:n})),l=Oo();if(e==null){u.search=l.search;let c=new URLSearchParams(u.search);c.has("index")&&c.get("index")===""&&(c.delete("index"),u.search=c.toString()?"?"+c.toString():"")}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Kd([r,u.pathname])),Yd(u)}function mZ(e,t){t===void 0&&(t={});let n=re.useContext(bx);n==null&&(process.env.NODE_ENV!=="production"?Ft(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ft(!1));let{basename:r}=xx(Gu.useViewTransitionState),i=ja(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ka(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=ka(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ux(i.pathname,u)!=null||ux(i.pathname,a)!=null}function vZ(e=!1){const[t,n]=b.useState(e);function r(){n(i=>!i)}return{open:t,setOpen:n,toggle:r}}function bZ({route:e,children:t,level:n,lastIndex:r,currentIndex:i,closeDialog:a}){const{pathname:u}=Oo(),l=u===e.url,{open:c,toggle:f}=vZ();function p(m){m.preventDefault(),e.hasChildren&&f()}function h(){e.url!=="#"&&a()}return F.jsxs(F.Fragment,{children:[F.jsx("div",{className:et("dark:border-brand-secondary-text","bg-white dark:bg-brand-dark-gray-dark","text-brand-dark-gray-dark dark:text-white","flex items-center justify-between px-2.5 py-1.5 text-sm","group transition cursor-pointer select-none children:select-none","hover:transition hover:text-white hover:bg-brand dark:hover:bg-brand",{"text-base":e.hasChildren,"dark:border-t":e.hasChildren||n===0,"dark:bg-transparent":!e.hasChildren},{"pl-2.5":n===0,"pl-6":n===1,"pl-12":n===2,"pl-16":n===3,"pl-20":n===4}),onClick:p,children:F.jsxs(ip,{to:e.url||"#",onClick:h,className:"flex items-center justify-between w-full",children:[F.jsxs("div",{className:"flex items-center justify-between gap-2",children:[!e.hasChildren&&F.jsx("div",{className:et({"bg-brand-secondary text-white dark:bg-brand-secondary-text":l,"bg-brand-light-gray text-brand-disabled dark:bg-brand-secondary-text":!l},"w-8 h-8 rounded-lg flex items-center justify-center"),children:e.icon}),F.jsx("span",{children:e.title})]}),e.hasChildren&&F.jsx("div",{className:"text-brand-dark-gray group-hover:text-white",children:c?F.jsx(B2,{}):F.jsx(V2,{})})]})},`item-side-menu-${e.id}`),c&&t,F.jsx("hr",{className:et("flex w-full border solid border-brand-secondary-text-dark",{hidden:i===r||n>0})},`border-down-menu-${e.id}`)]})}function Cx({treeData:e,parentId:t="",level:n=0,closeDialog:r}){const i=e.filter(u=>(u==null?void 0:u.parentId)===t),a=i.length-1;return i.length?F.jsx(F.Fragment,{children:i.map((u,l)=>F.jsx(bZ,{route:u,level:n,currentIndex:l,lastIndex:a,closeDialog:r,children:F.jsx(Cx,{closeDialog:r,treeData:e,parentId:u.id,level:n+1})},u.id))}):null}function yZ({onClick:e}){return F.jsx(pd.Button,{onClick:e,children:F.jsx("div",{className:"flex items-center justify-center",children:F.jsx(M2,{className:"w-6 h-6"})})})}function xZ({isOpen:e,children:t}){return F.jsx(F.Fragment,{children:e&&F.jsx(Ui.div,{transition:{type:"tween"},initial:{opacity:0,x:"-100%"},animate:{opacity:1,x:0},exit:{opacity:0,x:"-100%"},onClick:n=>n.stopPropagation(),className:"h-screen overflow-y-scroll bg-white border-r-4 dark:bg-brand-dark-gray-dark border-brand-secondary rounded-tr-xl rounded-br-xl w-80",children:t},"side-menu-container")})}function CZ({routes:e,open:t=!1}){const[n,r]=b.useState(t);function i(){r(u=>!u)}function a(){r(!1)}return F.jsxs(F.Fragment,{children:[F.jsx(yZ,{onClick:i}),F.jsx(Ds,{isOpen:n,close:a,children:F.jsx(xZ,{isOpen:n,children:F.jsx(Cx,{treeData:e,closeDialog:a})})})]})}/*! *****************************************************************************
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
157
|
-
purpose with or without fee is hereby granted.
|
|
158
|
-
|
|
159
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
160
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
161
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
162
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
163
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
164
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
165
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
166
|
-
***************************************************************************** */var gr=function(){return gr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},gr.apply(this,arguments)};function wx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var wZ={color:"#38ad48",enabled:!0,size:50,style:{}},SZ=function(e){return parseFloat(e.toString()).toString()===e.toString()?e+"px":e.toString()},IZ=function(e){var t=function(n){var r=n.color,i=n.enabled,a=n.size,u=n.style,l=wx(n,["color","enabled","size","style"]),c=gr(gr({},l),{style:gr({color:r,overflow:"visible",width:SZ(a)},u)});return i?b.createElement(e,gr({},c)):null};return t.defaultProps=wZ,t},EZ={speed:100,still:!1,thickness:100},AZ=gr(gr({},EZ),{secondaryColor:"rgba(0,0,0,0.44)"});function _Z(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var PZ="@keyframes spinners-react-circular{0%{stroke-dashoffset:306}50%{stroke-dasharray:40,134}to{stroke-dasharray:1,174;stroke-dashoffset:132}}";_Z(PZ);var Sx=function(e){var t=e.secondaryColor,n=e.speed,r=e.still,i=e.thickness,a=wx(e,["secondaryColor","speed","still","thickness"]),u=4*(i/100),l=r?{}:{animation:"spinners-react-circular "+140/n+"s linear infinite"};return b.createElement("svg",gr({fill:"none"},a,{viewBox:"0 0 66 66"}),b.createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:t,strokeWidth:u}),b.createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"1, 174",strokeDashoffset:"306",strokeLinecap:"round",strokeWidth:u,style:l}))};Sx.defaultProps=AZ;var TZ=IZ(Sx);const op=({children:e="Carregando...",color:t="rgba(0, 147, 178, 1)",secondaryColor:n="rgba(0, 0, 0, 0.44)",silent:r=!1,size:i=100,thickness:a=480,speed:u=100})=>F.jsxs("div",{className:"flex flex-col justify-center gap-2",children:[F.jsx("div",{className:"mx-auto",children:F.jsx(TZ,{size:i,thickness:a,speed:u,color:t,secondaryColor:n})}),!r&&F.jsx("span",{className:"text-xl font-semibold text-center text-brand-primary",children:e})]});var OZ=Object.defineProperty,FZ=(e,t,n)=>t in e?OZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ap=(e,t,n)=>(FZ(e,typeof t!="symbol"?t+"":t,n),n);let RZ=class{constructor(){ap(this,"current",this.detect()),ap(this,"handoffState","pending"),ap(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ro=new RZ,Mo=(e,t)=>{Ro.isServer?b.useEffect(e,t):b.useLayoutEffect(e,t)};function MZ(e){let t=b.useRef(e);return Mo(()=>{t.current=e},[e]),t}function LZ(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ix(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return LZ(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Ix();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function $Z(){let[e]=b.useState(Ix);return b.useEffect(()=>()=>e.dispose(),[e]),e}let jr=function(e){let t=MZ(e);return b.useCallback((...n)=>t.current(...n),[t])};function DZ(){let e=typeof document>"u";return"useSyncExternalStore"in re?(t=>t.useSyncExternalStore)(re)(()=>()=>{},()=>!1,()=>!e):!1}function NZ(){let e=DZ(),[t,n]=re.useState(Ro.isHandoffComplete);return t&&Ro.isHandoffComplete===!1&&n(!1),re.useEffect(()=>{t!==!0&&n(!0)},[t]),re.useEffect(()=>Ro.handoff(),[]),e?!1:t}var Ex;let sp=(Ex=b.useId)!=null?Ex:function(){let e=NZ(),[t,n]=b.useState(e?()=>Ro.nextId():null);return Mo(()=>{t===null&&n(Ro.nextId())},[t]),t!=null?""+t:void 0};function Ax(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ax),r}function _x(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function VZ(e,t){let[n,r]=b.useState(()=>_x(e));return Mo(()=>{r(_x(e))},[e.type,e.as]),Mo(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let BZ=Symbol();function up(...e){let t=b.useRef(e);b.useEffect(()=>{t.current=e},[e]);let n=jr(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[BZ]))?void 0:n}function Px(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var kZ=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(kZ||{}),jZ=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jZ||{});function Ga({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:u}){let l=Tx(t,e);if(a)return Hu(l,n,r,u);let c=i??0;if(c&2){let{static:f=!1,...p}=l;if(f)return Hu(p,n,r,u)}if(c&1){let{unmount:f=!0,...p}=l;return Ax(f?0:1,{0(){return null},1(){return Hu({...p,hidden:!0,style:{display:"none"}},n,r,u)}})}return Hu(l,n,r,u)}function Hu(e,t={},n,r){let{as:i=n,children:a,refName:u="ref",...l}=cp(e,["unmount","static"]),c=e.ref!==void 0?{[u]:e.ref}:{},f=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let p={};if(t){let h=!1,m=[];for(let[v,S]of Object.entries(t))typeof S=="boolean"&&(h=!0),S===!0&&m.push(v);h&&(p["data-headlessui-state"]=m.join(" "))}if(i===b.Fragment&&Object.keys(lp(l)).length>0){if(!b.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(S=>` - ${S}`).join(`
|
|
167
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
|
|
166
|
+
*/function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function hh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Wu="get",Zu="application/x-www-form-urlencoded";function Xu(e){return e!=null&&typeof e.tagName=="string"}function SZ(e){return Xu(e)&&e.tagName.toLowerCase()==="button"}function IZ(e){return Xu(e)&&e.tagName.toLowerCase()==="form"}function EZ(e){return Xu(e)&&e.tagName.toLowerCase()==="input"}function AZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _Z(e,t){return e.button===0&&(!t||t==="_self")&&!AZ(e)}let zu=null;function PZ(){if(zu===null)try{new FormData(document.createElement("form"),0),zu=!1}catch{zu=!0}return zu}const TZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ph(e){return e!=null&&!TZ.has(e)?(process.env.NODE_ENV!=="production"&&Oo(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Zu+'"')),null):e}function FZ(e,t){let n,r,i,a,u;if(IZ(e)){let l=e.getAttribute("action");r=l?Wa(l,t):null,n=e.getAttribute("method")||Wu,i=ph(e.getAttribute("enctype"))||Zu,a=new FormData(e)}else if(SZ(e)||EZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Wa(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Wu,i=ph(e.getAttribute("formenctype"))||ph(l.getAttribute("enctype"))||Zu,a=new FormData(l,e),!PZ()){let{name:f,type:h,value:p}=e;if(h==="image"){let m=f?f+".":"";a.append(m+"x","0"),a.append(m+"y","0")}else f&&a.append(f,p)}}else{if(Xu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wu,r=null,i=Zu,u=e}return a&&i==="text/plain"&&(u=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:u}}const OZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],RZ=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],MZ=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Bx=ie.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Bx.displayName="ViewTransition");const LZ=ie.createContext(new Map);process.env.NODE_ENV!=="production"&&(LZ.displayName="Fetchers"),process.env.NODE_ENV;const DZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$Z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gh=ie.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:u,state:l,target:c,to:f,preventScrollReset:h,unstable_viewTransition:p}=t,m=hh(t,OZ),{basename:v}=ie.useContext(vr),C,S=!1;if(typeof f=="string"&&$Z.test(f)&&(C=f,DZ))try{let L=new URL(window.location.href),$=f.startsWith("//")?new URL(L.protocol+f):new URL(f),V=Wa($.pathname,v);$.origin===L.origin&&V!=null?f=V+$.search+$.hash:S=!0}catch{process.env.NODE_ENV!=="production"&&Oo(!1,'<Link to="'+f+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let E=mZ(f,{relative:i}),_=kZ(f,{replace:u,state:l,target:c,preventScrollReset:h,relative:i,unstable_viewTransition:p});function R(L){r&&r(L),L.defaultPrevented||_(L)}return ie.createElement("a",Lo({},m,{href:C||E,onClick:S||a?r:R,ref:n,target:c}))});process.env.NODE_ENV!=="production"&&(gh.displayName="Link");const NZ=ie.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:u=!1,style:l,to:c,unstable_viewTransition:f,children:h}=t,p=hh(t,RZ),m=Za(c,{relative:p.relative}),v=Mo(),C=ie.useContext(Mx),{navigator:S}=ie.useContext(vr),E=C!=null&&XZ(m)&&f===!0,_=S.encodeLocation?S.encodeLocation(m).pathname:m.pathname,R=v.pathname,L=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;i||(R=R.toLowerCase(),L=L?L.toLowerCase():null,_=_.toLowerCase());const $=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let V=R===_||!u&&R.startsWith(_)&&R.charAt($)==="/",U=L!=null&&(L===_||!u&&L.startsWith(_)&&L.charAt(_.length)==="/"),X={isActive:V,isPending:U,isTransitioning:E},te=V?r:void 0,de;typeof a=="function"?de=a(X):de=[a,V?"active":null,U?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let Pe=typeof l=="function"?l(X):l;return ie.createElement(gh,Lo({},p,{"aria-current":te,className:de,ref:n,style:Pe,to:c,unstable_viewTransition:f}),typeof h=="function"?h(X):h)});process.env.NODE_ENV!=="production"&&(NZ.displayName="NavLink");const VZ=ie.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:a,state:u,method:l=Wu,action:c,onSubmit:f,relative:h,preventScrollReset:p,unstable_viewTransition:m}=e,v=hh(e,MZ),C=WZ(),S=ZZ(c,{relative:h}),E=l.toLowerCase()==="get"?"get":"post",_=R=>{if(f&&f(R),R.defaultPrevented)return;R.preventDefault();let L=R.nativeEvent.submitter,$=(L==null?void 0:L.getAttribute("formmethod"))||l;C(L||R.currentTarget,{fetcherKey:n,method:$,navigate:r,replace:a,state:u,relative:h,preventScrollReset:p,unstable_viewTransition:m})};return ie.createElement("form",Lo({ref:t,method:E,action:S,onSubmit:i?f:_},v))});process.env.NODE_ENV!=="production"&&(VZ.displayName="Form"),process.env.NODE_ENV;var Uu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Uu||(Uu={}));var kx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kx||(kx={}));function BZ(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function jx(e){let t=ie.useContext(Hu);return t||(process.env.NODE_ENV!=="production"?Rt(!1,BZ(e)):Rt(!1)),t}function kZ(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:l}=t===void 0?{}:t,c=vZ(),f=Mo(),h=Za(e,{relative:u});return ie.useCallback(p=>{if(_Z(p,n)){p.preventDefault();let m=r!==void 0?r:ah(f)===ah(h);c(e,{replace:m,state:i,preventScrollReset:a,relative:u,unstable_viewTransition:l})}},[f,c,h,r,i,n,e,a,u,l])}function jZ(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let GZ=0,HZ=()=>"__"+String(++GZ)+"__";function WZ(){let{router:e}=jx(Uu.UseSubmit),{basename:t}=ie.useContext(vr),n=CZ();return ie.useCallback(function(r,i){i===void 0&&(i={}),jZ();let{action:a,method:u,encType:l,formData:c,body:f}=FZ(r,t);if(i.navigate===!1){let h=i.fetcherKey||HZ();e.fetch(h,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||u,formEncType:i.encType||l,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||u,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,t,n])}function ZZ(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=ie.useContext(vr),i=ie.useContext(Ro);i||(process.env.NODE_ENV!=="production"?Rt(!1,"useFormAction must be used inside a RouteContext"):Rt(!1));let[a]=i.matches.slice(-1),u=Lo({},Za(e||".",{relative:n})),l=Mo();if(e==null){u.search=l.search;let c=new URLSearchParams(u.search);c.has("index")&&c.get("index")===""&&(c.delete("index"),u.search=c.toString()?"?"+c.toString():"")}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:uh([r,u.pathname])),ah(u)}function XZ(e,t){t===void 0&&(t={});let n=ie.useContext(Bx);n==null&&(process.env.NODE_ENV!=="production"?Rt(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Rt(!1));let{basename:r}=jx(Uu.useViewTransitionState),i=Za(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Wa(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=Wa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tx(i.pathname,u)!=null||Tx(i.pathname,a)!=null}function zZ(e=!1){const[t,n]=b.useState(e);function r(){n(i=>!i)}return{open:t,setOpen:n,toggle:r}}function UZ({route:e,children:t,level:n,lastIndex:r,currentIndex:i,closeDialog:a}){const{pathname:u}=Mo(),l=u===e.url,{open:c,toggle:f}=zZ();function h(m){m.preventDefault(),e.hasChildren&&f()}function p(){e.url!=="#"&&a()}return A.jsxs(A.Fragment,{children:[A.jsx("div",{className:Je("dark:border-brand-secondary-text","bg-white dark:bg-brand-dark-gray-dark","text-brand-dark-gray-dark dark:text-white","flex items-center justify-between px-2.5 py-1.5 text-sm","group transition cursor-pointer select-none children:select-none","hover:transition hover:text-white hover:bg-brand dark:hover:bg-brand",{"text-base":e.hasChildren,"dark:border-t":e.hasChildren||n===0,"dark:bg-transparent":!e.hasChildren},{"pl-2.5":n===0,"pl-6":n===1,"pl-12":n===2,"pl-16":n===3,"pl-20":n===4}),onClick:h,children:A.jsxs(gh,{to:e.url||"#",onClick:p,className:"flex items-center justify-between w-full",children:[A.jsxs("div",{className:"flex items-center justify-between gap-2",children:[!e.hasChildren&&A.jsx("div",{className:Je({"bg-brand-secondary text-white dark:bg-brand-secondary-text":l,"bg-brand-light-gray text-brand-disabled dark:bg-brand-secondary-text":!l},"w-8 h-8 rounded-lg flex items-center justify-center"),children:e.icon}),A.jsx("span",{children:e.title})]}),e.hasChildren&&A.jsx("div",{className:"text-brand-dark-gray group-hover:text-white",children:c?A.jsx(hS,{}):A.jsx(dS,{})})]})},`item-side-menu-${e.id}`),c&&t,A.jsx("hr",{className:Je("flex w-full border solid border-brand-secondary-text-dark",{hidden:i===r||n>0})},`border-down-menu-${e.id}`)]})}function Gx({treeData:e,parentId:t="",level:n=0,closeDialog:r}){const i=e.filter(u=>(u==null?void 0:u.parentId)===t),a=i.length-1;return i.length?A.jsx(A.Fragment,{children:i.map((u,l)=>A.jsx(UZ,{route:u,level:n,currentIndex:l,lastIndex:a,closeDialog:r,children:A.jsx(Gx,{closeDialog:r,treeData:e,parentId:u.id,level:n+1})},u.id))}):null}function YZ({onClick:e}){return A.jsx(Id.Button,{onClick:e,children:A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(sS,{className:"w-6 h-6"})})})}function JZ({isOpen:e,children:t}){return A.jsx(A.Fragment,{children:e&&A.jsx(Ki.div,{transition:{type:"tween"},initial:{opacity:0,x:"-100%"},animate:{opacity:1,x:0},exit:{opacity:0,x:"-100%"},onClick:n=>n.stopPropagation(),className:"h-screen overflow-y-scroll bg-white border-r-4 dark:bg-brand-dark-gray-dark border-brand-secondary rounded-tr-xl rounded-br-xl w-80",children:t},"side-menu-container")})}function KZ({routes:e,open:t=!1}){const[n,r]=b.useState(t);function i(){r(u=>!u)}function a(){r(!1)}return A.jsxs(A.Fragment,{children:[A.jsx(YZ,{onClick:i}),A.jsx(js,{isOpen:n,close:a,children:A.jsx(JZ,{isOpen:n,children:A.jsx(Gx,{treeData:e,closeDialog:a})})})]})}var qZ=Object.defineProperty,QZ=(e,t,n)=>t in e?qZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mh=(e,t,n)=>(QZ(e,typeof t!="symbol"?t+"":t,n),n);let eX=class{constructor(){mh(this,"current",this.detect()),mh(this,"handoffState","pending"),mh(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Do=new eX,$o=(e,t)=>{Do.isServer?b.useEffect(e,t):b.useLayoutEffect(e,t)};function tX(e){let t=b.useRef(e);return $o(()=>{t.current=e},[e]),t}function nX(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Hx(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return nX(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Hx();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function rX(){let[e]=b.useState(Hx);return b.useEffect(()=>()=>e.dispose(),[e]),e}let Hr=function(e){let t=tX(e);return b.useCallback((...n)=>t.current(...n),[t])};function iX(){let e=typeof document>"u";return"useSyncExternalStore"in ie?(t=>t.useSyncExternalStore)(ie)(()=>()=>{},()=>!1,()=>!e):!1}function oX(){let e=iX(),[t,n]=ie.useState(Do.isHandoffComplete);return t&&Do.isHandoffComplete===!1&&n(!1),ie.useEffect(()=>{t!==!0&&n(!0)},[t]),ie.useEffect(()=>Do.handoff(),[]),e?!1:t}var Wx;let vh=(Wx=b.useId)!=null?Wx:function(){let e=oX(),[t,n]=b.useState(e?()=>Do.nextId():null);return $o(()=>{t===null&&n(Do.nextId())},[t]),t!=null?""+t:void 0};function Zx(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zx),r}function Xx(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function aX(e,t){let[n,r]=b.useState(()=>Xx(e));return $o(()=>{r(Xx(e))},[e.type,e.as]),$o(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let sX=Symbol();function bh(...e){let t=b.useRef(e);b.useEffect(()=>{t.current=e},[e]);let n=Hr(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[sX]))?void 0:n}function zx(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var uX=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(uX||{}),lX=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(lX||{});function Xa({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:u}){let l=Ux(t,e);if(a)return Yu(l,n,r,u);let c=i??0;if(c&2){let{static:f=!1,...h}=l;if(f)return Yu(h,n,r,u)}if(c&1){let{unmount:f=!0,...h}=l;return Zx(f?0:1,{0(){return null},1(){return Yu({...h,hidden:!0,style:{display:"none"}},n,r,u)}})}return Yu(l,n,r,u)}function Yu(e,t={},n,r){let{as:i=n,children:a,refName:u="ref",...l}=xh(e,["unmount","static"]),c=e.ref!==void 0?{[u]:e.ref}:{},f=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let h={};if(t){let p=!1,m=[];for(let[v,C]of Object.entries(t))typeof C=="boolean"&&(p=!0),C===!0&&m.push(v);p&&(h["data-headlessui-state"]=m.join(" "))}if(i===b.Fragment&&Object.keys(yh(l)).length>0){if(!b.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(C=>` - ${C}`).join(`
|
|
167
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(C=>` - ${C}`).join(`
|
|
168
168
|
`)].join(`
|
|
169
|
-
`));let
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
169
|
+
`));let p=f.props,m=typeof(p==null?void 0:p.className)=="function"?(...C)=>zx(p==null?void 0:p.className(...C),l.className):zx(p==null?void 0:p.className,l.className),v=m?{className:m}:{};return b.cloneElement(f,Object.assign({},Ux(f.props,yh(xh(l,["ref"]))),h,c,cX(f.ref,c.ref),v))}return b.createElement(i,Object.assign({},xh(l,["ref"]),i!==b.Fragment&&c,i!==b.Fragment&&h),f)}function cX(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Ux(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let u=n[r];for(let l of u){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return t}function Ju(e){var t;return Object.assign(b.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function yh(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function xh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function fX(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&dX(n)?!1:r}function dX(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function hX(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let pX="div";var Yx=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Yx||{});function gX(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Xa({ourProps:i,theirProps:r,slot:{},defaultTag:pX,name:"Hidden"})}let mX=Ju(gX);var Ch=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ch||{});function vX(e,t,n){let[r,i]=b.useState(n),a=e!==void 0,u=b.useRef(a),l=b.useRef(!1),c=b.useRef(!1);return a&&!u.current&&!l.current?(l.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&u.current&&!c.current&&(c.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Hr(f=>(a||i(f),t==null?void 0:t(f)))]}let Jx=b.createContext(null);function Kx(){let e=b.useContext(Jx);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Kx),t}return e}function bX(){let[e,t]=b.useState([]);return[e.length>0?e.join(" "):void 0,b.useMemo(()=>function(n){let r=Hr(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),c=l.indexOf(a);return c!==-1&&l.splice(c,1),l}))),i=b.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return b.createElement(Jx.Provider,{value:i},n.children)},[t])]}let yX="p";function xX(e,t){let n=vh(),{id:r=`headlessui-description-${n}`,...i}=e,a=Kx(),u=bh(t);$o(()=>a.register(r),[r,a.register]);let l={ref:u,...a.props,id:r};return Xa({ourProps:l,theirProps:i,slot:a.slot||{},defaultTag:yX,name:a.name||"Description"})}let CX=Ju(xX),wX=Object.assign(CX,{}),qx=b.createContext(null);function Qx(){let e=b.useContext(qx);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Qx),t}return e}function SX(){let[e,t]=b.useState([]);return[e.length>0?e.join(" "):void 0,b.useMemo(()=>function(n){let r=Hr(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),c=l.indexOf(a);return c!==-1&&l.splice(c,1),l}))),i=b.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return b.createElement(qx.Provider,{value:i},n.children)},[t])]}let IX="label";function EX(e,t){let n=vh(),{id:r=`headlessui-label-${n}`,passive:i=!1,...a}=e,u=Qx(),l=bh(t);$o(()=>u.register(r),[r,u.register]);let c={ref:l,...u.props,id:r};return i&&("onClick"in c&&(delete c.htmlFor,delete c.onClick),"onClick"in a&&delete a.onClick),Xa({ourProps:c,theirProps:a,slot:u.slot||{},defaultTag:IX,name:u.name||"Label"})}let AX=Ju(EX),_X=Object.assign(AX,{}),wh=b.createContext(null);wh.displayName="GroupContext";let PX=b.Fragment;function TX(e){var t;let[n,r]=b.useState(null),[i,a]=SX(),[u,l]=bX(),c=b.useMemo(()=>({switch:n,setSwitch:r,labelledby:i,describedby:u}),[n,r,i,u]),f={},h=e;return b.createElement(l,{name:"Switch.Description"},b.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=c.switch)==null?void 0:t.id,onClick(p){n&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},b.createElement(wh.Provider,{value:c},Xa({ourProps:f,theirProps:h,defaultTag:PX,name:"Switch.Group"}))))}let FX="button";function OX(e,t){let n=vh(),{id:r=`headlessui-switch-${n}`,checked:i,defaultChecked:a=!1,onChange:u,name:l,value:c,form:f,...h}=e,p=b.useContext(wh),m=b.useRef(null),v=bh(m,t,p===null?null:p.setSwitch),[C,S]=vX(i,u,a),E=Hr(()=>S==null?void 0:S(!C)),_=Hr(X=>{if(fX(X.currentTarget))return X.preventDefault();X.preventDefault(),E()}),R=Hr(X=>{X.key===Ch.Space?(X.preventDefault(),E()):X.key===Ch.Enter&&hX(X.currentTarget)}),L=Hr(X=>X.preventDefault()),$=b.useMemo(()=>({checked:C}),[C]),V={id:r,ref:v,role:"switch",type:aX(e,m),tabIndex:0,"aria-checked":C,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,onClick:_,onKeyUp:R,onKeyPress:L},U=rX();return b.useEffect(()=>{var X;let te=(X=m.current)==null?void 0:X.closest("form");te&&a!==void 0&&U.addEventListener(te,"reset",()=>{S(a)})},[m,S]),b.createElement(b.Fragment,null,l!=null&&C&&b.createElement(mX,{features:Yx.Hidden,...yh({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:f,checked:C,name:l,value:c})}),Xa({ourProps:V,theirProps:h,slot:$,defaultTag:FX,name:"Switch"}))}let RX=Ju(OX),MX=TX,eC=Object.assign(RX,{Group:MX,Label:_X,Description:wX});function LX(){return A.jsx("div",{className:"inline-block w-4 h-4 bg-white rounded-full"})}const DX=({leftLabel:e,rightLabel:t,mode:n="mono",checked:r=!1,SwitchButton:i=A.jsx(LX,{}),onChange:a=()=>{}})=>A.jsxs("div",{className:"flex items-center justify-center w-full space-x-2",children:[A.jsx("span",{className:"text-xs text-brand-secondary-text",children:e}),A.jsx(eC,{checked:r,onChange:a,className:`${Je("relative outline-none inline-flex items-center h-6 w-11 rounded-full transition-colors",{"bg-brand-primary":n==="mono"||n==="off-on"&&r||n==="on-off"&&!r,"bg-brand-gray":n==="on-off"&&r||n==="off-on"&&!r})}`,children:A.jsx("div",{className:Je("transition duration-200 ease-out transform",{"translate-x-6":r,"translate-x-1":!r},"flex items-center"),children:i})}),A.jsx("span",{className:"text-xs text-brand-secondary-text",children:t})]});/**
|
|
170
|
+
* table-core
|
|
171
|
+
*
|
|
172
|
+
* Copyright (c) TanStack
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the MIT license found in the
|
|
175
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
176
|
+
*
|
|
177
|
+
* @license MIT
|
|
178
|
+
*/function Wr(e,t){return typeof e=="function"?e(t):e}function mn(e,t){return n=>{t.setState(r=>({...r,[e]:Wr(n,r[e])}))}}function Ku(e){return e instanceof Function}function $X(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function NX(e,t){const n=[],r=i=>{i.forEach(a=>{n.push(a);const u=t(a);u!=null&&u.length&&r(u)})};return r(e),n}function Me(e,t,n){let r=[],i;return a=>{let u;n.key&&n.debug&&(u=Date.now());const l=e(a);if(!(l.length!==r.length||l.some((h,p)=>r[p]!==h)))return i;r=l;let f;if(n.key&&n.debug&&(f=Date.now()),i=t(...l),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-u)*100)/100,p=Math.round((Date.now()-f)*100)/100,m=p/16,v=(C,S)=>{for(C=String(C);C.length<S;)C=" "+C;return C};console.info(`%c⏱ ${v(p,5)} /${v(h,5)} ms`,`
|
|
179
179
|
font-size: .6rem;
|
|
180
180
|
font-weight: bold;
|
|
181
|
-
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function mX(e,t,n,r){var i,a;const l={...e._getDefaultColumnDef(),...t},c=l.accessorKey;let f=(i=(a=l.id)!=null?a:c?c.replace(".","_"):void 0)!=null?i:typeof l.header=="string"?l.header:void 0,p;if(l.accessorFn?p=l.accessorFn:c&&(c.includes(".")?p=m=>{let v=m;for(const C of c.split(".")){var S;v=(S=v)==null?void 0:S[C],process.env.NODE_ENV!=="production"&&v===void 0&&console.warn(`"${C}" in deeply nested key "${c}" returned undefined.`)}return v}:p=m=>m[l.accessorKey]),!f)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let h={id:`${String(f)}`,accessorFn:p,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Ve(()=>[!0],()=>{var m;return[h,...(m=h.columns)==null?void 0:m.flatMap(v=>v.getFlatColumns())]},{key:process.env.NODE_ENV==="production"&&"column.getFlatColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}}),getLeafColumns:Ve(()=>[e._getOrderColumnsFn()],m=>{var v;if((v=h.columns)!=null&&v.length){let S=h.columns.flatMap(C=>C.getLeafColumns());return m(S)}return[h]},{key:process.env.NODE_ENV==="production"&&"column.getLeafColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}})};for(const m of e._features)m.createColumn==null||m.createColumn(h,e);return h}function Dx(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const u=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),u.push(c)};return l(a),u},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(u=>{u.createHeader==null||u.createHeader(a,e)}),a}const vX={createTable:e=>{e.getHeaderGroups=Ve(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,u;const l=(a=r==null?void 0:r.map(h=>n.find(m=>m.id===h)).filter(Boolean))!=null?a:[],c=(u=i==null?void 0:i.map(h=>n.find(m=>m.id===h)).filter(Boolean))!=null?u:[],f=n.filter(h=>!(r!=null&&r.includes(h.id))&&!(i!=null&&i.includes(h.id)));return Xu(t,[...l,...f,...c],e)},{key:process.env.NODE_ENV==="development"&&"getHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Ve(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Xu(t,n,e,"center")),{key:process.env.NODE_ENV==="development"&&"getCenterHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Ve(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(u=>n.find(l=>l.id===u)).filter(Boolean))!=null?i:[];return Xu(t,a,e,"left")},{key:process.env.NODE_ENV==="development"&&"getLeftHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Ve(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(u=>n.find(l=>l.id===u)).filter(Boolean))!=null?i:[];return Xu(t,a,e,"right")},{key:process.env.NODE_ENV==="development"&&"getRightHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=Ve(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Ve(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getLeftFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Ve(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getCenterFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=Ve(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getRightFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=Ve(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Ve(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getLeftFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Ve(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getCenterFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Ve(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getRightFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Ve(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getCenterLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Ve(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getLeftLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Ve(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getRightLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=Ve(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,u,l,c,f;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(u=(l=n[0])==null?void 0:l.headers)!=null?u:[],...(c=(f=r[0])==null?void 0:f.headers)!=null?c:[]].map(p=>p.getLeafHeaders()).flat()},{key:process.env.NODE_ENV==="development"&&"getLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Xu(e,t,n,r){var i,a;let u=0;const l=function(m,v){v===void 0&&(v=1),u=Math.max(u,v),m.filter(S=>S.getIsVisible()).forEach(S=>{var C;(C=S.columns)!=null&&C.length&&l(S.columns,v+1)},0)};l(e);let c=[];const f=(m,v)=>{const S={depth:v,id:[r,`${v}`].filter(Boolean).join("_"),headers:[]},C=[];m.forEach(E=>{const P=[...C].reverse()[0],M=E.column.depth===S.depth;let $,B=!1;if(M&&E.column.parent?$=E.column.parent:($=E.column,B=!0),P&&(P==null?void 0:P.column)===$)P.subHeaders.push(E);else{const N=Dx(n,$,{id:[r,v,$.id,E==null?void 0:E.id].filter(Boolean).join("_"),isPlaceholder:B,placeholderId:B?`${C.filter(U=>U.column===$).length}`:void 0,depth:v,index:C.length});N.subHeaders.push(E),C.push(N)}S.headers.push(E),E.headerGroup=S}),c.push(S),v>0&&f(C,v-1)},p=t.map((m,v)=>Dx(n,m,{depth:u,index:v}));f(p,u-1),c.reverse();const h=m=>m.filter(S=>S.column.getIsVisible()).map(S=>{let C=0,E=0,P=[0];S.subHeaders&&S.subHeaders.length?(P=[],h(S.subHeaders).forEach($=>{let{colSpan:B,rowSpan:N}=$;C+=B,P.push(N)})):C=1;const M=Math.min(...P);return E=E+M,S.colSpan=C,S.rowSpan=E,{colSpan:C,rowSpan:E}});return h((i=(a=c[0])==null?void 0:a.headers)!=null?i:[]),c}const zu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},pp=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),bX={getDefaultColumnDef:()=>zu,getInitialState:e=>({columnSizing:{},columnSizingInfo:pp(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:hn("columnSizing",e),onColumnSizingInfoChange:hn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:zu.minSize,(r=a??e.columnDef.size)!=null?r:zu.size),(i=e.columnDef.maxSize)!=null?i:zu.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=r.findIndex(a=>a.id===e.id);if(i>0){const a=r[i-1];return a.getStart(n)+a.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return i=>{if(!n||!r||(i.persist==null||i.persist(),hp(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),u=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[n.id,n.getSize()]],l=hp(i)?Math.round(i.touches[0].clientX):i.clientX,c={},f=(C,E)=>{typeof E=="number"&&(t.setColumnSizingInfo(P=>{var M,$;const B=t.options.columnResizeDirection==="rtl"?-1:1,N=(E-((M=P==null?void 0:P.startOffset)!=null?M:0))*B,U=Math.max(N/(($=P==null?void 0:P.startSize)!=null?$:0),-.999999);return P.columnSizingStart.forEach(X=>{let[ee,fe]=X;c[ee]=Math.round(Math.max(fe+fe*U,0)*100)/100}),{...P,deltaOffset:N,deltaPercentage:U}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing(P=>({...P,...c})))},p=C=>f("move",C),h=C=>{f("end",C),t.setColumnSizingInfo(E=>({...E,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m={moveHandler:C=>p(C.clientX),upHandler:C=>{document.removeEventListener("mousemove",m.moveHandler),document.removeEventListener("mouseup",m.upHandler),h(C.clientX)}},v={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),p(C.touches[0].clientX),!1),upHandler:C=>{var E;document.removeEventListener("touchmove",v.moveHandler),document.removeEventListener("touchend",v.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),h((E=C.touches[0])==null?void 0:E.clientX)}},S=yX()?{passive:!1}:!1;hp(i)?(document.addEventListener("touchmove",v.moveHandler,S),document.addEventListener("touchend",v.upHandler,S)):(document.addEventListener("mousemove",m.moveHandler,S),document.addEventListener("mouseup",m.upHandler,S)),t.setColumnSizingInfo(C=>({...C,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?pp():(n=e.initialState.columnSizingInfo)!=null?n:pp())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let Uu=null;function yX(){if(typeof Uu=="boolean")return Uu;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Uu=e,Uu}function hp(e){return e.type==="touchstart"}const xX={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:hn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const u=a.split(".");r=Math.max(r,u.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let u={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{u[l]=!0}):u=r,n=(i=n)!=null?i:!a,!a&&n)return{...u,[e.id]:!0};if(a&&!n){const{[e.id]:l,...c}=u;return c}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Nx=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};Nx.autoRemove=e=>Bn(e);const Vx=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Vx.autoRemove=e=>Bn(e);const Bx=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};Bx.autoRemove=e=>Bn(e);const kx=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};kx.autoRemove=e=>Bn(e)||!(e!=null&&e.length);const jx=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});jx.autoRemove=e=>Bn(e)||!(e!=null&&e.length);const Gx=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});Gx.autoRemove=e=>Bn(e)||!(e!=null&&e.length);const Hx=(e,t,n)=>e.getValue(t)===n;Hx.autoRemove=e=>Bn(e);const Wx=(e,t,n)=>e.getValue(t)==n;Wx.autoRemove=e=>Bn(e);const gp=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};gp.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,u=n===null||Number.isNaN(i)?1/0:i;if(a>u){const l=a;a=u,u=l}return[a,u]},gp.autoRemove=e=>Bn(e)||Bn(e[0])&&Bn(e[1]);const mr={includesString:Nx,includesStringSensitive:Vx,equalsString:Bx,arrIncludes:kx,arrIncludesAll:jx,arrIncludesSome:Gx,equals:Hx,weakEquals:Wx,inNumberRange:gp};function Bn(e){return e==null||e===""}const CX={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:hn("columnFilters",e),onGlobalFilterChange:hn("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?mr.includesString:typeof r=="number"?mr.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?mr.equals:Array.isArray(r)?mr.arrIncludes:mr.weakEquals},e.getFilterFn=()=>{var n,r;return Zu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:mr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(p=>p.id===e.id),u=Gr(n,a?a.value:void 0);if(Zx(i,u,e)){var l;return(l=r==null?void 0:r.filter(p=>p.id!==e.id))!=null?l:[]}const c={id:e.id,value:u};if(a){var f;return(f=r==null?void 0:r.map(p=>p.id===e.id?c:p))!=null?f:[]}return r!=null&&r.length?[...r,c]:[c]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>mr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Zu(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:mr[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=Gr(t,i))==null?void 0:a.filter(u=>{const l=n.find(c=>c.id===u.id);if(l){const c=l.getFilterFn();if(Zx(c,u.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function Zx(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const mp={sum:(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(a=>{const u=a.getValue(e);u!=null&&(r===void 0?u>=u&&(r=i=u):(r>u&&(r=u),i<u&&(i=u)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!hX(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,u)=>a-u);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},wX={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:hn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,i,a;return(n=(r=(i=(a=e.columnDef.enableGrouping)!=null?a:!0)!=null?i:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return mp.sum;if(Object.prototype.toString.call(r)==="[object Date]")return mp.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Zu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:mp[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function SX(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(u=>u.id===a)).filter(Boolean),...r]}const IX={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:hn("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Ve(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const u=[...t],l=[...i];for(;l.length&&u.length;){const c=u.shift(),f=l.findIndex(p=>p.id===c);f>-1&&a.push(l.splice(f,1)[0])}a=[...a,...l]}return SX(a,n,r)},{key:process.env.NODE_ENV==="development"&&"getOrderColumnsFn"})}},vp=0,bp=10,yp=()=>({pageIndex:vp,pageSize:bp}),EX={getInitialState:e=>({...e,pagination:{...yp(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:hn("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>Gr(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?yp():(i=e.initialState.pagination)!=null?i:yp())},e.setPageIndex=r=>{e.setPagination(i=>{let a=Gr(r,i.pageIndex);const u=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,u)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?vp:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:vp)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?bp:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:bp)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,Gr(r,i.pageSize)),u=i.pageSize*i.pageIndex,l=Math.floor(u/a);return{...i,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let u=Gr(r,(a=e.options.pageCount)!=null?a:-1);return typeof u=="number"&&(u=Math.max(-1,u)),{...i,pageCount:u}}),e.getPageOptions=Ve(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,u)=>u)),i},{key:process.env.NODE_ENV==="development"&&"getPageOptions",debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},xp=()=>({left:[],right:[]}),Cp=()=>({top:[],bottom:[]}),AX={getInitialState:e=>({columnPinning:xp(),rowPinning:Cp(),...e}),getDefaultOptions:e=>({onColumnPinningChange:hn("columnPinning",e),onRowPinningChange:hn("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,u;if(n==="right"){var l,c;return{left:((l=i==null?void 0:i.left)!=null?l:[]).filter(h=>!(r!=null&&r.includes(h))),right:[...((c=i==null?void 0:i.right)!=null?c:[]).filter(h=>!(r!=null&&r.includes(h))),...r]}}if(n==="left"){var f,p;return{left:[...((f=i==null?void 0:i.left)!=null?f:[]).filter(h=>!(r!=null&&r.includes(h))),...r],right:((p=i==null?void 0:i.right)!=null?p:[]).filter(h=>!(r!=null&&r.includes(h)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(h=>!(r!=null&&r.includes(h))),right:((u=i==null?void 0:i.right)!=null?u:[]).filter(h=>!(r!=null&&r.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,u;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(u=t.options.enableColumnPinning)!=null?u:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(l=>r==null?void 0:r.includes(l)),u=n.some(l=>i==null?void 0:i.includes(l));return a?"left":u?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(c=>{let{id:f}=c;return f}):[],u=i?e.getParentRows().map(c=>{let{id:f}=c;return f}):[],l=new Set([...u,e.id,...a]);t.setRowPinning(c=>{var f,p;if(n==="bottom"){var h,m;return{top:((h=c==null?void 0:c.top)!=null?h:[]).filter(C=>!(l!=null&&l.has(C))),bottom:[...((m=c==null?void 0:c.bottom)!=null?m:[]).filter(C=>!(l!=null&&l.has(C))),...Array.from(l)]}}if(n==="top"){var v,S;return{top:[...((v=c==null?void 0:c.top)!=null?v:[]).filter(C=>!(l!=null&&l.has(C))),...Array.from(l)],bottom:((S=c==null?void 0:c.bottom)!=null?S:[]).filter(C=>!(l!=null&&l.has(C)))}}return{top:((f=c==null?void 0:c.top)!=null?f:[]).filter(C=>!(l!=null&&l.has(C))),bottom:((p=c==null?void 0:c.bottom)!=null?p:[]).filter(C=>!(l!=null&&l.has(C)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(l=>r==null?void 0:r.includes(l)),u=n.some(l=>i==null?void 0:i.includes(l));return a?"top":u?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=t._getPinnedRows(i))==null?void 0:n.map(u=>{let{id:l}=u;return l});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=Ve(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(u=>!a.includes(u.column.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=Ve(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),{key:process.env.NODE_ENV==="development"&&"row.getLeftVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=Ve(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),{key:process.env.NODE_ENV==="development"&&"row.getRightVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?xp():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:xp())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Ve(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getLeftLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=Ve(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getRightLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=Ve(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},{key:process.env.NODE_ENV==="development"&&"getCenterLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Cp():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Cp())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>Ve(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(u=>{const l=e.getRow(u,!0);return l.getIsAllParentsExpanded()?l:null}):(r??[]).map(u=>n.find(l=>l.id===u))).filter(Boolean).map(u=>({...u,position:t}))},{key:process.env.NODE_ENV==="development"&&`row.get${t==="top"?"Top":"Bottom"}Rows`,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Ve(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterRows",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},_X={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:hn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{wp(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ve(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Sp(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="development"&&"getSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Ve(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Sp(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Ve(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Sp(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var u;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const l={...a};return wp(l,e.id,n,(u=r==null?void 0:r.selectChildren)!=null?u:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ip(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ep(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ep(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},wp=(e,t,n,r,i)=>{var a;const u=i.getRow(t,!0);n?(u.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),u.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=u.subRows)!=null&&a.length&&u.getCanSelectSubRows()&&u.subRows.forEach(l=>wp(e,l.id,n,r,i))};function Sp(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(u,l){return u.map(c=>{var f;const p=Ip(c,n);if(p&&(r.push(c),i[c.id]=c),(f=c.subRows)!=null&&f.length&&(c={...c,subRows:a(c.subRows)}),p)return c}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Ip(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ep(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(u=>{if(!(a&&!i)&&(u.getCanSelect()&&(Ip(u,t)?a=!0:i=!1),u.subRows&&u.subRows.length)){const l=Ep(u,t);l==="all"?a=!0:(l==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Ap=/([0-9]+)/gm,PX=(e,t,n)=>Xx(Hr(e.getValue(n)).toLowerCase(),Hr(t.getValue(n)).toLowerCase()),TX=(e,t,n)=>Xx(Hr(e.getValue(n)),Hr(t.getValue(n))),OX=(e,t,n)=>_p(Hr(e.getValue(n)).toLowerCase(),Hr(t.getValue(n)).toLowerCase()),FX=(e,t,n)=>_p(Hr(e.getValue(n)),Hr(t.getValue(n))),RX=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},MX=(e,t,n)=>_p(e.getValue(n),t.getValue(n));function _p(e,t){return e===t?0:e>t?1:-1}function Hr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Xx(e,t){const n=e.split(Ap).filter(Boolean),r=t.split(Ap).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),u=parseInt(i,10),l=parseInt(a,10),c=[u,l].sort();if(isNaN(c[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}return n.length-r.length}const Ha={alphanumeric:PX,alphanumericCaseSensitive:TX,text:OX,textCaseSensitive:FX,datetime:RX,basic:MX},zx=[vX,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:hn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Ve(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:process.env.NODE_ENV==="production"&&"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=Ve(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],{key:process.env.NODE_ENV==="development"&&"row.getVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>Ve(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),{key:n,debug:()=>{var i;return(i=e.options.debugAll)!=null?i:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},IX,AX,CX,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:hn("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Ha.datetime;if(typeof a=="string"&&(r=!0,a.split(Ap).length>1))return Ha.alphanumeric}return r?Ha.text:Ha.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Zu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ha[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(u=>{const l=u==null?void 0:u.find(v=>v.id===e.id),c=u==null?void 0:u.findIndex(v=>v.id===e.id);let f=[],p,h=a?n:i==="desc";if(u!=null&&u.length&&e.getCanMultiSort()&&r?l?p="toggle":p="add":u!=null&&u.length&&c!==u.length-1?p="replace":l?p="toggle":p="replace",p==="toggle"&&(a||i||(p="remove")),p==="add"){var m;f=[...u,{id:e.id,desc:h}],f.splice(0,f.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else p==="toggle"?f=u.map(v=>v.id===e.id?{...v,desc:h}:v):p==="remove"?f=u.filter(v=>v.id!==e.id):f=[{id:e.id,desc:h}];return f})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),u=e.getIsSorted();return u?u!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:u==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},wX,xX,EX,_X,bX];function LX(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:zx};const r=n._features.reduce((p,h)=>Object.assign(p,h.getDefaultOptions==null?void 0:h.getDefaultOptions(n)),{}),i=p=>n.options.mergeOptions?n.options.mergeOptions(r,p):{...r,...p};let u={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(p=>{var h;u=(h=p.getInitialState==null?void 0:p.getInitialState(u))!=null?h:u});const l=[];let c=!1;const f={_features:zx,options:{...r,...e},initialState:u,_queue:p=>{l.push(p),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{n.setState(n.initialState)},setOptions:p=>{const h=Gr(p,n.options);n.options=i(h)},getState:()=>n.options.state,setState:p=>{n.options.onStateChange==null||n.options.onStateChange(p)},_getRowId:(p,h,m)=>{var v;return(v=n.options.getRowId==null?void 0:n.options.getRowId(p,h,m))!=null?v:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(p,h)=>{const m=(h?n.getCoreRowModel():n.getRowModel()).rowsById[p];if(!m)throw process.env.NODE_ENV!=="production"?new Error(`getRow expected an ID, but got ${p}`):new Error;return m},_getDefaultColumnDef:Ve(()=>[n.options.defaultColumn],p=>{var h;return p=(h=p)!=null?h:{},{header:m=>{const v=m.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:m=>{var v,S;return(v=(S=m.renderValue())==null||S.toString==null?void 0:S.toString())!=null?v:null},...n._features.reduce((m,v)=>Object.assign(m,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...p}},{debug:()=>{var p;return(p=n.options.debugAll)!=null?p:n.options.debugColumns},key:process.env.NODE_ENV==="development"&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:Ve(()=>[n._getColumnDefs()],p=>{const h=function(m,v,S){return S===void 0&&(S=0),m.map(C=>{const E=mX(n,C,S,v),P=C;return E.columns=P.columns?h(P.columns,E,S+1):[],E})};return h(p)},{key:process.env.NODE_ENV==="development"&&"getAllColumns",debug:()=>{var p;return(p=n.options.debugAll)!=null?p:n.options.debugColumns}}),getAllFlatColumns:Ve(()=>[n.getAllColumns()],p=>p.flatMap(h=>h.getFlatColumns()),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumns",debug:()=>{var p;return(p=n.options.debugAll)!=null?p:n.options.debugColumns}}),_getAllFlatColumnsById:Ve(()=>[n.getAllFlatColumns()],p=>p.reduce((h,m)=>(h[m.id]=m,h),{}),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumnsById",debug:()=>{var p;return(p=n.options.debugAll)!=null?p:n.options.debugColumns}}),getAllLeafColumns:Ve(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(p,h)=>{let m=p.flatMap(v=>v.getLeafColumns());return h(m)},{key:process.env.NODE_ENV==="development"&&"getAllLeafColumns",debug:()=>{var p;return(p=n.options.debugAll)!=null?p:n.options.debugColumns}}),getColumn:p=>{const h=n._getAllFlatColumnsById()[p];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${p}' does not exist.`),h}};Object.assign(n,f);for(let p=0;p<n._features.length;p++){const h=n._features[p];h==null||h.createTable==null||h.createTable(n)}return n}function $X(e,t,n,r){const i=()=>{var u;return(u=a.getValue())!=null?u:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:Ve(()=>[e,n,t,a],(u,l,c,f)=>({table:u,column:l,row:c,cell:f,getValue:f.getValue,renderValue:f.renderValue}),{key:process.env.NODE_ENV==="development"&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach(u=>{u.createCell==null||u.createCell(a,n,t,e)},{}),a}const Pp=(e,t,n,r,i,a,u)=>{let l={id:t,index:r,original:n,depth:i,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return l._valuesCache[c]=f.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=f.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var f;return(f=l.getValue(c))!=null?f:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>gX(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],f=l;for(;;){const p=f.getParentRow();if(!p)break;c.push(p),f=p}return c.reverse()},getAllCells:Ve(()=>[e.getAllLeafColumns()],c=>c.map(f=>$X(e,l,f,f.id)),{key:process.env.NODE_ENV==="development"&&"row.getAllCells",debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}}),_getAllCellsByColumnId:Ve(()=>[l.getAllCells()],c=>c.reduce((f,p)=>(f[p.column.id]=p,f),{}),{key:process.env.NODE_ENV==="production"&&"row.getAllCellsByColumnId",debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}})};for(let c=0;c<e._features.length;c++){const f=e._features[c];f==null||f.createRow==null||f.createRow(l,e)}return l};function DX(){return e=>Ve(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,u){a===void 0&&(a=0);const l=[];for(let f=0;f<i.length;f++){const p=Pp(e,e._getRowId(i[f],f,u),i[f],f,a,void 0,u==null?void 0:u.id);if(n.flatRows.push(p),n.rowsById[p.id]=p,l.push(p),e.options.getSubRows){var c;p.originalSubRows=e.options.getSubRows(i[f],f),(c=p.originalSubRows)!=null&&c.length&&(p.subRows=r(p.originalSubRows,a+1,p))}}return l};return n.rows=r(t),n},{key:process.env.NODE_ENV==="development"&&"getRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function NX(e,t,n){return n.options.filterFromLeafRows?VX(e,t,n):BX(e,t,n)}function VX(e,t,n){var r;const i=[],a={},u=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,f){f===void 0&&(f=0);const p=[];for(let m=0;m<c.length;m++){var h;let v=c[m];const S=Pp(n,v.id,v.original,v.index,v.depth,void 0,v.parentId);if(S.columnFilters=v.columnFilters,(h=v.subRows)!=null&&h.length&&f<u){if(S.subRows=l(v.subRows,f+1),v=S,t(v)&&!S.subRows.length){p.push(v),a[v.id]=v,i.push(v);continue}if(t(v)||S.subRows.length){p.push(v),a[v.id]=v,i.push(v);continue}}else v=S,t(v)&&(p.push(v),a[v.id]=v,i.push(v))}return p};return{rows:l(e),flatRows:i,rowsById:a}}function BX(e,t,n){var r;const i=[],a={},u=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,f){f===void 0&&(f=0);const p=[];for(let m=0;m<c.length;m++){let v=c[m];if(t(v)){var h;if((h=v.subRows)!=null&&h.length&&f<u){const C=Pp(n,v.id,v.original,v.index,v.depth,void 0,v.parentId);C.subRows=l(v.subRows,f+1),v=C}p.push(v),i.push(v),a[v.id]=v}}return p};return{rows:l(e),flatRows:i,rowsById:a}}function kX(){return e=>Ve(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let m=0;m<t.flatRows.length;m++)t.flatRows[m].columnFilters={},t.flatRows[m].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(m=>{var v;const S=e.getColumn(m.id);if(!S)return;const C=S.getFilterFn();if(!C){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${S.id}.`);return}i.push({id:m.id,filterFn:C,resolvedValue:(v=C.resolveFilterValue==null?void 0:C.resolveFilterValue(m.value))!=null?v:m.value})});const u=n.map(m=>m.id),l=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());r&&l&&c.length&&(u.push("__global__"),c.forEach(m=>{var v;a.push({id:m.id,filterFn:l,resolvedValue:(v=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?v:r})}));let f,p;for(let m=0;m<t.flatRows.length;m++){const v=t.flatRows[m];if(v.columnFilters={},i.length)for(let S=0;S<i.length;S++){f=i[S];const C=f.id;v.columnFilters[C]=f.filterFn(v,C,f.resolvedValue,E=>{v.columnFiltersMeta[C]=E})}if(a.length){for(let S=0;S<a.length;S++){p=a[S];const C=p.id;if(p.filterFn(v,C,p.resolvedValue,E=>{v.columnFiltersMeta[C]=E})){v.columnFilters.__global__=!0;break}}v.columnFilters.__global__!==!0&&(v.columnFilters.__global__=!1)}}const h=m=>{for(let v=0;v<u.length;v++)if(m.columnFilters[u[v]]===!1)return!1;return!0};return NX(t.rows,h,e)},{key:process.env.NODE_ENV==="development"&&"getFilteredRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function jX(){return e=>Ve(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(c=>{var f;return(f=e.getColumn(c.id))==null?void 0:f.getCanSort()}),u={};a.forEach(c=>{const f=e.getColumn(c.id);f&&(u[c.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const l=c=>{const f=c.map(p=>({...p}));return f.sort((p,h)=>{for(let v=0;v<a.length;v+=1){var m;const S=a[v],C=u[S.id],E=(m=S==null?void 0:S.desc)!=null?m:!1;let P=0;if(C.sortUndefined){const M=p.getValue(S.id),$=h.getValue(S.id),B=M===void 0,N=$===void 0;(B||N)&&(P=B&&N?0:B?C.sortUndefined:-C.sortUndefined)}if(P===0&&(P=C.sortingFn(p,h,S.id)),P!==0)return E&&(P*=-1),C.invertSorting&&(P*=-1),P}return p.index-h.index}),f.forEach(p=>{var h;i.push(p),(h=p.subRows)!=null&&h.length&&(p.subRows=l(p.subRows))}),f};return{rows:l(n.rows),flatRows:i,rowsById:n.rowsById}},{key:process.env.NODE_ENV==="development"&&"getSortedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function GX(){return e=>Ve(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Ux(n),{key:process.env.NODE_ENV==="development"&&"getExpandedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}})}function Ux(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function HX(e){return t=>Ve(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:u,flatRows:l,rowsById:c}=r;const f=i*a,p=f+i;u=u.slice(f,p);let h;t.options.paginateExpandedRows?h={rows:u,flatRows:l,rowsById:c}:h=Ux({rows:u,flatRows:l,rowsById:c}),h.flatRows=[];const m=v=>{h.flatRows.push(v),v.subRows.length&&v.subRows.forEach(m)};return h.rows.forEach(m),h},{key:process.env.NODE_ENV==="development"&&"getPaginationRowModel",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable}})}/**
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
*/function Yx(e,t){return e?WX(e)?re.createElement(e,t):e:null}function WX(e){return ZX(e)||typeof e=="function"||XX(e)}function ZX(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function XX(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function zX(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=re.useState(()=>({current:LX(t)})),[r,i]=re.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:u=>{i(u),e.onStateChange==null||e.onStateChange(u)}})),n.current}function UX({setFilter:e,placeholder:t}){let n=0;function r(i){clearTimeout(n),n=setTimeout(()=>{e(i.target.value||void 0)},500)}return F.jsxs("div",{className:"flex items-center gap-2 px-2 my-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b focus-within:border-brand-primary focus-within:ring-brand-primary dark:bg-gray-700",children:[F.jsx(zh,{className:"text-brand-secondary-text dark:text-brand-gray"}),F.jsx("input",{className:"flex-1 py-2 bg-transparent text-sm border-none appearance-none focus:outline-none focus:ring-0",placeholder:t,onChange:r})]})}function YX(e,t){return e?[{id:"select",sortingFn:!1,header:({table:r})=>F.jsx(Jx,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler()}),cell:({row:r})=>F.jsx("div",{className:"px-1",children:F.jsx(Jx,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler()})})},...t]:t}function Jx({indeterminate:e,className:t="w-5 h-5 rounded-md border-brand-primary border-1 text-brand-primary focus:ring-0",...n}){const r=b.useRef(null);return b.useEffect(()=>{typeof e=="boolean"&&(r.current.indeterminate=!n.checked&&e)},[r,e]),F.jsx("input",{type:"checkbox",ref:r,className:t+" cursor-pointer",...n})}function Tp(e){var t;return((t=e==null?void 0:e.subHeaders)==null?void 0:t.length)>0}function Kx(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[e.column.parent.columns.length-1])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function qx(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[0])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function JX({data:e,columns:t,isFetching:n,searchable:r=!0,isRowSelection:i=!1,totalRecords:a,spinnerMessage:u="Carregando...",noRecordsMessage:l="Nenhuma entrada encontrada.",searchPlaceholder:c="Buscar...",itemsPerPageMessage:f="Itens por página:",pageSeparatorMessage:p="de",onRowSelection:h,renderSubComponent:m,getRowCanExpand:v,onSearch:S,onSize:C,onPage:E,onColumn:P,onSort:M}){const $="onChange",[B,N]=b.useState([]),[U,X]=b.useState(0),[ee,fe]=b.useState(!1),[Oe,ze]=b.useState(!1),[He,he]=b.useState({}),Ce=zX({data:e,columns:YX(i,t),columnResizeMode:$,initialState:{pagination:{pageSize:5}},defaultColumn:{minSize:100,size:150,maxSize:1e3},state:{rowSelection:He,sorting:B},getRowCanExpand:v,onRowSelectionChange:he,getCoreRowModel:DX(),getFilteredRowModel:kX(),getPaginationRowModel:HX(),onSortingChange:N,getSortedRowModel:jX(),getExpandedRowModel:GX()}),be=Ce.getState().pagination.pageSize;function _e(G,q){function se(){const ue=G.column.getIsSorted();return ue?ue==="desc"?F.jsx(X2,{}):F.jsx(Z2,{}):F.jsx(z2,{})}function J(ue){const Q=ue.column.getIsSorted();M(typeof Q=="boolean"?"":Q),P(ue.id)}return F.jsx(F.Fragment,{children:F.jsx("th",{className:et("px-2 py-3 text-xs text-left select-none border border-brand-disabled",{"border-r":Tp(G)||Kx(G),"border-l":Tp(G)||qx(G)}),colSpan:G.colSpan,style:{width:De(G)},children:F.jsxs("div",{className:"flex items-center justify-between",children:[F.jsxs("div",{className:"flex flex-row items-center space-x-4 text-sm font-bold text-brand-primary",children:[F.jsx("span",{className:"w-full",children:Yx(G.column.columnDef.header,G.getContext())}),G.column.columnDef.sortingFn&&!Tp(G)&&F.jsx("span",{className:`px-2 ${G.column.getCanSort()?"cursor-pointer":""}`,onClick:async ue=>{await G.column.getToggleSortingHandler()(ue),J(G)},children:se()})]}),G.id!=="select"&&F.jsx("div",{onMouseDown:G.getResizeHandler(),onTouchStart:G.getResizeHandler(),className:"w-3 h-full text-brand-gray cursor-col-resize",children:F.jsx(W2,{})})]})},`thead-th-${G.id}-${q}`)})}function De(G){return G.id==="select"?50:G.getSize()}function Ye(G){return F.jsx("tr",{className:"mx-auto",children:G.headers.map(_e)},`thead-tr-${G.id}`)}function T(G,q){return F.jsx("td",{className:et("px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",{"border-r":Kx(G),"border-l":qx(G)}),children:Yx(G.column.columnDef.cell,G.getContext())},`tbody-td-${G.id}-${q}`)}function _(G,q){return F.jsxs(b.Fragment,{children:[F.jsx("tr",{className:"mx-auto children:text-sm children:py-3 children:text-brand-text dark:children:text-white children:last-of-type:border-b children:last-of-type:border-brand-disabled",children:G.getVisibleCells().map(T)},`tbody-tr-${G.id}-${q}`),G.getIsExpanded()?F.jsx("tr",{children:F.jsx("td",{colSpan:G.getVisibleCells().length,children:m({row:G})})}):null]},`tbody-fragmment-${G.id}-${q}`)}function R(G){E(G),X(G)}function O(G){C(Number(G.target.value)),Ce.setPageSize(Number(G.target.value))}function y(G){R(0),S(G)}function H(){R(0)}function te(){const G=U-1;R(G)}function oe(){const G=U+1;R(G)}function z(){const G=Math.ceil(a/be)-1;R(G)}function Y(){return h(Ce.getSelectedRowModel().flatRows)}return b.useEffect(()=>{function G(){if(U===0){fe(!1);return}fe(!0)}function q(){if(U>=Math.ceil(a/be)-1){ze(!1);return}ze(!0)}G(),q()},[U,a]),F.jsxs("div",{className:"text-black dark:text-white",children:[r&&F.jsx(UX,{setFilter:y,placeholder:c}),n&&F.jsx("div",{className:"flex items-center justify-center mt-10",children:F.jsx(op,{size:50,children:u})}),e.length===0&&!n&&F.jsx("p",{className:"text-sm text-center",children:l}),e.length>0&&!n&&F.jsx("div",{className:"flex justify-center items-center",children:F.jsx("div",{className:"overflow-x-auto",children:F.jsxs("table",{style:{width:Ce.getCenterTotalSize()},children:[F.jsx("thead",{children:Ce.getHeaderGroups().map(Ye)}),F.jsx("tbody",{className:"divide-y divide-brand-disabled",children:Ce.getRowModel().rows.map(_)})]})})}),F.jsxs("div",{className:"flex items-center justify-end gap-2 px-2 py-2 my-2 text-sm text-brand-text dark:text-white",children:[F.jsx("p",{children:f}),F.jsx("select",{className:et("w-20 border-0 border-b border-brand-disabled focus:outline-none focus:ring-0 focus:border-l-0 focus:border-b focus:border-brand-primary","bg-brand-light-gray dark:bg-brand-dark-gray-dark","text-brand-secondary-text dark:text-brand-gray"),value:be,onChange:O,children:[5,10,25,50].map(G=>F.jsx("option",{value:G,children:G},`page-size-option-${G}`))}),F.jsxs("span",{children:[U+1," ",p," ",Math.ceil(a/be)]}),F.jsx("button",{onClick:H,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(G2,{})}),F.jsx("button",{onClick:te,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Zh,{})}),F.jsx("button",{onClick:oe,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Xh,{})}),F.jsx("button",{onClick:z,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(H2,{})})]}),i&&h&&Y()]})}const KX=({children:e,tooltip:t})=>F.jsxs("div",{className:"relative inline-block group",children:[e,F.jsx("span",{className:`${et("invisible","group-hover:visible","opacity-0","group-hover:opacity-100","z-0","group-hover:z-50","transition","transform","left-1/2","text-xs","-top-9","-translate-x-1/2","bg-brand-text","text-white","p-2","rounded","absolute","whitespace-nowrap")}`,children:t})]}),Op=({Container:e,children:t,fileName:n,disabled:r,onChange:i,accept:a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"})=>{const u=b.useRef(null),l=()=>{var f;return(f=u.current)==null?void 0:f.click()},c=f=>{const p=f.target;p.value=""};return F.jsxs(F.Fragment,{children:[F.jsx(e,{type:"button",disabled:r,onClick:l,fileName:n,children:t}),F.jsx("input",{ref:u,type:"file",className:"hidden",accept:a,onClick:c,onChange:f=>{i(f.target.files[0])}})]})},qX=e=>F.jsx(Yi,{variant:"primary",...e}),QX=e=>F.jsx(Yi,{variant:"secondary",...e}),ez=({children:e,disabled:t,fileName:n,...r})=>F.jsx("button",{disabled:t,className:`relative ${t?"bg-gray-300 text-white cursor-not-allowed border-2 border-gray-900 border-dashed":"bg-white text-primary-500 hover:bg-primary-100 hover:mb-0 border-2 border-gray-800 border-dashed cursor-pointer"}
|
|
191
|
-
flex items-center justify-center w-full h-full p-2 overflow-hidden transition-all duration-300 ease-out transform focus:outline-none rounded-2xl border-opacity-20 dark:bg-brand-dark-gray-dark`,...r,children:
|
|
181
|
+
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function Le(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function VX(e,t,n,r){var i,a;const l={...e._getDefaultColumnDef(),...t},c=l.accessorKey;let f=(i=(a=l.id)!=null?a:c?c.replace(".","_"):void 0)!=null?i:typeof l.header=="string"?l.header:void 0,h;if(l.accessorFn?h=l.accessorFn:c&&(c.includes(".")?h=m=>{let v=m;for(const S of c.split(".")){var C;v=(C=v)==null?void 0:C[S],process.env.NODE_ENV!=="production"&&v===void 0&&console.warn(`"${S}" in deeply nested key "${c}" returned undefined.`)}return v}:h=m=>m[l.accessorKey]),!f)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let p={id:`${String(f)}`,accessorFn:h,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Me(()=>[!0],()=>{var m;return[p,...(m=p.columns)==null?void 0:m.flatMap(v=>v.getFlatColumns())]},Le(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Me(()=>[e._getOrderColumnsFn()],m=>{var v;if((v=p.columns)!=null&&v.length){let C=p.columns.flatMap(S=>S.getLeafColumns());return m(C)}return[p]},Le(e.options,"debugColumns","column.getLeafColumns"))};for(const m of e._features)m.createColumn==null||m.createColumn(p,e);return p}const Ut="debugHeaders";function tC(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const u=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),u.push(c)};return l(a),u},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(u=>{u.createHeader==null||u.createHeader(a,e)}),a}const BX={createTable:e=>{e.getHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,u;const l=(a=r==null?void 0:r.map(p=>n.find(m=>m.id===p)).filter(Boolean))!=null?a:[],c=(u=i==null?void 0:i.map(p=>n.find(m=>m.id===p)).filter(Boolean))!=null?u:[],f=n.filter(p=>!(r!=null&&r.includes(p.id))&&!(i!=null&&i.includes(p.id)));return qu(t,[...l,...f,...c],e)},Le(e.options,Ut,"getHeaderGroups")),e.getCenterHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),qu(t,n,e,"center")),Le(e.options,Ut,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(u=>n.find(l=>l.id===u)).filter(Boolean))!=null?i:[];return qu(t,a,e,"left")},Le(e.options,Ut,"getLeftHeaderGroups")),e.getRightHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(u=>n.find(l=>l.id===u)).filter(Boolean))!=null?i:[];return qu(t,a,e,"right")},Le(e.options,Ut,"getRightHeaderGroups")),e.getFooterGroups=Me(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Le(e.options,Ut,"getFooterGroups")),e.getLeftFooterGroups=Me(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Le(e.options,Ut,"getLeftFooterGroups")),e.getCenterFooterGroups=Me(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Le(e.options,Ut,"getCenterFooterGroups")),e.getRightFooterGroups=Me(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Le(e.options,Ut,"getRightFooterGroups")),e.getFlatHeaders=Me(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Le(e.options,Ut,"getFlatHeaders")),e.getLeftFlatHeaders=Me(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Le(e.options,Ut,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Me(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Le(e.options,Ut,"getCenterFlatHeaders")),e.getRightFlatHeaders=Me(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Le(e.options,Ut,"getRightFlatHeaders")),e.getCenterLeafHeaders=Me(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Le(e.options,Ut,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Me(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Le(e.options,Ut,"getLeftLeafHeaders")),e.getRightLeafHeaders=Me(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Le(e.options,Ut,"getRightLeafHeaders")),e.getLeafHeaders=Me(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,u,l,c,f;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(u=(l=n[0])==null?void 0:l.headers)!=null?u:[],...(c=(f=r[0])==null?void 0:f.headers)!=null?c:[]].map(h=>h.getLeafHeaders()).flat()},Le(e.options,Ut,"getLeafHeaders"))}};function qu(e,t,n,r){var i,a;let u=0;const l=function(m,v){v===void 0&&(v=1),u=Math.max(u,v),m.filter(C=>C.getIsVisible()).forEach(C=>{var S;(S=C.columns)!=null&&S.length&&l(C.columns,v+1)},0)};l(e);let c=[];const f=(m,v)=>{const C={depth:v,id:[r,`${v}`].filter(Boolean).join("_"),headers:[]},S=[];m.forEach(E=>{const _=[...S].reverse()[0],R=E.column.depth===C.depth;let L,$=!1;if(R&&E.column.parent?L=E.column.parent:(L=E.column,$=!0),_&&(_==null?void 0:_.column)===L)_.subHeaders.push(E);else{const V=tC(n,L,{id:[r,v,L.id,E==null?void 0:E.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${S.filter(U=>U.column===L).length}`:void 0,depth:v,index:S.length});V.subHeaders.push(E),S.push(V)}C.headers.push(E),E.headerGroup=C}),c.push(C),v>0&&f(S,v-1)},h=t.map((m,v)=>tC(n,m,{depth:u,index:v}));f(h,u-1),c.reverse();const p=m=>m.filter(C=>C.column.getIsVisible()).map(C=>{let S=0,E=0,_=[0];C.subHeaders&&C.subHeaders.length?(_=[],p(C.subHeaders).forEach(L=>{let{colSpan:$,rowSpan:V}=L;S+=$,_.push(V)})):S=1;const R=Math.min(..._);return E=E+R,C.colSpan=S,C.rowSpan=E,{colSpan:S,rowSpan:E}});return p((i=(a=c[0])==null?void 0:a.headers)!=null?i:[]),c}const Qu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Sh=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),kX={getDefaultColumnDef:()=>Qu,getInitialState:e=>({columnSizing:{},columnSizingInfo:Sh(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:mn("columnSizing",e),onColumnSizingInfoChange:mn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Qu.minSize,(r=a??e.columnDef.size)!=null?r:Qu.size),(i=e.columnDef.maxSize)!=null?i:Qu.maxSize)},e.getStart=Me(n=>[n,Ua(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),Le(t.options,"debugColumns","getStart")),e.getAfter=Me(n=>[n,Ua(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),Le(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),Ih(a)&&a.touches&&a.touches.length>1))return;const u=e.getSize(),l=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[r.id,r.getSize()]],c=Ih(a)?Math.round(a.touches[0].clientX):a.clientX,f={},h=(_,R)=>{typeof R=="number"&&(t.setColumnSizingInfo(L=>{var $,V;const U=t.options.columnResizeDirection==="rtl"?-1:1,X=(R-(($=L==null?void 0:L.startOffset)!=null?$:0))*U,te=Math.max(X/((V=L==null?void 0:L.startSize)!=null?V:0),-.999999);return L.columnSizingStart.forEach(de=>{let[Pe,ke]=de;f[Pe]=Math.round(Math.max(ke+ke*te,0)*100)/100}),{...L,deltaOffset:X,deltaPercentage:te}}),(t.options.columnResizeMode==="onChange"||_==="end")&&t.setColumnSizing(L=>({...L,...f})))},p=_=>h("move",_),m=_=>{h("end",_),t.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},v=n||typeof document<"u"?document:null,C={moveHandler:_=>p(_.clientX),upHandler:_=>{v==null||v.removeEventListener("mousemove",C.moveHandler),v==null||v.removeEventListener("mouseup",C.upHandler),m(_.clientX)}},S={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),p(_.touches[0].clientX),!1),upHandler:_=>{var R;v==null||v.removeEventListener("touchmove",S.moveHandler),v==null||v.removeEventListener("touchend",S.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),m((R=_.touches[0])==null?void 0:R.clientX)}},E=jX()?{passive:!1}:!1;Ih(a)?(v==null||v.addEventListener("touchmove",S.moveHandler,E),v==null||v.addEventListener("touchend",S.upHandler,E)):(v==null||v.addEventListener("mousemove",C.moveHandler,E),v==null||v.addEventListener("mouseup",C.upHandler,E)),t.setColumnSizingInfo(_=>({..._,startOffset:c,startSize:u,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Sh():(n=e.initialState.columnSizingInfo)!=null?n:Sh())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let el=null;function jX(){if(typeof el=="boolean")return el;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return el=e,el}function Ih(e){return e.type==="touchstart"}const GX={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:mn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const u=a.split(".");r=Math.max(r,u.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let u={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{u[l]=!0}):u=r,n=(i=n)!=null?i:!a,!a&&n)return{...u,[e.id]:!0};if(a&&!n){const{[e.id]:l,...c}=u;return c}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},nC=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};nC.autoRemove=e=>jn(e);const rC=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};rC.autoRemove=e=>jn(e);const iC=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};iC.autoRemove=e=>jn(e);const oC=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};oC.autoRemove=e=>jn(e)||!(e!=null&&e.length);const aC=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});aC.autoRemove=e=>jn(e)||!(e!=null&&e.length);const sC=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});sC.autoRemove=e=>jn(e)||!(e!=null&&e.length);const uC=(e,t,n)=>e.getValue(t)===n;uC.autoRemove=e=>jn(e);const lC=(e,t,n)=>e.getValue(t)==n;lC.autoRemove=e=>jn(e);const Eh=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};Eh.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,u=n===null||Number.isNaN(i)?1/0:i;if(a>u){const l=a;a=u,u=l}return[a,u]},Eh.autoRemove=e=>jn(e)||jn(e[0])&&jn(e[1]);const br={includesString:nC,includesStringSensitive:rC,equalsString:iC,arrIncludes:oC,arrIncludesAll:aC,arrIncludesSome:sC,equals:uC,weakEquals:lC,inNumberRange:Eh};function jn(e){return e==null||e===""}const HX={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:mn("columnFilters",e),onGlobalFilterChange:mn("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?br.includesString:typeof r=="number"?br.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?br.equals:Array.isArray(r)?br.arrIncludes:br.weakEquals},e.getFilterFn=()=>{var n,r;return Ku(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:br[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(h=>h.id===e.id),u=Wr(n,a?a.value:void 0);if(cC(i,u,e)){var l;return(l=r==null?void 0:r.filter(h=>h.id!==e.id))!=null?l:[]}const c={id:e.id,value:u};if(a){var f;return(f=r==null?void 0:r.map(h=>h.id===e.id?c:h))!=null?f:[]}return r!=null&&r.length?[...r,c]:[c]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>br.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ku(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:br[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=Wr(t,i))==null?void 0:a.filter(u=>{const l=n.find(c=>c.id===u.id);if(l){const c=l.getFilterFn();if(cC(c,u.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function cC(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ah={sum:(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(a=>{const u=a.getValue(e);u!=null&&(r===void 0?u>=u&&(r=i=u):(r>u&&(r=u),i<u&&(i=u)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!$X(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,u)=>a-u);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},WX={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:mn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,i,a;return(n=(r=(i=(a=e.columnDef.enableGrouping)!=null?a:!0)!=null?i:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Ah.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ah.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ku(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Ah[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function ZX(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(u=>u.id===a)).filter(Boolean),...r]}const XX={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:mn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Me(n=>[Ua(t,n)],n=>n.findIndex(r=>r.id===e.id),Le(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Ua(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Ua(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Me(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const u=[...t],l=[...i];for(;l.length&&u.length;){const c=u.shift(),f=l.findIndex(h=>h.id===c);f>-1&&a.push(l.splice(f,1)[0])}a=[...a,...l]}return ZX(a,n,r)},Le(e.options,"debugTable","_getOrderColumnsFn"))}},_h=0,Ph=10,Th=()=>({pageIndex:_h,pageSize:Ph}),zX={getInitialState:e=>({...e,pagination:{...Th(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:mn("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>Wr(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Th():(i=e.initialState.pagination)!=null?i:Th())},e.setPageIndex=r=>{e.setPagination(i=>{let a=Wr(r,i.pageIndex);const u=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,u)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?_h:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:_h)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?Ph:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:Ph)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,Wr(r,i.pageSize)),u=i.pageSize*i.pageIndex,l=Math.floor(u/a);return{...i,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let u=Wr(r,(a=e.options.pageCount)!=null?a:-1);return typeof u=="number"&&(u=Math.max(-1,u)),{...i,pageCount:u}}),e.getPageOptions=Me(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,u)=>u)),i},Le(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Fh=()=>({left:[],right:[]}),Oh=()=>({top:[],bottom:[]}),UX={getInitialState:e=>({columnPinning:Fh(),rowPinning:Oh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:mn("columnPinning",e),onRowPinningChange:mn("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,u;if(n==="right"){var l,c;return{left:((l=i==null?void 0:i.left)!=null?l:[]).filter(p=>!(r!=null&&r.includes(p))),right:[...((c=i==null?void 0:i.right)!=null?c:[]).filter(p=>!(r!=null&&r.includes(p))),...r]}}if(n==="left"){var f,h;return{left:[...((f=i==null?void 0:i.left)!=null?f:[]).filter(p=>!(r!=null&&r.includes(p))),...r],right:((h=i==null?void 0:i.right)!=null?h:[]).filter(p=>!(r!=null&&r.includes(p)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(p=>!(r!=null&&r.includes(p))),right:((u=i==null?void 0:i.right)!=null?u:[]).filter(p=>!(r!=null&&r.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,u;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(u=t.options.enableColumnPinning)!=null?u:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(l=>r==null?void 0:r.includes(l)),u=n.some(l=>i==null?void 0:i.includes(l));return a?"left":u?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(c=>{let{id:f}=c;return f}):[],u=i?e.getParentRows().map(c=>{let{id:f}=c;return f}):[],l=new Set([...u,e.id,...a]);t.setRowPinning(c=>{var f,h;if(n==="bottom"){var p,m;return{top:((p=c==null?void 0:c.top)!=null?p:[]).filter(S=>!(l!=null&&l.has(S))),bottom:[...((m=c==null?void 0:c.bottom)!=null?m:[]).filter(S=>!(l!=null&&l.has(S))),...Array.from(l)]}}if(n==="top"){var v,C;return{top:[...((v=c==null?void 0:c.top)!=null?v:[]).filter(S=>!(l!=null&&l.has(S))),...Array.from(l)],bottom:((C=c==null?void 0:c.bottom)!=null?C:[]).filter(S=>!(l!=null&&l.has(S)))}}return{top:((f=c==null?void 0:c.top)!=null?f:[]).filter(S=>!(l!=null&&l.has(S))),bottom:((h=c==null?void 0:c.bottom)!=null?h:[]).filter(S=>!(l!=null&&l.has(S)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(l=>r==null?void 0:r.includes(l)),u=n.some(l=>i==null?void 0:i.includes(l));return a?"top":u?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=t._getPinnedRows(i))==null?void 0:n.map(u=>{let{id:l}=u;return l});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(u=>!a.includes(u.column.id))},Le(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Le(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Le(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Fh():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Fh())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Le(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Le(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},Le(e.options,"debugColumns","getCenterLeafColumns")),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Oh():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Oh())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=Me(t=>[e.getRowModel().rows,e.getState().rowPinning[t],t],(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(u=>{const l=e.getRow(u,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(u=>t.find(l=>l.id===u))).filter(Boolean).map(u=>({...u,position:r}))},Le(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},Le(e.options,"debugRows","getCenterRows"))}},YX={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:mn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{Rh(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Mh(e,n):{rows:[],flatRows:[],rowsById:{}},Le(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Mh(e,n):{rows:[],flatRows:[],rowsById:{}},Le(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Mh(e,n):{rows:[],flatRows:[],rowsById:{}},Le(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var u;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const l={...a};return Rh(l,e.id,n,(u=r==null?void 0:r.selectChildren)!=null?u:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Lh(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Dh(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Dh(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Rh=(e,t,n,r,i)=>{var a;const u=i.getRow(t,!0);n?(u.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),u.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=u.subRows)!=null&&a.length&&u.getCanSelectSubRows()&&u.subRows.forEach(l=>Rh(e,l.id,n,r,i))};function Mh(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(u,l){return u.map(c=>{var f;const h=Lh(c,n);if(h&&(r.push(c),i[c.id]=c),(f=c.subRows)!=null&&f.length&&(c={...c,subRows:a(c.subRows)}),h)return c}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Lh(e,t){var n;return(n=t[e.id])!=null?n:!1}function Dh(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(u=>{if(!(a&&!i)&&(u.getCanSelect()&&(Lh(u,t)?a=!0:i=!1),u.subRows&&u.subRows.length)){const l=Dh(u,t);l==="all"?a=!0:(l==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const $h=/([0-9]+)/gm,JX=(e,t,n)=>fC(Zr(e.getValue(n)).toLowerCase(),Zr(t.getValue(n)).toLowerCase()),KX=(e,t,n)=>fC(Zr(e.getValue(n)),Zr(t.getValue(n))),qX=(e,t,n)=>Nh(Zr(e.getValue(n)).toLowerCase(),Zr(t.getValue(n)).toLowerCase()),QX=(e,t,n)=>Nh(Zr(e.getValue(n)),Zr(t.getValue(n))),ez=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},tz=(e,t,n)=>Nh(e.getValue(n),t.getValue(n));function Nh(e,t){return e===t?0:e>t?1:-1}function Zr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function fC(e,t){const n=e.split($h).filter(Boolean),r=t.split($h).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),u=parseInt(i,10),l=parseInt(a,10),c=[u,l].sort();if(isNaN(c[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}return n.length-r.length}const za={alphanumeric:JX,alphanumericCaseSensitive:KX,text:qX,textCaseSensitive:QX,datetime:ez,basic:tz},nz={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:mn("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return za.datetime;if(typeof a=="string"&&(r=!0,a.split($h).length>1))return za.alphanumeric}return r?za.text:za.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ku(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:za[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(u=>{const l=u==null?void 0:u.find(v=>v.id===e.id),c=u==null?void 0:u.findIndex(v=>v.id===e.id);let f=[],h,p=a?n:i==="desc";if(u!=null&&u.length&&e.getCanMultiSort()&&r?l?h="toggle":h="add":u!=null&&u.length&&c!==u.length-1?h="replace":l?h="toggle":h="replace",h==="toggle"&&(a||i||(h="remove")),h==="add"){var m;f=[...u,{id:e.id,desc:p}],f.splice(0,f.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else h==="toggle"?f=u.map(v=>v.id===e.id?{...v,desc:p}:v):h==="remove"?f=u.filter(v=>v.id!==e.id):f=[{id:e.id,desc:p}];return f})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),u=e.getIsSorted();return u?u!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:u==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},rz={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:mn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Me(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Le(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Me(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Le(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>Me(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Le(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Ua(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const dC=[BX,rz,XX,UX,HX,nz,WX,GX,zX,YX,kX];function iz(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:dC};const r=n._features.reduce((h,p)=>Object.assign(h,p.getDefaultOptions==null?void 0:p.getDefaultOptions(n)),{}),i=h=>n.options.mergeOptions?n.options.mergeOptions(r,h):{...r,...h};let u={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(h=>{var p;u=(p=h.getInitialState==null?void 0:h.getInitialState(u))!=null?p:u});const l=[];let c=!1;const f={_features:dC,options:{...r,...e},initialState:u,_queue:h=>{l.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{n.setState(n.initialState)},setOptions:h=>{const p=Wr(h,n.options);n.options=i(p)},getState:()=>n.options.state,setState:h=>{n.options.onStateChange==null||n.options.onStateChange(h)},_getRowId:(h,p,m)=>{var v;return(v=n.options.getRowId==null?void 0:n.options.getRowId(h,p,m))!=null?v:`${m?[m.id,p].join("."):p}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(h,p)=>{let m=(p?n.getPrePaginationRowModel():n.getRowModel()).rowsById[h];if(!m&&(m=n.getCoreRowModel().rowsById[h],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return m},_getDefaultColumnDef:Me(()=>[n.options.defaultColumn],h=>{var p;return h=(p=h)!=null?p:{},{header:m=>{const v=m.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:m=>{var v,C;return(v=(C=m.renderValue())==null||C.toString==null?void 0:C.toString())!=null?v:null},...n._features.reduce((m,v)=>Object.assign(m,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...h}},Le(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>n.options.columns,getAllColumns:Me(()=>[n._getColumnDefs()],h=>{const p=function(m,v,C){return C===void 0&&(C=0),m.map(S=>{const E=VX(n,S,C,v),_=S;return E.columns=_.columns?p(_.columns,E,C+1):[],E})};return p(h)},Le(e,"debugColumns","getAllColumns")),getAllFlatColumns:Me(()=>[n.getAllColumns()],h=>h.flatMap(p=>p.getFlatColumns()),Le(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Me(()=>[n.getAllFlatColumns()],h=>h.reduce((p,m)=>(p[m.id]=m,p),{}),Le(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Me(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(h,p)=>{let m=h.flatMap(v=>v.getLeafColumns());return p(m)},Le(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const p=n._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!p&&console.error(`[Table] Column with id '${h}' does not exist.`),p}};Object.assign(n,f);for(let h=0;h<n._features.length;h++){const p=n._features[h];p==null||p.createTable==null||p.createTable(n)}return n}function oz(e,t,n,r){const i=()=>{var u;return(u=a.getValue())!=null?u:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:Me(()=>[e,n,t,a],(u,l,c,f)=>({table:u,column:l,row:c,cell:f,getValue:f.getValue,renderValue:f.renderValue}),Le(e.options,"debugCells","cell.getContext"))};return e._features.forEach(u=>{u.createCell==null||u.createCell(a,n,t,e)},{}),a}const Vh=(e,t,n,r,i,a,u)=>{let l={id:t,index:r,original:n,depth:i,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return l._valuesCache[c]=f.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=f.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var f;return(f=l.getValue(c))!=null?f:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>NX(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],f=l;for(;;){const h=f.getParentRow();if(!h)break;c.push(h),f=h}return c.reverse()},getAllCells:Me(()=>[e.getAllLeafColumns()],c=>c.map(f=>oz(e,l,f,f.id)),Le(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Me(()=>[l.getAllCells()],c=>c.reduce((f,h)=>(f[h.column.id]=h,f),{}),Le(e.options,"debugRows","getAllCellsByColumnId"))};for(let c=0;c<e._features.length;c++){const f=e._features[c];f==null||f.createRow==null||f.createRow(l,e)}return l};function hC(){return e=>Me(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,u){a===void 0&&(a=0);const l=[];for(let f=0;f<i.length;f++){const h=Vh(e,e._getRowId(i[f],f,u),i[f],f,a,void 0,u==null?void 0:u.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,l.push(h),e.options.getSubRows){var c;h.originalSubRows=e.options.getSubRows(i[f],f),(c=h.originalSubRows)!=null&&c.length&&(h.subRows=r(h.originalSubRows,a+1,h))}}return l};return n.rows=r(t),n},Le(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function az(e,t,n){return n.options.filterFromLeafRows?sz(e,t,n):uz(e,t,n)}function sz(e,t,n){var r;const i=[],a={},u=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,f){f===void 0&&(f=0);const h=[];for(let m=0;m<c.length;m++){var p;let v=c[m];const C=Vh(n,v.id,v.original,v.index,v.depth,void 0,v.parentId);if(C.columnFilters=v.columnFilters,(p=v.subRows)!=null&&p.length&&f<u){if(C.subRows=l(v.subRows,f+1),v=C,t(v)&&!C.subRows.length){h.push(v),a[v.id]=v,i.push(v);continue}if(t(v)||C.subRows.length){h.push(v),a[v.id]=v,i.push(v);continue}}else v=C,t(v)&&(h.push(v),a[v.id]=v,i.push(v))}return h};return{rows:l(e),flatRows:i,rowsById:a}}function uz(e,t,n){var r;const i=[],a={},u=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,f){f===void 0&&(f=0);const h=[];for(let m=0;m<c.length;m++){let v=c[m];if(t(v)){var p;if((p=v.subRows)!=null&&p.length&&f<u){const S=Vh(n,v.id,v.original,v.index,v.depth,void 0,v.parentId);S.subRows=l(v.subRows,f+1),v=S}h.push(v),i.push(v),a[v.id]=v}}return h};return{rows:l(e),flatRows:i,rowsById:a}}function pC(){return e=>Me(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let m=0;m<t.flatRows.length;m++)t.flatRows[m].columnFilters={},t.flatRows[m].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(m=>{var v;const C=e.getColumn(m.id);if(!C)return;const S=C.getFilterFn();if(!S){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${C.id}.`);return}i.push({id:m.id,filterFn:S,resolvedValue:(v=S.resolveFilterValue==null?void 0:S.resolveFilterValue(m.value))!=null?v:m.value})});const u=n.map(m=>m.id),l=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());r&&l&&c.length&&(u.push("__global__"),c.forEach(m=>{var v;a.push({id:m.id,filterFn:l,resolvedValue:(v=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?v:r})}));let f,h;for(let m=0;m<t.flatRows.length;m++){const v=t.flatRows[m];if(v.columnFilters={},i.length)for(let C=0;C<i.length;C++){f=i[C];const S=f.id;v.columnFilters[S]=f.filterFn(v,S,f.resolvedValue,E=>{v.columnFiltersMeta[S]=E})}if(a.length){for(let C=0;C<a.length;C++){h=a[C];const S=h.id;if(h.filterFn(v,S,h.resolvedValue,E=>{v.columnFiltersMeta[S]=E})){v.columnFilters.__global__=!0;break}}v.columnFilters.__global__!==!0&&(v.columnFilters.__global__=!1)}}const p=m=>{for(let v=0;v<u.length;v++)if(m.columnFilters[u[v]]===!1)return!1;return!0};return az(t.rows,p,e)},Le(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function gC(){return e=>Me(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(c=>{var f;return(f=e.getColumn(c.id))==null?void 0:f.getCanSort()}),u={};a.forEach(c=>{const f=e.getColumn(c.id);f&&(u[c.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const l=c=>{const f=c.map(h=>({...h}));return f.sort((h,p)=>{for(let v=0;v<a.length;v+=1){var m;const C=a[v],S=u[C.id],E=(m=C==null?void 0:C.desc)!=null?m:!1;let _=0;if(S.sortUndefined){const R=h.getValue(C.id),L=p.getValue(C.id),$=R===void 0,V=L===void 0;($||V)&&(_=$&&V?0:$?S.sortUndefined:-S.sortUndefined)}if(_===0&&(_=S.sortingFn(h,p,C.id)),_!==0)return E&&(_*=-1),S.invertSorting&&(_*=-1),_}return h.index-p.index}),f.forEach(h=>{var p;i.push(h),(p=h.subRows)!=null&&p.length&&(h.subRows=l(h.subRows))}),f};return{rows:l(n.rows),flatRows:i,rowsById:n.rowsById}},Le(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function mC(){return e=>Me(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:vC(n),Le(e.options,"debugTable","getExpandedRowModel"))}function vC(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function bC(e){return t=>Me(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:u,flatRows:l,rowsById:c}=r;const f=i*a,h=f+i;u=u.slice(f,h);let p;t.options.paginateExpandedRows?p={rows:u,flatRows:l,rowsById:c}:p=vC({rows:u,flatRows:l,rowsById:c}),p.flatRows=[];const m=v=>{p.flatRows.push(v),v.subRows.length&&v.subRows.forEach(m)};return p.rows.forEach(m),p},Le(t.options,"debugTable","getPaginationRowModel"))}/**
|
|
182
|
+
* react-table
|
|
183
|
+
*
|
|
184
|
+
* Copyright (c) TanStack
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the MIT license found in the
|
|
187
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
188
|
+
*
|
|
189
|
+
* @license MIT
|
|
190
|
+
*/function tl(e,t){return e?lz(e)?ie.createElement(e,t):e:null}function lz(e){return cz(e)||typeof e=="function"||fz(e)}function cz(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function fz(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yC(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=ie.useState(()=>({current:iz(t)})),[r,i]=ie.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:u=>{i(u),e.onStateChange==null||e.onStateChange(u)}})),n.current}function dz({value:e,onChange:t,placeholder:n,debounce:r=500,...i}){const[a,u]=b.useState(e);return b.useEffect(()=>{u(e)},[e]),b.useEffect(()=>{const l=setTimeout(()=>{t(a)},r);return()=>clearTimeout(l)},[a]),A.jsxs("div",{className:"flex items-center gap-2 px-2 my-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b focus-within:border-brand-primary focus-within:ring-brand-primary dark:bg-gray-700",children:[A.jsx(Jl,{className:"text-brand-secondary-text dark:text-brand-gray"}),A.jsx("input",{...i,value:a,className:"flex-1 py-2 bg-transparent text-sm border-none appearance-none focus:outline-none focus:ring-0",placeholder:n,onChange:l=>u(l.target.value)})]})}function hz(e,t){return e?[{id:"select",sortingFn:!1,header:({table:r})=>A.jsx(xC,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler()}),cell:({row:r})=>A.jsx("div",{className:"px-1",children:A.jsx(xC,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler()})})},...t]:t}function xC({indeterminate:e,className:t="w-5 h-5 rounded-md border-brand-primary border-1 text-brand-primary focus:ring-0",...n}){const r=b.useRef(null);return b.useEffect(()=>{typeof e=="boolean"&&(r.current.indeterminate=!n.checked&&e)},[r,e]),A.jsx("input",{type:"checkbox",ref:r,className:t+" cursor-pointer",...n})}function Bh(e){var t;return((t=e==null?void 0:e.subHeaders)==null?void 0:t.length)>0}function CC(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[e.column.parent.columns.length-1])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function wC(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[0])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function pz({data:e,columns:t,isFetching:n,searchable:r=!0,isRowSelection:i=!1,spinnerMessage:a="Carregando...",noRecordsMessage:u="Nenhuma entrada encontrada.",searchPlaceholder:l="Buscar...",itemsPerPageMessage:c="Itens por página:",pageSeparatorMessage:f="de",onRowSelection:h,renderSubComponent:p,getRowCanExpand:m}){const v="onChange",[C,S]=b.useState([]),[E,_]=b.useState({}),[R,L]=b.useState(""),$=yC({data:e,columns:hz(i,t),columnResizeMode:v,initialState:{pagination:{pageSize:5}},defaultColumn:{minSize:100,size:150,maxSize:1e3},state:{rowSelection:E,sorting:C,globalFilter:R},getRowCanExpand:m,onGlobalFilterChange:L,onRowSelectionChange:_,getCoreRowModel:hC(),getFilteredRowModel:pC(),getPaginationRowModel:bC(),onSortingChange:S,getSortedRowModel:gC(),getExpandedRowModel:mC()}),V=$.getState().pagination.pageSize;function U(ee,ve){function ye(){const Ee=ee.column.getIsSorted();return Ee?Ee==="desc"?A.jsx(sg,{}):A.jsx(ag,{}):A.jsx(ug,{})}return A.jsx(A.Fragment,{children:A.jsx("th",{className:Je("px-2 py-3 text-xs text-left select-none border-b border-brand-disabled",{"border-r":Bh(ee)||CC(ee),"border-l":Bh(ee)||wC(ee)}),colSpan:ee.colSpan,style:{width:X(ee)},children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{className:"flex flex-row items-center space-x-4 text-sm font-bold text-brand-primary",children:[A.jsx("span",{className:"w-full",children:tl(ee.column.columnDef.header,ee.getContext())}),ee.column.columnDef.sortingFn&&!Bh(ee)&&A.jsx("span",{className:`px-2 ${ee.column.getCanSort()?"cursor-pointer":""}`,onClick:Ee=>ee.column.getToggleSortingHandler()(Ee),children:ye()})]}),ee.id!=="select"&&A.jsx("div",{onMouseDown:ee.getResizeHandler(),onTouchStart:ee.getResizeHandler(),className:"w-3 h-full text-brand-gray cursor-col-resize",children:A.jsx(og,{})})]})},`thead-th-${ee.id}-${ve}`)})}function X(ee){return ee.id==="select"?50:ee.getSize()}function te(ee){return A.jsx("tr",{className:"mx-auto",children:ee.headers.map(U)},`thead-tr-${ee.id}`)}function de(ee,ve){return A.jsx("td",{className:Je("px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",{"border-r":CC(ee),"border-l":wC(ee)}),children:tl(ee.column.columnDef.cell,ee.getContext())},`tbody-td-${ee.id}-${ve}`)}function Pe(ee,ve){return A.jsxs(b.Fragment,{children:[A.jsx("tr",{className:"mx-auto children:text-sm children:py-3 children:text-brand-text dark:children:text-white children:last-of-type:border-b children:last-of-type:border-brand-disabled",children:ee.getVisibleCells().map(de)},`tbody-tr-${ee.id}-${ve}`),ee.getIsExpanded()?A.jsx("tr",{children:A.jsx("td",{colSpan:ee.getVisibleCells().length,children:p({row:ee})})}):null]},`tbody-fragmment-${ee.id}-${ve}`)}function ke(ee){$.setPageSize(Number(ee.target.value))}function He(){return h($.getSelectedRowModel().flatRows)}return A.jsxs("div",{className:"text-black dark:text-white",children:[r&&A.jsx(dz,{value:R??"",onChange:ee=>L(String(ee)),placeholder:l}),n&&A.jsx("div",{className:"flex items-center justify-center mt-10",children:A.jsx(yu,{size:50,children:a})}),e.length===0&&!n&&A.jsx("p",{className:"text-sm text-center",children:u}),e.length>0&&!n&&A.jsx("div",{className:"flex justify-center items-center",children:A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{style:{width:$.getCenterTotalSize()},children:[A.jsx("thead",{children:$.getHeaderGroups().map(te)}),A.jsx("tbody",{className:"divide-y divide-brand-disabled",children:$.getRowModel().rows.map(Pe)})]})})}),A.jsxs("div",{className:"flex items-center justify-end gap-2 px-2 py-2 my-2 text-sm text-brand-text dark:text-white",children:[A.jsx("p",{children:c}),A.jsx("select",{className:Je("w-20 border-0 border-b border-brand-disabled focus:outline-none focus:ring-0 focus:border-l-0 focus:border-b focus:border-brand-primary","bg-brand-light-gray dark:bg-brand-dark-gray-dark","text-brand-secondary-text dark:text-brand-gray"),value:V,onChange:ke,children:[5,10,25,50].map(ee=>A.jsx("option",{value:ee,children:ee},`page-size-option-${ee}`))}),A.jsxs("span",{children:[$.getState().pagination.pageIndex+1," ",f," ",$.getPageCount()]}),A.jsx("button",{onClick:()=>$.setPageIndex(0),disabled:!$.getCanPreviousPage(),className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(rg,{})}),A.jsx("button",{onClick:()=>$.previousPage(),disabled:!$.getCanPreviousPage(),className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(Ul,{})}),A.jsx("button",{onClick:()=>$.nextPage(),disabled:!$.getCanNextPage(),className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(Yl,{})}),A.jsx("button",{onClick:()=>$.setPageIndex($.getPageCount()-1),disabled:!$.getCanNextPage(),className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(ig,{})})]}),i&&h&&He()]})}const SC=({children:e,tooltip:t})=>A.jsxs("div",{className:"relative inline-block group",children:[e,A.jsx("span",{className:`${Je("invisible","group-hover:visible","opacity-0","group-hover:opacity-100","z-0","group-hover:z-50","transition","transform","left-1/2","text-xs","-top-9","-translate-x-1/2","bg-brand-text","text-white","p-2","rounded","absolute","whitespace-nowrap")}`,children:t})]}),gz=({children:e,className:t,id:n,tooltip:r,variant:i,...a})=>A.jsx(A.Fragment,{children:A.jsx(SC,{tooltip:r,children:A.jsx("button",{className:`${Je("w-8 h-8 rounded","flex items-center justify-center","transition outline-none outline-2","shadow-action-button hover:shadow-action-button-hover","hover:bg-brand-secondary hover:text-white disabled:bg-brand-disabled disabled:text-white","disabled:shadow-none disabled:hover:cursor-not-allowed",{"bg-brand-primary text-white":i==="primary","bg-brand-tertiary-light text-brand-primary":i==="secondary"},t)}`,...a,children:e})},n)});function mz({setFilter:e,placeholder:t}){let n=0;function r(i){clearTimeout(n),n=setTimeout(()=>{e(i.target.value||void 0)},500)}return A.jsxs("div",{className:"flex items-center gap-2 px-2 my-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b focus-within:border-brand-primary focus-within:ring-brand-primary dark:bg-gray-700",children:[A.jsx(Jl,{className:"text-brand-secondary-text dark:text-brand-gray"}),A.jsx("input",{className:"flex-1 py-2 bg-transparent text-sm border-none appearance-none focus:outline-none focus:ring-0",placeholder:t,onChange:r})]})}function vz(e,t){return e?[{id:"select",sortingFn:!1,header:({table:r})=>A.jsx(IC,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler()}),cell:({row:r})=>A.jsx("div",{className:"px-1",children:A.jsx(IC,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler()})})},...t]:t}function IC({indeterminate:e,className:t="w-5 h-5 rounded-md border-brand-primary border-1 text-brand-primary focus:ring-0",...n}){const r=b.useRef(null);return b.useEffect(()=>{typeof e=="boolean"&&(r.current.indeterminate=!n.checked&&e)},[r,e]),A.jsx("input",{type:"checkbox",ref:r,className:t+" cursor-pointer",...n})}function kh(e){var t;return((t=e==null?void 0:e.subHeaders)==null?void 0:t.length)>0}function EC(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[e.column.parent.columns.length-1])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function AC(e){var t,n,r,i,a,u,l;return((r=(n=(t=e==null?void 0:e.column)==null?void 0:t.parent)==null?void 0:n.columns)==null?void 0:r.length)&&((u=(a=(i=e==null?void 0:e.column)==null?void 0:i.parent)==null?void 0:a.columns[0])==null?void 0:u.id)===((l=e==null?void 0:e.column)==null?void 0:l.id)}function bz({data:e,columns:t,isFetching:n,searchable:r=!0,isRowSelection:i=!1,totalRecords:a,spinnerMessage:u="Carregando...",noRecordsMessage:l="Nenhuma entrada encontrada.",searchPlaceholder:c="Buscar...",itemsPerPageMessage:f="Itens por página:",pageSeparatorMessage:h="de",onRowSelection:p,renderSubComponent:m,getRowCanExpand:v,onSearch:C,onSize:S,onPage:E,onColumn:_,onSort:R}){const L="onChange",[$,V]=b.useState([]),[U,X]=b.useState(0),[te,de]=b.useState(!1),[Pe,ke]=b.useState(!1),[He,ee]=b.useState({}),ve=yC({data:e,columns:vz(i,t),columnResizeMode:L,initialState:{pagination:{pageSize:5}},defaultColumn:{minSize:100,size:150,maxSize:1e3},state:{rowSelection:He,sorting:$},getRowCanExpand:v,onRowSelectionChange:ee,getCoreRowModel:hC(),getFilteredRowModel:pC(),getPaginationRowModel:bC(),onSortingChange:V,getSortedRowModel:gC(),getExpandedRowModel:mC()}),ye=ve.getState().pagination.pageSize;function Ee(G,q){function ue(){const le=G.column.getIsSorted();return le?le==="desc"?A.jsx(sg,{}):A.jsx(ag,{}):A.jsx(ug,{})}function J(le){const Q=le.column.getIsSorted();R(typeof Q=="boolean"?"":Q),_(le.id)}return A.jsx(A.Fragment,{children:A.jsx("th",{className:Je("px-2 py-3 text-xs text-left select-none border-b border-brand-disabled",{"border-r":kh(G)||EC(G),"border-l":kh(G)||AC(G)}),colSpan:G.colSpan,style:{width:Ve(G)},children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{className:"flex flex-row items-center space-x-4 text-sm font-bold text-brand-primary",children:[A.jsx("span",{className:"w-full",children:tl(G.column.columnDef.header,G.getContext())}),G.column.columnDef.sortingFn&&!kh(G)&&A.jsx("span",{className:`px-2 ${G.column.getCanSort()?"cursor-pointer":""}`,onClick:async le=>{await G.column.getToggleSortingHandler()(le),J(G)},children:ue()})]}),G.id!=="select"&&A.jsx("div",{onMouseDown:G.getResizeHandler(),onTouchStart:G.getResizeHandler(),className:"w-3 h-full text-brand-gray cursor-col-resize",children:A.jsx(og,{})})]})},`thead-th-${G.id}-${q}`)})}function Ve(G){return G.id==="select"?50:G.getSize()}function Ke(G){return A.jsx("tr",{className:"mx-auto",children:G.headers.map(Ee)},`thead-tr-${G.id}`)}function F(G,q){return A.jsx("td",{className:Je("px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",{"border-r":EC(G),"border-l":AC(G)}),children:tl(G.column.columnDef.cell,G.getContext())},`tbody-td-${G.id}-${q}`)}function T(G,q){return A.jsxs(b.Fragment,{children:[A.jsx("tr",{className:"mx-auto children:text-sm children:py-3 children:text-brand-text dark:children:text-white children:last-of-type:border-b children:last-of-type:border-brand-disabled",children:G.getVisibleCells().map(F)},`tbody-tr-${G.id}-${q}`),G.getIsExpanded()?A.jsx("tr",{children:A.jsx("td",{colSpan:G.getVisibleCells().length,children:m({row:G})})}):null]},`tbody-fragmment-${G.id}-${q}`)}function M(G){E(G),X(G)}function O(G){S(Number(G.target.value)),ve.setPageSize(Number(G.target.value))}function y(G){M(0),C(G)}function H(){M(0)}function ne(){const G=U-1;M(G)}function ae(){const G=U+1;M(G)}function z(){const G=Math.ceil(a/ye)-1;M(G)}function Y(){return p(ve.getSelectedRowModel().flatRows)}return b.useEffect(()=>{function G(){if(U===0){de(!1);return}de(!0)}function q(){if(U>=Math.ceil(a/ye)-1){ke(!1);return}ke(!0)}G(),q()},[U,a]),A.jsxs("div",{className:"text-black dark:text-white",children:[r&&A.jsx(mz,{setFilter:y,placeholder:c}),n&&A.jsx("div",{className:"flex items-center justify-center mt-10",children:A.jsx(yu,{size:50,children:u})}),e.length===0&&!n&&A.jsx("p",{className:"text-sm text-center",children:l}),e.length>0&&!n&&A.jsx("div",{className:"flex justify-center items-center",children:A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{style:{width:ve.getCenterTotalSize()},children:[A.jsx("thead",{children:ve.getHeaderGroups().map(Ke)}),A.jsx("tbody",{className:"divide-y divide-brand-disabled",children:ve.getRowModel().rows.map(T)})]})})}),A.jsxs("div",{className:"flex items-center justify-end gap-2 px-2 py-2 my-2 text-sm text-brand-text dark:text-white",children:[A.jsx("p",{children:f}),A.jsx("select",{className:Je("w-20 border-0 border-b border-brand-disabled focus:outline-none focus:ring-0 focus:border-l-0 focus:border-b focus:border-brand-primary","bg-brand-light-gray dark:bg-brand-dark-gray-dark","text-brand-secondary-text dark:text-brand-gray"),value:ye,onChange:O,children:[5,10,25,50].map(G=>A.jsx("option",{value:G,children:G},`page-size-option-${G}`))}),A.jsxs("span",{children:[U+1," ",h," ",Math.ceil(a/ye)]}),A.jsx("button",{onClick:H,disabled:!te,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(rg,{})}),A.jsx("button",{onClick:ne,disabled:!te,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(Ul,{})}),A.jsx("button",{onClick:ae,disabled:!Pe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(Yl,{})}),A.jsx("button",{onClick:z,disabled:!Pe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:A.jsx(ig,{})})]}),i&&p&&Y()]})}const jh=({Container:e,children:t,fileName:n,disabled:r,onChange:i,accept:a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"})=>{const u=b.useRef(null),l=()=>{var f;return(f=u.current)==null?void 0:f.click()},c=f=>{const h=f.target;h.value=""};return A.jsxs(A.Fragment,{children:[A.jsx(e,{type:"button",disabled:r,onClick:l,fileName:n,children:t}),A.jsx("input",{ref:u,type:"file",className:"hidden",accept:a,onClick:c,onChange:f=>{i(f.target.files[0])}})]})},yz=e=>A.jsx(qi,{variant:"primary",...e}),xz=e=>A.jsx(qi,{variant:"secondary",...e}),Cz=({children:e,disabled:t,fileName:n,...r})=>A.jsx("button",{disabled:t,className:`relative ${t?"bg-gray-300 text-white cursor-not-allowed border-2 border-gray-900 border-dashed":"bg-white text-primary-500 hover:bg-primary-100 hover:mb-0 border-2 border-gray-800 border-dashed cursor-pointer"}
|
|
191
|
+
flex items-center justify-center w-full h-full p-2 overflow-hidden transition-all duration-300 ease-out transform focus:outline-none rounded-2xl border-opacity-20 dark:bg-brand-dark-gray-dark`,...r,children:A.jsxs("div",{className:`flex ${n?"flex-row":"flex-col"} items-center justify-center`,children:[A.jsx("div",{children:n?A.jsx(aS,{}):A.jsx(yS,{})}),A.jsx("div",{children:A.jsx("span",{className:"w-full text-sm text-center text-gray-900 dark:text-brand-secondary-text",children:e})})]})}),wz={PrimaryButton:e=>A.jsx(jh,{...e,Container:yz}),OutlineButton:e=>A.jsx(jh,{...e,Container:xz}),BoxButton:e=>A.jsx(jh,{...e,Container:Cz})};var nl={exports:{}};/**
|
|
192
192
|
* @license
|
|
193
193
|
* Lodash <https://lodash.com/>
|
|
194
194
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
195
195
|
* Released under MIT license <https://lodash.com/license>
|
|
196
196
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
197
197
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
198
|
-
*/Yu.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,S=1,C=2,E=1,P=2,M=4,$=8,B=16,N=32,U=64,X=128,ee=256,fe=512,Oe=30,ze="...",He=800,he=16,Ce=1,be=2,_e=3,De=1/0,Ye=9007199254740991,T=17976931348623157e292,_=NaN,R=4294967295,O=R-1,y=R>>>1,H=[["ary",X],["bind",E],["bindKey",P],["curry",$],["curryRight",B],["flip",fe],["partial",N],["partialRight",U],["rearg",ee]],te="[object Arguments]",oe="[object Array]",z="[object AsyncFunction]",Y="[object Boolean]",G="[object Date]",q="[object DOMException]",se="[object Error]",J="[object Function]",ue="[object GeneratorFunction]",Q="[object Map]",de="[object Number]",Se="[object Null]",ye="[object Object]",Ne="[object Promise]",ke="[object Proxy]",Ke="[object RegExp]",it="[object Set]",at="[object String]",St="[object Symbol]",zt="[object Undefined]",Rt="[object WeakMap]",kn="[object WeakSet]",Nt="[object ArrayBuffer]",qn="[object DataView]",vr="[object Float32Array]",br="[object Float64Array]",jn="[object Int8Array]",bi="[object Int16Array]",yi="[object Int32Array]",xi="[object Uint8Array]",Ci="[object Uint8ClampedArray]",wi="[object Uint16Array]",Si="[object Uint32Array]",Wa=/\b__p \+= '';/g,yr=/\b(__p \+=) '' \+/g,Ii=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,Qn=/[&<>"']/g,xr=RegExp(Ut.source),Ei=RegExp(Qn.source),Za=/<%-([\s\S]+?)%>/g,Ai=/<%([\s\S]+?)%>/g,Lo=/<%=([\s\S]+?)%>/g,_i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,Xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ti=/[\\^$.*+?()[\]{}|]/g,Oi=RegExp(Ti.source),Fi=/^\s+/,za=/\s/,Ua=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ya=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,V=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,W=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ae=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,je=/^0o[0-7]+$/i,We=/^(?:0|[1-9]\d*)$/,ht=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,Ri=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",fz="\\u0300-\\u036f",dz="\\ufe20-\\ufe2f",pz="\\u20d0-\\u20ff",nC=fz+dz+pz,rC="\\u2700-\\u27bf",iC="a-z\\xdf-\\xf6\\xf8-\\xff",hz="\\xac\\xb1\\xd7\\xf7",gz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mz="\\u2000-\\u206f",vz=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oC="A-Z\\xc0-\\xd6\\xd8-\\xde",aC="\\ufe0e\\ufe0f",sC=hz+gz+mz+vz,Fp="['’]",bz="["+It+"]",uC="["+sC+"]",Ju="["+nC+"]",lC="\\d+",yz="["+rC+"]",cC="["+iC+"]",fC="[^"+It+sC+lC+rC+iC+oC+"]",Rp="\\ud83c[\\udffb-\\udfff]",xz="(?:"+Ju+"|"+Rp+")",dC="[^"+It+"]",Mp="(?:\\ud83c[\\udde6-\\uddff]){2}",Lp="[\\ud800-\\udbff][\\udc00-\\udfff]",$o="["+oC+"]",pC="\\u200d",hC="(?:"+cC+"|"+fC+")",Cz="(?:"+$o+"|"+fC+")",gC="(?:"+Fp+"(?:d|ll|m|re|s|t|ve))?",mC="(?:"+Fp+"(?:D|LL|M|RE|S|T|VE))?",vC=xz+"?",bC="["+aC+"]?",wz="(?:"+pC+"(?:"+[dC,Mp,Lp].join("|")+")"+bC+vC+")*",Sz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Iz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yC=bC+vC+wz,Ez="(?:"+[yz,Mp,Lp].join("|")+")"+yC,Az="(?:"+[dC+Ju+"?",Ju,Mp,Lp,bz].join("|")+")",_z=RegExp(Fp,"g"),Pz=RegExp(Ju,"g"),$p=RegExp(Rp+"(?="+Rp+")|"+Az+yC,"g"),Tz=RegExp([$o+"?"+cC+"+"+gC+"(?="+[uC,$o,"$"].join("|")+")",Cz+"+"+mC+"(?="+[uC,$o+hC,"$"].join("|")+")",$o+"?"+hC+"+"+gC,$o+"+"+mC,Iz,Sz,lC,Ez].join("|"),"g"),Oz=RegExp("["+pC+It+nC+aC+"]"),Fz=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rz=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mz=-1,Ct={};Ct[vr]=Ct[br]=Ct[jn]=Ct[bi]=Ct[yi]=Ct[xi]=Ct[Ci]=Ct[wi]=Ct[Si]=!0,Ct[te]=Ct[oe]=Ct[Nt]=Ct[Y]=Ct[qn]=Ct[G]=Ct[se]=Ct[J]=Ct[Q]=Ct[de]=Ct[ye]=Ct[Ke]=Ct[it]=Ct[at]=Ct[Rt]=!1;var bt={};bt[te]=bt[oe]=bt[Nt]=bt[qn]=bt[Y]=bt[G]=bt[vr]=bt[br]=bt[jn]=bt[bi]=bt[yi]=bt[Q]=bt[de]=bt[ye]=bt[Ke]=bt[it]=bt[at]=bt[St]=bt[xi]=bt[Ci]=bt[wi]=bt[Si]=!0,bt[se]=bt[J]=bt[Rt]=!1;var Lz={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$z={"&":"&","<":"<",">":">",'"':""","'":"'"},Dz={"&":"&","<":"<",">":">",""":'"',"'":"'"},Nz={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vz=parseFloat,Bz=parseInt,xC=typeof rr=="object"&&rr&&rr.Object===Object&&rr,kz=typeof self=="object"&&self&&self.Object===Object&&self,Ht=xC||kz||Function("return this")(),Dp=t&&!t.nodeType&&t,Mi=Dp&&!0&&e&&!e.nodeType&&e,CC=Mi&&Mi.exports===Dp,Np=CC&&xC.process,In=function(){try{var k=Mi&&Mi.require&&Mi.require("util").types;return k||Np&&Np.binding&&Np.binding("util")}catch{}}(),wC=In&&In.isArrayBuffer,SC=In&&In.isDate,IC=In&&In.isMap,EC=In&&In.isRegExp,AC=In&&In.isSet,_C=In&&In.isTypedArray;function gn(k,K,Z){switch(Z.length){case 0:return k.call(K);case 1:return k.call(K,Z[0]);case 2:return k.call(K,Z[0],Z[1]);case 3:return k.call(K,Z[0],Z[1],Z[2])}return k.apply(K,Z)}function jz(k,K,Z,xe){for(var Ge=-1,lt=k==null?0:k.length;++Ge<lt;){var Vt=k[Ge];K(xe,Vt,Z(Vt),k)}return xe}function En(k,K){for(var Z=-1,xe=k==null?0:k.length;++Z<xe&&K(k[Z],Z,k)!==!1;);return k}function Gz(k,K){for(var Z=k==null?0:k.length;Z--&&K(k[Z],Z,k)!==!1;);return k}function PC(k,K){for(var Z=-1,xe=k==null?0:k.length;++Z<xe;)if(!K(k[Z],Z,k))return!1;return!0}function Wr(k,K){for(var Z=-1,xe=k==null?0:k.length,Ge=0,lt=[];++Z<xe;){var Vt=k[Z];K(Vt,Z,k)&&(lt[Ge++]=Vt)}return lt}function Ku(k,K){var Z=k==null?0:k.length;return!!Z&&Do(k,K,0)>-1}function Vp(k,K,Z){for(var xe=-1,Ge=k==null?0:k.length;++xe<Ge;)if(Z(K,k[xe]))return!0;return!1}function Et(k,K){for(var Z=-1,xe=k==null?0:k.length,Ge=Array(xe);++Z<xe;)Ge[Z]=K(k[Z],Z,k);return Ge}function Zr(k,K){for(var Z=-1,xe=K.length,Ge=k.length;++Z<xe;)k[Ge+Z]=K[Z];return k}function Bp(k,K,Z,xe){var Ge=-1,lt=k==null?0:k.length;for(xe&<&&(Z=k[++Ge]);++Ge<lt;)Z=K(Z,k[Ge],Ge,k);return Z}function Hz(k,K,Z,xe){var Ge=k==null?0:k.length;for(xe&&Ge&&(Z=k[--Ge]);Ge--;)Z=K(Z,k[Ge],Ge,k);return Z}function kp(k,K){for(var Z=-1,xe=k==null?0:k.length;++Z<xe;)if(K(k[Z],Z,k))return!0;return!1}var Wz=jp("length");function Zz(k){return k.split("")}function Xz(k){return k.match(V)||[]}function TC(k,K,Z){var xe;return Z(k,function(Ge,lt,Vt){if(K(Ge,lt,Vt))return xe=lt,!1}),xe}function qu(k,K,Z,xe){for(var Ge=k.length,lt=Z+(xe?1:-1);xe?lt--:++lt<Ge;)if(K(k[lt],lt,k))return lt;return-1}function Do(k,K,Z){return K===K?iU(k,K,Z):qu(k,OC,Z)}function zz(k,K,Z,xe){for(var Ge=Z-1,lt=k.length;++Ge<lt;)if(xe(k[Ge],K))return Ge;return-1}function OC(k){return k!==k}function FC(k,K){var Z=k==null?0:k.length;return Z?Hp(k,K)/Z:_}function jp(k){return function(K){return K==null?n:K[k]}}function Gp(k){return function(K){return k==null?n:k[K]}}function RC(k,K,Z,xe,Ge){return Ge(k,function(lt,Vt,gt){Z=xe?(xe=!1,lt):K(Z,lt,Vt,gt)}),Z}function Uz(k,K){var Z=k.length;for(k.sort(K);Z--;)k[Z]=k[Z].value;return k}function Hp(k,K){for(var Z,xe=-1,Ge=k.length;++xe<Ge;){var lt=K(k[xe]);lt!==n&&(Z=Z===n?lt:Z+lt)}return Z}function Wp(k,K){for(var Z=-1,xe=Array(k);++Z<k;)xe[Z]=K(Z);return xe}function Yz(k,K){return Et(K,function(Z){return[Z,k[Z]]})}function MC(k){return k&&k.slice(0,NC(k)+1).replace(Fi,"")}function mn(k){return function(K){return k(K)}}function Zp(k,K){return Et(K,function(Z){return k[Z]})}function Ja(k,K){return k.has(K)}function LC(k,K){for(var Z=-1,xe=k.length;++Z<xe&&Do(K,k[Z],0)>-1;);return Z}function $C(k,K){for(var Z=k.length;Z--&&Do(K,k[Z],0)>-1;);return Z}function Jz(k,K){for(var Z=k.length,xe=0;Z--;)k[Z]===K&&++xe;return xe}var Kz=Gp(Lz),qz=Gp($z);function Qz(k){return"\\"+Nz[k]}function eU(k,K){return k==null?n:k[K]}function No(k){return Oz.test(k)}function tU(k){return Fz.test(k)}function nU(k){for(var K,Z=[];!(K=k.next()).done;)Z.push(K.value);return Z}function Xp(k){var K=-1,Z=Array(k.size);return k.forEach(function(xe,Ge){Z[++K]=[Ge,xe]}),Z}function DC(k,K){return function(Z){return k(K(Z))}}function Xr(k,K){for(var Z=-1,xe=k.length,Ge=0,lt=[];++Z<xe;){var Vt=k[Z];(Vt===K||Vt===p)&&(k[Z]=p,lt[Ge++]=Z)}return lt}function Qu(k){var K=-1,Z=Array(k.size);return k.forEach(function(xe){Z[++K]=xe}),Z}function rU(k){var K=-1,Z=Array(k.size);return k.forEach(function(xe){Z[++K]=[xe,xe]}),Z}function iU(k,K,Z){for(var xe=Z-1,Ge=k.length;++xe<Ge;)if(k[xe]===K)return xe;return-1}function oU(k,K,Z){for(var xe=Z+1;xe--;)if(k[xe]===K)return xe;return xe}function Vo(k){return No(k)?sU(k):Wz(k)}function Gn(k){return No(k)?uU(k):Zz(k)}function NC(k){for(var K=k.length;K--&&za.test(k.charAt(K)););return K}var aU=Gp(Dz);function sU(k){for(var K=$p.lastIndex=0;$p.test(k);)++K;return K}function uU(k){return k.match($p)||[]}function lU(k){return k.match(Tz)||[]}var cU=function k(K){K=K==null?Ht:Bo.defaults(Ht.Object(),K,Bo.pick(Ht,Rz));var Z=K.Array,xe=K.Date,Ge=K.Error,lt=K.Function,Vt=K.Math,gt=K.Object,zp=K.RegExp,fU=K.String,An=K.TypeError,el=Z.prototype,dU=lt.prototype,ko=gt.prototype,tl=K["__core-js_shared__"],nl=dU.toString,pt=ko.hasOwnProperty,pU=0,VC=function(){var o=/[^.]+$/.exec(tl&&tl.keys&&tl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),rl=ko.toString,hU=nl.call(gt),gU=Ht._,mU=zp("^"+nl.call(pt).replace(Ti,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),il=CC?K.Buffer:n,zr=K.Symbol,ol=K.Uint8Array,BC=il?il.allocUnsafe:n,al=DC(gt.getPrototypeOf,gt),kC=gt.create,jC=ko.propertyIsEnumerable,sl=el.splice,GC=zr?zr.isConcatSpreadable:n,Ka=zr?zr.iterator:n,Li=zr?zr.toStringTag:n,ul=function(){try{var o=Bi(gt,"defineProperty");return o({},"",{}),o}catch{}}(),vU=K.clearTimeout!==Ht.clearTimeout&&K.clearTimeout,bU=xe&&xe.now!==Ht.Date.now&&xe.now,yU=K.setTimeout!==Ht.setTimeout&&K.setTimeout,ll=Vt.ceil,cl=Vt.floor,Up=gt.getOwnPropertySymbols,xU=il?il.isBuffer:n,HC=K.isFinite,CU=el.join,wU=DC(gt.keys,gt),Bt=Vt.max,Yt=Vt.min,SU=xe.now,IU=K.parseInt,WC=Vt.random,EU=el.reverse,Yp=Bi(K,"DataView"),qa=Bi(K,"Map"),Jp=Bi(K,"Promise"),jo=Bi(K,"Set"),Qa=Bi(K,"WeakMap"),es=Bi(gt,"create"),fl=Qa&&new Qa,Go={},AU=ki(Yp),_U=ki(qa),PU=ki(Jp),TU=ki(jo),OU=ki(Qa),dl=zr?zr.prototype:n,ts=dl?dl.valueOf:n,ZC=dl?dl.toString:n;function I(o){if(Ot(o)&&!Ze(o)&&!(o instanceof tt)){if(o instanceof _n)return o;if(pt.call(o,"__wrapped__"))return Xw(o)}return new _n(o)}var Ho=function(){function o(){}return function(s){if(!_t(s))return{};if(kC)return kC(s);o.prototype=s;var d=new o;return o.prototype=n,d}}();function pl(){}function _n(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}I.templateSettings={escape:Za,evaluate:Ai,interpolate:Lo,variable:"",imports:{_:I}},I.prototype=pl.prototype,I.prototype.constructor=I,_n.prototype=Ho(pl.prototype),_n.prototype.constructor=_n;function tt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function FU(){var o=new tt(this.__wrapped__);return o.__actions__=an(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=an(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=an(this.__views__),o}function RU(){if(this.__filtered__){var o=new tt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function MU(){var o=this.__wrapped__.value(),s=this.__dir__,d=Ze(o),g=s<0,w=d?o.length:0,A=ZY(0,w,this.__views__),L=A.start,D=A.end,j=D-L,ne=g?D:L-1,ie=this.__iteratees__,ae=ie.length,ge=0,Ee=Yt(j,this.__takeCount__);if(!d||!g&&w==j&&Ee==j)return gw(o,this.__actions__);var Me=[];e:for(;j--&&ge<Ee;){ne+=s;for(var Je=-1,Le=o[ne];++Je<ae;){var Qe=ie[Je],rt=Qe.iteratee,yn=Qe.type,en=rt(Le);if(yn==be)Le=en;else if(!en){if(yn==Ce)continue e;break e}}Me[ge++]=Le}return Me}tt.prototype=Ho(pl.prototype),tt.prototype.constructor=tt;function $i(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function LU(){this.__data__=es?es(null):{},this.size=0}function $U(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function DU(o){var s=this.__data__;if(es){var d=s[o];return d===c?n:d}return pt.call(s,o)?s[o]:n}function NU(o){var s=this.__data__;return es?s[o]!==n:pt.call(s,o)}function VU(o,s){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=es&&s===n?c:s,this}$i.prototype.clear=LU,$i.prototype.delete=$U,$i.prototype.get=DU,$i.prototype.has=NU,$i.prototype.set=VU;function Cr(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function BU(){this.__data__=[],this.size=0}function kU(o){var s=this.__data__,d=hl(s,o);if(d<0)return!1;var g=s.length-1;return d==g?s.pop():sl.call(s,d,1),--this.size,!0}function jU(o){var s=this.__data__,d=hl(s,o);return d<0?n:s[d][1]}function GU(o){return hl(this.__data__,o)>-1}function HU(o,s){var d=this.__data__,g=hl(d,o);return g<0?(++this.size,d.push([o,s])):d[g][1]=s,this}Cr.prototype.clear=BU,Cr.prototype.delete=kU,Cr.prototype.get=jU,Cr.prototype.has=GU,Cr.prototype.set=HU;function wr(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function WU(){this.size=0,this.__data__={hash:new $i,map:new(qa||Cr),string:new $i}}function ZU(o){var s=Al(this,o).delete(o);return this.size-=s?1:0,s}function XU(o){return Al(this,o).get(o)}function zU(o){return Al(this,o).has(o)}function UU(o,s){var d=Al(this,o),g=d.size;return d.set(o,s),this.size+=d.size==g?0:1,this}wr.prototype.clear=WU,wr.prototype.delete=ZU,wr.prototype.get=XU,wr.prototype.has=zU,wr.prototype.set=UU;function Di(o){var s=-1,d=o==null?0:o.length;for(this.__data__=new wr;++s<d;)this.add(o[s])}function YU(o){return this.__data__.set(o,c),this}function JU(o){return this.__data__.has(o)}Di.prototype.add=Di.prototype.push=YU,Di.prototype.has=JU;function Hn(o){var s=this.__data__=new Cr(o);this.size=s.size}function KU(){this.__data__=new Cr,this.size=0}function qU(o){var s=this.__data__,d=s.delete(o);return this.size=s.size,d}function QU(o){return this.__data__.get(o)}function eY(o){return this.__data__.has(o)}function tY(o,s){var d=this.__data__;if(d instanceof Cr){var g=d.__data__;if(!qa||g.length<i-1)return g.push([o,s]),this.size=++d.size,this;d=this.__data__=new wr(g)}return d.set(o,s),this.size=d.size,this}Hn.prototype.clear=KU,Hn.prototype.delete=qU,Hn.prototype.get=QU,Hn.prototype.has=eY,Hn.prototype.set=tY;function XC(o,s){var d=Ze(o),g=!d&&ji(o),w=!d&&!g&&qr(o),A=!d&&!g&&!w&&zo(o),L=d||g||w||A,D=L?Wp(o.length,fU):[],j=D.length;for(var ne in o)(s||pt.call(o,ne))&&!(L&&(ne=="length"||w&&(ne=="offset"||ne=="parent")||A&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Ar(ne,j)))&&D.push(ne);return D}function zC(o){var s=o.length;return s?o[sh(0,s-1)]:n}function nY(o,s){return _l(an(o),Ni(s,0,o.length))}function rY(o){return _l(an(o))}function Kp(o,s,d){(d!==n&&!Wn(o[s],d)||d===n&&!(s in o))&&Sr(o,s,d)}function ns(o,s,d){var g=o[s];(!(pt.call(o,s)&&Wn(g,d))||d===n&&!(s in o))&&Sr(o,s,d)}function hl(o,s){for(var d=o.length;d--;)if(Wn(o[d][0],s))return d;return-1}function iY(o,s,d,g){return Ur(o,function(w,A,L){s(g,w,d(w),L)}),g}function UC(o,s){return o&&tr(s,jt(s),o)}function oY(o,s){return o&&tr(s,un(s),o)}function Sr(o,s,d){s=="__proto__"&&ul?ul(o,s,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[s]=d}function qp(o,s){for(var d=-1,g=s.length,w=Z(g),A=o==null;++d<g;)w[d]=A?n:Rh(o,s[d]);return w}function Ni(o,s,d){return o===o&&(d!==n&&(o=o<=d?o:d),s!==n&&(o=o>=s?o:s)),o}function Pn(o,s,d,g,w,A){var L,D=s&h,j=s&m,ne=s&v;if(d&&(L=w?d(o,g,w,A):d(o)),L!==n)return L;if(!_t(o))return o;var ie=Ze(o);if(ie){if(L=zY(o),!D)return an(o,L)}else{var ae=Jt(o),ge=ae==J||ae==ue;if(qr(o))return bw(o,D);if(ae==ye||ae==te||ge&&!w){if(L=j||ge?{}:Nw(o),!D)return j?DY(o,oY(L,o)):$Y(o,UC(L,o))}else{if(!bt[ae])return w?o:{};L=UY(o,ae,D)}}A||(A=new Hn);var Ee=A.get(o);if(Ee)return Ee;A.set(o,L),d2(o)?o.forEach(function(Le){L.add(Pn(Le,s,d,Le,o,A))}):c2(o)&&o.forEach(function(Le,Qe){L.set(Qe,Pn(Le,s,d,Qe,o,A))});var Me=ne?j?bh:vh:j?un:jt,Je=ie?n:Me(o);return En(Je||o,function(Le,Qe){Je&&(Qe=Le,Le=o[Qe]),ns(L,Qe,Pn(Le,s,d,Qe,o,A))}),L}function aY(o){var s=jt(o);return function(d){return YC(d,o,s)}}function YC(o,s,d){var g=d.length;if(o==null)return!g;for(o=gt(o);g--;){var w=d[g],A=s[w],L=o[w];if(L===n&&!(w in o)||!A(L))return!1}return!0}function JC(o,s,d){if(typeof o!="function")throw new An(u);return ls(function(){o.apply(n,d)},s)}function rs(o,s,d,g){var w=-1,A=Ku,L=!0,D=o.length,j=[],ne=s.length;if(!D)return j;d&&(s=Et(s,mn(d))),g?(A=Vp,L=!1):s.length>=i&&(A=Ja,L=!1,s=new Di(s));e:for(;++w<D;){var ie=o[w],ae=d==null?ie:d(ie);if(ie=g||ie!==0?ie:0,L&&ae===ae){for(var ge=ne;ge--;)if(s[ge]===ae)continue e;j.push(ie)}else A(s,ae,g)||j.push(ie)}return j}var Ur=Sw(er),KC=Sw(eh,!0);function sY(o,s){var d=!0;return Ur(o,function(g,w,A){return d=!!s(g,w,A),d}),d}function gl(o,s,d){for(var g=-1,w=o.length;++g<w;){var A=o[g],L=s(A);if(L!=null&&(D===n?L===L&&!bn(L):d(L,D)))var D=L,j=A}return j}function uY(o,s,d,g){var w=o.length;for(d=Ue(d),d<0&&(d=-d>w?0:w+d),g=g===n||g>w?w:Ue(g),g<0&&(g+=w),g=d>g?0:h2(g);d<g;)o[d++]=s;return o}function qC(o,s){var d=[];return Ur(o,function(g,w,A){s(g,w,A)&&d.push(g)}),d}function Wt(o,s,d,g,w){var A=-1,L=o.length;for(d||(d=JY),w||(w=[]);++A<L;){var D=o[A];s>0&&d(D)?s>1?Wt(D,s-1,d,g,w):Zr(w,D):g||(w[w.length]=D)}return w}var Qp=Iw(),QC=Iw(!0);function er(o,s){return o&&Qp(o,s,jt)}function eh(o,s){return o&&QC(o,s,jt)}function ml(o,s){return Wr(s,function(d){return _r(o[d])})}function Vi(o,s){s=Jr(s,o);for(var d=0,g=s.length;o!=null&&d<g;)o=o[nr(s[d++])];return d&&d==g?o:n}function ew(o,s,d){var g=s(o);return Ze(o)?g:Zr(g,d(o))}function qt(o){return o==null?o===n?zt:Se:Li&&Li in gt(o)?WY(o):rJ(o)}function th(o,s){return o>s}function lY(o,s){return o!=null&&pt.call(o,s)}function cY(o,s){return o!=null&&s in gt(o)}function fY(o,s,d){return o>=Yt(s,d)&&o<Bt(s,d)}function nh(o,s,d){for(var g=d?Vp:Ku,w=o[0].length,A=o.length,L=A,D=Z(A),j=1/0,ne=[];L--;){var ie=o[L];L&&s&&(ie=Et(ie,mn(s))),j=Yt(ie.length,j),D[L]=!d&&(s||w>=120&&ie.length>=120)?new Di(L&&ie):n}ie=o[0];var ae=-1,ge=D[0];e:for(;++ae<w&&ne.length<j;){var Ee=ie[ae],Me=s?s(Ee):Ee;if(Ee=d||Ee!==0?Ee:0,!(ge?Ja(ge,Me):g(ne,Me,d))){for(L=A;--L;){var Je=D[L];if(!(Je?Ja(Je,Me):g(o[L],Me,d)))continue e}ge&&ge.push(Me),ne.push(Ee)}}return ne}function dY(o,s,d,g){return er(o,function(w,A,L){s(g,d(w),A,L)}),g}function is(o,s,d){s=Jr(s,o),o=jw(o,s);var g=o==null?o:o[nr(On(s))];return g==null?n:gn(g,o,d)}function tw(o){return Ot(o)&&qt(o)==te}function pY(o){return Ot(o)&&qt(o)==Nt}function hY(o){return Ot(o)&&qt(o)==G}function os(o,s,d,g,w){return o===s?!0:o==null||s==null||!Ot(o)&&!Ot(s)?o!==o&&s!==s:gY(o,s,d,g,os,w)}function gY(o,s,d,g,w,A){var L=Ze(o),D=Ze(s),j=L?oe:Jt(o),ne=D?oe:Jt(s);j=j==te?ye:j,ne=ne==te?ye:ne;var ie=j==ye,ae=ne==ye,ge=j==ne;if(ge&&qr(o)){if(!qr(s))return!1;L=!0,ie=!1}if(ge&&!ie)return A||(A=new Hn),L||zo(o)?Lw(o,s,d,g,w,A):GY(o,s,j,d,g,w,A);if(!(d&S)){var Ee=ie&&pt.call(o,"__wrapped__"),Me=ae&&pt.call(s,"__wrapped__");if(Ee||Me){var Je=Ee?o.value():o,Le=Me?s.value():s;return A||(A=new Hn),w(Je,Le,d,g,A)}}return ge?(A||(A=new Hn),HY(o,s,d,g,w,A)):!1}function mY(o){return Ot(o)&&Jt(o)==Q}function rh(o,s,d,g){var w=d.length,A=w,L=!g;if(o==null)return!A;for(o=gt(o);w--;){var D=d[w];if(L&&D[2]?D[1]!==o[D[0]]:!(D[0]in o))return!1}for(;++w<A;){D=d[w];var j=D[0],ne=o[j],ie=D[1];if(L&&D[2]){if(ne===n&&!(j in o))return!1}else{var ae=new Hn;if(g)var ge=g(ne,ie,j,o,s,ae);if(!(ge===n?os(ie,ne,S|C,g,ae):ge))return!1}}return!0}function nw(o){if(!_t(o)||qY(o))return!1;var s=_r(o)?mU:ot;return s.test(ki(o))}function vY(o){return Ot(o)&&qt(o)==Ke}function bY(o){return Ot(o)&&Jt(o)==it}function yY(o){return Ot(o)&&Ml(o.length)&&!!Ct[qt(o)]}function rw(o){return typeof o=="function"?o:o==null?ln:typeof o=="object"?Ze(o)?aw(o[0],o[1]):ow(o):E2(o)}function ih(o){if(!us(o))return wU(o);var s=[];for(var d in gt(o))pt.call(o,d)&&d!="constructor"&&s.push(d);return s}function xY(o){if(!_t(o))return nJ(o);var s=us(o),d=[];for(var g in o)g=="constructor"&&(s||!pt.call(o,g))||d.push(g);return d}function oh(o,s){return o<s}function iw(o,s){var d=-1,g=sn(o)?Z(o.length):[];return Ur(o,function(w,A,L){g[++d]=s(w,A,L)}),g}function ow(o){var s=xh(o);return s.length==1&&s[0][2]?Bw(s[0][0],s[0][1]):function(d){return d===o||rh(d,o,s)}}function aw(o,s){return wh(o)&&Vw(s)?Bw(nr(o),s):function(d){var g=Rh(d,o);return g===n&&g===s?Mh(d,o):os(s,g,S|C)}}function vl(o,s,d,g,w){o!==s&&Qp(s,function(A,L){if(w||(w=new Hn),_t(A))CY(o,s,L,d,vl,g,w);else{var D=g?g(Ih(o,L),A,L+"",o,s,w):n;D===n&&(D=A),Kp(o,L,D)}},un)}function CY(o,s,d,g,w,A,L){var D=Ih(o,d),j=Ih(s,d),ne=L.get(j);if(ne){Kp(o,d,ne);return}var ie=A?A(D,j,d+"",o,s,L):n,ae=ie===n;if(ae){var ge=Ze(j),Ee=!ge&&qr(j),Me=!ge&&!Ee&&zo(j);ie=j,ge||Ee||Me?Ze(D)?ie=D:Mt(D)?ie=an(D):Ee?(ae=!1,ie=bw(j,!0)):Me?(ae=!1,ie=yw(j,!0)):ie=[]:cs(j)||ji(j)?(ie=D,ji(D)?ie=g2(D):(!_t(D)||_r(D))&&(ie=Nw(j))):ae=!1}ae&&(L.set(j,ie),w(ie,j,g,A,L),L.delete(j)),Kp(o,d,ie)}function sw(o,s){var d=o.length;if(d)return s+=s<0?d:0,Ar(s,d)?o[s]:n}function uw(o,s,d){s.length?s=Et(s,function(A){return Ze(A)?function(L){return Vi(L,A.length===1?A[0]:A)}:A}):s=[ln];var g=-1;s=Et(s,mn(Fe()));var w=iw(o,function(A,L,D){var j=Et(s,function(ne){return ne(A)});return{criteria:j,index:++g,value:A}});return Uz(w,function(A,L){return LY(A,L,d)})}function wY(o,s){return lw(o,s,function(d,g){return Mh(o,g)})}function lw(o,s,d){for(var g=-1,w=s.length,A={};++g<w;){var L=s[g],D=Vi(o,L);d(D,L)&&as(A,Jr(L,o),D)}return A}function SY(o){return function(s){return Vi(s,o)}}function ah(o,s,d,g){var w=g?zz:Do,A=-1,L=s.length,D=o;for(o===s&&(s=an(s)),d&&(D=Et(o,mn(d)));++A<L;)for(var j=0,ne=s[A],ie=d?d(ne):ne;(j=w(D,ie,j,g))>-1;)D!==o&&sl.call(D,j,1),sl.call(o,j,1);return o}function cw(o,s){for(var d=o?s.length:0,g=d-1;d--;){var w=s[d];if(d==g||w!==A){var A=w;Ar(w)?sl.call(o,w,1):ch(o,w)}}return o}function sh(o,s){return o+cl(WC()*(s-o+1))}function IY(o,s,d,g){for(var w=-1,A=Bt(ll((s-o)/(d||1)),0),L=Z(A);A--;)L[g?A:++w]=o,o+=d;return L}function uh(o,s){var d="";if(!o||s<1||s>Ye)return d;do s%2&&(d+=o),s=cl(s/2),s&&(o+=o);while(s);return d}function qe(o,s){return Eh(kw(o,s,ln),o+"")}function EY(o){return zC(Uo(o))}function AY(o,s){var d=Uo(o);return _l(d,Ni(s,0,d.length))}function as(o,s,d,g){if(!_t(o))return o;s=Jr(s,o);for(var w=-1,A=s.length,L=A-1,D=o;D!=null&&++w<A;){var j=nr(s[w]),ne=d;if(j==="__proto__"||j==="constructor"||j==="prototype")return o;if(w!=L){var ie=D[j];ne=g?g(ie,j,D):n,ne===n&&(ne=_t(ie)?ie:Ar(s[w+1])?[]:{})}ns(D,j,ne),D=D[j]}return o}var fw=fl?function(o,s){return fl.set(o,s),o}:ln,_Y=ul?function(o,s){return ul(o,"toString",{configurable:!0,enumerable:!1,value:$h(s),writable:!0})}:ln;function PY(o){return _l(Uo(o))}function Tn(o,s,d){var g=-1,w=o.length;s<0&&(s=-s>w?0:w+s),d=d>w?w:d,d<0&&(d+=w),w=s>d?0:d-s>>>0,s>>>=0;for(var A=Z(w);++g<w;)A[g]=o[g+s];return A}function TY(o,s){var d;return Ur(o,function(g,w,A){return d=s(g,w,A),!d}),!!d}function bl(o,s,d){var g=0,w=o==null?g:o.length;if(typeof s=="number"&&s===s&&w<=y){for(;g<w;){var A=g+w>>>1,L=o[A];L!==null&&!bn(L)&&(d?L<=s:L<s)?g=A+1:w=A}return w}return lh(o,s,ln,d)}function lh(o,s,d,g){var w=0,A=o==null?0:o.length;if(A===0)return 0;s=d(s);for(var L=s!==s,D=s===null,j=bn(s),ne=s===n;w<A;){var ie=cl((w+A)/2),ae=d(o[ie]),ge=ae!==n,Ee=ae===null,Me=ae===ae,Je=bn(ae);if(L)var Le=g||Me;else ne?Le=Me&&(g||ge):D?Le=Me&&ge&&(g||!Ee):j?Le=Me&&ge&&!Ee&&(g||!Je):Ee||Je?Le=!1:Le=g?ae<=s:ae<s;Le?w=ie+1:A=ie}return Yt(A,O)}function dw(o,s){for(var d=-1,g=o.length,w=0,A=[];++d<g;){var L=o[d],D=s?s(L):L;if(!d||!Wn(D,j)){var j=D;A[w++]=L===0?0:L}}return A}function pw(o){return typeof o=="number"?o:bn(o)?_:+o}function vn(o){if(typeof o=="string")return o;if(Ze(o))return Et(o,vn)+"";if(bn(o))return ZC?ZC.call(o):"";var s=o+"";return s=="0"&&1/o==-De?"-0":s}function Yr(o,s,d){var g=-1,w=Ku,A=o.length,L=!0,D=[],j=D;if(d)L=!1,w=Vp;else if(A>=i){var ne=s?null:kY(o);if(ne)return Qu(ne);L=!1,w=Ja,j=new Di}else j=s?[]:D;e:for(;++g<A;){var ie=o[g],ae=s?s(ie):ie;if(ie=d||ie!==0?ie:0,L&&ae===ae){for(var ge=j.length;ge--;)if(j[ge]===ae)continue e;s&&j.push(ae),D.push(ie)}else w(j,ae,d)||(j!==D&&j.push(ae),D.push(ie))}return D}function ch(o,s){return s=Jr(s,o),o=jw(o,s),o==null||delete o[nr(On(s))]}function hw(o,s,d,g){return as(o,s,d(Vi(o,s)),g)}function yl(o,s,d,g){for(var w=o.length,A=g?w:-1;(g?A--:++A<w)&&s(o[A],A,o););return d?Tn(o,g?0:A,g?A+1:w):Tn(o,g?A+1:0,g?w:A)}function gw(o,s){var d=o;return d instanceof tt&&(d=d.value()),Bp(s,function(g,w){return w.func.apply(w.thisArg,Zr([g],w.args))},d)}function fh(o,s,d){var g=o.length;if(g<2)return g?Yr(o[0]):[];for(var w=-1,A=Z(g);++w<g;)for(var L=o[w],D=-1;++D<g;)D!=w&&(A[w]=rs(A[w]||L,o[D],s,d));return Yr(Wt(A,1),s,d)}function mw(o,s,d){for(var g=-1,w=o.length,A=s.length,L={};++g<w;){var D=g<A?s[g]:n;d(L,o[g],D)}return L}function dh(o){return Mt(o)?o:[]}function ph(o){return typeof o=="function"?o:ln}function Jr(o,s){return Ze(o)?o:wh(o,s)?[o]:Zw(dt(o))}var OY=qe;function Kr(o,s,d){var g=o.length;return d=d===n?g:d,!s&&d>=g?o:Tn(o,s,d)}var vw=vU||function(o){return Ht.clearTimeout(o)};function bw(o,s){if(s)return o.slice();var d=o.length,g=BC?BC(d):new o.constructor(d);return o.copy(g),g}function hh(o){var s=new o.constructor(o.byteLength);return new ol(s).set(new ol(o)),s}function FY(o,s){var d=s?hh(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function RY(o){var s=new o.constructor(o.source,Ae.exec(o));return s.lastIndex=o.lastIndex,s}function MY(o){return ts?gt(ts.call(o)):{}}function yw(o,s){var d=s?hh(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function xw(o,s){if(o!==s){var d=o!==n,g=o===null,w=o===o,A=bn(o),L=s!==n,D=s===null,j=s===s,ne=bn(s);if(!D&&!ne&&!A&&o>s||A&&L&&j&&!D&&!ne||g&&L&&j||!d&&j||!w)return 1;if(!g&&!A&&!ne&&o<s||ne&&d&&w&&!g&&!A||D&&d&&w||!L&&w||!j)return-1}return 0}function LY(o,s,d){for(var g=-1,w=o.criteria,A=s.criteria,L=w.length,D=d.length;++g<L;){var j=xw(w[g],A[g]);if(j){if(g>=D)return j;var ne=d[g];return j*(ne=="desc"?-1:1)}}return o.index-s.index}function Cw(o,s,d,g){for(var w=-1,A=o.length,L=d.length,D=-1,j=s.length,ne=Bt(A-L,0),ie=Z(j+ne),ae=!g;++D<j;)ie[D]=s[D];for(;++w<L;)(ae||w<A)&&(ie[d[w]]=o[w]);for(;ne--;)ie[D++]=o[w++];return ie}function ww(o,s,d,g){for(var w=-1,A=o.length,L=-1,D=d.length,j=-1,ne=s.length,ie=Bt(A-D,0),ae=Z(ie+ne),ge=!g;++w<ie;)ae[w]=o[w];for(var Ee=w;++j<ne;)ae[Ee+j]=s[j];for(;++L<D;)(ge||w<A)&&(ae[Ee+d[L]]=o[w++]);return ae}function an(o,s){var d=-1,g=o.length;for(s||(s=Z(g));++d<g;)s[d]=o[d];return s}function tr(o,s,d,g){var w=!d;d||(d={});for(var A=-1,L=s.length;++A<L;){var D=s[A],j=g?g(d[D],o[D],D,d,o):n;j===n&&(j=o[D]),w?Sr(d,D,j):ns(d,D,j)}return d}function $Y(o,s){return tr(o,Ch(o),s)}function DY(o,s){return tr(o,$w(o),s)}function xl(o,s){return function(d,g){var w=Ze(d)?jz:iY,A=s?s():{};return w(d,o,Fe(g,2),A)}}function Wo(o){return qe(function(s,d){var g=-1,w=d.length,A=w>1?d[w-1]:n,L=w>2?d[2]:n;for(A=o.length>3&&typeof A=="function"?(w--,A):n,L&&Qt(d[0],d[1],L)&&(A=w<3?n:A,w=1),s=gt(s);++g<w;){var D=d[g];D&&o(s,D,g,A)}return s})}function Sw(o,s){return function(d,g){if(d==null)return d;if(!sn(d))return o(d,g);for(var w=d.length,A=s?w:-1,L=gt(d);(s?A--:++A<w)&&g(L[A],A,L)!==!1;);return d}}function Iw(o){return function(s,d,g){for(var w=-1,A=gt(s),L=g(s),D=L.length;D--;){var j=L[o?D:++w];if(d(A[j],j,A)===!1)break}return s}}function NY(o,s,d){var g=s&E,w=ss(o);function A(){var L=this&&this!==Ht&&this instanceof A?w:o;return L.apply(g?d:this,arguments)}return A}function Ew(o){return function(s){s=dt(s);var d=No(s)?Gn(s):n,g=d?d[0]:s.charAt(0),w=d?Kr(d,1).join(""):s.slice(1);return g[o]()+w}}function Zo(o){return function(s){return Bp(S2(w2(s).replace(_z,"")),o,"")}}function ss(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var d=Ho(o.prototype),g=o.apply(d,s);return _t(g)?g:d}}function VY(o,s,d){var g=ss(o);function w(){for(var A=arguments.length,L=Z(A),D=A,j=Xo(w);D--;)L[D]=arguments[D];var ne=A<3&&L[0]!==j&&L[A-1]!==j?[]:Xr(L,j);if(A-=ne.length,A<d)return Ow(o,s,Cl,w.placeholder,n,L,ne,n,n,d-A);var ie=this&&this!==Ht&&this instanceof w?g:o;return gn(ie,this,L)}return w}function Aw(o){return function(s,d,g){var w=gt(s);if(!sn(s)){var A=Fe(d,3);s=jt(s),d=function(D){return A(w[D],D,w)}}var L=o(s,d,g);return L>-1?w[A?s[L]:L]:n}}function _w(o){return Er(function(s){var d=s.length,g=d,w=_n.prototype.thru;for(o&&s.reverse();g--;){var A=s[g];if(typeof A!="function")throw new An(u);if(w&&!L&&El(A)=="wrapper")var L=new _n([],!0)}for(g=L?g:d;++g<d;){A=s[g];var D=El(A),j=D=="wrapper"?yh(A):n;j&&Sh(j[0])&&j[1]==(X|$|N|ee)&&!j[4].length&&j[9]==1?L=L[El(j[0])].apply(L,j[3]):L=A.length==1&&Sh(A)?L[D]():L.thru(A)}return function(){var ne=arguments,ie=ne[0];if(L&&ne.length==1&&Ze(ie))return L.plant(ie).value();for(var ae=0,ge=d?s[ae].apply(this,ne):ie;++ae<d;)ge=s[ae].call(this,ge);return ge}})}function Cl(o,s,d,g,w,A,L,D,j,ne){var ie=s&X,ae=s&E,ge=s&P,Ee=s&($|B),Me=s&fe,Je=ge?n:ss(o);function Le(){for(var Qe=arguments.length,rt=Z(Qe),yn=Qe;yn--;)rt[yn]=arguments[yn];if(Ee)var en=Xo(Le),xn=Jz(rt,en);if(g&&(rt=Cw(rt,g,w,Ee)),A&&(rt=ww(rt,A,L,Ee)),Qe-=xn,Ee&&Qe<ne){var Lt=Xr(rt,en);return Ow(o,s,Cl,Le.placeholder,d,rt,Lt,D,j,ne-Qe)}var Zn=ae?d:this,Tr=ge?Zn[o]:o;return Qe=rt.length,D?rt=iJ(rt,D):Me&&Qe>1&&rt.reverse(),ie&&j<Qe&&(rt.length=j),this&&this!==Ht&&this instanceof Le&&(Tr=Je||ss(Tr)),Tr.apply(Zn,rt)}return Le}function Pw(o,s){return function(d,g){return dY(d,o,s(g),{})}}function wl(o,s){return function(d,g){var w;if(d===n&&g===n)return s;if(d!==n&&(w=d),g!==n){if(w===n)return g;typeof d=="string"||typeof g=="string"?(d=vn(d),g=vn(g)):(d=pw(d),g=pw(g)),w=o(d,g)}return w}}function gh(o){return Er(function(s){return s=Et(s,mn(Fe())),qe(function(d){var g=this;return o(s,function(w){return gn(w,g,d)})})})}function Sl(o,s){s=s===n?" ":vn(s);var d=s.length;if(d<2)return d?uh(s,o):s;var g=uh(s,ll(o/Vo(s)));return No(s)?Kr(Gn(g),0,o).join(""):g.slice(0,o)}function BY(o,s,d,g){var w=s&E,A=ss(o);function L(){for(var D=-1,j=arguments.length,ne=-1,ie=g.length,ae=Z(ie+j),ge=this&&this!==Ht&&this instanceof L?A:o;++ne<ie;)ae[ne]=g[ne];for(;j--;)ae[ne++]=arguments[++D];return gn(ge,w?d:this,ae)}return L}function Tw(o){return function(s,d,g){return g&&typeof g!="number"&&Qt(s,d,g)&&(d=g=n),s=Pr(s),d===n?(d=s,s=0):d=Pr(d),g=g===n?s<d?1:-1:Pr(g),IY(s,d,g,o)}}function Il(o){return function(s,d){return typeof s=="string"&&typeof d=="string"||(s=Fn(s),d=Fn(d)),o(s,d)}}function Ow(o,s,d,g,w,A,L,D,j,ne){var ie=s&$,ae=ie?L:n,ge=ie?n:L,Ee=ie?A:n,Me=ie?n:A;s|=ie?N:U,s&=~(ie?U:N),s&M||(s&=~(E|P));var Je=[o,s,w,Ee,ae,Me,ge,D,j,ne],Le=d.apply(n,Je);return Sh(o)&&Gw(Le,Je),Le.placeholder=g,Hw(Le,o,s)}function mh(o){var s=Vt[o];return function(d,g){if(d=Fn(d),g=g==null?0:Yt(Ue(g),292),g&&HC(d)){var w=(dt(d)+"e").split("e"),A=s(w[0]+"e"+(+w[1]+g));return w=(dt(A)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return s(d)}}var kY=jo&&1/Qu(new jo([,-0]))[1]==De?function(o){return new jo(o)}:Vh;function Fw(o){return function(s){var d=Jt(s);return d==Q?Xp(s):d==it?rU(s):Yz(s,o(s))}}function Ir(o,s,d,g,w,A,L,D){var j=s&P;if(!j&&typeof o!="function")throw new An(u);var ne=g?g.length:0;if(ne||(s&=~(N|U),g=w=n),L=L===n?L:Bt(Ue(L),0),D=D===n?D:Ue(D),ne-=w?w.length:0,s&U){var ie=g,ae=w;g=w=n}var ge=j?n:yh(o),Ee=[o,s,d,g,w,ie,ae,A,L,D];if(ge&&tJ(Ee,ge),o=Ee[0],s=Ee[1],d=Ee[2],g=Ee[3],w=Ee[4],D=Ee[9]=Ee[9]===n?j?0:o.length:Bt(Ee[9]-ne,0),!D&&s&($|B)&&(s&=~($|B)),!s||s==E)var Me=NY(o,s,d);else s==$||s==B?Me=VY(o,s,D):(s==N||s==(E|N))&&!w.length?Me=BY(o,s,d,g):Me=Cl.apply(n,Ee);var Je=ge?fw:Gw;return Hw(Je(Me,Ee),o,s)}function Rw(o,s,d,g){return o===n||Wn(o,ko[d])&&!pt.call(g,d)?s:o}function Mw(o,s,d,g,w,A){return _t(o)&&_t(s)&&(A.set(s,o),vl(o,s,n,Mw,A),A.delete(s)),o}function jY(o){return cs(o)?n:o}function Lw(o,s,d,g,w,A){var L=d&S,D=o.length,j=s.length;if(D!=j&&!(L&&j>D))return!1;var ne=A.get(o),ie=A.get(s);if(ne&&ie)return ne==s&&ie==o;var ae=-1,ge=!0,Ee=d&C?new Di:n;for(A.set(o,s),A.set(s,o);++ae<D;){var Me=o[ae],Je=s[ae];if(g)var Le=L?g(Je,Me,ae,s,o,A):g(Me,Je,ae,o,s,A);if(Le!==n){if(Le)continue;ge=!1;break}if(Ee){if(!kp(s,function(Qe,rt){if(!Ja(Ee,rt)&&(Me===Qe||w(Me,Qe,d,g,A)))return Ee.push(rt)})){ge=!1;break}}else if(!(Me===Je||w(Me,Je,d,g,A))){ge=!1;break}}return A.delete(o),A.delete(s),ge}function GY(o,s,d,g,w,A,L){switch(d){case qn:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case Nt:return!(o.byteLength!=s.byteLength||!A(new ol(o),new ol(s)));case Y:case G:case de:return Wn(+o,+s);case se:return o.name==s.name&&o.message==s.message;case Ke:case at:return o==s+"";case Q:var D=Xp;case it:var j=g&S;if(D||(D=Qu),o.size!=s.size&&!j)return!1;var ne=L.get(o);if(ne)return ne==s;g|=C,L.set(o,s);var ie=Lw(D(o),D(s),g,w,A,L);return L.delete(o),ie;case St:if(ts)return ts.call(o)==ts.call(s)}return!1}function HY(o,s,d,g,w,A){var L=d&S,D=vh(o),j=D.length,ne=vh(s),ie=ne.length;if(j!=ie&&!L)return!1;for(var ae=j;ae--;){var ge=D[ae];if(!(L?ge in s:pt.call(s,ge)))return!1}var Ee=A.get(o),Me=A.get(s);if(Ee&&Me)return Ee==s&&Me==o;var Je=!0;A.set(o,s),A.set(s,o);for(var Le=L;++ae<j;){ge=D[ae];var Qe=o[ge],rt=s[ge];if(g)var yn=L?g(rt,Qe,ge,s,o,A):g(Qe,rt,ge,o,s,A);if(!(yn===n?Qe===rt||w(Qe,rt,d,g,A):yn)){Je=!1;break}Le||(Le=ge=="constructor")}if(Je&&!Le){var en=o.constructor,xn=s.constructor;en!=xn&&"constructor"in o&&"constructor"in s&&!(typeof en=="function"&&en instanceof en&&typeof xn=="function"&&xn instanceof xn)&&(Je=!1)}return A.delete(o),A.delete(s),Je}function Er(o){return Eh(kw(o,n,Yw),o+"")}function vh(o){return ew(o,jt,Ch)}function bh(o){return ew(o,un,$w)}var yh=fl?function(o){return fl.get(o)}:Vh;function El(o){for(var s=o.name+"",d=Go[s],g=pt.call(Go,s)?d.length:0;g--;){var w=d[g],A=w.func;if(A==null||A==o)return w.name}return s}function Xo(o){var s=pt.call(I,"placeholder")?I:o;return s.placeholder}function Fe(){var o=I.iteratee||Dh;return o=o===Dh?rw:o,arguments.length?o(arguments[0],arguments[1]):o}function Al(o,s){var d=o.__data__;return KY(s)?d[typeof s=="string"?"string":"hash"]:d.map}function xh(o){for(var s=jt(o),d=s.length;d--;){var g=s[d],w=o[g];s[d]=[g,w,Vw(w)]}return s}function Bi(o,s){var d=eU(o,s);return nw(d)?d:n}function WY(o){var s=pt.call(o,Li),d=o[Li];try{o[Li]=n;var g=!0}catch{}var w=rl.call(o);return g&&(s?o[Li]=d:delete o[Li]),w}var Ch=Up?function(o){return o==null?[]:(o=gt(o),Wr(Up(o),function(s){return jC.call(o,s)}))}:Bh,$w=Up?function(o){for(var s=[];o;)Zr(s,Ch(o)),o=al(o);return s}:Bh,Jt=qt;(Yp&&Jt(new Yp(new ArrayBuffer(1)))!=qn||qa&&Jt(new qa)!=Q||Jp&&Jt(Jp.resolve())!=Ne||jo&&Jt(new jo)!=it||Qa&&Jt(new Qa)!=Rt)&&(Jt=function(o){var s=qt(o),d=s==ye?o.constructor:n,g=d?ki(d):"";if(g)switch(g){case AU:return qn;case _U:return Q;case PU:return Ne;case TU:return it;case OU:return Rt}return s});function ZY(o,s,d){for(var g=-1,w=d.length;++g<w;){var A=d[g],L=A.size;switch(A.type){case"drop":o+=L;break;case"dropRight":s-=L;break;case"take":s=Yt(s,o+L);break;case"takeRight":o=Bt(o,s-L);break}}return{start:o,end:s}}function XY(o){var s=o.match(Ya);return s?s[1].split(x):[]}function Dw(o,s,d){s=Jr(s,o);for(var g=-1,w=s.length,A=!1;++g<w;){var L=nr(s[g]);if(!(A=o!=null&&d(o,L)))break;o=o[L]}return A||++g!=w?A:(w=o==null?0:o.length,!!w&&Ml(w)&&Ar(L,w)&&(Ze(o)||ji(o)))}function zY(o){var s=o.length,d=new o.constructor(s);return s&&typeof o[0]=="string"&&pt.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function Nw(o){return typeof o.constructor=="function"&&!us(o)?Ho(al(o)):{}}function UY(o,s,d){var g=o.constructor;switch(s){case Nt:return hh(o);case Y:case G:return new g(+o);case qn:return FY(o,d);case vr:case br:case jn:case bi:case yi:case xi:case Ci:case wi:case Si:return yw(o,d);case Q:return new g;case de:case at:return new g(o);case Ke:return RY(o);case it:return new g;case St:return MY(o)}}function YY(o,s){var d=s.length;if(!d)return o;var g=d-1;return s[g]=(d>1?"& ":"")+s[g],s=s.join(d>2?", ":" "),o.replace(Ua,`{
|
|
198
|
+
*/nl.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,m=2,v=4,C=1,S=2,E=1,_=2,R=4,L=8,$=16,V=32,U=64,X=128,te=256,de=512,Pe=30,ke="...",He=800,ee=16,ve=1,ye=2,Ee=3,Ve=1/0,Ke=9007199254740991,F=17976931348623157e292,T=NaN,M=4294967295,O=M-1,y=M>>>1,H=[["ary",X],["bind",E],["bindKey",_],["curry",L],["curryRight",$],["flip",de],["partial",V],["partialRight",U],["rearg",te]],ne="[object Arguments]",ae="[object Array]",z="[object AsyncFunction]",Y="[object Boolean]",G="[object Date]",q="[object DOMException]",ue="[object Error]",J="[object Function]",le="[object GeneratorFunction]",Q="[object Map]",he="[object Number]",Se="[object Null]",xe="[object Object]",Be="[object Promise]",We="[object Proxy]",Qe="[object RegExp]",ot="[object Set]",st="[object String]",It="[object Symbol]",Yt="[object Undefined]",Mt="[object WeakMap]",Gn="[object WeakSet]",Vt="[object ArrayBuffer]",er="[object DataView]",yr="[object Float32Array]",xr="[object Float64Array]",Hn="[object Int8Array]",Ci="[object Int16Array]",wi="[object Int32Array]",Si="[object Uint8Array]",Ii="[object Uint8ClampedArray]",Ei="[object Uint16Array]",Ai="[object Uint32Array]",Ya=/\b__p \+= '';/g,Cr=/\b(__p \+=) '' \+/g,_i=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jt=/&(?:amp|lt|gt|quot|#39);/g,tr=/[&<>"']/g,wr=RegExp(Jt.source),Pi=RegExp(tr.source),Ja=/<%-([\s\S]+?)%>/g,Ti=/<%([\s\S]+?)%>/g,Vo=/<%=([\s\S]+?)%>/g,Fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oi=/^\w*$/,Ka=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,Mi=RegExp(Ri.source),Li=/^\s+/,qa=/\s/,Qa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,es=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,B=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,W=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jt=/($^)/,Di=/['\n\r\u2028\u2029\\]/g,Et="\\ud800-\\udfff",Dz="\\u0300-\\u036f",$z="\\ufe20-\\ufe2f",Nz="\\u20d0-\\u20ff",FC=Dz+$z+Nz,OC="\\u2700-\\u27bf",RC="a-z\\xdf-\\xf6\\xf8-\\xff",Vz="\\xac\\xb1\\xd7\\xf7",Bz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kz="\\u2000-\\u206f",jz=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",MC="A-Z\\xc0-\\xd6\\xd8-\\xde",LC="\\ufe0e\\ufe0f",DC=Vz+Bz+kz+jz,Hh="['’]",Gz="["+Et+"]",$C="["+DC+"]",il="["+FC+"]",NC="\\d+",Hz="["+OC+"]",VC="["+RC+"]",BC="[^"+Et+DC+NC+OC+RC+MC+"]",Wh="\\ud83c[\\udffb-\\udfff]",Wz="(?:"+il+"|"+Wh+")",kC="[^"+Et+"]",Zh="(?:\\ud83c[\\udde6-\\uddff]){2}",Xh="[\\ud800-\\udbff][\\udc00-\\udfff]",Bo="["+MC+"]",jC="\\u200d",GC="(?:"+VC+"|"+BC+")",Zz="(?:"+Bo+"|"+BC+")",HC="(?:"+Hh+"(?:d|ll|m|re|s|t|ve))?",WC="(?:"+Hh+"(?:D|LL|M|RE|S|T|VE))?",ZC=Wz+"?",XC="["+LC+"]?",Xz="(?:"+jC+"(?:"+[kC,Zh,Xh].join("|")+")"+XC+ZC+")*",zz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zC=XC+ZC+Xz,Yz="(?:"+[Hz,Zh,Xh].join("|")+")"+zC,Jz="(?:"+[kC+il+"?",il,Zh,Xh,Gz].join("|")+")",Kz=RegExp(Hh,"g"),qz=RegExp(il,"g"),zh=RegExp(Wh+"(?="+Wh+")|"+Jz+zC,"g"),Qz=RegExp([Bo+"?"+VC+"+"+HC+"(?="+[$C,Bo,"$"].join("|")+")",Zz+"+"+WC+"(?="+[$C,Bo+GC,"$"].join("|")+")",Bo+"?"+GC+"+"+HC,Bo+"+"+WC,Uz,zz,NC,Yz].join("|"),"g"),eU=RegExp("["+jC+Et+FC+LC+"]"),tU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rU=-1,wt={};wt[yr]=wt[xr]=wt[Hn]=wt[Ci]=wt[wi]=wt[Si]=wt[Ii]=wt[Ei]=wt[Ai]=!0,wt[ne]=wt[ae]=wt[Vt]=wt[Y]=wt[er]=wt[G]=wt[ue]=wt[J]=wt[Q]=wt[he]=wt[xe]=wt[Qe]=wt[ot]=wt[st]=wt[Mt]=!1;var yt={};yt[ne]=yt[ae]=yt[Vt]=yt[er]=yt[Y]=yt[G]=yt[yr]=yt[xr]=yt[Hn]=yt[Ci]=yt[wi]=yt[Q]=yt[he]=yt[xe]=yt[Qe]=yt[ot]=yt[st]=yt[It]=yt[Si]=yt[Ii]=yt[Ei]=yt[Ai]=!0,yt[ue]=yt[J]=yt[Mt]=!1;var iU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},oU={"&":"&","<":"<",">":">",'"':""","'":"'"},aU={"&":"&","<":"<",">":">",""":'"',"'":"'"},sU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uU=parseFloat,lU=parseInt,UC=typeof or=="object"&&or&&or.Object===Object&&or,cU=typeof self=="object"&&self&&self.Object===Object&&self,Wt=UC||cU||Function("return this")(),Uh=t&&!t.nodeType&&t,$i=Uh&&!0&&e&&!e.nodeType&&e,YC=$i&&$i.exports===Uh,Yh=YC&&UC.process,An=function(){try{var k=$i&&$i.require&&$i.require("util").types;return k||Yh&&Yh.binding&&Yh.binding("util")}catch{}}(),JC=An&&An.isArrayBuffer,KC=An&&An.isDate,qC=An&&An.isMap,QC=An&&An.isRegExp,ew=An&&An.isSet,tw=An&&An.isTypedArray;function vn(k,K,Z){switch(Z.length){case 0:return k.call(K);case 1:return k.call(K,Z[0]);case 2:return k.call(K,Z[0],Z[1]);case 3:return k.call(K,Z[0],Z[1],Z[2])}return k.apply(K,Z)}function fU(k,K,Z,Ce){for(var Xe=-1,ct=k==null?0:k.length;++Xe<ct;){var Bt=k[Xe];K(Ce,Bt,Z(Bt),k)}return Ce}function _n(k,K){for(var Z=-1,Ce=k==null?0:k.length;++Z<Ce&&K(k[Z],Z,k)!==!1;);return k}function dU(k,K){for(var Z=k==null?0:k.length;Z--&&K(k[Z],Z,k)!==!1;);return k}function nw(k,K){for(var Z=-1,Ce=k==null?0:k.length;++Z<Ce;)if(!K(k[Z],Z,k))return!1;return!0}function zr(k,K){for(var Z=-1,Ce=k==null?0:k.length,Xe=0,ct=[];++Z<Ce;){var Bt=k[Z];K(Bt,Z,k)&&(ct[Xe++]=Bt)}return ct}function ol(k,K){var Z=k==null?0:k.length;return!!Z&&ko(k,K,0)>-1}function Jh(k,K,Z){for(var Ce=-1,Xe=k==null?0:k.length;++Ce<Xe;)if(Z(K,k[Ce]))return!0;return!1}function At(k,K){for(var Z=-1,Ce=k==null?0:k.length,Xe=Array(Ce);++Z<Ce;)Xe[Z]=K(k[Z],Z,k);return Xe}function Ur(k,K){for(var Z=-1,Ce=K.length,Xe=k.length;++Z<Ce;)k[Xe+Z]=K[Z];return k}function Kh(k,K,Z,Ce){var Xe=-1,ct=k==null?0:k.length;for(Ce&&ct&&(Z=k[++Xe]);++Xe<ct;)Z=K(Z,k[Xe],Xe,k);return Z}function hU(k,K,Z,Ce){var Xe=k==null?0:k.length;for(Ce&&Xe&&(Z=k[--Xe]);Xe--;)Z=K(Z,k[Xe],Xe,k);return Z}function qh(k,K){for(var Z=-1,Ce=k==null?0:k.length;++Z<Ce;)if(K(k[Z],Z,k))return!0;return!1}var pU=Qh("length");function gU(k){return k.split("")}function mU(k){return k.match(B)||[]}function rw(k,K,Z){var Ce;return Z(k,function(Xe,ct,Bt){if(K(Xe,ct,Bt))return Ce=ct,!1}),Ce}function al(k,K,Z,Ce){for(var Xe=k.length,ct=Z+(Ce?1:-1);Ce?ct--:++ct<Xe;)if(K(k[ct],ct,k))return ct;return-1}function ko(k,K,Z){return K===K?PU(k,K,Z):al(k,iw,Z)}function vU(k,K,Z,Ce){for(var Xe=Z-1,ct=k.length;++Xe<ct;)if(Ce(k[Xe],K))return Xe;return-1}function iw(k){return k!==k}function ow(k,K){var Z=k==null?0:k.length;return Z?tp(k,K)/Z:T}function Qh(k){return function(K){return K==null?n:K[k]}}function ep(k){return function(K){return k==null?n:k[K]}}function aw(k,K,Z,Ce,Xe){return Xe(k,function(ct,Bt,mt){Z=Ce?(Ce=!1,ct):K(Z,ct,Bt,mt)}),Z}function bU(k,K){var Z=k.length;for(k.sort(K);Z--;)k[Z]=k[Z].value;return k}function tp(k,K){for(var Z,Ce=-1,Xe=k.length;++Ce<Xe;){var ct=K(k[Ce]);ct!==n&&(Z=Z===n?ct:Z+ct)}return Z}function np(k,K){for(var Z=-1,Ce=Array(k);++Z<k;)Ce[Z]=K(Z);return Ce}function yU(k,K){return At(K,function(Z){return[Z,k[Z]]})}function sw(k){return k&&k.slice(0,fw(k)+1).replace(Li,"")}function bn(k){return function(K){return k(K)}}function rp(k,K){return At(K,function(Z){return k[Z]})}function ts(k,K){return k.has(K)}function uw(k,K){for(var Z=-1,Ce=k.length;++Z<Ce&&ko(K,k[Z],0)>-1;);return Z}function lw(k,K){for(var Z=k.length;Z--&&ko(K,k[Z],0)>-1;);return Z}function xU(k,K){for(var Z=k.length,Ce=0;Z--;)k[Z]===K&&++Ce;return Ce}var CU=ep(iU),wU=ep(oU);function SU(k){return"\\"+sU[k]}function IU(k,K){return k==null?n:k[K]}function jo(k){return eU.test(k)}function EU(k){return tU.test(k)}function AU(k){for(var K,Z=[];!(K=k.next()).done;)Z.push(K.value);return Z}function ip(k){var K=-1,Z=Array(k.size);return k.forEach(function(Ce,Xe){Z[++K]=[Xe,Ce]}),Z}function cw(k,K){return function(Z){return k(K(Z))}}function Yr(k,K){for(var Z=-1,Ce=k.length,Xe=0,ct=[];++Z<Ce;){var Bt=k[Z];(Bt===K||Bt===h)&&(k[Z]=h,ct[Xe++]=Z)}return ct}function sl(k){var K=-1,Z=Array(k.size);return k.forEach(function(Ce){Z[++K]=Ce}),Z}function _U(k){var K=-1,Z=Array(k.size);return k.forEach(function(Ce){Z[++K]=[Ce,Ce]}),Z}function PU(k,K,Z){for(var Ce=Z-1,Xe=k.length;++Ce<Xe;)if(k[Ce]===K)return Ce;return-1}function TU(k,K,Z){for(var Ce=Z+1;Ce--;)if(k[Ce]===K)return Ce;return Ce}function Go(k){return jo(k)?OU(k):pU(k)}function Wn(k){return jo(k)?RU(k):gU(k)}function fw(k){for(var K=k.length;K--&&qa.test(k.charAt(K)););return K}var FU=ep(aU);function OU(k){for(var K=zh.lastIndex=0;zh.test(k);)++K;return K}function RU(k){return k.match(zh)||[]}function MU(k){return k.match(Qz)||[]}var LU=function k(K){K=K==null?Wt:Ho.defaults(Wt.Object(),K,Ho.pick(Wt,nU));var Z=K.Array,Ce=K.Date,Xe=K.Error,ct=K.Function,Bt=K.Math,mt=K.Object,op=K.RegExp,DU=K.String,Pn=K.TypeError,ul=Z.prototype,$U=ct.prototype,Wo=mt.prototype,ll=K["__core-js_shared__"],cl=$U.toString,pt=Wo.hasOwnProperty,NU=0,dw=function(){var o=/[^.]+$/.exec(ll&&ll.keys&&ll.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),fl=Wo.toString,VU=cl.call(mt),BU=Wt._,kU=op("^"+cl.call(pt).replace(Ri,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dl=YC?K.Buffer:n,Jr=K.Symbol,hl=K.Uint8Array,hw=dl?dl.allocUnsafe:n,pl=cw(mt.getPrototypeOf,mt),pw=mt.create,gw=Wo.propertyIsEnumerable,gl=ul.splice,mw=Jr?Jr.isConcatSpreadable:n,ns=Jr?Jr.iterator:n,Ni=Jr?Jr.toStringTag:n,ml=function(){try{var o=Gi(mt,"defineProperty");return o({},"",{}),o}catch{}}(),jU=K.clearTimeout!==Wt.clearTimeout&&K.clearTimeout,GU=Ce&&Ce.now!==Wt.Date.now&&Ce.now,HU=K.setTimeout!==Wt.setTimeout&&K.setTimeout,vl=Bt.ceil,bl=Bt.floor,ap=mt.getOwnPropertySymbols,WU=dl?dl.isBuffer:n,vw=K.isFinite,ZU=ul.join,XU=cw(mt.keys,mt),kt=Bt.max,Kt=Bt.min,zU=Ce.now,UU=K.parseInt,bw=Bt.random,YU=ul.reverse,sp=Gi(K,"DataView"),rs=Gi(K,"Map"),up=Gi(K,"Promise"),Zo=Gi(K,"Set"),is=Gi(K,"WeakMap"),os=Gi(mt,"create"),yl=is&&new is,Xo={},JU=Hi(sp),KU=Hi(rs),qU=Hi(up),QU=Hi(Zo),eY=Hi(is),xl=Jr?Jr.prototype:n,as=xl?xl.valueOf:n,yw=xl?xl.toString:n;function I(o){if(Ot(o)&&!Ue(o)&&!(o instanceof nt)){if(o instanceof Tn)return o;if(pt.call(o,"__wrapped__"))return x2(o)}return new Tn(o)}var zo=function(){function o(){}return function(s){if(!Pt(s))return{};if(pw)return pw(s);o.prototype=s;var d=new o;return o.prototype=n,d}}();function Cl(){}function Tn(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}I.templateSettings={escape:Ja,evaluate:Ti,interpolate:Vo,variable:"",imports:{_:I}},I.prototype=Cl.prototype,I.prototype.constructor=I,Tn.prototype=zo(Cl.prototype),Tn.prototype.constructor=Tn;function nt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function tY(){var o=new nt(this.__wrapped__);return o.__actions__=un(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=un(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=un(this.__views__),o}function nY(){if(this.__filtered__){var o=new nt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function rY(){var o=this.__wrapped__.value(),s=this.__dir__,d=Ue(o),g=s<0,w=d?o.length:0,P=gJ(0,w,this.__views__),D=P.start,N=P.end,j=N-D,re=g?N:D-1,oe=this.__iteratees__,se=oe.length,ge=0,Ae=Kt(j,this.__takeCount__);if(!d||!g&&w==j&&Ae==j)return Hw(o,this.__actions__);var De=[];e:for(;j--&&ge<Ae;){re+=s;for(var qe=-1,$e=o[re];++qe<se;){var tt=oe[qe],it=tt.iteratee,Cn=tt.type,nn=it($e);if(Cn==ye)$e=nn;else if(!nn){if(Cn==ve)continue e;break e}}De[ge++]=$e}return De}nt.prototype=zo(Cl.prototype),nt.prototype.constructor=nt;function Vi(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function iY(){this.__data__=os?os(null):{},this.size=0}function oY(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function aY(o){var s=this.__data__;if(os){var d=s[o];return d===c?n:d}return pt.call(s,o)?s[o]:n}function sY(o){var s=this.__data__;return os?s[o]!==n:pt.call(s,o)}function uY(o,s){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=os&&s===n?c:s,this}Vi.prototype.clear=iY,Vi.prototype.delete=oY,Vi.prototype.get=aY,Vi.prototype.has=sY,Vi.prototype.set=uY;function Sr(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function lY(){this.__data__=[],this.size=0}function cY(o){var s=this.__data__,d=wl(s,o);if(d<0)return!1;var g=s.length-1;return d==g?s.pop():gl.call(s,d,1),--this.size,!0}function fY(o){var s=this.__data__,d=wl(s,o);return d<0?n:s[d][1]}function dY(o){return wl(this.__data__,o)>-1}function hY(o,s){var d=this.__data__,g=wl(d,o);return g<0?(++this.size,d.push([o,s])):d[g][1]=s,this}Sr.prototype.clear=lY,Sr.prototype.delete=cY,Sr.prototype.get=fY,Sr.prototype.has=dY,Sr.prototype.set=hY;function Ir(o){var s=-1,d=o==null?0:o.length;for(this.clear();++s<d;){var g=o[s];this.set(g[0],g[1])}}function pY(){this.size=0,this.__data__={hash:new Vi,map:new(rs||Sr),string:new Vi}}function gY(o){var s=Ll(this,o).delete(o);return this.size-=s?1:0,s}function mY(o){return Ll(this,o).get(o)}function vY(o){return Ll(this,o).has(o)}function bY(o,s){var d=Ll(this,o),g=d.size;return d.set(o,s),this.size+=d.size==g?0:1,this}Ir.prototype.clear=pY,Ir.prototype.delete=gY,Ir.prototype.get=mY,Ir.prototype.has=vY,Ir.prototype.set=bY;function Bi(o){var s=-1,d=o==null?0:o.length;for(this.__data__=new Ir;++s<d;)this.add(o[s])}function yY(o){return this.__data__.set(o,c),this}function xY(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=yY,Bi.prototype.has=xY;function Zn(o){var s=this.__data__=new Sr(o);this.size=s.size}function CY(){this.__data__=new Sr,this.size=0}function wY(o){var s=this.__data__,d=s.delete(o);return this.size=s.size,d}function SY(o){return this.__data__.get(o)}function IY(o){return this.__data__.has(o)}function EY(o,s){var d=this.__data__;if(d instanceof Sr){var g=d.__data__;if(!rs||g.length<i-1)return g.push([o,s]),this.size=++d.size,this;d=this.__data__=new Ir(g)}return d.set(o,s),this.size=d.size,this}Zn.prototype.clear=CY,Zn.prototype.delete=wY,Zn.prototype.get=SY,Zn.prototype.has=IY,Zn.prototype.set=EY;function xw(o,s){var d=Ue(o),g=!d&&Wi(o),w=!d&&!g&&ti(o),P=!d&&!g&&!w&&Ko(o),D=d||g||w||P,N=D?np(o.length,DU):[],j=N.length;for(var re in o)(s||pt.call(o,re))&&!(D&&(re=="length"||w&&(re=="offset"||re=="parent")||P&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Pr(re,j)))&&N.push(re);return N}function Cw(o){var s=o.length;return s?o[yp(0,s-1)]:n}function AY(o,s){return Dl(un(o),ki(s,0,o.length))}function _Y(o){return Dl(un(o))}function lp(o,s,d){(d!==n&&!Xn(o[s],d)||d===n&&!(s in o))&&Er(o,s,d)}function ss(o,s,d){var g=o[s];(!(pt.call(o,s)&&Xn(g,d))||d===n&&!(s in o))&&Er(o,s,d)}function wl(o,s){for(var d=o.length;d--;)if(Xn(o[d][0],s))return d;return-1}function PY(o,s,d,g){return Kr(o,function(w,P,D){s(g,w,d(w),D)}),g}function ww(o,s){return o&&rr(s,Gt(s),o)}function TY(o,s){return o&&rr(s,cn(s),o)}function Er(o,s,d){s=="__proto__"&&ml?ml(o,s,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[s]=d}function cp(o,s){for(var d=-1,g=s.length,w=Z(g),P=o==null;++d<g;)w[d]=P?n:Wp(o,s[d]);return w}function ki(o,s,d){return o===o&&(d!==n&&(o=o<=d?o:d),s!==n&&(o=o>=s?o:s)),o}function Fn(o,s,d,g,w,P){var D,N=s&p,j=s&m,re=s&v;if(d&&(D=w?d(o,g,w,P):d(o)),D!==n)return D;if(!Pt(o))return o;var oe=Ue(o);if(oe){if(D=vJ(o),!N)return un(o,D)}else{var se=qt(o),ge=se==J||se==le;if(ti(o))return Xw(o,N);if(se==xe||se==ne||ge&&!w){if(D=j||ge?{}:f2(o),!N)return j?aJ(o,TY(D,o)):oJ(o,ww(D,o))}else{if(!yt[se])return w?o:{};D=bJ(o,se,N)}}P||(P=new Zn);var Ae=P.get(o);if(Ae)return Ae;P.set(o,D),k2(o)?o.forEach(function($e){D.add(Fn($e,s,d,$e,o,P))}):V2(o)&&o.forEach(function($e,tt){D.set(tt,Fn($e,s,d,tt,o,P))});var De=re?j?Fp:Tp:j?cn:Gt,qe=oe?n:De(o);return _n(qe||o,function($e,tt){qe&&(tt=$e,$e=o[tt]),ss(D,tt,Fn($e,s,d,tt,o,P))}),D}function FY(o){var s=Gt(o);return function(d){return Sw(d,o,s)}}function Sw(o,s,d){var g=d.length;if(o==null)return!g;for(o=mt(o);g--;){var w=d[g],P=s[w],D=o[w];if(D===n&&!(w in o)||!P(D))return!1}return!0}function Iw(o,s,d){if(typeof o!="function")throw new Pn(u);return ps(function(){o.apply(n,d)},s)}function us(o,s,d,g){var w=-1,P=ol,D=!0,N=o.length,j=[],re=s.length;if(!N)return j;d&&(s=At(s,bn(d))),g?(P=Jh,D=!1):s.length>=i&&(P=ts,D=!1,s=new Bi(s));e:for(;++w<N;){var oe=o[w],se=d==null?oe:d(oe);if(oe=g||oe!==0?oe:0,D&&se===se){for(var ge=re;ge--;)if(s[ge]===se)continue e;j.push(oe)}else P(s,se,g)||j.push(oe)}return j}var Kr=Kw(nr),Ew=Kw(dp,!0);function OY(o,s){var d=!0;return Kr(o,function(g,w,P){return d=!!s(g,w,P),d}),d}function Sl(o,s,d){for(var g=-1,w=o.length;++g<w;){var P=o[g],D=s(P);if(D!=null&&(N===n?D===D&&!xn(D):d(D,N)))var N=D,j=P}return j}function RY(o,s,d,g){var w=o.length;for(d=Ye(d),d<0&&(d=-d>w?0:w+d),g=g===n||g>w?w:Ye(g),g<0&&(g+=w),g=d>g?0:G2(g);d<g;)o[d++]=s;return o}function Aw(o,s){var d=[];return Kr(o,function(g,w,P){s(g,w,P)&&d.push(g)}),d}function Zt(o,s,d,g,w){var P=-1,D=o.length;for(d||(d=xJ),w||(w=[]);++P<D;){var N=o[P];s>0&&d(N)?s>1?Zt(N,s-1,d,g,w):Ur(w,N):g||(w[w.length]=N)}return w}var fp=qw(),_w=qw(!0);function nr(o,s){return o&&fp(o,s,Gt)}function dp(o,s){return o&&_w(o,s,Gt)}function Il(o,s){return zr(s,function(d){return Tr(o[d])})}function ji(o,s){s=Qr(s,o);for(var d=0,g=s.length;o!=null&&d<g;)o=o[ir(s[d++])];return d&&d==g?o:n}function Pw(o,s,d){var g=s(o);return Ue(o)?g:Ur(g,d(o))}function en(o){return o==null?o===n?Yt:Se:Ni&&Ni in mt(o)?pJ(o):_J(o)}function hp(o,s){return o>s}function MY(o,s){return o!=null&&pt.call(o,s)}function LY(o,s){return o!=null&&s in mt(o)}function DY(o,s,d){return o>=Kt(s,d)&&o<kt(s,d)}function pp(o,s,d){for(var g=d?Jh:ol,w=o[0].length,P=o.length,D=P,N=Z(P),j=1/0,re=[];D--;){var oe=o[D];D&&s&&(oe=At(oe,bn(s))),j=Kt(oe.length,j),N[D]=!d&&(s||w>=120&&oe.length>=120)?new Bi(D&&oe):n}oe=o[0];var se=-1,ge=N[0];e:for(;++se<w&&re.length<j;){var Ae=oe[se],De=s?s(Ae):Ae;if(Ae=d||Ae!==0?Ae:0,!(ge?ts(ge,De):g(re,De,d))){for(D=P;--D;){var qe=N[D];if(!(qe?ts(qe,De):g(o[D],De,d)))continue e}ge&&ge.push(De),re.push(Ae)}}return re}function $Y(o,s,d,g){return nr(o,function(w,P,D){s(g,d(w),P,D)}),g}function ls(o,s,d){s=Qr(s,o),o=g2(o,s);var g=o==null?o:o[ir(Rn(s))];return g==null?n:vn(g,o,d)}function Tw(o){return Ot(o)&&en(o)==ne}function NY(o){return Ot(o)&&en(o)==Vt}function VY(o){return Ot(o)&&en(o)==G}function cs(o,s,d,g,w){return o===s?!0:o==null||s==null||!Ot(o)&&!Ot(s)?o!==o&&s!==s:BY(o,s,d,g,cs,w)}function BY(o,s,d,g,w,P){var D=Ue(o),N=Ue(s),j=D?ae:qt(o),re=N?ae:qt(s);j=j==ne?xe:j,re=re==ne?xe:re;var oe=j==xe,se=re==xe,ge=j==re;if(ge&&ti(o)){if(!ti(s))return!1;D=!0,oe=!1}if(ge&&!oe)return P||(P=new Zn),D||Ko(o)?u2(o,s,d,g,w,P):dJ(o,s,j,d,g,w,P);if(!(d&C)){var Ae=oe&&pt.call(o,"__wrapped__"),De=se&&pt.call(s,"__wrapped__");if(Ae||De){var qe=Ae?o.value():o,$e=De?s.value():s;return P||(P=new Zn),w(qe,$e,d,g,P)}}return ge?(P||(P=new Zn),hJ(o,s,d,g,w,P)):!1}function kY(o){return Ot(o)&&qt(o)==Q}function gp(o,s,d,g){var w=d.length,P=w,D=!g;if(o==null)return!P;for(o=mt(o);w--;){var N=d[w];if(D&&N[2]?N[1]!==o[N[0]]:!(N[0]in o))return!1}for(;++w<P;){N=d[w];var j=N[0],re=o[j],oe=N[1];if(D&&N[2]){if(re===n&&!(j in o))return!1}else{var se=new Zn;if(g)var ge=g(re,oe,j,o,s,se);if(!(ge===n?cs(oe,re,C|S,g,se):ge))return!1}}return!0}function Fw(o){if(!Pt(o)||wJ(o))return!1;var s=Tr(o)?kU:at;return s.test(Hi(o))}function jY(o){return Ot(o)&&en(o)==Qe}function GY(o){return Ot(o)&&qt(o)==ot}function HY(o){return Ot(o)&&jl(o.length)&&!!wt[en(o)]}function Ow(o){return typeof o=="function"?o:o==null?fn:typeof o=="object"?Ue(o)?Lw(o[0],o[1]):Mw(o):Q2(o)}function mp(o){if(!hs(o))return XU(o);var s=[];for(var d in mt(o))pt.call(o,d)&&d!="constructor"&&s.push(d);return s}function WY(o){if(!Pt(o))return AJ(o);var s=hs(o),d=[];for(var g in o)g=="constructor"&&(s||!pt.call(o,g))||d.push(g);return d}function vp(o,s){return o<s}function Rw(o,s){var d=-1,g=ln(o)?Z(o.length):[];return Kr(o,function(w,P,D){g[++d]=s(w,P,D)}),g}function Mw(o){var s=Rp(o);return s.length==1&&s[0][2]?h2(s[0][0],s[0][1]):function(d){return d===o||gp(d,o,s)}}function Lw(o,s){return Lp(o)&&d2(s)?h2(ir(o),s):function(d){var g=Wp(d,o);return g===n&&g===s?Zp(d,o):cs(s,g,C|S)}}function El(o,s,d,g,w){o!==s&&fp(s,function(P,D){if(w||(w=new Zn),Pt(P))ZY(o,s,D,d,El,g,w);else{var N=g?g($p(o,D),P,D+"",o,s,w):n;N===n&&(N=P),lp(o,D,N)}},cn)}function ZY(o,s,d,g,w,P,D){var N=$p(o,d),j=$p(s,d),re=D.get(j);if(re){lp(o,d,re);return}var oe=P?P(N,j,d+"",o,s,D):n,se=oe===n;if(se){var ge=Ue(j),Ae=!ge&&ti(j),De=!ge&&!Ae&&Ko(j);oe=j,ge||Ae||De?Ue(N)?oe=N:Lt(N)?oe=un(N):Ae?(se=!1,oe=Xw(j,!0)):De?(se=!1,oe=zw(j,!0)):oe=[]:gs(j)||Wi(j)?(oe=N,Wi(N)?oe=H2(N):(!Pt(N)||Tr(N))&&(oe=f2(j))):se=!1}se&&(D.set(j,oe),w(oe,j,g,P,D),D.delete(j)),lp(o,d,oe)}function Dw(o,s){var d=o.length;if(d)return s+=s<0?d:0,Pr(s,d)?o[s]:n}function $w(o,s,d){s.length?s=At(s,function(P){return Ue(P)?function(D){return ji(D,P.length===1?P[0]:P)}:P}):s=[fn];var g=-1;s=At(s,bn(Oe()));var w=Rw(o,function(P,D,N){var j=At(s,function(re){return re(P)});return{criteria:j,index:++g,value:P}});return bU(w,function(P,D){return iJ(P,D,d)})}function XY(o,s){return Nw(o,s,function(d,g){return Zp(o,g)})}function Nw(o,s,d){for(var g=-1,w=s.length,P={};++g<w;){var D=s[g],N=ji(o,D);d(N,D)&&fs(P,Qr(D,o),N)}return P}function zY(o){return function(s){return ji(s,o)}}function bp(o,s,d,g){var w=g?vU:ko,P=-1,D=s.length,N=o;for(o===s&&(s=un(s)),d&&(N=At(o,bn(d)));++P<D;)for(var j=0,re=s[P],oe=d?d(re):re;(j=w(N,oe,j,g))>-1;)N!==o&&gl.call(N,j,1),gl.call(o,j,1);return o}function Vw(o,s){for(var d=o?s.length:0,g=d-1;d--;){var w=s[d];if(d==g||w!==P){var P=w;Pr(w)?gl.call(o,w,1):wp(o,w)}}return o}function yp(o,s){return o+bl(bw()*(s-o+1))}function UY(o,s,d,g){for(var w=-1,P=kt(vl((s-o)/(d||1)),0),D=Z(P);P--;)D[g?P:++w]=o,o+=d;return D}function xp(o,s){var d="";if(!o||s<1||s>Ke)return d;do s%2&&(d+=o),s=bl(s/2),s&&(o+=o);while(s);return d}function et(o,s){return Np(p2(o,s,fn),o+"")}function YY(o){return Cw(qo(o))}function JY(o,s){var d=qo(o);return Dl(d,ki(s,0,d.length))}function fs(o,s,d,g){if(!Pt(o))return o;s=Qr(s,o);for(var w=-1,P=s.length,D=P-1,N=o;N!=null&&++w<P;){var j=ir(s[w]),re=d;if(j==="__proto__"||j==="constructor"||j==="prototype")return o;if(w!=D){var oe=N[j];re=g?g(oe,j,N):n,re===n&&(re=Pt(oe)?oe:Pr(s[w+1])?[]:{})}ss(N,j,re),N=N[j]}return o}var Bw=yl?function(o,s){return yl.set(o,s),o}:fn,KY=ml?function(o,s){return ml(o,"toString",{configurable:!0,enumerable:!1,value:zp(s),writable:!0})}:fn;function qY(o){return Dl(qo(o))}function On(o,s,d){var g=-1,w=o.length;s<0&&(s=-s>w?0:w+s),d=d>w?w:d,d<0&&(d+=w),w=s>d?0:d-s>>>0,s>>>=0;for(var P=Z(w);++g<w;)P[g]=o[g+s];return P}function QY(o,s){var d;return Kr(o,function(g,w,P){return d=s(g,w,P),!d}),!!d}function Al(o,s,d){var g=0,w=o==null?g:o.length;if(typeof s=="number"&&s===s&&w<=y){for(;g<w;){var P=g+w>>>1,D=o[P];D!==null&&!xn(D)&&(d?D<=s:D<s)?g=P+1:w=P}return w}return Cp(o,s,fn,d)}function Cp(o,s,d,g){var w=0,P=o==null?0:o.length;if(P===0)return 0;s=d(s);for(var D=s!==s,N=s===null,j=xn(s),re=s===n;w<P;){var oe=bl((w+P)/2),se=d(o[oe]),ge=se!==n,Ae=se===null,De=se===se,qe=xn(se);if(D)var $e=g||De;else re?$e=De&&(g||ge):N?$e=De&&ge&&(g||!Ae):j?$e=De&&ge&&!Ae&&(g||!qe):Ae||qe?$e=!1:$e=g?se<=s:se<s;$e?w=oe+1:P=oe}return Kt(P,O)}function kw(o,s){for(var d=-1,g=o.length,w=0,P=[];++d<g;){var D=o[d],N=s?s(D):D;if(!d||!Xn(N,j)){var j=N;P[w++]=D===0?0:D}}return P}function jw(o){return typeof o=="number"?o:xn(o)?T:+o}function yn(o){if(typeof o=="string")return o;if(Ue(o))return At(o,yn)+"";if(xn(o))return yw?yw.call(o):"";var s=o+"";return s=="0"&&1/o==-Ve?"-0":s}function qr(o,s,d){var g=-1,w=ol,P=o.length,D=!0,N=[],j=N;if(d)D=!1,w=Jh;else if(P>=i){var re=s?null:cJ(o);if(re)return sl(re);D=!1,w=ts,j=new Bi}else j=s?[]:N;e:for(;++g<P;){var oe=o[g],se=s?s(oe):oe;if(oe=d||oe!==0?oe:0,D&&se===se){for(var ge=j.length;ge--;)if(j[ge]===se)continue e;s&&j.push(se),N.push(oe)}else w(j,se,d)||(j!==N&&j.push(se),N.push(oe))}return N}function wp(o,s){return s=Qr(s,o),o=g2(o,s),o==null||delete o[ir(Rn(s))]}function Gw(o,s,d,g){return fs(o,s,d(ji(o,s)),g)}function _l(o,s,d,g){for(var w=o.length,P=g?w:-1;(g?P--:++P<w)&&s(o[P],P,o););return d?On(o,g?0:P,g?P+1:w):On(o,g?P+1:0,g?w:P)}function Hw(o,s){var d=o;return d instanceof nt&&(d=d.value()),Kh(s,function(g,w){return w.func.apply(w.thisArg,Ur([g],w.args))},d)}function Sp(o,s,d){var g=o.length;if(g<2)return g?qr(o[0]):[];for(var w=-1,P=Z(g);++w<g;)for(var D=o[w],N=-1;++N<g;)N!=w&&(P[w]=us(P[w]||D,o[N],s,d));return qr(Zt(P,1),s,d)}function Ww(o,s,d){for(var g=-1,w=o.length,P=s.length,D={};++g<w;){var N=g<P?s[g]:n;d(D,o[g],N)}return D}function Ip(o){return Lt(o)?o:[]}function Ep(o){return typeof o=="function"?o:fn}function Qr(o,s){return Ue(o)?o:Lp(o,s)?[o]:y2(ht(o))}var eJ=et;function ei(o,s,d){var g=o.length;return d=d===n?g:d,!s&&d>=g?o:On(o,s,d)}var Zw=jU||function(o){return Wt.clearTimeout(o)};function Xw(o,s){if(s)return o.slice();var d=o.length,g=hw?hw(d):new o.constructor(d);return o.copy(g),g}function Ap(o){var s=new o.constructor(o.byteLength);return new hl(s).set(new hl(o)),s}function tJ(o,s){var d=s?Ap(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function nJ(o){var s=new o.constructor(o.source,_e.exec(o));return s.lastIndex=o.lastIndex,s}function rJ(o){return as?mt(as.call(o)):{}}function zw(o,s){var d=s?Ap(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function Uw(o,s){if(o!==s){var d=o!==n,g=o===null,w=o===o,P=xn(o),D=s!==n,N=s===null,j=s===s,re=xn(s);if(!N&&!re&&!P&&o>s||P&&D&&j&&!N&&!re||g&&D&&j||!d&&j||!w)return 1;if(!g&&!P&&!re&&o<s||re&&d&&w&&!g&&!P||N&&d&&w||!D&&w||!j)return-1}return 0}function iJ(o,s,d){for(var g=-1,w=o.criteria,P=s.criteria,D=w.length,N=d.length;++g<D;){var j=Uw(w[g],P[g]);if(j){if(g>=N)return j;var re=d[g];return j*(re=="desc"?-1:1)}}return o.index-s.index}function Yw(o,s,d,g){for(var w=-1,P=o.length,D=d.length,N=-1,j=s.length,re=kt(P-D,0),oe=Z(j+re),se=!g;++N<j;)oe[N]=s[N];for(;++w<D;)(se||w<P)&&(oe[d[w]]=o[w]);for(;re--;)oe[N++]=o[w++];return oe}function Jw(o,s,d,g){for(var w=-1,P=o.length,D=-1,N=d.length,j=-1,re=s.length,oe=kt(P-N,0),se=Z(oe+re),ge=!g;++w<oe;)se[w]=o[w];for(var Ae=w;++j<re;)se[Ae+j]=s[j];for(;++D<N;)(ge||w<P)&&(se[Ae+d[D]]=o[w++]);return se}function un(o,s){var d=-1,g=o.length;for(s||(s=Z(g));++d<g;)s[d]=o[d];return s}function rr(o,s,d,g){var w=!d;d||(d={});for(var P=-1,D=s.length;++P<D;){var N=s[P],j=g?g(d[N],o[N],N,d,o):n;j===n&&(j=o[N]),w?Er(d,N,j):ss(d,N,j)}return d}function oJ(o,s){return rr(o,Mp(o),s)}function aJ(o,s){return rr(o,l2(o),s)}function Pl(o,s){return function(d,g){var w=Ue(d)?fU:PY,P=s?s():{};return w(d,o,Oe(g,2),P)}}function Uo(o){return et(function(s,d){var g=-1,w=d.length,P=w>1?d[w-1]:n,D=w>2?d[2]:n;for(P=o.length>3&&typeof P=="function"?(w--,P):n,D&&tn(d[0],d[1],D)&&(P=w<3?n:P,w=1),s=mt(s);++g<w;){var N=d[g];N&&o(s,N,g,P)}return s})}function Kw(o,s){return function(d,g){if(d==null)return d;if(!ln(d))return o(d,g);for(var w=d.length,P=s?w:-1,D=mt(d);(s?P--:++P<w)&&g(D[P],P,D)!==!1;);return d}}function qw(o){return function(s,d,g){for(var w=-1,P=mt(s),D=g(s),N=D.length;N--;){var j=D[o?N:++w];if(d(P[j],j,P)===!1)break}return s}}function sJ(o,s,d){var g=s&E,w=ds(o);function P(){var D=this&&this!==Wt&&this instanceof P?w:o;return D.apply(g?d:this,arguments)}return P}function Qw(o){return function(s){s=ht(s);var d=jo(s)?Wn(s):n,g=d?d[0]:s.charAt(0),w=d?ei(d,1).join(""):s.slice(1);return g[o]()+w}}function Yo(o){return function(s){return Kh(K2(J2(s).replace(Kz,"")),o,"")}}function ds(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var d=zo(o.prototype),g=o.apply(d,s);return Pt(g)?g:d}}function uJ(o,s,d){var g=ds(o);function w(){for(var P=arguments.length,D=Z(P),N=P,j=Jo(w);N--;)D[N]=arguments[N];var re=P<3&&D[0]!==j&&D[P-1]!==j?[]:Yr(D,j);if(P-=re.length,P<d)return i2(o,s,Tl,w.placeholder,n,D,re,n,n,d-P);var oe=this&&this!==Wt&&this instanceof w?g:o;return vn(oe,this,D)}return w}function e2(o){return function(s,d,g){var w=mt(s);if(!ln(s)){var P=Oe(d,3);s=Gt(s),d=function(N){return P(w[N],N,w)}}var D=o(s,d,g);return D>-1?w[P?s[D]:D]:n}}function t2(o){return _r(function(s){var d=s.length,g=d,w=Tn.prototype.thru;for(o&&s.reverse();g--;){var P=s[g];if(typeof P!="function")throw new Pn(u);if(w&&!D&&Ml(P)=="wrapper")var D=new Tn([],!0)}for(g=D?g:d;++g<d;){P=s[g];var N=Ml(P),j=N=="wrapper"?Op(P):n;j&&Dp(j[0])&&j[1]==(X|L|V|te)&&!j[4].length&&j[9]==1?D=D[Ml(j[0])].apply(D,j[3]):D=P.length==1&&Dp(P)?D[N]():D.thru(P)}return function(){var re=arguments,oe=re[0];if(D&&re.length==1&&Ue(oe))return D.plant(oe).value();for(var se=0,ge=d?s[se].apply(this,re):oe;++se<d;)ge=s[se].call(this,ge);return ge}})}function Tl(o,s,d,g,w,P,D,N,j,re){var oe=s&X,se=s&E,ge=s&_,Ae=s&(L|$),De=s&de,qe=ge?n:ds(o);function $e(){for(var tt=arguments.length,it=Z(tt),Cn=tt;Cn--;)it[Cn]=arguments[Cn];if(Ae)var nn=Jo($e),wn=xU(it,nn);if(g&&(it=Yw(it,g,w,Ae)),P&&(it=Jw(it,P,D,Ae)),tt-=wn,Ae&&tt<re){var Dt=Yr(it,nn);return i2(o,s,Tl,$e.placeholder,d,it,Dt,N,j,re-tt)}var zn=se?d:this,Or=ge?zn[o]:o;return tt=it.length,N?it=PJ(it,N):De&&tt>1&&it.reverse(),oe&&j<tt&&(it.length=j),this&&this!==Wt&&this instanceof $e&&(Or=qe||ds(Or)),Or.apply(zn,it)}return $e}function n2(o,s){return function(d,g){return $Y(d,o,s(g),{})}}function Fl(o,s){return function(d,g){var w;if(d===n&&g===n)return s;if(d!==n&&(w=d),g!==n){if(w===n)return g;typeof d=="string"||typeof g=="string"?(d=yn(d),g=yn(g)):(d=jw(d),g=jw(g)),w=o(d,g)}return w}}function _p(o){return _r(function(s){return s=At(s,bn(Oe())),et(function(d){var g=this;return o(s,function(w){return vn(w,g,d)})})})}function Ol(o,s){s=s===n?" ":yn(s);var d=s.length;if(d<2)return d?xp(s,o):s;var g=xp(s,vl(o/Go(s)));return jo(s)?ei(Wn(g),0,o).join(""):g.slice(0,o)}function lJ(o,s,d,g){var w=s&E,P=ds(o);function D(){for(var N=-1,j=arguments.length,re=-1,oe=g.length,se=Z(oe+j),ge=this&&this!==Wt&&this instanceof D?P:o;++re<oe;)se[re]=g[re];for(;j--;)se[re++]=arguments[++N];return vn(ge,w?d:this,se)}return D}function r2(o){return function(s,d,g){return g&&typeof g!="number"&&tn(s,d,g)&&(d=g=n),s=Fr(s),d===n?(d=s,s=0):d=Fr(d),g=g===n?s<d?1:-1:Fr(g),UY(s,d,g,o)}}function Rl(o){return function(s,d){return typeof s=="string"&&typeof d=="string"||(s=Mn(s),d=Mn(d)),o(s,d)}}function i2(o,s,d,g,w,P,D,N,j,re){var oe=s&L,se=oe?D:n,ge=oe?n:D,Ae=oe?P:n,De=oe?n:P;s|=oe?V:U,s&=~(oe?U:V),s&R||(s&=~(E|_));var qe=[o,s,w,Ae,se,De,ge,N,j,re],$e=d.apply(n,qe);return Dp(o)&&m2($e,qe),$e.placeholder=g,v2($e,o,s)}function Pp(o){var s=Bt[o];return function(d,g){if(d=Mn(d),g=g==null?0:Kt(Ye(g),292),g&&vw(d)){var w=(ht(d)+"e").split("e"),P=s(w[0]+"e"+(+w[1]+g));return w=(ht(P)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return s(d)}}var cJ=Zo&&1/sl(new Zo([,-0]))[1]==Ve?function(o){return new Zo(o)}:Jp;function o2(o){return function(s){var d=qt(s);return d==Q?ip(s):d==ot?_U(s):yU(s,o(s))}}function Ar(o,s,d,g,w,P,D,N){var j=s&_;if(!j&&typeof o!="function")throw new Pn(u);var re=g?g.length:0;if(re||(s&=~(V|U),g=w=n),D=D===n?D:kt(Ye(D),0),N=N===n?N:Ye(N),re-=w?w.length:0,s&U){var oe=g,se=w;g=w=n}var ge=j?n:Op(o),Ae=[o,s,d,g,w,oe,se,P,D,N];if(ge&&EJ(Ae,ge),o=Ae[0],s=Ae[1],d=Ae[2],g=Ae[3],w=Ae[4],N=Ae[9]=Ae[9]===n?j?0:o.length:kt(Ae[9]-re,0),!N&&s&(L|$)&&(s&=~(L|$)),!s||s==E)var De=sJ(o,s,d);else s==L||s==$?De=uJ(o,s,N):(s==V||s==(E|V))&&!w.length?De=lJ(o,s,d,g):De=Tl.apply(n,Ae);var qe=ge?Bw:m2;return v2(qe(De,Ae),o,s)}function a2(o,s,d,g){return o===n||Xn(o,Wo[d])&&!pt.call(g,d)?s:o}function s2(o,s,d,g,w,P){return Pt(o)&&Pt(s)&&(P.set(s,o),El(o,s,n,s2,P),P.delete(s)),o}function fJ(o){return gs(o)?n:o}function u2(o,s,d,g,w,P){var D=d&C,N=o.length,j=s.length;if(N!=j&&!(D&&j>N))return!1;var re=P.get(o),oe=P.get(s);if(re&&oe)return re==s&&oe==o;var se=-1,ge=!0,Ae=d&S?new Bi:n;for(P.set(o,s),P.set(s,o);++se<N;){var De=o[se],qe=s[se];if(g)var $e=D?g(qe,De,se,s,o,P):g(De,qe,se,o,s,P);if($e!==n){if($e)continue;ge=!1;break}if(Ae){if(!qh(s,function(tt,it){if(!ts(Ae,it)&&(De===tt||w(De,tt,d,g,P)))return Ae.push(it)})){ge=!1;break}}else if(!(De===qe||w(De,qe,d,g,P))){ge=!1;break}}return P.delete(o),P.delete(s),ge}function dJ(o,s,d,g,w,P,D){switch(d){case er:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case Vt:return!(o.byteLength!=s.byteLength||!P(new hl(o),new hl(s)));case Y:case G:case he:return Xn(+o,+s);case ue:return o.name==s.name&&o.message==s.message;case Qe:case st:return o==s+"";case Q:var N=ip;case ot:var j=g&C;if(N||(N=sl),o.size!=s.size&&!j)return!1;var re=D.get(o);if(re)return re==s;g|=S,D.set(o,s);var oe=u2(N(o),N(s),g,w,P,D);return D.delete(o),oe;case It:if(as)return as.call(o)==as.call(s)}return!1}function hJ(o,s,d,g,w,P){var D=d&C,N=Tp(o),j=N.length,re=Tp(s),oe=re.length;if(j!=oe&&!D)return!1;for(var se=j;se--;){var ge=N[se];if(!(D?ge in s:pt.call(s,ge)))return!1}var Ae=P.get(o),De=P.get(s);if(Ae&&De)return Ae==s&&De==o;var qe=!0;P.set(o,s),P.set(s,o);for(var $e=D;++se<j;){ge=N[se];var tt=o[ge],it=s[ge];if(g)var Cn=D?g(it,tt,ge,s,o,P):g(tt,it,ge,o,s,P);if(!(Cn===n?tt===it||w(tt,it,d,g,P):Cn)){qe=!1;break}$e||($e=ge=="constructor")}if(qe&&!$e){var nn=o.constructor,wn=s.constructor;nn!=wn&&"constructor"in o&&"constructor"in s&&!(typeof nn=="function"&&nn instanceof nn&&typeof wn=="function"&&wn instanceof wn)&&(qe=!1)}return P.delete(o),P.delete(s),qe}function _r(o){return Np(p2(o,n,S2),o+"")}function Tp(o){return Pw(o,Gt,Mp)}function Fp(o){return Pw(o,cn,l2)}var Op=yl?function(o){return yl.get(o)}:Jp;function Ml(o){for(var s=o.name+"",d=Xo[s],g=pt.call(Xo,s)?d.length:0;g--;){var w=d[g],P=w.func;if(P==null||P==o)return w.name}return s}function Jo(o){var s=pt.call(I,"placeholder")?I:o;return s.placeholder}function Oe(){var o=I.iteratee||Up;return o=o===Up?Ow:o,arguments.length?o(arguments[0],arguments[1]):o}function Ll(o,s){var d=o.__data__;return CJ(s)?d[typeof s=="string"?"string":"hash"]:d.map}function Rp(o){for(var s=Gt(o),d=s.length;d--;){var g=s[d],w=o[g];s[d]=[g,w,d2(w)]}return s}function Gi(o,s){var d=IU(o,s);return Fw(d)?d:n}function pJ(o){var s=pt.call(o,Ni),d=o[Ni];try{o[Ni]=n;var g=!0}catch{}var w=fl.call(o);return g&&(s?o[Ni]=d:delete o[Ni]),w}var Mp=ap?function(o){return o==null?[]:(o=mt(o),zr(ap(o),function(s){return gw.call(o,s)}))}:Kp,l2=ap?function(o){for(var s=[];o;)Ur(s,Mp(o)),o=pl(o);return s}:Kp,qt=en;(sp&&qt(new sp(new ArrayBuffer(1)))!=er||rs&&qt(new rs)!=Q||up&&qt(up.resolve())!=Be||Zo&&qt(new Zo)!=ot||is&&qt(new is)!=Mt)&&(qt=function(o){var s=en(o),d=s==xe?o.constructor:n,g=d?Hi(d):"";if(g)switch(g){case JU:return er;case KU:return Q;case qU:return Be;case QU:return ot;case eY:return Mt}return s});function gJ(o,s,d){for(var g=-1,w=d.length;++g<w;){var P=d[g],D=P.size;switch(P.type){case"drop":o+=D;break;case"dropRight":s-=D;break;case"take":s=Kt(s,o+D);break;case"takeRight":o=kt(o,s-D);break}}return{start:o,end:s}}function mJ(o){var s=o.match(es);return s?s[1].split(x):[]}function c2(o,s,d){s=Qr(s,o);for(var g=-1,w=s.length,P=!1;++g<w;){var D=ir(s[g]);if(!(P=o!=null&&d(o,D)))break;o=o[D]}return P||++g!=w?P:(w=o==null?0:o.length,!!w&&jl(w)&&Pr(D,w)&&(Ue(o)||Wi(o)))}function vJ(o){var s=o.length,d=new o.constructor(s);return s&&typeof o[0]=="string"&&pt.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function f2(o){return typeof o.constructor=="function"&&!hs(o)?zo(pl(o)):{}}function bJ(o,s,d){var g=o.constructor;switch(s){case Vt:return Ap(o);case Y:case G:return new g(+o);case er:return tJ(o,d);case yr:case xr:case Hn:case Ci:case wi:case Si:case Ii:case Ei:case Ai:return zw(o,d);case Q:return new g;case he:case st:return new g(o);case Qe:return nJ(o);case ot:return new g;case It:return rJ(o)}}function yJ(o,s){var d=s.length;if(!d)return o;var g=d-1;return s[g]=(d>1?"& ":"")+s[g],s=s.join(d>2?", ":" "),o.replace(Qa,`{
|
|
199
199
|
/* [wrapped with `+s+`] */
|
|
200
|
-
`)}function JY(o){return Ze(o)||ji(o)||!!(GC&&o&&o[GC])}function Ar(o,s){var d=typeof o;return s=s??Ye,!!s&&(d=="number"||d!="symbol"&&We.test(o))&&o>-1&&o%1==0&&o<s}function Qt(o,s,d){if(!_t(d))return!1;var g=typeof s;return(g=="number"?sn(d)&&Ar(s,d.length):g=="string"&&s in d)?Wn(d[s],o):!1}function wh(o,s){if(Ze(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||bn(o)?!0:Pi.test(o)||!_i.test(o)||s!=null&&o in gt(s)}function KY(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Sh(o){var s=El(o),d=I[s];if(typeof d!="function"||!(s in tt.prototype))return!1;if(o===d)return!0;var g=yh(d);return!!g&&o===g[0]}function qY(o){return!!VC&&VC in o}var QY=tl?_r:kh;function us(o){var s=o&&o.constructor,d=typeof s=="function"&&s.prototype||ko;return o===d}function Vw(o){return o===o&&!_t(o)}function Bw(o,s){return function(d){return d==null?!1:d[o]===s&&(s!==n||o in gt(d))}}function eJ(o){var s=Fl(o,function(g){return d.size===f&&d.clear(),g}),d=s.cache;return s}function tJ(o,s){var d=o[1],g=s[1],w=d|g,A=w<(E|P|X),L=g==X&&d==$||g==X&&d==ee&&o[7].length<=s[8]||g==(X|ee)&&s[7].length<=s[8]&&d==$;if(!(A||L))return o;g&E&&(o[2]=s[2],w|=d&E?0:M);var D=s[3];if(D){var j=o[3];o[3]=j?Cw(j,D,s[4]):D,o[4]=j?Xr(o[3],p):s[4]}return D=s[5],D&&(j=o[5],o[5]=j?ww(j,D,s[6]):D,o[6]=j?Xr(o[5],p):s[6]),D=s[7],D&&(o[7]=D),g&X&&(o[8]=o[8]==null?s[8]:Yt(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=w,o}function nJ(o){var s=[];if(o!=null)for(var d in gt(o))s.push(d);return s}function rJ(o){return rl.call(o)}function kw(o,s,d){return s=Bt(s===n?o.length-1:s,0),function(){for(var g=arguments,w=-1,A=Bt(g.length-s,0),L=Z(A);++w<A;)L[w]=g[s+w];w=-1;for(var D=Z(s+1);++w<s;)D[w]=g[w];return D[s]=d(L),gn(o,this,D)}}function jw(o,s){return s.length<2?o:Vi(o,Tn(s,0,-1))}function iJ(o,s){for(var d=o.length,g=Yt(s.length,d),w=an(o);g--;){var A=s[g];o[g]=Ar(A,d)?w[A]:n}return o}function Ih(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var Gw=Ww(fw),ls=yU||function(o,s){return Ht.setTimeout(o,s)},Eh=Ww(_Y);function Hw(o,s,d){var g=s+"";return Eh(o,YY(g,oJ(XY(g),d)))}function Ww(o){var s=0,d=0;return function(){var g=SU(),w=he-(g-d);if(d=g,w>0){if(++s>=He)return arguments[0]}else s=0;return o.apply(n,arguments)}}function _l(o,s){var d=-1,g=o.length,w=g-1;for(s=s===n?g:s;++d<s;){var A=sh(d,w),L=o[A];o[A]=o[d],o[d]=L}return o.length=s,o}var Zw=eJ(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(Xa,function(d,g,w,A){s.push(w?A.replace(ce,"$1"):g||d)}),s});function nr(o){if(typeof o=="string"||bn(o))return o;var s=o+"";return s=="0"&&1/o==-De?"-0":s}function ki(o){if(o!=null){try{return nl.call(o)}catch{}try{return o+""}catch{}}return""}function oJ(o,s){return En(H,function(d){var g="_."+d[0];s&d[1]&&!Ku(o,g)&&o.push(g)}),o.sort()}function Xw(o){if(o instanceof tt)return o.clone();var s=new _n(o.__wrapped__,o.__chain__);return s.__actions__=an(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function aJ(o,s,d){(d?Qt(o,s,d):s===n)?s=1:s=Bt(Ue(s),0);var g=o==null?0:o.length;if(!g||s<1)return[];for(var w=0,A=0,L=Z(ll(g/s));w<g;)L[A++]=Tn(o,w,w+=s);return L}function sJ(o){for(var s=-1,d=o==null?0:o.length,g=0,w=[];++s<d;){var A=o[s];A&&(w[g++]=A)}return w}function uJ(){var o=arguments.length;if(!o)return[];for(var s=Z(o-1),d=arguments[0],g=o;g--;)s[g-1]=arguments[g];return Zr(Ze(d)?an(d):[d],Wt(s,1))}var lJ=qe(function(o,s){return Mt(o)?rs(o,Wt(s,1,Mt,!0)):[]}),cJ=qe(function(o,s){var d=On(s);return Mt(d)&&(d=n),Mt(o)?rs(o,Wt(s,1,Mt,!0),Fe(d,2)):[]}),fJ=qe(function(o,s){var d=On(s);return Mt(d)&&(d=n),Mt(o)?rs(o,Wt(s,1,Mt,!0),n,d):[]});function dJ(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ue(s),Tn(o,s<0?0:s,g)):[]}function pJ(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ue(s),s=g-s,Tn(o,0,s<0?0:s)):[]}function hJ(o,s){return o&&o.length?yl(o,Fe(s,3),!0,!0):[]}function gJ(o,s){return o&&o.length?yl(o,Fe(s,3),!0):[]}function mJ(o,s,d,g){var w=o==null?0:o.length;return w?(d&&typeof d!="number"&&Qt(o,s,d)&&(d=0,g=w),uY(o,s,d,g)):[]}function zw(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=d==null?0:Ue(d);return w<0&&(w=Bt(g+w,0)),qu(o,Fe(s,3),w)}function Uw(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=g-1;return d!==n&&(w=Ue(d),w=d<0?Bt(g+w,0):Yt(w,g-1)),qu(o,Fe(s,3),w,!0)}function Yw(o){var s=o==null?0:o.length;return s?Wt(o,1):[]}function vJ(o){var s=o==null?0:o.length;return s?Wt(o,De):[]}function bJ(o,s){var d=o==null?0:o.length;return d?(s=s===n?1:Ue(s),Wt(o,s)):[]}function yJ(o){for(var s=-1,d=o==null?0:o.length,g={};++s<d;){var w=o[s];g[w[0]]=w[1]}return g}function Jw(o){return o&&o.length?o[0]:n}function xJ(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=d==null?0:Ue(d);return w<0&&(w=Bt(g+w,0)),Do(o,s,w)}function CJ(o){var s=o==null?0:o.length;return s?Tn(o,0,-1):[]}var wJ=qe(function(o){var s=Et(o,dh);return s.length&&s[0]===o[0]?nh(s):[]}),SJ=qe(function(o){var s=On(o),d=Et(o,dh);return s===On(d)?s=n:d.pop(),d.length&&d[0]===o[0]?nh(d,Fe(s,2)):[]}),IJ=qe(function(o){var s=On(o),d=Et(o,dh);return s=typeof s=="function"?s:n,s&&d.pop(),d.length&&d[0]===o[0]?nh(d,n,s):[]});function EJ(o,s){return o==null?"":CU.call(o,s)}function On(o){var s=o==null?0:o.length;return s?o[s-1]:n}function AJ(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=g;return d!==n&&(w=Ue(d),w=w<0?Bt(g+w,0):Yt(w,g-1)),s===s?oU(o,s,w):qu(o,OC,w,!0)}function _J(o,s){return o&&o.length?sw(o,Ue(s)):n}var PJ=qe(Kw);function Kw(o,s){return o&&o.length&&s&&s.length?ah(o,s):o}function TJ(o,s,d){return o&&o.length&&s&&s.length?ah(o,s,Fe(d,2)):o}function OJ(o,s,d){return o&&o.length&&s&&s.length?ah(o,s,n,d):o}var FJ=Er(function(o,s){var d=o==null?0:o.length,g=qp(o,s);return cw(o,Et(s,function(w){return Ar(w,d)?+w:w}).sort(xw)),g});function RJ(o,s){var d=[];if(!(o&&o.length))return d;var g=-1,w=[],A=o.length;for(s=Fe(s,3);++g<A;){var L=o[g];s(L,g,o)&&(d.push(L),w.push(g))}return cw(o,w),d}function Ah(o){return o==null?o:EU.call(o)}function MJ(o,s,d){var g=o==null?0:o.length;return g?(d&&typeof d!="number"&&Qt(o,s,d)?(s=0,d=g):(s=s==null?0:Ue(s),d=d===n?g:Ue(d)),Tn(o,s,d)):[]}function LJ(o,s){return bl(o,s)}function $J(o,s,d){return lh(o,s,Fe(d,2))}function DJ(o,s){var d=o==null?0:o.length;if(d){var g=bl(o,s);if(g<d&&Wn(o[g],s))return g}return-1}function NJ(o,s){return bl(o,s,!0)}function VJ(o,s,d){return lh(o,s,Fe(d,2),!0)}function BJ(o,s){var d=o==null?0:o.length;if(d){var g=bl(o,s,!0)-1;if(Wn(o[g],s))return g}return-1}function kJ(o){return o&&o.length?dw(o):[]}function jJ(o,s){return o&&o.length?dw(o,Fe(s,2)):[]}function GJ(o){var s=o==null?0:o.length;return s?Tn(o,1,s):[]}function HJ(o,s,d){return o&&o.length?(s=d||s===n?1:Ue(s),Tn(o,0,s<0?0:s)):[]}function WJ(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ue(s),s=g-s,Tn(o,s<0?0:s,g)):[]}function ZJ(o,s){return o&&o.length?yl(o,Fe(s,3),!1,!0):[]}function XJ(o,s){return o&&o.length?yl(o,Fe(s,3)):[]}var zJ=qe(function(o){return Yr(Wt(o,1,Mt,!0))}),UJ=qe(function(o){var s=On(o);return Mt(s)&&(s=n),Yr(Wt(o,1,Mt,!0),Fe(s,2))}),YJ=qe(function(o){var s=On(o);return s=typeof s=="function"?s:n,Yr(Wt(o,1,Mt,!0),n,s)});function JJ(o){return o&&o.length?Yr(o):[]}function KJ(o,s){return o&&o.length?Yr(o,Fe(s,2)):[]}function qJ(o,s){return s=typeof s=="function"?s:n,o&&o.length?Yr(o,n,s):[]}function _h(o){if(!(o&&o.length))return[];var s=0;return o=Wr(o,function(d){if(Mt(d))return s=Bt(d.length,s),!0}),Wp(s,function(d){return Et(o,jp(d))})}function qw(o,s){if(!(o&&o.length))return[];var d=_h(o);return s==null?d:Et(d,function(g){return gn(s,n,g)})}var QJ=qe(function(o,s){return Mt(o)?rs(o,s):[]}),eK=qe(function(o){return fh(Wr(o,Mt))}),tK=qe(function(o){var s=On(o);return Mt(s)&&(s=n),fh(Wr(o,Mt),Fe(s,2))}),nK=qe(function(o){var s=On(o);return s=typeof s=="function"?s:n,fh(Wr(o,Mt),n,s)}),rK=qe(_h);function iK(o,s){return mw(o||[],s||[],ns)}function oK(o,s){return mw(o||[],s||[],as)}var aK=qe(function(o){var s=o.length,d=s>1?o[s-1]:n;return d=typeof d=="function"?(o.pop(),d):n,qw(o,d)});function Qw(o){var s=I(o);return s.__chain__=!0,s}function sK(o,s){return s(o),o}function Pl(o,s){return s(o)}var uK=Er(function(o){var s=o.length,d=s?o[0]:0,g=this.__wrapped__,w=function(A){return qp(A,o)};return s>1||this.__actions__.length||!(g instanceof tt)||!Ar(d)?this.thru(w):(g=g.slice(d,+d+(s?1:0)),g.__actions__.push({func:Pl,args:[w],thisArg:n}),new _n(g,this.__chain__).thru(function(A){return s&&!A.length&&A.push(n),A}))});function lK(){return Qw(this)}function cK(){return new _n(this.value(),this.__chain__)}function fK(){this.__values__===n&&(this.__values__=p2(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function dK(){return this}function pK(o){for(var s,d=this;d instanceof pl;){var g=Xw(d);g.__index__=0,g.__values__=n,s?w.__wrapped__=g:s=g;var w=g;d=d.__wrapped__}return w.__wrapped__=o,s}function hK(){var o=this.__wrapped__;if(o instanceof tt){var s=o;return this.__actions__.length&&(s=new tt(this)),s=s.reverse(),s.__actions__.push({func:Pl,args:[Ah],thisArg:n}),new _n(s,this.__chain__)}return this.thru(Ah)}function gK(){return gw(this.__wrapped__,this.__actions__)}var mK=xl(function(o,s,d){pt.call(o,d)?++o[d]:Sr(o,d,1)});function vK(o,s,d){var g=Ze(o)?PC:sY;return d&&Qt(o,s,d)&&(s=n),g(o,Fe(s,3))}function bK(o,s){var d=Ze(o)?Wr:qC;return d(o,Fe(s,3))}var yK=Aw(zw),xK=Aw(Uw);function CK(o,s){return Wt(Tl(o,s),1)}function wK(o,s){return Wt(Tl(o,s),De)}function SK(o,s,d){return d=d===n?1:Ue(d),Wt(Tl(o,s),d)}function e2(o,s){var d=Ze(o)?En:Ur;return d(o,Fe(s,3))}function t2(o,s){var d=Ze(o)?Gz:KC;return d(o,Fe(s,3))}var IK=xl(function(o,s,d){pt.call(o,d)?o[d].push(s):Sr(o,d,[s])});function EK(o,s,d,g){o=sn(o)?o:Uo(o),d=d&&!g?Ue(d):0;var w=o.length;return d<0&&(d=Bt(w+d,0)),Ll(o)?d<=w&&o.indexOf(s,d)>-1:!!w&&Do(o,s,d)>-1}var AK=qe(function(o,s,d){var g=-1,w=typeof s=="function",A=sn(o)?Z(o.length):[];return Ur(o,function(L){A[++g]=w?gn(s,L,d):is(L,s,d)}),A}),_K=xl(function(o,s,d){Sr(o,d,s)});function Tl(o,s){var d=Ze(o)?Et:iw;return d(o,Fe(s,3))}function PK(o,s,d,g){return o==null?[]:(Ze(s)||(s=s==null?[]:[s]),d=g?n:d,Ze(d)||(d=d==null?[]:[d]),uw(o,s,d))}var TK=xl(function(o,s,d){o[d?0:1].push(s)},function(){return[[],[]]});function OK(o,s,d){var g=Ze(o)?Bp:RC,w=arguments.length<3;return g(o,Fe(s,4),d,w,Ur)}function FK(o,s,d){var g=Ze(o)?Hz:RC,w=arguments.length<3;return g(o,Fe(s,4),d,w,KC)}function RK(o,s){var d=Ze(o)?Wr:qC;return d(o,Rl(Fe(s,3)))}function MK(o){var s=Ze(o)?zC:EY;return s(o)}function LK(o,s,d){(d?Qt(o,s,d):s===n)?s=1:s=Ue(s);var g=Ze(o)?nY:AY;return g(o,s)}function $K(o){var s=Ze(o)?rY:PY;return s(o)}function DK(o){if(o==null)return 0;if(sn(o))return Ll(o)?Vo(o):o.length;var s=Jt(o);return s==Q||s==it?o.size:ih(o).length}function NK(o,s,d){var g=Ze(o)?kp:TY;return d&&Qt(o,s,d)&&(s=n),g(o,Fe(s,3))}var VK=qe(function(o,s){if(o==null)return[];var d=s.length;return d>1&&Qt(o,s[0],s[1])?s=[]:d>2&&Qt(s[0],s[1],s[2])&&(s=[s[0]]),uw(o,Wt(s,1),[])}),Ol=bU||function(){return Ht.Date.now()};function BK(o,s){if(typeof s!="function")throw new An(u);return o=Ue(o),function(){if(--o<1)return s.apply(this,arguments)}}function n2(o,s,d){return s=d?n:s,s=o&&s==null?o.length:s,Ir(o,X,n,n,n,n,s)}function r2(o,s){var d;if(typeof s!="function")throw new An(u);return o=Ue(o),function(){return--o>0&&(d=s.apply(this,arguments)),o<=1&&(s=n),d}}var Ph=qe(function(o,s,d){var g=E;if(d.length){var w=Xr(d,Xo(Ph));g|=N}return Ir(o,g,s,d,w)}),i2=qe(function(o,s,d){var g=E|P;if(d.length){var w=Xr(d,Xo(i2));g|=N}return Ir(s,g,o,d,w)});function o2(o,s,d){s=d?n:s;var g=Ir(o,$,n,n,n,n,n,s);return g.placeholder=o2.placeholder,g}function a2(o,s,d){s=d?n:s;var g=Ir(o,B,n,n,n,n,n,s);return g.placeholder=a2.placeholder,g}function s2(o,s,d){var g,w,A,L,D,j,ne=0,ie=!1,ae=!1,ge=!0;if(typeof o!="function")throw new An(u);s=Fn(s)||0,_t(d)&&(ie=!!d.leading,ae="maxWait"in d,A=ae?Bt(Fn(d.maxWait)||0,s):A,ge="trailing"in d?!!d.trailing:ge);function Ee(Lt){var Zn=g,Tr=w;return g=w=n,ne=Lt,L=o.apply(Tr,Zn),L}function Me(Lt){return ne=Lt,D=ls(Qe,s),ie?Ee(Lt):L}function Je(Lt){var Zn=Lt-j,Tr=Lt-ne,A2=s-Zn;return ae?Yt(A2,A-Tr):A2}function Le(Lt){var Zn=Lt-j,Tr=Lt-ne;return j===n||Zn>=s||Zn<0||ae&&Tr>=A}function Qe(){var Lt=Ol();if(Le(Lt))return rt(Lt);D=ls(Qe,Je(Lt))}function rt(Lt){return D=n,ge&&g?Ee(Lt):(g=w=n,L)}function yn(){D!==n&&vw(D),ne=0,g=j=w=D=n}function en(){return D===n?L:rt(Ol())}function xn(){var Lt=Ol(),Zn=Le(Lt);if(g=arguments,w=this,j=Lt,Zn){if(D===n)return Me(j);if(ae)return vw(D),D=ls(Qe,s),Ee(j)}return D===n&&(D=ls(Qe,s)),L}return xn.cancel=yn,xn.flush=en,xn}var kK=qe(function(o,s){return JC(o,1,s)}),jK=qe(function(o,s,d){return JC(o,Fn(s)||0,d)});function GK(o){return Ir(o,fe)}function Fl(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new An(u);var d=function(){var g=arguments,w=s?s.apply(this,g):g[0],A=d.cache;if(A.has(w))return A.get(w);var L=o.apply(this,g);return d.cache=A.set(w,L)||A,L};return d.cache=new(Fl.Cache||wr),d}Fl.Cache=wr;function Rl(o){if(typeof o!="function")throw new An(u);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function HK(o){return r2(2,o)}var WK=OY(function(o,s){s=s.length==1&&Ze(s[0])?Et(s[0],mn(Fe())):Et(Wt(s,1),mn(Fe()));var d=s.length;return qe(function(g){for(var w=-1,A=Yt(g.length,d);++w<A;)g[w]=s[w].call(this,g[w]);return gn(o,this,g)})}),Th=qe(function(o,s){var d=Xr(s,Xo(Th));return Ir(o,N,n,s,d)}),u2=qe(function(o,s){var d=Xr(s,Xo(u2));return Ir(o,U,n,s,d)}),ZK=Er(function(o,s){return Ir(o,ee,n,n,n,s)});function XK(o,s){if(typeof o!="function")throw new An(u);return s=s===n?s:Ue(s),qe(o,s)}function zK(o,s){if(typeof o!="function")throw new An(u);return s=s==null?0:Bt(Ue(s),0),qe(function(d){var g=d[s],w=Kr(d,0,s);return g&&Zr(w,g),gn(o,this,w)})}function UK(o,s,d){var g=!0,w=!0;if(typeof o!="function")throw new An(u);return _t(d)&&(g="leading"in d?!!d.leading:g,w="trailing"in d?!!d.trailing:w),s2(o,s,{leading:g,maxWait:s,trailing:w})}function YK(o){return n2(o,1)}function JK(o,s){return Th(ph(s),o)}function KK(){if(!arguments.length)return[];var o=arguments[0];return Ze(o)?o:[o]}function qK(o){return Pn(o,v)}function QK(o,s){return s=typeof s=="function"?s:n,Pn(o,v,s)}function eq(o){return Pn(o,h|v)}function tq(o,s){return s=typeof s=="function"?s:n,Pn(o,h|v,s)}function nq(o,s){return s==null||YC(o,s,jt(s))}function Wn(o,s){return o===s||o!==o&&s!==s}var rq=Il(th),iq=Il(function(o,s){return o>=s}),ji=tw(function(){return arguments}())?tw:function(o){return Ot(o)&&pt.call(o,"callee")&&!jC.call(o,"callee")},Ze=Z.isArray,oq=wC?mn(wC):pY;function sn(o){return o!=null&&Ml(o.length)&&!_r(o)}function Mt(o){return Ot(o)&&sn(o)}function aq(o){return o===!0||o===!1||Ot(o)&&qt(o)==Y}var qr=xU||kh,sq=SC?mn(SC):hY;function uq(o){return Ot(o)&&o.nodeType===1&&!cs(o)}function lq(o){if(o==null)return!0;if(sn(o)&&(Ze(o)||typeof o=="string"||typeof o.splice=="function"||qr(o)||zo(o)||ji(o)))return!o.length;var s=Jt(o);if(s==Q||s==it)return!o.size;if(us(o))return!ih(o).length;for(var d in o)if(pt.call(o,d))return!1;return!0}function cq(o,s){return os(o,s)}function fq(o,s,d){d=typeof d=="function"?d:n;var g=d?d(o,s):n;return g===n?os(o,s,n,d):!!g}function Oh(o){if(!Ot(o))return!1;var s=qt(o);return s==se||s==q||typeof o.message=="string"&&typeof o.name=="string"&&!cs(o)}function dq(o){return typeof o=="number"&&HC(o)}function _r(o){if(!_t(o))return!1;var s=qt(o);return s==J||s==ue||s==z||s==ke}function l2(o){return typeof o=="number"&&o==Ue(o)}function Ml(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Ye}function _t(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Ot(o){return o!=null&&typeof o=="object"}var c2=IC?mn(IC):mY;function pq(o,s){return o===s||rh(o,s,xh(s))}function hq(o,s,d){return d=typeof d=="function"?d:n,rh(o,s,xh(s),d)}function gq(o){return f2(o)&&o!=+o}function mq(o){if(QY(o))throw new Ge(a);return nw(o)}function vq(o){return o===null}function bq(o){return o==null}function f2(o){return typeof o=="number"||Ot(o)&&qt(o)==de}function cs(o){if(!Ot(o)||qt(o)!=ye)return!1;var s=al(o);if(s===null)return!0;var d=pt.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&nl.call(d)==hU}var Fh=EC?mn(EC):vY;function yq(o){return l2(o)&&o>=-Ye&&o<=Ye}var d2=AC?mn(AC):bY;function Ll(o){return typeof o=="string"||!Ze(o)&&Ot(o)&&qt(o)==at}function bn(o){return typeof o=="symbol"||Ot(o)&&qt(o)==St}var zo=_C?mn(_C):yY;function xq(o){return o===n}function Cq(o){return Ot(o)&&Jt(o)==Rt}function wq(o){return Ot(o)&&qt(o)==kn}var Sq=Il(oh),Iq=Il(function(o,s){return o<=s});function p2(o){if(!o)return[];if(sn(o))return Ll(o)?Gn(o):an(o);if(Ka&&o[Ka])return nU(o[Ka]());var s=Jt(o),d=s==Q?Xp:s==it?Qu:Uo;return d(o)}function Pr(o){if(!o)return o===0?o:0;if(o=Fn(o),o===De||o===-De){var s=o<0?-1:1;return s*T}return o===o?o:0}function Ue(o){var s=Pr(o),d=s%1;return s===s?d?s-d:s:0}function h2(o){return o?Ni(Ue(o),0,R):0}function Fn(o){if(typeof o=="number")return o;if(bn(o))return _;if(_t(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=_t(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=MC(o);var d=me.test(o);return d||je.test(o)?Bz(o.slice(2),d?2:8):ve.test(o)?_:+o}function g2(o){return tr(o,un(o))}function Eq(o){return o?Ni(Ue(o),-Ye,Ye):o===0?o:0}function dt(o){return o==null?"":vn(o)}var Aq=Wo(function(o,s){if(us(s)||sn(s)){tr(s,jt(s),o);return}for(var d in s)pt.call(s,d)&&ns(o,d,s[d])}),m2=Wo(function(o,s){tr(s,un(s),o)}),$l=Wo(function(o,s,d,g){tr(s,un(s),o,g)}),_q=Wo(function(o,s,d,g){tr(s,jt(s),o,g)}),Pq=Er(qp);function Tq(o,s){var d=Ho(o);return s==null?d:UC(d,s)}var Oq=qe(function(o,s){o=gt(o);var d=-1,g=s.length,w=g>2?s[2]:n;for(w&&Qt(s[0],s[1],w)&&(g=1);++d<g;)for(var A=s[d],L=un(A),D=-1,j=L.length;++D<j;){var ne=L[D],ie=o[ne];(ie===n||Wn(ie,ko[ne])&&!pt.call(o,ne))&&(o[ne]=A[ne])}return o}),Fq=qe(function(o){return o.push(n,Mw),gn(v2,n,o)});function Rq(o,s){return TC(o,Fe(s,3),er)}function Mq(o,s){return TC(o,Fe(s,3),eh)}function Lq(o,s){return o==null?o:Qp(o,Fe(s,3),un)}function $q(o,s){return o==null?o:QC(o,Fe(s,3),un)}function Dq(o,s){return o&&er(o,Fe(s,3))}function Nq(o,s){return o&&eh(o,Fe(s,3))}function Vq(o){return o==null?[]:ml(o,jt(o))}function Bq(o){return o==null?[]:ml(o,un(o))}function Rh(o,s,d){var g=o==null?n:Vi(o,s);return g===n?d:g}function kq(o,s){return o!=null&&Dw(o,s,lY)}function Mh(o,s){return o!=null&&Dw(o,s,cY)}var jq=Pw(function(o,s,d){s!=null&&typeof s.toString!="function"&&(s=rl.call(s)),o[s]=d},$h(ln)),Gq=Pw(function(o,s,d){s!=null&&typeof s.toString!="function"&&(s=rl.call(s)),pt.call(o,s)?o[s].push(d):o[s]=[d]},Fe),Hq=qe(is);function jt(o){return sn(o)?XC(o):ih(o)}function un(o){return sn(o)?XC(o,!0):xY(o)}function Wq(o,s){var d={};return s=Fe(s,3),er(o,function(g,w,A){Sr(d,s(g,w,A),g)}),d}function Zq(o,s){var d={};return s=Fe(s,3),er(o,function(g,w,A){Sr(d,w,s(g,w,A))}),d}var Xq=Wo(function(o,s,d){vl(o,s,d)}),v2=Wo(function(o,s,d,g){vl(o,s,d,g)}),zq=Er(function(o,s){var d={};if(o==null)return d;var g=!1;s=Et(s,function(A){return A=Jr(A,o),g||(g=A.length>1),A}),tr(o,bh(o),d),g&&(d=Pn(d,h|m|v,jY));for(var w=s.length;w--;)ch(d,s[w]);return d});function Uq(o,s){return b2(o,Rl(Fe(s)))}var Yq=Er(function(o,s){return o==null?{}:wY(o,s)});function b2(o,s){if(o==null)return{};var d=Et(bh(o),function(g){return[g]});return s=Fe(s),lw(o,d,function(g,w){return s(g,w[0])})}function Jq(o,s,d){s=Jr(s,o);var g=-1,w=s.length;for(w||(w=1,o=n);++g<w;){var A=o==null?n:o[nr(s[g])];A===n&&(g=w,A=d),o=_r(A)?A.call(o):A}return o}function Kq(o,s,d){return o==null?o:as(o,s,d)}function qq(o,s,d,g){return g=typeof g=="function"?g:n,o==null?o:as(o,s,d,g)}var y2=Fw(jt),x2=Fw(un);function Qq(o,s,d){var g=Ze(o),w=g||qr(o)||zo(o);if(s=Fe(s,4),d==null){var A=o&&o.constructor;w?d=g?new A:[]:_t(o)?d=_r(A)?Ho(al(o)):{}:d={}}return(w?En:er)(o,function(L,D,j){return s(d,L,D,j)}),d}function eQ(o,s){return o==null?!0:ch(o,s)}function tQ(o,s,d){return o==null?o:hw(o,s,ph(d))}function nQ(o,s,d,g){return g=typeof g=="function"?g:n,o==null?o:hw(o,s,ph(d),g)}function Uo(o){return o==null?[]:Zp(o,jt(o))}function rQ(o){return o==null?[]:Zp(o,un(o))}function iQ(o,s,d){return d===n&&(d=s,s=n),d!==n&&(d=Fn(d),d=d===d?d:0),s!==n&&(s=Fn(s),s=s===s?s:0),Ni(Fn(o),s,d)}function oQ(o,s,d){return s=Pr(s),d===n?(d=s,s=0):d=Pr(d),o=Fn(o),fY(o,s,d)}function aQ(o,s,d){if(d&&typeof d!="boolean"&&Qt(o,s,d)&&(s=d=n),d===n&&(typeof s=="boolean"?(d=s,s=n):typeof o=="boolean"&&(d=o,o=n)),o===n&&s===n?(o=0,s=1):(o=Pr(o),s===n?(s=o,o=0):s=Pr(s)),o>s){var g=o;o=s,s=g}if(d||o%1||s%1){var w=WC();return Yt(o+w*(s-o+Vz("1e-"+((w+"").length-1))),s)}return sh(o,s)}var sQ=Zo(function(o,s,d){return s=s.toLowerCase(),o+(d?C2(s):s)});function C2(o){return Lh(dt(o).toLowerCase())}function w2(o){return o=dt(o),o&&o.replace(ht,Kz).replace(Pz,"")}function uQ(o,s,d){o=dt(o),s=vn(s);var g=o.length;d=d===n?g:Ni(Ue(d),0,g);var w=d;return d-=s.length,d>=0&&o.slice(d,w)==s}function lQ(o){return o=dt(o),o&&Ei.test(o)?o.replace(Qn,qz):o}function cQ(o){return o=dt(o),o&&Oi.test(o)?o.replace(Ti,"\\$&"):o}var fQ=Zo(function(o,s,d){return o+(d?"-":"")+s.toLowerCase()}),dQ=Zo(function(o,s,d){return o+(d?" ":"")+s.toLowerCase()}),pQ=Ew("toLowerCase");function hQ(o,s,d){o=dt(o),s=Ue(s);var g=s?Vo(o):0;if(!s||g>=s)return o;var w=(s-g)/2;return Sl(cl(w),d)+o+Sl(ll(w),d)}function gQ(o,s,d){o=dt(o),s=Ue(s);var g=s?Vo(o):0;return s&&g<s?o+Sl(s-g,d):o}function mQ(o,s,d){o=dt(o),s=Ue(s);var g=s?Vo(o):0;return s&&g<s?Sl(s-g,d)+o:o}function vQ(o,s,d){return d||s==null?s=0:s&&(s=+s),IU(dt(o).replace(Fi,""),s||0)}function bQ(o,s,d){return(d?Qt(o,s,d):s===n)?s=1:s=Ue(s),uh(dt(o),s)}function yQ(){var o=arguments,s=dt(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var xQ=Zo(function(o,s,d){return o+(d?"_":"")+s.toLowerCase()});function CQ(o,s,d){return d&&typeof d!="number"&&Qt(o,s,d)&&(s=d=n),d=d===n?R:d>>>0,d?(o=dt(o),o&&(typeof s=="string"||s!=null&&!Fh(s))&&(s=vn(s),!s&&No(o))?Kr(Gn(o),0,d):o.split(s,d)):[]}var wQ=Zo(function(o,s,d){return o+(d?" ":"")+Lh(s)});function SQ(o,s,d){return o=dt(o),d=d==null?0:Ni(Ue(d),0,o.length),s=vn(s),o.slice(d,d+s.length)==s}function IQ(o,s,d){var g=I.templateSettings;d&&Qt(o,s,d)&&(s=n),o=dt(o),s=$l({},s,g,Rw);var w=$l({},s.imports,g.imports,Rw),A=jt(w),L=Zp(w,A),D,j,ne=0,ie=s.interpolate||kt,ae="__p += '",ge=zp((s.escape||kt).source+"|"+ie.source+"|"+(ie===Lo?we:kt).source+"|"+(s.evaluate||kt).source+"|$","g"),Ee="//# sourceURL="+(pt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mz+"]")+`
|
|
201
|
-
`;o.replace(ge,function(
|
|
202
|
-
__e(`+
|
|
203
|
-
'`),
|
|
204
|
-
`+
|
|
205
|
-
__p += '`),
|
|
206
|
-
((__t = (`+
|
|
207
|
-
'`),
|
|
208
|
-
`;var
|
|
209
|
-
`+
|
|
200
|
+
`)}function xJ(o){return Ue(o)||Wi(o)||!!(mw&&o&&o[mw])}function Pr(o,s){var d=typeof o;return s=s??Ke,!!s&&(d=="number"||d!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<s}function tn(o,s,d){if(!Pt(d))return!1;var g=typeof s;return(g=="number"?ln(d)&&Pr(s,d.length):g=="string"&&s in d)?Xn(d[s],o):!1}function Lp(o,s){if(Ue(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||xn(o)?!0:Oi.test(o)||!Fi.test(o)||s!=null&&o in mt(s)}function CJ(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Dp(o){var s=Ml(o),d=I[s];if(typeof d!="function"||!(s in nt.prototype))return!1;if(o===d)return!0;var g=Op(d);return!!g&&o===g[0]}function wJ(o){return!!dw&&dw in o}var SJ=ll?Tr:qp;function hs(o){var s=o&&o.constructor,d=typeof s=="function"&&s.prototype||Wo;return o===d}function d2(o){return o===o&&!Pt(o)}function h2(o,s){return function(d){return d==null?!1:d[o]===s&&(s!==n||o in mt(d))}}function IJ(o){var s=Bl(o,function(g){return d.size===f&&d.clear(),g}),d=s.cache;return s}function EJ(o,s){var d=o[1],g=s[1],w=d|g,P=w<(E|_|X),D=g==X&&d==L||g==X&&d==te&&o[7].length<=s[8]||g==(X|te)&&s[7].length<=s[8]&&d==L;if(!(P||D))return o;g&E&&(o[2]=s[2],w|=d&E?0:R);var N=s[3];if(N){var j=o[3];o[3]=j?Yw(j,N,s[4]):N,o[4]=j?Yr(o[3],h):s[4]}return N=s[5],N&&(j=o[5],o[5]=j?Jw(j,N,s[6]):N,o[6]=j?Yr(o[5],h):s[6]),N=s[7],N&&(o[7]=N),g&X&&(o[8]=o[8]==null?s[8]:Kt(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=w,o}function AJ(o){var s=[];if(o!=null)for(var d in mt(o))s.push(d);return s}function _J(o){return fl.call(o)}function p2(o,s,d){return s=kt(s===n?o.length-1:s,0),function(){for(var g=arguments,w=-1,P=kt(g.length-s,0),D=Z(P);++w<P;)D[w]=g[s+w];w=-1;for(var N=Z(s+1);++w<s;)N[w]=g[w];return N[s]=d(D),vn(o,this,N)}}function g2(o,s){return s.length<2?o:ji(o,On(s,0,-1))}function PJ(o,s){for(var d=o.length,g=Kt(s.length,d),w=un(o);g--;){var P=s[g];o[g]=Pr(P,d)?w[P]:n}return o}function $p(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var m2=b2(Bw),ps=HU||function(o,s){return Wt.setTimeout(o,s)},Np=b2(KY);function v2(o,s,d){var g=s+"";return Np(o,yJ(g,TJ(mJ(g),d)))}function b2(o){var s=0,d=0;return function(){var g=zU(),w=ee-(g-d);if(d=g,w>0){if(++s>=He)return arguments[0]}else s=0;return o.apply(n,arguments)}}function Dl(o,s){var d=-1,g=o.length,w=g-1;for(s=s===n?g:s;++d<s;){var P=yp(d,w),D=o[P];o[P]=o[d],o[d]=D}return o.length=s,o}var y2=IJ(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(Ka,function(d,g,w,P){s.push(w?P.replace(fe,"$1"):g||d)}),s});function ir(o){if(typeof o=="string"||xn(o))return o;var s=o+"";return s=="0"&&1/o==-Ve?"-0":s}function Hi(o){if(o!=null){try{return cl.call(o)}catch{}try{return o+""}catch{}}return""}function TJ(o,s){return _n(H,function(d){var g="_."+d[0];s&d[1]&&!ol(o,g)&&o.push(g)}),o.sort()}function x2(o){if(o instanceof nt)return o.clone();var s=new Tn(o.__wrapped__,o.__chain__);return s.__actions__=un(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function FJ(o,s,d){(d?tn(o,s,d):s===n)?s=1:s=kt(Ye(s),0);var g=o==null?0:o.length;if(!g||s<1)return[];for(var w=0,P=0,D=Z(vl(g/s));w<g;)D[P++]=On(o,w,w+=s);return D}function OJ(o){for(var s=-1,d=o==null?0:o.length,g=0,w=[];++s<d;){var P=o[s];P&&(w[g++]=P)}return w}function RJ(){var o=arguments.length;if(!o)return[];for(var s=Z(o-1),d=arguments[0],g=o;g--;)s[g-1]=arguments[g];return Ur(Ue(d)?un(d):[d],Zt(s,1))}var MJ=et(function(o,s){return Lt(o)?us(o,Zt(s,1,Lt,!0)):[]}),LJ=et(function(o,s){var d=Rn(s);return Lt(d)&&(d=n),Lt(o)?us(o,Zt(s,1,Lt,!0),Oe(d,2)):[]}),DJ=et(function(o,s){var d=Rn(s);return Lt(d)&&(d=n),Lt(o)?us(o,Zt(s,1,Lt,!0),n,d):[]});function $J(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ye(s),On(o,s<0?0:s,g)):[]}function NJ(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ye(s),s=g-s,On(o,0,s<0?0:s)):[]}function VJ(o,s){return o&&o.length?_l(o,Oe(s,3),!0,!0):[]}function BJ(o,s){return o&&o.length?_l(o,Oe(s,3),!0):[]}function kJ(o,s,d,g){var w=o==null?0:o.length;return w?(d&&typeof d!="number"&&tn(o,s,d)&&(d=0,g=w),RY(o,s,d,g)):[]}function C2(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=d==null?0:Ye(d);return w<0&&(w=kt(g+w,0)),al(o,Oe(s,3),w)}function w2(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=g-1;return d!==n&&(w=Ye(d),w=d<0?kt(g+w,0):Kt(w,g-1)),al(o,Oe(s,3),w,!0)}function S2(o){var s=o==null?0:o.length;return s?Zt(o,1):[]}function jJ(o){var s=o==null?0:o.length;return s?Zt(o,Ve):[]}function GJ(o,s){var d=o==null?0:o.length;return d?(s=s===n?1:Ye(s),Zt(o,s)):[]}function HJ(o){for(var s=-1,d=o==null?0:o.length,g={};++s<d;){var w=o[s];g[w[0]]=w[1]}return g}function I2(o){return o&&o.length?o[0]:n}function WJ(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=d==null?0:Ye(d);return w<0&&(w=kt(g+w,0)),ko(o,s,w)}function ZJ(o){var s=o==null?0:o.length;return s?On(o,0,-1):[]}var XJ=et(function(o){var s=At(o,Ip);return s.length&&s[0]===o[0]?pp(s):[]}),zJ=et(function(o){var s=Rn(o),d=At(o,Ip);return s===Rn(d)?s=n:d.pop(),d.length&&d[0]===o[0]?pp(d,Oe(s,2)):[]}),UJ=et(function(o){var s=Rn(o),d=At(o,Ip);return s=typeof s=="function"?s:n,s&&d.pop(),d.length&&d[0]===o[0]?pp(d,n,s):[]});function YJ(o,s){return o==null?"":ZU.call(o,s)}function Rn(o){var s=o==null?0:o.length;return s?o[s-1]:n}function JJ(o,s,d){var g=o==null?0:o.length;if(!g)return-1;var w=g;return d!==n&&(w=Ye(d),w=w<0?kt(g+w,0):Kt(w,g-1)),s===s?TU(o,s,w):al(o,iw,w,!0)}function KJ(o,s){return o&&o.length?Dw(o,Ye(s)):n}var qJ=et(E2);function E2(o,s){return o&&o.length&&s&&s.length?bp(o,s):o}function QJ(o,s,d){return o&&o.length&&s&&s.length?bp(o,s,Oe(d,2)):o}function eK(o,s,d){return o&&o.length&&s&&s.length?bp(o,s,n,d):o}var tK=_r(function(o,s){var d=o==null?0:o.length,g=cp(o,s);return Vw(o,At(s,function(w){return Pr(w,d)?+w:w}).sort(Uw)),g});function nK(o,s){var d=[];if(!(o&&o.length))return d;var g=-1,w=[],P=o.length;for(s=Oe(s,3);++g<P;){var D=o[g];s(D,g,o)&&(d.push(D),w.push(g))}return Vw(o,w),d}function Vp(o){return o==null?o:YU.call(o)}function rK(o,s,d){var g=o==null?0:o.length;return g?(d&&typeof d!="number"&&tn(o,s,d)?(s=0,d=g):(s=s==null?0:Ye(s),d=d===n?g:Ye(d)),On(o,s,d)):[]}function iK(o,s){return Al(o,s)}function oK(o,s,d){return Cp(o,s,Oe(d,2))}function aK(o,s){var d=o==null?0:o.length;if(d){var g=Al(o,s);if(g<d&&Xn(o[g],s))return g}return-1}function sK(o,s){return Al(o,s,!0)}function uK(o,s,d){return Cp(o,s,Oe(d,2),!0)}function lK(o,s){var d=o==null?0:o.length;if(d){var g=Al(o,s,!0)-1;if(Xn(o[g],s))return g}return-1}function cK(o){return o&&o.length?kw(o):[]}function fK(o,s){return o&&o.length?kw(o,Oe(s,2)):[]}function dK(o){var s=o==null?0:o.length;return s?On(o,1,s):[]}function hK(o,s,d){return o&&o.length?(s=d||s===n?1:Ye(s),On(o,0,s<0?0:s)):[]}function pK(o,s,d){var g=o==null?0:o.length;return g?(s=d||s===n?1:Ye(s),s=g-s,On(o,s<0?0:s,g)):[]}function gK(o,s){return o&&o.length?_l(o,Oe(s,3),!1,!0):[]}function mK(o,s){return o&&o.length?_l(o,Oe(s,3)):[]}var vK=et(function(o){return qr(Zt(o,1,Lt,!0))}),bK=et(function(o){var s=Rn(o);return Lt(s)&&(s=n),qr(Zt(o,1,Lt,!0),Oe(s,2))}),yK=et(function(o){var s=Rn(o);return s=typeof s=="function"?s:n,qr(Zt(o,1,Lt,!0),n,s)});function xK(o){return o&&o.length?qr(o):[]}function CK(o,s){return o&&o.length?qr(o,Oe(s,2)):[]}function wK(o,s){return s=typeof s=="function"?s:n,o&&o.length?qr(o,n,s):[]}function Bp(o){if(!(o&&o.length))return[];var s=0;return o=zr(o,function(d){if(Lt(d))return s=kt(d.length,s),!0}),np(s,function(d){return At(o,Qh(d))})}function A2(o,s){if(!(o&&o.length))return[];var d=Bp(o);return s==null?d:At(d,function(g){return vn(s,n,g)})}var SK=et(function(o,s){return Lt(o)?us(o,s):[]}),IK=et(function(o){return Sp(zr(o,Lt))}),EK=et(function(o){var s=Rn(o);return Lt(s)&&(s=n),Sp(zr(o,Lt),Oe(s,2))}),AK=et(function(o){var s=Rn(o);return s=typeof s=="function"?s:n,Sp(zr(o,Lt),n,s)}),_K=et(Bp);function PK(o,s){return Ww(o||[],s||[],ss)}function TK(o,s){return Ww(o||[],s||[],fs)}var FK=et(function(o){var s=o.length,d=s>1?o[s-1]:n;return d=typeof d=="function"?(o.pop(),d):n,A2(o,d)});function _2(o){var s=I(o);return s.__chain__=!0,s}function OK(o,s){return s(o),o}function $l(o,s){return s(o)}var RK=_r(function(o){var s=o.length,d=s?o[0]:0,g=this.__wrapped__,w=function(P){return cp(P,o)};return s>1||this.__actions__.length||!(g instanceof nt)||!Pr(d)?this.thru(w):(g=g.slice(d,+d+(s?1:0)),g.__actions__.push({func:$l,args:[w],thisArg:n}),new Tn(g,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function MK(){return _2(this)}function LK(){return new Tn(this.value(),this.__chain__)}function DK(){this.__values__===n&&(this.__values__=j2(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function $K(){return this}function NK(o){for(var s,d=this;d instanceof Cl;){var g=x2(d);g.__index__=0,g.__values__=n,s?w.__wrapped__=g:s=g;var w=g;d=d.__wrapped__}return w.__wrapped__=o,s}function VK(){var o=this.__wrapped__;if(o instanceof nt){var s=o;return this.__actions__.length&&(s=new nt(this)),s=s.reverse(),s.__actions__.push({func:$l,args:[Vp],thisArg:n}),new Tn(s,this.__chain__)}return this.thru(Vp)}function BK(){return Hw(this.__wrapped__,this.__actions__)}var kK=Pl(function(o,s,d){pt.call(o,d)?++o[d]:Er(o,d,1)});function jK(o,s,d){var g=Ue(o)?nw:OY;return d&&tn(o,s,d)&&(s=n),g(o,Oe(s,3))}function GK(o,s){var d=Ue(o)?zr:Aw;return d(o,Oe(s,3))}var HK=e2(C2),WK=e2(w2);function ZK(o,s){return Zt(Nl(o,s),1)}function XK(o,s){return Zt(Nl(o,s),Ve)}function zK(o,s,d){return d=d===n?1:Ye(d),Zt(Nl(o,s),d)}function P2(o,s){var d=Ue(o)?_n:Kr;return d(o,Oe(s,3))}function T2(o,s){var d=Ue(o)?dU:Ew;return d(o,Oe(s,3))}var UK=Pl(function(o,s,d){pt.call(o,d)?o[d].push(s):Er(o,d,[s])});function YK(o,s,d,g){o=ln(o)?o:qo(o),d=d&&!g?Ye(d):0;var w=o.length;return d<0&&(d=kt(w+d,0)),Gl(o)?d<=w&&o.indexOf(s,d)>-1:!!w&&ko(o,s,d)>-1}var JK=et(function(o,s,d){var g=-1,w=typeof s=="function",P=ln(o)?Z(o.length):[];return Kr(o,function(D){P[++g]=w?vn(s,D,d):ls(D,s,d)}),P}),KK=Pl(function(o,s,d){Er(o,d,s)});function Nl(o,s){var d=Ue(o)?At:Rw;return d(o,Oe(s,3))}function qK(o,s,d,g){return o==null?[]:(Ue(s)||(s=s==null?[]:[s]),d=g?n:d,Ue(d)||(d=d==null?[]:[d]),$w(o,s,d))}var QK=Pl(function(o,s,d){o[d?0:1].push(s)},function(){return[[],[]]});function eq(o,s,d){var g=Ue(o)?Kh:aw,w=arguments.length<3;return g(o,Oe(s,4),d,w,Kr)}function tq(o,s,d){var g=Ue(o)?hU:aw,w=arguments.length<3;return g(o,Oe(s,4),d,w,Ew)}function nq(o,s){var d=Ue(o)?zr:Aw;return d(o,kl(Oe(s,3)))}function rq(o){var s=Ue(o)?Cw:YY;return s(o)}function iq(o,s,d){(d?tn(o,s,d):s===n)?s=1:s=Ye(s);var g=Ue(o)?AY:JY;return g(o,s)}function oq(o){var s=Ue(o)?_Y:qY;return s(o)}function aq(o){if(o==null)return 0;if(ln(o))return Gl(o)?Go(o):o.length;var s=qt(o);return s==Q||s==ot?o.size:mp(o).length}function sq(o,s,d){var g=Ue(o)?qh:QY;return d&&tn(o,s,d)&&(s=n),g(o,Oe(s,3))}var uq=et(function(o,s){if(o==null)return[];var d=s.length;return d>1&&tn(o,s[0],s[1])?s=[]:d>2&&tn(s[0],s[1],s[2])&&(s=[s[0]]),$w(o,Zt(s,1),[])}),Vl=GU||function(){return Wt.Date.now()};function lq(o,s){if(typeof s!="function")throw new Pn(u);return o=Ye(o),function(){if(--o<1)return s.apply(this,arguments)}}function F2(o,s,d){return s=d?n:s,s=o&&s==null?o.length:s,Ar(o,X,n,n,n,n,s)}function O2(o,s){var d;if(typeof s!="function")throw new Pn(u);return o=Ye(o),function(){return--o>0&&(d=s.apply(this,arguments)),o<=1&&(s=n),d}}var kp=et(function(o,s,d){var g=E;if(d.length){var w=Yr(d,Jo(kp));g|=V}return Ar(o,g,s,d,w)}),R2=et(function(o,s,d){var g=E|_;if(d.length){var w=Yr(d,Jo(R2));g|=V}return Ar(s,g,o,d,w)});function M2(o,s,d){s=d?n:s;var g=Ar(o,L,n,n,n,n,n,s);return g.placeholder=M2.placeholder,g}function L2(o,s,d){s=d?n:s;var g=Ar(o,$,n,n,n,n,n,s);return g.placeholder=L2.placeholder,g}function D2(o,s,d){var g,w,P,D,N,j,re=0,oe=!1,se=!1,ge=!0;if(typeof o!="function")throw new Pn(u);s=Mn(s)||0,Pt(d)&&(oe=!!d.leading,se="maxWait"in d,P=se?kt(Mn(d.maxWait)||0,s):P,ge="trailing"in d?!!d.trailing:ge);function Ae(Dt){var zn=g,Or=w;return g=w=n,re=Dt,D=o.apply(Or,zn),D}function De(Dt){return re=Dt,N=ps(tt,s),oe?Ae(Dt):D}function qe(Dt){var zn=Dt-j,Or=Dt-re,eS=s-zn;return se?Kt(eS,P-Or):eS}function $e(Dt){var zn=Dt-j,Or=Dt-re;return j===n||zn>=s||zn<0||se&&Or>=P}function tt(){var Dt=Vl();if($e(Dt))return it(Dt);N=ps(tt,qe(Dt))}function it(Dt){return N=n,ge&&g?Ae(Dt):(g=w=n,D)}function Cn(){N!==n&&Zw(N),re=0,g=j=w=N=n}function nn(){return N===n?D:it(Vl())}function wn(){var Dt=Vl(),zn=$e(Dt);if(g=arguments,w=this,j=Dt,zn){if(N===n)return De(j);if(se)return Zw(N),N=ps(tt,s),Ae(j)}return N===n&&(N=ps(tt,s)),D}return wn.cancel=Cn,wn.flush=nn,wn}var cq=et(function(o,s){return Iw(o,1,s)}),fq=et(function(o,s,d){return Iw(o,Mn(s)||0,d)});function dq(o){return Ar(o,de)}function Bl(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new Pn(u);var d=function(){var g=arguments,w=s?s.apply(this,g):g[0],P=d.cache;if(P.has(w))return P.get(w);var D=o.apply(this,g);return d.cache=P.set(w,D)||P,D};return d.cache=new(Bl.Cache||Ir),d}Bl.Cache=Ir;function kl(o){if(typeof o!="function")throw new Pn(u);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function hq(o){return O2(2,o)}var pq=eJ(function(o,s){s=s.length==1&&Ue(s[0])?At(s[0],bn(Oe())):At(Zt(s,1),bn(Oe()));var d=s.length;return et(function(g){for(var w=-1,P=Kt(g.length,d);++w<P;)g[w]=s[w].call(this,g[w]);return vn(o,this,g)})}),jp=et(function(o,s){var d=Yr(s,Jo(jp));return Ar(o,V,n,s,d)}),$2=et(function(o,s){var d=Yr(s,Jo($2));return Ar(o,U,n,s,d)}),gq=_r(function(o,s){return Ar(o,te,n,n,n,s)});function mq(o,s){if(typeof o!="function")throw new Pn(u);return s=s===n?s:Ye(s),et(o,s)}function vq(o,s){if(typeof o!="function")throw new Pn(u);return s=s==null?0:kt(Ye(s),0),et(function(d){var g=d[s],w=ei(d,0,s);return g&&Ur(w,g),vn(o,this,w)})}function bq(o,s,d){var g=!0,w=!0;if(typeof o!="function")throw new Pn(u);return Pt(d)&&(g="leading"in d?!!d.leading:g,w="trailing"in d?!!d.trailing:w),D2(o,s,{leading:g,maxWait:s,trailing:w})}function yq(o){return F2(o,1)}function xq(o,s){return jp(Ep(s),o)}function Cq(){if(!arguments.length)return[];var o=arguments[0];return Ue(o)?o:[o]}function wq(o){return Fn(o,v)}function Sq(o,s){return s=typeof s=="function"?s:n,Fn(o,v,s)}function Iq(o){return Fn(o,p|v)}function Eq(o,s){return s=typeof s=="function"?s:n,Fn(o,p|v,s)}function Aq(o,s){return s==null||Sw(o,s,Gt(s))}function Xn(o,s){return o===s||o!==o&&s!==s}var _q=Rl(hp),Pq=Rl(function(o,s){return o>=s}),Wi=Tw(function(){return arguments}())?Tw:function(o){return Ot(o)&&pt.call(o,"callee")&&!gw.call(o,"callee")},Ue=Z.isArray,Tq=JC?bn(JC):NY;function ln(o){return o!=null&&jl(o.length)&&!Tr(o)}function Lt(o){return Ot(o)&&ln(o)}function Fq(o){return o===!0||o===!1||Ot(o)&&en(o)==Y}var ti=WU||qp,Oq=KC?bn(KC):VY;function Rq(o){return Ot(o)&&o.nodeType===1&&!gs(o)}function Mq(o){if(o==null)return!0;if(ln(o)&&(Ue(o)||typeof o=="string"||typeof o.splice=="function"||ti(o)||Ko(o)||Wi(o)))return!o.length;var s=qt(o);if(s==Q||s==ot)return!o.size;if(hs(o))return!mp(o).length;for(var d in o)if(pt.call(o,d))return!1;return!0}function Lq(o,s){return cs(o,s)}function Dq(o,s,d){d=typeof d=="function"?d:n;var g=d?d(o,s):n;return g===n?cs(o,s,n,d):!!g}function Gp(o){if(!Ot(o))return!1;var s=en(o);return s==ue||s==q||typeof o.message=="string"&&typeof o.name=="string"&&!gs(o)}function $q(o){return typeof o=="number"&&vw(o)}function Tr(o){if(!Pt(o))return!1;var s=en(o);return s==J||s==le||s==z||s==We}function N2(o){return typeof o=="number"&&o==Ye(o)}function jl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Ke}function Pt(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Ot(o){return o!=null&&typeof o=="object"}var V2=qC?bn(qC):kY;function Nq(o,s){return o===s||gp(o,s,Rp(s))}function Vq(o,s,d){return d=typeof d=="function"?d:n,gp(o,s,Rp(s),d)}function Bq(o){return B2(o)&&o!=+o}function kq(o){if(SJ(o))throw new Xe(a);return Fw(o)}function jq(o){return o===null}function Gq(o){return o==null}function B2(o){return typeof o=="number"||Ot(o)&&en(o)==he}function gs(o){if(!Ot(o)||en(o)!=xe)return!1;var s=pl(o);if(s===null)return!0;var d=pt.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&cl.call(d)==VU}var Hp=QC?bn(QC):jY;function Hq(o){return N2(o)&&o>=-Ke&&o<=Ke}var k2=ew?bn(ew):GY;function Gl(o){return typeof o=="string"||!Ue(o)&&Ot(o)&&en(o)==st}function xn(o){return typeof o=="symbol"||Ot(o)&&en(o)==It}var Ko=tw?bn(tw):HY;function Wq(o){return o===n}function Zq(o){return Ot(o)&&qt(o)==Mt}function Xq(o){return Ot(o)&&en(o)==Gn}var zq=Rl(vp),Uq=Rl(function(o,s){return o<=s});function j2(o){if(!o)return[];if(ln(o))return Gl(o)?Wn(o):un(o);if(ns&&o[ns])return AU(o[ns]());var s=qt(o),d=s==Q?ip:s==ot?sl:qo;return d(o)}function Fr(o){if(!o)return o===0?o:0;if(o=Mn(o),o===Ve||o===-Ve){var s=o<0?-1:1;return s*F}return o===o?o:0}function Ye(o){var s=Fr(o),d=s%1;return s===s?d?s-d:s:0}function G2(o){return o?ki(Ye(o),0,M):0}function Mn(o){if(typeof o=="number")return o;if(xn(o))return T;if(Pt(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=Pt(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=sw(o);var d=me.test(o);return d||Ze.test(o)?lU(o.slice(2),d?2:8):be.test(o)?T:+o}function H2(o){return rr(o,cn(o))}function Yq(o){return o?ki(Ye(o),-Ke,Ke):o===0?o:0}function ht(o){return o==null?"":yn(o)}var Jq=Uo(function(o,s){if(hs(s)||ln(s)){rr(s,Gt(s),o);return}for(var d in s)pt.call(s,d)&&ss(o,d,s[d])}),W2=Uo(function(o,s){rr(s,cn(s),o)}),Hl=Uo(function(o,s,d,g){rr(s,cn(s),o,g)}),Kq=Uo(function(o,s,d,g){rr(s,Gt(s),o,g)}),qq=_r(cp);function Qq(o,s){var d=zo(o);return s==null?d:ww(d,s)}var eQ=et(function(o,s){o=mt(o);var d=-1,g=s.length,w=g>2?s[2]:n;for(w&&tn(s[0],s[1],w)&&(g=1);++d<g;)for(var P=s[d],D=cn(P),N=-1,j=D.length;++N<j;){var re=D[N],oe=o[re];(oe===n||Xn(oe,Wo[re])&&!pt.call(o,re))&&(o[re]=P[re])}return o}),tQ=et(function(o){return o.push(n,s2),vn(Z2,n,o)});function nQ(o,s){return rw(o,Oe(s,3),nr)}function rQ(o,s){return rw(o,Oe(s,3),dp)}function iQ(o,s){return o==null?o:fp(o,Oe(s,3),cn)}function oQ(o,s){return o==null?o:_w(o,Oe(s,3),cn)}function aQ(o,s){return o&&nr(o,Oe(s,3))}function sQ(o,s){return o&&dp(o,Oe(s,3))}function uQ(o){return o==null?[]:Il(o,Gt(o))}function lQ(o){return o==null?[]:Il(o,cn(o))}function Wp(o,s,d){var g=o==null?n:ji(o,s);return g===n?d:g}function cQ(o,s){return o!=null&&c2(o,s,MY)}function Zp(o,s){return o!=null&&c2(o,s,LY)}var fQ=n2(function(o,s,d){s!=null&&typeof s.toString!="function"&&(s=fl.call(s)),o[s]=d},zp(fn)),dQ=n2(function(o,s,d){s!=null&&typeof s.toString!="function"&&(s=fl.call(s)),pt.call(o,s)?o[s].push(d):o[s]=[d]},Oe),hQ=et(ls);function Gt(o){return ln(o)?xw(o):mp(o)}function cn(o){return ln(o)?xw(o,!0):WY(o)}function pQ(o,s){var d={};return s=Oe(s,3),nr(o,function(g,w,P){Er(d,s(g,w,P),g)}),d}function gQ(o,s){var d={};return s=Oe(s,3),nr(o,function(g,w,P){Er(d,w,s(g,w,P))}),d}var mQ=Uo(function(o,s,d){El(o,s,d)}),Z2=Uo(function(o,s,d,g){El(o,s,d,g)}),vQ=_r(function(o,s){var d={};if(o==null)return d;var g=!1;s=At(s,function(P){return P=Qr(P,o),g||(g=P.length>1),P}),rr(o,Fp(o),d),g&&(d=Fn(d,p|m|v,fJ));for(var w=s.length;w--;)wp(d,s[w]);return d});function bQ(o,s){return X2(o,kl(Oe(s)))}var yQ=_r(function(o,s){return o==null?{}:XY(o,s)});function X2(o,s){if(o==null)return{};var d=At(Fp(o),function(g){return[g]});return s=Oe(s),Nw(o,d,function(g,w){return s(g,w[0])})}function xQ(o,s,d){s=Qr(s,o);var g=-1,w=s.length;for(w||(w=1,o=n);++g<w;){var P=o==null?n:o[ir(s[g])];P===n&&(g=w,P=d),o=Tr(P)?P.call(o):P}return o}function CQ(o,s,d){return o==null?o:fs(o,s,d)}function wQ(o,s,d,g){return g=typeof g=="function"?g:n,o==null?o:fs(o,s,d,g)}var z2=o2(Gt),U2=o2(cn);function SQ(o,s,d){var g=Ue(o),w=g||ti(o)||Ko(o);if(s=Oe(s,4),d==null){var P=o&&o.constructor;w?d=g?new P:[]:Pt(o)?d=Tr(P)?zo(pl(o)):{}:d={}}return(w?_n:nr)(o,function(D,N,j){return s(d,D,N,j)}),d}function IQ(o,s){return o==null?!0:wp(o,s)}function EQ(o,s,d){return o==null?o:Gw(o,s,Ep(d))}function AQ(o,s,d,g){return g=typeof g=="function"?g:n,o==null?o:Gw(o,s,Ep(d),g)}function qo(o){return o==null?[]:rp(o,Gt(o))}function _Q(o){return o==null?[]:rp(o,cn(o))}function PQ(o,s,d){return d===n&&(d=s,s=n),d!==n&&(d=Mn(d),d=d===d?d:0),s!==n&&(s=Mn(s),s=s===s?s:0),ki(Mn(o),s,d)}function TQ(o,s,d){return s=Fr(s),d===n?(d=s,s=0):d=Fr(d),o=Mn(o),DY(o,s,d)}function FQ(o,s,d){if(d&&typeof d!="boolean"&&tn(o,s,d)&&(s=d=n),d===n&&(typeof s=="boolean"?(d=s,s=n):typeof o=="boolean"&&(d=o,o=n)),o===n&&s===n?(o=0,s=1):(o=Fr(o),s===n?(s=o,o=0):s=Fr(s)),o>s){var g=o;o=s,s=g}if(d||o%1||s%1){var w=bw();return Kt(o+w*(s-o+uU("1e-"+((w+"").length-1))),s)}return yp(o,s)}var OQ=Yo(function(o,s,d){return s=s.toLowerCase(),o+(d?Y2(s):s)});function Y2(o){return Xp(ht(o).toLowerCase())}function J2(o){return o=ht(o),o&&o.replace(gt,CU).replace(qz,"")}function RQ(o,s,d){o=ht(o),s=yn(s);var g=o.length;d=d===n?g:ki(Ye(d),0,g);var w=d;return d-=s.length,d>=0&&o.slice(d,w)==s}function MQ(o){return o=ht(o),o&&Pi.test(o)?o.replace(tr,wU):o}function LQ(o){return o=ht(o),o&&Mi.test(o)?o.replace(Ri,"\\$&"):o}var DQ=Yo(function(o,s,d){return o+(d?"-":"")+s.toLowerCase()}),$Q=Yo(function(o,s,d){return o+(d?" ":"")+s.toLowerCase()}),NQ=Qw("toLowerCase");function VQ(o,s,d){o=ht(o),s=Ye(s);var g=s?Go(o):0;if(!s||g>=s)return o;var w=(s-g)/2;return Ol(bl(w),d)+o+Ol(vl(w),d)}function BQ(o,s,d){o=ht(o),s=Ye(s);var g=s?Go(o):0;return s&&g<s?o+Ol(s-g,d):o}function kQ(o,s,d){o=ht(o),s=Ye(s);var g=s?Go(o):0;return s&&g<s?Ol(s-g,d)+o:o}function jQ(o,s,d){return d||s==null?s=0:s&&(s=+s),UU(ht(o).replace(Li,""),s||0)}function GQ(o,s,d){return(d?tn(o,s,d):s===n)?s=1:s=Ye(s),xp(ht(o),s)}function HQ(){var o=arguments,s=ht(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var WQ=Yo(function(o,s,d){return o+(d?"_":"")+s.toLowerCase()});function ZQ(o,s,d){return d&&typeof d!="number"&&tn(o,s,d)&&(s=d=n),d=d===n?M:d>>>0,d?(o=ht(o),o&&(typeof s=="string"||s!=null&&!Hp(s))&&(s=yn(s),!s&&jo(o))?ei(Wn(o),0,d):o.split(s,d)):[]}var XQ=Yo(function(o,s,d){return o+(d?" ":"")+Xp(s)});function zQ(o,s,d){return o=ht(o),d=d==null?0:ki(Ye(d),0,o.length),s=yn(s),o.slice(d,d+s.length)==s}function UQ(o,s,d){var g=I.templateSettings;d&&tn(o,s,d)&&(s=n),o=ht(o),s=Hl({},s,g,a2);var w=Hl({},s.imports,g.imports,a2),P=Gt(w),D=rp(w,P),N,j,re=0,oe=s.interpolate||jt,se="__p += '",ge=op((s.escape||jt).source+"|"+oe.source+"|"+(oe===Vo?we:jt).source+"|"+(s.evaluate||jt).source+"|$","g"),Ae="//# sourceURL="+(pt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rU+"]")+`
|
|
201
|
+
`;o.replace(ge,function($e,tt,it,Cn,nn,wn){return it||(it=Cn),se+=o.slice(re,wn).replace(Di,SU),tt&&(N=!0,se+=`' +
|
|
202
|
+
__e(`+tt+`) +
|
|
203
|
+
'`),nn&&(j=!0,se+=`';
|
|
204
|
+
`+nn+`;
|
|
205
|
+
__p += '`),it&&(se+=`' +
|
|
206
|
+
((__t = (`+it+`)) == null ? '' : __t) +
|
|
207
|
+
'`),re=wn+$e.length,$e}),se+=`';
|
|
208
|
+
`;var De=pt.call(s,"variable")&&s.variable;if(!De)se=`with (obj) {
|
|
209
|
+
`+se+`
|
|
210
210
|
}
|
|
211
|
-
`;else if(W.test(
|
|
212
|
-
`+(
|
|
213
|
-
`)+"var __t, __p = ''"+(
|
|
211
|
+
`;else if(W.test(De))throw new Xe(l);se=(j?se.replace(Ya,""):se).replace(Cr,"$1").replace(_i,"$1;"),se="function("+(De||"obj")+`) {
|
|
212
|
+
`+(De?"":`obj || (obj = {});
|
|
213
|
+
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
|
|
214
214
|
function print() { __p += __j.call(arguments, '') }
|
|
215
215
|
`:`;
|
|
216
|
-
`)+
|
|
217
|
-
}`;var Je=I2(function(){return lt(A,Ee+"return "+ae).apply(n,L)});if(Je.source=ae,Oh(Je))throw Je;return Je}function EQ(o){return dt(o).toLowerCase()}function AQ(o){return dt(o).toUpperCase()}function _Q(o,s,d){if(o=dt(o),o&&(d||s===n))return MC(o);if(!o||!(s=vn(s)))return o;var g=Gn(o),w=Gn(s),A=LC(g,w),L=$C(g,w)+1;return Kr(g,A,L).join("")}function PQ(o,s,d){if(o=dt(o),o&&(d||s===n))return o.slice(0,NC(o)+1);if(!o||!(s=vn(s)))return o;var g=Gn(o),w=$C(g,Gn(s))+1;return Kr(g,0,w).join("")}function TQ(o,s,d){if(o=dt(o),o&&(d||s===n))return o.replace(Fi,"");if(!o||!(s=vn(s)))return o;var g=Gn(o),w=LC(g,Gn(s));return Kr(g,w).join("")}function OQ(o,s){var d=Oe,g=ze;if(_t(s)){var w="separator"in s?s.separator:w;d="length"in s?Ue(s.length):d,g="omission"in s?vn(s.omission):g}o=dt(o);var A=o.length;if(No(o)){var L=Gn(o);A=L.length}if(d>=A)return o;var D=d-Vo(g);if(D<1)return g;var j=L?Kr(L,0,D).join(""):o.slice(0,D);if(w===n)return j+g;if(L&&(D+=j.length-D),Fh(w)){if(o.slice(D).search(w)){var ne,ie=j;for(w.global||(w=zp(w.source,dt(Ae.exec(w))+"g")),w.lastIndex=0;ne=w.exec(ie);)var ae=ne.index;j=j.slice(0,ae===n?D:ae)}}else if(o.indexOf(vn(w),D)!=D){var ge=j.lastIndexOf(w);ge>-1&&(j=j.slice(0,ge))}return j+g}function FQ(o){return o=dt(o),o&&xr.test(o)?o.replace(Ut,aU):o}var RQ=Zo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),Lh=Ew("toUpperCase");function S2(o,s,d){return o=dt(o),s=d?n:s,s===n?tU(o)?lU(o):Xz(o):o.match(s)||[]}var I2=qe(function(o,s){try{return gn(o,n,s)}catch(d){return Oh(d)?d:new Ge(d)}}),MQ=Er(function(o,s){return En(s,function(d){d=nr(d),Sr(o,d,Ph(o[d],o))}),o});function LQ(o){var s=o==null?0:o.length,d=Fe();return o=s?Et(o,function(g){if(typeof g[1]!="function")throw new An(u);return[d(g[0]),g[1]]}):[],qe(function(g){for(var w=-1;++w<s;){var A=o[w];if(gn(A[0],this,g))return gn(A[1],this,g)}})}function $Q(o){return aY(Pn(o,h))}function $h(o){return function(){return o}}function DQ(o,s){return o==null||o!==o?s:o}var NQ=_w(),VQ=_w(!0);function ln(o){return o}function Dh(o){return rw(typeof o=="function"?o:Pn(o,h))}function BQ(o){return ow(Pn(o,h))}function kQ(o,s){return aw(o,Pn(s,h))}var jQ=qe(function(o,s){return function(d){return is(d,o,s)}}),GQ=qe(function(o,s){return function(d){return is(o,d,s)}});function Nh(o,s,d){var g=jt(s),w=ml(s,g);d==null&&!(_t(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=ml(s,jt(s)));var A=!(_t(d)&&"chain"in d)||!!d.chain,L=_r(o);return En(w,function(D){var j=s[D];o[D]=j,L&&(o.prototype[D]=function(){var ne=this.__chain__;if(A||ne){var ie=o(this.__wrapped__),ae=ie.__actions__=an(this.__actions__);return ae.push({func:j,args:arguments,thisArg:o}),ie.__chain__=ne,ie}return j.apply(o,Zr([this.value()],arguments))})}),o}function HQ(){return Ht._===this&&(Ht._=gU),this}function Vh(){}function WQ(o){return o=Ue(o),qe(function(s){return sw(s,o)})}var ZQ=gh(Et),XQ=gh(PC),zQ=gh(kp);function E2(o){return wh(o)?jp(nr(o)):SY(o)}function UQ(o){return function(s){return o==null?n:Vi(o,s)}}var YQ=Tw(),JQ=Tw(!0);function Bh(){return[]}function kh(){return!1}function KQ(){return{}}function qQ(){return""}function QQ(){return!0}function eee(o,s){if(o=Ue(o),o<1||o>Ye)return[];var d=R,g=Yt(o,R);s=Fe(s),o-=R;for(var w=Wp(g,s);++d<o;)s(d);return w}function tee(o){return Ze(o)?Et(o,nr):bn(o)?[o]:an(Zw(dt(o)))}function nee(o){var s=++pU;return dt(o)+s}var ree=wl(function(o,s){return o+s},0),iee=mh("ceil"),oee=wl(function(o,s){return o/s},1),aee=mh("floor");function see(o){return o&&o.length?gl(o,ln,th):n}function uee(o,s){return o&&o.length?gl(o,Fe(s,2),th):n}function lee(o){return FC(o,ln)}function cee(o,s){return FC(o,Fe(s,2))}function fee(o){return o&&o.length?gl(o,ln,oh):n}function dee(o,s){return o&&o.length?gl(o,Fe(s,2),oh):n}var pee=wl(function(o,s){return o*s},1),hee=mh("round"),gee=wl(function(o,s){return o-s},0);function mee(o){return o&&o.length?Hp(o,ln):0}function vee(o,s){return o&&o.length?Hp(o,Fe(s,2)):0}return I.after=BK,I.ary=n2,I.assign=Aq,I.assignIn=m2,I.assignInWith=$l,I.assignWith=_q,I.at=Pq,I.before=r2,I.bind=Ph,I.bindAll=MQ,I.bindKey=i2,I.castArray=KK,I.chain=Qw,I.chunk=aJ,I.compact=sJ,I.concat=uJ,I.cond=LQ,I.conforms=$Q,I.constant=$h,I.countBy=mK,I.create=Tq,I.curry=o2,I.curryRight=a2,I.debounce=s2,I.defaults=Oq,I.defaultsDeep=Fq,I.defer=kK,I.delay=jK,I.difference=lJ,I.differenceBy=cJ,I.differenceWith=fJ,I.drop=dJ,I.dropRight=pJ,I.dropRightWhile=hJ,I.dropWhile=gJ,I.fill=mJ,I.filter=bK,I.flatMap=CK,I.flatMapDeep=wK,I.flatMapDepth=SK,I.flatten=Yw,I.flattenDeep=vJ,I.flattenDepth=bJ,I.flip=GK,I.flow=NQ,I.flowRight=VQ,I.fromPairs=yJ,I.functions=Vq,I.functionsIn=Bq,I.groupBy=IK,I.initial=CJ,I.intersection=wJ,I.intersectionBy=SJ,I.intersectionWith=IJ,I.invert=jq,I.invertBy=Gq,I.invokeMap=AK,I.iteratee=Dh,I.keyBy=_K,I.keys=jt,I.keysIn=un,I.map=Tl,I.mapKeys=Wq,I.mapValues=Zq,I.matches=BQ,I.matchesProperty=kQ,I.memoize=Fl,I.merge=Xq,I.mergeWith=v2,I.method=jQ,I.methodOf=GQ,I.mixin=Nh,I.negate=Rl,I.nthArg=WQ,I.omit=zq,I.omitBy=Uq,I.once=HK,I.orderBy=PK,I.over=ZQ,I.overArgs=WK,I.overEvery=XQ,I.overSome=zQ,I.partial=Th,I.partialRight=u2,I.partition=TK,I.pick=Yq,I.pickBy=b2,I.property=E2,I.propertyOf=UQ,I.pull=PJ,I.pullAll=Kw,I.pullAllBy=TJ,I.pullAllWith=OJ,I.pullAt=FJ,I.range=YQ,I.rangeRight=JQ,I.rearg=ZK,I.reject=RK,I.remove=RJ,I.rest=XK,I.reverse=Ah,I.sampleSize=LK,I.set=Kq,I.setWith=qq,I.shuffle=$K,I.slice=MJ,I.sortBy=VK,I.sortedUniq=kJ,I.sortedUniqBy=jJ,I.split=CQ,I.spread=zK,I.tail=GJ,I.take=HJ,I.takeRight=WJ,I.takeRightWhile=ZJ,I.takeWhile=XJ,I.tap=sK,I.throttle=UK,I.thru=Pl,I.toArray=p2,I.toPairs=y2,I.toPairsIn=x2,I.toPath=tee,I.toPlainObject=g2,I.transform=Qq,I.unary=YK,I.union=zJ,I.unionBy=UJ,I.unionWith=YJ,I.uniq=JJ,I.uniqBy=KJ,I.uniqWith=qJ,I.unset=eQ,I.unzip=_h,I.unzipWith=qw,I.update=tQ,I.updateWith=nQ,I.values=Uo,I.valuesIn=rQ,I.without=QJ,I.words=S2,I.wrap=JK,I.xor=eK,I.xorBy=tK,I.xorWith=nK,I.zip=rK,I.zipObject=iK,I.zipObjectDeep=oK,I.zipWith=aK,I.entries=y2,I.entriesIn=x2,I.extend=m2,I.extendWith=$l,Nh(I,I),I.add=ree,I.attempt=I2,I.camelCase=sQ,I.capitalize=C2,I.ceil=iee,I.clamp=iQ,I.clone=qK,I.cloneDeep=eq,I.cloneDeepWith=tq,I.cloneWith=QK,I.conformsTo=nq,I.deburr=w2,I.defaultTo=DQ,I.divide=oee,I.endsWith=uQ,I.eq=Wn,I.escape=lQ,I.escapeRegExp=cQ,I.every=vK,I.find=yK,I.findIndex=zw,I.findKey=Rq,I.findLast=xK,I.findLastIndex=Uw,I.findLastKey=Mq,I.floor=aee,I.forEach=e2,I.forEachRight=t2,I.forIn=Lq,I.forInRight=$q,I.forOwn=Dq,I.forOwnRight=Nq,I.get=Rh,I.gt=rq,I.gte=iq,I.has=kq,I.hasIn=Mh,I.head=Jw,I.identity=ln,I.includes=EK,I.indexOf=xJ,I.inRange=oQ,I.invoke=Hq,I.isArguments=ji,I.isArray=Ze,I.isArrayBuffer=oq,I.isArrayLike=sn,I.isArrayLikeObject=Mt,I.isBoolean=aq,I.isBuffer=qr,I.isDate=sq,I.isElement=uq,I.isEmpty=lq,I.isEqual=cq,I.isEqualWith=fq,I.isError=Oh,I.isFinite=dq,I.isFunction=_r,I.isInteger=l2,I.isLength=Ml,I.isMap=c2,I.isMatch=pq,I.isMatchWith=hq,I.isNaN=gq,I.isNative=mq,I.isNil=bq,I.isNull=vq,I.isNumber=f2,I.isObject=_t,I.isObjectLike=Ot,I.isPlainObject=cs,I.isRegExp=Fh,I.isSafeInteger=yq,I.isSet=d2,I.isString=Ll,I.isSymbol=bn,I.isTypedArray=zo,I.isUndefined=xq,I.isWeakMap=Cq,I.isWeakSet=wq,I.join=EJ,I.kebabCase=fQ,I.last=On,I.lastIndexOf=AJ,I.lowerCase=dQ,I.lowerFirst=pQ,I.lt=Sq,I.lte=Iq,I.max=see,I.maxBy=uee,I.mean=lee,I.meanBy=cee,I.min=fee,I.minBy=dee,I.stubArray=Bh,I.stubFalse=kh,I.stubObject=KQ,I.stubString=qQ,I.stubTrue=QQ,I.multiply=pee,I.nth=_J,I.noConflict=HQ,I.noop=Vh,I.now=Ol,I.pad=hQ,I.padEnd=gQ,I.padStart=mQ,I.parseInt=vQ,I.random=aQ,I.reduce=OK,I.reduceRight=FK,I.repeat=bQ,I.replace=yQ,I.result=Jq,I.round=hee,I.runInContext=k,I.sample=MK,I.size=DK,I.snakeCase=xQ,I.some=NK,I.sortedIndex=LJ,I.sortedIndexBy=$J,I.sortedIndexOf=DJ,I.sortedLastIndex=NJ,I.sortedLastIndexBy=VJ,I.sortedLastIndexOf=BJ,I.startCase=wQ,I.startsWith=SQ,I.subtract=gee,I.sum=mee,I.sumBy=vee,I.template=IQ,I.times=eee,I.toFinite=Pr,I.toInteger=Ue,I.toLength=h2,I.toLower=EQ,I.toNumber=Fn,I.toSafeInteger=Eq,I.toString=dt,I.toUpper=AQ,I.trim=_Q,I.trimEnd=PQ,I.trimStart=TQ,I.truncate=OQ,I.unescape=FQ,I.uniqueId=nee,I.upperCase=RQ,I.upperFirst=Lh,I.each=e2,I.eachRight=t2,I.first=Jw,Nh(I,function(){var o={};return er(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),En(["drop","take"],function(o,s){tt.prototype[o]=function(d){d=d===n?1:Bt(Ue(d),0);var g=this.__filtered__&&!s?new tt(this):this.clone();return g.__filtered__?g.__takeCount__=Yt(d,g.__takeCount__):g.__views__.push({size:Yt(d,R),type:o+(g.__dir__<0?"Right":"")}),g},tt.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),En(["filter","map","takeWhile"],function(o,s){var d=s+1,g=d==Ce||d==_e;tt.prototype[o]=function(w){var A=this.clone();return A.__iteratees__.push({iteratee:Fe(w,3),type:d}),A.__filtered__=A.__filtered__||g,A}}),En(["head","last"],function(o,s){var d="take"+(s?"Right":"");tt.prototype[o]=function(){return this[d](1).value()[0]}}),En(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");tt.prototype[o]=function(){return this.__filtered__?new tt(this):this[d](1)}}),tt.prototype.compact=function(){return this.filter(ln)},tt.prototype.find=function(o){return this.filter(o).head()},tt.prototype.findLast=function(o){return this.reverse().find(o)},tt.prototype.invokeMap=qe(function(o,s){return typeof o=="function"?new tt(this):this.map(function(d){return is(d,o,s)})}),tt.prototype.reject=function(o){return this.filter(Rl(Fe(o)))},tt.prototype.slice=function(o,s){o=Ue(o);var d=this;return d.__filtered__&&(o>0||s<0)?new tt(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ue(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},tt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},tt.prototype.toArray=function(){return this.take(R)},er(tt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=I[g?"take"+(s=="last"?"Right":""):s],A=g||/^find/.test(s);w&&(I.prototype[s]=function(){var L=this.__wrapped__,D=g?[1]:arguments,j=L instanceof tt,ne=D[0],ie=j||Ze(L),ae=function(Qe){var rt=w.apply(I,Zr([Qe],D));return g&&ge?rt[0]:rt};ie&&d&&typeof ne=="function"&&ne.length!=1&&(j=ie=!1);var ge=this.__chain__,Ee=!!this.__actions__.length,Me=A&&!ge,Je=j&&!Ee;if(!A&&ie){L=Je?L:new tt(this);var Le=o.apply(L,D);return Le.__actions__.push({func:Pl,args:[ae],thisArg:n}),new _n(Le,ge)}return Me&&Je?o.apply(this,D):(Le=this.thru(ae),Me?g?Le.value()[0]:Le.value():Le)})}),En(["pop","push","shift","sort","splice","unshift"],function(o){var s=el[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var A=this.value();return s.apply(Ze(A)?A:[],w)}return this[d](function(L){return s.apply(Ze(L)?L:[],w)})}}),er(tt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Go,g)||(Go[g]=[]),Go[g].push({name:s,func:d})}}),Go[Cl(n,P).name]=[{name:"wrapper",func:n}],tt.prototype.clone=FU,tt.prototype.reverse=RU,tt.prototype.value=MU,I.prototype.at=uK,I.prototype.chain=lK,I.prototype.commit=cK,I.prototype.next=fK,I.prototype.plant=pK,I.prototype.reverse=hK,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=gK,I.prototype.first=I.prototype.head,Ka&&(I.prototype[Ka]=dK),I},Bo=cU();Mi?((Mi.exports=Bo)._=Bo,Dp._=Bo):Ht._=Bo}).call(rr)}(Yu,Yu.exports);var nz=Yu.exports;function rz({onClick:e}){return F.jsx(pd.Button,{onClick:e,children:F.jsx(L2,{className:"w-6 h-6"})})}function iz({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:p,clickToAccessText:h,clickToChangeTerminal:m,nightThemeText:v,logoutText:S,isOpen:C,terminalName:E}){return F.jsx($s,{children:C&&F.jsx(Ui.div,{transition:{type:"spring"},initial:{opacity:0,y:"-10%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"-10%"},className:et("w-[415px]","bg-gradient-to-r from-brand to-brand-secondary","rounded-lg rounded-tr-none pt-8","absolute top-16 right-4"),onClick:P=>P.stopPropagation(),children:F.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:F.jsx("div",{className:"w-full px-3",children:F.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[F.jsx(Yh,{size:"md"}),F.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),F.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),F.jsx(sz,{children:F.jsx(U2,{className:"w-4 h-4"})}),F.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[F.jsxs(Qx,{onClick:()=>u("pt-br"),children:[F.jsx(Y2,{})," Navegar em português"]}),F.jsxs(Qx,{onClick:()=>u("en-us"),children:[F.jsx(J2,{})," Browse in English"]})]}),t===2&&F.jsx("div",{className:"mb-4",children:F.jsx(Yi,{variant:"primary",onClick:l,children:F.jsxs("div",{className:"p-5",children:[F.jsxs("p",{className:"text-[12px]",children:["Terminal:"," ",F.jsx("b",{children:E??""})]}),F.jsx("p",{className:"text-[11px]",children:m})]})})}),F.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[F.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[p," ",F.jsxs("span",{className:"text-brand-dark-gray",children:["(",h,")"]})]}),F.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:nz.sortBy(e.portais,["descricao"]).map((P,M)=>{const $=f===P.nome;return F.jsxs($s,{mode:"wait",children:["isOpen && (",F.jsxs(Ui.a,{href:P.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:M*(50/1e3)},className:"text-center children:mx-auto",children:[F.jsx("div",{className:et("flex items-center justify-center transition rounded-md w-11 h-9 shadow-action-button hover:shadow-action-button-hover",{"bg-brand-secondary text-white shadow-action-button-hover":$,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!$}),children:n[P.descricao]||F.jsx("span",{children:"?"})}),F.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:P.nome})]},"portal-item-"+P.descricao),")"]},M)})})]}),F.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[F.jsxs("div",{className:"flex items-center gap-0.5",children:[F.jsx(oz,{isDarkMode:r,setIsDarkMode:i,setTheme:a}),F.jsx("span",{className:et({"text-brand-secondary":r,"text-brand-secondary-text":!r},"text-xs"),children:v})]}),F.jsxs("div",{onClick:c,className:"flex items-center gap-1 cursor-pointer",children:[F.jsx(D2,{}),F.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:S})]})]})]})})})},"user-menu-container")})}function oz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),F.jsxs($x,{onChange:t,checked:e,className:et({"bg-brand-dark-gray-dark text-brand-secondary":e,"bg-brand-gray":!e,peer:e},"h-[22px] w-[44px]","shrink-0 cursor-pointer","relative","rounded-full text-white","border-2 border-transparent","transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"),children:[F.jsx("span",{className:"sr-only",children:"Dark theme?"}),F.jsx($s,{children:F.jsx("div",{className:"flex items-center w-full",children:e?F.jsx(N2,{className:"w-4 translate-x-5"}):F.jsx(az,{})})})]})}function az(){return F.jsx(Ui.svg,{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/motion.svg",initial:{opacity:0,translateX:"100%"},animate:{opacity:1,translateX:"5%"},exit:{opacity:0,translateX:"100%"},children:F.jsx("path",{d:"m 0 9 a 9 9 0 1 1 18 0 A 9 9 0 1 1 0 9",fill:"currentColor"})},"dark-theme-off")}function sz({children:e}){return F.jsx("button",{className:"flex items-center justify-center bg-brand-gray text-brand-text w-[25px] h-[25px] rounded-full my-px cursor-default",children:e})}function Qx({children:e,onClick:t}){return F.jsx("button",{onClick:t,className:et("bg-brand-light-gray dark:bg-brand-dark-gray-dark hover:bg-brand dark:hover:bg-brand","text-brand-secondary-text dark:text-white hover:text-brand-light-gray","rounded-lg px-2 py-1.5 text-xs transition","flex gap-2"),children:e})}function uz({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:p,clickToAccessText:h,clickToChangeTerminal:m,nightThemeText:v,logoutText:S,isOpen:C,setOpen:E,terminalName:P}){function M(){E(B=>!B)}function $(){E(!1)}return F.jsxs(F.Fragment,{children:[F.jsx(rz,{onClick:M}),F.jsx(Ds,{isOpen:C,close:$,children:F.jsx(iz,{userTypeId:t,user:e,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:p,clickToAccessText:h,clickToChangeTerminal:m,nightThemeText:v,logoutText:S,isOpen:C,terminalName:P})})]})}function eC({title:e,data:t,disabledFilter:n}){const[r,i]=b.useState([]),[a,u]=b.useState(""),[l,c]=b.useState([]);b.useEffect(()=>{function E(){let P=t;a&&(P=P.filter(M=>a===""?!0:Object.values(M).some($=>$==null?void 0:$.toString().toUpperCase().includes(a.toUpperCase())))),c(P)}E()},[t,a]);function f(E){const{checked:P}=E.target;if(!P){i([]);return}let M=l;n&&(M=M.filter($=>!n($))),i(M)}function p(E){i(P=>P.findIndex($=>$.id===E)!==-1?P.filter($=>$.id!==E):P)}function h(E){i(P=>P.findIndex($=>$.id===E.id)===-1?[...P,E]:P)}function m(E){u(E.target.value)}const v=l?l.filter(E=>n?!n(E):!0):[],C=r.length===v.length&&r.length>0&&v.length>0;return{title:e,query:a,data:t||[],areAllSelected:C,selected:r,dataBox:l,select:h,unselect:p,setFilter:m,selectAll:f}}function lz(e,t){return e.map(n=>n[t])}function tC({title:e,placeHolderSearchField:t,onChangeSearchField:n,headers:r,listOrder:i,labels:a,onChangeCheckBoxAll:u,checkedCheckBoxAll:l,list:c,isLoading:f}){return F.jsxs("div",{className:"flex flex-col justify-between flex-1 gap-2 p-4 border shadow-md rounded-xl border-stone-200",children:[F.jsx("h1",{className:"text-lg font-bold text-primary-500",children:e}),F.jsxs("div",{className:"space-y-2",children:[F.jsxs("div",{className:"flex items-center gap-2 px-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b-2 focus-within:border-primary-500 focus-within:ring-primary-500 dark:bg-gray-900",children:[F.jsx(zh,{className:"w-5 h-5 text-gray-500"}),F.jsx("input",{type:"text",placeholder:t,className:"block w-full text-gray-500 bg-transparent border-none appearance-none focus:border-primary-500 focus:ring-0",onChange:n})]}),F.jsx("div",{id:"table-fix-head",className:"flex-1 overflow-y-auto h-80",children:F.jsxs("table",{className:"w-full border-collapse rounded-2xl",children:[F.jsx("thead",{className:"text-left border",children:F.jsxs("tr",{className:"bg-gray-100 sticky top-0 p-3 text-sm font-bold text-primary-500 dark:bg-gray-900",children:[r.map(({header:p,acessor:h})=>F.jsx("th",{children:F.jsx("div",{className:"flex items-center gap-2 p-2",children:p})},`table-header-${i}-list-${h}`)),F.jsx("th",{className:"flex items-center justify-center w-full h-10",children:F.jsx("input",{className:"w-5 h-5 rounded-md cursor-pointer border-primary-500 border-1 text-primary-500 focus:ring-0",type:"checkbox",name:`checkAllRowsBox${i}`,id:`checkAllRowsBox${i}`,onChange:u,checked:l})})]})}),F.jsxs("tbody",{children:[f&&F.jsx("tr",{children:F.jsx("td",{colSpan:r.length+1,rowSpan:1,children:F.jsx("div",{className:"py-2",children:F.jsx(op,{size:36,children:F.jsx("p",{className:"text-xs",children:a.processing})})})})}),!f&&(c==null?void 0:c.data.length)===0&&F.jsx("tr",{children:F.jsx("td",{className:"w-full h-10 p-3",colSpan:r.length+1,rowSpan:1,children:F.jsx("p",{className:"text-sm text-center text-gray-500",children:a.noRecordFound})})}),!f&&c.dataBox.filter(p=>c.query===""?!0:Object.values(p).some(h=>h==null?void 0:h.toString().toUpperCase().includes(c.query.toUpperCase()))).map(p=>{const h=lz(c.selected,"id"),m=h.includes(p.id),v=()=>{if(m){c.unselect(p.id);return}c.select(p)};return F.jsxs("tr",{className:`${p!=null&&p.isDisabled?"bg-stone-200 border-stone-300 cursor-not-allowed":"border-stone-200"} border`,children:[r.map(({acessor:S})=>F.jsxs("td",{className:"h-10 p-3",children:[F.jsx("label",{htmlFor:p.id}),F.jsx("p",{className:`text-sm text-gray-500 ${(p==null?void 0:p.isDisabled)&&"bg-stone-200"}`,children:p[S]})]},`table-tbody-${i}-list-${S}`)),F.jsx("td",{className:"flex items-center justify-center w-full h-10",children:F.jsx("input",{className:"w-5 h-5 rounded-md disabled:border-stone-400 disabled:cursor-not-allowed disabled:bg-stone-300 border-primary-500 border-1 text-primary-500 focus:ring-0",disabled:p==null?void 0:p.isDisabled,type:"checkbox",name:p.id,id:p.id,onChange:v,checked:h.includes(p.id)})})]},`td-${i}-${p.id}`)})]})]})})]}),F.jsx("div",{children:F.jsxs("div",{className:"flex flex-col w-full",children:[F.jsxs("p",{className:"text-sm",children:[F.jsxs("span",{className:"font-bold text-primary-500",children:[a.selected,": "]}),F.jsx("span",{className:"dark:text-white",children:c.selected.length})]}),F.jsxs("p",{className:"text-sm",children:[F.jsxs("span",{className:"font-bold text-primary-500",children:[a.all,": "]}),F.jsx("span",{className:"dark:text-white",children:c.dataBox.length})]})]})})]})}function cz({headers:e,titleOne:t,titleTwo:n,dataOne:r,dataTwo:i,isLoadingOne:a,isLoadingTwo:u,labels:l,placeHolderSearchField:c,onAssociation:f,onDissociation:p}){const h=eC({title:t,data:r}),m=eC({title:n,data:i});function v(){f(h.selected),h.selected.forEach(C=>{h.unselect(C.id)})}function S(){p(m.selected),m.selected.forEach(C=>{m.unselect(C.id)})}return F.jsxs("div",{className:"flex gap-7",children:[F.jsx(tC,{title:t,placeHolderSearchField:c,onChangeSearchField:h.setFilter,headers:e,labels:l,checkedCheckBoxAll:h.areAllSelected,onChangeCheckBoxAll:h.selectAll,isLoading:a,list:h,listOrder:"first"},1),F.jsxs("div",{className:"flex flex-col items-center justify-center space-y-1 w-9",children:[F.jsx(Yi,{type:"button",variant:"primary",onClick:v,disabled:h.selected.length===0,children:F.jsx(Xh,{className:"w-6 "})}),F.jsx(Yi,{type:"button",variant:"primary",onClick:S,disabled:m.selected.length===0,children:F.jsx(Zh,{className:"w-6"})})]}),F.jsx(tC,{title:n,placeHolderSearchField:c,onChangeSearchField:m.setFilter,headers:e,labels:l,checkedCheckBoxAll:m.areAllSelected,onChangeCheckBoxAll:m.selectAll,isLoading:u,list:m,listOrder:"second"},2)]})}Xe.Avatar=Yh,Xe.Backdrop=Ds,Xe.Button=Yi,Xe.Card=lA,Xe.Checkbox=cA,Xe.ColorPicker=_1,Xe.Dialog=ok,Xe.DualListBox=cz,Xe.ErrorMessage=od,Xe.Header=ak,Xe.HelperMessage=ad,Xe.Input=pk,Xe.Label=dd,Xe.Navbar=pd,Xe.Radio=hk,Xe.Select=TW,Xe.SideMenu=CZ,Xe.Spinner=op,Xe.Switch=pX,Xe.TablePagination=JX,Xe.Tooltip=KX,Xe.UploadFile=tz,Xe.UserMenu=uz,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});
|
|
216
|
+
`)+se+`return __p
|
|
217
|
+
}`;var qe=q2(function(){return ct(P,Ae+"return "+se).apply(n,D)});if(qe.source=se,Gp(qe))throw qe;return qe}function YQ(o){return ht(o).toLowerCase()}function JQ(o){return ht(o).toUpperCase()}function KQ(o,s,d){if(o=ht(o),o&&(d||s===n))return sw(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),P=uw(g,w),D=lw(g,w)+1;return ei(g,P,D).join("")}function qQ(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,fw(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=lw(g,Wn(s))+1;return ei(g,0,w).join("")}function QQ(o,s,d){if(o=ht(o),o&&(d||s===n))return o.replace(Li,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=uw(g,Wn(s));return ei(g,w).join("")}function eee(o,s){var d=Pe,g=ke;if(Pt(s)){var w="separator"in s?s.separator:w;d="length"in s?Ye(s.length):d,g="omission"in s?yn(s.omission):g}o=ht(o);var P=o.length;if(jo(o)){var D=Wn(o);P=D.length}if(d>=P)return o;var N=d-Go(g);if(N<1)return g;var j=D?ei(D,0,N).join(""):o.slice(0,N);if(w===n)return j+g;if(D&&(N+=j.length-N),Hp(w)){if(o.slice(N).search(w)){var re,oe=j;for(w.global||(w=op(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;re=w.exec(oe);)var se=re.index;j=j.slice(0,se===n?N:se)}}else if(o.indexOf(yn(w),N)!=N){var ge=j.lastIndexOf(w);ge>-1&&(j=j.slice(0,ge))}return j+g}function tee(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,FU):o}var nee=Yo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),Xp=Qw("toUpperCase");function K2(o,s,d){return o=ht(o),s=d?n:s,s===n?EU(o)?MU(o):mU(o):o.match(s)||[]}var q2=et(function(o,s){try{return vn(o,n,s)}catch(d){return Gp(d)?d:new Xe(d)}}),ree=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,kp(o[d],o))}),o});function iee(o){var s=o==null?0:o.length,d=Oe();return o=s?At(o,function(g){if(typeof g[1]!="function")throw new Pn(u);return[d(g[0]),g[1]]}):[],et(function(g){for(var w=-1;++w<s;){var P=o[w];if(vn(P[0],this,g))return vn(P[1],this,g)}})}function oee(o){return FY(Fn(o,p))}function zp(o){return function(){return o}}function aee(o,s){return o==null||o!==o?s:o}var see=t2(),uee=t2(!0);function fn(o){return o}function Up(o){return Ow(typeof o=="function"?o:Fn(o,p))}function lee(o){return Mw(Fn(o,p))}function cee(o,s){return Lw(o,Fn(s,p))}var fee=et(function(o,s){return function(d){return ls(d,o,s)}}),dee=et(function(o,s){return function(d){return ls(o,d,s)}});function Yp(o,s,d){var g=Gt(s),w=Il(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=Il(s,Gt(s)));var P=!(Pt(d)&&"chain"in d)||!!d.chain,D=Tr(o);return _n(w,function(N){var j=s[N];o[N]=j,D&&(o.prototype[N]=function(){var re=this.__chain__;if(P||re){var oe=o(this.__wrapped__),se=oe.__actions__=un(this.__actions__);return se.push({func:j,args:arguments,thisArg:o}),oe.__chain__=re,oe}return j.apply(o,Ur([this.value()],arguments))})}),o}function hee(){return Wt._===this&&(Wt._=BU),this}function Jp(){}function pee(o){return o=Ye(o),et(function(s){return Dw(s,o)})}var gee=_p(At),mee=_p(nw),vee=_p(qh);function Q2(o){return Lp(o)?Qh(ir(o)):zY(o)}function bee(o){return function(s){return o==null?n:ji(o,s)}}var yee=r2(),xee=r2(!0);function Kp(){return[]}function qp(){return!1}function Cee(){return{}}function wee(){return""}function See(){return!0}function Iee(o,s){if(o=Ye(o),o<1||o>Ke)return[];var d=M,g=Kt(o,M);s=Oe(s),o-=M;for(var w=np(g,s);++d<o;)s(d);return w}function Eee(o){return Ue(o)?At(o,ir):xn(o)?[o]:un(y2(ht(o)))}function Aee(o){var s=++NU;return ht(o)+s}var _ee=Fl(function(o,s){return o+s},0),Pee=Pp("ceil"),Tee=Fl(function(o,s){return o/s},1),Fee=Pp("floor");function Oee(o){return o&&o.length?Sl(o,fn,hp):n}function Ree(o,s){return o&&o.length?Sl(o,Oe(s,2),hp):n}function Mee(o){return ow(o,fn)}function Lee(o,s){return ow(o,Oe(s,2))}function Dee(o){return o&&o.length?Sl(o,fn,vp):n}function $ee(o,s){return o&&o.length?Sl(o,Oe(s,2),vp):n}var Nee=Fl(function(o,s){return o*s},1),Vee=Pp("round"),Bee=Fl(function(o,s){return o-s},0);function kee(o){return o&&o.length?tp(o,fn):0}function jee(o,s){return o&&o.length?tp(o,Oe(s,2)):0}return I.after=lq,I.ary=F2,I.assign=Jq,I.assignIn=W2,I.assignInWith=Hl,I.assignWith=Kq,I.at=qq,I.before=O2,I.bind=kp,I.bindAll=ree,I.bindKey=R2,I.castArray=Cq,I.chain=_2,I.chunk=FJ,I.compact=OJ,I.concat=RJ,I.cond=iee,I.conforms=oee,I.constant=zp,I.countBy=kK,I.create=Qq,I.curry=M2,I.curryRight=L2,I.debounce=D2,I.defaults=eQ,I.defaultsDeep=tQ,I.defer=cq,I.delay=fq,I.difference=MJ,I.differenceBy=LJ,I.differenceWith=DJ,I.drop=$J,I.dropRight=NJ,I.dropRightWhile=VJ,I.dropWhile=BJ,I.fill=kJ,I.filter=GK,I.flatMap=ZK,I.flatMapDeep=XK,I.flatMapDepth=zK,I.flatten=S2,I.flattenDeep=jJ,I.flattenDepth=GJ,I.flip=dq,I.flow=see,I.flowRight=uee,I.fromPairs=HJ,I.functions=uQ,I.functionsIn=lQ,I.groupBy=UK,I.initial=ZJ,I.intersection=XJ,I.intersectionBy=zJ,I.intersectionWith=UJ,I.invert=fQ,I.invertBy=dQ,I.invokeMap=JK,I.iteratee=Up,I.keyBy=KK,I.keys=Gt,I.keysIn=cn,I.map=Nl,I.mapKeys=pQ,I.mapValues=gQ,I.matches=lee,I.matchesProperty=cee,I.memoize=Bl,I.merge=mQ,I.mergeWith=Z2,I.method=fee,I.methodOf=dee,I.mixin=Yp,I.negate=kl,I.nthArg=pee,I.omit=vQ,I.omitBy=bQ,I.once=hq,I.orderBy=qK,I.over=gee,I.overArgs=pq,I.overEvery=mee,I.overSome=vee,I.partial=jp,I.partialRight=$2,I.partition=QK,I.pick=yQ,I.pickBy=X2,I.property=Q2,I.propertyOf=bee,I.pull=qJ,I.pullAll=E2,I.pullAllBy=QJ,I.pullAllWith=eK,I.pullAt=tK,I.range=yee,I.rangeRight=xee,I.rearg=gq,I.reject=nq,I.remove=nK,I.rest=mq,I.reverse=Vp,I.sampleSize=iq,I.set=CQ,I.setWith=wQ,I.shuffle=oq,I.slice=rK,I.sortBy=uq,I.sortedUniq=cK,I.sortedUniqBy=fK,I.split=ZQ,I.spread=vq,I.tail=dK,I.take=hK,I.takeRight=pK,I.takeRightWhile=gK,I.takeWhile=mK,I.tap=OK,I.throttle=bq,I.thru=$l,I.toArray=j2,I.toPairs=z2,I.toPairsIn=U2,I.toPath=Eee,I.toPlainObject=H2,I.transform=SQ,I.unary=yq,I.union=vK,I.unionBy=bK,I.unionWith=yK,I.uniq=xK,I.uniqBy=CK,I.uniqWith=wK,I.unset=IQ,I.unzip=Bp,I.unzipWith=A2,I.update=EQ,I.updateWith=AQ,I.values=qo,I.valuesIn=_Q,I.without=SK,I.words=K2,I.wrap=xq,I.xor=IK,I.xorBy=EK,I.xorWith=AK,I.zip=_K,I.zipObject=PK,I.zipObjectDeep=TK,I.zipWith=FK,I.entries=z2,I.entriesIn=U2,I.extend=W2,I.extendWith=Hl,Yp(I,I),I.add=_ee,I.attempt=q2,I.camelCase=OQ,I.capitalize=Y2,I.ceil=Pee,I.clamp=PQ,I.clone=wq,I.cloneDeep=Iq,I.cloneDeepWith=Eq,I.cloneWith=Sq,I.conformsTo=Aq,I.deburr=J2,I.defaultTo=aee,I.divide=Tee,I.endsWith=RQ,I.eq=Xn,I.escape=MQ,I.escapeRegExp=LQ,I.every=jK,I.find=HK,I.findIndex=C2,I.findKey=nQ,I.findLast=WK,I.findLastIndex=w2,I.findLastKey=rQ,I.floor=Fee,I.forEach=P2,I.forEachRight=T2,I.forIn=iQ,I.forInRight=oQ,I.forOwn=aQ,I.forOwnRight=sQ,I.get=Wp,I.gt=_q,I.gte=Pq,I.has=cQ,I.hasIn=Zp,I.head=I2,I.identity=fn,I.includes=YK,I.indexOf=WJ,I.inRange=TQ,I.invoke=hQ,I.isArguments=Wi,I.isArray=Ue,I.isArrayBuffer=Tq,I.isArrayLike=ln,I.isArrayLikeObject=Lt,I.isBoolean=Fq,I.isBuffer=ti,I.isDate=Oq,I.isElement=Rq,I.isEmpty=Mq,I.isEqual=Lq,I.isEqualWith=Dq,I.isError=Gp,I.isFinite=$q,I.isFunction=Tr,I.isInteger=N2,I.isLength=jl,I.isMap=V2,I.isMatch=Nq,I.isMatchWith=Vq,I.isNaN=Bq,I.isNative=kq,I.isNil=Gq,I.isNull=jq,I.isNumber=B2,I.isObject=Pt,I.isObjectLike=Ot,I.isPlainObject=gs,I.isRegExp=Hp,I.isSafeInteger=Hq,I.isSet=k2,I.isString=Gl,I.isSymbol=xn,I.isTypedArray=Ko,I.isUndefined=Wq,I.isWeakMap=Zq,I.isWeakSet=Xq,I.join=YJ,I.kebabCase=DQ,I.last=Rn,I.lastIndexOf=JJ,I.lowerCase=$Q,I.lowerFirst=NQ,I.lt=zq,I.lte=Uq,I.max=Oee,I.maxBy=Ree,I.mean=Mee,I.meanBy=Lee,I.min=Dee,I.minBy=$ee,I.stubArray=Kp,I.stubFalse=qp,I.stubObject=Cee,I.stubString=wee,I.stubTrue=See,I.multiply=Nee,I.nth=KJ,I.noConflict=hee,I.noop=Jp,I.now=Vl,I.pad=VQ,I.padEnd=BQ,I.padStart=kQ,I.parseInt=jQ,I.random=FQ,I.reduce=eq,I.reduceRight=tq,I.repeat=GQ,I.replace=HQ,I.result=xQ,I.round=Vee,I.runInContext=k,I.sample=rq,I.size=aq,I.snakeCase=WQ,I.some=sq,I.sortedIndex=iK,I.sortedIndexBy=oK,I.sortedIndexOf=aK,I.sortedLastIndex=sK,I.sortedLastIndexBy=uK,I.sortedLastIndexOf=lK,I.startCase=XQ,I.startsWith=zQ,I.subtract=Bee,I.sum=kee,I.sumBy=jee,I.template=UQ,I.times=Iee,I.toFinite=Fr,I.toInteger=Ye,I.toLength=G2,I.toLower=YQ,I.toNumber=Mn,I.toSafeInteger=Yq,I.toString=ht,I.toUpper=JQ,I.trim=KQ,I.trimEnd=qQ,I.trimStart=QQ,I.truncate=eee,I.unescape=tee,I.uniqueId=Aee,I.upperCase=nee,I.upperFirst=Xp,I.each=P2,I.eachRight=T2,I.first=I2,Yp(I,function(){var o={};return nr(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:kt(Ye(d),0);var g=this.__filtered__&&!s?new nt(this):this.clone();return g.__filtered__?g.__takeCount__=Kt(d,g.__takeCount__):g.__views__.push({size:Kt(d,M),type:o+(g.__dir__<0?"Right":"")}),g},nt.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),_n(["filter","map","takeWhile"],function(o,s){var d=s+1,g=d==ve||d==Ee;nt.prototype[o]=function(w){var P=this.clone();return P.__iteratees__.push({iteratee:Oe(w,3),type:d}),P.__filtered__=P.__filtered__||g,P}}),_n(["head","last"],function(o,s){var d="take"+(s?"Right":"");nt.prototype[o]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[d](1)}}),nt.prototype.compact=function(){return this.filter(fn)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=et(function(o,s){return typeof o=="function"?new nt(this):this.map(function(d){return ls(d,o,s)})}),nt.prototype.reject=function(o){return this.filter(kl(Oe(o)))},nt.prototype.slice=function(o,s){o=Ye(o);var d=this;return d.__filtered__&&(o>0||s<0)?new nt(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ye(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(M)},nr(nt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=I[g?"take"+(s=="last"?"Right":""):s],P=g||/^find/.test(s);w&&(I.prototype[s]=function(){var D=this.__wrapped__,N=g?[1]:arguments,j=D instanceof nt,re=N[0],oe=j||Ue(D),se=function(tt){var it=w.apply(I,Ur([tt],N));return g&&ge?it[0]:it};oe&&d&&typeof re=="function"&&re.length!=1&&(j=oe=!1);var ge=this.__chain__,Ae=!!this.__actions__.length,De=P&&!ge,qe=j&&!Ae;if(!P&&oe){D=qe?D:new nt(this);var $e=o.apply(D,N);return $e.__actions__.push({func:$l,args:[se],thisArg:n}),new Tn($e,ge)}return De&&qe?o.apply(this,N):($e=this.thru(se),De?g?$e.value()[0]:$e.value():$e)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=ul[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var P=this.value();return s.apply(Ue(P)?P:[],w)}return this[d](function(D){return s.apply(Ue(D)?D:[],w)})}}),nr(nt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Xo,g)||(Xo[g]=[]),Xo[g].push({name:s,func:d})}}),Xo[Tl(n,_).name]=[{name:"wrapper",func:n}],nt.prototype.clone=tY,nt.prototype.reverse=nY,nt.prototype.value=rY,I.prototype.at=RK,I.prototype.chain=MK,I.prototype.commit=LK,I.prototype.next=DK,I.prototype.plant=NK,I.prototype.reverse=VK,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=BK,I.prototype.first=I.prototype.head,ns&&(I.prototype[ns]=$K),I},Ho=LU();$i?(($i.exports=Ho)._=Ho,Uh._=Ho):Wt._=Ho}).call(or)}(nl,nl.exports);var Sz=nl.exports;function Iz({onClick:e}){return A.jsx(Id.Button,{onClick:e,children:A.jsx(uS,{className:"w-6 h-6"})})}function Ez({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:E}){return A.jsx(ks,{children:S&&A.jsx(Ki.div,{transition:{type:"spring"},initial:{opacity:0,y:"-10%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"-10%"},className:Je("w-[415px]","bg-gradient-to-r from-brand to-brand-secondary","rounded-lg rounded-tr-none pt-8","absolute top-16 right-4"),onClick:_=>_.stopPropagation(),children:A.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:A.jsx("div",{className:"w-full px-3",children:A.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[A.jsx(cg,{size:"md"}),A.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),A.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),A.jsx(Pz,{children:A.jsx(mS,{className:"w-4 h-4"})}),A.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[A.jsxs(_C,{onClick:()=>u("pt-br"),children:[A.jsx(vS,{})," Navegar em português"]}),A.jsxs(_C,{onClick:()=>u("en-us"),children:[A.jsx(bS,{})," Browse in English"]})]}),t===2&&A.jsx("div",{className:"mb-4",children:A.jsx(qi,{variant:"primary",onClick:l,children:A.jsxs("div",{className:"p-5",children:[A.jsxs("p",{className:"text-[12px]",children:["Terminal:"," ",A.jsx("b",{children:E??""})]}),A.jsx("p",{className:"text-[11px]",children:m})]})})}),A.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[A.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[h," ",A.jsxs("span",{className:"text-brand-dark-gray",children:["(",p,")"]})]}),A.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Sz.sortBy(e.portais,["descricao"]).map((_,R)=>{const L=f===_.nome;return A.jsxs(ks,{mode:"wait",children:["isOpen && (",A.jsxs(Ki.a,{href:_.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:R*(50/1e3)},className:"text-center children:mx-auto",children:[A.jsx("div",{className:Je("flex items-center justify-center transition rounded-md w-11 h-9 shadow-action-button hover:shadow-action-button-hover",{"bg-brand-secondary text-white shadow-action-button-hover":L,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!L}),children:n[_.descricao]||A.jsx("span",{children:"?"})}),A.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:_.nome})]},"portal-item-"+_.descricao),")"]},R)})})]}),A.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[A.jsxs("div",{className:"flex items-center gap-0.5",children:[A.jsx(Az,{isDarkMode:r,setIsDarkMode:i,setTheme:a}),A.jsx("span",{className:Je({"text-brand-secondary":r,"text-brand-secondary-text":!r},"text-xs"),children:v})]}),A.jsxs("div",{onClick:c,className:"flex items-center gap-1 cursor-pointer",children:[A.jsx(cS,{}),A.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:C})]})]})]})})})},"user-menu-container")})}function Az({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),A.jsxs(eC,{onChange:t,checked:e,className:Je({"bg-brand-dark-gray-dark text-brand-secondary":e,"bg-brand-gray":!e,peer:e},"h-[22px] w-[44px]","shrink-0 cursor-pointer","relative","rounded-full text-white","border-2 border-transparent","transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"),children:[A.jsx("span",{className:"sr-only",children:"Dark theme?"}),A.jsx(ks,{children:A.jsx("div",{className:"flex items-center w-full",children:e?A.jsx(fS,{className:"w-4 translate-x-5"}):A.jsx(_z,{})})})]})}function _z(){return A.jsx(Ki.svg,{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/motion.svg",initial:{opacity:0,translateX:"100%"},animate:{opacity:1,translateX:"5%"},exit:{opacity:0,translateX:"100%"},children:A.jsx("path",{d:"m 0 9 a 9 9 0 1 1 18 0 A 9 9 0 1 1 0 9",fill:"currentColor"})},"dark-theme-off")}function Pz({children:e}){return A.jsx("button",{className:"flex items-center justify-center bg-brand-gray text-brand-text w-[25px] h-[25px] rounded-full my-px cursor-default",children:e})}function _C({children:e,onClick:t}){return A.jsx("button",{onClick:t,className:Je("bg-brand-light-gray dark:bg-brand-dark-gray-dark hover:bg-brand dark:hover:bg-brand","text-brand-secondary-text dark:text-white hover:text-brand-light-gray","rounded-lg px-2 py-1.5 text-xs transition","flex gap-2"),children:e})}function Tz({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,setOpen:E,terminalName:_}){function R(){E($=>!$)}function L(){E(!1)}return A.jsxs(A.Fragment,{children:[A.jsx(Iz,{onClick:R}),A.jsx(js,{isOpen:S,close:L,children:A.jsx(Ez,{userTypeId:t,user:e,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:_})})]})}var Fz=process.env.NODE_ENV==="production";function No(e,t){if(!Fz){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Gh(){return Gh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(this,arguments)}function Oz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var rl=b.createContext(void 0);rl.displayName="FormikContext",rl.Provider,rl.Consumer;function PC(){var e=b.useContext(rl);return e||(process.env.NODE_ENV!=="production"?No(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):No(!1)),e}var Rz=function(t){return t!==null&&typeof t=="object"};function TC(e){var t=PC(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=Rz(e),c=l?e:{name:e},f=c.name,h=c.validate;b.useEffect(function(){return f&&a(f,{validate:h}),function(){f&&u(f)}},[a,u,f,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?No(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):No(!1))),f||(process.env.NODE_ENV!=="production"?No(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):No(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var Mz=b.forwardRef(function(e,t){var n=e.action,r=Oz(e,["action"]),i=n??"#",a=PC(),u=a.handleReset,l=a.handleSubmit;return b.createElement("form",Gh({onSubmit:l,ref:t,onReset:u,action:i},r))});Mz.displayName="Form";const Xr=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:u},{setValue:l,setTouched:c}]=TC(e),f=p=>{l(i.type==="color"?p:p.target.value),n&&n(p.target.value)},h=()=>{c(!0),r&&r()};return A.jsx(A.Fragment,{children:A.jsx(q1,{error:u,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})},Lz={Base:Xr,Color:e=>A.jsx(Xr,{type:"color",...e}),Date:e=>A.jsx(Xr,{type:"date",...e}),Datetime:e=>A.jsx(Xr,{type:"datetime-local",...e}),Number:e=>A.jsx(Xr,{type:"number",...e}),Select:({onChange:e,onBlur:t,options:n,name:r,label:i,getOptionLabel:a,getOptionValue:u,...l})=>{const[c,{error:f},{setValue:h,setTouched:p}]=TC(r),m=C=>{h(C),e&&e(C)},v=()=>{p(!0),t&&t()};return A.jsx(A.Fragment,{children:A.jsx(Ex,{name:r,label:i,id:c.name,options:n,onChange:m,onBlur:v,value:c.value,getOptionLabel:a,getOptionValue:u,error:f,isClearable:!0,...l})})},Text:e=>A.jsx(Xr,{type:"text",...e}),Time:e=>A.jsx(Xr,{type:"time",...e}),MaskedText:e=>A.jsx(Xr,{...e})};Ge.Avatar=cg,Ge.Backdrop=js,Ge.Button=qi,Ge.Card=OA,Ge.Checkbox=RA,Ge.ColorPicker=G1,Ge.Dialog=_k,Ge.DualListBox=Nk,Ge.ErrorMessage=md,Ge.Field=Lz,Ge.Header=Vk,Ge.HelperMessage=vd,Ge.Input=q1,Ge.Label=Sd,Ge.Navbar=Id,Ge.Radio=Zk,Ge.Select=Ex,Ge.SideMenu=KZ,Ge.Spinner=yu,Ge.Switch=DX,Ge.Table=pz,Ge.TableAction=gz,Ge.TablePagination=bz,Ge.Tooltip=SC,Ge.UploadFile=wz,Ge.UserMenu=Tz,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
|