@sillsdev/config-r 1.0.0-alpha.10 → 1.0.0-alpha.11

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.
@@ -1,4 +1,4 @@
1
- (function(B,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("@emotion/react/jsx-runtime"),require("@emotion/react"),require("@mui/material"),require("react"),require("@mui/material/styles"),require("@mui/icons-material/Search"),require("@mui/icons-material/ArrowRight"),require("@mui/icons-material/ArrowBack"),require("@mui/material/TextField"),require("@mui/material/FormControl"),require("@mui/material/FormHelperText"),require("@mui/material/InputLabel"),require("@mui/material/Select"),require("@mui/material/Switch"),require("@mui/material/Checkbox"),require("@mui/material/ToggleButtonGroup")):typeof define=="function"&&define.amd?define(["exports","@emotion/react/jsx-runtime","@emotion/react","@mui/material","react","@mui/material/styles","@mui/icons-material/Search","@mui/icons-material/ArrowRight","@mui/icons-material/ArrowBack","@mui/material/TextField","@mui/material/FormControl","@mui/material/FormHelperText","@mui/material/InputLabel","@mui/material/Select","@mui/material/Switch","@mui/material/Checkbox","@mui/material/ToggleButtonGroup"],y):(B=typeof globalThis<"u"?globalThis:B||self,y(B.configr={},B["emotion-react-jsx-runtime"],B["emotion-react"],B["mui-material"],B.React,B["mui-material/styles"],B.SearchIcon,B.ArrowRightIcon,B.ArrowBackIcon,B.MuiTextField,B["mui-material-formcontrol"],B["mui-material-form-helper-text"],B["mui-material-input-label"],B["mui-material-select"],B.MuiSwitch,B.MuiCheckbox,B.MuiToggleButtonGroup))})(this,function(B,y,le,j,f,nt,oc,sc,lc,uc,cc,fc,dc,hc,pc,vc,gc){"use strict";function bc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Y=bc(f),yc=nt.styled("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:nt.alpha(e.palette.common.white,.15),"&:hover":{backgroundColor:nt.alpha(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),mc=nt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),xc=nt.styled(j.InputBase)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}})),Sc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),y.jsx(j.Box,{sx:{flexGrow:1},children:y.jsx(j.AppBar,{position:"static",children:y.jsxs(j.Toolbar,{children:[y.jsx(j.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&y.jsxs(yc,{children:[y.jsx(mc,{children:y.jsx(oc,{})}),y.jsx(xc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ec(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var xn=Ec;function _c(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ii=_c,Cc=Array.isArray,De=Cc,$c=typeof ir=="object"&&ir&&ir.Object===Object&&ir,Fi=$c,Tc=Fi,Oc=typeof self=="object"&&self&&self.Object===Object&&self,Ac=Tc||Oc||Function("return this")(),We=Ac,Pc=We,Mc=Pc.Symbol,or=Mc,ki=or,ji=Object.prototype,Ic=ji.hasOwnProperty,Fc=ji.toString,sr=ki?ki.toStringTag:void 0;function kc(e){var t=Ic.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch{}var a=Fc.call(e);return n&&(t?e[sr]=r:delete e[sr]),a}var jc=kc,Dc=Object.prototype,Nc=Dc.toString;function Lc(e){return Nc.call(e)}var Bc=Lc,Di=or,Hc=jc,Gc=Bc,Vc="[object Null]",Uc="[object Undefined]",Ni=Di?Di.toStringTag:void 0;function zc(e){return e==null?e===void 0?Uc:Vc:Ni&&Ni in Object(e)?Hc(e):Gc(e)}var ct=zc;function Wc(e){return e!=null&&typeof e=="object"}var Ze=Wc,Kc=ct,qc=Ze,Rc="[object Symbol]";function Yc(e){return typeof e=="symbol"||qc(e)&&Kc(e)==Rc}var Hr=Yc;function Xc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ct=Xc,Jc=ct,Zc=Ct,Qc="[object AsyncFunction]",ef="[object Function]",tf="[object GeneratorFunction]",rf="[object Proxy]";function nf(e){if(!Zc(e))return!1;var t=Jc(e);return t==ef||t==tf||t==Qc||t==rf}var Li=nf,af=We,of=af["__core-js_shared__"],sf=of,Sn=sf,Bi=function(){var e=/[^.]+$/.exec(Sn&&Sn.keys&&Sn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lf(e){return!!Bi&&Bi in e}var uf=lf,cf=Function.prototype,ff=cf.toString;function df(e){if(e!=null){try{return ff.call(e)}catch{}try{return e+""}catch{}}return""}var Hi=df,hf=Li,pf=uf,vf=Ct,gf=Hi,bf=/[\\^$.*+?()[\]{}|]/g,yf=/^\[object .+?Constructor\]$/,mf=Function.prototype,xf=Object.prototype,Sf=mf.toString,wf=xf.hasOwnProperty,Ef=RegExp("^"+Sf.call(wf).replace(bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _f(e){if(!vf(e)||pf(e))return!1;var t=hf(e)?Ef:yf;return t.test(gf(e))}var Cf=_f;function $f(e,t){return e==null?void 0:e[t]}var Tf=$f,Of=Cf,Af=Tf;function Pf(e,t){var r=Af(e,t);return Of(r)?r:void 0}var ft=Pf,Mf=ft,If=Mf(Object,"create"),Gr=If,Gi=Gr;function Ff(){this.__data__=Gi?Gi(null):{},this.size=0}var kf=Ff;function jf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Df=jf,Nf=Gr,Lf="__lodash_hash_undefined__",Bf=Object.prototype,Hf=Bf.hasOwnProperty;function Gf(e){var t=this.__data__;if(Nf){var r=t[e];return r===Lf?void 0:r}return Hf.call(t,e)?t[e]:void 0}var Vf=Gf,Uf=Gr,zf=Object.prototype,Wf=zf.hasOwnProperty;function Kf(e){var t=this.__data__;return Uf?t[e]!==void 0:Wf.call(t,e)}var qf=Kf,Rf=Gr,Yf="__lodash_hash_undefined__";function Xf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rf&&t===void 0?Yf:t,this}var Jf=Xf,Zf=kf,Qf=Df,ed=Vf,td=qf,rd=Jf;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Zf,$t.prototype.delete=Qf,$t.prototype.get=ed,$t.prototype.has=td,$t.prototype.set=rd;var nd=$t;function ad(){this.__data__=[],this.size=0}var id=ad;function od(e,t){return e===t||e!==e&&t!==t}var wn=od,sd=wn;function ld(e,t){for(var r=e.length;r--;)if(sd(e[r][0],t))return r;return-1}var Vr=ld,ud=Vr,cd=Array.prototype,fd=cd.splice;function dd(e){var t=this.__data__,r=ud(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fd.call(t,r,1),--this.size,!0}var hd=dd,pd=Vr;function vd(e){var t=this.__data__,r=pd(t,e);return r<0?void 0:t[r][1]}var gd=vd,bd=Vr;function yd(e){return bd(this.__data__,e)>-1}var md=yd,xd=Vr;function Sd(e,t){var r=this.__data__,n=xd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var wd=Sd,Ed=id,_d=hd,Cd=gd,$d=md,Td=wd;function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=Ed,Tt.prototype.delete=_d,Tt.prototype.get=Cd,Tt.prototype.has=$d,Tt.prototype.set=Td;var Ur=Tt,Od=ft,Ad=We,Pd=Od(Ad,"Map"),En=Pd,Vi=nd,Md=Ur,Id=En;function Fd(){this.size=0,this.__data__={hash:new Vi,map:new(Id||Md),string:new Vi}}var kd=Fd;function jd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Dd=jd,Nd=Dd;function Ld(e,t){var r=e.__data__;return Nd(t)?r[typeof t=="string"?"string":"hash"]:r.map}var zr=Ld,Bd=zr;function Hd(e){var t=Bd(this,e).delete(e);return this.size-=t?1:0,t}var Gd=Hd,Vd=zr;function Ud(e){return Vd(this,e).get(e)}var zd=Ud,Wd=zr;function Kd(e){return Wd(this,e).has(e)}var qd=Kd,Rd=zr;function Yd(e,t){var r=Rd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Xd=Yd,Jd=kd,Zd=Gd,Qd=zd,eh=qd,th=Xd;function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=Jd,Ot.prototype.delete=Zd,Ot.prototype.get=Qd,Ot.prototype.has=eh,Ot.prototype.set=th;var _n=Ot,Ui=_n,rh="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rh);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Cn.Cache||Ui),r}Cn.Cache=Ui;var nh=Cn,ah=nh,ih=500;function oh(e){var t=ah(e,function(n){return r.size===ih&&r.clear(),n}),r=t.cache;return t}var sh=oh,lh=sh,uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ch=/\\(\\)?/g,fh=lh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uh,function(r,n,a,i){t.push(a?i.replace(ch,"$1"):n||r)}),t}),zi=fh,dh=Hr,hh=1/0;function ph(e){if(typeof e=="string"||dh(e))return e;var t=e+"";return t=="0"&&1/e==-hh?"-0":t}var lr=ph,Wi=or,vh=xn,gh=De,bh=Hr,yh=1/0,Ki=Wi?Wi.prototype:void 0,qi=Ki?Ki.toString:void 0;function Ri(e){if(typeof e=="string")return e;if(gh(e))return vh(e,Ri)+"";if(bh(e))return qi?qi.call(e):"";var t=e+"";return t=="0"&&1/e==-yh?"-0":t}var mh=Ri,xh=mh;function Sh(e){return e==null?"":xh(e)}var Yi=Sh,wh=xn,Eh=Ii,_h=De,Ch=Hr,$h=zi,Th=lr,Oh=Yi;function Ah(e){return _h(e)?wh(e,Th):Ch(e)?[e]:Eh($h(Oh(e)))}var Ph=Ah,Xi=Array.isArray,Ji=Object.keys,Mh=Object.prototype.hasOwnProperty,Ih=typeof Element<"u";function $n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Xi(e),n=Xi(t),a,i,o;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!$n(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,c=t instanceof Date;if(s!=c)return!1;if(s&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,h=t instanceof RegExp;if(u!=h)return!1;if(u&&h)return e.toString()==t.toString();var l=Ji(e);if(i=l.length,i!==Ji(t).length)return!1;for(a=i;a--!==0;)if(!Mh.call(t,l[a]))return!1;if(Ih&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(o=l[a],!(o==="_owner"&&e.$$typeof)&&!$n(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var at=function(t,r){try{return $n(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}},Fh=function(t){return kh(t)&&!jh(t)};function kh(e){return!!e&&typeof e=="object"}function jh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Lh(e)}var Dh=typeof Symbol=="function"&&Symbol.for,Nh=Dh?Symbol.for("react.element"):60103;function Lh(e){return e.$$typeof===Nh}function Bh(e){return Array.isArray(e)?[]:{}}function Wr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ur(Bh(e),e,t):e}function Hh(e,t,r){return e.concat(t).map(function(n){return Wr(n,r)})}function Gh(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Wr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Wr(t[a],r):n[a]=ur(e[a],t[a],r)}),n}function ur(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Hh,r.isMergeableObject=r.isMergeableObject||Fh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Gh(e,t,r):Wr(t,r)}ur.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return ur(n,a,r)},{})};var Tn=ur,Vh=typeof global=="object"&&global&&global.Object===Object&&global;const Zi=Vh;var Uh=typeof self=="object"&&self&&self.Object===Object&&self,zh=Zi||Uh||Function("return this")();const He=zh;var Wh=He.Symbol;const Ke=Wh;var Qi=Object.prototype,Kh=Qi.hasOwnProperty,qh=Qi.toString,cr=Ke?Ke.toStringTag:void 0;function Rh(e){var t=Kh.call(e,cr),r=e[cr];try{e[cr]=void 0;var n=!0}catch{}var a=qh.call(e);return n&&(t?e[cr]=r:delete e[cr]),a}var Yh=Object.prototype,Xh=Yh.toString;function Jh(e){return Xh.call(e)}var Zh="[object Null]",Qh="[object Undefined]",eo=Ke?Ke.toStringTag:void 0;function dt(e){return e==null?e===void 0?Qh:Zh:eo&&eo in Object(e)?Rh(e):Jh(e)}function to(e,t){return function(r){return e(t(r))}}var ep=to(Object.getPrototypeOf,Object);const On=ep;function qe(e){return e!=null&&typeof e=="object"}var tp="[object Object]",rp=Function.prototype,np=Object.prototype,ro=rp.toString,ap=np.hasOwnProperty,ip=ro.call(Object);function An(e){if(!qe(e)||dt(e)!=tp)return!1;var t=On(e);if(t===null)return!0;var r=ap.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ro.call(r)==ip}function op(){this.__data__=[],this.size=0}function fr(e,t){return e===t||e!==e&&t!==t}function Kr(e,t){for(var r=e.length;r--;)if(fr(e[r][0],t))return r;return-1}var sp=Array.prototype,lp=sp.splice;function up(e){var t=this.__data__,r=Kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lp.call(t,r,1),--this.size,!0}function cp(e){var t=this.__data__,r=Kr(t,e);return r<0?void 0:t[r][1]}function fp(e){return Kr(this.__data__,e)>-1}function dp(e,t){var r=this.__data__,n=Kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=op,Qe.prototype.delete=up,Qe.prototype.get=cp,Qe.prototype.has=fp,Qe.prototype.set=dp;function hp(){this.__data__=new Qe,this.size=0}function pp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function vp(e){return this.__data__.get(e)}function gp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bp="[object AsyncFunction]",yp="[object Function]",mp="[object GeneratorFunction]",xp="[object Proxy]";function Pn(e){if(!ke(e))return!1;var t=dt(e);return t==yp||t==mp||t==bp||t==xp}var Sp=He["__core-js_shared__"];const Mn=Sp;var no=function(){var e=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wp(e){return!!no&&no in e}var Ep=Function.prototype,_p=Ep.toString;function ht(e){if(e!=null){try{return _p.call(e)}catch{}try{return e+""}catch{}}return""}var Cp=/[\\^$.*+?()[\]{}|]/g,$p=/^\[object .+?Constructor\]$/,Tp=Function.prototype,Op=Object.prototype,Ap=Tp.toString,Pp=Op.hasOwnProperty,Mp=RegExp("^"+Ap.call(Pp).replace(Cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ip(e){if(!ke(e)||wp(e))return!1;var t=Pn(e)?Mp:$p;return t.test(ht(e))}function Fp(e,t){return e==null?void 0:e[t]}function pt(e,t){var r=Fp(e,t);return Ip(r)?r:void 0}var kp=pt(He,"Map");const dr=kp;var jp=pt(Object,"create");const hr=jp;function Dp(){this.__data__=hr?hr(null):{},this.size=0}function Np(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lp="__lodash_hash_undefined__",Bp=Object.prototype,Hp=Bp.hasOwnProperty;function Gp(e){var t=this.__data__;if(hr){var r=t[e];return r===Lp?void 0:r}return Hp.call(t,e)?t[e]:void 0}var Vp=Object.prototype,Up=Vp.hasOwnProperty;function zp(e){var t=this.__data__;return hr?t[e]!==void 0:Up.call(t,e)}var Wp="__lodash_hash_undefined__";function Kp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===void 0?Wp:t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=Dp,vt.prototype.delete=Np,vt.prototype.get=Gp,vt.prototype.has=zp,vt.prototype.set=Kp;function qp(){this.size=0,this.__data__={hash:new vt,map:new(dr||Qe),string:new vt}}function Rp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qr(e,t){var r=e.__data__;return Rp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yp(e){var t=qr(this,e).delete(e);return this.size-=t?1:0,t}function Xp(e){return qr(this,e).get(e)}function Jp(e){return qr(this,e).has(e)}function Zp(e,t){var r=qr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=qp,et.prototype.delete=Yp,et.prototype.get=Xp,et.prototype.has=Jp,et.prototype.set=Zp;var Qp=200;function ev(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!dr||n.length<Qp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new Qe(e);this.size=t.size}Ge.prototype.clear=hp,Ge.prototype.delete=pp,Ge.prototype.get=vp,Ge.prototype.has=gp,Ge.prototype.set=ev;function ao(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tv=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Rr=tv;function In(e,t,r){t=="__proto__"&&Rr?Rr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rv=Object.prototype,nv=rv.hasOwnProperty;function io(e,t,r){var n=e[t];(!(nv.call(e,t)&&fr(n,r))||r===void 0&&!(t in e))&&In(e,t,r)}function pr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?In(r,s,c):io(r,s,c)}return r}function av(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var iv="[object Arguments]";function oo(e){return qe(e)&&dt(e)==iv}var so=Object.prototype,ov=so.hasOwnProperty,sv=so.propertyIsEnumerable,lv=oo(function(){return arguments}())?oo:function(e){return qe(e)&&ov.call(e,"callee")&&!sv.call(e,"callee")};const Yr=lv;var uv=Array.isArray;const Te=uv;function cv(){return!1}var lo=typeof B=="object"&&B&&!B.nodeType&&B,uo=lo&&typeof module=="object"&&module&&!module.nodeType&&module,fv=uo&&uo.exports===lo,co=fv?He.Buffer:void 0,dv=co?co.isBuffer:void 0,hv=dv||cv;const vr=hv;var pv=9007199254740991,vv=/^(?:0|[1-9]\d*)$/;function Fn(e,t){var r=typeof e;return t=t??pv,!!t&&(r=="number"||r!="symbol"&&vv.test(e))&&e>-1&&e%1==0&&e<t}var gv=9007199254740991;function kn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gv}var bv="[object Arguments]",yv="[object Array]",mv="[object Boolean]",xv="[object Date]",Sv="[object Error]",wv="[object Function]",Ev="[object Map]",_v="[object Number]",Cv="[object Object]",$v="[object RegExp]",Tv="[object Set]",Ov="[object String]",Av="[object WeakMap]",Pv="[object ArrayBuffer]",Mv="[object DataView]",Iv="[object Float32Array]",Fv="[object Float64Array]",kv="[object Int8Array]",jv="[object Int16Array]",Dv="[object Int32Array]",Nv="[object Uint8Array]",Lv="[object Uint8ClampedArray]",Bv="[object Uint16Array]",Hv="[object Uint32Array]",fe={};fe[Iv]=fe[Fv]=fe[kv]=fe[jv]=fe[Dv]=fe[Nv]=fe[Lv]=fe[Bv]=fe[Hv]=!0,fe[bv]=fe[yv]=fe[Pv]=fe[mv]=fe[Mv]=fe[xv]=fe[Sv]=fe[wv]=fe[Ev]=fe[_v]=fe[Cv]=fe[$v]=fe[Tv]=fe[Ov]=fe[Av]=!1;function Gv(e){return qe(e)&&kn(e.length)&&!!fe[dt(e)]}function jn(e){return function(t){return e(t)}}var fo=typeof B=="object"&&B&&!B.nodeType&&B,gr=fo&&typeof module=="object"&&module&&!module.nodeType&&module,Vv=gr&&gr.exports===fo,Dn=Vv&&Zi.process,Uv=function(){try{var e=gr&&gr.require&&gr.require("util").types;return e||Dn&&Dn.binding&&Dn.binding("util")}catch{}}();const At=Uv;var ho=At&&At.isTypedArray,zv=ho?jn(ho):Gv;const Nn=zv;var Wv=Object.prototype,Kv=Wv.hasOwnProperty;function po(e,t){var r=Te(e),n=!r&&Yr(e),a=!r&&!n&&vr(e),i=!r&&!n&&!a&&Nn(e),o=r||n||a||i,s=o?av(e.length,String):[],c=s.length;for(var u in e)(t||Kv.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fn(u,c)))&&s.push(u);return s}var qv=Object.prototype;function Ln(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qv;return e===r}var Rv=to(Object.keys,Object);const Yv=Rv;var Xv=Object.prototype,Jv=Xv.hasOwnProperty;function Zv(e){if(!Ln(e))return Yv(e);var t=[];for(var r in Object(e))Jv.call(e,r)&&r!="constructor"&&t.push(r);return t}function Pt(e){return e!=null&&kn(e.length)&&!Pn(e)}function br(e){return Pt(e)?po(e):Zv(e)}function Qv(e,t){return e&&pr(t,br(t),e)}function eg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var tg=Object.prototype,rg=tg.hasOwnProperty;function ng(e){if(!ke(e))return eg(e);var t=Ln(e),r=[];for(var n in e)n=="constructor"&&(t||!rg.call(e,n))||r.push(n);return r}function yr(e){return Pt(e)?po(e,!0):ng(e)}function ag(e,t){return e&&pr(t,yr(t),e)}var vo=typeof B=="object"&&B&&!B.nodeType&&B,go=vo&&typeof module=="object"&&module&&!module.nodeType&&module,ig=go&&go.exports===vo,bo=ig?He.Buffer:void 0,yo=bo?bo.allocUnsafe:void 0;function mo(e,t){if(t)return e.slice();var r=e.length,n=yo?yo(r):new e.constructor(r);return e.copy(n),n}function Bn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function og(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function xo(){return[]}var sg=Object.prototype,lg=sg.propertyIsEnumerable,So=Object.getOwnPropertySymbols,ug=So?function(e){return e==null?[]:(e=Object(e),og(So(e),function(t){return lg.call(e,t)}))}:xo;const Hn=ug;function cg(e,t){return pr(e,Hn(e),t)}function wo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var fg=Object.getOwnPropertySymbols,dg=fg?function(e){for(var t=[];e;)wo(t,Hn(e)),e=On(e);return t}:xo;const Eo=dg;function hg(e,t){return pr(e,Eo(e),t)}function _o(e,t,r){var n=t(e);return Te(e)?n:wo(n,r(e))}function Gn(e){return _o(e,br,Hn)}function pg(e){return _o(e,yr,Eo)}var vg=pt(He,"DataView");const Vn=vg;var gg=pt(He,"Promise");const Un=gg;var bg=pt(He,"Set");const zn=bg;var yg=pt(He,"WeakMap");const Wn=yg;var Co="[object Map]",mg="[object Object]",$o="[object Promise]",To="[object Set]",Oo="[object WeakMap]",Ao="[object DataView]",xg=ht(Vn),Sg=ht(dr),wg=ht(Un),Eg=ht(zn),_g=ht(Wn),gt=dt;(Vn&&gt(new Vn(new ArrayBuffer(1)))!=Ao||dr&&gt(new dr)!=Co||Un&&gt(Un.resolve())!=$o||zn&&gt(new zn)!=To||Wn&&gt(new Wn)!=Oo)&&(gt=function(e){var t=dt(e),r=t==mg?e.constructor:void 0,n=r?ht(r):"";if(n)switch(n){case xg:return Ao;case Sg:return Co;case wg:return $o;case Eg:return To;case _g:return Oo}return t});const mr=gt;var Cg=Object.prototype,$g=Cg.hasOwnProperty;function Tg(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&$g.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Og=He.Uint8Array;const Xr=Og;function Kn(e){var t=new e.constructor(e.byteLength);return new Xr(t).set(new Xr(e)),t}function Ag(e,t){var r=t?Kn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Pg=/\w*$/;function Mg(e){var t=new e.constructor(e.source,Pg.exec(e));return t.lastIndex=e.lastIndex,t}var Po=Ke?Ke.prototype:void 0,Mo=Po?Po.valueOf:void 0;function Ig(e){return Mo?Object(Mo.call(e)):{}}function Io(e,t){var r=t?Kn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Fg="[object Boolean]",kg="[object Date]",jg="[object Map]",Dg="[object Number]",Ng="[object RegExp]",Lg="[object Set]",Bg="[object String]",Hg="[object Symbol]",Gg="[object ArrayBuffer]",Vg="[object DataView]",Ug="[object Float32Array]",zg="[object Float64Array]",Wg="[object Int8Array]",Kg="[object Int16Array]",qg="[object Int32Array]",Rg="[object Uint8Array]",Yg="[object Uint8ClampedArray]",Xg="[object Uint16Array]",Jg="[object Uint32Array]";function Zg(e,t,r){var n=e.constructor;switch(t){case Gg:return Kn(e);case Fg:case kg:return new n(+e);case Vg:return Ag(e,r);case Ug:case zg:case Wg:case Kg:case qg:case Rg:case Yg:case Xg:case Jg:return Io(e,r);case jg:return new n;case Dg:case Bg:return new n(e);case Ng:return Mg(e);case Lg:return new n;case Hg:return Ig(e)}}var Fo=Object.create,Qg=function(){function e(){}return function(t){if(!ke(t))return{};if(Fo)return Fo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const e0=Qg;function ko(e){return typeof e.constructor=="function"&&!Ln(e)?e0(On(e)):{}}var t0="[object Map]";function r0(e){return qe(e)&&mr(e)==t0}var jo=At&&At.isMap,n0=jo?jn(jo):r0;const a0=n0;var i0="[object Set]";function o0(e){return qe(e)&&mr(e)==i0}var Do=At&&At.isSet,s0=Do?jn(Do):o0;const l0=s0;var u0=1,c0=2,f0=4,No="[object Arguments]",d0="[object Array]",h0="[object Boolean]",p0="[object Date]",v0="[object Error]",Lo="[object Function]",g0="[object GeneratorFunction]",b0="[object Map]",y0="[object Number]",Bo="[object Object]",m0="[object RegExp]",x0="[object Set]",S0="[object String]",w0="[object Symbol]",E0="[object WeakMap]",_0="[object ArrayBuffer]",C0="[object DataView]",$0="[object Float32Array]",T0="[object Float64Array]",O0="[object Int8Array]",A0="[object Int16Array]",P0="[object Int32Array]",M0="[object Uint8Array]",I0="[object Uint8ClampedArray]",F0="[object Uint16Array]",k0="[object Uint32Array]",ue={};ue[No]=ue[d0]=ue[_0]=ue[C0]=ue[h0]=ue[p0]=ue[$0]=ue[T0]=ue[O0]=ue[A0]=ue[P0]=ue[b0]=ue[y0]=ue[Bo]=ue[m0]=ue[x0]=ue[S0]=ue[w0]=ue[M0]=ue[I0]=ue[F0]=ue[k0]=!0,ue[v0]=ue[Lo]=ue[E0]=!1;function xr(e,t,r,n,a,i){var o,s=t&u0,c=t&c0,u=t&f0;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!ke(e))return e;var h=Te(e);if(h){if(o=Tg(e),!s)return Bn(e,o)}else{var l=mr(e),d=l==Lo||l==g0;if(vr(e))return mo(e,s);if(l==Bo||l==No||d&&!a){if(o=c||d?{}:ko(e),!s)return c?hg(e,ag(o,e)):cg(e,Qv(o,e))}else{if(!ue[l])return a?e:{};o=Zg(e,l,s)}}i||(i=new Ge);var p=i.get(e);if(p)return p;i.set(e,o),l0(e)?e.forEach(function(m){o.add(xr(m,t,r,m,e,i))}):a0(e)&&e.forEach(function(m,x){o.set(x,xr(m,t,r,x,e,i))});var v=u?c?pg:Gn:c?yr:br,g=h?void 0:v(e);return ao(g||e,function(m,x){g&&(x=m,m=e[x]),io(o,x,xr(m,t,r,x,e,i))}),o}var j0=4;function Ho(e){return xr(e,j0)}function qn(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var D0="[object Symbol]";function Sr(e){return typeof e=="symbol"||qe(e)&&dt(e)==D0}var N0="Expected a function";function Rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N0);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Rn.Cache||et),r}Rn.Cache=et;var L0=500;function B0(e){var t=Rn(e,function(n){return r.size===L0&&r.clear(),n}),r=t.cache;return t}var H0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G0=/\\(\\)?/g,V0=B0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(H0,function(r,n,a,i){t.push(a?i.replace(G0,"$1"):n||r)}),t});const Go=V0;var U0=1/0;function wr(e){if(typeof e=="string"||Sr(e))return e;var t=e+"";return t=="0"&&1/e==-U0?"-0":t}var z0=1/0,Vo=Ke?Ke.prototype:void 0,Uo=Vo?Vo.toString:void 0;function zo(e){if(typeof e=="string")return e;if(Te(e))return qn(e,zo)+"";if(Sr(e))return Uo?Uo.call(e):"";var t=e+"";return t=="0"&&1/e==-z0?"-0":t}function Wo(e){return e==null?"":zo(e)}function Ko(e){return Te(e)?qn(e,wr):Sr(e)?[e]:Bn(Go(Wo(e)))}var W0=process.env.NODE_ENV==="production";function pe(e,t){if(!W0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Yn={},K0={get exports(){return Yn},set exports(e){Yn=e}},ee={};/** @license React v16.13.1
1
+ (function(B,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("@emotion/react/jsx-runtime"),require("@emotion/react"),require("@mui/material"),require("react"),require("@mui/material/styles"),require("@mui/icons-material/Search"),require("@mui/icons-material/ArrowRight"),require("@mui/icons-material/ArrowBack"),require("@mui/material/TextField"),require("@mui/material/FormControl"),require("@mui/material/FormHelperText"),require("@mui/material/InputLabel"),require("@mui/material/Select"),require("@mui/material/Switch"),require("@mui/material/Checkbox"),require("@mui/material/ToggleButtonGroup")):typeof define=="function"&&define.amd?define(["exports","@emotion/react/jsx-runtime","@emotion/react","@mui/material","react","@mui/material/styles","@mui/icons-material/Search","@mui/icons-material/ArrowRight","@mui/icons-material/ArrowBack","@mui/material/TextField","@mui/material/FormControl","@mui/material/FormHelperText","@mui/material/InputLabel","@mui/material/Select","@mui/material/Switch","@mui/material/Checkbox","@mui/material/ToggleButtonGroup"],y):(B=typeof globalThis<"u"?globalThis:B||self,y(B.configr={},B["emotion-react-jsx-runtime"],B["emotion-react"],B["mui-material"],B.React,B["mui-material/styles"],B.SearchIcon,B.ArrowRightIcon,B.ArrowBackIcon,B.MuiTextField,B["mui-material-formcontrol"],B["mui-material-form-helper-text"],B["mui-material-input-label"],B["mui-material-select"],B.MuiSwitch,B.MuiCheckbox,B.MuiToggleButtonGroup))})(this,function(B,y,le,F,f,nt,oc,sc,lc,uc,cc,fc,dc,hc,pc,vc,gc){"use strict";function bc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Y=bc(f),yc=nt.styled("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:nt.alpha(e.palette.common.white,.15),"&:hover":{backgroundColor:nt.alpha(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),mc=nt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),xc=nt.styled(F.InputBase)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}})),Sc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),y.jsx(F.Box,{sx:{flexGrow:1},children:y.jsx(F.AppBar,{position:"static",children:y.jsxs(F.Toolbar,{children:[y.jsx(F.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&y.jsxs(yc,{children:[y.jsx(mc,{children:y.jsx(oc,{})}),y.jsx(xc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ec(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var xn=Ec;function _c(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ii=_c,Cc=Array.isArray,je=Cc,$c=typeof ir=="object"&&ir&&ir.Object===Object&&ir,Fi=$c,Tc=Fi,Oc=typeof self=="object"&&self&&self.Object===Object&&self,Ac=Tc||Oc||Function("return this")(),We=Ac,Pc=We,Mc=Pc.Symbol,or=Mc,ki=or,Di=Object.prototype,Ic=Di.hasOwnProperty,Fc=Di.toString,sr=ki?ki.toStringTag:void 0;function kc(e){var t=Ic.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch{}var a=Fc.call(e);return n&&(t?e[sr]=r:delete e[sr]),a}var Dc=kc,jc=Object.prototype,Nc=jc.toString;function Lc(e){return Nc.call(e)}var Bc=Lc,ji=or,Hc=Dc,Gc=Bc,Vc="[object Null]",Uc="[object Undefined]",Ni=ji?ji.toStringTag:void 0;function zc(e){return e==null?e===void 0?Uc:Vc:Ni&&Ni in Object(e)?Hc(e):Gc(e)}var ct=zc;function Wc(e){return e!=null&&typeof e=="object"}var Ze=Wc,Kc=ct,qc=Ze,Rc="[object Symbol]";function Yc(e){return typeof e=="symbol"||qc(e)&&Kc(e)==Rc}var Hr=Yc;function Xc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ct=Xc,Jc=ct,Zc=Ct,Qc="[object AsyncFunction]",ef="[object Function]",tf="[object GeneratorFunction]",rf="[object Proxy]";function nf(e){if(!Zc(e))return!1;var t=Jc(e);return t==ef||t==tf||t==Qc||t==rf}var Li=nf,af=We,of=af["__core-js_shared__"],sf=of,Sn=sf,Bi=function(){var e=/[^.]+$/.exec(Sn&&Sn.keys&&Sn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lf(e){return!!Bi&&Bi in e}var uf=lf,cf=Function.prototype,ff=cf.toString;function df(e){if(e!=null){try{return ff.call(e)}catch{}try{return e+""}catch{}}return""}var Hi=df,hf=Li,pf=uf,vf=Ct,gf=Hi,bf=/[\\^$.*+?()[\]{}|]/g,yf=/^\[object .+?Constructor\]$/,mf=Function.prototype,xf=Object.prototype,Sf=mf.toString,wf=xf.hasOwnProperty,Ef=RegExp("^"+Sf.call(wf).replace(bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _f(e){if(!vf(e)||pf(e))return!1;var t=hf(e)?Ef:yf;return t.test(gf(e))}var Cf=_f;function $f(e,t){return e==null?void 0:e[t]}var Tf=$f,Of=Cf,Af=Tf;function Pf(e,t){var r=Af(e,t);return Of(r)?r:void 0}var ft=Pf,Mf=ft,If=Mf(Object,"create"),Gr=If,Gi=Gr;function Ff(){this.__data__=Gi?Gi(null):{},this.size=0}var kf=Ff;function Df(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jf=Df,Nf=Gr,Lf="__lodash_hash_undefined__",Bf=Object.prototype,Hf=Bf.hasOwnProperty;function Gf(e){var t=this.__data__;if(Nf){var r=t[e];return r===Lf?void 0:r}return Hf.call(t,e)?t[e]:void 0}var Vf=Gf,Uf=Gr,zf=Object.prototype,Wf=zf.hasOwnProperty;function Kf(e){var t=this.__data__;return Uf?t[e]!==void 0:Wf.call(t,e)}var qf=Kf,Rf=Gr,Yf="__lodash_hash_undefined__";function Xf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rf&&t===void 0?Yf:t,this}var Jf=Xf,Zf=kf,Qf=jf,ed=Vf,td=qf,rd=Jf;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Zf,$t.prototype.delete=Qf,$t.prototype.get=ed,$t.prototype.has=td,$t.prototype.set=rd;var nd=$t;function ad(){this.__data__=[],this.size=0}var id=ad;function od(e,t){return e===t||e!==e&&t!==t}var wn=od,sd=wn;function ld(e,t){for(var r=e.length;r--;)if(sd(e[r][0],t))return r;return-1}var Vr=ld,ud=Vr,cd=Array.prototype,fd=cd.splice;function dd(e){var t=this.__data__,r=ud(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fd.call(t,r,1),--this.size,!0}var hd=dd,pd=Vr;function vd(e){var t=this.__data__,r=pd(t,e);return r<0?void 0:t[r][1]}var gd=vd,bd=Vr;function yd(e){return bd(this.__data__,e)>-1}var md=yd,xd=Vr;function Sd(e,t){var r=this.__data__,n=xd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var wd=Sd,Ed=id,_d=hd,Cd=gd,$d=md,Td=wd;function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=Ed,Tt.prototype.delete=_d,Tt.prototype.get=Cd,Tt.prototype.has=$d,Tt.prototype.set=Td;var Ur=Tt,Od=ft,Ad=We,Pd=Od(Ad,"Map"),En=Pd,Vi=nd,Md=Ur,Id=En;function Fd(){this.size=0,this.__data__={hash:new Vi,map:new(Id||Md),string:new Vi}}var kd=Fd;function Dd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var jd=Dd,Nd=jd;function Ld(e,t){var r=e.__data__;return Nd(t)?r[typeof t=="string"?"string":"hash"]:r.map}var zr=Ld,Bd=zr;function Hd(e){var t=Bd(this,e).delete(e);return this.size-=t?1:0,t}var Gd=Hd,Vd=zr;function Ud(e){return Vd(this,e).get(e)}var zd=Ud,Wd=zr;function Kd(e){return Wd(this,e).has(e)}var qd=Kd,Rd=zr;function Yd(e,t){var r=Rd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Xd=Yd,Jd=kd,Zd=Gd,Qd=zd,eh=qd,th=Xd;function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=Jd,Ot.prototype.delete=Zd,Ot.prototype.get=Qd,Ot.prototype.has=eh,Ot.prototype.set=th;var _n=Ot,Ui=_n,rh="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rh);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Cn.Cache||Ui),r}Cn.Cache=Ui;var nh=Cn,ah=nh,ih=500;function oh(e){var t=ah(e,function(n){return r.size===ih&&r.clear(),n}),r=t.cache;return t}var sh=oh,lh=sh,uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ch=/\\(\\)?/g,fh=lh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uh,function(r,n,a,i){t.push(a?i.replace(ch,"$1"):n||r)}),t}),zi=fh,dh=Hr,hh=1/0;function ph(e){if(typeof e=="string"||dh(e))return e;var t=e+"";return t=="0"&&1/e==-hh?"-0":t}var lr=ph,Wi=or,vh=xn,gh=je,bh=Hr,yh=1/0,Ki=Wi?Wi.prototype:void 0,qi=Ki?Ki.toString:void 0;function Ri(e){if(typeof e=="string")return e;if(gh(e))return vh(e,Ri)+"";if(bh(e))return qi?qi.call(e):"";var t=e+"";return t=="0"&&1/e==-yh?"-0":t}var mh=Ri,xh=mh;function Sh(e){return e==null?"":xh(e)}var Yi=Sh,wh=xn,Eh=Ii,_h=je,Ch=Hr,$h=zi,Th=lr,Oh=Yi;function Ah(e){return _h(e)?wh(e,Th):Ch(e)?[e]:Eh($h(Oh(e)))}var Ph=Ah,Xi=Array.isArray,Ji=Object.keys,Mh=Object.prototype.hasOwnProperty,Ih=typeof Element<"u";function $n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Xi(e),n=Xi(t),a,i,o;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!$n(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,c=t instanceof Date;if(s!=c)return!1;if(s&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,h=t instanceof RegExp;if(u!=h)return!1;if(u&&h)return e.toString()==t.toString();var l=Ji(e);if(i=l.length,i!==Ji(t).length)return!1;for(a=i;a--!==0;)if(!Mh.call(t,l[a]))return!1;if(Ih&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(o=l[a],!(o==="_owner"&&e.$$typeof)&&!$n(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var at=function(t,r){try{return $n(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}},Fh=function(t){return kh(t)&&!Dh(t)};function kh(e){return!!e&&typeof e=="object"}function Dh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Lh(e)}var jh=typeof Symbol=="function"&&Symbol.for,Nh=jh?Symbol.for("react.element"):60103;function Lh(e){return e.$$typeof===Nh}function Bh(e){return Array.isArray(e)?[]:{}}function Wr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ur(Bh(e),e,t):e}function Hh(e,t,r){return e.concat(t).map(function(n){return Wr(n,r)})}function Gh(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Wr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Wr(t[a],r):n[a]=ur(e[a],t[a],r)}),n}function ur(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Hh,r.isMergeableObject=r.isMergeableObject||Fh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Gh(e,t,r):Wr(t,r)}ur.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return ur(n,a,r)},{})};var Tn=ur,Vh=typeof global=="object"&&global&&global.Object===Object&&global;const Zi=Vh;var Uh=typeof self=="object"&&self&&self.Object===Object&&self,zh=Zi||Uh||Function("return this")();const He=zh;var Wh=He.Symbol;const Ke=Wh;var Qi=Object.prototype,Kh=Qi.hasOwnProperty,qh=Qi.toString,cr=Ke?Ke.toStringTag:void 0;function Rh(e){var t=Kh.call(e,cr),r=e[cr];try{e[cr]=void 0;var n=!0}catch{}var a=qh.call(e);return n&&(t?e[cr]=r:delete e[cr]),a}var Yh=Object.prototype,Xh=Yh.toString;function Jh(e){return Xh.call(e)}var Zh="[object Null]",Qh="[object Undefined]",eo=Ke?Ke.toStringTag:void 0;function dt(e){return e==null?e===void 0?Qh:Zh:eo&&eo in Object(e)?Rh(e):Jh(e)}function to(e,t){return function(r){return e(t(r))}}var ep=to(Object.getPrototypeOf,Object);const On=ep;function qe(e){return e!=null&&typeof e=="object"}var tp="[object Object]",rp=Function.prototype,np=Object.prototype,ro=rp.toString,ap=np.hasOwnProperty,ip=ro.call(Object);function An(e){if(!qe(e)||dt(e)!=tp)return!1;var t=On(e);if(t===null)return!0;var r=ap.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ro.call(r)==ip}function op(){this.__data__=[],this.size=0}function fr(e,t){return e===t||e!==e&&t!==t}function Kr(e,t){for(var r=e.length;r--;)if(fr(e[r][0],t))return r;return-1}var sp=Array.prototype,lp=sp.splice;function up(e){var t=this.__data__,r=Kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lp.call(t,r,1),--this.size,!0}function cp(e){var t=this.__data__,r=Kr(t,e);return r<0?void 0:t[r][1]}function fp(e){return Kr(this.__data__,e)>-1}function dp(e,t){var r=this.__data__,n=Kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=op,Qe.prototype.delete=up,Qe.prototype.get=cp,Qe.prototype.has=fp,Qe.prototype.set=dp;function hp(){this.__data__=new Qe,this.size=0}function pp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function vp(e){return this.__data__.get(e)}function gp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bp="[object AsyncFunction]",yp="[object Function]",mp="[object GeneratorFunction]",xp="[object Proxy]";function Pn(e){if(!ke(e))return!1;var t=dt(e);return t==yp||t==mp||t==bp||t==xp}var Sp=He["__core-js_shared__"];const Mn=Sp;var no=function(){var e=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wp(e){return!!no&&no in e}var Ep=Function.prototype,_p=Ep.toString;function ht(e){if(e!=null){try{return _p.call(e)}catch{}try{return e+""}catch{}}return""}var Cp=/[\\^$.*+?()[\]{}|]/g,$p=/^\[object .+?Constructor\]$/,Tp=Function.prototype,Op=Object.prototype,Ap=Tp.toString,Pp=Op.hasOwnProperty,Mp=RegExp("^"+Ap.call(Pp).replace(Cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ip(e){if(!ke(e)||wp(e))return!1;var t=Pn(e)?Mp:$p;return t.test(ht(e))}function Fp(e,t){return e==null?void 0:e[t]}function pt(e,t){var r=Fp(e,t);return Ip(r)?r:void 0}var kp=pt(He,"Map");const dr=kp;var Dp=pt(Object,"create");const hr=Dp;function jp(){this.__data__=hr?hr(null):{},this.size=0}function Np(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lp="__lodash_hash_undefined__",Bp=Object.prototype,Hp=Bp.hasOwnProperty;function Gp(e){var t=this.__data__;if(hr){var r=t[e];return r===Lp?void 0:r}return Hp.call(t,e)?t[e]:void 0}var Vp=Object.prototype,Up=Vp.hasOwnProperty;function zp(e){var t=this.__data__;return hr?t[e]!==void 0:Up.call(t,e)}var Wp="__lodash_hash_undefined__";function Kp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===void 0?Wp:t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=jp,vt.prototype.delete=Np,vt.prototype.get=Gp,vt.prototype.has=zp,vt.prototype.set=Kp;function qp(){this.size=0,this.__data__={hash:new vt,map:new(dr||Qe),string:new vt}}function Rp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qr(e,t){var r=e.__data__;return Rp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yp(e){var t=qr(this,e).delete(e);return this.size-=t?1:0,t}function Xp(e){return qr(this,e).get(e)}function Jp(e){return qr(this,e).has(e)}function Zp(e,t){var r=qr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=qp,et.prototype.delete=Yp,et.prototype.get=Xp,et.prototype.has=Jp,et.prototype.set=Zp;var Qp=200;function ev(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!dr||n.length<Qp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new Qe(e);this.size=t.size}Ge.prototype.clear=hp,Ge.prototype.delete=pp,Ge.prototype.get=vp,Ge.prototype.has=gp,Ge.prototype.set=ev;function ao(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tv=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Rr=tv;function In(e,t,r){t=="__proto__"&&Rr?Rr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rv=Object.prototype,nv=rv.hasOwnProperty;function io(e,t,r){var n=e[t];(!(nv.call(e,t)&&fr(n,r))||r===void 0&&!(t in e))&&In(e,t,r)}function pr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?In(r,s,c):io(r,s,c)}return r}function av(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var iv="[object Arguments]";function oo(e){return qe(e)&&dt(e)==iv}var so=Object.prototype,ov=so.hasOwnProperty,sv=so.propertyIsEnumerable,lv=oo(function(){return arguments}())?oo:function(e){return qe(e)&&ov.call(e,"callee")&&!sv.call(e,"callee")};const Yr=lv;var uv=Array.isArray;const Te=uv;function cv(){return!1}var lo=typeof B=="object"&&B&&!B.nodeType&&B,uo=lo&&typeof module=="object"&&module&&!module.nodeType&&module,fv=uo&&uo.exports===lo,co=fv?He.Buffer:void 0,dv=co?co.isBuffer:void 0,hv=dv||cv;const vr=hv;var pv=9007199254740991,vv=/^(?:0|[1-9]\d*)$/;function Fn(e,t){var r=typeof e;return t=t??pv,!!t&&(r=="number"||r!="symbol"&&vv.test(e))&&e>-1&&e%1==0&&e<t}var gv=9007199254740991;function kn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gv}var bv="[object Arguments]",yv="[object Array]",mv="[object Boolean]",xv="[object Date]",Sv="[object Error]",wv="[object Function]",Ev="[object Map]",_v="[object Number]",Cv="[object Object]",$v="[object RegExp]",Tv="[object Set]",Ov="[object String]",Av="[object WeakMap]",Pv="[object ArrayBuffer]",Mv="[object DataView]",Iv="[object Float32Array]",Fv="[object Float64Array]",kv="[object Int8Array]",Dv="[object Int16Array]",jv="[object Int32Array]",Nv="[object Uint8Array]",Lv="[object Uint8ClampedArray]",Bv="[object Uint16Array]",Hv="[object Uint32Array]",fe={};fe[Iv]=fe[Fv]=fe[kv]=fe[Dv]=fe[jv]=fe[Nv]=fe[Lv]=fe[Bv]=fe[Hv]=!0,fe[bv]=fe[yv]=fe[Pv]=fe[mv]=fe[Mv]=fe[xv]=fe[Sv]=fe[wv]=fe[Ev]=fe[_v]=fe[Cv]=fe[$v]=fe[Tv]=fe[Ov]=fe[Av]=!1;function Gv(e){return qe(e)&&kn(e.length)&&!!fe[dt(e)]}function Dn(e){return function(t){return e(t)}}var fo=typeof B=="object"&&B&&!B.nodeType&&B,gr=fo&&typeof module=="object"&&module&&!module.nodeType&&module,Vv=gr&&gr.exports===fo,jn=Vv&&Zi.process,Uv=function(){try{var e=gr&&gr.require&&gr.require("util").types;return e||jn&&jn.binding&&jn.binding("util")}catch{}}();const At=Uv;var ho=At&&At.isTypedArray,zv=ho?Dn(ho):Gv;const Nn=zv;var Wv=Object.prototype,Kv=Wv.hasOwnProperty;function po(e,t){var r=Te(e),n=!r&&Yr(e),a=!r&&!n&&vr(e),i=!r&&!n&&!a&&Nn(e),o=r||n||a||i,s=o?av(e.length,String):[],c=s.length;for(var u in e)(t||Kv.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fn(u,c)))&&s.push(u);return s}var qv=Object.prototype;function Ln(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qv;return e===r}var Rv=to(Object.keys,Object);const Yv=Rv;var Xv=Object.prototype,Jv=Xv.hasOwnProperty;function Zv(e){if(!Ln(e))return Yv(e);var t=[];for(var r in Object(e))Jv.call(e,r)&&r!="constructor"&&t.push(r);return t}function Pt(e){return e!=null&&kn(e.length)&&!Pn(e)}function br(e){return Pt(e)?po(e):Zv(e)}function Qv(e,t){return e&&pr(t,br(t),e)}function eg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var tg=Object.prototype,rg=tg.hasOwnProperty;function ng(e){if(!ke(e))return eg(e);var t=Ln(e),r=[];for(var n in e)n=="constructor"&&(t||!rg.call(e,n))||r.push(n);return r}function yr(e){return Pt(e)?po(e,!0):ng(e)}function ag(e,t){return e&&pr(t,yr(t),e)}var vo=typeof B=="object"&&B&&!B.nodeType&&B,go=vo&&typeof module=="object"&&module&&!module.nodeType&&module,ig=go&&go.exports===vo,bo=ig?He.Buffer:void 0,yo=bo?bo.allocUnsafe:void 0;function mo(e,t){if(t)return e.slice();var r=e.length,n=yo?yo(r):new e.constructor(r);return e.copy(n),n}function Bn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function og(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function xo(){return[]}var sg=Object.prototype,lg=sg.propertyIsEnumerable,So=Object.getOwnPropertySymbols,ug=So?function(e){return e==null?[]:(e=Object(e),og(So(e),function(t){return lg.call(e,t)}))}:xo;const Hn=ug;function cg(e,t){return pr(e,Hn(e),t)}function wo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var fg=Object.getOwnPropertySymbols,dg=fg?function(e){for(var t=[];e;)wo(t,Hn(e)),e=On(e);return t}:xo;const Eo=dg;function hg(e,t){return pr(e,Eo(e),t)}function _o(e,t,r){var n=t(e);return Te(e)?n:wo(n,r(e))}function Gn(e){return _o(e,br,Hn)}function pg(e){return _o(e,yr,Eo)}var vg=pt(He,"DataView");const Vn=vg;var gg=pt(He,"Promise");const Un=gg;var bg=pt(He,"Set");const zn=bg;var yg=pt(He,"WeakMap");const Wn=yg;var Co="[object Map]",mg="[object Object]",$o="[object Promise]",To="[object Set]",Oo="[object WeakMap]",Ao="[object DataView]",xg=ht(Vn),Sg=ht(dr),wg=ht(Un),Eg=ht(zn),_g=ht(Wn),gt=dt;(Vn&&gt(new Vn(new ArrayBuffer(1)))!=Ao||dr&&gt(new dr)!=Co||Un&&gt(Un.resolve())!=$o||zn&&gt(new zn)!=To||Wn&&gt(new Wn)!=Oo)&&(gt=function(e){var t=dt(e),r=t==mg?e.constructor:void 0,n=r?ht(r):"";if(n)switch(n){case xg:return Ao;case Sg:return Co;case wg:return $o;case Eg:return To;case _g:return Oo}return t});const mr=gt;var Cg=Object.prototype,$g=Cg.hasOwnProperty;function Tg(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&$g.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Og=He.Uint8Array;const Xr=Og;function Kn(e){var t=new e.constructor(e.byteLength);return new Xr(t).set(new Xr(e)),t}function Ag(e,t){var r=t?Kn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Pg=/\w*$/;function Mg(e){var t=new e.constructor(e.source,Pg.exec(e));return t.lastIndex=e.lastIndex,t}var Po=Ke?Ke.prototype:void 0,Mo=Po?Po.valueOf:void 0;function Ig(e){return Mo?Object(Mo.call(e)):{}}function Io(e,t){var r=t?Kn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Fg="[object Boolean]",kg="[object Date]",Dg="[object Map]",jg="[object Number]",Ng="[object RegExp]",Lg="[object Set]",Bg="[object String]",Hg="[object Symbol]",Gg="[object ArrayBuffer]",Vg="[object DataView]",Ug="[object Float32Array]",zg="[object Float64Array]",Wg="[object Int8Array]",Kg="[object Int16Array]",qg="[object Int32Array]",Rg="[object Uint8Array]",Yg="[object Uint8ClampedArray]",Xg="[object Uint16Array]",Jg="[object Uint32Array]";function Zg(e,t,r){var n=e.constructor;switch(t){case Gg:return Kn(e);case Fg:case kg:return new n(+e);case Vg:return Ag(e,r);case Ug:case zg:case Wg:case Kg:case qg:case Rg:case Yg:case Xg:case Jg:return Io(e,r);case Dg:return new n;case jg:case Bg:return new n(e);case Ng:return Mg(e);case Lg:return new n;case Hg:return Ig(e)}}var Fo=Object.create,Qg=function(){function e(){}return function(t){if(!ke(t))return{};if(Fo)return Fo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const e0=Qg;function ko(e){return typeof e.constructor=="function"&&!Ln(e)?e0(On(e)):{}}var t0="[object Map]";function r0(e){return qe(e)&&mr(e)==t0}var Do=At&&At.isMap,n0=Do?Dn(Do):r0;const a0=n0;var i0="[object Set]";function o0(e){return qe(e)&&mr(e)==i0}var jo=At&&At.isSet,s0=jo?Dn(jo):o0;const l0=s0;var u0=1,c0=2,f0=4,No="[object Arguments]",d0="[object Array]",h0="[object Boolean]",p0="[object Date]",v0="[object Error]",Lo="[object Function]",g0="[object GeneratorFunction]",b0="[object Map]",y0="[object Number]",Bo="[object Object]",m0="[object RegExp]",x0="[object Set]",S0="[object String]",w0="[object Symbol]",E0="[object WeakMap]",_0="[object ArrayBuffer]",C0="[object DataView]",$0="[object Float32Array]",T0="[object Float64Array]",O0="[object Int8Array]",A0="[object Int16Array]",P0="[object Int32Array]",M0="[object Uint8Array]",I0="[object Uint8ClampedArray]",F0="[object Uint16Array]",k0="[object Uint32Array]",ue={};ue[No]=ue[d0]=ue[_0]=ue[C0]=ue[h0]=ue[p0]=ue[$0]=ue[T0]=ue[O0]=ue[A0]=ue[P0]=ue[b0]=ue[y0]=ue[Bo]=ue[m0]=ue[x0]=ue[S0]=ue[w0]=ue[M0]=ue[I0]=ue[F0]=ue[k0]=!0,ue[v0]=ue[Lo]=ue[E0]=!1;function xr(e,t,r,n,a,i){var o,s=t&u0,c=t&c0,u=t&f0;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!ke(e))return e;var h=Te(e);if(h){if(o=Tg(e),!s)return Bn(e,o)}else{var l=mr(e),d=l==Lo||l==g0;if(vr(e))return mo(e,s);if(l==Bo||l==No||d&&!a){if(o=c||d?{}:ko(e),!s)return c?hg(e,ag(o,e)):cg(e,Qv(o,e))}else{if(!ue[l])return a?e:{};o=Zg(e,l,s)}}i||(i=new Ge);var p=i.get(e);if(p)return p;i.set(e,o),l0(e)?e.forEach(function(m){o.add(xr(m,t,r,m,e,i))}):a0(e)&&e.forEach(function(m,x){o.set(x,xr(m,t,r,x,e,i))});var v=u?c?pg:Gn:c?yr:br,g=h?void 0:v(e);return ao(g||e,function(m,x){g&&(x=m,m=e[x]),io(o,x,xr(m,t,r,x,e,i))}),o}var D0=4;function Ho(e){return xr(e,D0)}function qn(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var j0="[object Symbol]";function Sr(e){return typeof e=="symbol"||qe(e)&&dt(e)==j0}var N0="Expected a function";function Rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N0);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Rn.Cache||et),r}Rn.Cache=et;var L0=500;function B0(e){var t=Rn(e,function(n){return r.size===L0&&r.clear(),n}),r=t.cache;return t}var H0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G0=/\\(\\)?/g,V0=B0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(H0,function(r,n,a,i){t.push(a?i.replace(G0,"$1"):n||r)}),t});const Go=V0;var U0=1/0;function wr(e){if(typeof e=="string"||Sr(e))return e;var t=e+"";return t=="0"&&1/e==-U0?"-0":t}var z0=1/0,Vo=Ke?Ke.prototype:void 0,Uo=Vo?Vo.toString:void 0;function zo(e){if(typeof e=="string")return e;if(Te(e))return qn(e,zo)+"";if(Sr(e))return Uo?Uo.call(e):"";var t=e+"";return t=="0"&&1/e==-z0?"-0":t}function Wo(e){return e==null?"":zo(e)}function Ko(e){return Te(e)?qn(e,wr):Sr(e)?[e]:Bn(Go(Wo(e)))}var W0=process.env.NODE_ENV==="production";function pe(e,t){if(!W0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Yn={},K0={get exports(){return Yn},set exports(e){Yn=e}},ee={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Ro;function R0(){return Ro||(Ro=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===m||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var $e=E.$$typeof;switch($e){case t:var ze=E.type;switch(ze){case c:case u:case n:case i:case a:case l:return ze;default:var _t=ze&&ze.$$typeof;switch(_t){case s:case h:case v:case p:case o:return _t;default:return $e}}case r:return $e}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!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.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function N(E){return S(E)===n}function L(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function K(E){return S(E)===i}function X(E){return S(E)===a}function we(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=k,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=he,te.Memo=Se,te.Portal=be,te.Profiler=Ce,te.StrictMode=se,te.Suspense=me,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=N,te.isLazy=L,te.isMemo=H,te.isPortal=P,te.isProfiler=K,te.isStrictMode=X,te.isSuspense=we,te.isValidElementType=_,te.typeOf=S}()),te}(function(e){process.env.NODE_ENV==="production"?e.exports=q0():e.exports=R0()})(K0);var Yo=Yn,Y0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xo={};Xo[Yo.ForwardRef]=Y0,Xo[Yo.Memo]=X0;var J0=1,Z0=4;function Q0(e){return xr(e,J0|Z0)}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oe.apply(this,arguments)}function eb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function bt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Jo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zo=function(t){return Array.isArray(t)&&t.length===0},_e=function(t){return typeof t=="function"},Er=function(t){return t!==null&&typeof t=="object"},tb=function(t){return String(Math.floor(Number(t)))===t},Xn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Jn=function(t){return f.Children.count(t)===0},Zn=function(t){return Er(t)&&_e(t.then)};function rb(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t,r,n){n===void 0&&(n=0);for(var a=Ko(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function Re(e,t,r){for(var n=Ho(e),a=n,i=0,o=Ko(t);i<o.length-1;i++){var s=o[i],c=ye(e,o.slice(0,i+1));if(c&&(Er(c)||Array.isArray(c)))a=a[s]=Ho(c);else{var u=o[i+1];a=a[s]=tb(u)&&Number(u)>=0?[]:{}}}return(i===0?e:a)[o[i]]===r?e:(r===void 0?delete a[o[i]]:a[o[i]]=r,i===0&&r===void 0&&delete n[o[i]],n)}function Qo(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];Er(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},Qo(s,t,r,n[o])):n[o]=t}return n}var Jr=f.createContext(void 0);Jr.displayName="FormikContext";var nb=Jr.Provider;Jr.Consumer;function it(){var e=f.useContext(Jr);return e||(process.env.NODE_ENV!=="production"?pe(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):pe(!1)),e}function ab(e,t){switch(t.type){case"SET_VALUES":return oe({},e,{values:t.payload});case"SET_TOUCHED":return oe({},e,{touched:t.payload});case"SET_ERRORS":return at(e.errors,t.payload)?e:oe({},e,{errors:t.payload});case"SET_STATUS":return oe({},e,{status:t.payload});case"SET_ISSUBMITTING":return oe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return oe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return oe({},e,{values:Re(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return oe({},e,{touched:Re(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return oe({},e,{errors:Re(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return oe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return oe({},e,{touched:Qo(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return oe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return oe({},e,{isSubmitting:!1});default:return e}}var yt={},Zr={};function ib(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,o=i===void 0?!1:i,s=e.isInitialValid,c=e.enableReinitialize,u=c===void 0?!1:c,h=e.onSubmit,l=bt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=oe({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:h},l),p=f.useRef(d.initialValues),v=f.useRef(d.initialErrors||yt),g=f.useRef(d.initialTouched||Zr),m=f.useRef(d.initialStatus),x=f.useRef(!1),C=f.useRef({});process.env.NODE_ENV!=="production"&&f.useEffect(function(){typeof s>"u"||(process.env.NODE_ENV!=="production"?pe(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):pe(!1))},[]),f.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var _=f.useReducer(ab,{values:d.initialValues,errors:d.initialErrors||yt,touched:d.initialTouched||Zr,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=f.useCallback(function(w,I){return new Promise(function(D,V){var R=d.validate(w,I);R==null?D(yt):Zn(R)?R.then(function(Q){D(Q||yt)},function(Q){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Q),V(Q)}):D(R)})},[d.validate]),k=f.useCallback(function(w,I){var D=d.validationSchema,V=_e(D)?D(I):D,R=I&&V.validateAt?V.validateAt(I,w):lb(w,V);return new Promise(function(Q,Ee){R.then(function(){Q(yt)},function(Je){Je.name==="ValidationError"?Q(sb(Je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Je),Ee(Je))})})},[d.validationSchema]),W=f.useCallback(function(w,I){return new Promise(function(D){return D(C.current[w].validate(I))})},[]),q=f.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return _e(C.current[V].validate)}),D=I.length>0?I.map(function(V){return W(V,ye(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(D).then(function(V){return V.reduce(function(R,Q,Ee){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(R=Re(R,I[Ee],Q)),R},{})})},[W]),ge=f.useCallback(function(w){return Promise.all([q(w),d.validationSchema?k(w):{},d.validate?T(w):{}]).then(function(I){var D=I[0],V=I[1],R=I[2],Q=Tn.all([D,V,R],{arrayMerge:ub});return Q})},[d.validate,d.validationSchema,q,T,k]),ae=Ne(function(w){return w===void 0&&(w=S.values),b({type:"SET_ISVALIDATING",payload:!0}),ge(w).then(function(I){return x.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:I})),I})});f.useEffect(function(){o&&x.current===!0&&at(p.current,d.initialValues)&&ae(p.current)},[o,ae]);var he=f.useCallback(function(w){var I=w&&w.values?w.values:p.current,D=w&&w.errors?w.errors:v.current?v.current:d.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:d.initialTouched||{},R=w&&w.status?w.status:m.current?m.current:d.initialStatus;p.current=I,v.current=D,g.current=V,m.current=R;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:D,touched:V,status:R,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(d.onReset){var Ee=d.onReset(S.values,we);Zn(Ee)?Ee.then(Q):Q()}else Q()},[d.initialErrors,d.initialStatus,d.initialTouched]);f.useEffect(function(){x.current===!0&&!at(p.current,d.initialValues)&&(u&&(p.current=d.initialValues,he()),o&&ae(p.current))},[u,d.initialValues,he,o,ae]),f.useEffect(function(){u&&x.current===!0&&!at(v.current,d.initialErrors)&&(v.current=d.initialErrors||yt,b({type:"SET_ERRORS",payload:d.initialErrors||yt}))},[u,d.initialErrors]),f.useEffect(function(){u&&x.current===!0&&!at(g.current,d.initialTouched)&&(g.current=d.initialTouched||Zr,b({type:"SET_TOUCHED",payload:d.initialTouched||Zr}))},[u,d.initialTouched]),f.useEffect(function(){u&&x.current===!0&&!at(m.current,d.initialStatus)&&(m.current=d.initialStatus,b({type:"SET_STATUS",payload:d.initialStatus}))},[u,d.initialStatus,d.initialTouched]);var Se=Ne(function(w){if(C.current[w]&&_e(C.current[w].validate)){var I=ye(S.values,w),D=C.current[w].validate(I);return Zn(D)?(b({type:"SET_ISVALIDATING",payload:!0}),D.then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:w,value:D}}),Promise.resolve(D))}else if(d.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),k(S.values,w).then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V[w]}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),be=f.useCallback(function(w,I){var D=I.validate;C.current[w]={validate:D}},[]),Ce=f.useCallback(function(w){delete C.current[w]},[]),se=Ne(function(w,I){b({type:"SET_TOUCHED",payload:w});var D=I===void 0?a:I;return D?ae(S.values):Promise.resolve()}),me=f.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=Ne(function(w,I){var D=_e(w)?w(S.values):w;b({type:"SET_VALUES",payload:D});var V=I===void 0?r:I;return V?ae(D):Promise.resolve()}),Ae=f.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=Ne(function(w,I,D){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=D===void 0?r:D;return V?ae(Re(S.values,w,I)):Promise.resolve()}),A=f.useCallback(function(w,I){var D=I,V=w,R;if(!Xn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,Ee=Q.type,Je=Q.name,Pi=Q.id,Mi=Q.value,bP=Q.checked,yP=Q.outerHTML,ic=Q.options,mP=Q.multiple;D=I||Je||Pi,!D&&process.env.NODE_ENV!=="production"&&es({htmlContent:yP,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(Ee)?(R=parseFloat(Mi),isNaN(R)?"":R):/checkbox/.test(Ee)?fb(ye(S.values,D),bP,Mi):ic&&mP?cb(ic):Mi}D&&$(D,V)},[$,S.values]),U=Ne(function(w){if(Xn(w))return function(I){return A(I,w)};A(w)}),G=Ne(function(w,I,D){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=D===void 0?a:D;return V?ae(S.values):Promise.resolve()}),M=f.useCallback(function(w,I){w.persist&&w.persist();var D=w.target,V=D.name,R=D.id,Q=D.outerHTML,Ee=I||V||R;!Ee&&process.env.NODE_ENV!=="production"&&es({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(Ee,!0)},[G]),N=Ne(function(w){if(Xn(w))return function(I){return M(I,w)};M(w)}),L=f.useCallback(function(w){_e(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=f.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=f.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),K=Ne(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,D=!I&&Object.keys(w).length===0;if(D){var V;try{if(V=E(),V===void 0)return}catch(R){throw R}return Promise.resolve(V).then(function(R){return x.current&&b({type:"SUBMIT_SUCCESS"}),R}).catch(function(R){if(x.current)throw b({type:"SUBMIT_FAILURE"}),R})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),X=Ne(function(w){if(w&&w.preventDefault&&_e(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&_e(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var I=rb();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?pe(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pe(!1)))}K().catch(function(D){console.warn("Warning: An unhandled error was caught from submitForm()",D)})}),we={resetForm:he,validateForm:ae,validateField:Se,setErrors:me,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,setFormikState:L,submitForm:K},E=Ne(function(){return h(S.values,we)}),$e=Ne(function(w){w&&w.preventDefault&&_e(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&_e(w.stopPropagation)&&w.stopPropagation(),he()}),ze=f.useCallback(function(w){return{value:ye(S.values,w),error:ye(S.errors,w),touched:!!ye(S.touched,w),initialValue:ye(p.current,w),initialTouched:!!ye(g.current,w),initialError:ye(v.current,w)}},[S.errors,S.touched,S.values]),_t=f.useCallback(function(w){return{setValue:function(D,V){return $(w,D,V)},setTouched:function(D,V){return G(w,D,V)},setError:function(D){return Ae(w,D)}}},[$,G,Ae]),pP=f.useCallback(function(w){var I=Er(w),D=I?w.name:w,V=ye(S.values,D),R={name:D,value:V,onChange:U,onBlur:N};if(I){var Q=w.type,Ee=w.value,Je=w.as,Pi=w.multiple;Q==="checkbox"?Ee===void 0?R.checked=!!V:(R.checked=!!(Array.isArray(V)&&~V.indexOf(Ee)),R.value=Ee):Q==="radio"?(R.checked=V===Ee,R.value=Ee):Je==="select"&&Pi&&(R.value=R.value||[],R.multiple=!0)}return R},[N,U,S.values]),Ai=f.useMemo(function(){return!at(p.current,S.values)},[p.current,S.values]),vP=f.useMemo(function(){return typeof s<"u"?Ai?S.errors&&Object.keys(S.errors).length===0:s!==!1&&_e(s)?s(d):s:S.errors&&Object.keys(S.errors).length===0},[s,Ai,S.errors,d]),gP=oe({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:m.current,handleBlur:N,handleChange:U,handleReset:$e,handleSubmit:X,resetForm:he,setErrors:me,setFormikState:L,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,submitForm:K,validateForm:ae,validateField:Se,isValid:vP,dirty:Ai,unregisterField:Ce,registerField:be,getFieldProps:pP,getFieldMeta:ze,getFieldHelpers:_t,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return gP}function ob(e){var t=ib(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return f.useImperativeHandle(i,function(){return t}),process.env.NODE_ENV!=="production"&&f.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?pe(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):pe(!1))},[]),f.createElement(nb,{value:t},r?f.createElement(r,t):a?a(t):n?_e(n)?n(t):Jn(n)?null:f.Children.only(n):null)}function es(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
15
+ */var Ro;function R0(){return Ro||(Ro=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===m||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var $e=E.$$typeof;switch($e){case t:var ze=E.type;switch(ze){case c:case u:case n:case i:case a:case l:return ze;default:var _t=ze&&ze.$$typeof;switch(_t){case s:case h:case v:case p:case o:return _t;default:return $e}}case r:return $e}}}var b=c,T=u,D=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!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.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function N(E){return S(E)===n}function L(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function K(E){return S(E)===i}function X(E){return S(E)===a}function we(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=D,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=he,te.Memo=Se,te.Portal=be,te.Profiler=Ce,te.StrictMode=se,te.Suspense=me,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=N,te.isLazy=L,te.isMemo=H,te.isPortal=P,te.isProfiler=K,te.isStrictMode=X,te.isSuspense=we,te.isValidElementType=_,te.typeOf=S}()),te}(function(e){process.env.NODE_ENV==="production"?e.exports=q0():e.exports=R0()})(K0);var Yo=Yn,Y0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xo={};Xo[Yo.ForwardRef]=Y0,Xo[Yo.Memo]=X0;var J0=1,Z0=4;function Q0(e){return xr(e,J0|Z0)}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oe.apply(this,arguments)}function eb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function bt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Jo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zo=function(t){return Array.isArray(t)&&t.length===0},_e=function(t){return typeof t=="function"},Er=function(t){return t!==null&&typeof t=="object"},tb=function(t){return String(Math.floor(Number(t)))===t},Xn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Jn=function(t){return f.Children.count(t)===0},Zn=function(t){return Er(t)&&_e(t.then)};function rb(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t,r,n){n===void 0&&(n=0);for(var a=Ko(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function Re(e,t,r){for(var n=Ho(e),a=n,i=0,o=Ko(t);i<o.length-1;i++){var s=o[i],c=ye(e,o.slice(0,i+1));if(c&&(Er(c)||Array.isArray(c)))a=a[s]=Ho(c);else{var u=o[i+1];a=a[s]=tb(u)&&Number(u)>=0?[]:{}}}return(i===0?e:a)[o[i]]===r?e:(r===void 0?delete a[o[i]]:a[o[i]]=r,i===0&&r===void 0&&delete n[o[i]],n)}function Qo(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];Er(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},Qo(s,t,r,n[o])):n[o]=t}return n}var Jr=f.createContext(void 0);Jr.displayName="FormikContext";var nb=Jr.Provider;Jr.Consumer;function it(){var e=f.useContext(Jr);return e||(process.env.NODE_ENV!=="production"?pe(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):pe(!1)),e}function ab(e,t){switch(t.type){case"SET_VALUES":return oe({},e,{values:t.payload});case"SET_TOUCHED":return oe({},e,{touched:t.payload});case"SET_ERRORS":return at(e.errors,t.payload)?e:oe({},e,{errors:t.payload});case"SET_STATUS":return oe({},e,{status:t.payload});case"SET_ISSUBMITTING":return oe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return oe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return oe({},e,{values:Re(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return oe({},e,{touched:Re(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return oe({},e,{errors:Re(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return oe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return oe({},e,{touched:Qo(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return oe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return oe({},e,{isSubmitting:!1});default:return e}}var yt={},Zr={};function ib(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,o=i===void 0?!1:i,s=e.isInitialValid,c=e.enableReinitialize,u=c===void 0?!1:c,h=e.onSubmit,l=bt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=oe({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:h},l),p=f.useRef(d.initialValues),v=f.useRef(d.initialErrors||yt),g=f.useRef(d.initialTouched||Zr),m=f.useRef(d.initialStatus),x=f.useRef(!1),C=f.useRef({});process.env.NODE_ENV!=="production"&&f.useEffect(function(){typeof s>"u"||(process.env.NODE_ENV!=="production"?pe(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):pe(!1))},[]),f.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var _=f.useReducer(ab,{values:d.initialValues,errors:d.initialErrors||yt,touched:d.initialTouched||Zr,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=f.useCallback(function(w,I){return new Promise(function(j,V){var R=d.validate(w,I);R==null?j(yt):Zn(R)?R.then(function(Q){j(Q||yt)},function(Q){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Q),V(Q)}):j(R)})},[d.validate]),D=f.useCallback(function(w,I){var j=d.validationSchema,V=_e(j)?j(I):j,R=I&&V.validateAt?V.validateAt(I,w):lb(w,V);return new Promise(function(Q,Ee){R.then(function(){Q(yt)},function(Je){Je.name==="ValidationError"?Q(sb(Je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Je),Ee(Je))})})},[d.validationSchema]),W=f.useCallback(function(w,I){return new Promise(function(j){return j(C.current[w].validate(I))})},[]),q=f.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return _e(C.current[V].validate)}),j=I.length>0?I.map(function(V){return W(V,ye(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(V){return V.reduce(function(R,Q,Ee){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(R=Re(R,I[Ee],Q)),R},{})})},[W]),ge=f.useCallback(function(w){return Promise.all([q(w),d.validationSchema?D(w):{},d.validate?T(w):{}]).then(function(I){var j=I[0],V=I[1],R=I[2],Q=Tn.all([j,V,R],{arrayMerge:ub});return Q})},[d.validate,d.validationSchema,q,T,D]),ae=Ne(function(w){return w===void 0&&(w=S.values),b({type:"SET_ISVALIDATING",payload:!0}),ge(w).then(function(I){return x.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:I})),I})});f.useEffect(function(){o&&x.current===!0&&at(p.current,d.initialValues)&&ae(p.current)},[o,ae]);var he=f.useCallback(function(w){var I=w&&w.values?w.values:p.current,j=w&&w.errors?w.errors:v.current?v.current:d.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:d.initialTouched||{},R=w&&w.status?w.status:m.current?m.current:d.initialStatus;p.current=I,v.current=j,g.current=V,m.current=R;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:j,touched:V,status:R,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(d.onReset){var Ee=d.onReset(S.values,we);Zn(Ee)?Ee.then(Q):Q()}else Q()},[d.initialErrors,d.initialStatus,d.initialTouched]);f.useEffect(function(){x.current===!0&&!at(p.current,d.initialValues)&&(u&&(p.current=d.initialValues,he()),o&&ae(p.current))},[u,d.initialValues,he,o,ae]),f.useEffect(function(){u&&x.current===!0&&!at(v.current,d.initialErrors)&&(v.current=d.initialErrors||yt,b({type:"SET_ERRORS",payload:d.initialErrors||yt}))},[u,d.initialErrors]),f.useEffect(function(){u&&x.current===!0&&!at(g.current,d.initialTouched)&&(g.current=d.initialTouched||Zr,b({type:"SET_TOUCHED",payload:d.initialTouched||Zr}))},[u,d.initialTouched]),f.useEffect(function(){u&&x.current===!0&&!at(m.current,d.initialStatus)&&(m.current=d.initialStatus,b({type:"SET_STATUS",payload:d.initialStatus}))},[u,d.initialStatus,d.initialTouched]);var Se=Ne(function(w){if(C.current[w]&&_e(C.current[w].validate)){var I=ye(S.values,w),j=C.current[w].validate(I);return Zn(j)?(b({type:"SET_ISVALIDATING",payload:!0}),j.then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:w,value:j}}),Promise.resolve(j))}else if(d.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),D(S.values,w).then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V[w]}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),be=f.useCallback(function(w,I){var j=I.validate;C.current[w]={validate:j}},[]),Ce=f.useCallback(function(w){delete C.current[w]},[]),se=Ne(function(w,I){b({type:"SET_TOUCHED",payload:w});var j=I===void 0?a:I;return j?ae(S.values):Promise.resolve()}),me=f.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=Ne(function(w,I){var j=_e(w)?w(S.values):w;b({type:"SET_VALUES",payload:j});var V=I===void 0?r:I;return V?ae(j):Promise.resolve()}),Ae=f.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=Ne(function(w,I,j){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=j===void 0?r:j;return V?ae(Re(S.values,w,I)):Promise.resolve()}),A=f.useCallback(function(w,I){var j=I,V=w,R;if(!Xn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,Ee=Q.type,Je=Q.name,Pi=Q.id,Mi=Q.value,bP=Q.checked,yP=Q.outerHTML,ic=Q.options,mP=Q.multiple;j=I||Je||Pi,!j&&process.env.NODE_ENV!=="production"&&es({htmlContent:yP,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(Ee)?(R=parseFloat(Mi),isNaN(R)?"":R):/checkbox/.test(Ee)?fb(ye(S.values,j),bP,Mi):ic&&mP?cb(ic):Mi}j&&$(j,V)},[$,S.values]),U=Ne(function(w){if(Xn(w))return function(I){return A(I,w)};A(w)}),G=Ne(function(w,I,j){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=j===void 0?a:j;return V?ae(S.values):Promise.resolve()}),M=f.useCallback(function(w,I){w.persist&&w.persist();var j=w.target,V=j.name,R=j.id,Q=j.outerHTML,Ee=I||V||R;!Ee&&process.env.NODE_ENV!=="production"&&es({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(Ee,!0)},[G]),N=Ne(function(w){if(Xn(w))return function(I){return M(I,w)};M(w)}),L=f.useCallback(function(w){_e(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=f.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=f.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),K=Ne(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,j=!I&&Object.keys(w).length===0;if(j){var V;try{if(V=E(),V===void 0)return}catch(R){throw R}return Promise.resolve(V).then(function(R){return x.current&&b({type:"SUBMIT_SUCCESS"}),R}).catch(function(R){if(x.current)throw b({type:"SUBMIT_FAILURE"}),R})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),X=Ne(function(w){if(w&&w.preventDefault&&_e(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&_e(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var I=rb();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?pe(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pe(!1)))}K().catch(function(j){console.warn("Warning: An unhandled error was caught from submitForm()",j)})}),we={resetForm:he,validateForm:ae,validateField:Se,setErrors:me,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,setFormikState:L,submitForm:K},E=Ne(function(){return h(S.values,we)}),$e=Ne(function(w){w&&w.preventDefault&&_e(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&_e(w.stopPropagation)&&w.stopPropagation(),he()}),ze=f.useCallback(function(w){return{value:ye(S.values,w),error:ye(S.errors,w),touched:!!ye(S.touched,w),initialValue:ye(p.current,w),initialTouched:!!ye(g.current,w),initialError:ye(v.current,w)}},[S.errors,S.touched,S.values]),_t=f.useCallback(function(w){return{setValue:function(j,V){return $(w,j,V)},setTouched:function(j,V){return G(w,j,V)},setError:function(j){return Ae(w,j)}}},[$,G,Ae]),pP=f.useCallback(function(w){var I=Er(w),j=I?w.name:w,V=ye(S.values,j),R={name:j,value:V,onChange:U,onBlur:N};if(I){var Q=w.type,Ee=w.value,Je=w.as,Pi=w.multiple;Q==="checkbox"?Ee===void 0?R.checked=!!V:(R.checked=!!(Array.isArray(V)&&~V.indexOf(Ee)),R.value=Ee):Q==="radio"?(R.checked=V===Ee,R.value=Ee):Je==="select"&&Pi&&(R.value=R.value||[],R.multiple=!0)}return R},[N,U,S.values]),Ai=f.useMemo(function(){return!at(p.current,S.values)},[p.current,S.values]),vP=f.useMemo(function(){return typeof s<"u"?Ai?S.errors&&Object.keys(S.errors).length===0:s!==!1&&_e(s)?s(d):s:S.errors&&Object.keys(S.errors).length===0},[s,Ai,S.errors,d]),gP=oe({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:m.current,handleBlur:N,handleChange:U,handleReset:$e,handleSubmit:X,resetForm:he,setErrors:me,setFormikState:L,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,submitForm:K,validateForm:ae,validateField:Se,isValid:vP,dirty:Ai,unregisterField:Ce,registerField:be,getFieldProps:pP,getFieldMeta:ze,getFieldHelpers:_t,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return gP}function ob(e){var t=ib(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return f.useImperativeHandle(i,function(){return t}),process.env.NODE_ENV!=="production"&&f.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?pe(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):pe(!1))},[]),f.createElement(nb,{value:t},r?f.createElement(r,t):a?a(t):n?_e(n)?n(t):Jn(n)?null:f.Children.only(n):null)}function es(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
16
16
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+r+`
17
17
  `)}function sb(e){var t={};if(e.inner){if(e.inner.length===0)return Re(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var i;if(r){if(n>=a.length)break;i=a[n++]}else{if(n=a.next(),n.done)break;i=n.value}var o=i;ye(t,o.path)||(t=Re(t,o.path,o.message))}}return t}function lb(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var a=Qn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}function Qn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||An(a)?Qn(a):a!==""?a:void 0}):An(e[n])?t[n]=Qn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function ub(e,t,r){var n=e.slice();return t.forEach(function(i,o){if(typeof n[o]>"u"){var s=r.clone!==!1,c=s&&r.isMergeableObject(i);n[o]=c?Tn(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[o]=Tn(e[o],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function cb(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function fb(e,t,r){if(typeof e=="boolean")return Boolean(t);var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),a=i>=0;else if(!r||r=="true"||r=="false")return Boolean(t);return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var db=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?f.useLayoutEffect:f.useEffect;function Ne(e){var t=f.useRef(e);return db(function(){t.current=e}),f.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}function mt(e){var t=it(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=Er(e),c=s?e:{name:e},u=c.name,h=c.validate;return f.useEffect(function(){return u&&i(u,{validate:h}),function(){u&&o(u)}},[i,o,u,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?pe(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):pe(!1))),u||(process.env.NODE_ENV!=="production"?pe(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):pe(!1)),[r(c),n(u),a(u)]}function _r(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=bt(e,["validate","name","render","children","as","component"]),c=it(),u=bt(c,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&f.useEffect(function(){n&&(process.env.NODE_ENV!=="production"?pe(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):pe(!1)),i&&a&&_e(a)&&(process.env.NODE_ENV!=="production"?pe(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):pe(!1)),o&&a&&_e(a)&&(process.env.NODE_ENV!=="production"?pe(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):pe(!1)),n&&a&&!Jn(a)&&(process.env.NODE_ENV!=="production"?pe(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):pe(!1))},[]);var h=u.registerField,l=u.unregisterField;f.useEffect(function(){return h(r,{validate:t}),function(){l(r)}},[h,l,r,t]);var d=u.getFieldProps(oe({name:r},s)),p=u.getFieldMeta(r),v={field:d,form:u};if(n)return n(oe({},v,{meta:p}));if(_e(a))return a(oe({},v,{meta:p}));if(o){if(typeof o=="string"){var g=s.innerRef,m=bt(s,["innerRef"]);return f.createElement(o,oe({ref:g},d,m),a)}return f.createElement(o,oe({field:d,form:u},s),a)}var x=i||"input";if(typeof x=="string"){var C=s.innerRef,_=bt(s,["innerRef"]);return f.createElement(x,oe({ref:C},d,_),a)}return f.createElement(x,oe({},d,s),a)}var hb=f.forwardRef(function(e,t){var r=e.action,n=bt(e,["action"]),a=r??"#",i=it(),o=i.handleReset,s=i.handleSubmit;return f.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},n))});hb.displayName="Form";var pb=function(t,r,n){var a=Mt(t),i=a[r];return a.splice(r,1),a.splice(n,0,i),a},vb=function(t,r,n){var a=Mt(t),i=a[r];return a[r]=a[n],a[n]=i,a},ea=function(t,r,n){var a=Mt(t);return a.splice(r,0,n),a},gb=function(t,r,n){var a=Mt(t);return a[r]=n,a},Mt=function(t){if(t){if(Array.isArray(t))return[].concat(t);var r=Object.keys(t).map(function(n){return parseInt(n)}).reduce(function(n,a){return a>n?a:n},0);return Array.from(oe({},t,{length:r+1}))}else return[]},bb=function(e){eb(t,e);function t(n){var a;return a=e.call(this,n)||this,a.updateArrayField=function(i,o,s){var c=a.props,u=c.name,h=c.formik.setFormikState;h(function(l){var d=typeof s=="function"?s:i,p=typeof o=="function"?o:i,v=Re(l.values,u,i(ye(l.values,u))),g=s?d(ye(l.errors,u)):void 0,m=o?p(ye(l.touched,u)):void 0;return Zo(g)&&(g=void 0),Zo(m)&&(m=void 0),oe({},l,{values:v,errors:s?Re(l.errors,u,g):l.errors,touched:o?Re(l.touched,u,m):l.touched})})},a.push=function(i){return a.updateArrayField(function(o){return[].concat(Mt(o),[Q0(i)])},!1,!1)},a.handlePush=function(i){return function(){return a.push(i)}},a.swap=function(i,o){return a.updateArrayField(function(s){return vb(s,i,o)},!0,!0)},a.handleSwap=function(i,o){return function(){return a.swap(i,o)}},a.move=function(i,o){return a.updateArrayField(function(s){return pb(s,i,o)},!0,!0)},a.handleMove=function(i,o){return function(){return a.move(i,o)}},a.insert=function(i,o){return a.updateArrayField(function(s){return ea(s,i,o)},function(s){return ea(s,i,null)},function(s){return ea(s,i,null)})},a.handleInsert=function(i,o){return function(){return a.insert(i,o)}},a.replace=function(i,o){return a.updateArrayField(function(s){return gb(s,i,o)},!1,!1)},a.handleReplace=function(i,o){return function(){return a.replace(i,o)}},a.unshift=function(i){var o=-1;return a.updateArrayField(function(s){var c=s?[i].concat(s):[i];return o<0&&(o=c.length),c},function(s){var c=s?[null].concat(s):[null];return o<0&&(o=c.length),c},function(s){var c=s?[null].concat(s):[null];return o<0&&(o=c.length),c}),o},a.handleUnshift=function(i){return function(){return a.unshift(i)}},a.handleRemove=function(i){return function(){return a.remove(i)}},a.handlePop=function(){return function(){return a.pop()}},a.remove=a.remove.bind(Jo(a)),a.pop=a.pop.bind(Jo(a)),a}var r=t.prototype;return r.componentDidUpdate=function(a){this.props.validateOnChange&&this.props.formik.validateOnChange&&!at(ye(a.formik.values,a.name),ye(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(a){var i;return this.updateArrayField(function(o){var s=o?Mt(o):[];return i||(i=s[a]),_e(s.splice)&&s.splice(a,1),s},!0,!0),i},r.pop=function(){var a;return this.updateArrayField(function(i){var o=i;return a||(a=o&&o.pop&&o.pop()),o},!0,!0),a},r.render=function(){var a={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,o=i.component,s=i.render,c=i.children,u=i.name,h=i.formik,l=bt(h,["validate","validationSchema"]),d=oe({},a,{form:l,name:u});return o?f.createElement(o,d):s?s(d):c?typeof c=="function"?c(d):Jn(c)?null:f.Children.only(c):null},t}(f.Component);bb.defaultProps={validateOnChange:!0};/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
@@ -32,7 +32,7 @@
32
32
  * https://markjs.io/
33
33
  * Copyright (c) 2014–2018, Julian Kühnel
34
34
  * Released under the MIT license https://git.io/vwTVl
35
- *****************************************************/(function(e,t){(function(r,n){e.exports=n()})(ir,function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")},a=function(){function u(h,l){for(var d=0;d<l.length;d++){var p=l[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,l,d){return l&&u(h.prototype,l),d&&u(h,d),h}}(),i=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var l=arguments[h];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d])}return u},o=function(){function u(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=h,this.iframes=l,this.exclude=d,this.iframesTimeout=p}return a(u,[{key:"getContexts",value:function(){var l=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(p){var v=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!v&&d.push(p)}),d}},{key:"getIframeContents",value:function(l,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},v=void 0;try{var g=l.contentWindow;if(v=g.document,!g||!v)throw new Error("iframe inaccessible")}catch{p()}v&&d(v)}},{key:"isIframeBlank",value:function(l){var d="about:blank",p=l.getAttribute("src").trim(),v=l.contentWindow.location.href;return v===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(l,d,p){var v=this,g=!1,m=null,x=function C(){if(!g){g=!0,clearTimeout(m);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,d,p))}catch{p()}}};l.addEventListener("load",x),m=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,d,p){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,d,p):this.getIframeContents(l,d,p):this.observeIframeLoad(l,d,p)}catch{p()}}},{key:"waitForIframes",value:function(l,d){var p=this,v=0;this.forEachIframe(l,function(){return!0},function(g){v++,p.waitForIframes(g.querySelector("html"),function(){--v||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(l,d,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=l.querySelectorAll("iframe"),x=m.length,C=0;m=Array.prototype.slice.call(m);var _=function(){--x<=0&&g(C)};x||_(),m.forEach(function(S){u.matches(S,v.exclude)?_():v.onIframeReady(S,function(b){d(S)&&(C++,p(b)),_()},_)})}},{key:"createIterator",value:function(l,d,p){return document.createNodeIterator(l,d,p,!1)}},{key:"createInstanceOnIframe",value:function(l){return new u(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,d,p){var v=l.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(v&g)if(d!==null){var m=d.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(m&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var d=l.previousNode(),p=void 0;return d===null?p=l.nextNode():p=l.nextNode()&&l.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(l,d,p,v){var g=!1,m=!1;return v.forEach(function(x,C){x.val===p&&(g=C,m=x.handled)}),this.compareNodeIframe(l,d,p)?(g===!1&&!m?v.push({val:p,handled:!0}):g!==!1&&!m&&(v[g].handled=!0),!0):(g===!1&&v.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,d,p,v){var g=this;l.forEach(function(m){m.handled||g.getIframeContents(m.val,function(x){g.createInstanceOnIframe(x).forEachNode(d,p,v)})})}},{key:"iterateThroughNodes",value:function(l,d,p,v,g){for(var m=this,x=this.createIterator(d,l,v),C=[],_=[],S=void 0,b=void 0,T=function(){var W=m.getIteratorNode(x);return b=W.prevNode,S=W.node,S};T();)this.iframes&&this.forEachIframe(d,function(k){return m.checkIframeFilter(S,b,k,C)},function(k){m.createInstanceOnIframe(k).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(k){p(k)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,d,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=this.getContexts(),x=m.length;x||g(),m.forEach(function(C){var _=function(){v.iterateThroughNodes(l,C,d,p,function(){--x<=0&&g()})};v.iframes?v.waitForIframes(C,_):_()})}}],[{key:"matches",value:function(l,d){var p=typeof d=="string"?[d]:d,v=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(v){var g=!1;return p.every(function(m){return v.call(l,m)?(g=!0,!1):!0}),g}else return!1}}]),u}(),s=function(){function u(h){n(this,u),this.ctx=h,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return a(u,[{key:"log",value:function(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",v=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var m=d[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),C=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m);x!==""&&C!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(C)+")","gm"+p),v+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(C)+")")+v))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var d=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(d,p,v){var g=v.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(l){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?l.split(/\u0000+/).join("["+d.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],v=[];return l.split("").forEach(function(g){p.every(function(m){if(m.indexOf(g)!==-1){if(v.indexOf(m)>-1)return!1;l=l.replace(new RegExp("["+m+"]","gm"+d),"["+m+"]"),v.push(m)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",v=this.opt.accuracy,g=typeof v=="string"?v:v.value,m=typeof v=="string"?[]:v.limiters,x="";switch(m.forEach(function(C){x+="|"+d.escapeStr(C)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(p)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var d=this,p=[];return l.forEach(function(v){d.opt.separateWordSearch?v.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):v.trim()&&p.indexOf(v)===-1&&p.push(v)}),{keywords:p.sort(function(v,g){return g.length-v.length}),length:p.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var d=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var p=[],v=0;return l.sort(function(g,m){return g.start-m.start}).forEach(function(g){var m=d.callNoMatchOnInvalidRanges(g,v),x=m.start,C=m.end,_=m.valid;_&&(g.start=x,g.length=C-x,p.push(g),v=C)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(l,d){var p=void 0,v=void 0,g=!1;return l&&typeof l.start<"u"?(p=parseInt(l.start,10),v=p+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&v-d>0&&v-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:p,end:v,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,d,p){var v=void 0,g=!0,m=p.length,x=d-m,C=parseInt(l.start,10)-x;return C=C>m?m:C,v=C+parseInt(l.length,10),v>m&&(v=m,this.log("End range automatically set to the max value of "+m)),C<0||v-C<0||C>m||v>m?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):p.substring(C,v).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:C,end:v,valid:g}}},{key:"getTextNodes",value:function(l){var d=this,p="",v=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){v.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:p,nodes:v})})}},{key:"matchesExclude",value:function(l){return o.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,d,p){var v=this.opt.element?this.opt.element:"mark",g=l.splitText(d),m=g.splitText(p-d),x=document.createElement(v);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),m}},{key:"wrapRangeInMappedTextNode",value:function(l,d,p,v,g){var m=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>d){if(!v(x.node))return!1;var S=d-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),k=l.value.substr(b+x.start);if(x.node=m.wrapRangeInTextNode(x.node,S,b),l.value=T+k,l.nodes.forEach(function(W,q){q>=C&&(l.nodes[q].start>0&&q!==C&&(l.nodes[q].start-=b),l.nodes[q].end-=b)}),p-=b,g(x.node.previousSibling,x.start),p>x.end)d=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,d,p,v,g){var m=this,x=d===0?0:d+1;this.getTextNodes(function(C){C.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=l.exec(_.textContent))!==null&&S[x]!=="";)if(p(S[x],_)){var b=S.index;if(x!==0)for(var T=1;T<x;T++)b+=S[T].length;_=m.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,d,p,v,g){var m=this,x=d===0?0:d+1;this.getTextNodes(function(C){for(var _=void 0;(_=l.exec(C.value))!==null&&_[x]!=="";){var S=_.index;if(x!==0)for(var b=1;b<x;b++)S+=_[b].length;var T=S+_[x].length;m.wrapRangeInMappedTextNode(C,S,T,function(k){return p(_[x],k)},function(k,W){l.lastIndex=W,v(k)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,d,p,v){var g=this;this.getTextNodes(function(m){var x=m.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,m.value),b=S.start,T=S.end,k=S.valid;k&&g.wrapRangeInMappedTextNode(m,b,T,function(W){return d(W,C,m.value.substring(b,T),_)},function(W){p(W,C)})}),v()})}},{key:"unwrapMatches",value:function(l){for(var d=l.parentNode,p=document.createDocumentFragment();l.firstChild;)p.appendChild(l.removeChild(l.firstChild));d.replaceChild(p,l),this.ie?this.normalizeTextNode(d):d.normalize()}},{key:"normalizeTextNode",value:function(l){if(l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,d){var p=this;this.opt=d,this.log('Searching with expression "'+l+'"');var v=0,g="wrapMatches",m=function(C){v++,p.opt.each(C)};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),this[g](l,this.opt.ignoreGroups,function(x,C){return p.opt.filter(C,x,v)},m,function(){v===0&&p.opt.noMatch(l),p.opt.done(v)})}},{key:"mark",value:function(l,d){var p=this;this.opt=d;var v=0,g="wrapMatches",m=this.getSeparatedKeywords(typeof l=="string"?[l]:l),x=m.keywords,C=m.length,_=this.opt.caseSensitive?"":"i",S=function b(T){var k=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+k+'"'),p[g](k,1,function(q,ge){return p.opt.filter(ge,T,v,W)},function(q){W++,v++,p.opt.each(q)},function(){W===0&&p.opt.noMatch(T),x[C-1]===T?p.opt.done(v):b(x[x.indexOf(T)+1])})};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),C===0?this.opt.done(v):S(x[0])}},{key:"markRanges",value:function(l,d){var p=this;this.opt=d;var v=0,g=this.checkRanges(l);g&&g.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(g)),this.wrapRangeFromIndex(g,function(m,x,C,_){return p.opt.filter(m,x,C,_)},function(m,x){v++,p.opt.each(m,x)},function(){p.opt.done(v)})):this.opt.done(v)}},{key:"unmark",value:function(l){var d=this;this.opt=l;var p=this.opt.element?this.opt.element:"*";p+="[data-markjs]",this.opt.className&&(p+="."+this.opt.className),this.log('Removal selector "'+p+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(v){d.unwrapMatches(v)},function(v){var g=o.matches(v,p),m=d.matchesExclude(v);return!g||m?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=i({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new o(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),u}();function c(u){var h=this,l=new s(u);return this.mark=function(d,p){return l.mark(d,p),h},this.markRegExp=function(d,p){return l.markRegExp(d,p),h},this.markRanges=function(d,p){return l.markRanges(d,p),h},this.unmark=function(d){return l.unmark(d),h},this}return c})})(Cb);const $b=ta,Tb=e=>{const[t,r]=f.useState(),n=f.useRef(null);return Y.useEffect(()=>{n.current&&r(new $b(n.current))},[n.current]),f.useEffect(()=>{t&&t.unmark({done:()=>{e.searchString&&t.mark(e.searchString)}})},[e.searchString,e.focussedSubPagePath]),y.jsx("div",{ref:n,children:e.children})},Qr=e=>f.isValidElement(e)&&Boolean(e.props.children),Cr=e=>f.isValidElement(e)&&Qr(e)&&f.Children.toArray(e.props.children).reduce((t,r)=>t||f.isValidElement(r),!1),os=(e,t)=>f.Children.toArray(e).filter(t).map(r=>f.isValidElement(r)&&Cr(r)?f.cloneElement(r,{...r.props,children:os(r.props.children,t)}):r),ss=os,ls=(e,t)=>{let r;return f.Children.toArray(e).find((n,a,i)=>t(n,a,i)?(r=n,!0):f.isValidElement(n)&&Cr(n)?(r=ls(n.props.children,t),typeof r<"u"):!1),r},Ob=ls,us=(e,t)=>{f.Children.forEach(e,(r,n)=>{f.isValidElement(r)&&Cr(r)&&us(r.props.children,t),t(r,n)})},Ab=us,cs=(e,t)=>f.Children.toArray(e).map((r,n,a)=>f.isValidElement(r)&&Cr(r)?t(f.cloneElement(r,{...r.props,children:cs(r.props.children,t)})):t(r,n,a)),Pb=cs,Mb=(e,t)=>f.Children.toArray(e).filter(t),fs=e=>f.isValidElement(e)?typeof e.type=="string"?e.type:e.type.name:null,Ib=(e,t=[],r="rest")=>{const n=t.map(a=>typeof a=="string"?a:a.name);return f.Children.toArray(e).reduce((a,i)=>{const o=fs(i),s=o!==null&&n.includes(o)?o:r;return typeof a[s]>"u"&&(a[s]=[]),a[s]=[...a[s],i],a},{})},ds=e=>typeof e>"u"||e===null||typeof e=="boolean"||JSON.stringify(e)==="{}"?"":e.toString(),hs=e=>!(e instanceof Array)&&!f.isValidElement(e)?ds(e):f.Children.toArray(e).reduce((t,r)=>{let n="";return f.isValidElement(r)&&Qr(r)?n=hs(r.props.children):f.isValidElement(r)&&!Qr(r)?n="":n=ds(r),t.concat(n)},""),Fb=hs,kb=e=>ss(e,t=>f.isValidElement(t)),jb={...f.Children,deepFilter:ss,deepFind:Ob,deepForEach:Ab,deepMap:Pb,filter:Mb,getElementName:fs,groupByType:Ib,hasChildren:Qr,hasComplexChildren:Cr,onlyText:Fb,onlyValid:kb},It=Y.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),Db=e=>{const t="",[r,n]=f.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return y.jsx(It.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},Nb=e=>y.jsx(It.Consumer,{children:({searchRegEx:t})=>{if(!t)return y.jsx(Y.Fragment,{children:e.children});if(t.test(e.label)||e.description&&t.test(jb.onlyText(e.description))||Y.Children.toArray(e.kids).some(n=>{var s,c,u;const a=(s=n.props)==null?void 0:s.label;if(a&&t.test(a))return!0;const i=(c=n.props)==null?void 0:c.searchTerms;if(i&&t.test(i))return!0;const o=(u=n.props)==null?void 0:u.children;if(o)return Y.Children.toArray(o).some(h=>{var l;if((l=h==null?void 0:h.props)!=null&&l.label)return t.test(h.props.label)})}))return y.jsx(Y.Fragment,{children:e.children})}}),ps="rgba(5, 1, 1, 0.26)",Lb="rgba(0, 0, 0, 0.54)",ra=Y.createContext({focussedSubPagePath:"",setFocussedSubPagePath:e=>{}}),vs=e=>{const[t,r]=f.useState(""),n=Y.useRef(e.initialValues),a=Y.useRef(JSON.stringify(e.initialValues)),i=o=>{if(!e.onChange)return;let s=o;s[Ft]&&(s={...o},delete s[Ft]);const c=JSON.stringify(s);c!==a.current&&(a.current=c,n.current=s,e.onChange(n.current))};return y.jsx(ra.Provider,{value:{focussedSubPagePath:t,setFocussedSubPagePath:r},children:y.jsx(ob,{initialValues:e.initialValues,onSubmit:o=>{},children:({values:o,errors:s,touched:c,handleChange:u,handleBlur:h,handleSubmit:l,isSubmitting:d})=>(e.setValueGetter&&e.setValueGetter(()=>o),i(o),y.jsx("form",{onSubmit:l,css:le.css`
35
+ *****************************************************/(function(e,t){(function(r,n){e.exports=n()})(ir,function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")},a=function(){function u(h,l){for(var d=0;d<l.length;d++){var p=l[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,l,d){return l&&u(h.prototype,l),d&&u(h,d),h}}(),i=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var l=arguments[h];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d])}return u},o=function(){function u(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=h,this.iframes=l,this.exclude=d,this.iframesTimeout=p}return a(u,[{key:"getContexts",value:function(){var l=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(p){var v=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!v&&d.push(p)}),d}},{key:"getIframeContents",value:function(l,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},v=void 0;try{var g=l.contentWindow;if(v=g.document,!g||!v)throw new Error("iframe inaccessible")}catch{p()}v&&d(v)}},{key:"isIframeBlank",value:function(l){var d="about:blank",p=l.getAttribute("src").trim(),v=l.contentWindow.location.href;return v===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(l,d,p){var v=this,g=!1,m=null,x=function C(){if(!g){g=!0,clearTimeout(m);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,d,p))}catch{p()}}};l.addEventListener("load",x),m=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,d,p){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,d,p):this.getIframeContents(l,d,p):this.observeIframeLoad(l,d,p)}catch{p()}}},{key:"waitForIframes",value:function(l,d){var p=this,v=0;this.forEachIframe(l,function(){return!0},function(g){v++,p.waitForIframes(g.querySelector("html"),function(){--v||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(l,d,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=l.querySelectorAll("iframe"),x=m.length,C=0;m=Array.prototype.slice.call(m);var _=function(){--x<=0&&g(C)};x||_(),m.forEach(function(S){u.matches(S,v.exclude)?_():v.onIframeReady(S,function(b){d(S)&&(C++,p(b)),_()},_)})}},{key:"createIterator",value:function(l,d,p){return document.createNodeIterator(l,d,p,!1)}},{key:"createInstanceOnIframe",value:function(l){return new u(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,d,p){var v=l.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(v&g)if(d!==null){var m=d.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(m&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var d=l.previousNode(),p=void 0;return d===null?p=l.nextNode():p=l.nextNode()&&l.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(l,d,p,v){var g=!1,m=!1;return v.forEach(function(x,C){x.val===p&&(g=C,m=x.handled)}),this.compareNodeIframe(l,d,p)?(g===!1&&!m?v.push({val:p,handled:!0}):g!==!1&&!m&&(v[g].handled=!0),!0):(g===!1&&v.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,d,p,v){var g=this;l.forEach(function(m){m.handled||g.getIframeContents(m.val,function(x){g.createInstanceOnIframe(x).forEachNode(d,p,v)})})}},{key:"iterateThroughNodes",value:function(l,d,p,v,g){for(var m=this,x=this.createIterator(d,l,v),C=[],_=[],S=void 0,b=void 0,T=function(){var W=m.getIteratorNode(x);return b=W.prevNode,S=W.node,S};T();)this.iframes&&this.forEachIframe(d,function(D){return m.checkIframeFilter(S,b,D,C)},function(D){m.createInstanceOnIframe(D).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(D){p(D)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,d,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=this.getContexts(),x=m.length;x||g(),m.forEach(function(C){var _=function(){v.iterateThroughNodes(l,C,d,p,function(){--x<=0&&g()})};v.iframes?v.waitForIframes(C,_):_()})}}],[{key:"matches",value:function(l,d){var p=typeof d=="string"?[d]:d,v=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(v){var g=!1;return p.every(function(m){return v.call(l,m)?(g=!0,!1):!0}),g}else return!1}}]),u}(),s=function(){function u(h){n(this,u),this.ctx=h,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return a(u,[{key:"log",value:function(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",v=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var m=d[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),C=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m);x!==""&&C!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(C)+")","gm"+p),v+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(C)+")")+v))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var d=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(d,p,v){var g=v.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(l){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?l.split(/\u0000+/).join("["+d.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],v=[];return l.split("").forEach(function(g){p.every(function(m){if(m.indexOf(g)!==-1){if(v.indexOf(m)>-1)return!1;l=l.replace(new RegExp("["+m+"]","gm"+d),"["+m+"]"),v.push(m)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",v=this.opt.accuracy,g=typeof v=="string"?v:v.value,m=typeof v=="string"?[]:v.limiters,x="";switch(m.forEach(function(C){x+="|"+d.escapeStr(C)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(p)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var d=this,p=[];return l.forEach(function(v){d.opt.separateWordSearch?v.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):v.trim()&&p.indexOf(v)===-1&&p.push(v)}),{keywords:p.sort(function(v,g){return g.length-v.length}),length:p.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var d=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var p=[],v=0;return l.sort(function(g,m){return g.start-m.start}).forEach(function(g){var m=d.callNoMatchOnInvalidRanges(g,v),x=m.start,C=m.end,_=m.valid;_&&(g.start=x,g.length=C-x,p.push(g),v=C)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(l,d){var p=void 0,v=void 0,g=!1;return l&&typeof l.start<"u"?(p=parseInt(l.start,10),v=p+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&v-d>0&&v-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:p,end:v,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,d,p){var v=void 0,g=!0,m=p.length,x=d-m,C=parseInt(l.start,10)-x;return C=C>m?m:C,v=C+parseInt(l.length,10),v>m&&(v=m,this.log("End range automatically set to the max value of "+m)),C<0||v-C<0||C>m||v>m?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):p.substring(C,v).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:C,end:v,valid:g}}},{key:"getTextNodes",value:function(l){var d=this,p="",v=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){v.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:p,nodes:v})})}},{key:"matchesExclude",value:function(l){return o.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,d,p){var v=this.opt.element?this.opt.element:"mark",g=l.splitText(d),m=g.splitText(p-d),x=document.createElement(v);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),m}},{key:"wrapRangeInMappedTextNode",value:function(l,d,p,v,g){var m=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>d){if(!v(x.node))return!1;var S=d-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),D=l.value.substr(b+x.start);if(x.node=m.wrapRangeInTextNode(x.node,S,b),l.value=T+D,l.nodes.forEach(function(W,q){q>=C&&(l.nodes[q].start>0&&q!==C&&(l.nodes[q].start-=b),l.nodes[q].end-=b)}),p-=b,g(x.node.previousSibling,x.start),p>x.end)d=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,d,p,v,g){var m=this,x=d===0?0:d+1;this.getTextNodes(function(C){C.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=l.exec(_.textContent))!==null&&S[x]!=="";)if(p(S[x],_)){var b=S.index;if(x!==0)for(var T=1;T<x;T++)b+=S[T].length;_=m.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,d,p,v,g){var m=this,x=d===0?0:d+1;this.getTextNodes(function(C){for(var _=void 0;(_=l.exec(C.value))!==null&&_[x]!=="";){var S=_.index;if(x!==0)for(var b=1;b<x;b++)S+=_[b].length;var T=S+_[x].length;m.wrapRangeInMappedTextNode(C,S,T,function(D){return p(_[x],D)},function(D,W){l.lastIndex=W,v(D)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,d,p,v){var g=this;this.getTextNodes(function(m){var x=m.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,m.value),b=S.start,T=S.end,D=S.valid;D&&g.wrapRangeInMappedTextNode(m,b,T,function(W){return d(W,C,m.value.substring(b,T),_)},function(W){p(W,C)})}),v()})}},{key:"unwrapMatches",value:function(l){for(var d=l.parentNode,p=document.createDocumentFragment();l.firstChild;)p.appendChild(l.removeChild(l.firstChild));d.replaceChild(p,l),this.ie?this.normalizeTextNode(d):d.normalize()}},{key:"normalizeTextNode",value:function(l){if(l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,d){var p=this;this.opt=d,this.log('Searching with expression "'+l+'"');var v=0,g="wrapMatches",m=function(C){v++,p.opt.each(C)};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),this[g](l,this.opt.ignoreGroups,function(x,C){return p.opt.filter(C,x,v)},m,function(){v===0&&p.opt.noMatch(l),p.opt.done(v)})}},{key:"mark",value:function(l,d){var p=this;this.opt=d;var v=0,g="wrapMatches",m=this.getSeparatedKeywords(typeof l=="string"?[l]:l),x=m.keywords,C=m.length,_=this.opt.caseSensitive?"":"i",S=function b(T){var D=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+D+'"'),p[g](D,1,function(q,ge){return p.opt.filter(ge,T,v,W)},function(q){W++,v++,p.opt.each(q)},function(){W===0&&p.opt.noMatch(T),x[C-1]===T?p.opt.done(v):b(x[x.indexOf(T)+1])})};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),C===0?this.opt.done(v):S(x[0])}},{key:"markRanges",value:function(l,d){var p=this;this.opt=d;var v=0,g=this.checkRanges(l);g&&g.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(g)),this.wrapRangeFromIndex(g,function(m,x,C,_){return p.opt.filter(m,x,C,_)},function(m,x){v++,p.opt.each(m,x)},function(){p.opt.done(v)})):this.opt.done(v)}},{key:"unmark",value:function(l){var d=this;this.opt=l;var p=this.opt.element?this.opt.element:"*";p+="[data-markjs]",this.opt.className&&(p+="."+this.opt.className),this.log('Removal selector "'+p+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(v){d.unwrapMatches(v)},function(v){var g=o.matches(v,p),m=d.matchesExclude(v);return!g||m?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=i({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new o(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),u}();function c(u){var h=this,l=new s(u);return this.mark=function(d,p){return l.mark(d,p),h},this.markRegExp=function(d,p){return l.markRegExp(d,p),h},this.markRanges=function(d,p){return l.markRanges(d,p),h},this.unmark=function(d){return l.unmark(d),h},this}return c})})(Cb);const $b=ta,Tb=e=>{const[t,r]=f.useState(),n=f.useRef(null);return Y.useEffect(()=>{n.current&&r(new $b(n.current))},[n.current]),f.useEffect(()=>{t&&t.unmark({done:()=>{e.searchString&&t.mark(e.searchString)}})},[e.searchString,e.focussedSubPagePath]),y.jsx("div",{ref:n,children:e.children})},Qr=e=>f.isValidElement(e)&&Boolean(e.props.children),Cr=e=>f.isValidElement(e)&&Qr(e)&&f.Children.toArray(e.props.children).reduce((t,r)=>t||f.isValidElement(r),!1),os=(e,t)=>f.Children.toArray(e).filter(t).map(r=>f.isValidElement(r)&&Cr(r)?f.cloneElement(r,{...r.props,children:os(r.props.children,t)}):r),ss=os,ls=(e,t)=>{let r;return f.Children.toArray(e).find((n,a,i)=>t(n,a,i)?(r=n,!0):f.isValidElement(n)&&Cr(n)?(r=ls(n.props.children,t),typeof r<"u"):!1),r},Ob=ls,us=(e,t)=>{f.Children.forEach(e,(r,n)=>{f.isValidElement(r)&&Cr(r)&&us(r.props.children,t),t(r,n)})},Ab=us,cs=(e,t)=>f.Children.toArray(e).map((r,n,a)=>f.isValidElement(r)&&Cr(r)?t(f.cloneElement(r,{...r.props,children:cs(r.props.children,t)})):t(r,n,a)),Pb=cs,Mb=(e,t)=>f.Children.toArray(e).filter(t),fs=e=>f.isValidElement(e)?typeof e.type=="string"?e.type:e.type.name:null,Ib=(e,t=[],r="rest")=>{const n=t.map(a=>typeof a=="string"?a:a.name);return f.Children.toArray(e).reduce((a,i)=>{const o=fs(i),s=o!==null&&n.includes(o)?o:r;return typeof a[s]>"u"&&(a[s]=[]),a[s]=[...a[s],i],a},{})},ds=e=>typeof e>"u"||e===null||typeof e=="boolean"||JSON.stringify(e)==="{}"?"":e.toString(),hs=e=>!(e instanceof Array)&&!f.isValidElement(e)?ds(e):f.Children.toArray(e).reduce((t,r)=>{let n="";return f.isValidElement(r)&&Qr(r)?n=hs(r.props.children):f.isValidElement(r)&&!Qr(r)?n="":n=ds(r),t.concat(n)},""),Fb=hs,kb=e=>ss(e,t=>f.isValidElement(t)),Db={...f.Children,deepFilter:ss,deepFind:Ob,deepForEach:Ab,deepMap:Pb,filter:Mb,getElementName:fs,groupByType:Ib,hasChildren:Qr,hasComplexChildren:Cr,onlyText:Fb,onlyValid:kb},It=Y.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),jb=e=>{const t="",[r,n]=f.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return y.jsx(It.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},Nb=e=>y.jsx(It.Consumer,{children:({searchRegEx:t})=>{if(!t)return y.jsx(Y.Fragment,{children:e.children});if(t.test(e.label)||e.description&&t.test(Db.onlyText(e.description))||Y.Children.toArray(e.kids).some(n=>{var s,c,u;const a=(s=n.props)==null?void 0:s.label;if(a&&t.test(a))return!0;const i=(c=n.props)==null?void 0:c.searchTerms;if(i&&t.test(i))return!0;const o=(u=n.props)==null?void 0:u.children;if(o)return Y.Children.toArray(o).some(h=>{var l;if((l=h==null?void 0:h.props)!=null&&l.label)return t.test(h.props.label)})}))return y.jsx(Y.Fragment,{children:e.children})}}),ps="rgba(5, 1, 1, 0.26)",Lb="rgba(0, 0, 0, 0.54)",ra=Y.createContext({focussedSubPagePath:"",setFocussedSubPagePath:e=>{}}),vs=e=>{const[t,r]=f.useState(""),n=Y.useRef(e.initialValues),a=Y.useRef(JSON.stringify(e.initialValues)),i=o=>{if(!e.onChange)return;let s=o;s[Ft]&&(s={...o},delete s[Ft]);const c=JSON.stringify(s);c!==a.current&&(a.current=c,n.current=s,e.onChange(n.current))};return y.jsx(ra.Provider,{value:{focussedSubPagePath:t,setFocussedSubPagePath:r},children:y.jsx(ob,{initialValues:e.initialValues,onSubmit:o=>{},children:({values:o,errors:s,touched:c,handleChange:u,handleBlur:h,handleSubmit:l,isSubmitting:d})=>(e.setValueGetter&&e.setValueGetter(()=>o),i(o),y.jsx("form",{onSubmit:l,css:le.css`
36
36
  flex-grow: 1;
37
37
  `,children:y.jsx(Bb,{currentGroup:e.currentGroupIndex,focussedSubPagePath:t,children:e.children})}))})})},Bb=e=>y.jsx(It.Consumer,{children:({searchString:t})=>y.jsx("div",{id:"groups",css:le.css`
38
38
  //overflow-y: scroll; //allows us to scroll the groups without
@@ -41,22 +41,22 @@
41
41
  `,children:t?y.jsx(Tb,{searchString:t,focussedSubPagePath:e.focussedSubPagePath,children:e.children}):Y.Children.toArray(e.children).filter((r,n)=>n===e.currentGroup)})}),gs=e=>y.jsxs(Nb,{...e,kids:e.children,children:[y.jsxs("div",{className:"indentIfInSubPage",css:le.css`
42
42
  //margin-top: 21px !important;
43
43
  margin-bottom: 12px !important;
44
- `,children:[y.jsx(j.Typography,{variant:e.level===2?"h3":"h2",children:e.label}),y.jsx(j.Typography,{variant:"caption",children:na(e.description)})]}),e.level===1?y.jsx("div",{className:"indentIfInSubPage",children:e.children}):y.jsx(Hb,{children:e.children})]}),Hb=e=>{const t=Gb(e);return y.jsx(j.Paper,{className:"indentIfInSubPage",elevation:2,css:le.css`
44
+ `,children:[y.jsx(F.Typography,{variant:e.level===2?"h3":"h2",children:e.label}),y.jsx(F.Typography,{variant:"caption",children:na(e.description)})]}),e.level===1?y.jsx("div",{className:"indentIfInSubPage",children:e.children}):y.jsx(Hb,{children:e.children})]}),Hb=e=>{const t=Gb(e);return y.jsx(F.Paper,{className:"indentIfInSubPage",elevation:2,css:le.css`
45
45
  //width: 100%; doesn't work with shadow
46
46
  margin-left: 2px; //needed to show shadow
47
47
  margin-right: 2px; //needed to show shadow
48
48
  margin-bottom: 12px !important;
49
- `,children:y.jsx(j.List,{component:"nav",css:le.css`
49
+ `,children:y.jsx(F.List,{component:"nav",css:le.css`
50
50
  width: calc(100% - 20px);
51
- `,children:y.jsx(bs,{children:t})})})};function Gb(e){return Y.Children.map(e.children,(t,r)=>Y.isValidElement(t)?Y.cloneElement(t,{...t.props}):null)}const bs=e=>{const t=Y.Children.toArray(e.children).length;return e.children?Y.Children.toArray(e.children).reduce((r,n,a)=>{if(!Y.isValidElement(n))throw Error("We only expect to be given full elements not, e.g., strings");const i=n,o=le.createElement(ys,{...i.props,key:"filter"+a},i,a<t-1&&y.jsx(j.Divider,{component:"li"},a));return r.concat(o)},[]):null},Vb=e=>y.jsxs(j.ListItem,{css:le.css`
51
+ `,children:y.jsx(bs,{children:t})})})};function Gb(e){return Y.Children.map(e.children,(t,r)=>Y.isValidElement(t)?Y.cloneElement(t,{...t.props}):null)}const bs=e=>{const t=Y.Children.toArray(e.children).length;return e.children?Y.Children.toArray(e.children).reduce((r,n,a)=>{if(!Y.isValidElement(n))throw Error("We only expect to be given full elements not, e.g., strings");const i=n,o=le.createElement(ys,{...i.props,key:"filter"+a},i,a<t-1&&y.jsx(F.Divider,{component:"li"},a));return r.concat(o)},[]):null},Vb=e=>y.jsxs(F.ListItem,{css:le.css`
52
52
  flex-direction: column;
53
53
  // I don't understand why this is needed. Else, it's centered
54
54
  align-items: flex-start;
55
- `,children:[y.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:na(e.description)}),e.control]}),ys=e=>y.jsx(ra.Consumer,{children:({focussedSubPagePath:t})=>t&&!(e.path===t||xs(e.path,t)||xs(t,e.path))?null:y.jsx(Y.Fragment,{children:e.children})}),Ye=e=>{const t=y.jsx(It.Consumer,{children:({searchRegEx:r})=>{const n=y.jsxs("div",{css:le.css`
55
+ `,children:[y.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:na(e.description)}),e.control]}),ys=e=>y.jsx(ra.Consumer,{children:({focussedSubPagePath:t})=>t&&!(e.path===t||xs(e.path,t)||xs(t,e.path))?null:y.jsx(Y.Fragment,{children:e.children})}),Ye=e=>{const t=y.jsx(It.Consumer,{children:({searchRegEx:r})=>{const n=y.jsxs("div",{css:le.css`
56
56
  display: flex;
57
57
  flex-direction: column;
58
58
  width: 100%;
59
- `,children:[y.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:le.css`
59
+ `,children:[y.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:le.css`
60
60
  color: ${e.disabled?ps:"unset"};
61
61
  ${e.height?"height:"+e.height:""}
62
62
  ${e.indented&&"margin-left: 30px;"}
@@ -64,14 +64,14 @@
64
64
  * {
65
65
  ${e.labelCss}
66
66
  }
67
- `,primary:e.label}),y.jsx(j.ListItemSecondaryAction,{css:le.css`
67
+ `,primary:e.label}),y.jsx(F.ListItemSecondaryAction,{css:le.css`
68
68
  // OK, this feels like a hack. But the MUI default puts it at
69
69
  // top:50% which is fine until you have a secondary label, in
70
70
  // which case the whole thing gets very tall but really the
71
71
  // button should be top-aligned.
72
72
  /// Months later.. but it messed up toggleGroups and I'm not seeing the problem it was solving, at the moment.
73
73
  //top: 22px;
74
- `,children:e.control}),y.jsx(j.Typography,{variant:"caption",css:le.css`
74
+ `,children:e.control}),y.jsx(F.Typography,{variant:"caption",css:le.css`
75
75
  &,
76
76
  * {
77
77
  // this is a hack... we need to figured out how to have this MUI List stuff allow a text along the bottom
@@ -80,9 +80,9 @@
80
80
  }
81
81
  `,children:na(e.description)})]});if(r){const a=Y.Children.toArray(e.children).filter(i=>r.exec(i.props.label)).length;if(a)return y.jsxs("div",{children:[n,y.jsx("span",{css:le.css`
82
82
  background-color: yellow;
83
- `,children:`${a} matches`})]})}return n}});return e.onClick?y.jsx(j.ListItemButton,{onClick:e.onClick,children:t}):y.jsx(j.ListItem,{css:le.css`
83
+ `,children:`${a} matches`})]})}return n}});return e.onClick?y.jsx(F.ListItemButton,{onClick:e.onClick,children:t}):y.jsx(F.ListItem,{css:le.css`
84
84
  height: ${e.height};
85
- `,children:t})};function Xe(e){const{values:t}=it();if(e.overrideValue===void 0)return e;const r=e.path.replace(/[.[\]]/g,"_");let n=t[Ft];t[Ft]||(t[Ft]=n={}),n[r]=e.overrideValue;const a=`${e.description??""} (${e.overrideDescription??""})`.replace(" ()","").trim();return{...e,description:a,disabled:!0,path:Ft+"."+r}}const Ft="overrideValue$",Ub=e=>(e=Xe(e),y.jsx(Ye,{...e,control:y.jsx(_r,{component:as,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:y.jsx(j.InputAdornment,{position:"end",children:e.units})}:void 0,css:le.css`
85
+ `,children:t})};function Xe(e){const{values:t}=it();if(e.overrideValue===void 0)return e;const r=e.path.replace(/[.[\]]/g,"_");let n=t[Ft];t[Ft]||(t[Ft]=n={}),n[r]=e.overrideValue;const a=`${e.description??""} (${e.overrideDescription??""})`.replace(" ()","").trim();return{...e,description:a,disabled:!0,path:Ft+"."+r}}const Ft="overrideValue$",Ub=e=>(e=Xe(e),y.jsx(Ye,{...e,control:y.jsx(_r,{component:as,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:y.jsx(F.InputAdornment,{position:"end",children:e.units})}:void 0,css:le.css`
86
86
  input {
87
87
  text-align: end;
88
88
  }
@@ -95,14 +95,14 @@
95
95
  * {
96
96
  border-style: none;
97
97
  }
98
- `,children:e.options.map(r=>{if(typeof r=="number")return y.jsx(j.MenuItem,{value:r,children:y.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return y.jsx(j.MenuItem,{value:a,children:r.description?y.jsx(j.Tooltip,{title:r.description,children:y.jsx("span",{children:n})}):y.jsx("span",{children:n})},n)})})})},Yb=e=>y.jsx(ys,{...e,children:y.jsx(gs,{...e,level:2,children:e.children})}),Xb=e=>y.jsx(ra.Consumer,{children:({focussedSubPagePath:t,setFocussedSubPagePath:r})=>t===e.path?y.jsxs(Y.Fragment,{children:[y.jsxs("div",{css:e.labelCss,children:[y.jsx(j.IconButton,{onClick:()=>r(""),children:y.jsx(lc,{})}),e.label]}),y.jsx("div",{css:le.css`
98
+ `,children:e.options.map(r=>{if(typeof r=="number")return y.jsx(F.MenuItem,{value:r,children:y.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return n!=null&&n.startsWith("--")?y.jsx(F.Divider,{},n):y.jsx(F.MenuItem,{value:a,children:r.description?y.jsx(F.Tooltip,{title:r.description,children:y.jsx("span",{children:n})}):y.jsx("span",{children:n})},n)})})})},Yb=e=>y.jsx(ys,{...e,children:y.jsx(gs,{...e,level:2,children:e.children})}),Xb=e=>y.jsx(ra.Consumer,{children:({focussedSubPagePath:t,setFocussedSubPagePath:r})=>t===e.path?y.jsxs(Y.Fragment,{children:[y.jsxs("div",{css:e.labelCss,children:[y.jsx(F.IconButton,{onClick:()=>r(""),children:y.jsx(lc,{})}),e.label]}),y.jsx("div",{css:le.css`
99
99
  .indentIfInSubPage {
100
100
  margin-left: 20px;
101
101
  //margin-right: 20px;
102
102
  }
103
- `,children:y.jsx(bs,{children:e.children})})]}):y.jsx(Ye,{onClick:()=>r(e.path),control:y.jsx(sc,{}),...e})}),Jb=e=>{const{values:t}=it(),r=ms(t,e.path);return y.jsx(Y.Fragment,{children:r.map((n,a)=>e.render(`${e.path}[${a}]`,a))})},Zb=e=>{e=Xe(e);const[t,r,n]=mt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?y.jsx(_r,{component:ns,type:"checkbox",name:e.path,label:e.label}):y.jsx(_r,{component:ts,type:"checkbox",disabled:e.disabled,name:e.path,label:e.label});return y.jsx(Ye,{onClick:()=>{n.setValue(!t.value)},control:a,...e})},Qb=e=>(e=Xe(e),y.jsx(Vb,{...e,control:y.jsx(ey,{...e})})),ey=e=>{const[t]=mt(e.path);return y.jsx(j.RadioGroup,{row:e.row,...t,...e,children:e.children})},ty=e=>{const t=j.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?y.jsx(j.FormControlLabel,{value:e.value,control:y.jsx(j.Radio,{}),label:e.label}):y.jsx(Y.Fragment,{children:e.children})},ry=e=>(e=Xe(e),y.jsx(Ye,{...e,control:y.jsx(ny,{...e})})),ny=e=>y.jsx(_r,{component:is,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function ay(e,t){return y.jsx(j.ToggleButton,{value:e,children:t})}const iy=e=>{e=Xe(e);const{setFieldValue:t}=it(),[r]=mt(e.path);return y.jsx(Ye,{...e,height:"50px",control:y.jsxs("div",{css:le.css`
103
+ `,children:y.jsx(bs,{children:e.children})})]}):y.jsx(Ye,{onClick:()=>r(e.path),control:y.jsx(sc,{}),...e})}),Jb=e=>{const{values:t}=it(),r=ms(t,e.path);return y.jsx(Y.Fragment,{children:r.map((n,a)=>e.render(`${e.path}[${a}]`,a))})},Zb=e=>{e=Xe(e);const[t,r,n]=mt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?y.jsx(_r,{component:ns,type:"checkbox",name:e.path,label:e.label}):y.jsx(_r,{component:ts,type:"checkbox",disabled:e.disabled,name:e.path,label:e.label});return y.jsx(Ye,{onClick:()=>{n.setValue(!t.value)},control:a,...e})},Qb=e=>(e=Xe(e),y.jsx(Vb,{...e,control:y.jsx(ey,{...e})})),ey=e=>{const[t]=mt(e.path);return y.jsx(F.RadioGroup,{row:e.row,...t,...e,children:e.children})},ty=e=>{const t=F.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?y.jsx(F.FormControlLabel,{value:e.value,control:y.jsx(F.Radio,{}),label:e.label}):y.jsx(Y.Fragment,{children:e.children})},ry=e=>(e=Xe(e),y.jsx(Ye,{...e,control:y.jsx(ny,{...e})})),ny=e=>y.jsx(_r,{component:is,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function ay(e,t){return y.jsx(F.ToggleButton,{value:e,children:t})}const iy=e=>{e=Xe(e);const{setFieldValue:t}=it(),[r]=mt(e.path);return y.jsx(Ye,{...e,height:"50px",control:y.jsxs("div",{css:le.css`
104
104
  height: 56px; // leave room to show the path below the button
105
- `,children:[y.jsx(j.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),y.jsx("div",{css:le.css`
105
+ `,children:[y.jsx(F.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),y.jsx("div",{css:le.css`
106
106
  color: ${Lb};
107
107
  `,children:r.value})]})})},oy=e=>{const{values:t}=it(),r=e.enableWhen?!e.enableWhen(t):!1;return(e.visibleWhen?e.visibleWhen(t):!0)?y.jsx(Y.Fragment,{children:Y.Children.map(e.children,a=>Y.isValidElement(a)?Y.cloneElement(a,{disabled:r}):a)}):null};function ms(e,t,r,n=0){const a=Ph(t);for(;e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function sy(e,t){const{values:r}=it();return t?typeof t=="string"?ms(r,t)===!0:t(r):e}function xs(e,t){return t.startsWith(e+".")}function na(e){if(!e)return null;if(typeof e!="string")return e;const t=/\[([^\]]+)\]\(([^)]+)\)/g;let r,n=0;const a=[];for(;(r=t.exec(e))!==null;)r.index===t.lastIndex&&t.lastIndex++,a.push(e.substring(n,r.index)),a.push(y.jsx("a",{href:r[2],target:"_blank",rel:"noreferrer",children:r[1]})),n=t.lastIndex;return a.push(e.substring(n)),a}const Ss={typography:{fontFamily:["system-ui",'"Segoe UI"',"Roboto","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),h2:{fontSize:"20px",fontWeight:"600"},h3:{fontSize:"14px",fontWeight:"600"},h4:{fontSize:"14px",fontWeight:"600"},caption:{fontSize:"12px",lineHeight:"14px",marginTop:"4px"}},components:{MuiSelect:{styleOverrides:{select:{fontSize:"14px"}}},MuiDivider:{styleOverrides:{root:{borderColor:"rgb(234, 234, 234)"}}},MuiFormControlLabel:{styleOverrides:{label:{fontSize:"14px",fontWeight:"600"}}}}},ws=e=>{let t;const r=new Set,n=(c,u)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const l=t;t=u??typeof h!="object"?h:Object.assign({},t,h),r.forEach(d=>d(t,l))}},a=()=>t,s={setState:n,getState:a,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{var c;((c={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:c.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,a,s),s},ly=e=>e?ws(e):ws;var aa={},uy={get exports(){return aa},set exports(e){aa=e}},ia={},en={},cy={get exports(){return en},set exports(e){en=e}},oa={};/**
108
108
  * @license React
@@ -120,7 +120,7 @@
120
120
  *
121
121
  * This source code is licensed under the MIT license found in the
122
122
  * LICENSE file in the root directory of this source tree.
123
- */var _s;function dy(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var S=arguments.length,b=new Array(S>1?S-1:0),T=1;T<S;T++)b[T-1]=arguments[T];n("error",_,b)}}function n(_,S,b){{var T=t.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(S+="%s",b=b.concat([k]));var W=b.map(function(q){return String(q)});W.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,W)}}function a(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var i=typeof Object.is=="function"?Object.is:a,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,h=!1,l=!1;function d(_,S,b){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!l){var k=S();i(T,k)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var W=o({inst:{value:T,getSnapshot:S}}),q=W[0].inst,ge=W[1];return c(function(){q.value=T,q.getSnapshot=S,p(q)&&ge({inst:q})},[_,T,S]),s(function(){p(q)&&ge({inst:q});var ae=function(){p(q)&&ge({inst:q})};return _(ae)},[_]),u(T),T}function p(_){var S=_.getSnapshot,b=_.value;try{var T=S();return!i(b,T)}catch{return!0}}function v(_,S,b){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m=!g,x=m?v:d,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;sa.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),sa}var Cs;function $s(){return Cs||(Cs=1,function(e){process.env.NODE_ENV==="production"?e.exports=fy():e.exports=dy()}(cy)),en}/**
123
+ */var _s;function dy(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var S=arguments.length,b=new Array(S>1?S-1:0),T=1;T<S;T++)b[T-1]=arguments[T];n("error",_,b)}}function n(_,S,b){{var T=t.ReactDebugCurrentFrame,D=T.getStackAddendum();D!==""&&(S+="%s",b=b.concat([D]));var W=b.map(function(q){return String(q)});W.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,W)}}function a(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var i=typeof Object.is=="function"?Object.is:a,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,h=!1,l=!1;function d(_,S,b){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!l){var D=S();i(T,D)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var W=o({inst:{value:T,getSnapshot:S}}),q=W[0].inst,ge=W[1];return c(function(){q.value=T,q.getSnapshot=S,p(q)&&ge({inst:q})},[_,T,S]),s(function(){p(q)&&ge({inst:q});var ae=function(){p(q)&&ge({inst:q})};return _(ae)},[_]),u(T),T}function p(_){var S=_.getSnapshot,b=_.value;try{var T=S();return!i(b,T)}catch{return!0}}function v(_,S,b){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m=!g,x=m?v:d,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;sa.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),sa}var Cs;function $s(){return Cs||(Cs=1,function(e){process.env.NODE_ENV==="production"?e.exports=fy():e.exports=dy()}(cy)),en}/**
124
124
  * @license React
125
125
  * use-sync-external-store-shim/with-selector.production.min.js
126
126
  *
@@ -128,7 +128,7 @@
128
128
  *
129
129
  * This source code is licensed under the MIT license found in the
130
130
  * LICENSE file in the root directory of this source tree.
131
- */var Ts;function hy(){if(Ts)return ia;Ts=1;var e=f,t=$s();function r(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return ia.useSyncExternalStoreWithSelector=function(u,h,l,d,p){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=s(function(){function x(T){if(!C){if(C=!0,_=T,T=d(T),p!==void 0&&g.hasValue){var k=g.value;if(p(k,T))return S=k}return S=T}if(k=S,n(_,T))return k;var W=d(T);return p!==void 0&&p(k,W)?k:(_=T,S=W)}var C=!1,_,S,b=l===void 0?null:l;return[function(){return x(h())},b===null?void 0:function(){return x(b())}]},[h,l,d,p]);var m=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=m},[m]),c(m),m},ia}var la={};/**
131
+ */var Ts;function hy(){if(Ts)return ia;Ts=1;var e=f,t=$s();function r(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return ia.useSyncExternalStoreWithSelector=function(u,h,l,d,p){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=s(function(){function x(T){if(!C){if(C=!0,_=T,T=d(T),p!==void 0&&g.hasValue){var D=g.value;if(p(D,T))return S=D}return S=T}if(D=S,n(_,T))return D;var W=d(T);return p!==void 0&&p(D,W)?D:(_=T,S=W)}var C=!1,_,S,b=l===void 0?null:l;return[function(){return x(h())},b===null?void 0:function(){return x(b())}]},[h,l,d,p]);var m=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=m},[m]),c(m),m},ia}var la={};/**
132
132
  * @license React
133
133
  * use-sync-external-store-shim/with-selector.development.js
134
134
  *
@@ -136,10 +136,10 @@
136
136
  *
137
137
  * This source code is licensed under the MIT license found in the
138
138
  * LICENSE file in the root directory of this source tree.
139
- */var Os;function py(){return Os||(Os=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=$s();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,d,p,v){var g=i(null),m;g.current===null?(m={hasValue:!1,value:null},g.current=m):m=g.current;var x=s(function(){var b=!1,T,k,W=function(he){if(!b){b=!0,T=he;var Se=p(he);if(v!==void 0&&m.hasValue){var be=m.value;if(v(be,Se))return k=be,be}return k=Se,Se}var Ce=T,se=k;if(n(Ce,he))return se;var me=p(he);return v!==void 0&&v(se,me)?se:(T=he,k=me,me)},q=d===void 0?null:d,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,d,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){m.hasValue=!0,m.value=S},[S]),c(S),S}la.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),la}(function(e){process.env.NODE_ENV==="production"?e.exports=hy():e.exports=py()})(uy);const vy=wc(aa),{useSyncExternalStoreWithSelector:gy}=vy;function As(e,t=e.getState,r){const n=gy(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return f.useDebugValue(n),n}const Ps=e=>{var t;((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?ly(e):e,n=(a,i)=>As(r,a,i);return Object.assign(n,r),n},by=e=>e?Ps(e):Ps;var Ms=e=>{var t;return((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),by(e)};function Is(){var e;((e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=f.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=f.useRef();return s.current||(s.current=i()),f.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=f.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return As(s,i,o)},useStoreApi:()=>{const i=f.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return f.useMemo(()=>({...i}),[i])}}}const Fs=(e,t)=>(...r)=>Object.assign({},e,t(...r));var yy=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},my=yy,ks={"text/plain":"Text","text/html":"Url",default:"Text"},xy="Copy to clipboard: #{key}, Enter";function Sy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function wy(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=my(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=ks[t.format]||ks.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=Sy("message"in t?t.message:xy),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var js=wy;function ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){ua(e,a,r[a])})}return e}function Ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $r(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ey(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _y(e){if(Array.isArray(e))return ca(e)}function Ds(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cy(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ns(e,t){if(e){if(typeof e=="string")return ca(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ca(e,t)}}function ot(e){return _y(e)||Ds(e)||Ns(e)||Cy()}function $y(e){if(Array.isArray(e))return e}function Ty(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return $y(e)||Ds(e)||Ns(e,t)||Ty()}var fa={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ls={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Bs=function(){return null};Bs.when=function(){return!1};var da,ha,pa,va,ga,ba,ya,ma,xa,Sa,wa,Ea,_a,Ca,$a,Oy=function(e){return Ms(Fs({enableClipboard:(da=e.enableClipboard)!==null&&da!==void 0?da:!0,indentWidth:(ha=e.indentWidth)!==null&&ha!==void 0?ha:3,groupArraysAfterLength:(pa=e.groupArraysAfterLength)!==null&&pa!==void 0?pa:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(va=e.collapseStringsAfterLength)!==null&&va!==void 0?va:50,maxDisplayLength:(ga=e.maxDisplayLength)!==null&&ga!==void 0?ga:30,rootName:(ba=e.rootName)!==null&&ba!==void 0?ba:"root",onChange:(ya=e.onChange)!==null&&ya!==void 0?ya:function(){},onCopy:(ma=e.onCopy)!==null&&ma!==void 0?ma:void 0,keyRenderer:(xa=e.keyRenderer)!==null&&xa!==void 0?xa:Bs,editable:(Sa=e.editable)!==null&&Sa!==void 0?Sa:!1,defaultInspectDepth:(wa=e.defaultInspectDepth)!==null&&wa!==void 0?wa:5,objectSortKeys:(Ea=e.objectSortKeys)!==null&&Ea!==void 0?Ea:!1,quotesOnKeys:(_a=e.quotesOnKeys)!==null&&_a!==void 0?_a:!0,displayDataTypes:(Ca=e.displayDataTypes)!==null&&Ca!==void 0?Ca:!0,inspectCache:{},hoverPath:null,colorspace:fa,value:e.value,displayObjectSize:($a=e.displayObjectSize)!==null&&$a!==void 0?$a:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:$r(ie({},s.inspectCache),ua({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},Ta=Is(),J=Ta.useStore,Hs=Ta.useStoreApi,Ay=Ta.Provider,Oa=function(){return J(function(e){return e.colorspace.base07})};function st(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Py(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(f.useState(!1),2),a=n[0],i=n[1],o=f.useRef(null),s=f.useCallback(function(l){var d=o.current;d&&window.clearTimeout(d),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=f.useCallback(function(l,d){if(typeof c=="function")try{var p=c(l,d);st(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof d=="function"?d.toString():d,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return js(v)}):js(v)}},[s,c]),h=f.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var My=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=ot(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function Tr(e){return e===null?0:Array.isArray(e)?e.length:st(e,Map)||st(e,Set)?e.size:st(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Iy(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function Aa(e,t){var r=J(function(n){return n.value});return f.useMemo(function(){return My(r,e,t)},[e,t,r])}function Fy(e,t,r){var n=e.length,a=Aa(e,t),i=J(function(d){return d.getInspectCache}),o=J(function(d){return d.setInspectCache}),s=J(function(d){return d.defaultInspectDepth});f.useEffect(function(){var d=i(e,r);if(d===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(f.useState(function(){var d=i(e,r);return d!==void 0?d:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=f.useCallback(function(d){h(function(p){var v=typeof d=="boolean"?d:d(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function ky(e){return e&&e.constructor===Symbol?"symbol":typeof e}var lt=function(e){return y.jsx(j.Box,$r(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Gs=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?y.jsx(lt,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function tt(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=f.memo(t),o=function(u){var h=J(function(d){return d.displayDataTypes}),l=J(function(d){return d.colorspace[r.colorKey]});return y.jsxs(lt,{sx:{color:l},children:[a&&h&&y.jsx(Gs,{dataType:e}),y.jsx(lt,{className:"".concat(e,"-value"),children:y.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,d=J(function(p){return p.colorspace[r.colorKey]});return y.jsx(j.InputBase,{value:h,onChange:f.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:d,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var jy=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},Dy=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},Ny="{",Ly="}",By=function(e){return y.jsxs(j.NoSsr,{children:[y.jsx(Gs,{dataType:"function"}),y.jsxs(j.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Dy(e.value)," ",Ny]})]})},Hy=function(){return y.jsx(j.NoSsr,{children:y.jsx(j.Box,{component:"span",className:"data-function-end",children:Ly})})},Gy=function(e){var t=J(function(r){return r.colorspace.base05});return y.jsx(j.NoSsr,{children:y.jsx(j.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?jy(e.value):y.jsx(j.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function Vy(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Uy(e,t){if(e==null)return{};var r=Vy(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var xt=function(e){var t=e.d,r=Uy(e,["d"]);return y.jsx(j.SvgIcon,$r(ie({},r),{children:y.jsx("path",{d:t})}))},zy="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Wy="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Ky="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",qy="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Ry="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Yy="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",Xy="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Vs=function(e){return y.jsx(xt,ie({d:zy},e))},Jy=function(e){return y.jsx(xt,ie({d:Wy},e))},Zy=function(e){return y.jsx(xt,ie({d:Ky},e))},Qy=function(e){return y.jsx(xt,ie({d:qy},e))},em=function(e){return y.jsx(xt,ie({d:Ry},e))},tm=function(e){return y.jsx(xt,ie({d:Yy},e))},rm=function(e){return y.jsx(xt,ie({d:Xy},e))},nm="{",am="[",im="}",om="]";function Us(e){var t=Tr(e),r="";return(st(e,Map)||st(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var sm=function(e){var t=J(function(c){return c.colorspace.base04}),r=Oa(),n=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=f.useMemo(function(){return Tr(e.value)===0},[e.value]),i=f.useMemo(function(){return Us(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=Aa(e.path,e.value);return y.jsxs(j.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?am:nm,o&&e.inspect&&!a&&y.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?y.jsxs(y.Fragment,{children:[y.jsx(Zy,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},lm=function(e){var t=J(function(o){return o.colorspace.base04}),r=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=f.useMemo(function(){return Tr(e.value)===0},[e.value]),i=f.useMemo(function(){return Us(e.value)},[e.inspect,e.value]);return y.jsxs(j.Box,{component:"span",className:"data-object-end",children:[r?om:im,n&&(a||!e.inspect)?y.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function um(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var cm=function(e){var t=Oa(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=Aa(e.path,e.value),i=Me(f.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=f.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=um(v);if(g&&!Array.isArray(v)){var m=[];if(st(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,k=Me(T,2),W=k[0],q=k[1],ge="".concat(W);m.push(y.jsx(kt,{path:ot(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,he=!0,Se=!1,be=void 0;try{for(var Ce=v[Symbol.iterator](),se;!(he=(se=Ce.next()).done);he=!0){var me=se.value;m.push(y.jsx(kt,{path:ot(e.path).concat(["iterator:".concat(ae)]),value:me,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){Se=!0,be=M}finally{try{!he&&Ce.return!=null&&Ce.return()}finally{if(Se)throw be}}}return m}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,N){var L=ot(e.path).concat([N]);return y.jsx(kt,{path:L,value:M},N)});if(v.length>o){var Ae=v.length-o;Oe.push(y.jsxs(lt,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Iy(v,n);return $.map(function(M,N){var L=ot(e.path);return y.jsx(kt,{path:L,value:M,nestedIndex:N},N)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,N){var L=Me(M,1),H=L[0],P=Me(N,1),K=P[0];return H.localeCompare(K)}):A.sort(function(M,N){var L=Me(M,1),H=L[0],P=Me(N,1),K=P[0];return c(H,K)}));var U=A.slice(0,o).map(function(M){var N=Me(M,2),L=N[0],H=N[1],P=ot(e.path).concat([L]);return y.jsx(kt,{path:P,value:H},L)});if(A.length>o){var G=A.length-o;U.push(y.jsxs(lt,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),d=e.inspect?l-h:l,p=f.useMemo(function(){return Tr(e.value)===0},[e.value]);return p?null:y.jsx(j.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?d-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:y.jsx(j.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},fm=function(){return Ms(Fs({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},zs=Is(),dm=zs.Provider,Ws=zs.useStore,hm={is:function(e){return typeof e=="object"},Component:cm,PreComponent:sm,PostComponent:lm};function pm(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return hm;throw new Error("this is not possible")}return n}function vm(e,t){var r=Ws(function(n){return n.registry});return f.useMemo(function(){return pm(e,t,r)},[e,t,r])}function gm(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=f.memo(i.Component,o),i.Editor&&(i.Editor=f.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=f.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=f.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},tt("bool",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return Boolean(a)}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return st(a,Date)}},tt("date",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},tt("null",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(j.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},tt("undefined",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(j.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},tt("string",function(a){var i=Me(f.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return y.jsxs(j.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&y.jsx(j.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Gy,PreComponent:By,PostComponent:Hy});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},tt("NaN",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(j.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},tt("float",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},tt("int",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":ky(a))==="bigint"}},tt("bigint",function(a){var i=a.value;return y.jsx(y.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var tn=function(e){return y.jsx(j.Box,$r(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},kt=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=f.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(f.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,d=r[l-1],p=J(function(P){return P.hoverPath}),v=f.useMemo(function(){return p&&r.every(function(P,K){return P===p.path[K]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),m=J(function(P){return P.value}),x=Me(Fy(r,t,n),2),C=x[0],_=x[1],S=Me(f.useState(!1),2),b=S[0],T=S[1],k=J(function(P){return P.onChange}),W=Oa(),q=J(function(P){return P.colorspace.base0C}),ge=vm(t,r),ae=ge.Component,he=ge.PreComponent,Se=ge.PostComponent,be=ge.Editor,Ce=J(function(P){return P.quotesOnKeys}),se=J(function(P){return P.rootName}),me=m===t,Oe=Number.isInteger(Number(d)),Ae=J(function(P){return P.enableClipboard}),$=Py(),A=$.copy,U=$.copied,G=f.useMemo(function(){return b?y.jsxs(y.Fragment,{children:[y.jsx(tn,{children:y.jsx(Qy,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),y.jsx(tn,{children:y.jsx(Vs,{sx:{fontSize:".8rem"},onClick:function(){T(!1),k(r,t,u)}})})]}):y.jsxs(y.Fragment,{children:[Ae&&y.jsx(tn,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(K){console.error(K)}},children:U?y.jsx(Vs,{sx:{fontSize:".8rem"}}):y.jsx(em,{sx:{fontSize:".8rem"}})}),be&&s&&y.jsx(tn,{onClick:function(P){P.preventDefault(),T(!0)},children:y.jsx(tm,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,k,r,u,t]),M=f.useMemo(function(){return Tr(t)===0},[t]),N=!M&&!!(he&&Se),L=J(function(P){return P.keyRenderer}),H=f.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return y.jsxs(j.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:f.useCallback(function(){return g(r,n)},[g,r,n]),children:[y.jsxs(lt,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:f.useCallback(function(P){P.isDefaultPrevented()||M||_(function(K){return!K})},[_]),children:[N?C?y.jsx(rm,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):y.jsx(Jy,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,me?se!==!1?Ce?y.jsxs(y.Fragment,{children:['"',se,'"']}):y.jsx(y.Fragment,{children:se}):null:L.when(H)?y.jsx(L,ie({},H)):n===void 0&&(Oe?y.jsx(j.Box,{component:"span",style:{color:q},children:d}):Ce?y.jsxs(y.Fragment,{children:['"',d,'"']}):y.jsx(y.Fragment,{children:d})),me?se!==!1?y.jsx(lt,{sx:{mr:.5},children:":"}):null:n===void 0&&y.jsx(lt,{sx:{mr:.5},children:":"}),he&&y.jsx(he,ie({},H)),v&&N&&C&&G]}),b&&s?be&&y.jsx(be,{value:u,setValue:h}):ae?y.jsx(ae,ie({},H)):y.jsx(j.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),Se&&y.jsx(Se,ie({},H)),v&&N&&!C&&G,v&&!N&&G]})},Ks="(prefers-color-scheme: dark)";function bm(){var e=Me(f.useState(!1),2),t=e[0],r=e[1];return f.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(Ks).matches);var a=window.matchMedia(Ks);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Le(e,t){var r=Hs();f.useEffect(function(){t!==void 0&&r.setState(ua({},e,t))},[e,t,r])}var ym=function(e){var t=Hs();Le("value",e.value),Le("editable",e.editable),Le("indentWidth",e.indentWidth),Le("onChange",e.onChange),Le("groupArraysAfterLength",e.groupArraysAfterLength),Le("keyRenderer",e.keyRenderer),Le("maxDisplayLength",e.maxDisplayLength),Le("enableClipboard",e.enableClipboard),Le("rootName",e.rootName),Le("displayDataTypes",e.displayDataTypes),Le("displayObjectSize",e.displayObjectSize),Le("onCopy",e.onCopy),f.useEffect(function(){e.theme==="light"?t.setState({colorspace:fa}):e.theme==="dark"?t.setState({colorspace:Ls}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=f.useRef(!0),n=f.useMemo(function(){return gm()},[]),a=Ws(function(u){return u.registerTypes});if(r.current){var i,o=ot(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}f.useEffect(function(){var u,h=ot(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return y.jsx(j.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:f.useCallback(function(){c(null)},[c]),children:y.jsx(kt,{value:s,path:f.useMemo(function(){return[]},[])})})},mm=function(t){var r=bm(),n,a=f.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=f.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ls.base00:fa.base00;return j.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=$r(ie({},t),{theme:a});return y.jsx(j.ThemeProvider,{theme:i,children:y.jsx(dm,{createStore:fm,children:y.jsx(Ay,{createStore:function(){return Oy(t)},children:y.jsx(ym,ie({},o))})})})};const xm=e=>{const[t,r]=f.useState(0),n=e.themeOverrides?nt.createTheme(Ss,e.themeOverrides):nt.createTheme(Ss),a=Y.Children.toArray(e.children).length>1,[i,o]=f.useState(e.initialValues),s=h=>{e.onChange&&e.onChange(h),o(h)},{onChange:c,...u}=e;return y.jsxs("div",{css:le.css`
139
+ */var Os;function py(){return Os||(Os=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=$s();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,d,p,v){var g=i(null),m;g.current===null?(m={hasValue:!1,value:null},g.current=m):m=g.current;var x=s(function(){var b=!1,T,D,W=function(he){if(!b){b=!0,T=he;var Se=p(he);if(v!==void 0&&m.hasValue){var be=m.value;if(v(be,Se))return D=be,be}return D=Se,Se}var Ce=T,se=D;if(n(Ce,he))return se;var me=p(he);return v!==void 0&&v(se,me)?se:(T=he,D=me,me)},q=d===void 0?null:d,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,d,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){m.hasValue=!0,m.value=S},[S]),c(S),S}la.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),la}(function(e){process.env.NODE_ENV==="production"?e.exports=hy():e.exports=py()})(uy);const vy=wc(aa),{useSyncExternalStoreWithSelector:gy}=vy;function As(e,t=e.getState,r){const n=gy(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return f.useDebugValue(n),n}const Ps=e=>{var t;((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?ly(e):e,n=(a,i)=>As(r,a,i);return Object.assign(n,r),n},by=e=>e?Ps(e):Ps;var Ms=e=>{var t;return((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),by(e)};function Is(){var e;((e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=f.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=f.useRef();return s.current||(s.current=i()),f.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=f.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return As(s,i,o)},useStoreApi:()=>{const i=f.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return f.useMemo(()=>({...i}),[i])}}}const Fs=(e,t)=>(...r)=>Object.assign({},e,t(...r));var yy=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},my=yy,ks={"text/plain":"Text","text/html":"Url",default:"Text"},xy="Copy to clipboard: #{key}, Enter";function Sy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function wy(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=my(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=ks[t.format]||ks.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=Sy("message"in t?t.message:xy),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var Ds=wy;function ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){ua(e,a,r[a])})}return e}function Ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $r(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ey(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _y(e){if(Array.isArray(e))return ca(e)}function js(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cy(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ns(e,t){if(e){if(typeof e=="string")return ca(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ca(e,t)}}function ot(e){return _y(e)||js(e)||Ns(e)||Cy()}function $y(e){if(Array.isArray(e))return e}function Ty(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return $y(e)||js(e)||Ns(e,t)||Ty()}var fa={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ls={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Bs=function(){return null};Bs.when=function(){return!1};var da,ha,pa,va,ga,ba,ya,ma,xa,Sa,wa,Ea,_a,Ca,$a,Oy=function(e){return Ms(Fs({enableClipboard:(da=e.enableClipboard)!==null&&da!==void 0?da:!0,indentWidth:(ha=e.indentWidth)!==null&&ha!==void 0?ha:3,groupArraysAfterLength:(pa=e.groupArraysAfterLength)!==null&&pa!==void 0?pa:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(va=e.collapseStringsAfterLength)!==null&&va!==void 0?va:50,maxDisplayLength:(ga=e.maxDisplayLength)!==null&&ga!==void 0?ga:30,rootName:(ba=e.rootName)!==null&&ba!==void 0?ba:"root",onChange:(ya=e.onChange)!==null&&ya!==void 0?ya:function(){},onCopy:(ma=e.onCopy)!==null&&ma!==void 0?ma:void 0,keyRenderer:(xa=e.keyRenderer)!==null&&xa!==void 0?xa:Bs,editable:(Sa=e.editable)!==null&&Sa!==void 0?Sa:!1,defaultInspectDepth:(wa=e.defaultInspectDepth)!==null&&wa!==void 0?wa:5,objectSortKeys:(Ea=e.objectSortKeys)!==null&&Ea!==void 0?Ea:!1,quotesOnKeys:(_a=e.quotesOnKeys)!==null&&_a!==void 0?_a:!0,displayDataTypes:(Ca=e.displayDataTypes)!==null&&Ca!==void 0?Ca:!0,inspectCache:{},hoverPath:null,colorspace:fa,value:e.value,displayObjectSize:($a=e.displayObjectSize)!==null&&$a!==void 0?$a:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:$r(ie({},s.inspectCache),ua({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},Ta=Is(),J=Ta.useStore,Hs=Ta.useStoreApi,Ay=Ta.Provider,Oa=function(){return J(function(e){return e.colorspace.base07})};function st(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Py(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(f.useState(!1),2),a=n[0],i=n[1],o=f.useRef(null),s=f.useCallback(function(l){var d=o.current;d&&window.clearTimeout(d),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=f.useCallback(function(l,d){if(typeof c=="function")try{var p=c(l,d);st(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof d=="function"?d.toString():d,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return Ds(v)}):Ds(v)}},[s,c]),h=f.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var My=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=ot(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function Tr(e){return e===null?0:Array.isArray(e)?e.length:st(e,Map)||st(e,Set)?e.size:st(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Iy(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function Aa(e,t){var r=J(function(n){return n.value});return f.useMemo(function(){return My(r,e,t)},[e,t,r])}function Fy(e,t,r){var n=e.length,a=Aa(e,t),i=J(function(d){return d.getInspectCache}),o=J(function(d){return d.setInspectCache}),s=J(function(d){return d.defaultInspectDepth});f.useEffect(function(){var d=i(e,r);if(d===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(f.useState(function(){var d=i(e,r);return d!==void 0?d:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=f.useCallback(function(d){h(function(p){var v=typeof d=="boolean"?d:d(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function ky(e){return e&&e.constructor===Symbol?"symbol":typeof e}var lt=function(e){return y.jsx(F.Box,$r(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Gs=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?y.jsx(lt,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function tt(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=f.memo(t),o=function(u){var h=J(function(d){return d.displayDataTypes}),l=J(function(d){return d.colorspace[r.colorKey]});return y.jsxs(lt,{sx:{color:l},children:[a&&h&&y.jsx(Gs,{dataType:e}),y.jsx(lt,{className:"".concat(e,"-value"),children:y.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,d=J(function(p){return p.colorspace[r.colorKey]});return y.jsx(F.InputBase,{value:h,onChange:f.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:d,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var Dy=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},jy=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},Ny="{",Ly="}",By=function(e){return y.jsxs(F.NoSsr,{children:[y.jsx(Gs,{dataType:"function"}),y.jsxs(F.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[jy(e.value)," ",Ny]})]})},Hy=function(){return y.jsx(F.NoSsr,{children:y.jsx(F.Box,{component:"span",className:"data-function-end",children:Ly})})},Gy=function(e){var t=J(function(r){return r.colorspace.base05});return y.jsx(F.NoSsr,{children:y.jsx(F.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Dy(e.value):y.jsx(F.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function Vy(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Uy(e,t){if(e==null)return{};var r=Vy(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var xt=function(e){var t=e.d,r=Uy(e,["d"]);return y.jsx(F.SvgIcon,$r(ie({},r),{children:y.jsx("path",{d:t})}))},zy="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Wy="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Ky="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",qy="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Ry="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Yy="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",Xy="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Vs=function(e){return y.jsx(xt,ie({d:zy},e))},Jy=function(e){return y.jsx(xt,ie({d:Wy},e))},Zy=function(e){return y.jsx(xt,ie({d:Ky},e))},Qy=function(e){return y.jsx(xt,ie({d:qy},e))},em=function(e){return y.jsx(xt,ie({d:Ry},e))},tm=function(e){return y.jsx(xt,ie({d:Yy},e))},rm=function(e){return y.jsx(xt,ie({d:Xy},e))},nm="{",am="[",im="}",om="]";function Us(e){var t=Tr(e),r="";return(st(e,Map)||st(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var sm=function(e){var t=J(function(c){return c.colorspace.base04}),r=Oa(),n=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=f.useMemo(function(){return Tr(e.value)===0},[e.value]),i=f.useMemo(function(){return Us(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=Aa(e.path,e.value);return y.jsxs(F.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?am:nm,o&&e.inspect&&!a&&y.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?y.jsxs(y.Fragment,{children:[y.jsx(Zy,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},lm=function(e){var t=J(function(o){return o.colorspace.base04}),r=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=f.useMemo(function(){return Tr(e.value)===0},[e.value]),i=f.useMemo(function(){return Us(e.value)},[e.inspect,e.value]);return y.jsxs(F.Box,{component:"span",className:"data-object-end",children:[r?om:im,n&&(a||!e.inspect)?y.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function um(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var cm=function(e){var t=Oa(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=Aa(e.path,e.value),i=Me(f.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=f.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=um(v);if(g&&!Array.isArray(v)){var m=[];if(st(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,D=Me(T,2),W=D[0],q=D[1],ge="".concat(W);m.push(y.jsx(kt,{path:ot(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,he=!0,Se=!1,be=void 0;try{for(var Ce=v[Symbol.iterator](),se;!(he=(se=Ce.next()).done);he=!0){var me=se.value;m.push(y.jsx(kt,{path:ot(e.path).concat(["iterator:".concat(ae)]),value:me,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){Se=!0,be=M}finally{try{!he&&Ce.return!=null&&Ce.return()}finally{if(Se)throw be}}}return m}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,N){var L=ot(e.path).concat([N]);return y.jsx(kt,{path:L,value:M},N)});if(v.length>o){var Ae=v.length-o;Oe.push(y.jsxs(lt,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Iy(v,n);return $.map(function(M,N){var L=ot(e.path);return y.jsx(kt,{path:L,value:M,nestedIndex:N},N)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,N){var L=Me(M,1),H=L[0],P=Me(N,1),K=P[0];return H.localeCompare(K)}):A.sort(function(M,N){var L=Me(M,1),H=L[0],P=Me(N,1),K=P[0];return c(H,K)}));var U=A.slice(0,o).map(function(M){var N=Me(M,2),L=N[0],H=N[1],P=ot(e.path).concat([L]);return y.jsx(kt,{path:P,value:H},L)});if(A.length>o){var G=A.length-o;U.push(y.jsxs(lt,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),d=e.inspect?l-h:l,p=f.useMemo(function(){return Tr(e.value)===0},[e.value]);return p?null:y.jsx(F.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?d-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:y.jsx(F.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},fm=function(){return Ms(Fs({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},zs=Is(),dm=zs.Provider,Ws=zs.useStore,hm={is:function(e){return typeof e=="object"},Component:cm,PreComponent:sm,PostComponent:lm};function pm(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return hm;throw new Error("this is not possible")}return n}function vm(e,t){var r=Ws(function(n){return n.registry});return f.useMemo(function(){return pm(e,t,r)},[e,t,r])}function gm(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=f.memo(i.Component,o),i.Editor&&(i.Editor=f.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=f.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=f.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},tt("bool",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return Boolean(a)}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return st(a,Date)}},tt("date",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},tt("null",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(F.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},tt("undefined",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(F.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},tt("string",function(a){var i=Me(f.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return y.jsxs(F.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&y.jsx(F.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Gy,PreComponent:By,PostComponent:Hy});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},tt("NaN",function(){var a=J(function(i){return i.colorspace.base02});return y.jsx(F.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},tt("float",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},tt("int",function(a){var i=a.value;return y.jsx(y.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":ky(a))==="bigint"}},tt("bigint",function(a){var i=a.value;return y.jsx(y.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var tn=function(e){return y.jsx(F.Box,$r(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},kt=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=f.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(f.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,d=r[l-1],p=J(function(P){return P.hoverPath}),v=f.useMemo(function(){return p&&r.every(function(P,K){return P===p.path[K]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),m=J(function(P){return P.value}),x=Me(Fy(r,t,n),2),C=x[0],_=x[1],S=Me(f.useState(!1),2),b=S[0],T=S[1],D=J(function(P){return P.onChange}),W=Oa(),q=J(function(P){return P.colorspace.base0C}),ge=vm(t,r),ae=ge.Component,he=ge.PreComponent,Se=ge.PostComponent,be=ge.Editor,Ce=J(function(P){return P.quotesOnKeys}),se=J(function(P){return P.rootName}),me=m===t,Oe=Number.isInteger(Number(d)),Ae=J(function(P){return P.enableClipboard}),$=Py(),A=$.copy,U=$.copied,G=f.useMemo(function(){return b?y.jsxs(y.Fragment,{children:[y.jsx(tn,{children:y.jsx(Qy,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),y.jsx(tn,{children:y.jsx(Vs,{sx:{fontSize:".8rem"},onClick:function(){T(!1),D(r,t,u)}})})]}):y.jsxs(y.Fragment,{children:[Ae&&y.jsx(tn,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(K){console.error(K)}},children:U?y.jsx(Vs,{sx:{fontSize:".8rem"}}):y.jsx(em,{sx:{fontSize:".8rem"}})}),be&&s&&y.jsx(tn,{onClick:function(P){P.preventDefault(),T(!0)},children:y.jsx(tm,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,D,r,u,t]),M=f.useMemo(function(){return Tr(t)===0},[t]),N=!M&&!!(he&&Se),L=J(function(P){return P.keyRenderer}),H=f.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return y.jsxs(F.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:f.useCallback(function(){return g(r,n)},[g,r,n]),children:[y.jsxs(lt,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:f.useCallback(function(P){P.isDefaultPrevented()||M||_(function(K){return!K})},[_]),children:[N?C?y.jsx(rm,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):y.jsx(Jy,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,me?se!==!1?Ce?y.jsxs(y.Fragment,{children:['"',se,'"']}):y.jsx(y.Fragment,{children:se}):null:L.when(H)?y.jsx(L,ie({},H)):n===void 0&&(Oe?y.jsx(F.Box,{component:"span",style:{color:q},children:d}):Ce?y.jsxs(y.Fragment,{children:['"',d,'"']}):y.jsx(y.Fragment,{children:d})),me?se!==!1?y.jsx(lt,{sx:{mr:.5},children:":"}):null:n===void 0&&y.jsx(lt,{sx:{mr:.5},children:":"}),he&&y.jsx(he,ie({},H)),v&&N&&C&&G]}),b&&s?be&&y.jsx(be,{value:u,setValue:h}):ae?y.jsx(ae,ie({},H)):y.jsx(F.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),Se&&y.jsx(Se,ie({},H)),v&&N&&!C&&G,v&&!N&&G]})},Ks="(prefers-color-scheme: dark)";function bm(){var e=Me(f.useState(!1),2),t=e[0],r=e[1];return f.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(Ks).matches);var a=window.matchMedia(Ks);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Le(e,t){var r=Hs();f.useEffect(function(){t!==void 0&&r.setState(ua({},e,t))},[e,t,r])}var ym=function(e){var t=Hs();Le("value",e.value),Le("editable",e.editable),Le("indentWidth",e.indentWidth),Le("onChange",e.onChange),Le("groupArraysAfterLength",e.groupArraysAfterLength),Le("keyRenderer",e.keyRenderer),Le("maxDisplayLength",e.maxDisplayLength),Le("enableClipboard",e.enableClipboard),Le("rootName",e.rootName),Le("displayDataTypes",e.displayDataTypes),Le("displayObjectSize",e.displayObjectSize),Le("onCopy",e.onCopy),f.useEffect(function(){e.theme==="light"?t.setState({colorspace:fa}):e.theme==="dark"?t.setState({colorspace:Ls}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=f.useRef(!0),n=f.useMemo(function(){return gm()},[]),a=Ws(function(u){return u.registerTypes});if(r.current){var i,o=ot(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}f.useEffect(function(){var u,h=ot(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return y.jsx(F.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:f.useCallback(function(){c(null)},[c]),children:y.jsx(kt,{value:s,path:f.useMemo(function(){return[]},[])})})},mm=function(t){var r=bm(),n,a=f.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=f.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ls.base00:fa.base00;return F.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=$r(ie({},t),{theme:a});return y.jsx(F.ThemeProvider,{theme:i,children:y.jsx(dm,{createStore:fm,children:y.jsx(Ay,{createStore:function(){return Oy(t)},children:y.jsx(ym,ie({},o))})})})};const xm=e=>{const[t,r]=f.useState(0),n=e.themeOverrides?nt.createTheme(Ss,e.themeOverrides):nt.createTheme(Ss),a=Y.Children.toArray(e.children).length>1,[i,o]=f.useState(e.initialValues),s=h=>{e.onChange&&e.onChange(h),o(h)},{onChange:c,...u}=e;return y.jsxs("div",{css:le.css`
140
140
  display: flex;
141
141
  flex-direction: row;
142
- `,children:[y.jsx(nt.ThemeProvider,{theme:n,children:y.jsx(Db,{children:y.jsx(It.Consumer,{children:({searchString:h,setSearchString:l})=>y.jsxs(Y.Fragment,{children:[e.showAppBar&&y.jsx(Sc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:d=>{h!==d&&(l(d),r(d?void 0:0))}}),y.jsxs("div",{id:"configr-pane",css:le.css`
142
+ `,children:[y.jsx(nt.ThemeProvider,{theme:n,children:y.jsx(jb,{children:y.jsx(It.Consumer,{children:({searchString:h,setSearchString:l})=>y.jsxs(Y.Fragment,{children:[e.showAppBar&&y.jsx(Sc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:d=>{h!==d&&(l(d),r(d?void 0:0))}}),y.jsxs("div",{id:"configr-pane",css:le.css`
143
143
  // no. Make client set the background color: background-color: #f8f9fa;
144
144
  height: 100%;
145
145
  display: flex;
@@ -155,14 +155,14 @@
155
155
  color: lightblue;
156
156
  font-size: 7px;
157
157
  }
158
- `,children:y.jsx(mm,{value:i})})]})},Sm=e=>{const t=f.useMemo(()=>Y.Children.map(e.children,r=>y.jsx(j.Tab,{label:r.props.label,css:le.css`
158
+ `,children:y.jsx(mm,{value:i})})]})},Sm=e=>{const t=f.useMemo(()=>Y.Children.map(e.children,r=>y.jsx(F.Tab,{label:r.props.label,css:le.css`
159
159
  font-weight: 500;
160
160
  align-items: start;
161
161
  text-transform: unset;
162
162
  color: black;
163
163
  font-weight: 500;
164
164
  font-size: 13px;
165
- `},r.props.label)),[e.children]);return y.jsx(It.Consumer,{children:({searchString:r,setSearchString:n})=>y.jsx(j.Tabs,{value:e.currentGroup===void 0?!1:e.currentGroup,onChange:(a,i)=>{r&&(console.log("clearing search from onchange from tab"),n("")),e.setCurrentGroupIndex(i)},centered:!1,orientation:"vertical",css:le.css`
165
+ `},r.props.label)),[e.children]);return y.jsx(It.Consumer,{children:({searchString:r,setSearchString:n})=>y.jsx(F.Tabs,{value:e.currentGroup===void 0?!1:e.currentGroup,onChange:(a,i)=>{r&&(console.log("clearing search from onchange from tab"),n("")),e.setCurrentGroupIndex(i)},centered:!1,orientation:"vertical",css:le.css`
166
166
  min-width: 150px;
167
167
  .MuiTabs-indicator {
168
168
  display: none;
@@ -175,9 +175,9 @@
175
175
  min-height: 0;
176
176
  padding-top: 0;
177
177
  }
178
- `,children:t})})};var Be={},Or={},wm=ct,Em=De,_m=Ze,Cm="[object String]";function $m(e){return typeof e=="string"||!Em(e)&&_m(e)&&wm(e)==Cm}var Tm=$m;function Om(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var Am=Om,Pm=Am,Mm=Pm(),Im=Mm;function Fm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var km=Fm,jm=ct,Dm=Ze,Nm="[object Arguments]";function Lm(e){return Dm(e)&&jm(e)==Nm}var Bm=Lm,qs=Bm,Hm=Ze,Rs=Object.prototype,Gm=Rs.hasOwnProperty,Vm=Rs.propertyIsEnumerable,Um=qs(function(){return arguments}())?qs:function(e){return Hm(e)&&Gm.call(e,"callee")&&!Vm.call(e,"callee")},Ys=Um,jt={},zm={get exports(){return jt},set exports(e){jt=e}};function Wm(){return!1}var Km=Wm;(function(e,t){var r=We,n=Km,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(zm,jt);var qm=9007199254740991,Rm=/^(?:0|[1-9]\d*)$/;function Ym(e,t){var r=typeof e;return t=t??qm,!!t&&(r=="number"||r!="symbol"&&Rm.test(e))&&e>-1&&e%1==0&&e<t}var Xs=Ym,Xm=9007199254740991;function Jm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xm}var Pa=Jm,Zm=ct,Qm=Pa,e1=Ze,t1="[object Arguments]",r1="[object Array]",n1="[object Boolean]",a1="[object Date]",i1="[object Error]",o1="[object Function]",s1="[object Map]",l1="[object Number]",u1="[object Object]",c1="[object RegExp]",f1="[object Set]",d1="[object String]",h1="[object WeakMap]",p1="[object ArrayBuffer]",v1="[object DataView]",g1="[object Float32Array]",b1="[object Float64Array]",y1="[object Int8Array]",m1="[object Int16Array]",x1="[object Int32Array]",S1="[object Uint8Array]",w1="[object Uint8ClampedArray]",E1="[object Uint16Array]",_1="[object Uint32Array]",de={};de[g1]=de[b1]=de[y1]=de[m1]=de[x1]=de[S1]=de[w1]=de[E1]=de[_1]=!0,de[t1]=de[r1]=de[p1]=de[n1]=de[v1]=de[a1]=de[i1]=de[o1]=de[s1]=de[l1]=de[u1]=de[c1]=de[f1]=de[d1]=de[h1]=!1;function C1(e){return e1(e)&&Qm(e.length)&&!!de[Zm(e)]}var $1=C1;function T1(e){return function(t){return e(t)}}var Ma=T1,Dt={},O1={get exports(){return Dt},set exports(e){Dt=e}};(function(e,t){var r=Fi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(O1,Dt);var A1=$1,P1=Ma,Js=Dt,Zs=Js&&Js.isTypedArray,M1=Zs?P1(Zs):A1,Qs=M1,I1=km,F1=Ys,k1=De,j1=jt,D1=Xs,N1=Qs,L1=Object.prototype,B1=L1.hasOwnProperty;function H1(e,t){var r=k1(e),n=!r&&F1(e),a=!r&&!n&&j1(e),i=!r&&!n&&!a&&N1(e),o=r||n||a||i,s=o?I1(e.length,String):[],c=s.length;for(var u in e)(t||B1.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||D1(u,c)))&&s.push(u);return s}var el=H1,G1=Object.prototype;function V1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||G1;return e===r}var Ia=V1;function U1(e,t){return function(r){return e(t(r))}}var tl=U1,z1=tl,W1=z1(Object.keys,Object),K1=W1,q1=Ia,R1=K1,Y1=Object.prototype,X1=Y1.hasOwnProperty;function J1(e){if(!q1(e))return R1(e);var t=[];for(var r in Object(e))X1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Z1=J1,Q1=Li,ex=Pa;function tx(e){return e!=null&&ex(e.length)&&!Q1(e)}var rn=tx,rx=el,nx=Z1,ax=rn;function ix(e){return ax(e)?rx(e):nx(e)}var Ar=ix,ox=Im,sx=Ar;function lx(e,t){return e&&ox(e,t,sx)}var rl=lx;function ux(e){return e}var nl=ux,cx=nl;function fx(e){return typeof e=="function"?e:cx}var dx=fx,hx=rl,px=dx;function vx(e,t){return e&&hx(e,px(t))}var Fa=vx,gx=tl,bx=gx(Object.getPrototypeOf,Object),ka=bx,yx=ct,mx=ka,xx=Ze,Sx="[object Object]",wx=Function.prototype,Ex=Object.prototype,al=wx.toString,_x=Ex.hasOwnProperty,Cx=al.call(Object);function $x(e){if(!xx(e)||yx(e)!=Sx)return!1;var t=mx(e);if(t===null)return!0;var r=_x.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&al.call(r)==Cx}var Tx=$x,Ox=Ur;function Ax(){this.__data__=new Ox,this.size=0}var Px=Ax;function Mx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ix=Mx;function Fx(e){return this.__data__.get(e)}var kx=Fx;function jx(e){return this.__data__.has(e)}var Dx=jx,Nx=Ur,Lx=En,Bx=_n,Hx=200;function Gx(e,t){var r=this.__data__;if(r instanceof Nx){var n=r.__data__;if(!Lx||n.length<Hx-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bx(n)}return r.set(e,t),this.size=r.size,this}var Vx=Gx,Ux=Ur,zx=Px,Wx=Ix,Kx=kx,qx=Dx,Rx=Vx;function Nt(e){var t=this.__data__=new Ux(e);this.size=t.size}Nt.prototype.clear=zx,Nt.prototype.delete=Wx,Nt.prototype.get=Kx,Nt.prototype.has=qx,Nt.prototype.set=Rx;var ja=Nt,Yx="__lodash_hash_undefined__";function Xx(e){return this.__data__.set(e,Yx),this}var Jx=Xx;function Zx(e){return this.__data__.has(e)}var Qx=Zx,eS=_n,tS=Jx,rS=Qx;function nn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new eS;++t<r;)this.add(e[t])}nn.prototype.add=nn.prototype.push=tS,nn.prototype.has=rS;var nS=nn;function aS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var iS=aS;function oS(e,t){return e.has(t)}var sS=oS,lS=nS,uS=iS,cS=sS,fS=1,dS=2;function hS(e,t,r,n,a,i){var o=r&fS,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&dS?new lS:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var m=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!uS(t,function(x,C){if(!cS(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var il=hS,pS=We,vS=pS.Uint8Array,ol=vS;function gS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var bS=gS;function yS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var mS=yS,sl=or,ll=ol,xS=wn,SS=il,wS=bS,ES=mS,_S=1,CS=2,$S="[object Boolean]",TS="[object Date]",OS="[object Error]",AS="[object Map]",PS="[object Number]",MS="[object RegExp]",IS="[object Set]",FS="[object String]",kS="[object Symbol]",jS="[object ArrayBuffer]",DS="[object DataView]",ul=sl?sl.prototype:void 0,Da=ul?ul.valueOf:void 0;function NS(e,t,r,n,a,i,o){switch(r){case DS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jS:return!(e.byteLength!=t.byteLength||!i(new ll(e),new ll(t)));case $S:case TS:case PS:return xS(+e,+t);case OS:return e.name==t.name&&e.message==t.message;case MS:case FS:return e==t+"";case AS:var s=wS;case IS:var c=n&_S;if(s||(s=ES),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=CS,o.set(e,t);var h=SS(s(e),s(t),n,a,i,o);return o.delete(e),h;case kS:if(Da)return Da.call(e)==Da.call(t)}return!1}var LS=NS;function BS(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var cl=BS,HS=cl,GS=De;function VS(e,t,r){var n=t(e);return GS(e)?n:HS(n,r(e))}var fl=VS;function US(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var zS=US;function WS(){return[]}var dl=WS,KS=zS,qS=dl,RS=Object.prototype,YS=RS.propertyIsEnumerable,hl=Object.getOwnPropertySymbols,XS=hl?function(e){return e==null?[]:(e=Object(e),KS(hl(e),function(t){return YS.call(e,t)}))}:qS,Na=XS,JS=fl,ZS=Na,QS=Ar;function ew(e){return JS(e,QS,ZS)}var pl=ew,vl=pl,tw=1,rw=Object.prototype,nw=rw.hasOwnProperty;function aw(e,t,r,n,a,i){var o=r&tw,s=vl(e),c=s.length,u=vl(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:nw.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var iw=aw,ow=ft,sw=We,lw=ow(sw,"DataView"),uw=lw,cw=ft,fw=We,dw=cw(fw,"Promise"),hw=dw,pw=ft,vw=We,gw=pw(vw,"Set"),bw=gw,yw=ft,mw=We,xw=yw(mw,"WeakMap"),Sw=xw,La=uw,Ba=En,Ha=hw,Ga=bw,Va=Sw,gl=ct,Lt=Hi,bl="[object Map]",ww="[object Object]",yl="[object Promise]",ml="[object Set]",xl="[object WeakMap]",Sl="[object DataView]",Ew=Lt(La),_w=Lt(Ba),Cw=Lt(Ha),$w=Lt(Ga),Tw=Lt(Va),St=gl;(La&&St(new La(new ArrayBuffer(1)))!=Sl||Ba&&St(new Ba)!=bl||Ha&&St(Ha.resolve())!=yl||Ga&&St(new Ga)!=ml||Va&&St(new Va)!=xl)&&(St=function(e){var t=gl(e),r=t==ww?e.constructor:void 0,n=r?Lt(r):"";if(n)switch(n){case Ew:return Sl;case _w:return bl;case Cw:return yl;case $w:return ml;case Tw:return xl}return t});var an=St,Ua=ja,Ow=il,Aw=LS,Pw=iw,wl=an,El=De,_l=jt,Mw=Qs,Iw=1,Cl="[object Arguments]",$l="[object Array]",on="[object Object]",Fw=Object.prototype,Tl=Fw.hasOwnProperty;function kw(e,t,r,n,a,i){var o=El(e),s=El(t),c=o?$l:wl(e),u=s?$l:wl(t);c=c==Cl?on:c,u=u==Cl?on:u;var h=c==on,l=u==on,d=c==u;if(d&&_l(e)){if(!_l(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ua),o||Mw(e)?Ow(e,t,r,n,a,i):Aw(e,t,c,r,n,a,i);if(!(r&Iw)){var p=h&&Tl.call(e,"__wrapped__"),v=l&&Tl.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return i||(i=new Ua),a(g,m,r,n,i)}}return d?(i||(i=new Ua),Pw(e,t,r,n,a,i)):!1}var jw=kw,Dw=jw,Ol=Ze;function Al(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ol(e)&&!Ol(t)?e!==e&&t!==t:Dw(e,t,r,n,Al,a)}var Pl=Al,Nw=ja,Lw=Pl,Bw=1,Hw=2;function Gw(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Nw;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?Lw(h,u,Bw|Hw,n,l):d))return!1}}return!0}var Vw=Gw,Uw=Ct;function zw(e){return e===e&&!Uw(e)}var Ml=zw,Ww=Ml,Kw=Ar;function qw(e){for(var t=Kw(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ww(a)]}return t}var Rw=qw;function Yw(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Il=Yw,Xw=Vw,Jw=Rw,Zw=Il;function Qw(e){var t=Jw(e);return t.length==1&&t[0][2]?Zw(t[0][0],t[0][1]):function(r){return r===e||Xw(r,e,t)}}var eE=Qw,tE=De,rE=Hr,nE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aE=/^\w*$/;function iE(e,t){if(tE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||rE(e)?!0:aE.test(e)||!nE.test(e)||t!=null&&e in Object(t)}var za=iE,oE=De,sE=za,lE=zi,uE=Yi;function cE(e,t){return oE(e)?e:sE(e,t)?[e]:lE(uE(e))}var Fl=cE,fE=Fl,dE=lr;function hE(e,t){t=fE(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dE(t[r++])];return r&&r==n?e:void 0}var kl=hE,pE=kl;function vE(e,t,r){var n=e==null?void 0:pE(e,t);return n===void 0?r:n}var gE=vE;function bE(e,t){return e!=null&&t in Object(e)}var yE=bE,mE=Fl,xE=Ys,SE=De,wE=Xs,EE=Pa,_E=lr;function CE(e,t,r){t=mE(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=_E(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&EE(a)&&wE(o,a)&&(SE(e)||xE(e)))}var $E=CE,TE=yE,OE=$E;function AE(e,t){return e!=null&&OE(e,t,TE)}var PE=AE,ME=Pl,IE=gE,FE=PE,kE=za,jE=Ml,DE=Il,NE=lr,LE=1,BE=2;function HE(e,t){return kE(e)&&jE(t)?DE(NE(e),t):function(r){var n=IE(r,e);return n===void 0&&n===t?FE(r,e):ME(t,n,LE|BE)}}var GE=HE;function VE(e){return function(t){return t==null?void 0:t[e]}}var UE=VE,zE=kl;function WE(e){return function(t){return zE(t,e)}}var KE=WE,qE=UE,RE=KE,YE=za,XE=lr;function JE(e){return YE(e)?qE(XE(e)):RE(e)}var ZE=JE,QE=eE,e_=GE,t_=nl,r_=De,n_=ZE;function a_(e){return typeof e=="function"?e:e==null?t_:typeof e=="object"?r_(e)?e_(e[0],e[1]):QE(e):n_(e)}var i_=a_,o_=rn;function s_(e,t){return function(r,n){if(r==null)return r;if(!o_(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var l_=s_,u_=rl,c_=l_,f_=c_(u_),d_=f_,h_=d_,p_=rn;function v_(e,t){var r=-1,n=p_(e)?Array(e.length):[];return h_(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var g_=v_,b_=xn,y_=i_,m_=g_,x_=De;function S_(e,t){var r=x_(e)?b_:m_;return r(e,y_(t))}var w_=S_;Object.defineProperty(Or,"__esModule",{value:!0}),Or.flattenNames=void 0;var E_=Tm,__=sn(E_),C_=Fa,$_=sn(C_),T_=Tx,O_=sn(T_),A_=w_,P_=sn(A_);function sn(e){return e&&e.__esModule?e:{default:e}}var M_=Or.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,P_.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,O_.default)(n)?(0,$_.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,__.default)(n)&&r.push(n)}),r};Or.default=M_;var Pr={};function I_(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var F_=I_,k_=ft,j_=function(){try{var e=k_(Object,"defineProperty");return e({},"",{}),e}catch{}}(),D_=j_,jl=D_;function N_(e,t,r){t=="__proto__"&&jl?jl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Dl=N_,L_=Dl,B_=wn,H_=Object.prototype,G_=H_.hasOwnProperty;function V_(e,t,r){var n=e[t];(!(G_.call(e,t)&&B_(n,r))||r===void 0&&!(t in e))&&L_(e,t,r)}var Nl=V_,U_=Nl,z_=Dl;function W_(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?z_(r,s,c):U_(r,s,c)}return r}var ln=W_,K_=ln,q_=Ar;function R_(e,t){return e&&K_(t,q_(t),e)}var Y_=R_;function X_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var J_=X_,Z_=Ct,Q_=Ia,eC=J_,tC=Object.prototype,rC=tC.hasOwnProperty;function nC(e){if(!Z_(e))return eC(e);var t=Q_(e),r=[];for(var n in e)n=="constructor"&&(t||!rC.call(e,n))||r.push(n);return r}var aC=nC,iC=el,oC=aC,sC=rn;function lC(e){return sC(e)?iC(e,!0):oC(e)}var Wa=lC,uC=ln,cC=Wa;function fC(e,t){return e&&uC(t,cC(t),e)}var dC=fC,un={},hC={get exports(){return un},set exports(e){un=e}};(function(e,t){var r=We,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,h){if(h)return u.slice();var l=u.length,d=s?s(l):new u.constructor(l);return u.copy(d),d}e.exports=c})(hC,un);var pC=ln,vC=Na;function gC(e,t){return pC(e,vC(e),t)}var bC=gC,yC=cl,mC=ka,xC=Na,SC=dl,wC=Object.getOwnPropertySymbols,EC=wC?function(e){for(var t=[];e;)yC(t,xC(e)),e=mC(e);return t}:SC,Ll=EC,_C=ln,CC=Ll;function $C(e,t){return _C(e,CC(e),t)}var TC=$C,OC=fl,AC=Ll,PC=Wa;function MC(e){return OC(e,PC,AC)}var IC=MC,FC=Object.prototype,kC=FC.hasOwnProperty;function jC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&kC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var DC=jC,Bl=ol;function NC(e){var t=new e.constructor(e.byteLength);return new Bl(t).set(new Bl(e)),t}var Ka=NC,LC=Ka;function BC(e,t){var r=t?LC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var HC=BC,GC=/\w*$/;function VC(e){var t=new e.constructor(e.source,GC.exec(e));return t.lastIndex=e.lastIndex,t}var UC=VC,Hl=or,Gl=Hl?Hl.prototype:void 0,Vl=Gl?Gl.valueOf:void 0;function zC(e){return Vl?Object(Vl.call(e)):{}}var WC=zC,KC=Ka;function qC(e,t){var r=t?KC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var RC=qC,YC=Ka,XC=HC,JC=UC,ZC=WC,QC=RC,e$="[object Boolean]",t$="[object Date]",r$="[object Map]",n$="[object Number]",a$="[object RegExp]",i$="[object Set]",o$="[object String]",s$="[object Symbol]",l$="[object ArrayBuffer]",u$="[object DataView]",c$="[object Float32Array]",f$="[object Float64Array]",d$="[object Int8Array]",h$="[object Int16Array]",p$="[object Int32Array]",v$="[object Uint8Array]",g$="[object Uint8ClampedArray]",b$="[object Uint16Array]",y$="[object Uint32Array]";function m$(e,t,r){var n=e.constructor;switch(t){case l$:return YC(e);case e$:case t$:return new n(+e);case u$:return XC(e,r);case c$:case f$:case d$:case h$:case p$:case v$:case g$:case b$:case y$:return QC(e,r);case r$:return new n;case n$:case o$:return new n(e);case a$:return JC(e);case i$:return new n;case s$:return ZC(e)}}var x$=m$,S$=Ct,Ul=Object.create,w$=function(){function e(){}return function(t){if(!S$(t))return{};if(Ul)return Ul(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),E$=w$,_$=E$,C$=ka,$$=Ia;function T$(e){return typeof e.constructor=="function"&&!$$(e)?_$(C$(e)):{}}var O$=T$,A$=an,P$=Ze,M$="[object Map]";function I$(e){return P$(e)&&A$(e)==M$}var F$=I$,k$=F$,j$=Ma,zl=Dt,Wl=zl&&zl.isMap,D$=Wl?j$(Wl):k$,N$=D$,L$=an,B$=Ze,H$="[object Set]";function G$(e){return B$(e)&&L$(e)==H$}var V$=G$,U$=V$,z$=Ma,Kl=Dt,ql=Kl&&Kl.isSet,W$=ql?z$(ql):U$,K$=W$,q$=ja,R$=F_,Y$=Nl,X$=Y_,J$=dC,Z$=un,Q$=Ii,eT=bC,tT=TC,rT=pl,nT=IC,aT=an,iT=DC,oT=x$,sT=O$,lT=De,uT=jt,cT=N$,fT=Ct,dT=K$,hT=Ar,pT=Wa,vT=1,gT=2,bT=4,Rl="[object Arguments]",yT="[object Array]",mT="[object Boolean]",xT="[object Date]",ST="[object Error]",Yl="[object Function]",wT="[object GeneratorFunction]",ET="[object Map]",_T="[object Number]",Xl="[object Object]",CT="[object RegExp]",$T="[object Set]",TT="[object String]",OT="[object Symbol]",AT="[object WeakMap]",PT="[object ArrayBuffer]",MT="[object DataView]",IT="[object Float32Array]",FT="[object Float64Array]",kT="[object Int8Array]",jT="[object Int16Array]",DT="[object Int32Array]",NT="[object Uint8Array]",LT="[object Uint8ClampedArray]",BT="[object Uint16Array]",HT="[object Uint32Array]",ce={};ce[Rl]=ce[yT]=ce[PT]=ce[MT]=ce[mT]=ce[xT]=ce[IT]=ce[FT]=ce[kT]=ce[jT]=ce[DT]=ce[ET]=ce[_T]=ce[Xl]=ce[CT]=ce[$T]=ce[TT]=ce[OT]=ce[NT]=ce[LT]=ce[BT]=ce[HT]=!0,ce[ST]=ce[Yl]=ce[AT]=!1;function cn(e,t,r,n,a,i){var o,s=t&vT,c=t&gT,u=t&bT;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!fT(e))return e;var h=lT(e);if(h){if(o=iT(e),!s)return Q$(e,o)}else{var l=aT(e),d=l==Yl||l==wT;if(uT(e))return Z$(e,s);if(l==Xl||l==Rl||d&&!a){if(o=c||d?{}:sT(e),!s)return c?tT(e,J$(o,e)):eT(e,X$(o,e))}else{if(!ce[l])return a?e:{};o=oT(e,l,s)}}i||(i=new q$);var p=i.get(e);if(p)return p;i.set(e,o),dT(e)?e.forEach(function(m){o.add(cn(m,t,r,m,e,i))}):cT(e)&&e.forEach(function(m,x){o.set(x,cn(m,t,r,x,e,i))});var v=u?c?nT:rT:c?pT:hT,g=h?void 0:v(e);return R$(g||e,function(m,x){g&&(x=m,m=e[x]),Y$(o,x,cn(m,t,r,x,e,i))}),o}var GT=cn,VT=GT,UT=1,zT=4;function WT(e){return VT(e,UT|zT)}var KT=WT;Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.mergeClasses=void 0;var qT=Fa,RT=Jl(qT),YT=KT,XT=Jl(YT),JT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Jl(e){return e&&e.__esModule?e:{default:e}}var ZT=Pr.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,XT.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,RT.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=JT({},n[s],i[s])}),a}),n};Pr.default=ZT;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.autoprefix=void 0;var QT=Fa,Zl=t2(QT),e2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function t2(e){return e&&e.__esModule?e:{default:e}}var r2={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},n2=Mr.autoprefix=function(t){var r={};return(0,Zl.default)(t,function(n,a){var i={};(0,Zl.default)(n,function(o,s){var c=r2[s];c?i=e2({},i,c(o)):i[s]=o}),r[a]=i}),r};Mr.default=n2;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.hover=void 0;var a2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i2=f,qa=o2(i2);function o2(e){return e&&e.__esModule?e:{default:e}}function s2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ql(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u2=Ir.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){l2(a,n);function a(){var i,o,s,c;s2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Ql(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return qa.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},qa.default.createElement(t,a2({},s.props,s.state)))},o),Ql(s,c)}return a}(qa.default.Component)};Ir.default=u2;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.active=void 0;var c2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f2=f,Ra=d2(f2);function d2(e){return e&&e.__esModule?e:{default:e}}function h2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function p2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v2=Fr.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){p2(a,n);function a(){var i,o,s,c;h2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=eu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Ra.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Ra.default.createElement(t,c2({},s.props,s.state)))},o),eu(s,c)}return a}(Ra.default.Component)};Fr.default=v2;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var g2=function(t,r){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&a("first-child"),t===r-1&&a("last-child"),(t===0||t%2===0)&&a("even"),Math.abs(t%2)===1&&a("odd"),a("nth-child",t),n};Ya.default=g2,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=Xa=Be.handleHover=Be.hover=void 0;var b2=Or,y2=Bt(b2),m2=Pr,x2=Bt(m2),S2=Mr,w2=Bt(S2),E2=Ir,tu=Bt(E2),_2=Fr,C2=Bt(_2),$2=Ya,T2=Bt($2);function Bt(e){return e&&e.__esModule?e:{default:e}}Be.hover=tu.default;var Xa=Be.handleHover=tu.default;Be.handleActive=C2.default,Be.loop=T2.default;var O2=Be.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=(0,y2.default)(n),o=(0,x2.default)(t,i);return(0,w2.default)(o)},z=Be.default=O2,A2=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,h=c-(i.getBoundingClientRect().left+window.pageXOffset),l=u-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(l<0?d=0:l>s?d=1:d=Math.round(l*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var p=void 0;if(h<0?p=0:h>o?p=1:p=Math.round(h*100/o)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},Ja={},P2=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},M2=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(Ja[i])return Ja[i];var o=P2(t,r,n,a);return Ja[i]=o,o},ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,c=t.children,u=z({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+M2(r,n,a,i.canvas)+") center left"}}});return f.isValidElement(c)?f.cloneElement(c,ru({},c.props,{style:ru({},c.props.style,u.grid)})):f.createElement("div",{style:u.grid})};Ht.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var I2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function k2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function j2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Za=function(e){j2(t,e);function t(){var r,n,a,i;k2(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=nu(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=A2(u,a.props.hsl,a.props.direction,a.props.a,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),nu(a,i)}return F2(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=z({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
178
+ `,children:t})})};var Be={},Or={},wm=ct,Em=je,_m=Ze,Cm="[object String]";function $m(e){return typeof e=="string"||!Em(e)&&_m(e)&&wm(e)==Cm}var Tm=$m;function Om(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var Am=Om,Pm=Am,Mm=Pm(),Im=Mm;function Fm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var km=Fm,Dm=ct,jm=Ze,Nm="[object Arguments]";function Lm(e){return jm(e)&&Dm(e)==Nm}var Bm=Lm,qs=Bm,Hm=Ze,Rs=Object.prototype,Gm=Rs.hasOwnProperty,Vm=Rs.propertyIsEnumerable,Um=qs(function(){return arguments}())?qs:function(e){return Hm(e)&&Gm.call(e,"callee")&&!Vm.call(e,"callee")},Ys=Um,Dt={},zm={get exports(){return Dt},set exports(e){Dt=e}};function Wm(){return!1}var Km=Wm;(function(e,t){var r=We,n=Km,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(zm,Dt);var qm=9007199254740991,Rm=/^(?:0|[1-9]\d*)$/;function Ym(e,t){var r=typeof e;return t=t??qm,!!t&&(r=="number"||r!="symbol"&&Rm.test(e))&&e>-1&&e%1==0&&e<t}var Xs=Ym,Xm=9007199254740991;function Jm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xm}var Pa=Jm,Zm=ct,Qm=Pa,e1=Ze,t1="[object Arguments]",r1="[object Array]",n1="[object Boolean]",a1="[object Date]",i1="[object Error]",o1="[object Function]",s1="[object Map]",l1="[object Number]",u1="[object Object]",c1="[object RegExp]",f1="[object Set]",d1="[object String]",h1="[object WeakMap]",p1="[object ArrayBuffer]",v1="[object DataView]",g1="[object Float32Array]",b1="[object Float64Array]",y1="[object Int8Array]",m1="[object Int16Array]",x1="[object Int32Array]",S1="[object Uint8Array]",w1="[object Uint8ClampedArray]",E1="[object Uint16Array]",_1="[object Uint32Array]",de={};de[g1]=de[b1]=de[y1]=de[m1]=de[x1]=de[S1]=de[w1]=de[E1]=de[_1]=!0,de[t1]=de[r1]=de[p1]=de[n1]=de[v1]=de[a1]=de[i1]=de[o1]=de[s1]=de[l1]=de[u1]=de[c1]=de[f1]=de[d1]=de[h1]=!1;function C1(e){return e1(e)&&Qm(e.length)&&!!de[Zm(e)]}var $1=C1;function T1(e){return function(t){return e(t)}}var Ma=T1,jt={},O1={get exports(){return jt},set exports(e){jt=e}};(function(e,t){var r=Fi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(O1,jt);var A1=$1,P1=Ma,Js=jt,Zs=Js&&Js.isTypedArray,M1=Zs?P1(Zs):A1,Qs=M1,I1=km,F1=Ys,k1=je,D1=Dt,j1=Xs,N1=Qs,L1=Object.prototype,B1=L1.hasOwnProperty;function H1(e,t){var r=k1(e),n=!r&&F1(e),a=!r&&!n&&D1(e),i=!r&&!n&&!a&&N1(e),o=r||n||a||i,s=o?I1(e.length,String):[],c=s.length;for(var u in e)(t||B1.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||j1(u,c)))&&s.push(u);return s}var el=H1,G1=Object.prototype;function V1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||G1;return e===r}var Ia=V1;function U1(e,t){return function(r){return e(t(r))}}var tl=U1,z1=tl,W1=z1(Object.keys,Object),K1=W1,q1=Ia,R1=K1,Y1=Object.prototype,X1=Y1.hasOwnProperty;function J1(e){if(!q1(e))return R1(e);var t=[];for(var r in Object(e))X1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Z1=J1,Q1=Li,ex=Pa;function tx(e){return e!=null&&ex(e.length)&&!Q1(e)}var rn=tx,rx=el,nx=Z1,ax=rn;function ix(e){return ax(e)?rx(e):nx(e)}var Ar=ix,ox=Im,sx=Ar;function lx(e,t){return e&&ox(e,t,sx)}var rl=lx;function ux(e){return e}var nl=ux,cx=nl;function fx(e){return typeof e=="function"?e:cx}var dx=fx,hx=rl,px=dx;function vx(e,t){return e&&hx(e,px(t))}var Fa=vx,gx=tl,bx=gx(Object.getPrototypeOf,Object),ka=bx,yx=ct,mx=ka,xx=Ze,Sx="[object Object]",wx=Function.prototype,Ex=Object.prototype,al=wx.toString,_x=Ex.hasOwnProperty,Cx=al.call(Object);function $x(e){if(!xx(e)||yx(e)!=Sx)return!1;var t=mx(e);if(t===null)return!0;var r=_x.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&al.call(r)==Cx}var Tx=$x,Ox=Ur;function Ax(){this.__data__=new Ox,this.size=0}var Px=Ax;function Mx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ix=Mx;function Fx(e){return this.__data__.get(e)}var kx=Fx;function Dx(e){return this.__data__.has(e)}var jx=Dx,Nx=Ur,Lx=En,Bx=_n,Hx=200;function Gx(e,t){var r=this.__data__;if(r instanceof Nx){var n=r.__data__;if(!Lx||n.length<Hx-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bx(n)}return r.set(e,t),this.size=r.size,this}var Vx=Gx,Ux=Ur,zx=Px,Wx=Ix,Kx=kx,qx=jx,Rx=Vx;function Nt(e){var t=this.__data__=new Ux(e);this.size=t.size}Nt.prototype.clear=zx,Nt.prototype.delete=Wx,Nt.prototype.get=Kx,Nt.prototype.has=qx,Nt.prototype.set=Rx;var Da=Nt,Yx="__lodash_hash_undefined__";function Xx(e){return this.__data__.set(e,Yx),this}var Jx=Xx;function Zx(e){return this.__data__.has(e)}var Qx=Zx,eS=_n,tS=Jx,rS=Qx;function nn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new eS;++t<r;)this.add(e[t])}nn.prototype.add=nn.prototype.push=tS,nn.prototype.has=rS;var nS=nn;function aS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var iS=aS;function oS(e,t){return e.has(t)}var sS=oS,lS=nS,uS=iS,cS=sS,fS=1,dS=2;function hS(e,t,r,n,a,i){var o=r&fS,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&dS?new lS:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var m=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!uS(t,function(x,C){if(!cS(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var il=hS,pS=We,vS=pS.Uint8Array,ol=vS;function gS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var bS=gS;function yS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var mS=yS,sl=or,ll=ol,xS=wn,SS=il,wS=bS,ES=mS,_S=1,CS=2,$S="[object Boolean]",TS="[object Date]",OS="[object Error]",AS="[object Map]",PS="[object Number]",MS="[object RegExp]",IS="[object Set]",FS="[object String]",kS="[object Symbol]",DS="[object ArrayBuffer]",jS="[object DataView]",ul=sl?sl.prototype:void 0,ja=ul?ul.valueOf:void 0;function NS(e,t,r,n,a,i,o){switch(r){case jS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case DS:return!(e.byteLength!=t.byteLength||!i(new ll(e),new ll(t)));case $S:case TS:case PS:return xS(+e,+t);case OS:return e.name==t.name&&e.message==t.message;case MS:case FS:return e==t+"";case AS:var s=wS;case IS:var c=n&_S;if(s||(s=ES),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=CS,o.set(e,t);var h=SS(s(e),s(t),n,a,i,o);return o.delete(e),h;case kS:if(ja)return ja.call(e)==ja.call(t)}return!1}var LS=NS;function BS(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var cl=BS,HS=cl,GS=je;function VS(e,t,r){var n=t(e);return GS(e)?n:HS(n,r(e))}var fl=VS;function US(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var zS=US;function WS(){return[]}var dl=WS,KS=zS,qS=dl,RS=Object.prototype,YS=RS.propertyIsEnumerable,hl=Object.getOwnPropertySymbols,XS=hl?function(e){return e==null?[]:(e=Object(e),KS(hl(e),function(t){return YS.call(e,t)}))}:qS,Na=XS,JS=fl,ZS=Na,QS=Ar;function ew(e){return JS(e,QS,ZS)}var pl=ew,vl=pl,tw=1,rw=Object.prototype,nw=rw.hasOwnProperty;function aw(e,t,r,n,a,i){var o=r&tw,s=vl(e),c=s.length,u=vl(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:nw.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var iw=aw,ow=ft,sw=We,lw=ow(sw,"DataView"),uw=lw,cw=ft,fw=We,dw=cw(fw,"Promise"),hw=dw,pw=ft,vw=We,gw=pw(vw,"Set"),bw=gw,yw=ft,mw=We,xw=yw(mw,"WeakMap"),Sw=xw,La=uw,Ba=En,Ha=hw,Ga=bw,Va=Sw,gl=ct,Lt=Hi,bl="[object Map]",ww="[object Object]",yl="[object Promise]",ml="[object Set]",xl="[object WeakMap]",Sl="[object DataView]",Ew=Lt(La),_w=Lt(Ba),Cw=Lt(Ha),$w=Lt(Ga),Tw=Lt(Va),St=gl;(La&&St(new La(new ArrayBuffer(1)))!=Sl||Ba&&St(new Ba)!=bl||Ha&&St(Ha.resolve())!=yl||Ga&&St(new Ga)!=ml||Va&&St(new Va)!=xl)&&(St=function(e){var t=gl(e),r=t==ww?e.constructor:void 0,n=r?Lt(r):"";if(n)switch(n){case Ew:return Sl;case _w:return bl;case Cw:return yl;case $w:return ml;case Tw:return xl}return t});var an=St,Ua=Da,Ow=il,Aw=LS,Pw=iw,wl=an,El=je,_l=Dt,Mw=Qs,Iw=1,Cl="[object Arguments]",$l="[object Array]",on="[object Object]",Fw=Object.prototype,Tl=Fw.hasOwnProperty;function kw(e,t,r,n,a,i){var o=El(e),s=El(t),c=o?$l:wl(e),u=s?$l:wl(t);c=c==Cl?on:c,u=u==Cl?on:u;var h=c==on,l=u==on,d=c==u;if(d&&_l(e)){if(!_l(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ua),o||Mw(e)?Ow(e,t,r,n,a,i):Aw(e,t,c,r,n,a,i);if(!(r&Iw)){var p=h&&Tl.call(e,"__wrapped__"),v=l&&Tl.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return i||(i=new Ua),a(g,m,r,n,i)}}return d?(i||(i=new Ua),Pw(e,t,r,n,a,i)):!1}var Dw=kw,jw=Dw,Ol=Ze;function Al(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ol(e)&&!Ol(t)?e!==e&&t!==t:jw(e,t,r,n,Al,a)}var Pl=Al,Nw=Da,Lw=Pl,Bw=1,Hw=2;function Gw(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Nw;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?Lw(h,u,Bw|Hw,n,l):d))return!1}}return!0}var Vw=Gw,Uw=Ct;function zw(e){return e===e&&!Uw(e)}var Ml=zw,Ww=Ml,Kw=Ar;function qw(e){for(var t=Kw(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ww(a)]}return t}var Rw=qw;function Yw(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Il=Yw,Xw=Vw,Jw=Rw,Zw=Il;function Qw(e){var t=Jw(e);return t.length==1&&t[0][2]?Zw(t[0][0],t[0][1]):function(r){return r===e||Xw(r,e,t)}}var eE=Qw,tE=je,rE=Hr,nE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aE=/^\w*$/;function iE(e,t){if(tE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||rE(e)?!0:aE.test(e)||!nE.test(e)||t!=null&&e in Object(t)}var za=iE,oE=je,sE=za,lE=zi,uE=Yi;function cE(e,t){return oE(e)?e:sE(e,t)?[e]:lE(uE(e))}var Fl=cE,fE=Fl,dE=lr;function hE(e,t){t=fE(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dE(t[r++])];return r&&r==n?e:void 0}var kl=hE,pE=kl;function vE(e,t,r){var n=e==null?void 0:pE(e,t);return n===void 0?r:n}var gE=vE;function bE(e,t){return e!=null&&t in Object(e)}var yE=bE,mE=Fl,xE=Ys,SE=je,wE=Xs,EE=Pa,_E=lr;function CE(e,t,r){t=mE(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=_E(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&EE(a)&&wE(o,a)&&(SE(e)||xE(e)))}var $E=CE,TE=yE,OE=$E;function AE(e,t){return e!=null&&OE(e,t,TE)}var PE=AE,ME=Pl,IE=gE,FE=PE,kE=za,DE=Ml,jE=Il,NE=lr,LE=1,BE=2;function HE(e,t){return kE(e)&&DE(t)?jE(NE(e),t):function(r){var n=IE(r,e);return n===void 0&&n===t?FE(r,e):ME(t,n,LE|BE)}}var GE=HE;function VE(e){return function(t){return t==null?void 0:t[e]}}var UE=VE,zE=kl;function WE(e){return function(t){return zE(t,e)}}var KE=WE,qE=UE,RE=KE,YE=za,XE=lr;function JE(e){return YE(e)?qE(XE(e)):RE(e)}var ZE=JE,QE=eE,e_=GE,t_=nl,r_=je,n_=ZE;function a_(e){return typeof e=="function"?e:e==null?t_:typeof e=="object"?r_(e)?e_(e[0],e[1]):QE(e):n_(e)}var i_=a_,o_=rn;function s_(e,t){return function(r,n){if(r==null)return r;if(!o_(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var l_=s_,u_=rl,c_=l_,f_=c_(u_),d_=f_,h_=d_,p_=rn;function v_(e,t){var r=-1,n=p_(e)?Array(e.length):[];return h_(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var g_=v_,b_=xn,y_=i_,m_=g_,x_=je;function S_(e,t){var r=x_(e)?b_:m_;return r(e,y_(t))}var w_=S_;Object.defineProperty(Or,"__esModule",{value:!0}),Or.flattenNames=void 0;var E_=Tm,__=sn(E_),C_=Fa,$_=sn(C_),T_=Tx,O_=sn(T_),A_=w_,P_=sn(A_);function sn(e){return e&&e.__esModule?e:{default:e}}var M_=Or.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,P_.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,O_.default)(n)?(0,$_.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,__.default)(n)&&r.push(n)}),r};Or.default=M_;var Pr={};function I_(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var F_=I_,k_=ft,D_=function(){try{var e=k_(Object,"defineProperty");return e({},"",{}),e}catch{}}(),j_=D_,Dl=j_;function N_(e,t,r){t=="__proto__"&&Dl?Dl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var jl=N_,L_=jl,B_=wn,H_=Object.prototype,G_=H_.hasOwnProperty;function V_(e,t,r){var n=e[t];(!(G_.call(e,t)&&B_(n,r))||r===void 0&&!(t in e))&&L_(e,t,r)}var Nl=V_,U_=Nl,z_=jl;function W_(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?z_(r,s,c):U_(r,s,c)}return r}var ln=W_,K_=ln,q_=Ar;function R_(e,t){return e&&K_(t,q_(t),e)}var Y_=R_;function X_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var J_=X_,Z_=Ct,Q_=Ia,eC=J_,tC=Object.prototype,rC=tC.hasOwnProperty;function nC(e){if(!Z_(e))return eC(e);var t=Q_(e),r=[];for(var n in e)n=="constructor"&&(t||!rC.call(e,n))||r.push(n);return r}var aC=nC,iC=el,oC=aC,sC=rn;function lC(e){return sC(e)?iC(e,!0):oC(e)}var Wa=lC,uC=ln,cC=Wa;function fC(e,t){return e&&uC(t,cC(t),e)}var dC=fC,un={},hC={get exports(){return un},set exports(e){un=e}};(function(e,t){var r=We,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,h){if(h)return u.slice();var l=u.length,d=s?s(l):new u.constructor(l);return u.copy(d),d}e.exports=c})(hC,un);var pC=ln,vC=Na;function gC(e,t){return pC(e,vC(e),t)}var bC=gC,yC=cl,mC=ka,xC=Na,SC=dl,wC=Object.getOwnPropertySymbols,EC=wC?function(e){for(var t=[];e;)yC(t,xC(e)),e=mC(e);return t}:SC,Ll=EC,_C=ln,CC=Ll;function $C(e,t){return _C(e,CC(e),t)}var TC=$C,OC=fl,AC=Ll,PC=Wa;function MC(e){return OC(e,PC,AC)}var IC=MC,FC=Object.prototype,kC=FC.hasOwnProperty;function DC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&kC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var jC=DC,Bl=ol;function NC(e){var t=new e.constructor(e.byteLength);return new Bl(t).set(new Bl(e)),t}var Ka=NC,LC=Ka;function BC(e,t){var r=t?LC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var HC=BC,GC=/\w*$/;function VC(e){var t=new e.constructor(e.source,GC.exec(e));return t.lastIndex=e.lastIndex,t}var UC=VC,Hl=or,Gl=Hl?Hl.prototype:void 0,Vl=Gl?Gl.valueOf:void 0;function zC(e){return Vl?Object(Vl.call(e)):{}}var WC=zC,KC=Ka;function qC(e,t){var r=t?KC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var RC=qC,YC=Ka,XC=HC,JC=UC,ZC=WC,QC=RC,e$="[object Boolean]",t$="[object Date]",r$="[object Map]",n$="[object Number]",a$="[object RegExp]",i$="[object Set]",o$="[object String]",s$="[object Symbol]",l$="[object ArrayBuffer]",u$="[object DataView]",c$="[object Float32Array]",f$="[object Float64Array]",d$="[object Int8Array]",h$="[object Int16Array]",p$="[object Int32Array]",v$="[object Uint8Array]",g$="[object Uint8ClampedArray]",b$="[object Uint16Array]",y$="[object Uint32Array]";function m$(e,t,r){var n=e.constructor;switch(t){case l$:return YC(e);case e$:case t$:return new n(+e);case u$:return XC(e,r);case c$:case f$:case d$:case h$:case p$:case v$:case g$:case b$:case y$:return QC(e,r);case r$:return new n;case n$:case o$:return new n(e);case a$:return JC(e);case i$:return new n;case s$:return ZC(e)}}var x$=m$,S$=Ct,Ul=Object.create,w$=function(){function e(){}return function(t){if(!S$(t))return{};if(Ul)return Ul(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),E$=w$,_$=E$,C$=ka,$$=Ia;function T$(e){return typeof e.constructor=="function"&&!$$(e)?_$(C$(e)):{}}var O$=T$,A$=an,P$=Ze,M$="[object Map]";function I$(e){return P$(e)&&A$(e)==M$}var F$=I$,k$=F$,D$=Ma,zl=jt,Wl=zl&&zl.isMap,j$=Wl?D$(Wl):k$,N$=j$,L$=an,B$=Ze,H$="[object Set]";function G$(e){return B$(e)&&L$(e)==H$}var V$=G$,U$=V$,z$=Ma,Kl=jt,ql=Kl&&Kl.isSet,W$=ql?z$(ql):U$,K$=W$,q$=Da,R$=F_,Y$=Nl,X$=Y_,J$=dC,Z$=un,Q$=Ii,eT=bC,tT=TC,rT=pl,nT=IC,aT=an,iT=jC,oT=x$,sT=O$,lT=je,uT=Dt,cT=N$,fT=Ct,dT=K$,hT=Ar,pT=Wa,vT=1,gT=2,bT=4,Rl="[object Arguments]",yT="[object Array]",mT="[object Boolean]",xT="[object Date]",ST="[object Error]",Yl="[object Function]",wT="[object GeneratorFunction]",ET="[object Map]",_T="[object Number]",Xl="[object Object]",CT="[object RegExp]",$T="[object Set]",TT="[object String]",OT="[object Symbol]",AT="[object WeakMap]",PT="[object ArrayBuffer]",MT="[object DataView]",IT="[object Float32Array]",FT="[object Float64Array]",kT="[object Int8Array]",DT="[object Int16Array]",jT="[object Int32Array]",NT="[object Uint8Array]",LT="[object Uint8ClampedArray]",BT="[object Uint16Array]",HT="[object Uint32Array]",ce={};ce[Rl]=ce[yT]=ce[PT]=ce[MT]=ce[mT]=ce[xT]=ce[IT]=ce[FT]=ce[kT]=ce[DT]=ce[jT]=ce[ET]=ce[_T]=ce[Xl]=ce[CT]=ce[$T]=ce[TT]=ce[OT]=ce[NT]=ce[LT]=ce[BT]=ce[HT]=!0,ce[ST]=ce[Yl]=ce[AT]=!1;function cn(e,t,r,n,a,i){var o,s=t&vT,c=t&gT,u=t&bT;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!fT(e))return e;var h=lT(e);if(h){if(o=iT(e),!s)return Q$(e,o)}else{var l=aT(e),d=l==Yl||l==wT;if(uT(e))return Z$(e,s);if(l==Xl||l==Rl||d&&!a){if(o=c||d?{}:sT(e),!s)return c?tT(e,J$(o,e)):eT(e,X$(o,e))}else{if(!ce[l])return a?e:{};o=oT(e,l,s)}}i||(i=new q$);var p=i.get(e);if(p)return p;i.set(e,o),dT(e)?e.forEach(function(m){o.add(cn(m,t,r,m,e,i))}):cT(e)&&e.forEach(function(m,x){o.set(x,cn(m,t,r,x,e,i))});var v=u?c?nT:rT:c?pT:hT,g=h?void 0:v(e);return R$(g||e,function(m,x){g&&(x=m,m=e[x]),Y$(o,x,cn(m,t,r,x,e,i))}),o}var GT=cn,VT=GT,UT=1,zT=4;function WT(e){return VT(e,UT|zT)}var KT=WT;Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.mergeClasses=void 0;var qT=Fa,RT=Jl(qT),YT=KT,XT=Jl(YT),JT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Jl(e){return e&&e.__esModule?e:{default:e}}var ZT=Pr.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,XT.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,RT.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=JT({},n[s],i[s])}),a}),n};Pr.default=ZT;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.autoprefix=void 0;var QT=Fa,Zl=t2(QT),e2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function t2(e){return e&&e.__esModule?e:{default:e}}var r2={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},n2=Mr.autoprefix=function(t){var r={};return(0,Zl.default)(t,function(n,a){var i={};(0,Zl.default)(n,function(o,s){var c=r2[s];c?i=e2({},i,c(o)):i[s]=o}),r[a]=i}),r};Mr.default=n2;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.hover=void 0;var a2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i2=f,qa=o2(i2);function o2(e){return e&&e.__esModule?e:{default:e}}function s2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ql(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u2=Ir.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){l2(a,n);function a(){var i,o,s,c;s2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Ql(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return qa.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},qa.default.createElement(t,a2({},s.props,s.state)))},o),Ql(s,c)}return a}(qa.default.Component)};Ir.default=u2;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.active=void 0;var c2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f2=f,Ra=d2(f2);function d2(e){return e&&e.__esModule?e:{default:e}}function h2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function p2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v2=Fr.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){p2(a,n);function a(){var i,o,s,c;h2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=eu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Ra.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Ra.default.createElement(t,c2({},s.props,s.state)))},o),eu(s,c)}return a}(Ra.default.Component)};Fr.default=v2;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var g2=function(t,r){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&a("first-child"),t===r-1&&a("last-child"),(t===0||t%2===0)&&a("even"),Math.abs(t%2)===1&&a("odd"),a("nth-child",t),n};Ya.default=g2,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=Xa=Be.handleHover=Be.hover=void 0;var b2=Or,y2=Bt(b2),m2=Pr,x2=Bt(m2),S2=Mr,w2=Bt(S2),E2=Ir,tu=Bt(E2),_2=Fr,C2=Bt(_2),$2=Ya,T2=Bt($2);function Bt(e){return e&&e.__esModule?e:{default:e}}Be.hover=tu.default;var Xa=Be.handleHover=tu.default;Be.handleActive=C2.default,Be.loop=T2.default;var O2=Be.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=(0,y2.default)(n),o=(0,x2.default)(t,i);return(0,w2.default)(o)},z=Be.default=O2,A2=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,h=c-(i.getBoundingClientRect().left+window.pageXOffset),l=u-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(l<0?d=0:l>s?d=1:d=Math.round(l*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var p=void 0;if(h<0?p=0:h>o?p=1:p=Math.round(h*100/o)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},Ja={},P2=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},M2=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(Ja[i])return Ja[i];var o=P2(t,r,n,a);return Ja[i]=o,o},ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,c=t.children,u=z({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+M2(r,n,a,i.canvas)+") center left"}}});return f.isValidElement(c)?f.cloneElement(c,ru({},c.props,{style:ru({},c.props.style,u.grid)})):f.createElement("div",{style:u.grid})};Ht.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var I2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function k2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function D2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Za=function(e){D2(t,e);function t(){var r,n,a,i;k2(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=nu(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=A2(u,a.props.hsl,a.props.direction,a.props.a,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),nu(a,i)}return F2(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=z({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
179
179
  rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
180
- rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:I2({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return f.createElement("div",{style:i.alpha},f.createElement("div",{style:i.checkboard},f.createElement(Ht,{renderers:this.props.renderers})),f.createElement("div",{style:i.gradient}),f.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("div",{style:i.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:i.slider}))))}}]),t}(f.PureComponent||f.Component),D2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function N2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function H2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var G2=1,au=38,V2=40,U2=[au,V2],z2=function(t){return U2.indexOf(t)>-1},W2=function(t){return Number(String(t).replace(/%/g,""))},K2=1,Z=function(e){H2(t,e);function t(r){L2(this,t);var n=B2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=W2(a.target.value);if(!isNaN(i)&&z2(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===au?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+K2++,n}return D2(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return N2({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||G2}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=z({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return f.createElement("div",{style:a.wrap},f.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?f.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(f.PureComponent||f.Component),q2=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(a.getBoundingClientRect().left+window.pageXOffset),h=c-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var l=void 0;if(h<0)l=359;else if(h>o)l=0;else{var d=-(h*100/o)+100;l=360*d/100}if(n.h!==l)return{h:l,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(u<0)p=0;else if(u>i)p=359;else{var v=u*100/i;p=360*v/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},R2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Y2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function X2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gt=function(e){X2(t,e);function t(){var r,n,a,i;Y2(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=iu(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=q2(u,a.props.direction,a.props.hsl,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),iu(a,i)}return R2(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=z({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return f.createElement("div",{style:o.hue},f.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("style",null,`
180
+ rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:I2({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return f.createElement("div",{style:i.alpha},f.createElement("div",{style:i.checkboard},f.createElement(Ht,{renderers:this.props.renderers})),f.createElement("div",{style:i.gradient}),f.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("div",{style:i.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:i.slider}))))}}]),t}(f.PureComponent||f.Component),j2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function N2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function H2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var G2=1,au=38,V2=40,U2=[au,V2],z2=function(t){return U2.indexOf(t)>-1},W2=function(t){return Number(String(t).replace(/%/g,""))},K2=1,Z=function(e){H2(t,e);function t(r){L2(this,t);var n=B2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=W2(a.target.value);if(!isNaN(i)&&z2(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===au?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+K2++,n}return j2(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return N2({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||G2}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=z({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return f.createElement("div",{style:a.wrap},f.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?f.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(f.PureComponent||f.Component),q2=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(a.getBoundingClientRect().left+window.pageXOffset),h=c-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var l=void 0;if(h<0)l=359;else if(h>o)l=0;else{var d=-(h*100/o)+100;l=360*d/100}if(n.h!==l)return{h:l,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(u<0)p=0;else if(u>i)p=359;else{var v=u*100/i;p=360*v/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},R2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Y2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function X2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gt=function(e){X2(t,e);function t(){var r,n,a,i;Y2(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=iu(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=q2(u,a.props.direction,a.props.hsl,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),iu(a,i)}return R2(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=z({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return f.createElement("div",{style:o.hue},f.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("style",null,`
181
181
  .hue-horizontal {
182
182
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
183
183
  33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -205,12 +205,12 @@
205
205
  *
206
206
  * This source code is licensed under the MIT license found in the
207
207
  * LICENSE file in the root directory of this source tree.
208
- */var lu;function Q2(){return lu||(lu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===m||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var $e=E.$$typeof;switch($e){case t:var ze=E.type;switch(ze){case c:case u:case n:case i:case a:case l:return ze;default:var _t=ze&&ze.$$typeof;switch(_t){case s:case h:case v:case p:case o:return _t;default:return $e}}case r:return $e}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!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.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function N(E){return S(E)===n}function L(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function K(E){return S(E)===i}function X(E){return S(E)===a}function we(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=k,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=he,ne.Memo=Se,ne.Portal=be,ne.Profiler=Ce,ne.StrictMode=se,ne.Suspense=me,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=N,ne.isLazy=L,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=K,ne.isStrictMode=X,ne.isSuspense=we,ne.isValidElementType=_,ne.typeOf=S}()),ne}var uu;function cu(){return uu||(uu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Z2():e.exports=Q2()}(J2)),fn}/*
208
+ */var lu;function Q2(){return lu||(lu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===m||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var $e=E.$$typeof;switch($e){case t:var ze=E.type;switch(ze){case c:case u:case n:case i:case a:case l:return ze;default:var _t=ze&&ze.$$typeof;switch(_t){case s:case h:case v:case p:case o:return _t;default:return $e}}case r:return $e}}}var b=c,T=u,D=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!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.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function N(E){return S(E)===n}function L(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function K(E){return S(E)===i}function X(E){return S(E)===a}function we(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=D,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=he,ne.Memo=Se,ne.Portal=be,ne.Profiler=Ce,ne.StrictMode=se,ne.Suspense=me,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=N,ne.isLazy=L,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=K,ne.isStrictMode=X,ne.isSuspense=we,ne.isValidElementType=_,ne.typeOf=S}()),ne}var uu;function cu(){return uu||(uu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Z2():e.exports=Q2()}(J2)),fn}/*
209
209
  object-assign
210
210
  (c) Sindre Sorhus
211
211
  @license MIT
212
- */var Qa,fu;function eO(){if(fu)return Qa;fu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(h){u[h]=h}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qa=a()?Object.assign:function(i,o){for(var s,c=n(i),u,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var l in s)t.call(s,l)&&(c[l]=s[l]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},Qa}var ei,du;function ti(){if(du)return ei;du=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ei=e,ei}var ri,hu;function pu(){return hu||(hu=1,ri=Function.call.bind(Object.prototype.hasOwnProperty)),ri}var ni,vu;function tO(){if(vu)return ni;vu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ti(),r={},n=pu();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var l;try{if(typeof i[h]!="function"){var d=Error((c||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}l=i[h](o,h,c,s,null,t)}catch(v){l=v}if(l&&!(l instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in r)){r[l.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+l.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ni=a,ni}var ai,gu;function rO(){if(gu)return ai;gu=1;var e=cu(),t=eO(),r=ti(),n=pu(),a=tO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return ai=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function l($){var A=$&&(u&&$[u]||$[h]);if(typeof A=="function")return A}var d="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:C(),arrayOf:_,element:S(),elementType:b(),instanceOf:T,node:ge(),objectOf:W,oneOf:k,oneOfType:q,shape:he,exact:Se};function v($,A){return $===A?$!==0||1/$===1/A:$!==$&&A!==A}function g($,A){this.message=$,this.data=A&&typeof A=="object"?A:{},this.stack=""}g.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(N,L,H,P,K,X,we){if(P=P||d,X=X||H,we!==r){if(c){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=P+":"+H;!A[$e]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[$e]=!0,U++)}}return L[H]==null?N?L[H]===null?new g("The "+K+" `"+X+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+K+" `"+X+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(L,H,P,K,X)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,N,L,H){var P=U[G],K=se(P);if(K!==$){var X=me(P);return new g("Invalid "+N+" `"+L+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(A)}function C(){return m(o)}function _($){function A(U,G,M,N,L){if(typeof $!="function")return new g("Property `"+L+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var P=se(H);return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var K=0;K<H.length;K++){var X=$(H,K,M,N,L+"["+K+"]",r);if(X instanceof Error)return X}return null}return m(A)}function S(){function $(A,U,G,M,N){var L=A[U];if(!s(L)){var H=se(L);return new g("Invalid "+M+" `"+N+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return m($)}function b(){function $(A,U,G,M,N){var L=A[U];if(!e.isValidElementType(L)){var H=se(L);return new g("Invalid "+M+" `"+N+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return m($)}function T($){function A(U,G,M,N,L){if(!(U[G]instanceof $)){var H=$.name||d,P=Ae(U[G]);return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return m(A)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function A(U,G,M,N,L){for(var H=U[G],P=0;P<$.length;P++)if(v(H,$[P]))return null;var K=JSON.stringify($,function(we,E){var $e=me(E);return $e==="symbol"?String(E):E});return new g("Invalid "+N+" `"+L+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+K+"."))}return m(A)}function W($){function A(U,G,M,N,L){if(typeof $!="function")return new g("Property `"+L+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var K in H)if(n(H,K)){var X=$(H,K,M,N,L+"."+K,r);if(X instanceof Error)return X}return null}return m(A)}function q($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var A=0;A<$.length;A++){var U=$[A];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(U)+" at index "+A+"."),o}function G(M,N,L,H,P){for(var K=[],X=0;X<$.length;X++){var we=$[X],E=we(M,N,L,H,P,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&K.push(E.data.expectedType)}var $e=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new g("Invalid "+H+" `"+P+"` supplied to "+("`"+L+"`"+$e+"."))}return m(G)}function ge(){function $(A,U,G,M,N){return be(A[U])?null:new g("Invalid "+M+" `"+N+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return m($)}function ae($,A,U,G,M){return new g(($||"React class")+": "+A+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function he($){function A(U,G,M,N,L){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var K in $){var X=$[K];if(typeof X!="function")return ae(M,N,L,K,me(X));var we=X(H,K,M,N,L+"."+K,r);if(we)return we}return null}return m(A)}function Se($){function A(U,G,M,N,L){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var K=t({},U[G],$);for(var X in K){var we=$[X];if(n($,X)&&typeof we!="function")return ae(M,N,L,X,me(we));if(!we)return new g("Invalid "+N+" `"+L+"` key `"+X+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
213
- Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,X,M,N,L+"."+X,r);if(E)return E}return null}return m(A)}function be($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(be);if($===null||s($))return!0;var A=l($);if(A){var U=A.call($),G;if(A!==$.entries){for(;!(G=U.next()).done;)if(!be(G.value))return!1}else for(;!(G=U.next()).done;){var M=G.value;if(M&&!be(M[1]))return!1}}else return!1;return!0;default:return!1}}function Ce($,A){return $==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function se($){var A=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":Ce(A,$)?"symbol":A}function me($){if(typeof $>"u"||$===null)return""+$;var A=se($);if(A==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return A}function Oe($){var A=me($);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function Ae($){return!$.constructor||!$.constructor.name?d:$.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ai}var ii,bu;function nO(){if(bu)return ii;bu=1;var e=ti();function t(){}function r(){}return r.resetWarningCache=t,ii=function(){function n(o,s,c,u,h,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ii}if(process.env.NODE_ENV!=="production"){var aO=cu(),iO=!0;ou.exports=rO()(aO.isElement,iO)}else ou.exports=nO()();function oi(e,t,r){(r!==void 0&&!fr(e[t],r)||r===void 0&&!(t in e))&&In(e,t,r)}function oO(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var sO=oO();const yu=sO;function lO(e){return qe(e)&&Pt(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function uO(e){return pr(e,yr(e))}function cO(e,t,r,n,a,i,o){var s=si(e,r),c=si(t,r),u=o.get(c);if(u){oi(e,r,u);return}var h=i?i(s,c,r+"",e,t,o):void 0,l=h===void 0;if(l){var d=Te(c),p=!d&&vr(c),v=!d&&!p&&Nn(c);h=c,d||p||v?Te(s)?h=s:lO(s)?h=Bn(s):p?(l=!1,h=mo(c,!0)):v?(l=!1,h=Io(c,!0)):h=[]:An(c)||Yr(c)?(h=s,Yr(s)?h=uO(s):(!ke(s)||Pn(s))&&(h=ko(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),oi(e,r,h)}function mu(e,t,r,n,a){e!==t&&yu(t,function(i,o){if(a||(a=new Ge),ke(i))cO(e,t,o,r,mu,n,a);else{var s=n?n(si(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),oi(e,o,s)}},yr)}function dn(e){return e}function fO(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var xu=Math.max;function dO(e,t,r){return t=xu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=xu(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),fO(e,this,s)}}function hO(e){return function(){return e}}var pO=Rr?function(e,t){return Rr(e,"toString",{configurable:!0,enumerable:!1,value:hO(t),writable:!0})}:dn;const vO=pO;var gO=800,bO=16,yO=Date.now;function mO(e){var t=0,r=0;return function(){var n=yO(),a=bO-(n-r);if(r=n,a>0){if(++t>=gO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xO=mO(vO);const SO=xO;function wO(e,t){return SO(dO(e,t,dn),e+"")}function EO(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?Pt(r)&&Fn(t,r.length):n=="string"&&t in r)?fr(r[t],e):!1}function _O(e){return wO(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&EO(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var CO=_O(function(e,t,r){mu(e,t,r)});const Ie=CO;var kr=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,c=z(Ie({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return f.createElement("div",{style:c.wrap},f.createElement("div",{style:c.bg}),f.createElement("div",{style:c.content},i))};kr.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},kr.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var $O=function(){return He.Date.now()};const li=$O;var TO=/\s/;function OO(e){for(var t=e.length;t--&&TO.test(e.charAt(t)););return t}var AO=/^\s+/;function PO(e){return e&&e.slice(0,OO(e)+1).replace(AO,"")}var Su=0/0,MO=/^[-+]0x[0-9a-f]+$/i,IO=/^0b[01]+$/i,FO=/^0o[0-7]+$/i,kO=parseInt;function wu(e){if(typeof e=="number")return e;if(Sr(e))return Su;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PO(e);var r=IO.test(e);return r||FO.test(e)?kO(e.slice(2),r?2:8):MO.test(e)?Su:+e}var jO="Expected a function",DO=Math.max,NO=Math.min;function Eu(e,t,r){var n,a,i,o,s,c,u=0,h=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(jO);t=wu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?DO(wu(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function p(T){var k=n,W=a;return n=a=void 0,u=T,o=e.apply(W,k),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var k=T-c,W=T-u,q=t-k;return l?NO(q,i-W):q}function m(T){var k=T-c,W=T-u;return c===void 0||k>=t||k<0||l&&W>=i}function x(){var T=li();if(m(T))return C(T);s=setTimeout(x,g(T))}function C(T){return s=void 0,d&&n?p(T):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=c=a=s=void 0}function S(){return s===void 0?o:C(li())}function b(){var T=li(),k=m(T);if(n=arguments,a=this,c=T,k){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=_,b.flush=S,b}var LO="Expected a function";function BO(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(LO);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Eu(e,t,{leading:n,maxWait:t,trailing:a})}var HO=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(n.getBoundingClientRect().left+window.pageXOffset),h=c-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),h<0?h=0:h>o&&(h=o);var l=u/i,d=1-h/o;return{h:r.h,s:l,v:d,a:r.a,source:"hsv"}},GO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function VO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var hn=function(e){zO(t,e);function t(r){VO(this,t);var n=UO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,HO(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=BO(function(a,i,o){a(i,o)},50),n}return GO(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,c=a.pointer,u=a.circle,h=z({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
212
+ */var Qa,fu;function eO(){if(fu)return Qa;fu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(h){u[h]=h}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qa=a()?Object.assign:function(i,o){for(var s,c=n(i),u,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var l in s)t.call(s,l)&&(c[l]=s[l]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},Qa}var ei,du;function ti(){if(du)return ei;du=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ei=e,ei}var ri,hu;function pu(){return hu||(hu=1,ri=Function.call.bind(Object.prototype.hasOwnProperty)),ri}var ni,vu;function tO(){if(vu)return ni;vu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ti(),r={},n=pu();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var l;try{if(typeof i[h]!="function"){var d=Error((c||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}l=i[h](o,h,c,s,null,t)}catch(v){l=v}if(l&&!(l instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in r)){r[l.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+l.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ni=a,ni}var ai,gu;function rO(){if(gu)return ai;gu=1;var e=cu(),t=eO(),r=ti(),n=pu(),a=tO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return ai=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function l($){var A=$&&(u&&$[u]||$[h]);if(typeof A=="function")return A}var d="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:C(),arrayOf:_,element:S(),elementType:b(),instanceOf:T,node:ge(),objectOf:W,oneOf:D,oneOfType:q,shape:he,exact:Se};function v($,A){return $===A?$!==0||1/$===1/A:$!==$&&A!==A}function g($,A){this.message=$,this.data=A&&typeof A=="object"?A:{},this.stack=""}g.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(N,L,H,P,K,X,we){if(P=P||d,X=X||H,we!==r){if(c){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=P+":"+H;!A[$e]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[$e]=!0,U++)}}return L[H]==null?N?L[H]===null?new g("The "+K+" `"+X+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+K+" `"+X+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(L,H,P,K,X)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,N,L,H){var P=U[G],K=se(P);if(K!==$){var X=me(P);return new g("Invalid "+N+" `"+L+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(A)}function C(){return m(o)}function _($){function A(U,G,M,N,L){if(typeof $!="function")return new g("Property `"+L+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var P=se(H);return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var K=0;K<H.length;K++){var X=$(H,K,M,N,L+"["+K+"]",r);if(X instanceof Error)return X}return null}return m(A)}function S(){function $(A,U,G,M,N){var L=A[U];if(!s(L)){var H=se(L);return new g("Invalid "+M+" `"+N+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return m($)}function b(){function $(A,U,G,M,N){var L=A[U];if(!e.isValidElementType(L)){var H=se(L);return new g("Invalid "+M+" `"+N+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return m($)}function T($){function A(U,G,M,N,L){if(!(U[G]instanceof $)){var H=$.name||d,P=Ae(U[G]);return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return m(A)}function D($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function A(U,G,M,N,L){for(var H=U[G],P=0;P<$.length;P++)if(v(H,$[P]))return null;var K=JSON.stringify($,function(we,E){var $e=me(E);return $e==="symbol"?String(E):E});return new g("Invalid "+N+" `"+L+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+K+"."))}return m(A)}function W($){function A(U,G,M,N,L){if(typeof $!="function")return new g("Property `"+L+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var K in H)if(n(H,K)){var X=$(H,K,M,N,L+"."+K,r);if(X instanceof Error)return X}return null}return m(A)}function q($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var A=0;A<$.length;A++){var U=$[A];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(U)+" at index "+A+"."),o}function G(M,N,L,H,P){for(var K=[],X=0;X<$.length;X++){var we=$[X],E=we(M,N,L,H,P,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&K.push(E.data.expectedType)}var $e=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new g("Invalid "+H+" `"+P+"` supplied to "+("`"+L+"`"+$e+"."))}return m(G)}function ge(){function $(A,U,G,M,N){return be(A[U])?null:new g("Invalid "+M+" `"+N+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return m($)}function ae($,A,U,G,M){return new g(($||"React class")+": "+A+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function he($){function A(U,G,M,N,L){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var K in $){var X=$[K];if(typeof X!="function")return ae(M,N,L,K,me(X));var we=X(H,K,M,N,L+"."+K,r);if(we)return we}return null}return m(A)}function Se($){function A(U,G,M,N,L){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+N+" `"+L+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var K=t({},U[G],$);for(var X in K){var we=$[X];if(n($,X)&&typeof we!="function")return ae(M,N,L,X,me(we));if(!we)return new g("Invalid "+N+" `"+L+"` key `"+X+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
213
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,X,M,N,L+"."+X,r);if(E)return E}return null}return m(A)}function be($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(be);if($===null||s($))return!0;var A=l($);if(A){var U=A.call($),G;if(A!==$.entries){for(;!(G=U.next()).done;)if(!be(G.value))return!1}else for(;!(G=U.next()).done;){var M=G.value;if(M&&!be(M[1]))return!1}}else return!1;return!0;default:return!1}}function Ce($,A){return $==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function se($){var A=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":Ce(A,$)?"symbol":A}function me($){if(typeof $>"u"||$===null)return""+$;var A=se($);if(A==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return A}function Oe($){var A=me($);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function Ae($){return!$.constructor||!$.constructor.name?d:$.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ai}var ii,bu;function nO(){if(bu)return ii;bu=1;var e=ti();function t(){}function r(){}return r.resetWarningCache=t,ii=function(){function n(o,s,c,u,h,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ii}if(process.env.NODE_ENV!=="production"){var aO=cu(),iO=!0;ou.exports=rO()(aO.isElement,iO)}else ou.exports=nO()();function oi(e,t,r){(r!==void 0&&!fr(e[t],r)||r===void 0&&!(t in e))&&In(e,t,r)}function oO(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var sO=oO();const yu=sO;function lO(e){return qe(e)&&Pt(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function uO(e){return pr(e,yr(e))}function cO(e,t,r,n,a,i,o){var s=si(e,r),c=si(t,r),u=o.get(c);if(u){oi(e,r,u);return}var h=i?i(s,c,r+"",e,t,o):void 0,l=h===void 0;if(l){var d=Te(c),p=!d&&vr(c),v=!d&&!p&&Nn(c);h=c,d||p||v?Te(s)?h=s:lO(s)?h=Bn(s):p?(l=!1,h=mo(c,!0)):v?(l=!1,h=Io(c,!0)):h=[]:An(c)||Yr(c)?(h=s,Yr(s)?h=uO(s):(!ke(s)||Pn(s))&&(h=ko(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),oi(e,r,h)}function mu(e,t,r,n,a){e!==t&&yu(t,function(i,o){if(a||(a=new Ge),ke(i))cO(e,t,o,r,mu,n,a);else{var s=n?n(si(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),oi(e,o,s)}},yr)}function dn(e){return e}function fO(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var xu=Math.max;function dO(e,t,r){return t=xu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=xu(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),fO(e,this,s)}}function hO(e){return function(){return e}}var pO=Rr?function(e,t){return Rr(e,"toString",{configurable:!0,enumerable:!1,value:hO(t),writable:!0})}:dn;const vO=pO;var gO=800,bO=16,yO=Date.now;function mO(e){var t=0,r=0;return function(){var n=yO(),a=bO-(n-r);if(r=n,a>0){if(++t>=gO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xO=mO(vO);const SO=xO;function wO(e,t){return SO(dO(e,t,dn),e+"")}function EO(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?Pt(r)&&Fn(t,r.length):n=="string"&&t in r)?fr(r[t],e):!1}function _O(e){return wO(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&EO(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var CO=_O(function(e,t,r){mu(e,t,r)});const Ie=CO;var kr=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,c=z(Ie({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return f.createElement("div",{style:c.wrap},f.createElement("div",{style:c.bg}),f.createElement("div",{style:c.content},i))};kr.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},kr.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var $O=function(){return He.Date.now()};const li=$O;var TO=/\s/;function OO(e){for(var t=e.length;t--&&TO.test(e.charAt(t)););return t}var AO=/^\s+/;function PO(e){return e&&e.slice(0,OO(e)+1).replace(AO,"")}var Su=0/0,MO=/^[-+]0x[0-9a-f]+$/i,IO=/^0b[01]+$/i,FO=/^0o[0-7]+$/i,kO=parseInt;function wu(e){if(typeof e=="number")return e;if(Sr(e))return Su;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PO(e);var r=IO.test(e);return r||FO.test(e)?kO(e.slice(2),r?2:8):MO.test(e)?Su:+e}var DO="Expected a function",jO=Math.max,NO=Math.min;function Eu(e,t,r){var n,a,i,o,s,c,u=0,h=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(DO);t=wu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?jO(wu(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function p(T){var D=n,W=a;return n=a=void 0,u=T,o=e.apply(W,D),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var D=T-c,W=T-u,q=t-D;return l?NO(q,i-W):q}function m(T){var D=T-c,W=T-u;return c===void 0||D>=t||D<0||l&&W>=i}function x(){var T=li();if(m(T))return C(T);s=setTimeout(x,g(T))}function C(T){return s=void 0,d&&n?p(T):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=c=a=s=void 0}function S(){return s===void 0?o:C(li())}function b(){var T=li(),D=m(T);if(n=arguments,a=this,c=T,D){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=_,b.flush=S,b}var LO="Expected a function";function BO(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(LO);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Eu(e,t,{leading:n,maxWait:t,trailing:a})}var HO=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(n.getBoundingClientRect().left+window.pageXOffset),h=c-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),h<0?h=0:h>o&&(h=o);var l=u/i,d=1-h/o;return{h:r.h,s:l,v:d,a:r.a,source:"hsv"}},GO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function VO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var hn=function(e){zO(t,e);function t(r){VO(this,t);var n=UO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,HO(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=BO(function(a,i,o){a(i,o)},50),n}return GO(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,c=a.pointer,u=a.circle,h=z({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
214
214
  0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:s,pointer:c,circle:u}},{custom:!!this.props.style});return f.createElement("div",{style:h.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("style",null,`
215
215
  .saturation-white {
216
216
  background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -220,7 +220,7 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,X,M,N,L+"."+X
220
220
  background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
221
221
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
222
222
  }
223
- `),f.createElement("div",{style:h.white,className:"saturation-white"},f.createElement("div",{style:h.black,className:"saturation-black"}),f.createElement("div",{style:h.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:h.circle}))))}}]),t}(f.PureComponent||f.Component);function WO(e,t){return e&&yu(e,t,br)}function KO(e,t){return function(r,n){if(r==null)return r;if(!Pt(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var qO=KO(WO);const _u=qO;function RO(e){return typeof e=="function"?e:dn}function YO(e,t){var r=Te(e)?ao:_u;return r(e,RO(t))}function pn(e){return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}var XO=/^\s+/,JO=/\s+$/;function F(e,t){if(e=e||"",t=t||{},e instanceof F)return e;if(!(this instanceof F))return new F(e,t);var r=ZO(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}F.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=Pu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=$u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=$u(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=Cu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Cu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return Tu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rA(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pA[Tu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Ou(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=F(t);n="#"+Ou(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(oA,arguments)},brighten:function(){return this._applyModification(sA,arguments)},darken:function(){return this._applyModification(lA,arguments)},desaturate:function(){return this._applyModification(nA,arguments)},saturate:function(){return this._applyModification(aA,arguments)},greyscale:function(){return this._applyModification(iA,arguments)},spin:function(){return this._applyModification(uA,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dA,arguments)},complement:function(){return this._applyCombination(cA,arguments)},monochromatic:function(){return this._applyCombination(hA,arguments)},splitcomplement:function(){return this._applyCombination(fA,arguments)},triad:function(){return this._applyCombination(Au,[3])},tetrad:function(){return this._applyCombination(Au,[4])}},F.fromRatio=function(e,t){if(pn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=jr(e[n]));e=r}return F(e,t)};function ZO(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=yA(e)),pn(e)=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(t=QO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rt(e.h)&&rt(e.s)&&rt(e.v)?(n=jr(e.s),a=jr(e.v),t=tA(e.h,n,a),o=!0,s="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(n=jr(e.s),i=jr(e.l),t=eA(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Pu(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function QO(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function Cu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function eA(e,t,r){var n,a,i;e=ve(e,360),t=ve(t,100),r=ve(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function $u(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function tA(e,t,r){e=ve(e,360)*6,t=ve(t,100),r=ve(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function Tu(e,t,r,n){var a=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function rA(e,t,r,n,a){var i=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16)),Ve(Mu(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Ou(e,t,r,n){var a=[Ve(Mu(n)),Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return a.join("")}F.equals=function(e,t){return!e||!t?!1:F(e).toRgbString()==F(t).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s-=t/100,r.s=vn(r.s),F(r)}function aA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s+=t/100,r.s=vn(r.s),F(r)}function iA(e){return F(e).desaturate(100)}function oA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l+=t/100,r.l=vn(r.l),F(r)}function sA(e,t){t=t===0?0:t||10;var r=F(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),F(r)}function lA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l-=t/100,r.l=vn(r.l),F(r)}function uA(e,t){var r=F(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,F(r)}function cA(e){var t=F(e).toHsl();return t.h=(t.h+180)%360,F(t)}function Au(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=F(e).toHsl(),n=[F(e)],a=360/t,i=1;i<t;i++)n.push(F({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function fA(e){var t=F(e).toHsl(),r=t.h;return[F(e),F({h:(r+72)%360,s:t.s,l:t.l}),F({h:(r+216)%360,s:t.s,l:t.l})]}function dA(e,t,r){t=t||6,r=r||30;var n=F(e).toHsl(),a=360/r,i=[F(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(F(n));return i}function hA(e,t){t=t||6;for(var r=F(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(F({h:n,s:a,v:i})),i=(i+s)%1;return o}F.mix=function(e,t,r){r=r===0?0:r||50;var n=F(e).toRgb(),a=F(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return F(o)},F.readability=function(e,t){var r=F(e),n=F(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(e,t,r){var n=F.readability(e,t),a,i;switch(i=!1,a=mA(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},F.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=F.readability(e,t[u]),i>a&&(a=i,n=F(t[u]));return F.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,F.mostReadable(e,["#fff","#000"],r))};var ui=F.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pA=F.hexNames=vA(ui);function vA(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Pu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){gA(e)&&(e="100%");var r=bA(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function gA(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function bA(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ve(e){return e.length==1?"0"+e:""+e}function jr(e){return e<=1&&(e=e*100+"%"),e}function Mu(e){return Math.round(parseFloat(e)*255).toString(16)}function Iu(e){return je(e)/255}var Ue=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function rt(e){return!!Ue.CSS_UNIT.exec(e)}function yA(e){e=e.replace(XO,"").replace(JO,"").toLowerCase();var t=!1;if(ui[e])e=ui[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ue.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ue.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ue.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ue.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ue.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ue.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ue.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:Iu(r[4]),format:t?"name":"hex8"}:(r=Ue.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=Ue.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:Iu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ue.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function mA(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Fu=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return YO(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},Dr=function(t,r){var n=t.hex?F(t.hex):F(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},ut=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&F(t).isValid()},ci=function(t){if(!t)return"#fff";var r=Dr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fi=function(t,r){var n=t.replace("°","");return F(r+" ("+n+")")._ok},Nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function SA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){EA(a,n);function a(i){SA(this,a);var o=wA(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Fu(s);if(u){var h=Dr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Fu(s);if(u){var h=Dr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=Nr({},Dr(i.color,0)),o.debounce=Eu(function(s,c,u){s(c,u)},100),o}return xA(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),f.createElement(t,Nr({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Nr({},Dr(o.color,s.oldHue))}}]),a}(f.PureComponent||f.Component);return r.propTypes=Nr({},t.propTypes),r.defaultProps=Nr({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},_A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function $A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ku(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var OA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){TA(a,n);function a(){var i,o,s,c;$A(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=ku(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),ku(s,c)}return CA(a,[{key:"render",value:function(){return f.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},f.createElement(t,_A({},this.props,this.state)))}}]),a}(f.Component)},ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AA=13,PA=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,d=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:ju({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?d:{})}}),g=function(S){return i(r,S)},m=function(S){return S.keyCode===AA&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),f.createElement("div",ju({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:m},C),u,p&&f.createElement(Ht,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const wt=OA(PA);var MA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},IA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Du=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,d=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return f.createElement("div",{style:p.picker,className:"alpha-picker "+d},f.createElement(Za,IA({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};Du.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:MA},Fe(Du);var FA="__lodash_hash_undefined__";function kA(e){return this.__data__.set(e,FA),this}function jA(e){return this.__data__.has(e)}function gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new et;++t<r;)this.add(e[t])}gn.prototype.add=gn.prototype.push=kA,gn.prototype.has=jA;function DA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function NA(e,t){return e.has(t)}var LA=1,BA=2;function Nu(e,t,r,n,a,i){var o=r&LA,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&BA?new gn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var m=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!DA(t,function(x,C){if(!NA(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function HA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function GA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VA=1,UA=2,zA="[object Boolean]",WA="[object Date]",KA="[object Error]",qA="[object Map]",RA="[object Number]",YA="[object RegExp]",XA="[object Set]",JA="[object String]",ZA="[object Symbol]",QA="[object ArrayBuffer]",e5="[object DataView]",Lu=Ke?Ke.prototype:void 0,di=Lu?Lu.valueOf:void 0;function t5(e,t,r,n,a,i,o){switch(r){case e5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QA:return!(e.byteLength!=t.byteLength||!i(new Xr(e),new Xr(t)));case zA:case WA:case RA:return fr(+e,+t);case KA:return e.name==t.name&&e.message==t.message;case YA:case JA:return e==t+"";case qA:var s=HA;case XA:var c=n&VA;if(s||(s=GA),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=UA,o.set(e,t);var h=Nu(s(e),s(t),n,a,i,o);return o.delete(e),h;case ZA:if(di)return di.call(e)==di.call(t)}return!1}var r5=1,n5=Object.prototype,a5=n5.hasOwnProperty;function i5(e,t,r,n,a,i){var o=r&r5,s=Gn(e),c=s.length,u=Gn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:a5.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var o5=1,Bu="[object Arguments]",Hu="[object Array]",bn="[object Object]",s5=Object.prototype,Gu=s5.hasOwnProperty;function l5(e,t,r,n,a,i){var o=Te(e),s=Te(t),c=o?Hu:mr(e),u=s?Hu:mr(t);c=c==Bu?bn:c,u=u==Bu?bn:u;var h=c==bn,l=u==bn,d=c==u;if(d&&vr(e)){if(!vr(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ge),o||Nn(e)?Nu(e,t,r,n,a,i):t5(e,t,c,r,n,a,i);if(!(r&o5)){var p=h&&Gu.call(e,"__wrapped__"),v=l&&Gu.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return i||(i=new Ge),a(g,m,r,n,i)}}return d?(i||(i=new Ge),i5(e,t,r,n,a,i)):!1}function hi(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:l5(e,t,r,n,hi,a)}var u5=1,c5=2;function f5(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Ge;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?hi(h,u,u5|c5,n,l):d))return!1}}return!0}function Vu(e){return e===e&&!ke(e)}function d5(e){for(var t=br(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Vu(a)]}return t}function Uu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function h5(e){var t=d5(e);return t.length==1&&t[0][2]?Uu(t[0][0],t[0][1]):function(r){return r===e||f5(r,e,t)}}var p5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v5=/^\w*$/;function pi(e,t){if(Te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Sr(e)?!0:v5.test(e)||!p5.test(e)||t!=null&&e in Object(t)}function zu(e,t){return Te(e)?e:pi(e,t)?[e]:Go(Wo(e))}function Wu(e,t){t=zu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[wr(t[r++])];return r&&r==n?e:void 0}function g5(e,t,r){var n=e==null?void 0:Wu(e,t);return n===void 0?r:n}function b5(e,t){return e!=null&&t in Object(e)}function y5(e,t,r){t=zu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=wr(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&kn(a)&&Fn(o,a)&&(Te(e)||Yr(e)))}function m5(e,t){return e!=null&&y5(e,t,b5)}var x5=1,S5=2;function w5(e,t){return pi(e)&&Vu(t)?Uu(wr(e),t):function(r){var n=g5(r,e);return n===void 0&&n===t?m5(r,e):hi(t,n,x5|S5)}}function E5(e){return function(t){return t==null?void 0:t[e]}}function _5(e){return function(t){return Wu(t,e)}}function C5(e){return pi(e)?E5(wr(e)):_5(e)}function $5(e){return typeof e=="function"?e:e==null?dn:typeof e=="object"?Te(e)?w5(e[0],e[1]):h5(e):C5(e)}function T5(e,t){var r=-1,n=Pt(e)?Array(e.length):[];return _u(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function Et(e,t){var r=Te(e)?qn:T5;return r(e,$5(t))}var O5=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.createElement("div",{style:i.swatches},Et(r,function(o){return f.createElement(wt,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),f.createElement("div",{style:i.clear}))},vi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=a==="transparent",p=function(m,x){ut(m)&&r({hex:m,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:ci(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return f.createElement("div",{style:v.card,className:"block-picker "+l},f.createElement("div",{style:v.triangle}),f.createElement("div",{style:v.head},d&&f.createElement(Ht,{borderRadius:"6px 6px 0 0"}),f.createElement("div",{style:v.label},a)),f.createElement("div",{style:v.body},f.createElement(O5,{colors:i,onClick:p,onSwatchHover:n}),f.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};vi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},vi.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(vi);var Vt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Ut={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},zt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Wt={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Kt={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},qt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Rt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Yt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Xt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Lr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Jt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Zt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Qt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},er={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},tr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},rr={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},nr={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},ar={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Ku=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return f.createElement("div",{style:u.swatch},f.createElement(wt,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};Ku.defaultProps={circleSize:28,circleSpacing:14};const A5=Xa(Ku);var gi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(m,x){return n({hex:m,source:"hex"},x)};return f.createElement("div",{style:p.card,className:"circle-picker "+d},Et(i,function(g){return f.createElement(A5,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};gi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},gi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Vt[500],Ut[500],zt[500],Wt[500],Kt[500],qt[500],Rt[500],Yt[500],Xt[500],Lr[500],Jt[500],Zt[500],Qt[500],er[500],tr[500],rr[500],nr[500],ar[500]],styles:{}},Fe(gi);function qu(e){return e===void 0}var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P5=f,Xu=M5(P5);function M5(e){return e&&e.__esModule?e:{default:e}}function I5(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var yn=24,F5=Ru.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?yn:n,i=e.height,o=i===void 0?yn:i,s=e.style,c=s===void 0?{}:s,u=I5(e,["fill","width","height","style"]);return Xu.default.createElement("svg",Yu({viewBox:"0 0 "+yn+" "+yn,style:Yu({fill:r,width:a,height:o},c)},u),Xu.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},k5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function j5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function N5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ju=function(e){N5(t,e);function t(r){j5(this,t);var n=D5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?ut(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(qu(a.s)?n.props.hsl.s:a.s),l:Number(qu(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return k5(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),f.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,f.createElement("div",{style:a.toggle},f.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},f.createElement(F5,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(f.Component);Ju.defaultProps={view:"hex"};var Zu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},L5=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return f.createElement("div",{style:t.picker})},bi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,d=t.className,p=d===void 0?"":d,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return f.createElement("div",{style:g.picker,className:"chrome-picker "+p},f.createElement("div",{style:g.saturation},f.createElement(hn,{style:g.Saturation,hsl:o,hsv:s,pointer:L5,onChange:n})),f.createElement("div",{style:g.body},f.createElement("div",{style:g.controls,className:"flexbox-fix"},f.createElement("div",{style:g.color},f.createElement("div",{style:g.swatch},f.createElement("div",{style:g.active}),f.createElement(Ht,{renderers:u}))),f.createElement("div",{style:g.toggles},f.createElement("div",{style:g.hue},f.createElement(Gt,{style:g.Hue,hsl:o,pointer:Zu,onChange:n})),f.createElement("div",{style:g.alpha},f.createElement(Za,{style:g.Alpha,rgb:i,hsl:o,pointer:Zu,renderers:u,onChange:n})))),f.createElement(Ju,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};bi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},bi.defaultProps={width:225,disableAlpha:!1,styles:{}};const B5=Fe(bi);var H5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:ci(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(wt,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:s.dot}))},G5=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return f.createElement("div",{style:i.fields,className:"flexbox-fix"},f.createElement("div",{style:i.active}),f.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},yi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(v,g){v.hex?ut(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return f.createElement(kr,{style:l.Compact,styles:c},f.createElement("div",{style:l.compact,className:"compact-picker "+h},f.createElement("div",null,Et(a,function(p){return f.createElement(H5,{key:p,color:p,active:p.toLowerCase()===i,onClick:d,onSwatchHover:n})}),f.createElement("div",{style:l.clear})),f.createElement(G5,{hex:i,rgb:o,onChange:d})))};yi.propTypes={colors:O.arrayOf(O.string),styles:O.object},yi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(yi);var V5=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return f.createElement("div",{style:s.swatch},f.createElement(wt,{color:n,onClick:a,onHover:i,focusStyle:o}))};const U5=Xa(V5);var mi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(v,g){return a({hex:v,source:"hex"},g)};return f.createElement("div",{style:l.card,className:"github-picker "+h},f.createElement("div",{style:l.triangleShadow}),f.createElement("div",{style:l.triangle}),Et(n,function(p){return f.createElement(U5,{color:p,key:p,onClick:d,onSwatchHover:i})}))};mi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},mi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(mi);var z5=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},W5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return f.createElement("div",{style:d.picker,className:"hue-picker "+l},f.createElement(Gt,W5({},d.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};xi.propTypes={styles:O.object},xi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:z5,styles:{}},Fe(xi);var K5=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(d,p){d.hex?ut(d.hex)&&r({hex:d.hex,source:"hex"},p):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},p)};return f.createElement(kr,{styles:o},f.createElement("div",{style:u.material,className:"material-picker "+c},f.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),f.createElement("div",{style:u.split,className:"flexbox-fix"},f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(K5);var q5=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?ut(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return f.createElement("div",{style:o.fields},f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),f.createElement("div",{style:o.fieldSymbols},f.createElement("div",{style:o.symbol},"°"),f.createElement("div",{style:o.symbol},"%"),f.createElement("div",{style:o.symbol},"%")))},R5=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return f.createElement("div",{style:n.picker})},Y5=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return f.createElement("div",{style:t.pointer},f.createElement("div",{style:t.left},f.createElement("div",{style:t.leftInside})),f.createElement("div",{style:t.right},f.createElement("div",{style:t.rightInside})))},Qu=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return f.createElement("div",{style:o.button,onClick:r},n||a)},X5=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return f.createElement("div",null,f.createElement("div",{style:a.label},"new"),f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.new}),f.createElement("div",{style:a.current})),f.createElement("div",{style:a.label},"current"))},J5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Z5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Si=function(e){eP(t,e);function t(r){Z5(this,t);var n=Q5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return J5(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return f.createElement("div",{style:c.picker,className:"photoshop-picker "+s},f.createElement("div",{style:c.head},this.props.header),f.createElement("div",{style:c.body,className:"flexbox-fix"},f.createElement("div",{style:c.saturation},f.createElement(hn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:R5,onChange:this.props.onChange})),f.createElement("div",{style:c.hue},f.createElement(Gt,{direction:"vertical",hsl:this.props.hsl,pointer:Y5,onChange:this.props.onChange})),f.createElement("div",{style:c.controls},f.createElement("div",{style:c.top,className:"flexbox-fix"},f.createElement("div",{style:c.previews},f.createElement(X5,{rgb:this.props.rgb,currentColor:this.state.currentColor})),f.createElement("div",{style:c.actions},f.createElement(Qu,{label:"OK",onClick:this.props.onAccept,active:!0}),f.createElement(Qu,{label:"Cancel",onClick:this.props.onCancel}),f.createElement(q5,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(f.Component);Si.propTypes={header:O.string,styles:O.object},Si.defaultProps={header:"Color Picker",styles:{}},Fe(Si);var tP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),c=function(h,l){h.hex?ut(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return f.createElement("div",{style:s.fields,className:"flexbox-fix"},f.createElement("div",{style:s.double},f.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.alpha},f.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},rP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return f.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return f.createElement("div",{key:h,style:o.swatchWrap},f.createElement(wt,rP({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};ec.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var nP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,d=t.styles,p=d===void 0?{}:d,v=t.className,g=v===void 0?"":v,m=z(Ie({default:nP({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return f.createElement("div",{style:m.picker,className:"sketch-picker "+g},f.createElement("div",{style:m.saturation},f.createElement(hn,{style:m.Saturation,hsl:o,hsv:i,onChange:s})),f.createElement("div",{style:m.controls,className:"flexbox-fix"},f.createElement("div",{style:m.sliders},f.createElement("div",{style:m.hue},f.createElement(Gt,{style:m.Hue,hsl:o,onChange:s})),f.createElement("div",{style:m.alpha},f.createElement(Za,{style:m.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),f.createElement("div",{style:m.color},f.createElement(Ht,null),f.createElement("div",{style:m.activeColor}))),f.createElement(tP,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),f.createElement(ec,{colors:h,onClick:s,onSwatchHover:c}))};wi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},wi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(wi);var Br=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return f.createElement("div",{style:u.swatch,onClick:h})},aP=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),f.createElement("div",{style:a.clear}))},iP=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},Ei=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return f.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},f.createElement("div",{style:u.hue},f.createElement(Gt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),f.createElement("div",{style:u.swatches},f.createElement(aP,{hsl:r,onClick:n})))};Ei.propTypes={styles:O.object},Ei.defaultProps={pointer:iP,styles:{}},Fe(Ei);var tc={};Object.defineProperty(tc,"__esModule",{value:!0});var rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oP=f,nc=sP(oP);function sP(e){return e&&e.__esModule?e:{default:e}}function lP(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var mn=24,uP=tc.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?mn:n,i=e.height,o=i===void 0?mn:i,s=e.style,c=s===void 0?{}:s,u=lP(e,["fill","width","height","style"]);return nc.default.createElement("svg",rc({viewBox:"0 0 "+mn+" "+mn,style:rc({fill:r,width:a,height:o},c)},u),nc.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},cP=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:ci(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(wt,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:u.check},f.createElement(uP,null)))},fP=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return f.createElement("div",{style:o.group},Et(a,function(s,c){return f.createElement(cP,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},_i=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,m){return a({hex:g,source:"hex"},m)};return f.createElement("div",{style:d.picker,className:"swatches-picker "+l},f.createElement(kr,null,f.createElement("div",{style:d.overflow},f.createElement("div",{style:d.body},Et(o,function(v){return f.createElement(fP,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),f.createElement("div",{style:d.clear})))))};_i.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},_i.defaultProps={width:320,height:240,colors:[[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],["#194D33",Lr[700],Lr[500],Lr[300],Lr[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],[rr[900],rr[700],rr[500],rr[300],rr[100]],[nr[900],nr[700],nr[500],nr[300],nr[100]],[ar[900],ar[700],ar[500],ar[300],ar[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(_i);var Ci=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,m){ut(g)&&r({hex:g,source:"hex"},m)};return f.createElement("div",{style:d.card,className:"twitter-picker "+l},f.createElement("div",{style:d.triangleShadow}),f.createElement("div",{style:d.triangle}),f.createElement("div",{style:d.body},Et(i,function(v,g){return f.createElement(wt,{key:g,color:v,hex:v,style:d.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),f.createElement("div",{style:d.hash},"#"),f.createElement(Z,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:p}),f.createElement("div",{style:d.clear})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},Ci.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(Ci);var $i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return f.createElement("div",{style:r.picker})};$i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},$i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ti=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return f.createElement("div",{style:r.picker})};Ti.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ti.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var dP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)ut(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");fi(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var m=p.hsv.split(",");fi(p.hsv,"hsv")&&(m[2]=m[2].replace("%",""),m[1]=m[1].replace("%",""),m[0]=m[0].replace("°",""),m[1]==1?m[1]=.01:m[2]==1&&(m[2]=.01),r({h:Number(m[0]),s:Number(m[1]),v:Number(m[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");fi(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return f.createElement("div",{style:c.wrap,className:"flexbox-fix"},f.createElement("div",{style:c.fields},f.createElement("div",{style:c.double},f.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),f.createElement("div",{style:c.column},f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},Oi=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return f.createElement("div",{style:p.picker,className:"google-picker "+d},f.createElement("div",{style:p.head},c),f.createElement("div",{style:p.swatch}),f.createElement("div",{style:p.saturation},f.createElement(hn,{hsl:i,hsv:o,pointer:$i,onChange:n})),f.createElement("div",{style:p.body},f.createElement("div",{style:p.controls,className:"flexbox-fix"},f.createElement("div",{style:p.hue},f.createElement(Gt,{style:p.Hue,hsl:i,radius:"4px",pointer:Ti,onChange:n}))),f.createElement(dP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Oi.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Oi.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Oi);const hP=e=>{const[t,r]=f.useState(!1),[n,a]=f.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return y.jsxs("div",{children:[y.jsx(ac,{disabled:e.disabled,color:n,onClick:i}),y.jsx(j.Dialog,{open:t,onClose:o,children:y.jsx(B5,{color:n,onChange:s,css:le.css`
223
+ `),f.createElement("div",{style:h.white,className:"saturation-white"},f.createElement("div",{style:h.black,className:"saturation-black"}),f.createElement("div",{style:h.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:h.circle}))))}}]),t}(f.PureComponent||f.Component);function WO(e,t){return e&&yu(e,t,br)}function KO(e,t){return function(r,n){if(r==null)return r;if(!Pt(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var qO=KO(WO);const _u=qO;function RO(e){return typeof e=="function"?e:dn}function YO(e,t){var r=Te(e)?ao:_u;return r(e,RO(t))}function pn(e){return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}var XO=/^\s+/,JO=/\s+$/;function k(e,t){if(e=e||"",t=t||{},e instanceof k)return e;if(!(this instanceof k))return new k(e,t);var r=ZO(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}k.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=Pu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=$u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=$u(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=Cu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Cu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return Tu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rA(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pA[Tu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Ou(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=k(t);n="#"+Ou(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(oA,arguments)},brighten:function(){return this._applyModification(sA,arguments)},darken:function(){return this._applyModification(lA,arguments)},desaturate:function(){return this._applyModification(nA,arguments)},saturate:function(){return this._applyModification(aA,arguments)},greyscale:function(){return this._applyModification(iA,arguments)},spin:function(){return this._applyModification(uA,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dA,arguments)},complement:function(){return this._applyCombination(cA,arguments)},monochromatic:function(){return this._applyCombination(hA,arguments)},splitcomplement:function(){return this._applyCombination(fA,arguments)},triad:function(){return this._applyCombination(Au,[3])},tetrad:function(){return this._applyCombination(Au,[4])}},k.fromRatio=function(e,t){if(pn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Dr(e[n]));e=r}return k(e,t)};function ZO(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=yA(e)),pn(e)=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(t=QO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rt(e.h)&&rt(e.s)&&rt(e.v)?(n=Dr(e.s),a=Dr(e.v),t=tA(e.h,n,a),o=!0,s="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(n=Dr(e.s),i=Dr(e.l),t=eA(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Pu(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function QO(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function Cu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function eA(e,t,r){var n,a,i;e=ve(e,360),t=ve(t,100),r=ve(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function $u(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function tA(e,t,r){e=ve(e,360)*6,t=ve(t,100),r=ve(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function Tu(e,t,r,n){var a=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function rA(e,t,r,n,a){var i=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16)),Ve(Mu(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Ou(e,t,r,n){var a=[Ve(Mu(n)),Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return a.join("")}k.equals=function(e,t){return!e||!t?!1:k(e).toRgbString()==k(t).toRgbString()},k.random=function(){return k.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nA(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s-=t/100,r.s=vn(r.s),k(r)}function aA(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s+=t/100,r.s=vn(r.s),k(r)}function iA(e){return k(e).desaturate(100)}function oA(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l+=t/100,r.l=vn(r.l),k(r)}function sA(e,t){t=t===0?0:t||10;var r=k(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),k(r)}function lA(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l-=t/100,r.l=vn(r.l),k(r)}function uA(e,t){var r=k(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,k(r)}function cA(e){var t=k(e).toHsl();return t.h=(t.h+180)%360,k(t)}function Au(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=k(e).toHsl(),n=[k(e)],a=360/t,i=1;i<t;i++)n.push(k({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function fA(e){var t=k(e).toHsl(),r=t.h;return[k(e),k({h:(r+72)%360,s:t.s,l:t.l}),k({h:(r+216)%360,s:t.s,l:t.l})]}function dA(e,t,r){t=t||6,r=r||30;var n=k(e).toHsl(),a=360/r,i=[k(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(k(n));return i}function hA(e,t){t=t||6;for(var r=k(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(k({h:n,s:a,v:i})),i=(i+s)%1;return o}k.mix=function(e,t,r){r=r===0?0:r||50;var n=k(e).toRgb(),a=k(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return k(o)},k.readability=function(e,t){var r=k(e),n=k(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},k.isReadable=function(e,t,r){var n=k.readability(e,t),a,i;switch(i=!1,a=mA(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},k.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=k.readability(e,t[u]),i>a&&(a=i,n=k(t[u]));return k.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],r))};var ui=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pA=k.hexNames=vA(ui);function vA(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Pu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){gA(e)&&(e="100%");var r=bA(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vn(e){return Math.min(1,Math.max(0,e))}function De(e){return parseInt(e,16)}function gA(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function bA(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ve(e){return e.length==1?"0"+e:""+e}function Dr(e){return e<=1&&(e=e*100+"%"),e}function Mu(e){return Math.round(parseFloat(e)*255).toString(16)}function Iu(e){return De(e)/255}var Ue=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function rt(e){return!!Ue.CSS_UNIT.exec(e)}function yA(e){e=e.replace(XO,"").replace(JO,"").toLowerCase();var t=!1;if(ui[e])e=ui[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ue.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ue.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ue.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ue.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ue.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ue.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ue.hex8.exec(e))?{r:De(r[1]),g:De(r[2]),b:De(r[3]),a:Iu(r[4]),format:t?"name":"hex8"}:(r=Ue.hex6.exec(e))?{r:De(r[1]),g:De(r[2]),b:De(r[3]),format:t?"name":"hex"}:(r=Ue.hex4.exec(e))?{r:De(r[1]+""+r[1]),g:De(r[2]+""+r[2]),b:De(r[3]+""+r[3]),a:Iu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ue.hex3.exec(e))?{r:De(r[1]+""+r[1]),g:De(r[2]+""+r[2]),b:De(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function mA(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Fu=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return YO(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},jr=function(t,r){var n=t.hex?k(t.hex):k(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},ut=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&k(t).isValid()},ci=function(t){if(!t)return"#fff";var r=jr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fi=function(t,r){var n=t.replace("°","");return k(r+" ("+n+")")._ok},Nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function SA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){EA(a,n);function a(i){SA(this,a);var o=wA(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Fu(s);if(u){var h=jr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Fu(s);if(u){var h=jr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=Nr({},jr(i.color,0)),o.debounce=Eu(function(s,c,u){s(c,u)},100),o}return xA(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),f.createElement(t,Nr({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Nr({},jr(o.color,s.oldHue))}}]),a}(f.PureComponent||f.Component);return r.propTypes=Nr({},t.propTypes),r.defaultProps=Nr({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},_A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function $A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ku(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var OA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){TA(a,n);function a(){var i,o,s,c;$A(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=ku(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),ku(s,c)}return CA(a,[{key:"render",value:function(){return f.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},f.createElement(t,_A({},this.props,this.state)))}}]),a}(f.Component)},Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AA=13,PA=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,d=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Du({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?d:{})}}),g=function(S){return i(r,S)},m=function(S){return S.keyCode===AA&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),f.createElement("div",Du({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:m},C),u,p&&f.createElement(Ht,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const wt=OA(PA);var MA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},IA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ju=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,d=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return f.createElement("div",{style:p.picker,className:"alpha-picker "+d},f.createElement(Za,IA({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};ju.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:MA},Fe(ju);var FA="__lodash_hash_undefined__";function kA(e){return this.__data__.set(e,FA),this}function DA(e){return this.__data__.has(e)}function gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new et;++t<r;)this.add(e[t])}gn.prototype.add=gn.prototype.push=kA,gn.prototype.has=DA;function jA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function NA(e,t){return e.has(t)}var LA=1,BA=2;function Nu(e,t,r,n,a,i){var o=r&LA,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&BA?new gn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var m=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!jA(t,function(x,C){if(!NA(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function HA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function GA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VA=1,UA=2,zA="[object Boolean]",WA="[object Date]",KA="[object Error]",qA="[object Map]",RA="[object Number]",YA="[object RegExp]",XA="[object Set]",JA="[object String]",ZA="[object Symbol]",QA="[object ArrayBuffer]",e5="[object DataView]",Lu=Ke?Ke.prototype:void 0,di=Lu?Lu.valueOf:void 0;function t5(e,t,r,n,a,i,o){switch(r){case e5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QA:return!(e.byteLength!=t.byteLength||!i(new Xr(e),new Xr(t)));case zA:case WA:case RA:return fr(+e,+t);case KA:return e.name==t.name&&e.message==t.message;case YA:case JA:return e==t+"";case qA:var s=HA;case XA:var c=n&VA;if(s||(s=GA),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=UA,o.set(e,t);var h=Nu(s(e),s(t),n,a,i,o);return o.delete(e),h;case ZA:if(di)return di.call(e)==di.call(t)}return!1}var r5=1,n5=Object.prototype,a5=n5.hasOwnProperty;function i5(e,t,r,n,a,i){var o=r&r5,s=Gn(e),c=s.length,u=Gn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:a5.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var o5=1,Bu="[object Arguments]",Hu="[object Array]",bn="[object Object]",s5=Object.prototype,Gu=s5.hasOwnProperty;function l5(e,t,r,n,a,i){var o=Te(e),s=Te(t),c=o?Hu:mr(e),u=s?Hu:mr(t);c=c==Bu?bn:c,u=u==Bu?bn:u;var h=c==bn,l=u==bn,d=c==u;if(d&&vr(e)){if(!vr(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ge),o||Nn(e)?Nu(e,t,r,n,a,i):t5(e,t,c,r,n,a,i);if(!(r&o5)){var p=h&&Gu.call(e,"__wrapped__"),v=l&&Gu.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return i||(i=new Ge),a(g,m,r,n,i)}}return d?(i||(i=new Ge),i5(e,t,r,n,a,i)):!1}function hi(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:l5(e,t,r,n,hi,a)}var u5=1,c5=2;function f5(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Ge;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?hi(h,u,u5|c5,n,l):d))return!1}}return!0}function Vu(e){return e===e&&!ke(e)}function d5(e){for(var t=br(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Vu(a)]}return t}function Uu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function h5(e){var t=d5(e);return t.length==1&&t[0][2]?Uu(t[0][0],t[0][1]):function(r){return r===e||f5(r,e,t)}}var p5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v5=/^\w*$/;function pi(e,t){if(Te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Sr(e)?!0:v5.test(e)||!p5.test(e)||t!=null&&e in Object(t)}function zu(e,t){return Te(e)?e:pi(e,t)?[e]:Go(Wo(e))}function Wu(e,t){t=zu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[wr(t[r++])];return r&&r==n?e:void 0}function g5(e,t,r){var n=e==null?void 0:Wu(e,t);return n===void 0?r:n}function b5(e,t){return e!=null&&t in Object(e)}function y5(e,t,r){t=zu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=wr(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&kn(a)&&Fn(o,a)&&(Te(e)||Yr(e)))}function m5(e,t){return e!=null&&y5(e,t,b5)}var x5=1,S5=2;function w5(e,t){return pi(e)&&Vu(t)?Uu(wr(e),t):function(r){var n=g5(r,e);return n===void 0&&n===t?m5(r,e):hi(t,n,x5|S5)}}function E5(e){return function(t){return t==null?void 0:t[e]}}function _5(e){return function(t){return Wu(t,e)}}function C5(e){return pi(e)?E5(wr(e)):_5(e)}function $5(e){return typeof e=="function"?e:e==null?dn:typeof e=="object"?Te(e)?w5(e[0],e[1]):h5(e):C5(e)}function T5(e,t){var r=-1,n=Pt(e)?Array(e.length):[];return _u(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function Et(e,t){var r=Te(e)?qn:T5;return r(e,$5(t))}var O5=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.createElement("div",{style:i.swatches},Et(r,function(o){return f.createElement(wt,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),f.createElement("div",{style:i.clear}))},vi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=a==="transparent",p=function(m,x){ut(m)&&r({hex:m,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:ci(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return f.createElement("div",{style:v.card,className:"block-picker "+l},f.createElement("div",{style:v.triangle}),f.createElement("div",{style:v.head},d&&f.createElement(Ht,{borderRadius:"6px 6px 0 0"}),f.createElement("div",{style:v.label},a)),f.createElement("div",{style:v.body},f.createElement(O5,{colors:i,onClick:p,onSwatchHover:n}),f.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};vi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},vi.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(vi);var Vt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Ut={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},zt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Wt={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Kt={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},qt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Rt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Yt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Xt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Lr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Jt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Zt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Qt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},er={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},tr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},rr={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},nr={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},ar={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Ku=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return f.createElement("div",{style:u.swatch},f.createElement(wt,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};Ku.defaultProps={circleSize:28,circleSpacing:14};const A5=Xa(Ku);var gi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(m,x){return n({hex:m,source:"hex"},x)};return f.createElement("div",{style:p.card,className:"circle-picker "+d},Et(i,function(g){return f.createElement(A5,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};gi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},gi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Vt[500],Ut[500],zt[500],Wt[500],Kt[500],qt[500],Rt[500],Yt[500],Xt[500],Lr[500],Jt[500],Zt[500],Qt[500],er[500],tr[500],rr[500],nr[500],ar[500]],styles:{}},Fe(gi);function qu(e){return e===void 0}var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P5=f,Xu=M5(P5);function M5(e){return e&&e.__esModule?e:{default:e}}function I5(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var yn=24,F5=Ru.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?yn:n,i=e.height,o=i===void 0?yn:i,s=e.style,c=s===void 0?{}:s,u=I5(e,["fill","width","height","style"]);return Xu.default.createElement("svg",Yu({viewBox:"0 0 "+yn+" "+yn,style:Yu({fill:r,width:a,height:o},c)},u),Xu.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},k5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function D5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function N5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ju=function(e){N5(t,e);function t(r){D5(this,t);var n=j5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?ut(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(qu(a.s)?n.props.hsl.s:a.s),l:Number(qu(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return k5(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),f.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,f.createElement("div",{style:a.toggle},f.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},f.createElement(F5,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(f.Component);Ju.defaultProps={view:"hex"};var Zu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},L5=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return f.createElement("div",{style:t.picker})},bi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,d=t.className,p=d===void 0?"":d,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return f.createElement("div",{style:g.picker,className:"chrome-picker "+p},f.createElement("div",{style:g.saturation},f.createElement(hn,{style:g.Saturation,hsl:o,hsv:s,pointer:L5,onChange:n})),f.createElement("div",{style:g.body},f.createElement("div",{style:g.controls,className:"flexbox-fix"},f.createElement("div",{style:g.color},f.createElement("div",{style:g.swatch},f.createElement("div",{style:g.active}),f.createElement(Ht,{renderers:u}))),f.createElement("div",{style:g.toggles},f.createElement("div",{style:g.hue},f.createElement(Gt,{style:g.Hue,hsl:o,pointer:Zu,onChange:n})),f.createElement("div",{style:g.alpha},f.createElement(Za,{style:g.Alpha,rgb:i,hsl:o,pointer:Zu,renderers:u,onChange:n})))),f.createElement(Ju,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};bi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},bi.defaultProps={width:225,disableAlpha:!1,styles:{}};const B5=Fe(bi);var H5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:ci(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(wt,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:s.dot}))},G5=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return f.createElement("div",{style:i.fields,className:"flexbox-fix"},f.createElement("div",{style:i.active}),f.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},yi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(v,g){v.hex?ut(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return f.createElement(kr,{style:l.Compact,styles:c},f.createElement("div",{style:l.compact,className:"compact-picker "+h},f.createElement("div",null,Et(a,function(p){return f.createElement(H5,{key:p,color:p,active:p.toLowerCase()===i,onClick:d,onSwatchHover:n})}),f.createElement("div",{style:l.clear})),f.createElement(G5,{hex:i,rgb:o,onChange:d})))};yi.propTypes={colors:O.arrayOf(O.string),styles:O.object},yi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(yi);var V5=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return f.createElement("div",{style:s.swatch},f.createElement(wt,{color:n,onClick:a,onHover:i,focusStyle:o}))};const U5=Xa(V5);var mi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(v,g){return a({hex:v,source:"hex"},g)};return f.createElement("div",{style:l.card,className:"github-picker "+h},f.createElement("div",{style:l.triangleShadow}),f.createElement("div",{style:l.triangle}),Et(n,function(p){return f.createElement(U5,{color:p,key:p,onClick:d,onSwatchHover:i})}))};mi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},mi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(mi);var z5=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},W5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return f.createElement("div",{style:d.picker,className:"hue-picker "+l},f.createElement(Gt,W5({},d.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};xi.propTypes={styles:O.object},xi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:z5,styles:{}},Fe(xi);var K5=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(d,p){d.hex?ut(d.hex)&&r({hex:d.hex,source:"hex"},p):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},p)};return f.createElement(kr,{styles:o},f.createElement("div",{style:u.material,className:"material-picker "+c},f.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),f.createElement("div",{style:u.split,className:"flexbox-fix"},f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(K5);var q5=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?ut(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return f.createElement("div",{style:o.fields},f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),f.createElement("div",{style:o.fieldSymbols},f.createElement("div",{style:o.symbol},"°"),f.createElement("div",{style:o.symbol},"%"),f.createElement("div",{style:o.symbol},"%")))},R5=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return f.createElement("div",{style:n.picker})},Y5=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return f.createElement("div",{style:t.pointer},f.createElement("div",{style:t.left},f.createElement("div",{style:t.leftInside})),f.createElement("div",{style:t.right},f.createElement("div",{style:t.rightInside})))},Qu=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return f.createElement("div",{style:o.button,onClick:r},n||a)},X5=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return f.createElement("div",null,f.createElement("div",{style:a.label},"new"),f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.new}),f.createElement("div",{style:a.current})),f.createElement("div",{style:a.label},"current"))},J5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Z5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Si=function(e){eP(t,e);function t(r){Z5(this,t);var n=Q5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return J5(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return f.createElement("div",{style:c.picker,className:"photoshop-picker "+s},f.createElement("div",{style:c.head},this.props.header),f.createElement("div",{style:c.body,className:"flexbox-fix"},f.createElement("div",{style:c.saturation},f.createElement(hn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:R5,onChange:this.props.onChange})),f.createElement("div",{style:c.hue},f.createElement(Gt,{direction:"vertical",hsl:this.props.hsl,pointer:Y5,onChange:this.props.onChange})),f.createElement("div",{style:c.controls},f.createElement("div",{style:c.top,className:"flexbox-fix"},f.createElement("div",{style:c.previews},f.createElement(X5,{rgb:this.props.rgb,currentColor:this.state.currentColor})),f.createElement("div",{style:c.actions},f.createElement(Qu,{label:"OK",onClick:this.props.onAccept,active:!0}),f.createElement(Qu,{label:"Cancel",onClick:this.props.onCancel}),f.createElement(q5,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(f.Component);Si.propTypes={header:O.string,styles:O.object},Si.defaultProps={header:"Color Picker",styles:{}},Fe(Si);var tP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),c=function(h,l){h.hex?ut(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return f.createElement("div",{style:s.fields,className:"flexbox-fix"},f.createElement("div",{style:s.double},f.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.alpha},f.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},rP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return f.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return f.createElement("div",{key:h,style:o.swatchWrap},f.createElement(wt,rP({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};ec.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var nP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,d=t.styles,p=d===void 0?{}:d,v=t.className,g=v===void 0?"":v,m=z(Ie({default:nP({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return f.createElement("div",{style:m.picker,className:"sketch-picker "+g},f.createElement("div",{style:m.saturation},f.createElement(hn,{style:m.Saturation,hsl:o,hsv:i,onChange:s})),f.createElement("div",{style:m.controls,className:"flexbox-fix"},f.createElement("div",{style:m.sliders},f.createElement("div",{style:m.hue},f.createElement(Gt,{style:m.Hue,hsl:o,onChange:s})),f.createElement("div",{style:m.alpha},f.createElement(Za,{style:m.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),f.createElement("div",{style:m.color},f.createElement(Ht,null),f.createElement("div",{style:m.activeColor}))),f.createElement(tP,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),f.createElement(ec,{colors:h,onClick:s,onSwatchHover:c}))};wi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},wi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(wi);var Br=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return f.createElement("div",{style:u.swatch,onClick:h})},aP=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Br,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),f.createElement("div",{style:a.clear}))},iP=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},Ei=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return f.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},f.createElement("div",{style:u.hue},f.createElement(Gt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),f.createElement("div",{style:u.swatches},f.createElement(aP,{hsl:r,onClick:n})))};Ei.propTypes={styles:O.object},Ei.defaultProps={pointer:iP,styles:{}},Fe(Ei);var tc={};Object.defineProperty(tc,"__esModule",{value:!0});var rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oP=f,nc=sP(oP);function sP(e){return e&&e.__esModule?e:{default:e}}function lP(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var mn=24,uP=tc.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?mn:n,i=e.height,o=i===void 0?mn:i,s=e.style,c=s===void 0?{}:s,u=lP(e,["fill","width","height","style"]);return nc.default.createElement("svg",rc({viewBox:"0 0 "+mn+" "+mn,style:rc({fill:r,width:a,height:o},c)},u),nc.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},cP=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:ci(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(wt,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:u.check},f.createElement(uP,null)))},fP=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return f.createElement("div",{style:o.group},Et(a,function(s,c){return f.createElement(cP,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},_i=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,m){return a({hex:g,source:"hex"},m)};return f.createElement("div",{style:d.picker,className:"swatches-picker "+l},f.createElement(kr,null,f.createElement("div",{style:d.overflow},f.createElement("div",{style:d.body},Et(o,function(v){return f.createElement(fP,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),f.createElement("div",{style:d.clear})))))};_i.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},_i.defaultProps={width:320,height:240,colors:[[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],["#194D33",Lr[700],Lr[500],Lr[300],Lr[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],[rr[900],rr[700],rr[500],rr[300],rr[100]],[nr[900],nr[700],nr[500],nr[300],nr[100]],[ar[900],ar[700],ar[500],ar[300],ar[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(_i);var Ci=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,m){ut(g)&&r({hex:g,source:"hex"},m)};return f.createElement("div",{style:d.card,className:"twitter-picker "+l},f.createElement("div",{style:d.triangleShadow}),f.createElement("div",{style:d.triangle}),f.createElement("div",{style:d.body},Et(i,function(v,g){return f.createElement(wt,{key:g,color:v,hex:v,style:d.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),f.createElement("div",{style:d.hash},"#"),f.createElement(Z,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:p}),f.createElement("div",{style:d.clear})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},Ci.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(Ci);var $i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return f.createElement("div",{style:r.picker})};$i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},$i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ti=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return f.createElement("div",{style:r.picker})};Ti.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ti.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var dP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)ut(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");fi(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var m=p.hsv.split(",");fi(p.hsv,"hsv")&&(m[2]=m[2].replace("%",""),m[1]=m[1].replace("%",""),m[0]=m[0].replace("°",""),m[1]==1?m[1]=.01:m[2]==1&&(m[2]=.01),r({h:Number(m[0]),s:Number(m[1]),v:Number(m[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");fi(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return f.createElement("div",{style:c.wrap,className:"flexbox-fix"},f.createElement("div",{style:c.fields},f.createElement("div",{style:c.double},f.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),f.createElement("div",{style:c.column},f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},Oi=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return f.createElement("div",{style:p.picker,className:"google-picker "+d},f.createElement("div",{style:p.head},c),f.createElement("div",{style:p.swatch}),f.createElement("div",{style:p.saturation},f.createElement(hn,{hsl:i,hsv:o,pointer:$i,onChange:n})),f.createElement("div",{style:p.body},f.createElement("div",{style:p.controls,className:"flexbox-fix"},f.createElement("div",{style:p.hue},f.createElement(Gt,{style:p.Hue,hsl:i,radius:"4px",pointer:Ti,onChange:n}))),f.createElement(dP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Oi.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Oi.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Oi);const hP=e=>{const[t,r]=f.useState(!1),[n,a]=f.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return y.jsxs("div",{children:[y.jsx(ac,{disabled:e.disabled,color:n,onClick:i}),y.jsx(F.Dialog,{open:t,onClose:o,children:y.jsx(B5,{color:n,onChange:s,css:le.css`
224
224
  padding: 10px;
225
225
  `})})]})},ac=e=>y.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:le.css`
226
226
  border: solid 1px black;