@pomegranate-ui/maracuya-ui
Version:
Maracuya is a design system built with React, Typescript & emotion
6 lines • 416 kB
JavaScript
import e,{useState as t}from"react";import{css as n,jsx as r}from"@emotion/core";import{IconContext as o}from"react-icons";function a(){return(a=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}).apply(this,arguments)}function i(e,t){return t||(t=e.slice(0)),e.raw=t,e}var l={fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1.125rem",lg:"1.25rem",xl:"1.5rem","2xl":"1.875rem","3xl":"2.5rem","4xl":"2.85rem","5xl":"3.25rem","6xl":"3.75rem"},fontWeight:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900,inherit:"inherit"},colors:{black:{900:"hsla(0, 0%, 0%, 1)",800:"hsla(0, 0%, 4%, 1)",700:"hsla(0, 0%, 8%, 1)",600:"hsla(0, 0%, 12%, 1)",500:"hsla(0, 0%, 16%, 1)",400:"hsla(0, 0%, 20%, 1)",300:"hsla(0, 0%, 24%, 1)",200:"hsla(0, 0%, 28%, 1)",100:"hsla(0, 0%, 32%, 1)"},gray:{900:"hsla(0, 0%, 35%,1)",800:"hsla(0, 0%, 40%,1)",700:"hsla(0, 0%, 45%,1)",600:"hsla(0, 0%, 50%,1)",500:"hsla(0, 0%, 55%,1)",400:"hsla(0, 0%, 60%,1)",300:"hsla(0, 0%, 65%,1)",200:"hsla(0, 0%, 70%,1)",100:"hsla(0, 0%, 75%,1)"},white:{900:"hsla(0, 0%, 100%, 1)",800:"hsla(0, 0%, 99%, 1)",700:"hsla(0, 0%, 98%, 1)",600:"hsla(0, 0%, 97%, 1)",500:"hsla(0, 0%, 96%, 1)",400:"hsla(0, 0%, 95%, 1)",300:"hsla(0, 0%, 94%, 1)",200:"hsla(0, 0%, 93%, 1)",100:"hsla(0, 0%, 92%, 1)"},muted:{900:"hsla(291, 11%, 64%,1)",800:"hsla(291, 11%, 67%,1)",700:"hsla(291, 11%, 70%,1)",600:"hsla(291, 11%, 73%,1)",500:"hsla(291, 11%, 76%,1)",400:"hsla(291, 11%, 79%,1)",300:"hsla(291, 11%, 82%,1)",200:"hsla(291, 11%, 85%,1)",100:"hsla(291, 11%, 88%,1)"},basic:{blue:{900:"hsla(235, 100%, 38%, 1)",800:"hsla(235, 100%, 41%, 1)",700:"hsla(235, 100%, 44%, 1)",600:"hsla(235, 100%, 47%, 1)",500:"hsla(235, 100%, 50%, 1)",400:"hsla(235, 100%, 53%, 1)",300:"hsla(235, 100%, 56%, 1)",200:"hsla(235, 100%, 59%, 1)",100:"hsla(235, 100%, 62%, 1)"},green:{900:"hsla(134, 61%, 29%,1)",800:"hsla(134, 61%, 33%,1)",700:"hsla(134, 61%, 35%,1)",600:"hsla(134, 61%, 38%,1)",500:"hsla(134, 61%, 41%,1)",400:"hsla(134, 61%, 44%,1)",300:"hsla(134, 61%, 47%,1)",200:"hsla(134, 61%, 50%,1)",100:"hsla(134, 61%, 53%,1)"},indigo:{900:"hsla(247, 75%, 33%, 1)",800:"hsla(247, 75%, 38%, 1)",700:"hsla(247, 75%, 43%, 1)",600:"hsla(247, 75%, 48%, 1)",500:"hsla(247, 75%, 53%, 1)",400:"hsla(247, 75%, 58%, 1)",300:"hsla(247, 75%, 63%, 1)",200:"hsla(247, 75%, 68%, 1)",100:"hsla(247, 75%, 73%, 1)"},orange:{900:"hsla(45, 96%, 36%, 1)",800:"hsla(45, 96%, 39%, 1)",700:"hsla(45, 96%, 42%, 1)",600:"hsla(45, 96%, 45%, 1)",500:"hsla(45, 96%, 48%, 1)",400:"hsla(45, 96%, 51%, 1)",300:"hsla(45, 96%, 54%, 1)",200:"hsla(45, 96%, 57%, 1)",100:"hsla(45, 96%, 60%, 1)"},pink:{900:"hsla(332, 79%, 38%,1)",800:"hsla(332, 79%, 43%,1)",700:"hsla(332, 79%, 48%,1)",600:"hsla(332, 79%, 53%,1)",500:"hsla(332, 79%, 58%,1)",400:"hsla(332, 79%, 63%,1)",300:"hsla(332, 79%, 68%,1)",200:"hsla(332, 79%, 73%,1)",100:"hsla(332, 79%, 78%,1)"},purple:{900:"hsla(261, 51%, 35%, 1)",800:"hsla(261, 51%, 39%, 1)",700:"hsla(261, 51%, 43%, 1)",600:"hsla(261, 51%, 47%, 1)",500:"hsla(261, 51%, 51%, 1)",400:"hsla(261, 51%, 55%, 1)",300:"hsla(261, 51%, 59%, 1)",200:"hsla(261, 51%, 63%, 1)",100:"hsla(261, 51%, 67%, 1)"},red:{900:"hsla(354, 96%, 31%, 1)",800:"hsla(354, 96%, 34%, 1)",700:"hsla(354, 96%, 37%, 1)",600:"hsla(354, 96%, 40%, 1)",500:"hsla(354, 96%, 43%, 1)",400:"hsla(354, 96%, 46%, 1)",300:"hsla(354, 96%, 49%, 1)",200:"hsla(354, 96%, 52%, 1)",100:"hsla(354, 96%, 55%, 1)"},teal:{900:"hsla(162, 73%, 34%,1)",800:"hsla(162, 73%, 37%,1)",700:"hsla(162, 73%, 40%,1)",600:"hsla(162, 73%, 43%,1)",500:"hsla(162, 73%, 46%,1)",400:"hsla(162, 73%, 49%,1)",300:"hsla(162, 73%, 52%,1)",200:"hsla(162, 73%, 55%,1)",100:"hsla(162, 73%, 58%,1)"},yellow:{900:"hsla(52, 100%, 40%, 1)",800:"hsla(52, 100%, 44%, 1)",700:"hsla(52, 100%, 48%, 1)",600:"hsla(52, 100%, 52%, 1)",500:"hsla(52, 100%, 61%, 1)",400:"hsla(52, 100%, 64%, 1)",300:"hsla(52, 100%, 68%, 1)",200:"hsla(52, 100%, 74%, 1)",100:"hsla(52, 100%, 80%, 1)"}},state:{primary:{900:"hsla(211, 100%, 27%, 1)",800:"hsla(211, 100%, 31%, 1)",700:"hsla(211, 100%, 35%, 1)",600:"hsla(211, 100%, 39%, 1)",500:"hsla(211, 100%, 43%, 1)",400:"hsla(211, 100%, 47%, 1)",300:"hsla(211, 100%, 51%, 1)",200:"hsla(211, 100%, 54%, 1)",100:"hsla(211, 100%, 57%, 1)"},secondary:{900:"hsla(208, 7%, 26%, 1)",800:"hsla(208, 7%, 31%, 1)",700:"hsla(208, 7%, 36%, 1)",600:"hsla(208, 7%, 41%, 1)",500:"hsla(208, 7%, 46%, 1)",400:"hsla(208, 7%, 51%, 1)",300:"hsla(208, 7%, 56%, 1)",200:"hsla(208, 7%, 62%, 1)",100:"hsla(208, 7%, 68%, 1)"},success:{900:"hsla(134, 61%, 21%, 1)",800:"hsla(134, 61%, 24%, 1)",700:"hsla(134, 61%, 27%, 1)",600:"hsla(134, 61%, 30%, 1)",500:"hsla(134, 61%, 33%, 1)",400:"hsla(134, 61%, 36%, 1)",300:"hsla(134, 61%, 39%, 1)",200:"hsla(134, 61%, 42%, 1)",100:"hsla(134, 61%, 45%, 1)"},info:{900:"hsla(188, 78%, 20%, 1)",800:"hsla(188, 78%, 23%, 1)",700:"hsla(188, 78%, 25%, 1)",600:"hsla(188, 78%, 27%, 1)",500:"hsla(188, 100%, 29%,1)",400:"hsla(188, 78%, 35%, 1)",300:"hsla(188, 78%, 38%, 1)",200:"hsla(188, 78%, 41%, 1)",100:"hsla(188, 78%, 44%, 1)"},warning:{900:"hsla(45, 100%, 39%, 1)",800:"hsla(45, 100%, 42%, 1)",700:"hsla(45, 100%, 45%, 1)",600:"hsla(45, 100%, 48%, 1)",500:"hsla(45, 100%, 51%, 1)",400:"hsla(45, 100%, 54%, 1)",300:"hsla(45, 100%, 57%, 1)",200:"hsla(45, 100%, 60%, 1)",100:"hsla(45, 100%, 63%, 1)"},danger:{900:"hsla(354, 70%, 38%, 1)",800:"hsla(354, 70%, 42%, 1)",700:"hsla(354, 70%, 46%, 1)",600:"hsla(354, 70%, 50%, 1)",500:"hsla(354, 70%, 53%, 1)",400:"hsla(354, 70%, 57%, 1)",300:"hsla(354, 70%, 60%, 1)",200:"hsla(354, 70%, 63%, 1)",100:"hsla(354, 70%, 67%, 1)"},light:{900:"hsla(210, 17%, 91%, 1)",800:"hsla(210, 17%, 92%, 1)",700:"hsla(210, 17%, 93%, 1)",600:"hsla(210, 17%, 94%, 1)",500:"hsla(210, 17%, 95%, 1)",400:"hsla(210, 17%, 96%, 1)",300:"hsla(210, 17%, 97%, 1)",200:"hsla(210, 17%, 98%, 1)",100:"hsla(210, 17%, 99%, 1)"},dark:{900:"hsla(210, 10%, 0%, 1)",800:"hsla(210, 10%, 8%, 1)",700:"hsla(210, 10%, 13%, 1)",600:"hsla(210, 10%, 18%, 1)",500:"hsla(210, 10%, 23%, 1)",400:"hsla(210, 10%, 28%, 1)",300:"hsla(210, 10%, 32%, 1)",200:"hsla(210, 10%, 37%, 1)",100:"hsla(210, 10%, 42%, 1)"}}}};function u(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return u=function(){return e},e}function s(){var e=i(["\n\tcolor: #212529;\n\tbackground-color: ",";\n"]);return s=function(){return e},e}function c(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return c=function(){return e},e}function f(){var e=i(["\n\tcolor: #212529;\n\tbackground-color:",";\n"]);return f=function(){return e},e}function d(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return d=function(){return e},e}function p(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\t"]);return p=function(){return e},e}function m(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return m=function(){return e},e}function h(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return h=function(){return e},e}var g=n(h(),l.colors.state.primary[500]),v=n(m(),l.colors.state.secondary[500]),y=n(p(),l.colors.state.success[500]),b=n(d(),l.colors.state.danger[500]),w=n(f(),l.colors.state.warning[500]),k=n(c(),l.colors.state.info[500]),x=n(s(),l.colors.state.light[500]),T=n(u(),l.colors.black[500]),E=function(e){return e.toString()+"px"},S={landscape:"(orientation: landscape)",portrait:"(orientation: portrait)"},C={xs:"(min-width: "+E(0)+")",ms:"(min-width: "+E(576)+")",sm:"(min-width: "+E(768)+")",md:"(min-width: "+E(992)+")",lg:"(min-width: "+E(1200)+")",xl:"(min-width: "+E(1400)+")"};function _(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return _=function(){return e},e}function P(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return P=function(){return e},e}function R(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return R=function(){return e},e}function N(){var e=i(["\n\tcolor: #212529;\n\tbackground-color:",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return N=function(){return e},e}function I(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return I=function(){return e},e}function D(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n\t"]);return D=function(){return e},e}function O(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return O=function(){return e},e}function z(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\tsvg{\n\t\tpath{\n\t\t\tfill:white;\n\t\t}\n\t}\n"]);return z=function(){return e},e}function M(){var e=i(["\n\tbackground-color: ",";\n"]);return M=function(){return e},e}function L(){var e=i(["\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\twidth: 100%;\n\theight: 100%;\n\ttransform: translate(-50%, -50%);\n\tobject-fit: cover;\n"]);return L=function(){return e},e}function F(){var e=i(["\n\twidth: 3.75rem;\n\t\theight: 3.75rem;\n\tsvg{\n\t\ttext{\n\t\t\tfont-size: 1.25rem;\n\t\t}\n\t}\n"]);return F=function(){return e},e}function A(){var e=i(["\n\twidth: 2.5rem;\n\t\theight: 2.5rem;\n\tsvg{\n\t\ttext{\n\t\t\tfont-size: 1rem;\n\t\t}\n\t}\n"]);return A=function(){return e},e}function U(){var e=i(["\n\twidth: 2rem;\n\theight: 2rem;\n\tsvg{\n\t\ttext{\n\t\t\tfont-size: 0.75rem;\n\t\t}\n\t}\n"]);return U=function(){return e},e}function W(){var e=i(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: center;\n\tborder-radius: 9999px;\n\toverflow: hidden;\n\tsvg {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\ttext {\n\t\t\tfont-weight: ",";\n\t\t}\n\t}\n"]);return W=function(){return e},e}var j=n(W(),l.fontWeight.bold),B=n(U()),V=n(A()),H=n(F()),Q=n(L()),q=n(M(),l.colors.gray[100]),$=n(z(),l.colors.state.primary[500]),Y=n(O(),l.colors.state.secondary[500]),K=n(D(),l.colors.state.success[500]),X=n(I(),l.colors.state.danger[500]),G=n(N(),l.colors.state.warning[500]),Z=n(R(),l.colors.state.info[500]),J=n(P(),l.colors.black[900],l.colors.state.light[500]),ee=n(_(),l.colors.black[500]),te=e.forwardRef(function(t,n){var o=t.style,i=t.modifier,l=void 0===i?"":i,u=t.active,s=void 0===u?"":u,c=t.className,f=t.color,d=void 0===f?"":f,p=t.src,m=t.initials,h=t.alt,g=t.size,v=void 0===g?"":g,y=t.ariaLabel,b=r("svg",null,r("text",{x:"50%",y:"50%",dy:"0.35em",fill:"currentColor",textAnchor:"middle"},null==m?void 0:m.toUpperCase())),w=r("img",{css:Q,src:p,alt:h}),k=r("svg",{viewBox:"0 0 40 40"},r("path",{fill:"black",d:"M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z"})),x=m?b:p?w:k,T=m||!p?{role:"img"}:{},E=a({className:[c,l,s].join(" ").trim(),style:a({},o),"aria-label":y||h,alt:h},T);return r(e.Fragment,null,r("div",Object.assign({css:[j,function(e){switch(e){case"primary":return $;case"secondary":return Y;case"success":return K;case"danger":return X;case"info":return Z;case"warning":return G;case"light":return J;case"dark":return ee;default:return q}}(d),function(e){switch(e){case"small":return B;case"large":return H;default:return V}}(v)]},E,{ref:n}),x))});function ne(){var e=i(["\n\tcolor: var(--color-black);\n\tbackground-color: #f9f9f9;\n\tborder: 1px solid ",";\n\ttransition: all .4s ease-in;\n\n\t&:hover,\n\t&:focus {\n\t\tcursor: pointer;\n\t\tborder: 1px solid ",";\n\t\tcolor: var(--color-white);\n\t\tbackground-color: ",";\n\t\ttransition: all .4s ease-out;\n\t}\n"]);return ne=function(){return e},e}function re(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return re=function(){return e},e}function oe(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return oe=function(){return e},e}function ae(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return ae=function(){return e},e}function ie(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return ie=function(){return e},e}function le(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return le=function(){return e},e}function ue(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return ue=function(){return e},e}function se(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return se=function(){return e},e}function ce(){var e=i(["\n\tborder-left: .5rem solid ",";\n"]);return ce=function(){return e},e}function fe(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n\tborder-left: .5rem solid ",";\n"]);return fe=function(){return e},e}function de(){var e=i(["\n\tposition: relative;\n\tpadding: .75rem 1rem;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row;\n\tfont-family: inherit;\n\tfont-size: ",";\n"]);return de=function(){return e},e}var pe=n(de(),l.fontSize.base),me=n(fe(),l.colors.black[900],l.colors.white[800],l.colors.white[300]),he=n(ce(),l.colors.state.primary[800]),ge=n(se(),l.colors.state.secondary[800]),ve=n(ue(),l.colors.state.success[800]),ye=n(le(),l.colors.state.danger[800]),be=n(ie(),l.colors.state.warning[800]),we=n(ae(),l.colors.state.info[800]),ke=n(oe(),l.colors.state.light[800]),xe=n(re(),l.colors.state.dark[800]),Te=n(ne(),l.colors.state.danger[500],l.colors.state.danger[500],l.colors.state.danger[500]),Ee=e.forwardRef(function(t,n){var o=t.style,i=t.modifier,l=t.active,u=t.children,s=t.color,c=void 0===s?"":s,f=t.text,d={className:[t.className,void 0===i?"":i,void 0===l?"":l].join(" ").trim(),style:a({},o),role:"alert"};return r(e.Fragment,null,r("div",Object.assign({css:[pe,function(e){switch(e){case"primary":return[g,he];case"secondary":return[v,ge];case"success":return[y,ve];case"danger":return[b,ye];case"info":return[k,we];case"warning":return[w,be];case"light":return[x,ke];case"dark":return[T,xe];case"ghost":return Te;default:return me}}(c)]},d,{ref:n}),f,u))});function Se(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n\tborder: 2px solid ",";\n\ttransition: all .4s ease-in;\n\tpadding: calc(0.5rem - 2px) calc(1rem - 2px);\n\t&:hover,\n\t&:focus {\n\t\tcursor: pointer;\n\t\tborder: 2px solid ",";\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t\ttransition: all .4s ease-out;\n\t}\n"]);return Se=function(){return e},e}function Ce(){var e=i(["\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n"]);return Ce=function(){return e},e}function _e(){var e=i(["\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t}\n"]);return _e=function(){return e},e}function Pe(){var e=i(["\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n"]);return Pe=function(){return e},e}function Re(){var e=i(["\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: ",";\n\t\tbackground-color:",";\n\t}\n"]);return Re=function(){return e},e}function Ne(){var e=i(["\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n"]);return Ne=function(){return e},e}function Ie(){var e=i(["\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n\t"]);return Ie=function(){return e},e}function De(){var e=i(["\n\t\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n"]);return De=function(){return e},e}function Oe(){var e=i(["\n\t&:hover,\n\t&:focus {\n\t\tcolor: white;\n\t\tbackground-color: ",";\n\t}\n"]);return Oe=function(){return e},e}function ze(){var e=i(["\n\tflex-direction: row-reverse;\n"]);return ze=function(){return e},e}function Me(){var e=i(["\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: center;\n"]);return Me=function(){return e},e}function Le(){var e=i(["\n\tdisplay: block;\n\tmargin: 0 0.25rem;\n"]);return Le=function(){return e},e}function Fe(){var e=i(["\n\tposition: relative;\n\tmargin: 0 0.25rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: center;\n"]);return Fe=function(){return e},e}function Ae(){var e=i(["\n\tpadding: .75rem 1.5rem;\n"]);return Ae=function(){return e},e}function Ue(){var e=i(["\n\tpadding: 0.5rem 1rem;\n"]);return Ue=function(){return e},e}function We(){var e=i(["\n\tpadding: .25rem .75rem;\n"]);return We=function(){return e},e}function je(){var e=i(["\n\tbox-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);\n"]);return je=function(){return e},e}function Be(){var e=i(["\n\tborder-radius: .25rem;\n"]);return Be=function(){return e},e}function Ve(){var e=i(["\n\tdisplay: flex;\n\twidth: 100%;\n"]);return Ve=function(){return e},e}function He(){var e=i(["\n\tbox-sizing: border-box;\n\tbackground-color: transparent;\n\tbackground-image: none;\n\tpadding: 0;\n\tborder: none;\n\tbox-sizing: border-box;\n\tuser-select: none;\n\toutline: none;\n\tfont-style: inherit;\n\tfont-variant: inherit;\n\tvertical-align: middle;\n\ttext-align: center;\n\ttext-decoration: none;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\tletter-spacing: 0.03rem;\n\tcursor: pointer;\n\n\tposition: relative;\n\tfont-family: inherit;\n\tfont-size: ",";\n\tbackground-color: ",";\n\tcolor: ",";\n\tdisplay: inline-flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n\tline-height: 1.5rem;\n\ttransition: all 0.45s ease-in;\n\toutline: none;\n\t&:hover {\n\t\tcursor: pointer;\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t\ttransition: all 0.45s ease-out;\n\t\toutline: none;\n\t}\n\t&:focus{\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t\ttransition: all 0.45s ease-out;\n\t\toutline: none;\n\t}\n\n\t&:hover,\n\t&:focus,\n\t&:active,\n\t&:focus:active {\n\t\toutline: none;\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n\n\t&[disabled],\n\t[disabled] & {\n\t\tcursor: not-allowed;\n\t\topacity: 0.65; \n\t}\n\n\t// @media "," {\n\t// \tbackground-color: ",";\n\t// }\n\n\t// @media "," {\n\t// \tbackground-color: ",";\n\t// }\n\n"]);return He=function(){return e},e}var Qe,qe=n(He(),l.fontSize.base,l.colors.white[200],l.colors.black[800],l.colors.black[900],l.colors.white[400],l.colors.black[900],l.colors.white[400],C.ms,l.colors.basic.red[500],C.sm,l.colors.basic.blue[500]),$e=n(Ve()),Ye=n(Be()),Ke=n(je()),Xe=n(We()),Ge=n(Ue()),Ze=n(Ae()),Je=n(Fe()),et=n(Le()),tt=n(Me()),nt=n(ze()),rt=n(Oe(),l.colors.state.primary[700]),ot=n(De(),l.colors.state.secondary[700]),at=n(Ie(),l.colors.state.success[600]),it=n(Ne(),l.colors.state.danger[700]),lt=n(Re(),l.colors.black[900],l.colors.state.warning[700]),ut=n(Pe(),l.colors.state.info[700]),st=n(_e(),l.colors.black[900],l.colors.state.light[700]),ct=n(Ce(),l.colors.black[700]),ft=n(Se(),l.colors.black[900],l.colors.white[700],l.colors.state.danger[500],l.colors.state.danger[500],l.colors.white[700],l.colors.state.danger[500]);!function(e){e.submit="submit",e.reset="reset",e.button="button"}(Qe||(Qe={}));var dt=function(e){switch(e){case"small":return Xe;case"medium":return Ge;case"large":return Ze;default:return Ge}},pt=e.forwardRef(function(t,n){var i,l=t.children,u=t.color,s=void 0===u?"":u,c=t.id,f=t.size,d=void 0===f?"medium":f,p=t.bordered,m=t.fullWidth,h=t.disableShadow,E=t.isDisabled,S=void 0!==E&&E,C=t.ariaLabel,_=t.inverted,P=t.text,R=t.style,N=t.srOnly,I=t.icon,D=t.role,O=t.isType,z=void 0===O?"":O,M=t.onClick,L=void 0!==_&&_?[tt,nt]:[tt],F=void 0!==p&&p?Ye:null,A=void 0!==h&&h?null:Ke,U=void 0!==m&&m?$e:null,W={className:[t.className,t.modifier,t.active].join(" ").trim(),style:a({},R),"aria-label":C||"button "+P,role:D||"button",type:(i=z,i===Qe.submit?Qe.submit:i===Qe.reset?Qe.reset:Qe.button),id:c,onClick:M,disabled:!!S};return r(e.Fragment,null,r(o.Provider,{value:{style:{verticalAlign:"middle"}}},r("button",Object.assign({css:[qe,dt(d),function(e){switch(e){case"primary":return[g,rt];case"secondary":return[v,ot];case"success":return[y,at];case"danger":return[b,it];case"info":return[k,ut];case"warning":return[w,lt];case"light":return[x,st];case"dark":return[T,ct];case"ghost":return ft;default:return null}}(s),F,A,U],ref:n},W),l||null,r("span",{css:L},I?r("span",{css:Je},I):null,P?r("span",{css:et},P):null),N||null)))});function mt(){var e=i(["\n\tposition: absolute;\n\ttop: 0;\n\toverflow: hidden;\n\twidth: 1px;\n\theight: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\tborder: 0;\n\tclip: rect(0 0 0 0);\n"]);return mt=function(){return e},e}var ht,gt=n(mt()),vt=e.forwardRef(function(t,n){return r(e.Fragment,null,r("span",{css:gt,ref:n},t.text))});function yt(){var e=i(["\n\t&:before{\n\t\tpadding-top: calc(3 / 4 * 100%);\n\t}\n"]);return yt=function(){return e},e}function bt(){var e=i(["\n\t&:before{\n\t\tpadding-top: calc(9 / 16 * 100%);\n\t}\n"]);return bt=function(){return e},e}function wt(){var e=i(['\n\tposition: relative;\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 0;\n\toverflow: hidden;\n\t&:before {\n\t\tdisplay: block;\n\t\tcontent: "";\n\t\tpadding-top: 100%;\n\t\tbackground-color: rgba(191, 191, 191, 0.5);\n\t}\n\tiframe,\n\tembed,\n\tobject,\n\tvideo {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 0;\n\t}\n']);return wt=function(){return e},e}!function(e){e.landscape="landscape",e.square="square"}(ht||(ht={}));var kt=n(wt()),xt=n(bt()),Tt=n(yt()),Et=e.forwardRef(function(t,n){var o=t.src,i=t.style,l=t.variant,u=void 0===l?"":l,s=t.ariaLabel,c=t.ariaHidden,f=t.title,d=t.frameBorder,p=void 0===d?0:d,m=t.allowFullScreen,h=void 0===m||m,g={className:[t.className,t.modifier].join(" ").trim(),style:a({},i)},v={src:o,frameBorder:p,allowFullScreen:h,"aria-label":s,"aria-hidden":!!c,title:f};return r(e.Fragment,null,r("div",Object.assign({css:[kt,function(e){switch(e){case"landscape":return xt;case"square":return Tt;default:return xt}}(u)]},g,{ref:n}),r("iframe",Object.assign({},v))))});function St(){var e=i(["\n\twidth: 100%;\n\tdisplay: block;\n\tposition: relative;\n\t/* // Part 1: Set a maximum relative to the parent */\n\tmax-width: 100%;\n\t/* // Part 2: Override the height to auto, otherwise images will be stretched\n\t\t// when setting a width and height attribute on the img element. */\n\theight: auto;\n"]);return St=function(){return e},e}var Ct=n(St()),_t=e.forwardRef(function(t,n){var o=t.style,i=t.alt,l=t.other,u=t.ariaLabel,s=a({src:t.src,className:[t.className,t.modifier].join(" ").trim(),style:a({},o),alt:i,"aria-label":u},l);return r(e.Fragment,null,r("img",Object.assign({css:Ct},s,{ref:n})))});function Pt(){var e=i(['\n\tbackground-color: #d0d0d0;\n\twidth: 100%;\n\theight: auto;\n\tbackground-position: center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: cover;\n\tposition: relative;\n\t&:before{\n\t\tcontent: "";\n\t\tdisplay: block;\n\t\tpadding-top: calc(9 / 16 * 100%);\n\t}\n']);return Pt=function(){return e},e}var Rt=n(Pt()),Nt=e.forwardRef(function(t,n){var o=t.style,i=t.ariaLabel,l=t.children,u={backgroundImage:'url("'+t.src+'")'},s={className:[t.classes,t.className,t.modifier].join(" ").trim(),style:a({},u,o),role:"img","aria-label":i||""};return r(e.Fragment,null,r("div",Object.assign({css:Rt},s,{ref:n}),l||null))});function It(){var e=i(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tright: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tbackground-color: rgba(0, 0, 0, .125);\n\t\t\t"]);return It=function(){return e},e}var Dt=e.forwardRef(function(e,t){var o=e.style,i={className:[e.className,e.modifier].join(" ").trim(),style:a({},o)};return r("div",Object.assign({css:n(It()),ref:t},i))});function Ot(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Ot=function(){return e},e}function zt(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n"]);return zt=function(){return e},e}function Mt(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Mt=function(){return e},e}function Lt(){var e=i(["\n\tcolor: #212529;\n\tbackground-color:",";\n"]);return Lt=function(){return e},e}function Ft(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Ft=function(){return e},e}function At(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n\t"]);return At=function(){return e},e}function Ut(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Ut=function(){return e},e}function Wt(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Wt=function(){return e},e}function jt(){var e=i(["\n\tborder-radius: 9999px;\n"]);return jt=function(){return e},e}function Bt(){var e=i(["\n\tmargin: auto;\n\tdisplay: flex;\n"]);return Bt=function(){return e},e}function Vt(){var e=i(["\n\tcolor: inherit;\n\tfont-size:",";\n"]);return Vt=function(){return e},e}function Ht(){var e=i(["\n\tflex-direction: row-reverse;\n\t.icon {\n\t\tmargin-right: 0.25rem;\n\t}\n"]);return Ht=function(){return e},e}function Qt(){var e=i(["\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: center;\n\t.icon {\n\t\tmargin-left: 0.25rem;\n\t}\n"]);return Qt=function(){return e},e}function qt(){var e=i(["\n\tposition: absolute;\n\ttop: 0;\n\toverflow: hidden;\n\twidth: 1px;\n\theight: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\tborder: 0;\n\tclip: rect(0 0 0 0);\n"]);return qt=function(){return e},e}function $t(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n"]);return $t=function(){return e},e}function Yt(){var e=i(["\n\tposition: relative;\n\tbackground-color: ",";\n\tpadding: 0.25rem 0.75rem;\n\ttext-align: center;\n\tdisplay: inline-block;\n\t\n"]);return Yt=function(){return e},e}var Kt=n(Yt(),l.colors.gray[100]),Xt=(n($t(),l.colors.black[900],l.colors.white[800]),n(qt())),Gt=n(Qt()),Zt=n(Ht()),Jt=n(Vt(),l.fontSize.base),en=n(Bt()),tn=n(jt()),nn=n(Wt(),l.colors.state.primary[500]),rn=n(Ut(),l.colors.state.secondary[500]),on=n(At(),l.colors.state.success[500]),an=n(Ft(),l.colors.state.danger[500]),ln=n(Lt(),l.colors.state.warning[500]),un=n(Mt(),l.colors.state.info[500]),sn=n(zt(),l.colors.black[900],l.colors.state.light[500]),cn=n(Ot(),l.colors.black[500]),fn=e.forwardRef(function(t,n){var o=t.text,i=t.hiddenText,l=t.icon,u=t.inverted,s=t.style,c=t.rounded,f=t.other,d=t.color,p=void 0===d?"":d,m=void 0!==c&&c?tn:"",h=a({className:[t.className,t.modifier,t.active].join(" ").trim(),style:a({},s),role:"option"},f),E=i?r("span",{css:Xt},i):null,S=r("span",{css:[Gt,u?Zt:""]},r("span",{css:Jt,className:"text"},o),r("span",{css:en,className:"icon"},l)),C=l?S:o;return r(e.Fragment,null,r("div",Object.assign({css:[Kt,m,function(e){switch(e){case"primary":return[g,nn];case"secondary":return[v,rn];case"success":return[y,on];case"danger":return[b,an];case"info":return[k,un];case"warning":return[w,ln];case"light":return[x,sn];case"dark":return[T,cn];default:return null}}(p)],ref:n},h),C,E))});function dn(){var e=i(["\n\tli {\n\t\tborder-bottom: 1px solid #ededed;\n\t\t&:last-child {\n\t\t\tborder: none;\n\t\t}\n\t}\n"]);return dn=function(){return e},e}function pn(){var e=i(["\n\tli {\n\t\tborder: 1px solid #ededed;\n\t\tmargin-bottom: -1px;\n\t}\n"]);return pn=function(){return e},e}function mn(){var e=i(["\n\tflex-direction: row;\n"]);return mn=function(){return e},e}function hn(){var e=i(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-wrap: wrap;\n"]);return hn=function(){return e},e}var gn=n(hn()),vn=n(mn()),yn=n(pn()),bn=n(dn()),wn=e.forwardRef(function(t,n){var o=t.style,i=t.variant,l=void 0===i?"":i,u=t.children,s=t.type,c=void 0===s?"bullet":s,f=t.inline?vn:"",d={className:[t.className,t.modifier].join(" ").trim(),style:a({},o)};return r(e.Fragment,null,r("bullet"===c?"ul":"ol",Object.assign({css:[gn,f,function(e){switch(e){case"bordered":return yn;case"bordered-underline":return bn;default:return null}}(l)]},d,{ref:n}),u))});function kn(){var e=i(["\n\tposition: relative;\n\tdisplay: block;\n\tpadding: 0.5rem 1rem;\n\tline-height: 1.5;\n\tfont-size: ",";\n"]);return kn=function(){return e},e}var xn=n(kn(),l.fontSize.base),Tn=e.forwardRef(function(t,n){var o=t.children,i=t.style,l={className:[t.className,t.modifier].join(" ").trim(),style:a({},i)};return r(e.Fragment,null,r("li",Object.assign({css:xn},l,{ref:n}),o))});function En(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return En=function(){return e},e}function Sn(){var e=i(["\n\tcolor: ",";\n\tbackground-color: ",";\n"]);return Sn=function(){return e},e}function Cn(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Cn=function(){return e},e}function _n(){var e=i(["\n\tcolor: #212529;\n\tbackground-color:",";\n"]);return _n=function(){return e},e}function Pn(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Pn=function(){return e},e}function Rn(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Rn=function(){return e},e}function Nn(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return Nn=function(){return e},e}function In(){var e=i(["\n\tcolor: white;\n\tbackground-color: ",";\n"]);return In=function(){return e},e}function Dn(){var e=i(['\n\tmin-height:100%;\n\theight: 100vh;\n\t&:before {\n\t\tcontent: "";\n\t\tdisplay: block;\n\t\tpadding-top: 100%;\n\t\theight: 100%;\n\t}\n']);return Dn=function(){return e},e}function On(){var e=i(["\n\tz-index: 1;\n\tposition: relative;\n\tpadding: 3rem 1.5rem;\n\tflex-grow: 1;\n flex-shrink: 0;\n padding: 3rem 1.5rem;\n"]);return On=function(){return e},e}function zn(){var e=i(['\n\tposition: relative;\n\t// background-color: hsla(0, 0%, 90%,1);\n\tbackground-color: hsla(210, 16%, 93%, 1);\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\t// height: calc(540 / 16 * 1rem);\n\tmin-height: 1px;\n\t\n\t&:before {\n\t\tposition: absolute;\n\t\tcontent: "";\n\t\tdisplay: block;\n\t\t// padding-top: calc(9 / 16 * 100%);\n\t\tpadding-top: 100%;\n\t}\n']);return zn=function(){return e},e}var Mn=n(zn()),Ln=n(On()),Fn=n(Dn()),An=n(In(),l.colors.state.primary[500]),Un=n(Nn(),l.colors.state.secondary[500]),Wn=n(Rn(),l.colors.state.success[500]),jn=n(Pn(),l.colors.state.danger[500]),Bn=n(_n(),l.colors.state.warning[500]),Vn=n(Cn(),l.colors.state.info[500]),Hn=n(Sn(),l.colors.black[900],l.colors.state.light[500]),Qn=n(En(),l.colors.black[500]);function qn(){var e=i(["\n\t\tbackground-position: center;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-size: cover;\n\t\tbackground-image: url(",");\n\t"]);return qn=function(){return e},e}function $n(){var e=i(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tright: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tbackground-color: rgba(0,0,0,.125);"]);return $n=function(){return e},e}var Yn=e.forwardRef(function(t,o){var i=t.style,l=t.modifier,u=t.bgColor,s=void 0===u?"":u,c=t.alt,f=t.src,d=t.fullscreen,p=t.className,m=t.children,h=t.overlay,g=void 0===h||h,v=f?r("div",{css:n($n())}):null,y=n(qn(),f),b=f?y:null,w=d?Fn:null,k={className:[p,l].join(" ").trim(),style:a({},i),role:"img",alt:c};return r(e.Fragment,null,r("section",Object.assign({css:[b,Mn,w,function(e){switch(e){case"primary":return An;case"secondary":return Un;case"success":return Wn;case"danger":return jn;case"info":return Vn;case"warning":return Bn;case"light":return Hn;case"dark":return Qn;default:return null}}(s)],ref:o},k),r("div",{css:[Ln]},m),g?v:null))});function Kn(e,t){return e(t={exports:{}},t.exports),t.exports
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/}var Xn=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable;function Jn(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var er=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=Jn(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))Gn.call(n,i)&&(o[i]=n[i]);if(Xn){r=Xn(n);for(var l=0;l<r.length;l++)Zn.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},tr=Kn(function(e,t){var n,r,o,a,i;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,s=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(s,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(s,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var v=!1,y=null,b=-1,w=5,k=0;a=function(){return t.unstable_now()>=k},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,T=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();k=e+w;try{y(!0,e)?T.postMessage(null):(v=!1,y=null)}catch(e){throw T.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,T.postMessage(null))},r=function(e,n){b=p(function(){e(t.unstable_now())},n)},o=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&0>_(i,n))void 0!==u&&0>_(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],R=[],N=1,I=null,D=3,O=!1,z=!1,M=!1;function L(e){for(var t=S(R);null!==t;){if(null===t.callback)C(R);else{if(!(t.startTime<=e))break;C(R),t.sortIndex=t.expirationTime,E(P,t)}t=S(R)}}function F(e){if(M=!1,L(e),!z)if(null!==S(P))z=!0,n(A);else{var t=S(R);null!==t&&r(F,t.startTime-e)}}function A(e,n){z=!1,M&&(M=!1,o()),O=!0;var i=D;try{for(L(n),I=S(P);null!==I&&(!(I.expirationTime>n)||e&&!a());){var l=I.callback;if(null!==l){I.callback=null,D=I.priorityLevel;var u=l(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?I.callback=u:I===S(P)&&C(P),L(n)}else C(P);I=S(P)}if(null!==I)var s=!0;else{var c=S(R);null!==c&&r(F,c.startTime-n),s=!1}return s}finally{I=null,D=i,O=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||O||(z=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return S(P)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=W,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,a,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var u=i.delay;u="number"==typeof u&&0<u?l+u:l,i="number"==typeof i.timeout?i.timeout:U(e)}else i=U(e),u=l;return e={id:N++,callback:a,priorityLevel:e,startTime:u,expirationTime:i=u+i,sortIndex:-1},u>l?(e.sortIndex=u,E(R,e),null===S(P)&&e===S(R)&&(M?o():M=!0,r(F,u-l))):(e.sortIndex=i,E(P,e),z||O||(z=!0,n(A))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=S(P);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}}),nr=Kn(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e,n,r,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var i=null,l=null,u=function(){if(null!==i)try{var e=t.unstable_now();i(!0,e),i=null}catch(e){throw setTimeout(u,0),e}},s=Date.now();t.unstable_now=function(){return Date.now()-s},e=function(t){null!==i?setTimeout(e,0,t):(i=t,setTimeout(u,0))},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var c=window.performance,f=window.Date,d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.requestAnimationFrame,h=window.cancelAnimationFrame;"function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof c&&"function"==typeof c.now)t.unstable_now=function(){return c.now()};else{var g=f.now();t.unstable_now=function(){return f.now()-g}}var v=!1,y=null,b=-1,w=5,k=0;o=function(){return t.unstable_now()>=k},a=function(){},t.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=e>0?Math.floor(1e3/e):5};var x=new MessageChannel,T=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();k=e+w;try{y(!0,e)?T.postMessage(null):(v=!1,y=null)}catch(e){throw T.postMessage(null),e}}else v=!1},e=function(e){y=e,v||(v=!0,T.postMessage(null))},n=function(e,n){b=d(function(){e(t.unstable_now())},n)},r=function(){p(b),b=-1}}function E(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;;){var o=r-1>>>1,a=e[o];if(!(void 0!==a&&_(a,t)>0))return;e[o]=t,e[r]=a,r=o}}(e,t,n)}function S(e){var t=e[0];return void 0===t?null:t}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&_(i,t)<0)void 0!==u&&_(u,i)<0?(e[r]=u,e[l]=t,r=l):(e[r]=i,e[a]=t,r=a);else{if(!(void 0!==u&&_(u,t)<0))return;e[r]=u,e[l]=t,r=l}}}(e,n)),t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=0,R=0,N="function"==typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"==typeof ArrayBuffer?new ArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):null,I=null!==N?new Int32Array(N):[];I[0]=0,I[3]=0,I[1]=0;var D=0,O=null,z=null,M=0;function L(e){if(null!==z){var t=M;if((M+=e.length)+1>D){if((D*=2)>524288)return console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`."),void F();var n=new Int32Array(4*D);n.set(z),O=n.buffer,z=n}z.set(e,t)}}function F(){var e=O;return D=0,O=null,z=null,M=0,e}function A(e,t){I[3]++,null!==z&&L([1,1e3*t,e.id,e.priorityLevel])}function U(e,t){I[0]=0,I[1]=0,I[3]--,null!==z&&L([2,1e3*t,e.id])}function W(e,t){I[0]=0,I[1]=0,I[2]=0,null!==z&&L([6,1e3*t,e.id,P])}var j=[],B=[],V=1,H=null,Q=3,q=!1,$=!1,Y=!1;function K(e){for(var t=S(B);null!==t;){if(null===t.callback)C(B);else{if(!(t.startTime<=e))return;C(B),t.sortIndex=t.expirationTime,E(j,t),A(t,e),t.isQueued=!0}t=S(B)}}function X(t){if(Y=!1,K(t),!$)if(null!==S(j))$=!0,e(G);else{var r=S(B);null!==r&&n(X,r.startTime-t)}}function G(e,a){null!==z&&L([8,1e3*a,R]),$=!1,Y&&(Y=!1,r()),q=!0;var i=Q;try{try{return function(e,r){var a,i,l=r;for(K(l),H=S(j);null!==H&&(!(H.expirationTime>l)||e&&!o());){var u=H.callback;if(null!==u){H.callback=null,Q=H.priorityLevel;var s=H.expirationTime<=l;i=l,P++,I[0]=(a=H).priorityLevel,I[1]=a.id,I[2]=P,null!==z&&L([5,1e3*i,a.id,P]);var c=u(s);l=t.unstable_now(),"function"==typeof c?(H.callback=c,W(H,l)):(U(H,l),H.isQueued=!1,H===S(j)&&C(j)),K(l)}else C(j);H=S(j)}if(null!==H)return!0;var f=S(B);return null!==f&&n(X,f.startTime-l),!1}(e,a)}catch(e){if(null!==H){var l=t.unstable_now();!function(e,t){I[0]=0,I[1]=0,I[3]--,null!==z&&L([3,1e3*t,e.id])}(H,l),H.isQueued=!1}throw e}}finally{H=null,Q=i,q=!1,function(e){R++,null!==z&&L([7,1e3*e,R])}(t.unstable_now())}}function Z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;case 3:default:return 5e3}}var J=a,ee={startLoggingProfilingEvents:function(){D=131072,O=new ArrayBuffer(4*D),z=new Int32Array(O),M=0},stopLoggingProfilingEvents:F,sharedProfilingBuffer:N};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=ee,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.isQueued&&(function(e,t){I[3]--,null!==z&&L([4,1e3*t,e.id])}(e,t.unstable_now()),e.isQueued=!1),e.callback=null},t.unstable_continueExecution=function(){$||q||($=!0,e(G))},t.unstable_getCurrentPriorityLevel=function(){return Q},t.unstable_getFirstCallbackNode=function(){return S(j)},t.unstable_next=function(e){var t;switch(Q){case 1:case 2:case 3:t=3;break;default:t=Q}var n=Q;Q=t;try{return e()}finally{Q=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=J,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Q;Q=e;try{return t()}finally{Q=n}},t.unstable_scheduleCallback=function(o,a,i){var l,u,s=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;l="number"==typeof c&&c>0?s+c:s,u="number"==typeof i.timeout?i.timeout:Z(o)}else u=Z(o),l=s;var f=l+u,d={id:V++,callback:a,priorityLevel:o,startTime:l,expirationTime:f,sortIndex:-1,isQueued:!1};return l>s?(d.sortIndex=l,E(B,d),null===S(j)&&d===S(B)&&(Y?r():Y=!0,n(X,l-s))):(d.sortIndex=f,E(j,d),A(d,s),d.isQueued=!0,$||q||($=!0,e(G))),d},t.unstable_shouldYield=function(){var e=t.unstable_now();K(e);var n=S(j);return n!==H&&null!==H&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<H.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=Q;return function(){var n=Q;Q=t;try{return e.apply(this,arguments)}finally{Q=n}}}}()}),rr=Kn(function(e){e.exports="production"===process.env.NODE_ENV?tr:nr});function or(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(or(227));function ar(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var ir=!1,lr=null,ur=!1,sr=null,cr={onError:function(e){ir=!0,lr=e}};function fr(e,t,n,r,o,a,i,l,u){ir=!1,lr=null,ar.apply(cr,arguments)}var dr=null,pr=null,mr=null;function hr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=mr(n),function(e,t,n,r,o,a,i,l,u){if(fr.apply(this,arguments),ir){if(!ir)throw Error(or(198));var s=lr;ir=!1,lr=null,ur||(ur=!0,sr=s)}}(r,t,void 0,e),e.currentTarget=null}var gr=null,vr={};function yr(){if(gr)for(var e in vr){var t=vr[e],n=gr.indexOf(e);if(!(-1<n))throw Error(or(96,e));if(!wr[n]){if(!t.extractEvents)throw Error(or(97,e));for(var r in wr[n]=t,n=t.eventTypes){var o=void 0,a=n[r],i=t,l=r;if(kr.hasOwnProperty(l))throw Error(or(99,l));kr[l]=a;var u=a.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&br(u[o],i,l);o=!0}else a.registrationName?(br(a.registrationName,i,l),o=!0):o=!1;if(!o)throw Error(or(98,r,e))}}}}function br(e,t,n){if(xr[e])throw Error(or(100,e));xr[e]=t,Tr[e]=t.eventTypes[n].dependencies}var wr=[],kr={},xr={},Tr={};function Er(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!vr.hasOwnProperty(t)||vr[t]!==r){if(vr[t])throw Error(or(102,t));vr[t]=r,n=!0}}n&&yr()}var Sr=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Cr=null,_r=null,Pr=null;function Rr(e){if(e=pr(e)){if("function"!=typeof Cr)throw Error(or(280));var t=e.stateNode;t&&(t=dr(t),Cr(e.stateNode,e.type,t))}}function Nr(e){_r?Pr?Pr.push(e):Pr=[e]:_r=e}function Ir(){if(_r){var e=_r,t=Pr;if(Pr=_r=null,Rr(e),t)for(e=0;e<t.length;e++)Rr(t[e])}}function Dr(e,t){return e(t)}function Or(e,t,n,r,o){return e(t,n,r,o)}function zr(){}var Mr=Dr,Lr=!1,Fr=!1;function Ar(){null===_r&&null===Pr||(zr(),Ir())}function Ur(e,t,n){if(Fr)return e(t,n);Fr=!0;try{return Mr(e,t,n)}finally{Fr=!1,Ar()}}var Wr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jr=Object.prototype.hasOwnProperty,Br={},Vr={};function Hr(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var Qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qr[e]=new Hr(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qr[t]=new Hr(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qr[e]=new Hr(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qr[e]=new Hr(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qr[e]=new Hr(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Qr[e]=new Hr(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){Qr[e]=new Hr(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){Qr[e]=new Hr(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){Qr[e]=new Hr(e,5,!1,e.toLowerCase(),null,!1)});var qr=/[\-:]([a-z])/g;function $r(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qr,$r);Qr[t]=new Hr(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qr,$r);Qr[t]=new Hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qr,$r);Qr[t]=new Hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){Qr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!1)}),Qr.xlinkHref=new Hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){Qr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!0)});var Yr=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Kr(e,t,n,r){var o=Qr.hasOwnProperty(t)?Qr[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!jr.call(Vr,e)||!jr.call(Br,e)&&(Wr.test(e)?Vr[e]=!0:(Br[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty