@minimalstuff/ui 0.0.24 → 0.0.26
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 +2 -4
- package/dist/index.es.js +527 -530
- package/dist/index.umd.js +13 -13
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(b,
|
|
1
|
+
(function(b,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("@emotion/styled"),require("react"),require("@emotion/react"),require("react-hotkeys-hook"),require("hex-rgb"),require("tinycolor2"),require("react-dom"),require("react-toggle"),require("react-select")):typeof define=="function"&&define.amd?define(["exports","@emotion/styled","react","@emotion/react","react-hotkeys-hook","hex-rgb","tinycolor2","react-dom","react-toggle","react-select"],D):(b=typeof globalThis<"u"?globalThis:b||self,D(b["@minimalstuff/ui"]={},b.styled,b.React,b.react,b.reactHotkeysHook,b.hexRgb,b.tinycolor,b.ReactDOM,b.Toggle,b.Select))})(this,function(b,D,$,X,Bt,Ut,$r,qt,Gt,Ht){"use strict";function Kt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const ne=Kt($),Jt=D.button(({theme:e,danger:r=!1,secondary:t=!1})=>{const n=r?e.colors.red.default:e.colors.blue.default,a=r?e.colors.red.dark:e.colors.blue.dark,i=t?n:e.colors.white,u=t?"transparent":n;return{cursor:"pointer",width:"100%",textTransform:"uppercase",fontSize:e.fontSizes.m,color:i,background:u,padding:"0.75em",border:`1px solid ${n}`,borderRadius:e.borders.radius.m,transition:e.transitions.delay.fast,"&:disabled":{cursor:"not-allowed",opacity:"0.5"},"&:not(:disabled):hover":{background:t?e.colors.secondary:a,borderColor:t?e.colors.secondary:a}}});var rr={exports:{}},ge={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Nr;function Zt(){if(Nr)return ge;Nr=1;var e
|
|
9
|
+
*/var Nr;function Zt(){if(Nr)return ge;Nr=1;var e=$,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(c,p,m){var d,g={},y=null,F=null;m!==void 0&&(y=""+m),p.key!==void 0&&(y=""+p.key),p.ref!==void 0&&(F=p.ref);for(d in p)n.call(p,d)&&!i.hasOwnProperty(d)&&(g[d]=p[d]);if(c&&c.defaultProps)for(d in p=c.defaultProps,p)g[d]===void 0&&(g[d]=p[d]);return{$$typeof:r,type:c,key:y,ref:F,props:g,_owner:a.current}}return ge.Fragment=t,ge.jsx=u,ge.jsxs=u,ge}var ye={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,36 +14,36 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var jr;function Xt(){return jr||(jr=1,process.env.NODE_ENV!=="production"&&function(){var e
|
|
18
|
-
`+
|
|
17
|
+
*/var jr;function Xt(){return jr||(jr=1,process.env.NODE_ENV!=="production"&&function(){var e=$,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),j=Symbol.iterator,w="@@iterator";function V(o){if(o===null||typeof o!="object")return null;var s=j&&o[j]||o[w];return typeof s=="function"?s:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(o){{for(var s=arguments.length,f=new Array(s>1?s-1:0),v=1;v<s;v++)f[v-1]=arguments[v];N("error",o,f)}}function N(o,s,f){{var v=_.ReactDebugCurrentFrame,P=v.getStackAddendum();P!==""&&(s+="%s",f=f.concat([P]));var I=f.map(function(S){return String(S)});I.unshift("Warning: "+s),Function.prototype.apply.call(console[o],console,I)}}var M=!1,l=!1,z=!1,A=!1,Er=!1,qe;qe=Symbol.for("react.module.reference");function xr(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===i||Er||o===a||o===m||o===d||A||o===F||M||l||z||typeof o=="object"&&o!==null&&(o.$$typeof===y||o.$$typeof===g||o.$$typeof===u||o.$$typeof===c||o.$$typeof===p||o.$$typeof===qe||o.getModuleId!==void 0))}function wr(o,s,f){var v=o.displayName;if(v)return v;var P=s.displayName||s.name||"";return P!==""?f+"("+P+")":f}function Ge(o){return o.displayName||"Context"}function J(o){if(o==null)return null;if(typeof o.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case a:return"StrictMode";case m:return"Suspense";case d:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case c:var s=o;return Ge(s)+".Consumer";case u:var f=o;return Ge(f._context)+".Provider";case p:return wr(o,o.render,"ForwardRef");case g:var v=o.displayName||null;return v!==null?v:J(o.type)||"Memo";case y:{var P=o,I=P._payload,S=P._init;try{return J(S(I))}catch{return null}}}return null}var oe=Object.assign,ie=0,He,Ke,Ce,Je,Te,Ze,Xe;function Qe(){}Qe.__reactDisabledLog=!0;function Sr(){{if(ie===0){He=console.log,Ke=console.info,Ce=console.warn,Je=console.error,Te=console.group,Ze=console.groupCollapsed,Xe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Qe,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}ie++}}function _r(){{if(ie--,ie===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},o,{value:He}),info:oe({},o,{value:Ke}),warn:oe({},o,{value:Ce}),error:oe({},o,{value:Je}),group:oe({},o,{value:Te}),groupCollapsed:oe({},o,{value:Ze}),groupEnd:oe({},o,{value:Xe})})}ie<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=_.ReactCurrentDispatcher,Re;function pe(o,s,f){{if(Re===void 0)try{throw Error()}catch(P){var v=P.stack.trim().match(/\n( *(at )?)/);Re=v&&v[1]||""}return`
|
|
18
|
+
`+Re+o}}var ke=!1,he;{var Cr=typeof WeakMap=="function"?WeakMap:Map;he=new Cr}function h(o,s){if(!o||ke)return"";{var f=he.get(o);if(f!==void 0)return f}var v;ke=!0;var P=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Oe.current,Oe.current=null,Sr();try{if(s){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(H){v=H}Reflect.construct(o,[],S)}else{try{S.call()}catch(H){v=H}o.call(S.prototype)}}else{try{throw Error()}catch(H){v=H}o()}}catch(H){if(H&&v&&typeof H.stack=="string"){for(var x=H.stack.split(`
|
|
19
19
|
`),q=v.stack.split(`
|
|
20
20
|
`),L=x.length-1,Y=q.length-1;L>=1&&Y>=0&&x[L]!==q[Y];)Y--;for(;L>=1&&Y>=0;L--,Y--)if(x[L]!==q[Y]){if(L!==1||Y!==1)do if(L--,Y--,Y<0||x[L]!==q[Y]){var Z=`
|
|
21
|
-
`+x[L].replace(" at new "," at ");return o.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",o.displayName)),typeof o=="function"&&he.set(o,Z),Z}while(L>=1&&Y>=0);break}}}finally{
|
|
21
|
+
`+x[L].replace(" at new "," at ");return o.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",o.displayName)),typeof o=="function"&&he.set(o,Z),Z}while(L>=1&&Y>=0);break}}}finally{ke=!1,Oe.current=I,_r(),Error.prepareStackTrace=P}var be=o?o.displayName||o.name:"",ce=be?pe(be):"";return typeof o=="function"&&he.set(o,ce),ce}function Pe(o,s,f){return h(o,!1)}function me(o){var s=o.prototype;return!!(s&&s.isReactComponent)}function se(o,s,f){if(o==null)return"";if(typeof o=="function")return h(o,me(o));if(typeof o=="string")return pe(o);switch(o){case m:return pe("Suspense");case d:return pe("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case p:return Pe(o.render);case g:return se(o.type,s,f);case y:{var v=o,P=v._payload,I=v._init;try{return se(I(P),s,f)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,At={},$t=_.ReactDebugCurrentFrame;function er(o){if(o){var s=o._owner,f=se(o.type,o._source,s?s.type:null);$t.setExtraStackFrame(f)}else $t.setExtraStackFrame(null)}function Wo(o,s,f,v,P){{var I=Function.call.bind(Ae);for(var S in o)if(I(o,S)){var x=void 0;try{if(typeof o[S]!="function"){var q=Error((v||"React class")+": "+f+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}x=o[S](s,S,v,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){x=L}x&&!(x instanceof Error)&&(er(P),E("%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).",v||"React class",f,S,typeof x),er(null)),x instanceof Error&&!(x.message in At)&&(At[x.message]=!0,er(P),E("Failed %s type: %s",f,x.message),er(null))}}}var Vo=Array.isArray;function Tr(o){return Vo(o)}function Yo(o){{var s=typeof Symbol=="function"&&Symbol.toStringTag,f=s&&o[Symbol.toStringTag]||o.constructor.name||"Object";return f}}function zo(o){try{return Nt(o),!1}catch{return!0}}function Nt(o){return""+o}function jt(o){if(zo(o))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yo(o)),Nt(o)}var $e=_.ReactCurrentOwner,Bo={key:!0,ref:!0,__self:!0,__source:!0},It,Dt,Or;Or={};function Uo(o){if(Ae.call(o,"ref")){var s=Object.getOwnPropertyDescriptor(o,"ref").get;if(s&&s.isReactWarning)return!1}return o.ref!==void 0}function qo(o){if(Ae.call(o,"key")){var s=Object.getOwnPropertyDescriptor(o,"key").get;if(s&&s.isReactWarning)return!1}return o.key!==void 0}function Go(o,s){if(typeof o.ref=="string"&&$e.current&&s&&$e.current.stateNode!==s){var f=J($e.current.type);Or[f]||(E('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',J($e.current.type),o.ref),Or[f]=!0)}}function Ho(o,s){{var f=function(){It||(It=!0,E("%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)",s))};f.isReactWarning=!0,Object.defineProperty(o,"key",{get:f,configurable:!0})}}function Ko(o,s){{var f=function(){Dt||(Dt=!0,E("%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)",s))};f.isReactWarning=!0,Object.defineProperty(o,"ref",{get:f,configurable:!0})}}var Jo=function(o,s,f,v,P,I,S){var x={$$typeof:r,type:o,key:s,ref:f,props:S,_owner:I};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function Zo(o,s,f,v,P){{var I,S={},x=null,q=null;f!==void 0&&(jt(f),x=""+f),qo(s)&&(jt(s.key),x=""+s.key),Uo(s)&&(q=s.ref,Go(s,P));for(I in s)Ae.call(s,I)&&!Bo.hasOwnProperty(I)&&(S[I]=s[I]);if(o&&o.defaultProps){var L=o.defaultProps;for(I in L)S[I]===void 0&&(S[I]=L[I])}if(x||q){var Y=typeof o=="function"?o.displayName||o.name||"Unknown":o;x&&Ho(S,Y),q&&Ko(S,Y)}return Jo(o,x,q,P,v,$e.current,S)}}var Rr=_.ReactCurrentOwner,Ft=_.ReactDebugCurrentFrame;function ve(o){if(o){var s=o._owner,f=se(o.type,o._source,s?s.type:null);Ft.setExtraStackFrame(f)}else Ft.setExtraStackFrame(null)}var kr;kr=!1;function Pr(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function Mt(){{if(Rr.current){var o=J(Rr.current.type);if(o)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+o+"`."}return""}}function Xo(o){return""}var Lt={};function Qo(o){{var s=Mt();if(!s){var f=typeof o=="string"?o:o.displayName||o.name;f&&(s=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+f+">.")}return s}}function Wt(o,s){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var f=Qo(s);if(Lt[f])return;Lt[f]=!0;var v="";o&&o._owner&&o._owner!==
|
|
25
|
+
Check the top-level render call using <`+f+">.")}return s}}function Wt(o,s){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var f=Qo(s);if(Lt[f])return;Lt[f]=!0;var v="";o&&o._owner&&o._owner!==Rr.current&&(v=" It was passed a child from "+J(o._owner.type)+"."),ve(o),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,v),ve(null)}}function Vt(o,s){{if(typeof o!="object")return;if(Tr(o))for(var f=0;f<o.length;f++){var v=o[f];Pr(v)&&Wt(v,s)}else if(Pr(o))o._store&&(o._store.validated=!0);else if(o){var P=V(o);if(typeof P=="function"&&P!==o.entries)for(var I=P.call(o),S;!(S=I.next()).done;)Pr(S.value)&&Wt(S.value,s)}}}function ea(o){{var s=o.type;if(s==null||typeof s=="string")return;var f;if(typeof s=="function")f=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===p||s.$$typeof===g))f=s.propTypes;else return;if(f){var v=J(s);Wo(f,o.props,"prop",v,o)}else if(s.PropTypes!==void 0&&!kr){kr=!0;var P=J(s);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",P||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ra(o){{for(var s=Object.keys(o.props),f=0;f<s.length;f++){var v=s[f];if(v!=="children"&&v!=="key"){ve(o),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),ve(null);break}}o.ref!==null&&(ve(o),E("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}var Yt={};function zt(o,s,f,v,P,I){{var S=xr(o);if(!S){var x="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(x+=" 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 q=Xo();q?x+=q:x+=Mt();var L;o===null?L="null":Tr(o)?L="array":o!==void 0&&o.$$typeof===r?(L="<"+(J(o.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):L=typeof o,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,x)}var Y=Zo(o,s,f,P,I);if(Y==null)return Y;if(S){var Z=s.children;if(Z!==void 0)if(v)if(Tr(Z)){for(var be=0;be<Z.length;be++)Vt(Z[be],o);Object.freeze&&Object.freeze(Z)}else E("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 Vt(Z,o)}if(Ae.call(s,"key")){var ce=J(o),H=Object.keys(s).filter(function(sa){return sa!=="key"}),Ar=H.length>0?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}";if(!Yt[ce+Ar]){var ia=H.length>0?"{"+H.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ar,ce,ia,ce),Yt[ce+Ar]=!0}}return o===n?ra(Y):ea(Y),Y}}function ta(o,s,f){return zt(o,s,f,!0)}function na(o,s,f){return zt(o,s,f,!1)}var oa=na,aa=ta;ye.Fragment=n,ye.jsx=oa,ye.jsxs=aa}()),ye}process.env.NODE_ENV==="production"?rr.exports=Zt():rr.exports=Xt();var O=rr.exports;X.keyframes({"0%":{opacity:0},"100%":{opacity:1}}),X.keyframes({to:{transform:"rotate(0deg)"},from:{transform:"rotate(360deg)"}});const Qt=X.keyframes({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"}}),tr=F.div(({theme:e})=>({animation:`${e.transitions.delay.normal} ${Qt} both`})),Ir=F(tr)(({show:e,theme:r})=>({zIndex:99,position:"absolute",top:"calc(100% + 0.5em)",right:0,minWidth:"175px",backgroundColor:e?r.colors.secondary:r.colors.background,border:`2px solid ${r.colors.secondary}`,borderRadius:r.borders.radius.m,boxShadow:r.colors.boxShadow,display:e?"flex":"none",flexDirection:"column",overflow:"hidden"})),Dr=F.div(({theme:e})=>({height:"auto",width:"auto",color:e.colors.font,display:"flex",gap:"0.35em"}));function nr(e,r){A.useEffect(()=>{function t(n){var a;e!=null&&e.current&&!((a=e.current)!=null&&a.contains(n.target))&&r()}return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[e,r])}const en={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",ESCAPE_KEY:"escape"},rn={globalHotkeysEnabled:!0,setGlobalHotkeysEnabled:e=>{}},tn=A.createContext(rn),or=()=>A.useContext(tn);function ar(e,r,{enabled:t,disableGlobalCheck:n}={enabled:!0,disableGlobalCheck:!1}){const{globalHotkeysEnabled:a}=or();return Bt.useHotkeys(en[e],i=>{i.preventDefault(),r()},{enabled:n?t:t&&a,enableOnFormTags:["INPUT"]})}const Fr=(e=!1)=>{const[r,t]=A.useState(e);return{isShowing:r,toggle:()=>t(u=>!u),open:()=>t(!0),close:()=>t(!1)}},nn=F.div(({opened:e,theme:r,svgSize:t=24})=>({cursor:"pointer",userSelect:"none",position:"relative",minWidth:"fit-content",width:"fit-content",maxWidth:"250px",backgroundColor:e?r.colors.secondary:r.colors.background,padding:"4px",borderRadius:r.borders.radius.m,"&:hover":{backgroundColor:r.colors.secondary},"& svg":{height:`${t}px`,width:`${t}px`}}));function on({children:e,label:r,className:t,svgSize:n}){const a=A.useRef(null),{isShowing:i,toggle:u,close:c}=Fr();return nr(a,c),ar("ESCAPE_KEY",c,{disableGlobalCheck:!0}),O.jsxs(nn,{opened:i,onClick:u,ref:a,className:t,svgSize:n,children:[O.jsx(Dr,{children:r}),O.jsx(Ir,{show:i,children:e})]})}const Mr=F("div",{shouldForwardProp:e=>e!=="danger"})(({theme:e,danger:r})=>({fontSize:"14px",whiteSpace:"nowrap",color:r?e.colors.red.default:e.colors.blue.default,padding:"8px 12px",borderRadius:e.borders.radius.m,"&:hover":{backgroundColor:e.colors.background}})),an=F(Mr)({display:"flex",gap:"0.75em",alignItems:"center"}),sn=F(Mr.withComponent("a"))({width:"100%",display:"flex",gap:"0.75em",alignItems:"center"});function cn({children:e,title:r,...t}){return O.jsx("a",{target:"_blank",rel:"noreferrer",title:r,...t,children:e})}const Lr=F.div({width:"100%",display:"flex",flex:1,alignItems:"center",flexDirection:"column"}),Wr=F(tr)(({theme:e})=>({minWidth:"500px",background:e.colors.background,padding:"1em",borderRadius:e.borders.radius.m,marginTop:"6em",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",boxShadow:e.colors.boxShadow,[`@media (max-width: ${e.medias.mobile})`]:{maxHeight:"calc(100% - 2em)",width:"calc(100% - 2em)",minWidth:"unset",marginTop:"1em"}})),Vr=F.h3({width:"100%",margin:0,marginBottom:"0.75em",display:"flex",alignItems:"center",justifyContent:"space-between"}),Yr=F.button(({theme:e})=>({cursor:"pointer",color:e.colors.blue.default,backgroundColor:"transparent",border:0,padding:0,margin:0})),ae=(e,r)=>`rgba(${Ut(e,{format:"array"}).slice(0,-1).join(",")},${r})`;function ee(e){const r=$r(e.color);if(!r.isValid())throw new Error("Invalid color provided");return{lightest:Ne({...e,multiplicator:2,type:"lighten"}),light:Ne({...e,multiplicator:1,type:"lighten"}),default:r.toString(),dark:Ne({...e,multiplicator:1,type:"darken"}),darkest:Ne({...e,multiplicator:2,type:"darken"})}}function Ne({color:e,fadeStep:r=15,multiplicator:t,type:n}){return $r(e)[n](r*t).toString()}const zr=F.div(({theme:e})=>({zIndex:9999,position:"absolute",top:0,left:0,height:"100%",width:"100%",background:ae(e.colors.black,.35),backdropFilter:"blur(0.1em)",display:"flex",alignItems:"center",flexDirection:"column",transition:e.transitions.delay.normal}));var Br={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ur=A.createContext&&A.createContext(Br),un=["attr","size","title"];function ln(e,r){if(e==null)return{};var t=fn(e,r),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function fn(e,r){if(e==null)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},je.apply(this,arguments)}function qr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Ie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?qr(Object(t),!0).forEach(function(n){dn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function dn(e,r,t){return r=pn(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function pn(e){var r=hn(e,"string");return typeof r=="symbol"?r:r+""}function hn(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Gr(e){return e&&e.map((r,t)=>A.createElement(r.tag,Ie({key:t},r.attr),Gr(r.child)))}function mn(e){return r=>A.createElement(vn,je({attr:Ie({},e.attr)},r),Gr(e.child))}function vn(e){var r=t=>{var{attr:n,size:a,title:i}=e,u=ln(e,un),c=a||t.size||"1em",p;return t.className&&(p=t.className),e.className&&(p=(p?p+" ":"")+e.className),A.createElement("svg",je({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,u,{className:p,style:Ie(Ie({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&A.createElement("title",null,i),e.children)};return Ur!==void 0?A.createElement(Ur.Consumer,null,t=>r(t)):r(Br)}function bn(e){return mn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}const Hr=F.p(({lines:e=1})=>e>1?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"});function gn({title:e,children:r,opened:t=!0,hideCloseBtn:n=!1,className:a,close:i}){const u=A.useRef(null),{setGlobalHotkeysEnabled:c}=or();return nr(u,i),ar("ESCAPE_KEY",i,{disableGlobalCheck:!0}),A.useEffect(()=>c(!t),[t,c]),typeof window>"u"?O.jsx(A.Fragment,{}):t&&qt.createPortal(O.jsx(zr,{children:O.jsxs(Wr,{className:a,ref:u,children:[(!n||e)&&O.jsxs(Vr,{children:[e&&O.jsx(Hr,{children:e}),!n&&O.jsx(Yr,{onClick:i,style:{marginLeft:e?"unset":"auto"},children:O.jsx(bn,{size:20})})]}),O.jsx(Lr,{children:r})]})}),document.body)}const yn=F.img(({theme:e,size:r=48})=>{const t=ae(e.colors.black,.1);return{height:`${r}px`,width:`${r}px`,borderRadius:"50%","&:hover":{boxShadow:`0 1px 3px 0 ${t}, 0 1px 2px -1px ${t}`}}}),Kr=F.li(({theme:e,active:r,danger:t})=>{const n=t?e.colors.red.default:e.colors.blue.default;return{userSelect:"none",cursor:"pointer",backgroundColor:r?ae(n,.15):e.colors.secondary,padding:"10px 20px",border:`1px solid ${r?ae(n,.1):e.colors.secondary}`,borderBottom:`1px solid ${r?ae(n,.25):e.colors.secondary}`,display:"flex",gap:"0.35em",alignItems:"center",transition:".075s"}}),Jr=F.ul({padding:0,margin:0,display:"flex",listStyle:"none"}),Zr=F.div(({theme:e})=>({zIndex:1,position:"relative",border:`1px solid ${ae(e.colors.blue.default,.25)}`,padding:"20px",marginTop:"-1px"}));function En({tabs:e}){const[r,t]=A.useState(0),n=a=>{t(a)};return O.jsxs("div",{children:[O.jsx(Jr,{children:e.map(({title:a,icon:i,danger:u},c)=>O.jsxs(Kr,{active:c===r,onClick:()=>n(c),danger:u??!1,children:[!!i&&O.jsx(i,{size:20}),a]},c))}),O.jsx(Zr,{children:O.jsx(tr,{children:e[r].content})},e[r].title)]})}function xn(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function wn(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Sn=function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?process.env.NODE_ENV==="production":t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wn(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
31
|
-
`+n+"\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||!i}if(this.isSpeedy){var u=xn(a);try{u.insertRule(n,u.cssRules.length)}catch(c){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(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',c)}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),U="-ms-",De="-moz-",C="-webkit-",ir="comm",sr="rule",cr="decl",_n="@import",Xr="@keyframes",Cn="@layer",Tn=Math.abs,Fe=String.fromCharCode,On=Object.assign;function kn(e,r){return B(e,0)^45?(((r<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function Qr(e){return e.trim()}function Rn(e,r){return(e=r.exec(e))?e[0]:e}function T(e,r,t){return e.replace(r,t)}function ur(e,r){return e.indexOf(r)}function B(e,r){return e.charCodeAt(r)|0}function Ee(e,r,t){return e.slice(r,t)}function re(e){return e.length}function lr(e){return e.length}function Me(e,r){return r.push(e),e}function Pn(e,r){return e.map(r).join("")}var Le=1,ue=1,et=0,G=0,W=0,le="";function We(e,r,t,n,a,i,u){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Le,column:ue,length:u,return:""}}function xe(e,r){return On(We("",null,null,"",null,null,0),e,{length:-e.length},r)}function An(){return W}function $n(){return W=G>0?B(le,--G):0,ue--,W===10&&(ue=1,Le--),W}function K(){return W=G<et?B(le,G++):0,ue++,W===10&&(ue=1,Le++),W}function te(){return B(le,G)}function Ve(){return G}function we(e,r){return Ee(le,e,r)}function Se(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 rt(e){return Le=ue=1,et=re(le=e),G=0,[]}function tt(e){return le="",e}function Ye(e){return Qr(we(G-1,fr(e===91?e+2:e===40?e+1:e)))}function Nn(e){for(;(W=te())&&W<33;)K();return Se(e)>2||Se(W)>3?"":" "}function jn(e,r){for(;--r&&K()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return we(e,Ve()+(r<6&&te()==32&&K()==32))}function fr(e){for(;K();)switch(W){case e:return G;case 34:case 39:e!==34&&e!==39&&fr(W);break;case 40:e===41&&fr(e);break;case 92:K();break}return G}function In(e,r){for(;K()&&e+W!==57;)if(e+W===84&&te()===47)break;return"/*"+we(r,G-1)+"*"+Fe(e===47?e:K())}function Dn(e){for(;!Se(te());)K();return we(e,G)}function Fn(e){return tt(ze("",null,null,null,[""],e=rt(e),0,[0],e))}function ze(e,r,t,n,a,i,u,c,p){for(var m=0,d=0,g=u,y=0,j=0,I=0,w=1,V=1,_=1,E=0,N="",M=a,l=i,z=n,$=N;V;)switch(I=E,E=K()){case 40:if(I!=108&&B($,g-1)==58){ur($+=T(Ye(E),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=Ye(E);break;case 9:case 10:case 13:case 32:$+=Nn(I);break;case 92:$+=jn(Ve()-1,7);continue;case 47:switch(te()){case 42:case 47:Me(Mn(In(K(),Ve()),r,t),p);break;default:$+="/"}break;case 123*w:c[m++]=re($)*_;case 125*w:case 59:case 0:switch(E){case 0:case 125:V=0;case 59+d:_==-1&&($=T($,/\f/g,"")),j>0&&re($)-g&&Me(j>32?ot($+";",n,t,g-1):ot(T($," ","")+";",n,t,g-2),p);break;case 59:$+=";";default:if(Me(z=nt($,r,t,m,d,a,c,N,M=[],l=[],g),i),E===123)if(d===0)ze($,r,z,z,M,i,g,c,l);else switch(y===99&&B($,3)===110?100:y){case 100:case 108:case 109:case 115:ze(e,z,z,n&&Me(nt(e,z,z,0,0,a,c,N,a,M=[],g),l),a,l,g,c,n?M:l);break;default:ze($,z,z,z,[""],l,0,c,l)}}m=d=j=0,w=_=1,N=$="",g=u;break;case 58:g=1+re($),j=I;default:if(w<1){if(E==123)--w;else if(E==125&&w++==0&&$n()==125)continue}switch($+=Fe(E),E*w){case 38:_=d>0?1:($+="\f",-1);break;case 44:c[m++]=(re($)-1)*_,_=1;break;case 64:te()===45&&($+=Ye(K())),y=te(),d=g=re(N=$+=Dn(Ve())),E++;break;case 45:I===45&&re($)==2&&(w=0)}}return i}function nt(e,r,t,n,a,i,u,c,p,m,d){for(var g=a-1,y=a===0?i:[""],j=lr(y),I=0,w=0,V=0;I<n;++I)for(var _=0,E=Ee(e,g+1,g=Tn(w=u[I])),N=e;_<j;++_)(N=Qr(w>0?y[_]+" "+E:T(E,/&\f/g,y[_])))&&(p[V++]=N);return We(e,r,t,a===0?sr:c,p,m,d)}function Mn(e,r,t){return We(e,r,t,ir,Fe(An()),Ee(e,2,-2),0)}function ot(e,r,t,n){return We(e,r,t,cr,Ee(e,0,n),Ee(e,n+1,-1),n)}function fe(e,r){for(var t="",n=lr(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Ln(e,r,t,n){switch(e.type){case Cn:if(e.children.length)break;case _n:case cr:return e.return=e.return||e.value;case ir:return"";case Xr:return e.return=e.value+"{"+fe(e.children,n)+"}";case sr:e.value=e.props.join(",")}return re(t=fe(e.children,n))?e.return=e.value+"{"+t+"}":""}function Wn(e){var r=lr(e);return function(t,n,a,i){for(var u="",c=0;c<r;c++)u+=e[c](t,n,a,i)||"";return u}}function Vn(e){return function(r){r.root||(r=r.return)&&e(r)}}function Yn(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var zn=function(r,t,n){for(var a=0,i=0;a=i,i=te(),a===38&&i===12&&(t[n]=1),!Se(i);)K();return we(r,G)},Bn=function(r,t){var n=-1,a=44;do switch(Se(a)){case 0:a===38&&te()===12&&(t[n]=1),r[n]+=zn(G-1,t,n);break;case 2:r[n]+=Ye(a);break;case 4:if(a===44){r[++n]=te()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=Fe(a)}while(a=K());return r},Un=function(r,t){return tt(Bn(rt(r),t))},at=new WeakMap,qn=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!at.get(n))&&!a){at.set(r,!0);for(var i=[],u=Un(t,i),c=n.props,p=0,m=0;p<u.length;p++)for(var d=0;d<c.length;d++,m++)r.props[m]=i[p]?u[p].replace(/&\f/g,c[d]):c[d]+" "+u[p]}}},Gn=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}},Hn="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Kn=function(r){return r.type==="comm"&&r.children.indexOf(Hn)>-1},Jn=function(r){return function(t,n,a){if(!(t.type!=="rule"||r.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var u=!!t.parent,c=u?t.parent.children:a,p=c.length-1;p>=0;p--){var m=c[p];if(m.line<t.line)break;if(m.column<t.column){if(Kn(m))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},it=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},Zn=function(r,t){for(var n=r-1;n>=0;n--)if(!it(t[n]))return!0;return!1},st=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},Xn=function(r,t,n){it(r)&&(r.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."),st(r)):Zn(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),st(r)))};function ct(e,r){switch(kn(e,r)){case 5103:return C+"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 C+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+De+e+U+e+e;case 6828:case 4268:return C+e+U+e+e;case 6165:return C+e+U+"flex-"+e+e;case 5187:return C+e+T(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return C+e+U+"flex-item-"+T(e,/flex-|-self/,"")+e;case 4675:return C+e+U+"flex-line-pack"+T(e,/align-content|flex-|-self/,"")+e;case 5548:return C+e+U+T(e,"shrink","negative")+e;case 5292:return C+e+U+T(e,"basis","preferred-size")+e;case 6060:return C+"box-"+T(e,"-grow","")+C+e+U+T(e,"grow","positive")+e;case 4554:return C+T(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,C+"$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(re(e)-1-r>6)switch(B(e,r+1)){case 109:if(B(e,r+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+De+(B(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch")?ct(T(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(B(e,r+1)!==115)break;case 6444:switch(B(e,re(e)-3-(~ur(e,"!important")&&10))){case 107:return T(e,":",":"+C)+e;case 101:return T(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(B(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(B(e,r+11)){case 114:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return C+e+U+e+e}return e}var Qn=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case cr:r.return=ct(r.value,r.length);break;case Xr:return fe([xe(r,{value:T(r.value,"@","@"+C)})],a);case sr:if(r.length)return Pn(r.props,function(i){switch(Rn(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([xe(r,{props:[T(i,/:(read-\w+)/,":"+De+"$1")]})],a);case"::placeholder":return fe([xe(r,{props:[T(i,/:(plac\w+)/,":"+C+"input-$1")]}),xe(r,{props:[T(i,/:(plac\w+)/,":"+De+"$1")]}),xe(r,{props:[T(i,/:(plac\w+)/,U+"input-$1")]})],a)}return""})}},eo=[Qn],ro=function(r){var t=r.key;if(process.env.NODE_ENV!=="production"&&!t)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.
|
|
32
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var V=w.getAttribute("data-emotion");V.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=r.stylisPlugins||eo;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},u,c=[];u=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(w){for(var V=w.getAttribute("data-emotion").split(" "),_=1;_<V.length;_++)i[V[_]]=!0;c.push(w)});var p,m=[qn,Gn];process.env.NODE_ENV!=="production"&&m.push(Jn({get compat(){return
|
|
30
|
+
<%s key={someKey} {...props} />`,Ar,ce,ia,ce),Yt[ce+Ar]=!0}}return o===n?ra(Y):ea(Y),Y}}function ta(o,s,f){return zt(o,s,f,!0)}function na(o,s,f){return zt(o,s,f,!1)}var oa=na,aa=ta;ye.Fragment=n,ye.jsx=oa,ye.jsxs=aa}()),ye}process.env.NODE_ENV==="production"?rr.exports=Zt():rr.exports=Xt();var O=rr.exports;X.keyframes({"0%":{opacity:0},"100%":{opacity:1}}),X.keyframes({to:{transform:"rotate(0deg)"},from:{transform:"rotate(360deg)"}});const Qt=X.keyframes({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"}}),tr=D.div(({theme:e})=>({animation:`${e.transitions.delay.normal} ${Qt} both`})),Ir=D(tr)(({show:e,theme:r})=>({zIndex:99,position:"absolute",top:"calc(100% + 0.5em)",right:0,minWidth:"175px",backgroundColor:e?r.colors.secondary:r.colors.background,border:`2px solid ${r.colors.secondary}`,borderRadius:r.borders.radius.m,boxShadow:r.colors.boxShadow,display:e?"flex":"none",flexDirection:"column",overflow:"hidden"})),Dr=D.div(({theme:e})=>({height:"auto",width:"auto",color:e.colors.font,display:"flex",gap:"0.35em"}));function nr(e,r){$.useEffect(()=>{function t(n){var a;e!=null&&e.current&&!((a=e.current)!=null&&a.contains(n.target))&&r()}return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[e,r])}const en={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",ESCAPE_KEY:"escape"},rn={globalHotkeysEnabled:!0,setGlobalHotkeysEnabled:e=>{}},tn=$.createContext(rn),or=()=>$.useContext(tn);function ar(e,r,{enabled:t,disableGlobalCheck:n}={enabled:!0,disableGlobalCheck:!1}){const{globalHotkeysEnabled:a}=or();return Bt.useHotkeys(en[e],i=>{i.preventDefault(),r()},{enabled:n?t:t&&a,enableOnFormTags:["INPUT"]})}const Fr=(e=!1)=>{const[r,t]=$.useState(e);return{isShowing:r,toggle:()=>t(u=>!u),open:()=>t(!0),close:()=>t(!1)}},nn=D.div(({opened:e,theme:r,svgSize:t=24})=>({cursor:"pointer",userSelect:"none",position:"relative",minWidth:"fit-content",width:"fit-content",maxWidth:"250px",backgroundColor:e?r.colors.secondary:r.colors.background,padding:"4px",borderRadius:r.borders.radius.m,"&:hover":{backgroundColor:r.colors.secondary},"& svg":{height:`${t}px`,width:`${t}px`}}));function on({children:e,label:r,className:t,svgSize:n}){const a=$.useRef(null),{isShowing:i,toggle:u,close:c}=Fr();return nr(a,c),ar("ESCAPE_KEY",c,{disableGlobalCheck:!0}),O.jsxs(nn,{opened:i,onClick:u,ref:a,className:t,svgSize:n,children:[O.jsx(Dr,{children:r}),O.jsx(Ir,{show:i,children:e})]})}const Mr=D("div",{shouldForwardProp:e=>e!=="danger"})(({theme:e,danger:r})=>({fontSize:"14px",whiteSpace:"nowrap",color:r?e.colors.red.default:e.colors.blue.default,padding:"8px 12px",borderRadius:e.borders.radius.m,"&:hover":{backgroundColor:e.colors.background}})),an=D(Mr)({display:"flex",gap:"0.75em",alignItems:"center"}),sn=D(Mr.withComponent("a"))({width:"100%",display:"flex",gap:"0.75em",alignItems:"center"});function cn({children:e,title:r,...t}){return O.jsx("a",{target:"_blank",rel:"noreferrer",title:r,...t,children:e})}const Lr=D.div({width:"100%",display:"flex",flex:1,alignItems:"center",flexDirection:"column"}),Wr=D(tr)(({theme:e})=>({minWidth:"500px",background:e.colors.background,padding:"1em",borderRadius:e.borders.radius.m,marginTop:"6em",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",boxShadow:e.colors.boxShadow,[`@media (max-width: ${e.medias.mobile})`]:{maxHeight:"calc(100% - 2em)",width:"calc(100% - 2em)",minWidth:"unset",marginTop:"1em"}})),Vr=D.h3({width:"100%",margin:0,marginBottom:"0.75em",display:"flex",alignItems:"center",justifyContent:"space-between"}),Yr=D.button(({theme:e})=>({cursor:"pointer",color:e.colors.blue.default,backgroundColor:"transparent",border:0,padding:0,margin:0})),ae=(e,r)=>`rgba(${Ut(e,{format:"array"}).slice(0,-1).join(",")},${r})`;function ee(e){const r=$r(e.color);if(!r.isValid())throw new Error("Invalid color provided");return{lightest:Ne({...e,multiplicator:2,type:"lighten"}),light:Ne({...e,multiplicator:1,type:"lighten"}),default:r.toString(),dark:Ne({...e,multiplicator:1,type:"darken"}),darkest:Ne({...e,multiplicator:2,type:"darken"})}}function Ne({color:e,fadeStep:r=15,multiplicator:t,type:n}){return $r(e)[n](r*t).toString()}const zr=D.div(({theme:e})=>({zIndex:9999,position:"absolute",top:0,left:0,height:"100%",width:"100%",background:ae(e.colors.black,.35),backdropFilter:"blur(0.1em)",display:"flex",alignItems:"center",flexDirection:"column",transition:e.transitions.delay.normal}));var Br={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ur=$.createContext&&$.createContext(Br),un=["attr","size","title"];function ln(e,r){if(e==null)return{};var t=fn(e,r),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function fn(e,r){if(e==null)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},je.apply(this,arguments)}function qr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Ie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?qr(Object(t),!0).forEach(function(n){dn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function dn(e,r,t){return r=pn(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function pn(e){var r=hn(e,"string");return typeof r=="symbol"?r:r+""}function hn(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Gr(e){return e&&e.map((r,t)=>$.createElement(r.tag,Ie({key:t},r.attr),Gr(r.child)))}function mn(e){return r=>$.createElement(vn,je({attr:Ie({},e.attr)},r),Gr(e.child))}function vn(e){var r=t=>{var{attr:n,size:a,title:i}=e,u=ln(e,un),c=a||t.size||"1em",p;return t.className&&(p=t.className),e.className&&(p=(p?p+" ":"")+e.className),$.createElement("svg",je({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,u,{className:p,style:Ie(Ie({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&$.createElement("title",null,i),e.children)};return Ur!==void 0?$.createElement(Ur.Consumer,null,t=>r(t)):r(Br)}function bn(e){return mn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}const Hr=D.p(({lines:e=1})=>e>1?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"});function gn({title:e,children:r,opened:t=!0,hideCloseBtn:n=!1,className:a,close:i}){const u=$.useRef(null),{setGlobalHotkeysEnabled:c}=or();return nr(u,i),ar("ESCAPE_KEY",i,{disableGlobalCheck:!0}),$.useEffect(()=>c(!t),[t,c]),typeof window>"u"?O.jsx($.Fragment,{}):t&&qt.createPortal(O.jsx(zr,{children:O.jsxs(Wr,{className:a,ref:u,children:[(!n||e)&&O.jsxs(Vr,{children:[e&&O.jsx(Hr,{children:e}),!n&&O.jsx(Yr,{onClick:i,style:{marginLeft:e?"unset":"auto"},children:O.jsx(bn,{size:20})})]}),O.jsx(Lr,{children:r})]})}),document.body)}const yn=D.img(({theme:e,size:r=48})=>{const t=ae(e.colors.black,.1);return{height:`${r}px`,width:`${r}px`,borderRadius:"50%","&:hover":{boxShadow:`0 1px 3px 0 ${t}, 0 1px 2px -1px ${t}`}}}),Kr=D.li(({theme:e,active:r,danger:t})=>{const n=t?e.colors.red.default:e.colors.blue.default;return{userSelect:"none",cursor:"pointer",backgroundColor:r?ae(n,.15):e.colors.secondary,padding:"10px 20px",border:`1px solid ${r?ae(n,.1):e.colors.secondary}`,borderBottom:`1px solid ${r?ae(n,.25):e.colors.secondary}`,display:"flex",gap:"0.35em",alignItems:"center",transition:".075s"}}),Jr=D.ul({padding:0,margin:0,display:"flex",listStyle:"none"}),Zr=D.div(({theme:e})=>({zIndex:1,position:"relative",border:`1px solid ${ae(e.colors.blue.default,.25)}`,padding:"20px",marginTop:"-1px"}));function En({tabs:e}){const[r,t]=$.useState(0),n=a=>{t(a)};return O.jsxs("div",{children:[O.jsx(Jr,{children:e.map(({title:a,icon:i,danger:u},c)=>O.jsxs(Kr,{active:c===r,onClick:()=>n(c),danger:u??!1,children:[!!i&&O.jsx(i,{size:20}),a]},c))}),O.jsx(Zr,{children:O.jsx(tr,{children:e[r].content})},e[r].title)]})}function xn(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function wn(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Sn=function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?process.env.NODE_ENV==="production":t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wn(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
31
|
+
`+n+"\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||!i}if(this.isSpeedy){var u=xn(a);try{u.insertRule(n,u.cssRules.length)}catch(c){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(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',c)}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),U="-ms-",De="-moz-",C="-webkit-",ir="comm",sr="rule",cr="decl",_n="@import",Xr="@keyframes",Cn="@layer",Tn=Math.abs,Fe=String.fromCharCode,On=Object.assign;function Rn(e,r){return B(e,0)^45?(((r<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function Qr(e){return e.trim()}function kn(e,r){return(e=r.exec(e))?e[0]:e}function T(e,r,t){return e.replace(r,t)}function ur(e,r){return e.indexOf(r)}function B(e,r){return e.charCodeAt(r)|0}function Ee(e,r,t){return e.slice(r,t)}function re(e){return e.length}function lr(e){return e.length}function Me(e,r){return r.push(e),e}function Pn(e,r){return e.map(r).join("")}var Le=1,ue=1,et=0,G=0,W=0,le="";function We(e,r,t,n,a,i,u){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Le,column:ue,length:u,return:""}}function xe(e,r){return On(We("",null,null,"",null,null,0),e,{length:-e.length},r)}function An(){return W}function $n(){return W=G>0?B(le,--G):0,ue--,W===10&&(ue=1,Le--),W}function K(){return W=G<et?B(le,G++):0,ue++,W===10&&(ue=1,Le++),W}function te(){return B(le,G)}function Ve(){return G}function we(e,r){return Ee(le,e,r)}function Se(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 rt(e){return Le=ue=1,et=re(le=e),G=0,[]}function tt(e){return le="",e}function Ye(e){return Qr(we(G-1,fr(e===91?e+2:e===40?e+1:e)))}function Nn(e){for(;(W=te())&&W<33;)K();return Se(e)>2||Se(W)>3?"":" "}function jn(e,r){for(;--r&&K()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return we(e,Ve()+(r<6&&te()==32&&K()==32))}function fr(e){for(;K();)switch(W){case e:return G;case 34:case 39:e!==34&&e!==39&&fr(W);break;case 40:e===41&&fr(e);break;case 92:K();break}return G}function In(e,r){for(;K()&&e+W!==57;)if(e+W===84&&te()===47)break;return"/*"+we(r,G-1)+"*"+Fe(e===47?e:K())}function Dn(e){for(;!Se(te());)K();return we(e,G)}function Fn(e){return tt(ze("",null,null,null,[""],e=rt(e),0,[0],e))}function ze(e,r,t,n,a,i,u,c,p){for(var m=0,d=0,g=u,y=0,F=0,j=0,w=1,V=1,_=1,E=0,N="",M=a,l=i,z=n,A=N;V;)switch(j=E,E=K()){case 40:if(j!=108&&B(A,g-1)==58){ur(A+=T(Ye(E),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:A+=Ye(E);break;case 9:case 10:case 13:case 32:A+=Nn(j);break;case 92:A+=jn(Ve()-1,7);continue;case 47:switch(te()){case 42:case 47:Me(Mn(In(K(),Ve()),r,t),p);break;default:A+="/"}break;case 123*w:c[m++]=re(A)*_;case 125*w:case 59:case 0:switch(E){case 0:case 125:V=0;case 59+d:_==-1&&(A=T(A,/\f/g,"")),F>0&&re(A)-g&&Me(F>32?ot(A+";",n,t,g-1):ot(T(A," ","")+";",n,t,g-2),p);break;case 59:A+=";";default:if(Me(z=nt(A,r,t,m,d,a,c,N,M=[],l=[],g),i),E===123)if(d===0)ze(A,r,z,z,M,i,g,c,l);else switch(y===99&&B(A,3)===110?100:y){case 100:case 108:case 109:case 115:ze(e,z,z,n&&Me(nt(e,z,z,0,0,a,c,N,a,M=[],g),l),a,l,g,c,n?M:l);break;default:ze(A,z,z,z,[""],l,0,c,l)}}m=d=F=0,w=_=1,N=A="",g=u;break;case 58:g=1+re(A),F=j;default:if(w<1){if(E==123)--w;else if(E==125&&w++==0&&$n()==125)continue}switch(A+=Fe(E),E*w){case 38:_=d>0?1:(A+="\f",-1);break;case 44:c[m++]=(re(A)-1)*_,_=1;break;case 64:te()===45&&(A+=Ye(K())),y=te(),d=g=re(N=A+=Dn(Ve())),E++;break;case 45:j===45&&re(A)==2&&(w=0)}}return i}function nt(e,r,t,n,a,i,u,c,p,m,d){for(var g=a-1,y=a===0?i:[""],F=lr(y),j=0,w=0,V=0;j<n;++j)for(var _=0,E=Ee(e,g+1,g=Tn(w=u[j])),N=e;_<F;++_)(N=Qr(w>0?y[_]+" "+E:T(E,/&\f/g,y[_])))&&(p[V++]=N);return We(e,r,t,a===0?sr:c,p,m,d)}function Mn(e,r,t){return We(e,r,t,ir,Fe(An()),Ee(e,2,-2),0)}function ot(e,r,t,n){return We(e,r,t,cr,Ee(e,0,n),Ee(e,n+1,-1),n)}function fe(e,r){for(var t="",n=lr(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Ln(e,r,t,n){switch(e.type){case Cn:if(e.children.length)break;case _n:case cr:return e.return=e.return||e.value;case ir:return"";case Xr:return e.return=e.value+"{"+fe(e.children,n)+"}";case sr:e.value=e.props.join(",")}return re(t=fe(e.children,n))?e.return=e.value+"{"+t+"}":""}function Wn(e){var r=lr(e);return function(t,n,a,i){for(var u="",c=0;c<r;c++)u+=e[c](t,n,a,i)||"";return u}}function Vn(e){return function(r){r.root||(r=r.return)&&e(r)}}function Yn(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var zn=function(r,t,n){for(var a=0,i=0;a=i,i=te(),a===38&&i===12&&(t[n]=1),!Se(i);)K();return we(r,G)},Bn=function(r,t){var n=-1,a=44;do switch(Se(a)){case 0:a===38&&te()===12&&(t[n]=1),r[n]+=zn(G-1,t,n);break;case 2:r[n]+=Ye(a);break;case 4:if(a===44){r[++n]=te()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=Fe(a)}while(a=K());return r},Un=function(r,t){return tt(Bn(rt(r),t))},at=new WeakMap,qn=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!at.get(n))&&!a){at.set(r,!0);for(var i=[],u=Un(t,i),c=n.props,p=0,m=0;p<u.length;p++)for(var d=0;d<c.length;d++,m++)r.props[m]=i[p]?u[p].replace(/&\f/g,c[d]):c[d]+" "+u[p]}}},Gn=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}},Hn="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Kn=function(r){return r.type==="comm"&&r.children.indexOf(Hn)>-1},Jn=function(r){return function(t,n,a){if(!(t.type!=="rule"||r.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var u=!!t.parent,c=u?t.parent.children:a,p=c.length-1;p>=0;p--){var m=c[p];if(m.line<t.line)break;if(m.column<t.column){if(Kn(m))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},it=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},Zn=function(r,t){for(var n=r-1;n>=0;n--)if(!it(t[n]))return!0;return!1},st=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},Xn=function(r,t,n){it(r)&&(r.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."),st(r)):Zn(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),st(r)))};function ct(e,r){switch(Rn(e,r)){case 5103:return C+"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 C+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+De+e+U+e+e;case 6828:case 4268:return C+e+U+e+e;case 6165:return C+e+U+"flex-"+e+e;case 5187:return C+e+T(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return C+e+U+"flex-item-"+T(e,/flex-|-self/,"")+e;case 4675:return C+e+U+"flex-line-pack"+T(e,/align-content|flex-|-self/,"")+e;case 5548:return C+e+U+T(e,"shrink","negative")+e;case 5292:return C+e+U+T(e,"basis","preferred-size")+e;case 6060:return C+"box-"+T(e,"-grow","")+C+e+U+T(e,"grow","positive")+e;case 4554:return C+T(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,C+"$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(re(e)-1-r>6)switch(B(e,r+1)){case 109:if(B(e,r+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+De+(B(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch")?ct(T(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(B(e,r+1)!==115)break;case 6444:switch(B(e,re(e)-3-(~ur(e,"!important")&&10))){case 107:return T(e,":",":"+C)+e;case 101:return T(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(B(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(B(e,r+11)){case 114:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+U+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return C+e+U+e+e}return e}var Qn=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case cr:r.return=ct(r.value,r.length);break;case Xr:return fe([xe(r,{value:T(r.value,"@","@"+C)})],a);case sr:if(r.length)return Pn(r.props,function(i){switch(kn(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([xe(r,{props:[T(i,/:(read-\w+)/,":"+De+"$1")]})],a);case"::placeholder":return fe([xe(r,{props:[T(i,/:(plac\w+)/,":"+C+"input-$1")]}),xe(r,{props:[T(i,/:(plac\w+)/,":"+De+"$1")]}),xe(r,{props:[T(i,/:(plac\w+)/,U+"input-$1")]})],a)}return""})}},eo=[Qn],ro=function(r){var t=r.key;if(process.env.NODE_ENV!=="production"&&!t)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.
|
|
32
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var V=w.getAttribute("data-emotion");V.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=r.stylisPlugins||eo;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},u,c=[];u=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(w){for(var V=w.getAttribute("data-emotion").split(" "),_=1;_<V.length;_++)i[V[_]]=!0;c.push(w)});var p,m=[qn,Gn];process.env.NODE_ENV!=="production"&&m.push(Jn({get compat(){return j.compat}}),Xn);{var d,g=[Ln,process.env.NODE_ENV!=="production"?function(w){w.root||(w.return?d.insert(w.return):w.value&&w.type!==ir&&d.insert(w.value+"{}"))}:Vn(function(w){d.insert(w)})],y=Wn(m.concat(a,g)),F=function(V){return fe(Fn(V),y)};p=function(V,_,E,N){d=E,process.env.NODE_ENV!=="production"&&_.map!==void 0&&(d={insert:function(l){E.insert(l+_.map)}}),F(V?V+"{"+_.styles+"}":_.styles),N&&(j.inserted[_.name]=!0)}}var j={key:t,sheet:new Sn({key:t,container:u,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:p};return j.sheet.hydrate(c),j},dr={exports:{}},R={};/** @license React v16.13.1
|
|
33
33
|
* react-is.production.min.js
|
|
34
34
|
*
|
|
35
35
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var ut;function to(){if(ut)return
|
|
39
|
+
*/var ut;function to(){if(ut)return R;ut=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,F=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,V=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(l){if(typeof l=="object"&&l!==null){var z=l.$$typeof;switch(z){case r:switch(l=l.type,l){case p:case m:case n:case i:case a:case g:return l;default:switch(l=l&&l.$$typeof,l){case c:case d:case j:case F:case u:return l;default:return z}}case t:return z}}}function M(l){return N(l)===m}return R.AsyncMode=p,R.ConcurrentMode=m,R.ContextConsumer=c,R.ContextProvider=u,R.Element=r,R.ForwardRef=d,R.Fragment=n,R.Lazy=j,R.Memo=F,R.Portal=t,R.Profiler=i,R.StrictMode=a,R.Suspense=g,R.isAsyncMode=function(l){return M(l)||N(l)===p},R.isConcurrentMode=M,R.isContextConsumer=function(l){return N(l)===c},R.isContextProvider=function(l){return N(l)===u},R.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===r},R.isForwardRef=function(l){return N(l)===d},R.isFragment=function(l){return N(l)===n},R.isLazy=function(l){return N(l)===j},R.isMemo=function(l){return N(l)===F},R.isPortal=function(l){return N(l)===t},R.isProfiler=function(l){return N(l)===i},R.isStrictMode=function(l){return N(l)===a},R.isSuspense=function(l){return N(l)===g},R.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===m||l===i||l===a||l===g||l===y||typeof l=="object"&&l!==null&&(l.$$typeof===j||l.$$typeof===F||l.$$typeof===u||l.$$typeof===c||l.$$typeof===d||l.$$typeof===V||l.$$typeof===_||l.$$typeof===E||l.$$typeof===w)},R.typeOf=N,R}var k={};/** @license React v16.13.1
|
|
40
40
|
* react-is.development.js
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var lt;function no(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,
|
|
46
|
+
*/var lt;function no(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,F=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,V=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(h){return typeof h=="string"||typeof h=="function"||h===n||h===m||h===i||h===a||h===g||h===y||typeof h=="object"&&h!==null&&(h.$$typeof===j||h.$$typeof===F||h.$$typeof===u||h.$$typeof===c||h.$$typeof===d||h.$$typeof===V||h.$$typeof===_||h.$$typeof===E||h.$$typeof===w)}function M(h){if(typeof h=="object"&&h!==null){var Pe=h.$$typeof;switch(Pe){case r:var me=h.type;switch(me){case p:case m:case n:case i:case a:case g:return me;default:var se=me&&me.$$typeof;switch(se){case c:case d:case j:case F:case u:return se;default:return Pe}}case t:return Pe}}}var l=p,z=m,A=c,Er=u,qe=r,xr=d,wr=n,Ge=j,J=F,oe=t,ie=i,He=a,Ke=g,Ce=!1;function Je(h){return Ce||(Ce=!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.")),Te(h)||M(h)===p}function Te(h){return M(h)===m}function Ze(h){return M(h)===c}function Xe(h){return M(h)===u}function Qe(h){return typeof h=="object"&&h!==null&&h.$$typeof===r}function Sr(h){return M(h)===d}function _r(h){return M(h)===n}function Oe(h){return M(h)===j}function Re(h){return M(h)===F}function pe(h){return M(h)===t}function ke(h){return M(h)===i}function he(h){return M(h)===a}function Cr(h){return M(h)===g}k.AsyncMode=l,k.ConcurrentMode=z,k.ContextConsumer=A,k.ContextProvider=Er,k.Element=qe,k.ForwardRef=xr,k.Fragment=wr,k.Lazy=Ge,k.Memo=J,k.Portal=oe,k.Profiler=ie,k.StrictMode=He,k.Suspense=Ke,k.isAsyncMode=Je,k.isConcurrentMode=Te,k.isContextConsumer=Ze,k.isContextProvider=Xe,k.isElement=Qe,k.isForwardRef=Sr,k.isFragment=_r,k.isLazy=Oe,k.isMemo=Re,k.isPortal=pe,k.isProfiler=ke,k.isStrictMode=he,k.isSuspense=Cr,k.isValidElementType=N,k.typeOf=M}()),k}process.env.NODE_ENV==="production"?dr.exports=to():dr.exports=no();var oo=dr.exports,ft=oo,ao={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},io={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dt={};dt[ft.ForwardRef]=ao,dt[ft.Memo]=io;var so=!0;function co(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):n+=a+" "}),n}var pt=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||so===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},uo=function(r,t,n){pt(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function lo(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var fo={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},ht=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
47
47
|
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';".
|
|
48
48
|
You can read more about this here:
|
|
49
49
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,po="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ho=/[A-Z]|^ms/g,mt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pr=function(r){return r.charCodeAt(1)===45},vt=function(r){return r!=null&&typeof r!="boolean"},hr=Yn(function(e){return pr(e)?e:e.replace(ho,"-$&").toLowerCase()}),Be=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(mt,function(n,a,i){return Q={name:a,styles:i,next:Q},a})}return fo[r]!==1&&!pr(r)&&typeof t=="number"&&t!==0?t+"px":t};if(process.env.NODE_ENV!=="production"){var mo=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vo=["normal","none","initial","inherit","unset"],bo=Be,go=/^-ms-/,yo=/-(.)/g,bt={};Be=function(r,t){if(r==="content"&&(typeof t!="string"||vo.indexOf(t)===-1&&!mo.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=bo(r,t);return n!==""&&!pr(r)&&r.indexOf("-")!==-1&&bt[r]===void 0&&(bt[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(go,"ms-").replace(yo,function(a,i){return i.toUpperCase()})+"?")),n}}var gt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _e(e,r,t){if(t==null)return"";if(t.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&t.toString()==="NO_COMPONENT_SELECTOR")throw new Error(gt);return t}switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return Q={name:t.name,styles:t.styles,next:Q},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)Q={name:n.name,styles:n.styles,next:Q},n=n.next;var a=t.styles+";";return process.env.NODE_ENV!=="production"&&t.map!==void 0&&(a+=t.map),a}return Eo(e,r,t)}case"function":{if(e!==void 0){var i=Q,u=t(e);return Q=i,_e(e,r,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 c=[],p=t.replace(mt,function(m,d,g){var y="animation"+c.length;return c.push("const "+y+" = keyframes`"+g.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+y+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+p+"`"]).join(`
|
|
@@ -51,5 +51,5 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
51
51
|
|
|
52
52
|
You should wrap it with \`css\` like this:
|
|
53
53
|
|
|
54
|
-
`+("css`"+p+"`"))}break}return t}function Eo(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=_e(e,r,t[a])+";";else for(var i in t){var u=t[i];if(typeof u!="object")vt(u)&&(n+=hr(i)+":"+Be(i,u)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(gt);if(Array.isArray(u)&&typeof u[0]=="string"&&r==null)for(var c=0;c<u.length;c++)vt(u[c])&&(n+=hr(i)+":"+Be(i,u[c])+";");else{var p=_e(e,r,u);switch(i){case"animation":case"animationName":{n+=hr(i)+":"+p+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(po),n+=i+"{"+p+"}"}}}}return n}var yt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Et;process.env.NODE_ENV!=="production"&&(Et=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Q,xt=function(r,t,n){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,i="";Q=void 0;var u=r[0];u==null||u.raw===void 0?(a=!1,i+=_e(n,t,u)):(process.env.NODE_ENV!=="production"&&u[0]===void 0&&console.error(ht),i+=u[0]);for(var c=1;c<r.length;c++)i+=_e(n,t,r[c]),a&&(process.env.NODE_ENV!=="production"&&u[c]===void 0&&console.error(ht),i+=u[c]);var p;process.env.NODE_ENV!=="production"&&(i=i.replace(Et,function(y){return p=y,""})),yt.lastIndex=0;for(var m="",d;(d=yt.exec(i))!==null;)m+="-"+d[1];var g=lo(i)+m;return process.env.NODE_ENV!=="production"?{name:g,styles:i,map:p,next:Q,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:g,styles:i,next:Q}},xo=function(r){return r()},wo=ne.useInsertionEffect?ne.useInsertionEffect:!1,So=wo||xo,Ue={}.hasOwnProperty,mr=ne.createContext(typeof HTMLElement<"u"?ro({key:"css"}):null);process.env.NODE_ENV!=="production"&&(mr.displayName="EmotionCacheContext"),mr.Provider;var _o=function(r){return
|
|
55
|
-
`),n=0;n<t.length;n++){var a=Co(t[n]);if(a){if(To.has(a))break;if(/^[A-Z]/.test(a))return Oo(a)}}},vr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",br="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",_t=function(r,t){if(process.env.NODE_ENV!=="production"&&typeof t.css=="string"&&t.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`"+t.css+"`");var n={};for(var a in t)Ue.call(t,a)&&(n[a]=t[a]);if(n[vr]=r,process.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||t.css.name.indexOf("-")===-1)){var i=
|
|
54
|
+
`+("css`"+p+"`"))}break}return t}function Eo(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=_e(e,r,t[a])+";";else for(var i in t){var u=t[i];if(typeof u!="object")vt(u)&&(n+=hr(i)+":"+Be(i,u)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(gt);if(Array.isArray(u)&&typeof u[0]=="string"&&r==null)for(var c=0;c<u.length;c++)vt(u[c])&&(n+=hr(i)+":"+Be(i,u[c])+";");else{var p=_e(e,r,u);switch(i){case"animation":case"animationName":{n+=hr(i)+":"+p+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(po),n+=i+"{"+p+"}"}}}}return n}var yt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Et;process.env.NODE_ENV!=="production"&&(Et=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Q,xt=function(r,t,n){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,i="";Q=void 0;var u=r[0];u==null||u.raw===void 0?(a=!1,i+=_e(n,t,u)):(process.env.NODE_ENV!=="production"&&u[0]===void 0&&console.error(ht),i+=u[0]);for(var c=1;c<r.length;c++)i+=_e(n,t,r[c]),a&&(process.env.NODE_ENV!=="production"&&u[c]===void 0&&console.error(ht),i+=u[c]);var p;process.env.NODE_ENV!=="production"&&(i=i.replace(Et,function(y){return p=y,""})),yt.lastIndex=0;for(var m="",d;(d=yt.exec(i))!==null;)m+="-"+d[1];var g=lo(i)+m;return process.env.NODE_ENV!=="production"?{name:g,styles:i,map:p,next:Q,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:g,styles:i,next:Q}},xo=function(r){return r()},wo=ne.useInsertionEffect?ne.useInsertionEffect:!1,So=wo||xo,Ue={}.hasOwnProperty,mr=ne.createContext(typeof HTMLElement<"u"?ro({key:"css"}):null);process.env.NODE_ENV!=="production"&&(mr.displayName="EmotionCacheContext"),mr.Provider;var _o=function(r){return $.forwardRef(function(t,n){var a=$.useContext(mr);return r(t,a,n)})},wt=ne.createContext({});process.env.NODE_ENV!=="production"&&(wt.displayName="EmotionThemeContext");var St=function(r){var t=r.split(".");return t[t.length-1]},Co=function(r){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(r),t))return St(t[1])},To=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Oo=function(r){return r.replace(/\$/g,"-")},Ro=function(r){if(r)for(var t=r.split(`
|
|
55
|
+
`),n=0;n<t.length;n++){var a=Co(t[n]);if(a){if(To.has(a))break;if(/^[A-Z]/.test(a))return Oo(a)}}},vr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",br="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",_t=function(r,t){if(process.env.NODE_ENV!=="production"&&typeof t.css=="string"&&t.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`"+t.css+"`");var n={};for(var a in t)Ue.call(t,a)&&(n[a]=t[a]);if(n[vr]=r,process.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||t.css.name.indexOf("-")===-1)){var i=Ro(new Error().stack);i&&(n[br]=i)}return n},ko=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return pt(t,n,a),So(function(){return uo(t,n,a)}),null},Ct=_o(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[vr],i=[n],u="";typeof e.className=="string"?u=co(r.registered,i,e.className):e.className!=null&&(u=e.className+" ");var c=xt(i,void 0,ne.useContext(wt));if(process.env.NODE_ENV!=="production"&&c.name.indexOf("-")===-1){var p=e[br];p&&(c=xt([c,"label:"+p+";"]))}u+=r.key+"-"+c.name;var m={};for(var d in e)Ue.call(e,d)&&d!=="css"&&d!==vr&&(process.env.NODE_ENV==="production"||d!==br)&&(m[d]=e[d]);return m.ref=t,m.className=u,ne.createElement(ne.Fragment,null,ne.createElement(ko,{cache:r,serialized:c,isStringTag:typeof a=="string"}),ne.createElement(a,m))});process.env.NODE_ENV!=="production"&&(Ct.displayName="EmotionCssPropInternal");var Tt=Ct;function de(e,r,t){return Ue.call(r,"css")?O.jsx(Tt,_t(e,r),t):O.jsx(e,r,t)}function Ot(e,r,t){return Ue.call(r,"css")?O.jsxs(Tt,_t(e,r),t):O.jsxs(e,r,t)}const gr=D("div",{shouldForwardProp:e=>e!=="required"&&e!=="inline"&&e!=="reverse"})(({theme:e,required:r,inline:t,reverse:n})=>({display:"flex",gap:"0.25em",alignItems:t?"center":"flex-start",flexDirection:`${t?"row":"column"}${n?"-reverse":""}`,"& label":{position:"relative",userSelect:"none",width:"fit-content"},"& label::after":{position:"absolute",top:0,right:"-0.75em",color:e.colors.red.default,content:r?'"*"':'""'}})),Rt=D.p(({theme:e})=>({fontSize:"12px",color:e.colors.red.default}));function Po({name:e,label:r,checked:t=!1,errors:n=[],onChange:a,required:i=!1,reverse:u,inline:c,...p}){const[m,d]=$.useState(t);if(typeof window>"u")return de($.Fragment,{});function g({target:y}){d(y.checked),a&&a(y.name,y.checked)}return Ot(gr,{inline:c,reverse:u,required:i,children:[de("label",{htmlFor:e,title:r,children:r}),de(Gt,{...p,onChange:g,checked:m,placeholder:p.placeholder??"Type something...",name:e,id:e,css:{width:"fit-content"}}),n.length>0&&n.map(y=>de(Rt,{children:y},y))]})}const Ao=D.form({width:"100%",display:"flex",gap:"1em",flexDirection:"column"}),$o=D.input(({theme:e})=>({width:"100%",color:e.colors.font,backgroundColor:e.colors.secondary,padding:"0.75em",border:`1px solid ${e.colors.grey.light}`,borderBottom:`2px solid ${e.colors.grey.light}`,borderRadius:e.borders.radius.m,transition:e.transitions.delay.normal,"&:focus":{borderBottom:`2px solid ${e.colors.blue.default}`},"&:disabled":{opacity:.85},"&::placeholder":{fontStyle:"italic",color:e.colors.grey.default}}));function No({name:e,label:r,value:t="",errors:n=[],onChange:a,required:i=!1,...u}){const[c,p]=$.useState(t);function m({target:d}){p(d.value),a&&a(d.name,d.value)}return O.jsxs(gr,{required:i,children:[O.jsx("label",{htmlFor:e,title:r,children:r}),O.jsx($o,{...u,name:e,onChange:m,value:c,placeholder:u.placeholder??"Type something..."}),n.length>0&&n.map(d=>O.jsx(Rt,{children:d},d))]})}function jo({name:e,label:r,value:t,options:n,onChangeCallback:a,formatOptionLabel:i,required:u=!1,...c}){const p=X.useTheme(),[m,d]=$.useState(()=>n.find(y=>y.value===t)??null),g=y=>{a==null||a(y.value),d(y)};return Ot(gr,{required:u,children:[r&&de("label",{htmlFor:e,title:`${e} field`,children:r}),de(Ht,{onChange:y=>g(y),options:n,isDisabled:c.disabled,menuPlacement:"auto",formatOptionLabel:i?(y,F)=>i(y,F):void 0,css:{width:"100%",color:p.colors.black},className:c.className,value:m})]})}const kt="__minimstuff_dark_theme__",Io={borders:{radius:{xs:"1px",s:"2px",m:"3px",l:"4px",xl:"5px"}},medias:{mobile:"768px",tablet:"1024px",small_desktop:"1280px",medium_desktop:"1440px",large_desktop:"1920px",xlarge_desktop:"2560px"},transitions:{delay:{fast:"0.075s",normal:"0.15s",slow:"0.3s"}},fontSizes:{xs:"10px",s:"12px",m:"14px",l:"16px",xl:"18px"}},Do={font:"#f0eef6",background:"#222831",secondary:"#323a47",black:"#333333",white:"#ffffff",grey:ee({color:"#aaaaaa"}),blue:ee({color:"#4fadfc"}),green:ee({color:"#09b909"}),red:ee({color:"red"}),yellow:ee({color:"#ffc107"}),boxShadow:`0 0 1em 0 ${ae("#111",.4)}`},Fo={font:"#333",background:"#f0eef6",secondary:"#fff",black:"#333",white:"#ffffff",grey:ee({color:"#777777"}),blue:ee({color:"#3f88c5"}),green:ee({color:"green"}),red:ee({color:"red"}),yellow:ee({color:"#ffc107"}),boxShadow:`0 0 1em 0 ${ae("#aaa",.4)}`},yr=$.createContext({isDarkTheme:!0,toggleDarkTheme:e=>{}});function Mo({children:e,onPreferenceChange:r}){const[t,n]=$.useState(()=>localStorage.getItem(kt)==="true"),a=i=>{n(i),r==null||r(i),localStorage.setItem(kt,String(i))};return O.jsx(X.ThemeProvider,{theme:{...Io,colors:t?Do:Fo},children:O.jsxs(yr.Provider,{value:{isDarkTheme:t,toggleDarkTheme:a},children:[O.jsx(Pt,{}),e]})})}function Pt(){const e=X.useTheme(),r=X.css({"*":{boxSizing:"border-box",outline:0,margin:0,padding:0,scrollBehavior:"smooth"},".reset":{backgroundColor:"inherit",color:"inherit",padding:0,margin:0,border:0},a:{width:"fit-content",color:e.colors.blue.default,textDecoration:"none",borderBottom:"1px solid transparent"},b:{fontWeight:600,letterSpacing:"0.5px"},"h1, h2, h3, h4, h5, h6":{fontWeight:"500",color:e.colors.blue.default},kbd:{textShadow:"0 1px 0 #fff",fontSize:"12px",color:"rgb(51, 51, 51)",backgroundColor:"rgb(247, 247, 247)",padding:"0.25em 0.5em",borderRadius:"3px",border:"1px solid rgb(204, 204, 204)",boxShadow:"0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset",display:"inline-block"},hr:{width:"100%",marginBlock:"1em",border:0,borderTop:`1px solid ${e.colors.background}`}}),t=X.css({"html, body, #app":{height:"100svh",width:"100%",fontFamily:"'Poppins', sans-serif",fontSize:"14px",color:e.colors.font,backgroundColor:e.colors.background,display:"flex",alignItems:"center",flexDirection:"column"}}),n=X.css({"::-webkit-scrollbar":{height:"0.45em",width:"0.45em"},"::-webkit-scrollbar-track":{borderRadius:e.borders.radius.m},"::-webkit-scrollbar-thumb":{background:e.colors.blue.default,borderRadius:e.borders.radius.m,"&:hover":{background:e.colors.blue.dark}}}),a=X.css({table:{height:"auto",width:"100%",borderCollapse:"collapse",borderRadius:e.borders.radius.m,overflow:"hidden"},th:{textAlign:"center",fontWeight:400,backgroundColor:e.colors.secondary},"td, th":{padding:"0.45em"},"th, td":{whiteSpace:"nowrap"},"tr:nth-of-type(even)":{backgroundColor:e.colors.secondary}});return O.jsx(X.Global,{styles:[r,t,n,a]})}const Lo=()=>$.useContext(yr);b.Button=Jt,b.Checkbox=Po,b.Dropdown=on,b.DropdownContainer=Ir,b.DropdownItemButton=an,b.DropdownItemLink=sn,b.DropdownLabel=Dr,b.ExternalLink=cn,b.Form=Ao,b.Modal=gn,b.ModalBody=Lr,b.ModalCloseBtn=Yr,b.ModalContainer=Wr,b.ModalHeader=Vr,b.ModalWrapper=zr,b.RoundedImage=yn,b.Selector=jo,b.StyleReset=Pt,b.TabItem=Kr,b.TabList=Jr,b.TabPanel=Zr,b.Tabs=En,b.TextEllipsis=Hr,b.Textbox=No,b.ThemeContextProvider=Mo,b._ThemeContext=yr,b.useClickOutside=nr,b.useGlobalHotkeys=or,b.useShortcut=ar,b.useThemeSwitcher=Lo,b.useToggle=Fr,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|