@sillsdev/config-r 1.0.0-alpha.15 → 1.0.0-alpha.17

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,20 +1,20 @@
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
1
+ (function(B,m){typeof exports=="object"&&typeof module<"u"?m(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"],m):(B=typeof globalThis<"u"?globalThis:B||self,m(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,m,de,F,d,nt,qu,Yu,Xu,Ju,Zu,Qu,ec,tc,rc,nc,ac){"use strict";function ic(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 K=ic(d),oc=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"}})),sc=nt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),lc=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"}}})),uc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),m.jsx(F.Box,{sx:{flexGrow:1},children:m.jsx(F.AppBar,{position:"static",children:m.jsxs(F.Toolbar,{children:[m.jsx(F.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&m.jsxs(oc,{children:[m.jsx(sc,{children:m.jsx(qu,{})}),m.jsx(lc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cc(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 yn=cc;function fc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Pi=fc,dc=Array.isArray,Le=dc,hc=typeof rr=="object"&&rr&&rr.Object===Object&&rr,Mi=hc,pc=Mi,vc=typeof self=="object"&&self&&self.Object===Object&&self,gc=pc||vc||Function("return this")(),Re=gc,bc=Re,yc=bc.Symbol,nr=yc,Ii=nr,Fi=Object.prototype,mc=Fi.hasOwnProperty,xc=Fi.toString,ar=Ii?Ii.toStringTag:void 0;function Sc(e){var t=mc.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var a=xc.call(e);return n&&(t?e[ar]=r:delete e[ar]),a}var wc=Sc,Ec=Object.prototype,_c=Ec.toString;function Cc(e){return _c.call(e)}var $c=Cc,ki=nr,Tc=wc,Oc=$c,Ac="[object Null]",Pc="[object Undefined]",ji=ki?ki.toStringTag:void 0;function Mc(e){return e==null?e===void 0?Pc:Ac:ji&&ji in Object(e)?Tc(e):Oc(e)}var ut=Mc;function Ic(e){return e!=null&&typeof e=="object"}var Ze=Ic,Fc=ut,kc=Ze,jc="[object Symbol]";function Lc(e){return typeof e=="symbol"||kc(e)&&Fc(e)==jc}var jr=Lc;function Dc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ct=Dc,Nc=ut,Bc=Ct,Hc="[object AsyncFunction]",Gc="[object Function]",Vc="[object GeneratorFunction]",Uc="[object Proxy]";function zc(e){if(!Bc(e))return!1;var t=Nc(e);return t==Gc||t==Vc||t==Hc||t==Uc}var Li=zc,Wc=Re,Rc=Wc["__core-js_shared__"],Kc=Rc,mn=Kc,Di=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qc(e){return!!Di&&Di in e}var Yc=qc,Xc=Function.prototype,Jc=Xc.toString;function Zc(e){if(e!=null){try{return Jc.call(e)}catch{}try{return e+""}catch{}}return""}var Ni=Zc,Qc=Li,ef=Yc,tf=Ct,rf=Ni,nf=/[\\^$.*+?()[\]{}|]/g,af=/^\[object .+?Constructor\]$/,of=Function.prototype,sf=Object.prototype,lf=of.toString,uf=sf.hasOwnProperty,cf=RegExp("^"+lf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!tf(e)||ef(e))return!1;var t=Qc(e)?cf:af;return t.test(rf(e))}var df=ff;function hf(e,t){return e==null?void 0:e[t]}var pf=hf,vf=df,gf=pf;function bf(e,t){var r=gf(e,t);return vf(r)?r:void 0}var ct=bf,yf=ct,mf=yf(Object,"create"),Lr=mf,Bi=Lr;function xf(){this.__data__=Bi?Bi(null):{},this.size=0}var Sf=xf;function wf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ef=wf,_f=Lr,Cf="__lodash_hash_undefined__",$f=Object.prototype,Tf=$f.hasOwnProperty;function Of(e){var t=this.__data__;if(_f){var r=t[e];return r===Cf?void 0:r}return Tf.call(t,e)?t[e]:void 0}var Af=Of,Pf=Lr,Mf=Object.prototype,If=Mf.hasOwnProperty;function Ff(e){var t=this.__data__;return Pf?t[e]!==void 0:If.call(t,e)}var kf=Ff,jf=Lr,Lf="__lodash_hash_undefined__";function Df(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jf&&t===void 0?Lf:t,this}var Nf=Df,Bf=Sf,Hf=Ef,Gf=Af,Vf=kf,Uf=Nf;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=Bf,$t.prototype.delete=Hf,$t.prototype.get=Gf,$t.prototype.has=Vf,$t.prototype.set=Uf;var zf=$t;function Wf(){this.__data__=[],this.size=0}var Rf=Wf;function Kf(e,t){return e===t||e!==e&&t!==t}var xn=Kf,qf=xn;function Yf(e,t){for(var r=e.length;r--;)if(qf(e[r][0],t))return r;return-1}var Dr=Yf,Xf=Dr,Jf=Array.prototype,Zf=Jf.splice;function Qf(e){var t=this.__data__,r=Xf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zf.call(t,r,1),--this.size,!0}var ed=Qf,td=Dr;function rd(e){var t=this.__data__,r=td(t,e);return r<0?void 0:t[r][1]}var nd=rd,ad=Dr;function id(e){return ad(this.__data__,e)>-1}var od=id,sd=Dr;function ld(e,t){var r=this.__data__,n=sd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ud=ld,cd=Rf,fd=ed,dd=nd,hd=od,pd=ud;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=cd,Tt.prototype.delete=fd,Tt.prototype.get=dd,Tt.prototype.has=hd,Tt.prototype.set=pd;var Nr=Tt,vd=ct,gd=Re,bd=vd(gd,"Map"),Sn=bd,Hi=zf,yd=Nr,md=Sn;function xd(){this.size=0,this.__data__={hash:new Hi,map:new(md||yd),string:new Hi}}var Sd=xd;function wd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ed=wd,_d=Ed;function Cd(e,t){var r=e.__data__;return _d(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Br=Cd,$d=Br;function Td(e){var t=$d(this,e).delete(e);return this.size-=t?1:0,t}var Od=Td,Ad=Br;function Pd(e){return Ad(this,e).get(e)}var Md=Pd,Id=Br;function Fd(e){return Id(this,e).has(e)}var kd=Fd,jd=Br;function Ld(e,t){var r=jd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Dd=Ld,Nd=Sd,Bd=Od,Hd=Md,Gd=kd,Vd=Dd;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=Nd,Ot.prototype.delete=Bd,Ot.prototype.get=Hd,Ot.prototype.has=Gd,Ot.prototype.set=Vd;var wn=Ot,Gi=wn,Ud="Expected a function";function En(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ud);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(En.Cache||Gi),r}En.Cache=Gi;var zd=En,Wd=zd,Rd=500;function Kd(e){var t=Wd(e,function(n){return r.size===Rd&&r.clear(),n}),r=t.cache;return t}var qd=Kd,Yd=qd,Xd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jd=/\\(\\)?/g,Zd=Yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xd,function(r,n,a,i){t.push(a?i.replace(Jd,"$1"):n||r)}),t}),Vi=Zd,Qd=jr,eh=1/0;function th(e){if(typeof e=="string"||Qd(e))return e;var t=e+"";return t=="0"&&1/e==-eh?"-0":t}var ir=th,Ui=nr,rh=yn,nh=Le,ah=jr,ih=1/0,zi=Ui?Ui.prototype:void 0,Wi=zi?zi.toString:void 0;function Ri(e){if(typeof e=="string")return e;if(nh(e))return rh(e,Ri)+"";if(ah(e))return Wi?Wi.call(e):"";var t=e+"";return t=="0"&&1/e==-ih?"-0":t}var oh=Ri,sh=oh;function lh(e){return e==null?"":sh(e)}var Ki=lh,uh=yn,ch=Pi,fh=Le,dh=jr,hh=Vi,ph=ir,vh=Ki;function gh(e){return fh(e)?uh(e,ph):dh(e)?[e]:ch(hh(vh(e)))}var bh=gh;const yh=_t(bh);var qi=Array.isArray,Yi=Object.keys,mh=Object.prototype.hasOwnProperty,xh=typeof Element<"u";function _n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=qi(e),n=qi(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=Yi(e);if(i=l.length,i!==Yi(t).length)return!1;for(a=i;a--!==0;)if(!mh.call(t,l[a]))return!1;if(xh&&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 Sh=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}};const ft=_t(Sh);var wh=function(t){return Eh(t)&&!_h(t)};function Eh(e){return!!e&&typeof e=="object"}function _h(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Th(e)}var Ch=typeof Symbol=="function"&&Symbol.for,$h=Ch?Symbol.for("react.element"):60103;function Th(e){return e.$$typeof===$h}function Oh(e){return Array.isArray(e)?[]:{}}function Hr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?or(Oh(e),e,t):e}function Ah(e,t,r){return e.concat(t).map(function(n){return Hr(n,r)})}function Ph(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Hr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Hr(t[a],r):n[a]=or(e[a],t[a],r)}),n}function or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ah,r.isMergeableObject=r.isMergeableObject||wh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Ph(e,t,r):Hr(t,r)}or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return or(n,a,r)},{})};var Cn=or,Xi=typeof global=="object"&&global&&global.Object===Object&&global,Mh=typeof self=="object"&&self&&self.Object===Object&&self,He=Xi||Mh||Function("return this")(),Ke=He.Symbol,Ji=Object.prototype,Ih=Ji.hasOwnProperty,Fh=Ji.toString,sr=Ke?Ke.toStringTag:void 0;function kh(e){var t=Ih.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch{}var a=Fh.call(e);return n&&(t?e[sr]=r:delete e[sr]),a}var jh=Object.prototype,Lh=jh.toString;function Dh(e){return Lh.call(e)}var Nh="[object Null]",Bh="[object Undefined]",Zi=Ke?Ke.toStringTag:void 0;function dt(e){return e==null?e===void 0?Bh:Nh:Zi&&Zi in Object(e)?kh(e):Dh(e)}function Qi(e,t){return function(r){return e(t(r))}}var $n=Qi(Object.getPrototypeOf,Object);function qe(e){return e!=null&&typeof e=="object"}var Hh="[object Object]",Gh=Function.prototype,Vh=Object.prototype,eo=Gh.toString,Uh=Vh.hasOwnProperty,zh=eo.call(Object);function Tn(e){if(!qe(e)||dt(e)!=Hh)return!1;var t=$n(e);if(t===null)return!0;var r=Uh.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&eo.call(r)==zh}function Wh(){this.__data__=[],this.size=0}function lr(e,t){return e===t||e!==e&&t!==t}function Gr(e,t){for(var r=e.length;r--;)if(lr(e[r][0],t))return r;return-1}var Rh=Array.prototype,Kh=Rh.splice;function qh(e){var t=this.__data__,r=Gr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=Gr(t,e);return r<0?void 0:t[r][1]}function Xh(e){return Gr(this.__data__,e)>-1}function Jh(e,t){var r=this.__data__,n=Gr(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=Wh,Qe.prototype.delete=qh,Qe.prototype.get=Yh,Qe.prototype.has=Xh,Qe.prototype.set=Jh;function Zh(){this.__data__=new Qe,this.size=0}function Qh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ep(e){return this.__data__.get(e)}function tp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rp="[object AsyncFunction]",np="[object Function]",ap="[object GeneratorFunction]",ip="[object Proxy]";function On(e){if(!ke(e))return!1;var t=dt(e);return t==np||t==ap||t==rp||t==ip}var An=He["__core-js_shared__"],to=function(){var e=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!to&&to in e}var sp=Function.prototype,lp=sp.toString;function ht(e){if(e!=null){try{return lp.call(e)}catch{}try{return e+""}catch{}}return""}var up=/[\\^$.*+?()[\]{}|]/g,cp=/^\[object .+?Constructor\]$/,fp=Function.prototype,dp=Object.prototype,hp=fp.toString,pp=dp.hasOwnProperty,vp=RegExp("^"+hp.call(pp).replace(up,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gp(e){if(!ke(e)||op(e))return!1;var t=On(e)?vp:cp;return t.test(ht(e))}function bp(e,t){return e==null?void 0:e[t]}function pt(e,t){var r=bp(e,t);return gp(r)?r:void 0}var ur=pt(He,"Map"),cr=pt(Object,"create");function yp(){this.__data__=cr?cr(null):{},this.size=0}function mp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xp="__lodash_hash_undefined__",Sp=Object.prototype,wp=Sp.hasOwnProperty;function Ep(e){var t=this.__data__;if(cr){var r=t[e];return r===xp?void 0:r}return wp.call(t,e)?t[e]:void 0}var _p=Object.prototype,Cp=_p.hasOwnProperty;function $p(e){var t=this.__data__;return cr?t[e]!==void 0:Cp.call(t,e)}var Tp="__lodash_hash_undefined__";function Op(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=cr&&t===void 0?Tp: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=yp,vt.prototype.delete=mp,vt.prototype.get=Ep,vt.prototype.has=$p,vt.prototype.set=Op;function Ap(){this.size=0,this.__data__={hash:new vt,map:new(ur||Qe),string:new vt}}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vr(e,t){var r=e.__data__;return Pp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Mp(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t}function Ip(e){return Vr(this,e).get(e)}function Fp(e){return Vr(this,e).has(e)}function kp(e,t){var r=Vr(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=Ap,et.prototype.delete=Mp,et.prototype.get=Ip,et.prototype.has=Fp,et.prototype.set=kp;var jp=200;function Lp(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!ur||n.length<jp-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=Zh,Ge.prototype.delete=Qh,Ge.prototype.get=ep,Ge.prototype.has=tp,Ge.prototype.set=Lp;function ro(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ur=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Pn(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Dp=Object.prototype,Np=Dp.hasOwnProperty;function no(e,t,r){var n=e[t];(!(Np.call(e,t)&&lr(n,r))||r===void 0&&!(t in e))&&Pn(e,t,r)}function fr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=void 0;c===void 0&&(c=e[s]),a?Pn(r,s,c):no(r,s,c)}return r}function Bp(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hp="[object Arguments]";function ao(e){return qe(e)&&dt(e)==Hp}var io=Object.prototype,Gp=io.hasOwnProperty,Vp=io.propertyIsEnumerable,zr=ao(function(){return arguments}())?ao:function(e){return qe(e)&&Gp.call(e,"callee")&&!Vp.call(e,"callee")},$e=Array.isArray;function Up(){return!1}var oo=typeof B=="object"&&B&&!B.nodeType&&B,so=oo&&typeof module=="object"&&module&&!module.nodeType&&module,zp=so&&so.exports===oo,lo=zp?He.Buffer:void 0,Wp=lo?lo.isBuffer:void 0,dr=Wp||Up,Rp=9007199254740991,Kp=/^(?:0|[1-9]\d*)$/;function Mn(e,t){var r=typeof e;return t=t??Rp,!!t&&(r=="number"||r!="symbol"&&Kp.test(e))&&e>-1&&e%1==0&&e<t}var qp=9007199254740991;function In(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qp}var Yp="[object Arguments]",Xp="[object Array]",Jp="[object Boolean]",Zp="[object Date]",Qp="[object Error]",ev="[object Function]",tv="[object Map]",rv="[object Number]",nv="[object Object]",av="[object RegExp]",iv="[object Set]",ov="[object String]",sv="[object WeakMap]",lv="[object ArrayBuffer]",uv="[object DataView]",cv="[object Float32Array]",fv="[object Float64Array]",dv="[object Int8Array]",hv="[object Int16Array]",pv="[object Int32Array]",vv="[object Uint8Array]",gv="[object Uint8ClampedArray]",bv="[object Uint16Array]",yv="[object Uint32Array]",ue={};ue[cv]=ue[fv]=ue[dv]=ue[hv]=ue[pv]=ue[vv]=ue[gv]=ue[bv]=ue[yv]=!0,ue[Yp]=ue[Xp]=ue[lv]=ue[Jp]=ue[uv]=ue[Zp]=ue[Qp]=ue[ev]=ue[tv]=ue[rv]=ue[nv]=ue[av]=ue[iv]=ue[ov]=ue[sv]=!1;function mv(e){return qe(e)&&In(e.length)&&!!ue[dt(e)]}function Fn(e){return function(t){return e(t)}}var uo=typeof B=="object"&&B&&!B.nodeType&&B,hr=uo&&typeof module=="object"&&module&&!module.nodeType&&module,xv=hr&&hr.exports===uo,kn=xv&&Xi.process,At=function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||kn&&kn.binding&&kn.binding("util")}catch{}}(),co=At&&At.isTypedArray,jn=co?Fn(co):mv,Sv=Object.prototype,wv=Sv.hasOwnProperty;function fo(e,t){var r=$e(e),n=!r&&zr(e),a=!r&&!n&&dr(e),i=!r&&!n&&!a&&jn(e),o=r||n||a||i,s=o?Bp(e.length,String):[],c=s.length;for(var u in e)(t||wv.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Mn(u,c)))&&s.push(u);return s}var Ev=Object.prototype;function Ln(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ev;return e===r}var _v=Qi(Object.keys,Object),Cv=Object.prototype,$v=Cv.hasOwnProperty;function Tv(e){if(!Ln(e))return _v(e);var t=[];for(var r in Object(e))$v.call(e,r)&&r!="constructor"&&t.push(r);return t}function Pt(e){return e!=null&&In(e.length)&&!On(e)}function pr(e){return Pt(e)?fo(e):Tv(e)}function Ov(e,t){return e&&fr(t,pr(t),e)}function Av(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Pv=Object.prototype,Mv=Pv.hasOwnProperty;function Iv(e){if(!ke(e))return Av(e);var t=Ln(e),r=[];for(var n in e)n=="constructor"&&(t||!Mv.call(e,n))||r.push(n);return r}function vr(e){return Pt(e)?fo(e,!0):Iv(e)}function Fv(e,t){return e&&fr(t,vr(t),e)}var ho=typeof B=="object"&&B&&!B.nodeType&&B,po=ho&&typeof module=="object"&&module&&!module.nodeType&&module,kv=po&&po.exports===ho,vo=kv?He.Buffer:void 0,go=vo?vo.allocUnsafe:void 0;function bo(e,t){if(t)return e.slice();var r=e.length,n=go?go(r):new e.constructor(r);return e.copy(n),n}function Dn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function jv(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 yo(){return[]}var Lv=Object.prototype,Dv=Lv.propertyIsEnumerable,mo=Object.getOwnPropertySymbols,Nn=mo?function(e){return e==null?[]:(e=Object(e),jv(mo(e),function(t){return Dv.call(e,t)}))}:yo;function Nv(e,t){return fr(e,Nn(e),t)}function xo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Bv=Object.getOwnPropertySymbols,So=Bv?function(e){for(var t=[];e;)xo(t,Nn(e)),e=$n(e);return t}:yo;function Hv(e,t){return fr(e,So(e),t)}function wo(e,t,r){var n=t(e);return $e(e)?n:xo(n,r(e))}function Bn(e){return wo(e,pr,Nn)}function Gv(e){return wo(e,vr,So)}var Hn=pt(He,"DataView"),Gn=pt(He,"Promise"),Vn=pt(He,"Set"),Un=pt(He,"WeakMap"),Eo="[object Map]",Vv="[object Object]",_o="[object Promise]",Co="[object Set]",$o="[object WeakMap]",To="[object DataView]",Uv=ht(Hn),zv=ht(ur),Wv=ht(Gn),Rv=ht(Vn),Kv=ht(Un),Ve=dt;(Hn&&Ve(new Hn(new ArrayBuffer(1)))!=To||ur&&Ve(new ur)!=Eo||Gn&&Ve(Gn.resolve())!=_o||Vn&&Ve(new Vn)!=Co||Un&&Ve(new Un)!=$o)&&(Ve=function(e){var t=dt(e),r=t==Vv?e.constructor:void 0,n=r?ht(r):"";if(n)switch(n){case Uv:return To;case zv:return Eo;case Wv:return _o;case Rv:return Co;case Kv:return $o}return t});var qv=Object.prototype,Yv=qv.hasOwnProperty;function Xv(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Yv.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Wr=He.Uint8Array;function zn(e){var t=new e.constructor(e.byteLength);return new Wr(t).set(new Wr(e)),t}function Jv(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zv=/\w*$/;function Qv(e){var t=new e.constructor(e.source,Zv.exec(e));return t.lastIndex=e.lastIndex,t}var Oo=Ke?Ke.prototype:void 0,Ao=Oo?Oo.valueOf:void 0;function eg(e){return Ao?Object(Ao.call(e)):{}}function Po(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var tg="[object Boolean]",rg="[object Date]",ng="[object Map]",ag="[object Number]",ig="[object RegExp]",og="[object Set]",sg="[object String]",lg="[object Symbol]",ug="[object ArrayBuffer]",cg="[object DataView]",fg="[object Float32Array]",dg="[object Float64Array]",hg="[object Int8Array]",pg="[object Int16Array]",vg="[object Int32Array]",gg="[object Uint8Array]",bg="[object Uint8ClampedArray]",yg="[object Uint16Array]",mg="[object Uint32Array]";function xg(e,t,r){var n=e.constructor;switch(t){case ug:return zn(e);case tg:case rg:return new n(+e);case cg:return Jv(e,r);case fg:case dg:case hg:case pg:case vg:case gg:case bg:case yg:case mg:return Po(e,r);case ng:return new n;case ag:case sg:return new n(e);case ig:return Qv(e);case og:return new n;case lg:return eg(e)}}var Mo=Object.create,Sg=function(){function e(){}return function(t){if(!ke(t))return{};if(Mo)return Mo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Io(e){return typeof e.constructor=="function"&&!Ln(e)?Sg($n(e)):{}}var wg="[object Map]";function Eg(e){return qe(e)&&Ve(e)==wg}var Fo=At&&At.isMap,_g=Fo?Fn(Fo):Eg,Cg="[object Set]";function $g(e){return qe(e)&&Ve(e)==Cg}var ko=At&&At.isSet,Tg=ko?Fn(ko):$g,Og=1,Ag=2,Pg=4,jo="[object Arguments]",Mg="[object Array]",Ig="[object Boolean]",Fg="[object Date]",kg="[object Error]",Lo="[object Function]",jg="[object GeneratorFunction]",Lg="[object Map]",Dg="[object Number]",Do="[object Object]",Ng="[object RegExp]",Bg="[object Set]",Hg="[object String]",Gg="[object Symbol]",Vg="[object WeakMap]",Ug="[object ArrayBuffer]",zg="[object DataView]",Wg="[object Float32Array]",Rg="[object Float64Array]",Kg="[object Int8Array]",qg="[object Int16Array]",Yg="[object Int32Array]",Xg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Zg="[object Uint16Array]",Qg="[object Uint32Array]",se={};se[jo]=se[Mg]=se[Ug]=se[zg]=se[Ig]=se[Fg]=se[Wg]=se[Rg]=se[Kg]=se[qg]=se[Yg]=se[Lg]=se[Dg]=se[Do]=se[Ng]=se[Bg]=se[Hg]=se[Gg]=se[Xg]=se[Jg]=se[Zg]=se[Qg]=!0,se[kg]=se[Lo]=se[Vg]=!1;function Rr(e,t,r,n,a,i){var o,s=t&Og,c=t&Ag,u=t&Pg;if(o!==void 0)return o;if(!ke(e))return e;var h=$e(e);if(h){if(o=Xv(e),!s)return Dn(e,o)}else{var l=Ve(e),f=l==Lo||l==jg;if(dr(e))return bo(e,s);if(l==Do||l==jo||f&&!a){if(o=c||f?{}:Io(e),!s)return c?Hv(e,Fv(o,e)):Nv(e,Ov(o,e))}else{if(!se[l])return a?e:{};o=xg(e,l,s)}}i||(i=new Ge);var p=i.get(e);if(p)return p;i.set(e,o),Tg(e)?e.forEach(function(y){o.add(Rr(y,t,r,y,e,i))}):_g(e)&&e.forEach(function(y,x){o.set(x,Rr(y,t,r,x,e,i))});var v=u?c?Gv:Bn:c?vr:pr,g=h?void 0:v(e);return ro(g||e,function(y,x){g&&(x=y,y=e[x]),no(o,x,Rr(y,t,r,x,e,i))}),o}var e0=4;function No(e){return Rr(e,e0)}function Wn(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 t0="[object Symbol]";function gr(e){return typeof e=="symbol"||qe(e)&&dt(e)==t0}var r0="Expected a function";function Rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(r0);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 n0=500;function a0(e){var t=Rn(e,function(n){return r.size===n0&&r.clear(),n}),r=t.cache;return t}var i0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o0=/\\(\\)?/g,Bo=a0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(i0,function(r,n,a,i){t.push(a?i.replace(o0,"$1"):n||r)}),t}),s0=1/0;function br(e){if(typeof e=="string"||gr(e))return e;var t=e+"";return t=="0"&&1/e==-s0?"-0":t}var l0=1/0,Ho=Ke?Ke.prototype:void 0,Go=Ho?Ho.toString:void 0;function Vo(e){if(typeof e=="string")return e;if($e(e))return Wn(e,Vo)+"";if(gr(e))return Go?Go.call(e):"";var t=e+"";return t=="0"&&1/e==-l0?"-0":t}function Uo(e){return e==null?"":Vo(e)}function zo(e){return $e(e)?Wn(e,br):gr(e)?[e]:Dn(Bo(Uo(e)))}var u0=process.env.NODE_ENV==="production";function he(e,t){if(!u0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Kn={exports:{}},ee={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var qo;function q0(){if(qo)return ee;qo=1;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 _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return ee.AsyncMode=c,ee.ConcurrentMode=u,ee.ContextConsumer=s,ee.ContextProvider=o,ee.Element=t,ee.ForwardRef=h,ee.Fragment=n,ee.Lazy=v,ee.Memo=p,ee.Portal=r,ee.Profiler=i,ee.StrictMode=a,ee.Suspense=l,ee.isAsyncMode=function(b){return S(b)||_(b)===c},ee.isConcurrentMode=S,ee.isContextConsumer=function(b){return _(b)===s},ee.isContextProvider=function(b){return _(b)===o},ee.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},ee.isForwardRef=function(b){return _(b)===h},ee.isFragment=function(b){return _(b)===n},ee.isLazy=function(b){return _(b)===v},ee.isMemo=function(b){return _(b)===p},ee.isPortal=function(b){return _(b)===r},ee.isProfiler=function(b){return _(b)===i},ee.isStrictMode=function(b){return _(b)===a},ee.isSuspense=function(b){return _(b)===l},ee.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===m||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},ee.typeOf=_,ee}var te={};/** @license React v16.13.1
8
+ */var Wo;function c0(){if(Wo)return ee;Wo=1;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,f=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,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return ee.AsyncMode=c,ee.ConcurrentMode=u,ee.ContextConsumer=s,ee.ContextProvider=o,ee.Element=t,ee.ForwardRef=h,ee.Fragment=n,ee.Lazy=v,ee.Memo=p,ee.Portal=r,ee.Profiler=i,ee.StrictMode=a,ee.Suspense=l,ee.isAsyncMode=function(b){return S(b)||_(b)===c},ee.isConcurrentMode=S,ee.isContextConsumer=function(b){return _(b)===s},ee.isContextProvider=function(b){return _(b)===o},ee.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},ee.isForwardRef=function(b){return _(b)===h},ee.isFragment=function(b){return _(b)===n},ee.isLazy=function(b){return _(b)===v},ee.isMemo=function(b){return _(b)===p},ee.isPortal=function(b){return _(b)===r},ee.isProfiler=function(b){return _(b)===i},ee.isStrictMode=function(b){return _(b)===a},ee.isSuspense=function(b){return _(b)===l},ee.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},ee.typeOf=_,ee}var te={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
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,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+`
15
+ */var Ro;function f0(){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,f=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,y=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===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,j=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=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 D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=j,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=fe,te.Memo=xe,te.Portal=be,te.Profiler=_e,te.StrictMode=oe,te.Suspense=ye,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=D,te.isLazy=N,te.isMemo=H,te.isPortal=P,te.isProfiler=R,te.isStrictMode=X,te.isSuspense=Se,te.isValidElementType=_,te.typeOf=S}()),te}process.env.NODE_ENV==="production"?Kn.exports=c0():Kn.exports=f0();var d0=Kn.exports,Ko=d0,h0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qo={};qo[Ko.ForwardRef]=h0,qo[Ko.Memo]=p0;function pe(){return pe=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},pe.apply(this,arguments)}function Mt(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}var Te=function(t){return typeof t=="function"},yr=function(t){return t!==null&&typeof t=="object"},v0=function(t){return String(Math.floor(Number(t)))===t},qn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yo=function(t){return d.Children.count(t)===0},Yn=function(t){return yr(t)&&Te(t.then)};function g0(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 Ee(e,t,r,n){n===void 0&&(n=0);for(var a=zo(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function gt(e,t,r){for(var n=No(e),a=n,i=0,o=zo(t);i<o.length-1;i++){var s=o[i],c=Ee(e,o.slice(0,i+1));if(c&&(yr(c)||Array.isArray(c)))a=a[s]=No(c);else{var u=o[i+1];a=a[s]=v0(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 Xo(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];yr(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},Xo(s,t,r,n[o])):n[o]=t}return n}var Kr=d.createContext(void 0);Kr.displayName="FormikContext";var b0=Kr.Provider;Kr.Consumer;function at(){var e=d.useContext(Kr);return e||(process.env.NODE_ENV!=="production"?he(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):he(!1)),e}function y0(e,t){switch(t.type){case"SET_VALUES":return pe({},e,{values:t.payload});case"SET_TOUCHED":return pe({},e,{touched:t.payload});case"SET_ERRORS":return ft(e.errors,t.payload)?e:pe({},e,{errors:t.payload});case"SET_STATUS":return pe({},e,{status:t.payload});case"SET_ISSUBMITTING":return pe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return pe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return pe({},e,{values:gt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return pe({},e,{touched:gt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return pe({},e,{errors:gt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return pe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return pe({},e,{touched:Xo(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return pe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return pe({},e,{isSubmitting:!1});default:return e}}var bt={},qr={};function m0(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=Mt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=pe({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:h},l),p=d.useRef(f.initialValues),v=d.useRef(f.initialErrors||bt),g=d.useRef(f.initialTouched||qr),y=d.useRef(f.initialStatus),x=d.useRef(!1),C=d.useRef({});process.env.NODE_ENV!=="production"&&d.useEffect(function(){typeof s>"u"||(process.env.NODE_ENV!=="production"?he(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):he(!1))},[]),d.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var _=d.useReducer(y0,{values:f.initialValues,errors:f.initialErrors||bt,touched:f.initialTouched||qr,status:f.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=d.useCallback(function(w,I){return new Promise(function(L,V){var Y=f.validate(w,I);Y==null?L(bt):Yn(Y)?Y.then(function(Q){L(Q||bt)},function(Q){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Q),V(Q)}):L(Y)})},[f.validate]),j=d.useCallback(function(w,I){var L=f.validationSchema,V=Te(L)?L(I):L,Y=I&&V.validateAt?V.validateAt(I,w):w0(w,V);return new Promise(function(Q,we){Y.then(function(){Q(bt)},function(Je){Je.name==="ValidationError"?Q(S0(Je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Je),we(Je))})})},[f.validationSchema]),W=d.useCallback(function(w,I){return new Promise(function(L){return L(C.current[w].validate(I))})},[]),q=d.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return Te(C.current[V].validate)}),L=I.length>0?I.map(function(V){return W(V,Ee(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(L).then(function(V){return V.reduce(function(Y,Q,we){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(Y=gt(Y,I[we],Q)),Y},{})})},[W]),ge=d.useCallback(function(w){return Promise.all([q(w),f.validationSchema?j(w):{},f.validate?T(w):{}]).then(function(I){var L=I[0],V=I[1],Y=I[2],Q=Cn.all([L,V,Y],{arrayMerge:E0});return Q})},[f.validate,f.validationSchema,q,T,j]),ae=De(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})});d.useEffect(function(){o&&x.current===!0&&ft(p.current,f.initialValues)&&ae(p.current)},[o,ae]);var fe=d.useCallback(function(w){var I=w&&w.values?w.values:p.current,L=w&&w.errors?w.errors:v.current?v.current:f.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:f.initialTouched||{},Y=w&&w.status?w.status:y.current?y.current:f.initialStatus;p.current=I,v.current=L,g.current=V,y.current=Y;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:L,touched:V,status:Y,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(f.onReset){var we=f.onReset(S.values,Se);Yn(we)?we.then(Q):Q()}else Q()},[f.initialErrors,f.initialStatus,f.initialTouched]);d.useEffect(function(){x.current===!0&&!ft(p.current,f.initialValues)&&(u&&(p.current=f.initialValues,fe()),o&&ae(p.current))},[u,f.initialValues,fe,o,ae]),d.useEffect(function(){u&&x.current===!0&&!ft(v.current,f.initialErrors)&&(v.current=f.initialErrors||bt,b({type:"SET_ERRORS",payload:f.initialErrors||bt}))},[u,f.initialErrors]),d.useEffect(function(){u&&x.current===!0&&!ft(g.current,f.initialTouched)&&(g.current=f.initialTouched||qr,b({type:"SET_TOUCHED",payload:f.initialTouched||qr}))},[u,f.initialTouched]),d.useEffect(function(){u&&x.current===!0&&!ft(y.current,f.initialStatus)&&(y.current=f.initialStatus,b({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var xe=De(function(w){if(C.current[w]&&Te(C.current[w].validate)){var I=Ee(S.values,w),L=C.current[w].validate(I);return Yn(L)?(b({type:"SET_ISVALIDATING",payload:!0}),L.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:L}}),Promise.resolve(L))}else if(f.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),j(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=d.useCallback(function(w,I){var L=I.validate;C.current[w]={validate:L}},[]),_e=d.useCallback(function(w){delete C.current[w]},[]),oe=De(function(w,I){b({type:"SET_TOUCHED",payload:w});var L=I===void 0?a:I;return L?ae(S.values):Promise.resolve()}),ye=d.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=De(function(w,I){var L=Te(w)?w(S.values):w;b({type:"SET_VALUES",payload:L});var V=I===void 0?r:I;return V?ae(L):Promise.resolve()}),Ae=d.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=De(function(w,I,L){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=L===void 0?r:L;return V?ae(gt(S.values,w,I)):Promise.resolve()}),A=d.useCallback(function(w,I){var L=I,V=w,Y;if(!qn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,we=Q.type,Je=Q.name,Oi=Q.id,Ai=Q.value,s5=Q.checked,l5=Q.outerHTML,Ku=Q.options,u5=Q.multiple;L=I||Je||Oi,!L&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:l5,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(we)?(Y=parseFloat(Ai),isNaN(Y)?"":Y):/checkbox/.test(we)?C0(Ee(S.values,L),s5,Ai):Ku&&u5?_0(Ku):Ai}L&&$(L,V)},[$,S.values]),U=De(function(w){if(qn(w))return function(I){return A(I,w)};A(w)}),G=De(function(w,I,L){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=L===void 0?a:L;return V?ae(S.values):Promise.resolve()}),M=d.useCallback(function(w,I){w.persist&&w.persist();var L=w.target,V=L.name,Y=L.id,Q=L.outerHTML,we=I||V||Y;!we&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(we,!0)},[G]),D=De(function(w){if(qn(w))return function(I){return M(I,w)};M(w)}),N=d.useCallback(function(w){Te(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=d.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=d.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),R=De(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,L=!I&&Object.keys(w).length===0;if(L){var V;try{if(V=E(),V===void 0)return}catch(Y){throw Y}return Promise.resolve(V).then(function(Y){return x.current&&b({type:"SUBMIT_SUCCESS"}),Y}).catch(function(Y){if(x.current)throw b({type:"SUBMIT_FAILURE"}),Y})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),X=De(function(w){if(w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var I=g0();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?he(!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"`.'):he(!1)))}R().catch(function(L){console.warn("Warning: An unhandled error was caught from submitForm()",L)})}),Se={resetForm:fe,validateForm:ae,validateField:xe,setErrors:ye,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,setFormikState:N,submitForm:R},E=De(function(){return h(S.values,Se)}),Ce=De(function(w){w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),fe()}),We=d.useCallback(function(w){return{value:Ee(S.values,w),error:Ee(S.errors,w),touched:!!Ee(S.touched,w),initialValue:Ee(p.current,w),initialTouched:!!Ee(g.current,w),initialError:Ee(v.current,w)}},[S.errors,S.touched,S.values]),Et=d.useCallback(function(w){return{setValue:function(L,V){return $(w,L,V)},setTouched:function(L,V){return G(w,L,V)},setError:function(L){return Ae(w,L)}}},[$,G,Ae]),a5=d.useCallback(function(w){var I=yr(w),L=I?w.name:w,V=Ee(S.values,L),Y={name:L,value:V,onChange:U,onBlur:D};if(I){var Q=w.type,we=w.value,Je=w.as,Oi=w.multiple;Q==="checkbox"?we===void 0?Y.checked=!!V:(Y.checked=!!(Array.isArray(V)&&~V.indexOf(we)),Y.value=we):Q==="radio"?(Y.checked=V===we,Y.value=we):Je==="select"&&Oi&&(Y.value=Y.value||[],Y.multiple=!0)}return Y},[D,U,S.values]),Ti=d.useMemo(function(){return!ft(p.current,S.values)},[p.current,S.values]),i5=d.useMemo(function(){return typeof s<"u"?Ti?S.errors&&Object.keys(S.errors).length===0:s!==!1&&Te(s)?s(f):s:S.errors&&Object.keys(S.errors).length===0},[s,Ti,S.errors,f]),o5=pe({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:y.current,handleBlur:D,handleChange:U,handleReset:Ce,handleSubmit:X,resetForm:fe,setErrors:ye,setFormikState:N,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,submitForm:R,validateForm:ae,validateField:xe,isValid:i5,dirty:Ti,unregisterField:_e,registerField:be,getFieldProps:a5,getFieldMeta:We,getFieldHelpers:Et,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return o5}function x0(e){var t=m0(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return d.useImperativeHandle(i,function(){return t}),process.env.NODE_ENV!=="production"&&d.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?he(!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>"):he(!1))},[]),d.createElement(b0,{value:t},r?d.createElement(r,t):a?a(t):n?Te(n)?n(t):Yo(n)?null:d.Children.only(n):null)}function Jo(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
- `)}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};/*! *****************************************************************************
17
+ `)}function S0(e){var t={};if(e.inner){if(e.inner.length===0)return gt(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;Ee(t,o.path)||(t=gt(t,o.path,o.message))}}return t}function w0(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var a=Xn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}function Xn(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||Tn(a)?Xn(a):a!==""?a:void 0}):Tn(e[n])?t[n]=Xn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function E0(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?Cn(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[o]=Cn(e[o],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function _0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function C0(e,t,r){if(typeof e=="boolean")return!!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!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var $0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function De(e){var t=d.useRef(e);return $0(function(){t.current=e}),d.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 yt(e){var t=at(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=yr(e),c=s?e:{name:e},u=c.name,h=c.validate;return d.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"?he(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):he(!1))),u||(process.env.NODE_ENV!=="production"?he(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):he(!1)),[r(c),n(u),a(u)]}function mr(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=Mt(e,["validate","name","render","children","as","component"]),c=at(),u=Mt(c,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&d.useEffect(function(){n&&(process.env.NODE_ENV!=="production"?he(!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>'):he(!1)),i&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):he(!1)),o&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):he(!1)),n&&a&&!Yo(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):he(!1))},[]);var h=u.registerField,l=u.unregisterField;d.useEffect(function(){return h(r,{validate:t}),function(){l(r)}},[h,l,r,t]);var f=u.getFieldProps(pe({name:r},s)),p=u.getFieldMeta(r),v={field:f,form:u};if(n)return n(pe({},v,{meta:p}));if(Te(a))return a(pe({},v,{meta:p}));if(o){if(typeof o=="string"){var g=s.innerRef,y=Mt(s,["innerRef"]);return d.createElement(o,pe({ref:g},f,y),a)}return d.createElement(o,pe({field:f,form:u},s),a)}var x=i||"input";if(typeof x=="string"){var C=s.innerRef,_=Mt(s,["innerRef"]);return d.createElement(x,pe({ref:C},f,_),a)}return d.createElement(x,pe({},f,s),a)}var T0=d.forwardRef(function(e,t){var r=e.action,n=Mt(e,["action"]),a=r??"#",i=at(),o=i.handleReset,s=i.handleSubmit;return d.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},n))});T0.displayName="Form";/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,67 +27,60 @@
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var xe=function(){return xe=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xe.apply(this,arguments)};function Pe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function yb(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{u(n.next(h))}catch(l){o(l)}}function c(h){try{u(n.throw(h))}catch(l){o(l)}}function u(h){h.done?i(h.value):a(h.value).then(s,c)}u((n=n.apply(e,t||[])).next())})}function mb(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return c([u,h])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function xb(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]),u=!Array.isArray(a.value)&&a.value==null;return process.env.NODE_ENV!=="production"&&pe(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),xe(xe({disabled:t??i,indeterminate:u,onBlur:s??function(h){n(h??a.name)}},a),c)}function ts(e){return Y.createElement(vc,xe({},xb(e)))}ts.displayName="FormikMaterialUICheckbox";function Sb(e){var t=this,r=e.disabled,n=e.field;n.onBlur;var a=n.onChange,i=Pe(n,["onBlur","onChange"]),o=e.form,s=o.isSubmitting,c=o.touched,u=o.errors,h=o.setFieldTouched,l=o.setFieldValue,d=e.onClose,p=Pe(e,["disabled","field","form","onClose"]),v=ye(u,i.name),g=ye(c,i.name)&&!!v;return xe(xe({disabled:r??s,error:g,formError:g?v:void 0,onBlur:function(){},onChange:a??function(){},onClose:d??function(m){return yb(t,void 0,void 0,function(){var x;return mb(this,function(C){switch(C.label){case 0:return x=m.target.dataset,x&&x.value?[4,l(i.name,x.value,!1)]:[3,2];case 1:C.sent(),C.label=2;case 2:return h(i.name,!0,!0),[2]}})})}},i),p)}function rs(e){var t=e.formControl,r=e.inputLabel,n=e.formHelperText,a=Pe(e,["formControl","inputLabel","formHelperText"]),i=Sb(a),o=i.error,s=i.formError,c=i.disabled,u=Pe(i,["error","formError","disabled"]),h=n||{},l=h.children,d=Pe(h,["children"]),p=o||l;return Y.createElement(cc,xe({disabled:c,error:o},t),Y.createElement(dc,xe({id:u.labelId},r),u.label),Y.createElement(hc,xe({},u)),p&&Y.createElement(fc,xe({},d),o?s:l))}rs.displayName="FormikMaterialUISelect";function wb(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]);return process.env.NODE_ENV!=="production"&&pe(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),xe(xe({disabled:t??i,onBlur:s??function(u){n(u??a.name)}},a),c)}function ns(e){return Y.createElement(pc,xe({},wb(e)))}ns.displayName="FormikMaterialUISwitch";function Eb(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form,o=i.isSubmitting,s=i.touched,c=i.errors,u=e.onBlur,h=e.helperText,l=Pe(e,["disabled","field","form","onBlur","helperText"]),d=ye(c,a.name),p=ye(s,a.name)&&!!d;return xe(xe({error:p,helperText:p?d:h,disabled:t??o,onBlur:u??function(v){n(v??a.name)}},a),l)}function as(e){var t=e.children,r=Pe(e,["children"]);return Y.createElement(uc,xe({},Eb(r)),t)}as.displayName="FormikMaterialUITextField";function _b(e){var t=e.field;t.onChange;var r=t.onBlur,n=Pe(t,["onChange","onBlur"]),a=e.type,i=e.onChange,o=e.onBlur,s=e.form,c=Pe(e,["field","type","onChange","onBlur","form"]);return process.env.NODE_ENV!=="production"&&(pe(a==="checkbox","property type=checkbox is missing from field "+n.name+", this can caused unexpected behaviour"),c.exclusive||pe(Array.isArray(n.value),"value for "+n.name+" is not an array, this can caused unexpected behaviour")),xe(xe({onBlur:o??function(){r(n.name)},onChange:i??function(u,h){s.setFieldValue(n.name,h)}},n),c)}function is(e){return Y.createElement(gc,xe({},_b(e)))}is.displayName="FormikMaterialUIToggleButtonGroup";var ta={},Cb={get exports(){return ta},set exports(e){ta=e}};/*!***************************************************
30
+ ***************************************************************************** */var me=function(){return me=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},me.apply(this,arguments)};function Pe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function O0(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{u(n.next(h))}catch(l){o(l)}}function c(h){try{u(n.throw(h))}catch(l){o(l)}}function u(h){h.done?i(h.value):a(h.value).then(s,c)}u((n=n.apply(e,[])).next())})}function A0(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return c([u,h])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function P0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]),u=!Array.isArray(a.value)&&a.value==null;return process.env.NODE_ENV!=="production"&&he(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,indeterminate:u,onBlur:s??function(h){n(h??a.name)}},a),c)}function Zo(e){return K.createElement(nc,me({},P0(e)))}Zo.displayName="FormikMaterialUICheckbox";function M0(e){var t=this,r=e.disabled,n=e.field;n.onBlur;var a=n.onChange,i=Pe(n,["onBlur","onChange"]),o=e.form,s=o.isSubmitting,c=o.touched,u=o.errors,h=o.setFieldTouched,l=o.setFieldValue,f=e.onClose,p=Pe(e,["disabled","field","form","onClose"]),v=Ee(u,i.name),g=Ee(c,i.name)&&!!v;return me(me({disabled:r??s,error:g,formError:g?v:void 0,onBlur:function(){},onChange:a??function(){},onClose:f??function(y){return O0(t,void 0,void 0,function(){var x;return A0(this,function(C){switch(C.label){case 0:return x=y.target.dataset,x&&x.value?[4,l(i.name,x.value,!1)]:[3,2];case 1:C.sent(),C.label=2;case 2:return h(i.name,!0,!0),[2]}})})}},i),p)}function Qo(e){var t=e.formControl,r=e.inputLabel,n=e.formHelperText,a=Pe(e,["formControl","inputLabel","formHelperText"]),i=M0(a),o=i.error,s=i.formError,c=i.disabled,u=Pe(i,["error","formError","disabled"]),h=n||{},l=h.children,f=Pe(h,["children"]),p=o||l;return K.createElement(Zu,me({disabled:c,error:o},t),K.createElement(ec,me({id:u.labelId},r),u.label),K.createElement(tc,me({},u)),p&&K.createElement(Qu,me({},f),o?s:l))}Qo.displayName="FormikMaterialUISelect";function I0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]);return process.env.NODE_ENV!=="production"&&he(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,onBlur:s??function(u){n(u??a.name)}},a),c)}function es(e){return K.createElement(rc,me({},I0(e)))}es.displayName="FormikMaterialUISwitch";function F0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form,o=i.isSubmitting,s=i.touched,c=i.errors,u=e.onBlur,h=e.helperText,l=Pe(e,["disabled","field","form","onBlur","helperText"]),f=Ee(c,a.name),p=Ee(s,a.name)&&!!f;return me(me({error:p,helperText:p?f:h,disabled:t??o,onBlur:u??function(v){n(v??a.name)}},a),l)}function ts(e){var t=e.children,r=Pe(e,["children"]);return K.createElement(Ju,me({},F0(r)),t)}ts.displayName="FormikMaterialUITextField";function k0(e){var t=e.field;t.onChange;var r=t.onBlur,n=Pe(t,["onChange","onBlur"]),a=e.type,i=e.onChange,o=e.onBlur,s=e.form,c=Pe(e,["field","type","onChange","onBlur","form"]);return process.env.NODE_ENV!=="production"&&(he(a==="checkbox","property type=checkbox is missing from field "+n.name+", this can caused unexpected behaviour"),c.exclusive||he(Array.isArray(n.value),"value for "+n.name+" is not an array, this can caused unexpected behaviour")),me(me({onBlur:o??function(){r(n.name)},onChange:i??function(u,h){s.setFieldValue(n.name,h)}},n),c)}function rs(e){return K.createElement(ac,me({},k0(e)))}rs.displayName="FormikMaterialUIToggleButtonGroup";var ns={exports:{}};/*!***************************************************
31
31
  * mark.js v8.11.1
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(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`
35
+ *****************************************************/(function(e,t){(function(r,n){e.exports=n()})(rr,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 f=0;f<l.length;f++){var p=l[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,l,f){return l&&u(h.prototype,l),f&&u(h,f),h}}(),i=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var l=arguments[h];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f])}return u},o=function(){function u(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,f=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=f,this.iframesTimeout=p}return a(u,[{key:"getContexts",value:function(){var l=void 0,f=[];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=f.filter(function(g){return g.contains(p)}).length>0;f.indexOf(p)===-1&&!v&&f.push(p)}),f}},{key:"getIframeContents",value:function(l,f){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&&f(v)}},{key:"isIframeBlank",value:function(l){var f="about:blank",p=l.getAttribute("src").trim(),v=l.contentWindow.location.href;return v===f&&p!==f&&p}},{key:"observeIframeLoad",value:function(l,f,p){var v=this,g=!1,y=null,x=function C(){if(!g){g=!0,clearTimeout(y);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,f,p))}catch{p()}}};l.addEventListener("load",x),y=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,f,p){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,f,p):this.getIframeContents(l,f,p):this.observeIframeLoad(l,f,p)}catch{p()}}},{key:"waitForIframes",value:function(l,f){var p=this,v=0;this.forEachIframe(l,function(){return!0},function(g){v++,p.waitForIframes(g.querySelector("html"),function(){--v||f()})},function(g){g||f()})}},{key:"forEachIframe",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=l.querySelectorAll("iframe"),x=y.length,C=0;y=Array.prototype.slice.call(y);var _=function(){--x<=0&&g(C)};x||_(),y.forEach(function(S){u.matches(S,v.exclude)?_():v.onIframeReady(S,function(b){f(S)&&(C++,p(b)),_()},_)})}},{key:"createIterator",value:function(l,f,p){return document.createNodeIterator(l,f,p,!1)}},{key:"createInstanceOnIframe",value:function(l){return new u(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,f,p){var v=l.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(v&g)if(f!==null){var y=f.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(y&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var f=l.previousNode(),p=void 0;return f===null?p=l.nextNode():p=l.nextNode()&&l.nextNode(),{prevNode:f,node:p}}},{key:"checkIframeFilter",value:function(l,f,p,v){var g=!1,y=!1;return v.forEach(function(x,C){x.val===p&&(g=C,y=x.handled)}),this.compareNodeIframe(l,f,p)?(g===!1&&!y?v.push({val:p,handled:!0}):g!==!1&&!y&&(v[g].handled=!0),!0):(g===!1&&v.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,f,p,v){var g=this;l.forEach(function(y){y.handled||g.getIframeContents(y.val,function(x){g.createInstanceOnIframe(x).forEachNode(f,p,v)})})}},{key:"iterateThroughNodes",value:function(l,f,p,v,g){for(var y=this,x=this.createIterator(f,l,v),C=[],_=[],S=void 0,b=void 0,T=function(){var W=y.getIteratorNode(x);return b=W.prevNode,S=W.node,S};T();)this.iframes&&this.forEachIframe(f,function(j){return y.checkIframeFilter(S,b,j,C)},function(j){y.createInstanceOnIframe(j).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(j){p(j)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),x=y.length;x||g(),y.forEach(function(C){var _=function(){v.iterateThroughNodes(l,C,f,p,function(){--x<=0&&g()})};v.iframes?v.waitForIframes(C,_):_()})}}],[{key:"matches",value:function(l,f){var p=typeof f=="string"?[f]:f,v=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(v){var g=!1;return p.every(function(y){return v.call(l,y)?(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 f=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[f]=="function"&&p[f]("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 f=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",v=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in f)if(f.hasOwnProperty(g)){var y=f[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),C=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(y):this.escapeStr(y);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(f){return f.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var f=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(f,p,v){var g=v.charAt(p+1);return/[(|)\\]/.test(g)||g===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(l){var f=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&f.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?l.split(/\u0000+/).join("["+f.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var f=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(y){if(y.indexOf(g)!==-1){if(v.indexOf(y)>-1)return!1;l=l.replace(new RegExp("["+y+"]","gm"+f),"["+y+"]"),v.push(y)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var f=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",v=this.opt.accuracy,g=typeof v=="string"?v:v.value,y=typeof v=="string"?[]:v.limiters,x="";switch(y.forEach(function(C){x+="|"+f.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 f=this,p=[];return l.forEach(function(v){f.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 f=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,y){return g.start-y.start}).forEach(function(g){var y=f.callNoMatchOnInvalidRanges(g,v),x=y.start,C=y.end,_=y.valid;_&&(g.start=x,g.length=C-x,p.push(g),v=C)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(l,f){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-f>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,f,p){var v=void 0,g=!0,y=p.length,x=f-y,C=parseInt(l.start,10)-x;return C=C>y?y:C,v=C+parseInt(l.length,10),v>y&&(v=y,this.log("End range automatically set to the max value of "+y)),C<0||v-C<0||C>y||v>y?(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 f=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 f.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,f,p){var v=this.opt.element?this.opt.element:"mark",g=l.splitText(f),y=g.splitText(p-f),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),y}},{key:"wrapRangeInMappedTextNode",value:function(l,f,p,v,g){var y=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>f){if(!v(x.node))return!1;var S=f-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),j=l.value.substr(b+x.start);if(x.node=y.wrapRangeInTextNode(x.node,S,b),l.value=T+j,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)f=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+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;_=y.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+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;y.wrapRangeInMappedTextNode(C,S,T,function(j){return p(_[x],j)},function(j,W){l.lastIndex=W,v(j)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,f,p,v){var g=this;this.getTextNodes(function(y){var x=y.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,y.value),b=S.start,T=S.end,j=S.valid;j&&g.wrapRangeInMappedTextNode(y,b,T,function(W){return f(W,C,y.value.substring(b,T),_)},function(W){p(W,C)})}),v()})}},{key:"unwrapMatches",value:function(l){for(var f=l.parentNode,p=document.createDocumentFragment();l.firstChild;)p.appendChild(l.removeChild(l.firstChild));f.replaceChild(p,l),this.ie?this.normalizeTextNode(f):f.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,f){var p=this;this.opt=f,this.log('Searching with expression "'+l+'"');var v=0,g="wrapMatches",y=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)},y,function(){v===0&&p.opt.noMatch(l),p.opt.done(v)})}},{key:"mark",value:function(l,f){var p=this;this.opt=f;var v=0,g="wrapMatches",y=this.getSeparatedKeywords(typeof l=="string"?[l]:l),x=y.keywords,C=y.length,_=this.opt.caseSensitive?"":"i",S=function b(T){var j=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+j+'"'),p[g](j,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,f){var p=this;this.opt=f;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(y,x,C,_){return p.opt.filter(y,x,C,_)},function(y,x){v++,p.opt.each(y,x)},function(){p.opt.done(v)})):this.opt.done(v)}},{key:"unmark",value:function(l){var f=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){f.unwrapMatches(v)},function(v){var g=o.matches(v,p),y=f.matchesExclude(v);return!g||y?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(f,p){return l.mark(f,p),h},this.markRegExp=function(f,p){return l.markRegExp(f,p),h},this.markRanges=function(f,p){return l.markRanges(f,p),h},this.unmark=function(f){return l.unmark(f),h},this}return c})})(ns);var j0=ns.exports;const L0=_t(j0),D0=e=>{const[t,r]=d.useState(),n=d.useRef(null);return K.useEffect(()=>{n.current&&r(new L0(n.current))},[n.current]),d.useEffect(()=>{t&&t.unmark({done:()=>{e.searchString&&t.mark(e.searchString)}})},[e.searchString,e.focussedPageKey]),m.jsx("div",{ref:n,children:e.children})},xr=K.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),N0=e=>{const t="",[r,n]=d.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return m.jsx(xr.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},as="rgba(5, 1, 1, 0.26)",B0="rgba(0, 0, 0, 0.54)",is=K.createContext({focussedPageKey:"",goToPage:e=>{},goBack:()=>{}});K.createContext({alreadyFiltering:!1});const os=e=>{const[t,r]=d.useState("");K.useEffect(()=>{var p;const l=K.Children.toArray(e.children).filter(v=>v)[e.currentTopLevelPageIndex||0],f=K.isValidElement(l)?(p=l.props)==null?void 0:p.pageKey:void 0;r(f)},[e.children,e.currentTopLevelPageIndex]);const n=K.useRef(e.initialValues),a=K.useRef(JSON.stringify(e.initialValues)),i=l=>{if(!e.onChange)return;let f=l;f[It]&&(f={...l},delete f[It]);const p=JSON.stringify(f);p!==a.current&&(a.current=p,n.current=f,e.onChange(n.current))},o=()=>{c(s.slice(0,-1)),r(s[s.length-1])},[s,c]=d.useState([]),u=()=>K.Children.map(e.children,l=>l&&l.type===Zn?K.cloneElement(l,{topLevel:!0}):null).filter(l=>l),h=l=>{c([...s,t]),r(l)};return m.jsx(is.Provider,{value:{focussedPageKey:t,goToPage:h,goBack:o},children:m.jsx(x0,{initialValues:e.initialValues,onSubmit:l=>{},children:({values:l,errors:f,touched:p,handleChange:v,handleBlur:g,handleSubmit:y,isSubmitting:x})=>(e.setValueGetter&&e.setValueGetter(()=>l),i(l),m.jsx("form",{onSubmit:y,css:de.css`
36
36
  flex-grow: 1;
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
- //overflow-y: scroll; //allows us to scroll the groups without
39
- //scrolling the heading tabs
40
- overflow-y: auto;
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
- //margin-top: 21px !important;
37
+ `,children:m.jsx(xr.Consumer,{children:({searchString:C})=>C?m.jsx(D0,{searchString:C,focussedPageKey:t,children:u()}):u()})}))})})},H0=e=>{var t;if(e.inFocussedPage){console.log("RowCluster infocuschildren:"+K.Children.count(e.children));const r=K.Children.toArray(e.children).filter(n=>n).length;return m.jsx(F.Paper,{elevation:2,css:de.css`
38
+ //width: 100%; doesn't work with shadow
39
+ margin-left: 2px; //needed to show shadow
40
+ margin-right: 2px; //needed to show shadow
43
41
  margin-bottom: 12px !important;
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
- //width: 100%; doesn't work with shadow
46
- margin-left: 2px; //needed to show shadow
47
- margin-right: 2px; //needed to show shadow
48
- margin-bottom: 12px !important;
49
- `,children:y.jsx(F.List,{component:"nav",css:le.css`
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(F.Divider,{component:"li"},a));return r.concat(o)},[]):null},Vb=e=>y.jsxs(F.ListItem,{css:le.css`
42
+ `,children:m.jsx(F.List,{component:"nav",css:de.css`
43
+ width: calc(100% - 20px);
44
+ `,children:(t=K.Children.map(e.children,(n,a)=>n?m.jsxs(m.Fragment,{children:[K.cloneElement(n,{inFocussedPage:!0}),a<r-1&&m.jsx(F.Divider,{component:"li"},"divider"+a.toString())]}):null))==null?void 0:t.filter(n=>n)})})}else return m.jsx(m.Fragment,{children:K.Children.map(e.children,r=>r&&(r==null?void 0:r.type)===Zn||(r==null?void 0:r.type)===Yr?r:null).filter(r=>r)})},G0=e=>m.jsxs(F.ListItem,{css:de.css`
52
45
  flex-direction: column;
53
46
  // I don't understand why this is needed. Else, it's centered
54
47
  align-items: flex-start;
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`
48
+ `,children:[m.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:ls(e.description)}),e.control]}),Ye=e=>{const t=m.jsx(xr.Consumer,{children:({searchRegEx:r})=>{const n=m.jsxs("div",{css:de.css`
56
49
  display: flex;
57
50
  flex-direction: column;
58
51
  width: 100%;
59
- `,children:[y.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:le.css`
52
+ `,children:[m.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:de.css`
60
53
  /* no: doing this ends up double-fading the label
61
- color: ${e.disabled?ps:"unset"}; */
54
+ color: ${e.disabled?as:"unset"}; */
62
55
  ${e.height?"height:"+e.height:""}
63
56
  ${e.indented&&"margin-left: 30px;"}
64
57
  user-select: none;
65
58
  * {
66
59
  ${e.labelCss}
67
60
  }
68
- `,primary:e.label}),y.jsx(F.ListItemSecondaryAction,{css:le.css`
61
+ `,primary:e.label}),m.jsx(F.ListItemSecondaryAction,{css:de.css`
69
62
  // OK, this feels like a hack. But the MUI default puts it at
70
63
  // top:50% which is fine until you have a secondary label, in
71
64
  // which case the whole thing gets very tall but really the
72
65
  // button should be top-aligned.
73
66
  /// Months later.. but it messed up toggleGroups and I'm not seeing the problem it was solving, at the moment.
74
67
  //top: 22px;
75
- `,children:e.control}),y.jsx(F.Typography,{variant:"caption",css:le.css`
68
+ `,children:e.control}),m.jsx(F.Typography,{variant:"caption",css:de.css`
76
69
  &,
77
70
  * {
78
71
  // this is a hack... we need to figured out how to have this MUI List stuff allow a text along the bottom
79
72
  max-width: calc(100% - 200px);
80
- color: ${e.disabled?ps:"unset"};
73
+ color: ${e.disabled?as:"unset"};
81
74
  }
82
- `,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`
75
+ `,children:ls(e.description)})]});if(r){const a=K.Children.toArray(e.children).filter(i=>i&&r.exec(i.props.label)).length;if(a)return m.jsxs("div",{children:[n,m.jsx("span",{css:de.css`
83
76
  background-color: yellow;
84
- `,children:`${a} matches`})]})}return n}});return e.onClick?y.jsx(F.ListItemButton,{onClick:e.onClick,disabled:e.disabled,children:t}):y.jsx(F.ListItem,{css:le.css`
77
+ `,children:`${a} matches`})]})}return n}});return e.onClick?m.jsx(F.ListItemButton,{onClick:e.onClick,disabled:e.disabled,children:t}):m.jsx(F.ListItem,{css:de.css`
85
78
  height: ${e.height};
86
- `,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`
79
+ `,children:t})};function Xe(e){const{values:t}=at();if(e.overrideValue===void 0)return e;const r=e.path.replace(/[.[\]]/g,"_");let n=t[It];t[It]||(t[It]=n={}),n[r]=e.overrideValue;const a=`${e.description??""} (${e.overrideDescription??""})`.replace(" ()","").trim();return{...e,description:a,disabled:!0,path:It+"."+r}}const It="overrideValue$",V0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(mr,{component:ts,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:m.jsx(F.InputAdornment,{position:"end",children:e.units})}:void 0,css:de.css`
87
80
  input {
88
81
  text-align: end;
89
82
  }
90
- `})})),zb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Wb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Kb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function qb(e){e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const Rb=e=>{e=Xe(e);const t=e.disabled||!sy(!0,e.enableWhen);return y.jsx(Ye,{...e,disabled:t,control:y.jsx(_r,{name:e.path,disabled:t,component:rs,defaultValue:"",displayEmpty:!0,sx:{minWidth:180},css:le.css`
83
+ `})})),U0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},z0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},W0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function R0(e){e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const K0=e=>{e=Xe(e);const t=e.disabled||!nb(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(mr,{name:e.path,disabled:t,component:Qo,defaultValue:"",displayEmpty:!0,sx:{minWidth:180},css:de.css`
91
84
  .MuiSelect-select {
92
85
  padding: 3px !important;
93
86
  padding-left: 9px !important;
@@ -96,16 +89,21 @@
96
89
  * {
97
90
  border-style: none;
98
91
  }
99
- `,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`
100
- .indentIfInSubPage {
92
+ `,children:e.options.map(r=>{if(typeof r=="number")return m.jsx(F.MenuItem,{value:r,children:m.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return n!=null&&n.startsWith("--")?m.jsx(F.Divider,{},n):m.jsx(F.MenuItem,{value:a,children:r.description?m.jsx(F.Tooltip,{title:r.description,children:m.jsx("span",{children:n})}):m.jsx("span",{children:n})},n)})})})},Jn=e=>m.jsxs(m.Fragment,{children:[e.inFocussedPage&&e.label&&m.jsx(F.Typography,{variant:"h3",children:e.label}),m.jsx(H0,{...e,children:e.children})]}),Zn=e=>{var n;const t=e.pageKey||e.label,r=K.Children.toArray(e.children).find(a=>a&&a.type!==Jn&&a.type!==Yr);if(r)throw Error(`<ConfigrPage pageKey='${t}'> ConfigrPage children must be of type ConfigrGroup or ConfigrForEach. Label of offending element is "${(n=r.props)==null?void 0:n.label}"`);return m.jsx(is.Consumer,{children:({focussedPageKey:a,goToPage:i,goBack:o})=>{var s,c;return console.log(`<ConfigrPage pageKey='${t}' inFocussedPage=${e.inFocussedPage} focussedPageKey='${a}'>`),e.inFocussedPage?m.jsx(Ye,{path:t,onClick:()=>i(t),control:m.jsx(Yu,{}),...e}):a===e.pageKey?m.jsxs(m.Fragment,{children:[!e.topLevel&&m.jsxs("div",{css:e.labelCss,children:[m.jsx(F.IconButton,{onClick:()=>o(),children:m.jsx(Xu,{})}),e.label]}),e.topLevel&&e.label&&m.jsx(F.Typography,{variant:"h2",css:de.css`
93
+ margin-bottom: 0.5em;
94
+ `,children:e.label}),m.jsx("div",{css:de.css`
95
+ /* .indentIfInSubPage {
101
96
  margin-left: 20px;
102
97
  //margin-right: 20px;
103
- }
104
- `,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,disabled:e.disabled||e.locked}):y.jsx(_r,{component:ts,type:"checkbox",disabled:e.disabled||e.locked,name:e.path,label:e.label});return y.jsx(Ye,{onClick:()=>{e.locked||n.setValue(!t.value)},control:a,...e,disabled:e.disabled&&!e.locked})},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`
98
+ } */
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: 0.5em;
102
+ `,children:(s=K.Children.map(e.children,u=>u?K.cloneElement(u,{inFocussedPage:!0}):null))==null?void 0:s.filter(u=>u)})]}):m.jsx(K.Fragment,{children:(c=K.Children.map(e.children,u=>u&&u.type===Jn||u&&u.type===Yr?u:null))==null?void 0:c.filter(u=>u)})}})},Yr=e=>{const{values:t}=at(),r=ss(t,e.path);return m.jsx(K.Fragment,{children:r.map((n,a)=>{const i=e.render(`${e.path}[${a}]`,a);return K.cloneElement(i,{inFocussedPage:e.inFocussedPage})})})},q0=e=>{e=Xe(e);const[t,r,n]=yt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?m.jsx(mr,{component:es,type:"checkbox",name:e.path,label:e.label,disabled:e.disabled||e.locked}):m.jsx(mr,{component:Zo,type:"checkbox",disabled:e.disabled||e.locked,name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{e.locked||n.setValue(!t.value)},control:a,...e,disabled:e.disabled&&!e.locked})},Y0=e=>(e=Xe(e),m.jsx(G0,{...e,control:m.jsx(X0,{...e})})),X0=e=>{const[t]=yt(e.path);return m.jsx(F.RadioGroup,{row:e.row,...t,...e,children:e.children})},J0=e=>{const t=F.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(F.FormControlLabel,{value:e.value,control:m.jsx(F.Radio,{}),label:e.label}):m.jsx(K.Fragment,{children:e.children})},Z0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(Q0,{...e})})),Q0=e=>m.jsx(mr,{component:rs,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function eb(e,t){return m.jsx(F.ToggleButton,{value:e,children:t})}const tb=e=>{e=Xe(e);const{setFieldValue:t}=at(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:de.css`
105
103
  height: 56px; // leave room to show the path below the button
106
- `,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`
107
- color: ${Lb};
108
- `,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={};/**
104
+ `,children:[m.jsx(F.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),m.jsx("div",{css:de.css`
105
+ color: ${B0};
106
+ `,children:r.value})]})})},rb=e=>{const[t,r]=d.useState([]);d.useEffect(()=>{r(K.Children.toArray(e.children).filter(o=>o))},[e.children]);const{values:n}=at(),a=e.enableWhen?!e.enableWhen(n):!1;return(e.visibleWhen?e.visibleWhen(n):!0)?m.jsx(K.Fragment,{children:K.Children.map(t,o=>K.isValidElement(o)?K.cloneElement(o,{disabled:a}):o)}):null};function ss(e,t,r,n=0){const a=yh(t);for(;e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function nb(e,t){const{values:r}=at();return t?typeof t=="string"?ss(r,t)===!0:t(r):e}function ls(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(m.jsx("a",{href:r[2],target:"_blank",rel:"noreferrer",children:r[1]})),n=t.lastIndex;return a.push(e.substring(n)),a}const us={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"}}}}},ab={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},cs=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(f=>f(t,l))}},a=()=>t,s={setState:n,getState:a,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{var c;((c=ab)==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},ib=e=>e?cs(e):cs;var Qn={exports:{}},ea={},Xr={exports:{}},ta={};/**
109
107
  * @license React
110
108
  * use-sync-external-store-shim.production.min.js
111
109
  *
@@ -113,7 +111,7 @@
113
111
  *
114
112
  * This source code is licensed under the MIT license found in the
115
113
  * LICENSE file in the root directory of this source tree.
116
- */var Es;function fy(){if(Es)return oa;Es=1;var e=f;function t(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(l,d){var p=d(),v=n({inst:{value:p,getSnapshot:d}}),g=v[0].inst,m=v[1];return i(function(){g.value=p,g.getSnapshot=d,c(g)&&m({inst:g})},[l,p,d]),a(function(){return c(g)&&m({inst:g}),l(function(){c(g)&&m({inst:g})})},[l]),o(p),p}function c(l){var d=l.getSnapshot;l=l.value;try{var p=d();return!r(l,p)}catch{return!0}}function u(l,d){return d()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return oa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,oa}var sa={};/**
114
+ */var fs;function ob(){if(fs)return ta;fs=1;var e=d;function t(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(l,f){var p=f(),v=n({inst:{value:p,getSnapshot:f}}),g=v[0].inst,y=v[1];return i(function(){g.value=p,g.getSnapshot=f,c(g)&&y({inst:g})},[l,p,f]),a(function(){return c(g)&&y({inst:g}),l(function(){c(g)&&y({inst:g})})},[l]),o(p),p}function c(l){var f=l.getSnapshot;l=l.value;try{var p=f();return!r(l,p)}catch{return!0}}function u(l,f){return f()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return ta.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,ta}var ra={};/**
117
115
  * @license React
118
116
  * use-sync-external-store-shim.development.js
119
117
  *
@@ -121,7 +119,7 @@
121
119
  *
122
120
  * This source code is licensed under the MIT license found in the
123
121
  * LICENSE file in the root directory of this source tree.
124
- */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}/**
122
+ */var ds;function sb(){return ds||(ds=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=d,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,j=T.getStackAddendum();j!==""&&(S+="%s",b=b.concat([j]));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 f(_,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 j=S();i(T,j)||(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",y=!g,x=y?v:f,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;ra.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ra}var hs;function ps(){return hs||(hs=1,process.env.NODE_ENV==="production"?Xr.exports=ob():Xr.exports=sb()),Xr.exports}/**
125
123
  * @license React
126
124
  * use-sync-external-store-shim/with-selector.production.min.js
127
125
  *
@@ -129,7 +127,7 @@
129
127
  *
130
128
  * This source code is licensed under the MIT license found in the
131
129
  * LICENSE file in the root directory of this source tree.
132
- */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={};/**
130
+ */var vs;function lb(){if(vs)return ea;vs=1;var e=d,t=ps();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 ea.useSyncExternalStoreWithSelector=function(u,h,l,f,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=f(T),p!==void 0&&g.hasValue){var j=g.value;if(p(j,T))return S=j}return S=T}if(j=S,n(_,T))return j;var W=f(T);return p!==void 0&&p(j,W)?j:(_=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,f,p]);var y=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=y},[y]),c(y),y},ea}var na={};/**
133
131
  * @license React
134
132
  * use-sync-external-store-shim/with-selector.development.js
135
133
  *
@@ -137,10 +135,10 @@
137
135
  *
138
136
  * This source code is licensed under the MIT license found in the
139
137
  * LICENSE file in the root directory of this source tree.
140
- */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(e.selectedGroupIndex??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`
138
+ */var gs;function ub(){return gs||(gs=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=d,t=ps();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,f,p,v){var g=i(null),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,j,W=function(fe){if(!b){b=!0,T=fe;var xe=p(fe);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,xe))return j=be,be}return j=xe,xe}var _e=T,oe=j;if(n(_e,fe))return oe;var ye=p(fe);return v!==void 0&&v(oe,ye)?oe:(T=fe,j=ye,ye)},q=f===void 0?null:f,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,f,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}na.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),na}process.env.NODE_ENV==="production"?Qn.exports=lb():Qn.exports=ub();var cb=Qn.exports;const fb=_t(cb),bs={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useSyncExternalStoreWithSelector:db}=fb;function ys(e,t=e.getState,r){const n=db(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return d.useDebugValue(n),n}const ms=e=>{var t;((t=bs)==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"?ib(e):e,n=(a,i)=>ys(r,a,i);return Object.assign(n,r),n},hb=e=>e?ms(e):ms;var xs=e=>{var t;return((t=bs)==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),hb(e)};const pb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Ss(){var e;((e=pb)==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=d.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=d.useRef();return s.current||(s.current=i()),d.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=d.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return ys(s,i,o)},useStoreApi:()=>{const i=d.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return d.useMemo(()=>({...i}),[i])}}}const ws=(e,t)=>(...r)=>Object.assign({},e,t(...r));var vb=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()}},gb=vb,Es={"text/plain":"Text","text/html":"Url",default:"Text"},bb="Copy to clipboard: #{key}, Enter";function yb(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function mb(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=gb(),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=Es[t.format]||Es.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=yb("message"in t?t.message:bb),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var xb=mb;const _s=_t(xb);function aa(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){aa(e,a,r[a])})}return e}function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}function Sr(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Sb(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function ia(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 wb(e){if(Array.isArray(e))return ia(e)}function Cs(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eb(){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 $s(e,t){if(e){if(typeof e=="string")return ia(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 ia(e,t)}}function it(e){return wb(e)||Cs(e)||$s(e)||Eb()}function _b(e){if(Array.isArray(e))return e}function Cb(){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 _b(e)||Cs(e)||$s(e,t)||Cb()}var oa={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"},Ts={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"},Os=function(){return null};Os.when=function(){return!1};var sa,la,ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Sa,$b=function(e){return xs(ws({enableClipboard:(sa=e.enableClipboard)!==null&&sa!==void 0?sa:!0,indentWidth:(la=e.indentWidth)!==null&&la!==void 0?la:3,groupArraysAfterLength:(ua=e.groupArraysAfterLength)!==null&&ua!==void 0?ua:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(ca=e.collapseStringsAfterLength)!==null&&ca!==void 0?ca:50,maxDisplayLength:(fa=e.maxDisplayLength)!==null&&fa!==void 0?fa:30,rootName:(da=e.rootName)!==null&&da!==void 0?da:"root",onChange:(ha=e.onChange)!==null&&ha!==void 0?ha:function(){},onCopy:(pa=e.onCopy)!==null&&pa!==void 0?pa:void 0,keyRenderer:(va=e.keyRenderer)!==null&&va!==void 0?va:Os,editable:(ga=e.editable)!==null&&ga!==void 0?ga:!1,defaultInspectDepth:(ba=e.defaultInspectDepth)!==null&&ba!==void 0?ba:5,objectSortKeys:(ya=e.objectSortKeys)!==null&&ya!==void 0?ya:!1,quotesOnKeys:(ma=e.quotesOnKeys)!==null&&ma!==void 0?ma:!0,displayDataTypes:(xa=e.displayDataTypes)!==null&&xa!==void 0?xa:!0,inspectCache:{},hoverPath:null,colorspace:oa,value:e.value,displayObjectSize:(Sa=e.displayObjectSize)!==null&&Sa!==void 0?Sa:!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:Sr(ie({},s.inspectCache),aa({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},wa=Ss(),J=wa.useStore,As=wa.useStoreApi,Tb=wa.Provider,Ea=function(){return J(function(e){return e.colorspace.base07})};function ot(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ob(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(d.useState(!1),2),a=n[0],i=n[1],o=d.useRef(null),s=d.useCallback(function(l){var f=o.current;f&&window.clearTimeout(f),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=d.useCallback(function(l,f){if(typeof c=="function")try{var p=c(l,f);ot(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 f=="function"?f.toString():f,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return _s(v)}):_s(v)}},[s,c]),h=d.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Ab=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=it(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 wr(e){return e===null?0:Array.isArray(e)?e.length:ot(e,Map)||ot(e,Set)?e.size:ot(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Pb(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function _a(e,t){var r=J(function(n){return n.value});return d.useMemo(function(){return Ab(r,e,t)},[e,t,r])}function Mb(e,t,r){var n=e.length,a=_a(e,t),i=J(function(f){return f.getInspectCache}),o=J(function(f){return f.setInspectCache}),s=J(function(f){return f.defaultInspectDepth});d.useEffect(function(){var f=i(e,r);if(f===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(d.useState(function(){var f=i(e,r);return f!==void 0?f:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=d.useCallback(function(f){h(function(p){var v=typeof f=="boolean"?f:f(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function Ib(e){"@swc/helpers - typeof";return e&&e.constructor===Symbol?"symbol":typeof e}var st=function(e){return m.jsx(F.Box,Sr(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Ps=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(st,{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=d.memo(t),o=function(u){var h=J(function(f){return f.displayDataTypes}),l=J(function(f){return f.colorspace[r.colorKey]});return m.jsxs(st,{sx:{color:l},children:[a&&h&&m.jsx(Ps,{dataType:e}),m.jsx(st,{className:"".concat(e,"-value"),children:m.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,f=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(F.InputBase,{value:h,onChange:d.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:f,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 Fb=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)},kb=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()},jb="{",Lb="}",Db=function(e){return m.jsxs(F.NoSsr,{children:[m.jsx(Ps,{dataType:"function"}),m.jsxs(F.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[kb(e.value)," ",jb]})]})},Nb=function(){return m.jsx(F.NoSsr,{children:m.jsx(F.Box,{component:"span",className:"data-function-end",children:Lb})})},Bb=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(F.NoSsr,{children:m.jsx(F.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Fb(e.value):m.jsx(F.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function Hb(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 Gb(e,t){if(e==null)return{};var r=Hb(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 mt=function(e){var t=e.d,r=Gb(e,["d"]);return m.jsx(F.SvgIcon,Sr(ie({},r),{children:m.jsx("path",{d:t})}))},Vb="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Ub="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",zb="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",Wb="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",Rb="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",Kb="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",qb="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Ms=function(e){return m.jsx(mt,ie({d:Vb},e))},Yb=function(e){return m.jsx(mt,ie({d:Ub},e))},Xb=function(e){return m.jsx(mt,ie({d:zb},e))},Jb=function(e){return m.jsx(mt,ie({d:Wb},e))},Zb=function(e){return m.jsx(mt,ie({d:Rb},e))},Qb=function(e){return m.jsx(mt,ie({d:Kb},e))},ey=function(e){return m.jsx(mt,ie({d:qb},e))},ty="{",ry="[",ny="}",ay="]";function Is(e){var t=wr(e),r="";return(ot(e,Map)||ot(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 iy=function(e){var t=J(function(c){return c.colorspace.base04}),r=Ea(),n=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=_a(e.path,e.value);return m.jsxs(F.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?ry:ty,o&&e.inspect&&!a&&m.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Xb,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},oy=function(e){var t=J(function(o){return o.colorspace.base04}),r=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]);return m.jsxs(F.Box,{component:"span",className:"data-object-end",children:[r?ay:ny,n&&(a||!e.inspect)?m.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function sy(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var ly=function(e){var t=Ea(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=_a(e.path,e.value),i=Me(d.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=d.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=sy(v);if(g&&!Array.isArray(v)){var y=[];if(ot(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,j=Me(T,2),W=j[0],q=j[1],ge="".concat(W);y.push(m.jsx(Ft,{path:it(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,fe=!0,xe=!1,be=void 0;try{for(var _e=v[Symbol.iterator](),oe;!(fe=(oe=_e.next()).done);fe=!0){var ye=oe.value;y.push(m.jsx(Ft,{path:it(e.path).concat(["iterator:".concat(ae)]),value:ye,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){xe=!0,be=M}finally{try{!fe&&_e.return!=null&&_e.return()}finally{if(xe)throw be}}}return y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,D){var N=it(e.path).concat([D]);return m.jsx(Ft,{path:N,value:M},D)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(st,{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 $=Pb(v,n);return $.map(function(M,D){var N=it(e.path);return m.jsx(Ft,{path:N,value:M,nestedIndex:D},D)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return H.localeCompare(R)}):A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return c(H,R)}));var U=A.slice(0,o).map(function(M){var D=Me(M,2),N=D[0],H=D[1],P=it(e.path).concat([N]);return m.jsx(Ft,{path:P,value:H},N)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(st,{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}),f=e.inspect?l-h:l,p=d.useMemo(function(){return wr(e.value)===0},[e.value]);return p?null:m.jsx(F.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?f-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(F.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},uy=function(){return xs(ws({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Fs=Ss(),cy=Fs.Provider,ks=Fs.useStore,fy={is:function(e){return typeof e=="object"},Component:ly,PreComponent:iy,PostComponent:oy};function dy(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 fy;throw new Error("this is not possible")}return n}function hy(e,t){var r=ks(function(n){return n.registry});return d.useMemo(function(){return dy(e,t,r)},[e,t,r])}function py(){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=d.memo(i.Component,o),i.Editor&&(i.Editor=d.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=d.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=d.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 m.jsx(m.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return!!a}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return ot(a,Date)}},tt("date",function(a){var i=a.value;return m.jsx(m.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 m.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 m.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(d.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 m.jsxs(F.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.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:Bb,PreComponent:Db,PostComponent:Nb});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 m.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 m.jsx(m.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 m.jsx(m.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":Ib(a))==="bigint"}},tt("bigint",function(a){var i=a.value;return m.jsx(m.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var Jr=function(e){return m.jsx(F.Box,Sr(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},Ft=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=d.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(d.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,f=r[l-1],p=J(function(P){return P.hoverPath}),v=d.useMemo(function(){return p&&r.every(function(P,R){return P===p.path[R]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),y=J(function(P){return P.value}),x=Me(Mb(r,t,n),2),C=x[0],_=x[1],S=Me(d.useState(!1),2),b=S[0],T=S[1],j=J(function(P){return P.onChange}),W=Ea(),q=J(function(P){return P.colorspace.base0C}),ge=hy(t,r),ae=ge.Component,fe=ge.PreComponent,xe=ge.PostComponent,be=ge.Editor,_e=J(function(P){return P.quotesOnKeys}),oe=J(function(P){return P.rootName}),ye=y===t,Oe=Number.isInteger(Number(f)),Ae=J(function(P){return P.enableClipboard}),$=Ob(),A=$.copy,U=$.copied,G=d.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Jr,{children:m.jsx(Jb,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Jr,{children:m.jsx(Ms,{sx:{fontSize:".8rem"},onClick:function(){T(!1),j(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Jr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(R){console.error(R)}},children:U?m.jsx(Ms,{sx:{fontSize:".8rem"}}):m.jsx(Zb,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Jr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(Qb,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,j,r,u,t]),M=d.useMemo(function(){return wr(t)===0},[t]),D=!M&&!!(fe&&xe),N=J(function(P){return P.keyRenderer}),H=d.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(F.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:d.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(st,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:d.useCallback(function(P){P.isDefaultPrevented()||M||_(function(R){return!R})},[_]),children:[D?C?m.jsx(ey,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Yb,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,ye?oe!==!1?_e?m.jsxs(m.Fragment,{children:['"',oe,'"']}):m.jsx(m.Fragment,{children:oe}):null:N.when(H)?m.jsx(N,ie({},H)):n===void 0&&(Oe?m.jsx(F.Box,{component:"span",style:{color:q},children:f}):_e?m.jsxs(m.Fragment,{children:['"',f,'"']}):m.jsx(m.Fragment,{children:f})),ye?oe!==!1?m.jsx(st,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(st,{sx:{mr:.5},children:":"}),fe&&m.jsx(fe,ie({},H)),v&&D&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(F.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),xe&&m.jsx(xe,ie({},H)),v&&D&&!C&&G,v&&!D&&G]})},js="(prefers-color-scheme: dark)";function vy(){var e=Me(d.useState(!1),2),t=e[0],r=e[1];return d.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(js).matches);var a=window.matchMedia(js);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Ne(e,t){var r=As();d.useEffect(function(){t!==void 0&&r.setState(aa({},e,t))},[e,t,r])}var gy=function(e){var t=As();Ne("value",e.value),Ne("editable",e.editable),Ne("indentWidth",e.indentWidth),Ne("onChange",e.onChange),Ne("groupArraysAfterLength",e.groupArraysAfterLength),Ne("keyRenderer",e.keyRenderer),Ne("maxDisplayLength",e.maxDisplayLength),Ne("enableClipboard",e.enableClipboard),Ne("rootName",e.rootName),Ne("displayDataTypes",e.displayDataTypes),Ne("displayObjectSize",e.displayObjectSize),Ne("onCopy",e.onCopy),d.useEffect(function(){e.theme==="light"?t.setState({colorspace:oa}):e.theme==="dark"?t.setState({colorspace:Ts}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=d.useRef(!0),n=d.useMemo(function(){return py()},[]),a=ks(function(u){return u.registerTypes});if(r.current){var i,o=it(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}d.useEffect(function(){var u,h=it(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 m.jsx(F.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:d.useCallback(function(){c(null)},[c]),children:m.jsx(Ft,{value:s,path:d.useMemo(function(){return[]},[])})})},by=function(t){var r=vy(),n,a=d.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=d.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ts.base00:oa.base00;return F.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=Sr(ie({},t),{theme:a});return m.jsx(F.ThemeProvider,{theme:i,children:m.jsx(cy,{createStore:uy,children:m.jsx(Tb,{createStore:function(){return $b(t)},children:m.jsx(gy,ie({},o))})})})};const yy=e=>{const[t,r]=d.useState(e.initiallySelectedTopLevelPageIndex??0),n=e.themeOverrides?nt.createTheme(us,e.themeOverrides):nt.createTheme(us),a=K.Children.toArray(e.children).length>1,[i,o]=d.useState(e.initialValues),s=h=>{e.onChange&&e.onChange(h),o(h)},{onChange:c,...u}=e;return m.jsxs("div",{css:de.css`
141
139
  display: flex;
142
- flex-direction: row;
143
- `,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`
140
+ flex-direction: column;
141
+ `,children:[m.jsx(nt.ThemeProvider,{theme:n,children:m.jsx(N0,{children:m.jsx(xr.Consumer,{children:({searchString:h,setSearchString:l})=>m.jsxs(K.Fragment,{children:[e.showAppBar&&m.jsx(uc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:f=>{h!==f&&(l(f),r(f?void 0:0))}}),m.jsxs("div",{id:"configr-pane",css:de.css`
144
142
  // no. Make client set the background color: background-color: #f8f9fa;
145
143
  height: 100%;
146
144
  display: flex;
@@ -149,21 +147,21 @@
149
147
  text-align: left;
150
148
  align-items: start;
151
149
  }
152
- `,className:e.className,children:[a&&y.jsx(Sm,{currentGroup:t,setCurrentGroupIndex:r,children:e.children}),y.jsx(vs,{currentGroupIndex:t,...u,onChange:s})]})]})})})}),e.showJson&&y.jsx("div",{css:le.css`
150
+ `,className:e.className,children:[a&&m.jsx(my,{currentGroup:t,setCurrentAreaIndex:r,children:e.children}),m.jsx(os,{currentTopLevelPageIndex:t,...u,onChange:s})]})]})})})}),e.showJson&&m.jsx("div",{css:de.css`
153
151
  white-space: pre;
154
152
  margin-left: 20px;
155
153
  .data-type-label {
156
154
  color: lightblue;
157
155
  font-size: 7px;
158
156
  }
159
- `,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`
157
+ `,children:m.jsx(by,{value:i})})]})},my=e=>{const t=d.useMemo(()=>K.Children.map(e.children,r=>m.jsx(F.Tab,{label:r.props.label,css:de.css`
160
158
  font-weight: 500;
161
159
  align-items: start;
162
160
  text-transform: unset;
163
161
  color: black;
164
162
  font-weight: 500;
165
163
  font-size: 13px;
166
- `},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`
164
+ `},r.props.label)),[e.children]);return m.jsx(xr.Consumer,{children:({searchString:r,setSearchString:n})=>m.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.setCurrentAreaIndex(i)},centered:!1,orientation:"vertical",css:de.css`
167
165
  min-width: 150px;
168
166
  .MuiTabs-indicator {
169
167
  display: none;
@@ -176,9 +174,9 @@
176
174
  min-height: 0;
177
175
  padding-top: 0;
178
176
  }
179
- `,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%,
177
+ `,children:t})})};var Be={},Er={},xy=ut,Sy=Le,wy=Ze,Ey="[object String]";function _y(e){return typeof e=="string"||!Sy(e)&&wy(e)&&xy(e)==Ey}var Cy=_y;function $y(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 Ty=$y,Oy=Ty,Ay=Oy(),Py=Ay;function My(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Iy=My,Fy=ut,ky=Ze,jy="[object Arguments]";function Ly(e){return ky(e)&&Fy(e)==jy}var Dy=Ly,Ls=Dy,Ny=Ze,Ds=Object.prototype,By=Ds.hasOwnProperty,Hy=Ds.propertyIsEnumerable,Gy=Ls(function(){return arguments}())?Ls:function(e){return Ny(e)&&By.call(e,"callee")&&!Hy.call(e,"callee")},Ns=Gy,Zr={exports:{}};function Vy(){return!1}var Uy=Vy;Zr.exports,function(e,t){var r=Re,n=Uy,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}(Zr,Zr.exports);var Ca=Zr.exports,zy=9007199254740991,Wy=/^(?:0|[1-9]\d*)$/;function Ry(e,t){var r=typeof e;return t=t??zy,!!t&&(r=="number"||r!="symbol"&&Wy.test(e))&&e>-1&&e%1==0&&e<t}var Bs=Ry,Ky=9007199254740991;function qy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ky}var $a=qy,Yy=ut,Xy=$a,Jy=Ze,Zy="[object Arguments]",Qy="[object Array]",em="[object Boolean]",tm="[object Date]",rm="[object Error]",nm="[object Function]",am="[object Map]",im="[object Number]",om="[object Object]",sm="[object RegExp]",lm="[object Set]",um="[object String]",cm="[object WeakMap]",fm="[object ArrayBuffer]",dm="[object DataView]",hm="[object Float32Array]",pm="[object Float64Array]",vm="[object Int8Array]",gm="[object Int16Array]",bm="[object Int32Array]",ym="[object Uint8Array]",mm="[object Uint8ClampedArray]",xm="[object Uint16Array]",Sm="[object Uint32Array]",ce={};ce[hm]=ce[pm]=ce[vm]=ce[gm]=ce[bm]=ce[ym]=ce[mm]=ce[xm]=ce[Sm]=!0,ce[Zy]=ce[Qy]=ce[fm]=ce[em]=ce[dm]=ce[tm]=ce[rm]=ce[nm]=ce[am]=ce[im]=ce[om]=ce[sm]=ce[lm]=ce[um]=ce[cm]=!1;function wm(e){return Jy(e)&&Xy(e.length)&&!!ce[Yy(e)]}var Em=wm;function _m(e){return function(t){return e(t)}}var Ta=_m,Qr={exports:{}};Qr.exports,function(e,t){var r=Mi,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}(Qr,Qr.exports);var Oa=Qr.exports,Cm=Em,$m=Ta,Hs=Oa,Gs=Hs&&Hs.isTypedArray,Tm=Gs?$m(Gs):Cm,Vs=Tm,Om=Iy,Am=Ns,Pm=Le,Mm=Ca,Im=Bs,Fm=Vs,km=Object.prototype,jm=km.hasOwnProperty;function Lm(e,t){var r=Pm(e),n=!r&&Am(e),a=!r&&!n&&Mm(e),i=!r&&!n&&!a&&Fm(e),o=r||n||a||i,s=o?Om(e.length,String):[],c=s.length;for(var u in e)(t||jm.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Im(u,c)))&&s.push(u);return s}var Us=Lm,Dm=Object.prototype;function Nm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dm;return e===r}var Aa=Nm;function Bm(e,t){return function(r){return e(t(r))}}var zs=Bm,Hm=zs,Gm=Hm(Object.keys,Object),Vm=Gm,Um=Aa,zm=Vm,Wm=Object.prototype,Rm=Wm.hasOwnProperty;function Km(e){if(!Um(e))return zm(e);var t=[];for(var r in Object(e))Rm.call(e,r)&&r!="constructor"&&t.push(r);return t}var qm=Km,Ym=Li,Xm=$a;function Jm(e){return e!=null&&Xm(e.length)&&!Ym(e)}var en=Jm,Zm=Us,Qm=qm,e1=en;function t1(e){return e1(e)?Zm(e):Qm(e)}var _r=t1,r1=Py,n1=_r;function a1(e,t){return e&&r1(e,t,n1)}var Ws=a1;function i1(e){return e}var Rs=i1,o1=Rs;function s1(e){return typeof e=="function"?e:o1}var l1=s1,u1=Ws,c1=l1;function f1(e,t){return e&&u1(e,c1(t))}var Pa=f1,d1=zs,h1=d1(Object.getPrototypeOf,Object),Ma=h1,p1=ut,v1=Ma,g1=Ze,b1="[object Object]",y1=Function.prototype,m1=Object.prototype,Ks=y1.toString,x1=m1.hasOwnProperty,S1=Ks.call(Object);function w1(e){if(!g1(e)||p1(e)!=b1)return!1;var t=v1(e);if(t===null)return!0;var r=x1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ks.call(r)==S1}var E1=w1,_1=Nr;function C1(){this.__data__=new _1,this.size=0}var $1=C1;function T1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var O1=T1;function A1(e){return this.__data__.get(e)}var P1=A1;function M1(e){return this.__data__.has(e)}var I1=M1,F1=Nr,k1=Sn,j1=wn,L1=200;function D1(e,t){var r=this.__data__;if(r instanceof F1){var n=r.__data__;if(!k1||n.length<L1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new j1(n)}return r.set(e,t),this.size=r.size,this}var N1=D1,B1=Nr,H1=$1,G1=O1,V1=P1,U1=I1,z1=N1;function kt(e){var t=this.__data__=new B1(e);this.size=t.size}kt.prototype.clear=H1,kt.prototype.delete=G1,kt.prototype.get=V1,kt.prototype.has=U1,kt.prototype.set=z1;var Ia=kt,W1="__lodash_hash_undefined__";function R1(e){return this.__data__.set(e,W1),this}var K1=R1;function q1(e){return this.__data__.has(e)}var Y1=q1,X1=wn,J1=K1,Z1=Y1;function tn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new X1;++t<r;)this.add(e[t])}tn.prototype.add=tn.prototype.push=J1,tn.prototype.has=Z1;var Q1=tn;function ex(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 tx=ex;function rx(e,t){return e.has(t)}var nx=rx,ax=Q1,ix=tx,ox=nx,sx=1,lx=2;function ux(e,t,r,n,a,i){var o=r&sx,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,f=!0,p=r&lx?new ax:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!ix(t,function(x,C){if(!ox(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var qs=ux,cx=Re,fx=cx.Uint8Array,Ys=fx;function dx(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var hx=dx;function px(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var vx=px,Xs=nr,Js=Ys,gx=xn,bx=qs,yx=hx,mx=vx,xx=1,Sx=2,wx="[object Boolean]",Ex="[object Date]",_x="[object Error]",Cx="[object Map]",$x="[object Number]",Tx="[object RegExp]",Ox="[object Set]",Ax="[object String]",Px="[object Symbol]",Mx="[object ArrayBuffer]",Ix="[object DataView]",Zs=Xs?Xs.prototype:void 0,Fa=Zs?Zs.valueOf:void 0;function Fx(e,t,r,n,a,i,o){switch(r){case Ix:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mx:return!(e.byteLength!=t.byteLength||!i(new Js(e),new Js(t)));case wx:case Ex:case $x:return gx(+e,+t);case _x:return e.name==t.name&&e.message==t.message;case Tx:case Ax:return e==t+"";case Cx:var s=yx;case Ox:var c=n&xx;if(s||(s=mx),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=Sx,o.set(e,t);var h=bx(s(e),s(t),n,a,i,o);return o.delete(e),h;case Px:if(Fa)return Fa.call(e)==Fa.call(t)}return!1}var kx=Fx;function jx(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Qs=jx,Lx=Qs,Dx=Le;function Nx(e,t,r){var n=t(e);return Dx(e)?n:Lx(n,r(e))}var el=Nx;function Bx(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 Hx=Bx;function Gx(){return[]}var tl=Gx,Vx=Hx,Ux=tl,zx=Object.prototype,Wx=zx.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,Rx=rl?function(e){return e==null?[]:(e=Object(e),Vx(rl(e),function(t){return Wx.call(e,t)}))}:Ux,ka=Rx,Kx=el,qx=ka,Yx=_r;function Xx(e){return Kx(e,Yx,qx)}var nl=Xx,al=nl,Jx=1,Zx=Object.prototype,Qx=Zx.hasOwnProperty;function eS(e,t,r,n,a,i){var o=r&Jx,s=al(e),c=s.length,u=al(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:Qx.call(t,f)))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 y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){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 tS=eS,rS=ct,nS=Re,aS=rS(nS,"DataView"),iS=aS,oS=ct,sS=Re,lS=oS(sS,"Promise"),uS=lS,cS=ct,fS=Re,dS=cS(fS,"Set"),hS=dS,pS=ct,vS=Re,gS=pS(vS,"WeakMap"),bS=gS,ja=iS,La=Sn,Da=uS,Na=hS,Ba=bS,il=ut,jt=Ni,ol="[object Map]",yS="[object Object]",sl="[object Promise]",ll="[object Set]",ul="[object WeakMap]",cl="[object DataView]",mS=jt(ja),xS=jt(La),SS=jt(Da),wS=jt(Na),ES=jt(Ba),xt=il;(ja&&xt(new ja(new ArrayBuffer(1)))!=cl||La&&xt(new La)!=ol||Da&&xt(Da.resolve())!=sl||Na&&xt(new Na)!=ll||Ba&&xt(new Ba)!=ul)&&(xt=function(e){var t=il(e),r=t==yS?e.constructor:void 0,n=r?jt(r):"";if(n)switch(n){case mS:return cl;case xS:return ol;case SS:return sl;case wS:return ll;case ES:return ul}return t});var rn=xt,Ha=Ia,_S=qs,CS=kx,$S=tS,fl=rn,dl=Le,hl=Ca,TS=Vs,OS=1,pl="[object Arguments]",vl="[object Array]",nn="[object Object]",AS=Object.prototype,gl=AS.hasOwnProperty;function PS(e,t,r,n,a,i){var o=dl(e),s=dl(t),c=o?vl:fl(e),u=s?vl:fl(t);c=c==pl?nn:c,u=u==pl?nn:u;var h=c==nn,l=u==nn,f=c==u;if(f&&hl(e)){if(!hl(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ha),o||TS(e)?_S(e,t,r,n,a,i):CS(e,t,c,r,n,a,i);if(!(r&OS)){var p=h&&gl.call(e,"__wrapped__"),v=l&&gl.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ha),a(g,y,r,n,i)}}return f?(i||(i=new Ha),$S(e,t,r,n,a,i)):!1}var MS=PS,IS=MS,bl=Ze;function yl(e,t,r,n,a){return e===t?!0:e==null||t==null||!bl(e)&&!bl(t)?e!==e&&t!==t:IS(e,t,r,n,yl,a)}var ml=yl,FS=Ia,kS=ml,jS=1,LS=2;function DS(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 FS;if(n)var f=n(u,h,c,e,t,l);if(!(f===void 0?kS(h,u,jS|LS,n,l):f))return!1}}return!0}var NS=DS,BS=Ct;function HS(e){return e===e&&!BS(e)}var xl=HS,GS=xl,VS=_r;function US(e){for(var t=VS(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,GS(a)]}return t}var zS=US;function WS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Sl=WS,RS=NS,KS=zS,qS=Sl;function YS(e){var t=KS(e);return t.length==1&&t[0][2]?qS(t[0][0],t[0][1]):function(r){return r===e||RS(r,e,t)}}var XS=YS,JS=Le,ZS=jr,QS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ew=/^\w*$/;function tw(e,t){if(JS(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ZS(e)?!0:ew.test(e)||!QS.test(e)||t!=null&&e in Object(t)}var Ga=tw,rw=Le,nw=Ga,aw=Vi,iw=Ki;function ow(e,t){return rw(e)?e:nw(e,t)?[e]:aw(iw(e))}var wl=ow,sw=wl,lw=ir;function uw(e,t){t=sw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[lw(t[r++])];return r&&r==n?e:void 0}var El=uw,cw=El;function fw(e,t,r){var n=e==null?void 0:cw(e,t);return n===void 0?r:n}var dw=fw;function hw(e,t){return e!=null&&t in Object(e)}var pw=hw,vw=wl,gw=Ns,bw=Le,yw=Bs,mw=$a,xw=ir;function Sw(e,t,r){t=vw(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=xw(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&&mw(a)&&yw(o,a)&&(bw(e)||gw(e)))}var ww=Sw,Ew=pw,_w=ww;function Cw(e,t){return e!=null&&_w(e,t,Ew)}var $w=Cw,Tw=ml,Ow=dw,Aw=$w,Pw=Ga,Mw=xl,Iw=Sl,Fw=ir,kw=1,jw=2;function Lw(e,t){return Pw(e)&&Mw(t)?Iw(Fw(e),t):function(r){var n=Ow(r,e);return n===void 0&&n===t?Aw(r,e):Tw(t,n,kw|jw)}}var Dw=Lw;function Nw(e){return function(t){return t==null?void 0:t[e]}}var Bw=Nw,Hw=El;function Gw(e){return function(t){return Hw(t,e)}}var Vw=Gw,Uw=Bw,zw=Vw,Ww=Ga,Rw=ir;function Kw(e){return Ww(e)?Uw(Rw(e)):zw(e)}var qw=Kw,Yw=XS,Xw=Dw,Jw=Rs,Zw=Le,Qw=qw;function eE(e){return typeof e=="function"?e:e==null?Jw:typeof e=="object"?Zw(e)?Xw(e[0],e[1]):Yw(e):Qw(e)}var tE=eE,rE=en;function nE(e,t){return function(r,n){if(r==null)return r;if(!rE(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 aE=nE,iE=Ws,oE=aE,sE=oE(iE),lE=sE,uE=lE,cE=en;function fE(e,t){var r=-1,n=cE(e)?Array(e.length):[];return uE(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var dE=fE,hE=yn,pE=tE,vE=dE,gE=Le;function bE(e,t){var r=gE(e)?hE:vE;return r(e,pE(t))}var yE=bE;Object.defineProperty(Er,"__esModule",{value:!0}),Er.flattenNames=void 0;var mE=Cy,xE=an(mE),SE=Pa,wE=an(SE),EE=E1,_E=an(EE),CE=yE,$E=an(CE);function an(e){return e&&e.__esModule?e:{default:e}}var TE=Er.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,$E.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,_E.default)(n)?(0,wE.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,xE.default)(n)&&r.push(n)}),r};Er.default=TE;var Cr={};function OE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var AE=OE,PE=ct,ME=function(){try{var e=PE(Object,"defineProperty");return e({},"",{}),e}catch{}}(),IE=ME,_l=IE;function FE(e,t,r){t=="__proto__"&&_l?_l(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Cl=FE,kE=Cl,jE=xn,LE=Object.prototype,DE=LE.hasOwnProperty;function NE(e,t,r){var n=e[t];(!(DE.call(e,t)&&jE(n,r))||r===void 0&&!(t in e))&&kE(e,t,r)}var $l=NE,BE=$l,HE=Cl;function GE(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?HE(r,s,c):BE(r,s,c)}return r}var on=GE,VE=on,UE=_r;function zE(e,t){return e&&VE(t,UE(t),e)}var WE=zE;function RE(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var KE=RE,qE=Ct,YE=Aa,XE=KE,JE=Object.prototype,ZE=JE.hasOwnProperty;function QE(e){if(!qE(e))return XE(e);var t=YE(e),r=[];for(var n in e)n=="constructor"&&(t||!ZE.call(e,n))||r.push(n);return r}var e_=QE,t_=Us,r_=e_,n_=en;function a_(e){return n_(e)?t_(e,!0):r_(e)}var Va=a_,i_=on,o_=Va;function s_(e,t){return e&&i_(t,o_(t),e)}var l_=s_,sn={exports:{}};sn.exports,function(e,t){var r=Re,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,f=s?s(l):new u.constructor(l);return u.copy(f),f}e.exports=c}(sn,sn.exports);var u_=sn.exports,c_=on,f_=ka;function d_(e,t){return c_(e,f_(e),t)}var h_=d_,p_=Qs,v_=Ma,g_=ka,b_=tl,y_=Object.getOwnPropertySymbols,m_=y_?function(e){for(var t=[];e;)p_(t,g_(e)),e=v_(e);return t}:b_,Tl=m_,x_=on,S_=Tl;function w_(e,t){return x_(e,S_(e),t)}var E_=w_,__=el,C_=Tl,$_=Va;function T_(e){return __(e,$_,C_)}var O_=T_,A_=Object.prototype,P_=A_.hasOwnProperty;function M_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&P_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var I_=M_,Ol=Ys;function F_(e){var t=new e.constructor(e.byteLength);return new Ol(t).set(new Ol(e)),t}var Ua=F_,k_=Ua;function j_(e,t){var r=t?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var L_=j_,D_=/\w*$/;function N_(e){var t=new e.constructor(e.source,D_.exec(e));return t.lastIndex=e.lastIndex,t}var B_=N_,Al=nr,Pl=Al?Al.prototype:void 0,Ml=Pl?Pl.valueOf:void 0;function H_(e){return Ml?Object(Ml.call(e)):{}}var G_=H_,V_=Ua;function U_(e,t){var r=t?V_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var z_=U_,W_=Ua,R_=L_,K_=B_,q_=G_,Y_=z_,X_="[object Boolean]",J_="[object Date]",Z_="[object Map]",Q_="[object Number]",eC="[object RegExp]",tC="[object Set]",rC="[object String]",nC="[object Symbol]",aC="[object ArrayBuffer]",iC="[object DataView]",oC="[object Float32Array]",sC="[object Float64Array]",lC="[object Int8Array]",uC="[object Int16Array]",cC="[object Int32Array]",fC="[object Uint8Array]",dC="[object Uint8ClampedArray]",hC="[object Uint16Array]",pC="[object Uint32Array]";function vC(e,t,r){var n=e.constructor;switch(t){case aC:return W_(e);case X_:case J_:return new n(+e);case iC:return R_(e,r);case oC:case sC:case lC:case uC:case cC:case fC:case dC:case hC:case pC:return Y_(e,r);case Z_:return new n;case Q_:case rC:return new n(e);case eC:return K_(e);case tC:return new n;case nC:return q_(e)}}var gC=vC,bC=Ct,Il=Object.create,yC=function(){function e(){}return function(t){if(!bC(t))return{};if(Il)return Il(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),mC=yC,xC=mC,SC=Ma,wC=Aa;function EC(e){return typeof e.constructor=="function"&&!wC(e)?xC(SC(e)):{}}var _C=EC,CC=rn,$C=Ze,TC="[object Map]";function OC(e){return $C(e)&&CC(e)==TC}var AC=OC,PC=AC,MC=Ta,Fl=Oa,kl=Fl&&Fl.isMap,IC=kl?MC(kl):PC,FC=IC,kC=rn,jC=Ze,LC="[object Set]";function DC(e){return jC(e)&&kC(e)==LC}var NC=DC,BC=NC,HC=Ta,jl=Oa,Ll=jl&&jl.isSet,GC=Ll?HC(Ll):BC,VC=GC,UC=Ia,zC=AE,WC=$l,RC=WE,KC=l_,qC=u_,YC=Pi,XC=h_,JC=E_,ZC=nl,QC=O_,e$=rn,t$=I_,r$=gC,n$=_C,a$=Le,i$=Ca,o$=FC,s$=Ct,l$=VC,u$=_r,c$=Va,f$=1,d$=2,h$=4,Dl="[object Arguments]",p$="[object Array]",v$="[object Boolean]",g$="[object Date]",b$="[object Error]",Nl="[object Function]",y$="[object GeneratorFunction]",m$="[object Map]",x$="[object Number]",Bl="[object Object]",S$="[object RegExp]",w$="[object Set]",E$="[object String]",_$="[object Symbol]",C$="[object WeakMap]",$$="[object ArrayBuffer]",T$="[object DataView]",O$="[object Float32Array]",A$="[object Float64Array]",P$="[object Int8Array]",M$="[object Int16Array]",I$="[object Int32Array]",F$="[object Uint8Array]",k$="[object Uint8ClampedArray]",j$="[object Uint16Array]",L$="[object Uint32Array]",le={};le[Dl]=le[p$]=le[$$]=le[T$]=le[v$]=le[g$]=le[O$]=le[A$]=le[P$]=le[M$]=le[I$]=le[m$]=le[x$]=le[Bl]=le[S$]=le[w$]=le[E$]=le[_$]=le[F$]=le[k$]=le[j$]=le[L$]=!0,le[b$]=le[Nl]=le[C$]=!1;function ln(e,t,r,n,a,i){var o,s=t&f$,c=t&d$,u=t&h$;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!s$(e))return e;var h=a$(e);if(h){if(o=t$(e),!s)return YC(e,o)}else{var l=e$(e),f=l==Nl||l==y$;if(i$(e))return qC(e,s);if(l==Bl||l==Dl||f&&!a){if(o=c||f?{}:n$(e),!s)return c?JC(e,KC(o,e)):XC(e,RC(o,e))}else{if(!le[l])return a?e:{};o=r$(e,l,s)}}i||(i=new UC);var p=i.get(e);if(p)return p;i.set(e,o),l$(e)?e.forEach(function(y){o.add(ln(y,t,r,y,e,i))}):o$(e)&&e.forEach(function(y,x){o.set(x,ln(y,t,r,x,e,i))});var v=u?c?QC:ZC:c?c$:u$,g=h?void 0:v(e);return zC(g||e,function(y,x){g&&(x=y,y=e[x]),WC(o,x,ln(y,t,r,x,e,i))}),o}var D$=ln,N$=D$,B$=1,H$=4;function G$(e){return N$(e,B$|H$)}var V$=G$;Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.mergeClasses=void 0;var U$=Pa,z$=Hl(U$),W$=V$,R$=Hl(W$),K$=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 Hl(e){return e&&e.__esModule?e:{default:e}}var q$=Cr.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,R$.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,z$.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=K$({},n[s],i[s])}),a}),n};Cr.default=q$;var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.autoprefix=void 0;var Y$=Pa,Gl=J$(Y$),X$=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 J$(e){return e&&e.__esModule?e:{default:e}}var Z$={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}}},Q$=$r.autoprefix=function(t){var r={};return(0,Gl.default)(t,function(n,a){var i={};(0,Gl.default)(n,function(o,s){var c=Z$[s];c?i=X$({},i,c(o)):i[s]=o}),r[a]=i}),r};$r.default=Q$;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.hover=void 0;var eT=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},tT=d,za=rT(tT);function rT(e){return e&&e.__esModule?e:{default:e}}function nT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(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 aT(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 iT=Tr.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){aT(a,n);function a(){var i,o,s,c;nT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Vl(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 za.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},za.default.createElement(t,eT({},s.props,s.state)))},o),Vl(s,c)}return a}(za.default.Component)};Tr.default=iT;var Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.active=void 0;var oT=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},sT=d,Wa=lT(sT);function lT(e){return e&&e.__esModule?e:{default:e}}function uT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ul(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 cT(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 fT=Or.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){cT(a,n);function a(){var i,o,s,c;uT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Ul(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 Wa.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wa.default.createElement(t,oT({},s.props,s.state)))},o),Ul(s,c)}return a}(Wa.default.Component)};Or.default=fT;var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});var dT=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};Ra.default=dT,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=Ka=Be.handleHover=Be.hover=void 0;var hT=Er,pT=Lt(hT),vT=Cr,gT=Lt(vT),bT=$r,yT=Lt(bT),mT=Tr,zl=Lt(mT),xT=Or,ST=Lt(xT),wT=Ra,ET=Lt(wT);function Lt(e){return e&&e.__esModule?e:{default:e}}Be.hover=zl.default;var Ka=Be.handleHover=zl.default;Be.handleActive=ST.default,Be.loop=ET.default;var _T=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,pT.default)(n),o=(0,gT.default)(t,i);return(0,yT.default)(o)},z=Be.default=_T,CT=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 f=void 0;if(l<0?f=0:l>s?f=1:f=Math.round(l*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,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},qa={},$T=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},TT=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(qa[i])return qa[i];var o=$T(t,r,n,a);return qa[i]=o,o},Wl=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},Dt=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("+TT(r,n,a,i.canvas)+") center left"}}});return d.isValidElement(c)?d.cloneElement(c,Wl({},c.props,{style:Wl({},c.props.style,u.grid)})):d.createElement("div",{style:u.grid})};Dt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var OT=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},AT=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 PT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(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 MT(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 Ya=function(e){MT(t,e);function t(){var r,n,a,i;PT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=Rl(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=CT(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),Rl(a,i)}return AT(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%,
180
178
  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%,
181
- 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,`
179
+ rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:OT({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return d.createElement("div",{style:i.alpha},d.createElement("div",{style:i.checkboard},d.createElement(Dt,{renderers:this.props.renderers})),d.createElement("div",{style:i.gradient}),d.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("div",{style:i.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:i.slider}))))}}]),t}(d.PureComponent||d.Component),IT=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 FT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jT(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 LT(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 DT=1,Kl=38,NT=40,BT=[Kl,NT],HT=function(t){return BT.indexOf(t)>-1},GT=function(t){return Number(String(t).replace(/%/g,""))},VT=1,Z=function(e){LT(t,e);function t(r){kT(this,t);var n=jT(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=GT(a.target.value);if(!isNaN(i)&&HT(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===Kl?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-"+VT++,n}return IT(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 FT({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DT}},{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 d.createElement("div",{style:a.wrap},d.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?d.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(d.PureComponent||d.Component),UT=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 f=-(h*100/o)+100;l=360*f/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},zT=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 WT(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 RT(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 Nt=function(e){RT(t,e);function t(){var r,n,a,i;WT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=ql(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=UT(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),ql(a,i)}return zT(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 d.createElement("div",{style:o.hue},d.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("style",null,`
182
180
  .hue-horizontal {
183
181
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
184
182
  33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -192,27 +190,27 @@
192
190
  background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
193
191
  #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
194
192
  }
195
- `),f.createElement("div",{style:o.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:o.slider}))))}}]),t}(f.PureComponent||f.Component),O={},ou={get exports(){return O},set exports(e){O=e}},fn={},J2={get exports(){return fn},set exports(e){fn=e}},re={};/** @license React v16.13.1
193
+ `),d.createElement("div",{style:o.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:o.slider}))))}}]),t}(d.PureComponent||d.Component),Xa={exports:{}},un={exports:{}},re={};/** @license React v16.13.1
196
194
  * react-is.production.min.js
197
195
  *
198
196
  * Copyright (c) Facebook, Inc. and its affiliates.
199
197
  *
200
198
  * This source code is licensed under the MIT license found in the
201
199
  * LICENSE file in the root directory of this source tree.
202
- */var su;function Z2(){if(su)return re;su=1;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 _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=s,re.ContextProvider=o,re.Element=t,re.ForwardRef=h,re.Fragment=n,re.Lazy=v,re.Memo=p,re.Portal=r,re.Profiler=i,re.StrictMode=a,re.Suspense=l,re.isAsyncMode=function(b){return S(b)||_(b)===c},re.isConcurrentMode=S,re.isContextConsumer=function(b){return _(b)===s},re.isContextProvider=function(b){return _(b)===o},re.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},re.isForwardRef=function(b){return _(b)===h},re.isFragment=function(b){return _(b)===n},re.isLazy=function(b){return _(b)===v},re.isMemo=function(b){return _(b)===p},re.isPortal=function(b){return _(b)===r},re.isProfiler=function(b){return _(b)===i},re.isStrictMode=function(b){return _(b)===a},re.isSuspense=function(b){return _(b)===l},re.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===m||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},re.typeOf=_,re}var ne={};/** @license React v16.13.1
200
+ */var Yl;function KT(){if(Yl)return re;Yl=1;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,f=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,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=s,re.ContextProvider=o,re.Element=t,re.ForwardRef=h,re.Fragment=n,re.Lazy=v,re.Memo=p,re.Portal=r,re.Profiler=i,re.StrictMode=a,re.Suspense=l,re.isAsyncMode=function(b){return S(b)||_(b)===c},re.isConcurrentMode=S,re.isContextConsumer=function(b){return _(b)===s},re.isContextProvider=function(b){return _(b)===o},re.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},re.isForwardRef=function(b){return _(b)===h},re.isFragment=function(b){return _(b)===n},re.isLazy=function(b){return _(b)===v},re.isMemo=function(b){return _(b)===p},re.isPortal=function(b){return _(b)===r},re.isProfiler=function(b){return _(b)===i},re.isStrictMode=function(b){return _(b)===a},re.isSuspense=function(b){return _(b)===l},re.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},re.typeOf=_,re}var ne={};/** @license React v16.13.1
203
201
  * react-is.development.js
204
202
  *
205
203
  * Copyright (c) Facebook, Inc. and its affiliates.
206
204
  *
207
205
  * This source code is licensed under the MIT license found in the
208
206
  * LICENSE file in the root directory of this source tree.
209
- */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}/*
207
+ */var Xl;function qT(){return Xl||(Xl=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,f=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,y=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===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,j=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=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 D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=j,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=fe,ne.Memo=xe,ne.Portal=be,ne.Profiler=_e,ne.StrictMode=oe,ne.Suspense=ye,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=D,ne.isLazy=N,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=R,ne.isStrictMode=X,ne.isSuspense=Se,ne.isValidElementType=_,ne.typeOf=S}()),ne}var Jl;function Zl(){return Jl||(Jl=1,process.env.NODE_ENV==="production"?un.exports=KT():un.exports=qT()),un.exports}/*
210
208
  object-assign
211
209
  (c) Sindre Sorhus
212
210
  @license MIT
213
- */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," ")+`
214
- 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),
215
- 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,`
211
+ */var Ja,Ql;function YT(){if(Ql)return Ja;Ql=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 Ja=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 f=0;f<u.length;f++)r.call(s,u[f])&&(c[u[f]]=s[u[f]])}}return c},Ja}var Za,eu;function Qa(){if(eu)return Za;eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Za=e,Za}var ei,tu;function ru(){return tu||(tu=1,ei=Function.call.bind(Object.prototype.hasOwnProperty)),ei}var ti,nu;function XT(){if(nu)return ti;nu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qa(),r={},n=ru();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 f=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 f.name="Invariant Violation",f}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={})},ti=a,ti}var ri,au;function JT(){if(au)return ri;au=1;var e=Zl(),t=YT(),r=Qa(),n=ru(),a=XT(),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 ri=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 f="<<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:j,oneOfType:q,shape:fe,exact:xe};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 y($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(D,N,H,P,R,X,Se){if(P=P||f,X=X||H,Se!==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 Ce=P+":"+H;!A[Ce]&&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[Ce]=!0,U++)}}return N[H]==null?D?N[H]===null?new g("The "+R+" `"+X+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+R+" `"+X+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(N,H,P,R,X)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,D,N,H){var P=U[G],R=oe(P);if(R!==$){var X=ye(P);return new g("Invalid "+D+" `"+N+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(A)}function C(){return y(o)}function _($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var P=oe(H);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var R=0;R<H.length;R++){var X=$(H,R,M,D,N+"["+R+"]",r);if(X instanceof Error)return X}return null}return y(A)}function S(){function $(A,U,G,M,D){var N=A[U];if(!s(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y($)}function b(){function $(A,U,G,M,D){var N=A[U];if(!e.isValidElementType(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y($)}function T($){function A(U,G,M,D,N){if(!(U[G]instanceof $)){var H=$.name||f,P=Ae(U[G]);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return y(A)}function j($){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,D,N){for(var H=U[G],P=0;P<$.length;P++)if(v(H,$[P]))return null;var R=JSON.stringify($,function(Se,E){var Ce=ye(E);return Ce==="symbol"?String(E):E});return new g("Invalid "+D+" `"+N+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+R+"."))}return y(A)}function W($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var R in H)if(n(H,R)){var X=$(H,R,M,D,N+"."+R,r);if(X instanceof Error)return X}return null}return y(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,D,N,H,P){for(var R=[],X=0;X<$.length;X++){var Se=$[X],E=Se(M,D,N,H,P,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&R.push(E.data.expectedType)}var Ce=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new g("Invalid "+H+" `"+P+"` supplied to "+("`"+N+"`"+Ce+"."))}return y(G)}function ge(){function $(A,U,G,M,D){return be(A[U])?null:new g("Invalid "+M+" `"+D+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y($)}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 fe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var R in $){var X=$[R];if(typeof X!="function")return ae(M,D,N,R,ye(X));var Se=X(H,R,M,D,N+"."+R,r);if(Se)return Se}return null}return y(A)}function xe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var R=t({},U[G],$);for(var X in R){var Se=$[X];if(n($,X)&&typeof Se!="function")return ae(M,D,N,X,ye(Se));if(!Se)return new g("Invalid "+D+" `"+N+"` key `"+X+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
212
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=Se(H,X,M,D,N+"."+X,r);if(E)return E}return null}return y(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 _e($,A){return $==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function oe($){var A=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":_e(A,$)?"symbol":A}function ye($){if(typeof $>"u"||$===null)return""+$;var A=oe($);if(A==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return A}function Oe($){var A=ye($);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?f:$.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ri}var ni,iu;function ZT(){if(iu)return ni;iu=1;var e=Qa();function t(){}function r(){}return r.resetWarningCache=t,ni=function(){function n(o,s,c,u,h,l){if(l!==e){var f=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 f.name="Invariant Violation",f}}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},ni}if(process.env.NODE_ENV!=="production"){var QT=Zl(),e2=!0;Xa.exports=JT()(QT.isElement,e2)}else Xa.exports=ZT()();var t2=Xa.exports;const O=_t(t2);function ai(e,t,r){(r!==void 0&&!lr(e[t],r)||r===void 0&&!(t in e))&&Pn(e,t,r)}function r2(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[++a];if(r(i[c],c,i)===!1)break}return t}}var ou=r2();function n2(e){return qe(e)&&Pt(e)}function ii(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function a2(e){return fr(e,vr(e))}function i2(e,t,r,n,a,i,o){var s=ii(e,r),c=ii(t,r),u=o.get(c);if(u){ai(e,r,u);return}var h=i?i(s,c,r+"",e,t,o):void 0,l=h===void 0;if(l){var f=$e(c),p=!f&&dr(c),v=!f&&!p&&jn(c);h=c,f||p||v?$e(s)?h=s:n2(s)?h=Dn(s):p?(l=!1,h=bo(c,!0)):v?(l=!1,h=Po(c,!0)):h=[]:Tn(c)||zr(c)?(h=s,zr(s)?h=a2(s):(!ke(s)||On(s))&&(h=Io(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),ai(e,r,h)}function su(e,t,r,n,a){e!==t&&ou(t,function(i,o){if(a||(a=new Ge),ke(i))i2(e,t,o,r,su,n,a);else{var s=n?n(ii(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),ai(e,o,s)}},vr)}function cn(e){return e}function o2(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 lu=Math.max;function s2(e,t,r){return t=lu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=lu(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),o2(e,this,s)}}function l2(e){return function(){return e}}var u2=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:l2(t),writable:!0})}:cn,c2=800,f2=16,d2=Date.now;function h2(e){var t=0,r=0;return function(){var n=d2(),a=f2-(n-r);if(r=n,a>0){if(++t>=c2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p2=h2(u2);function v2(e,t){return p2(s2(e,t,cn),e+"")}function g2(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?Pt(r)&&Mn(t,r.length):n=="string"&&t in r)?lr(r[t],e):!1}function b2(e){return v2(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&&g2(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 Ie=b2(function(e,t,r){su(e,t,r)}),Ar=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 d.createElement("div",{style:c.wrap},d.createElement("div",{style:c.bg}),d.createElement("div",{style:c.content},i))};Ar.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},Ar.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var oi=function(){return He.Date.now()},y2=/\s/;function m2(e){for(var t=e.length;t--&&y2.test(e.charAt(t)););return t}var x2=/^\s+/;function S2(e){return e&&e.slice(0,m2(e)+1).replace(x2,"")}var uu=NaN,w2=/^[-+]0x[0-9a-f]+$/i,E2=/^0b[01]+$/i,_2=/^0o[0-7]+$/i,C2=parseInt;function cu(e){if(typeof e=="number")return e;if(gr(e))return uu;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=S2(e);var r=E2.test(e);return r||_2.test(e)?C2(e.slice(2),r?2:8):w2.test(e)?uu:+e}var $2="Expected a function",T2=Math.max,O2=Math.min;function fu(e,t,r){var n,a,i,o,s,c,u=0,h=!1,l=!1,f=!0;if(typeof e!="function")throw new TypeError($2);t=cu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?T2(cu(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function p(T){var j=n,W=a;return n=a=void 0,u=T,o=e.apply(W,j),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var j=T-c,W=T-u,q=t-j;return l?O2(q,i-W):q}function y(T){var j=T-c,W=T-u;return c===void 0||j>=t||j<0||l&&W>=i}function x(){var T=oi();if(y(T))return C(T);s=setTimeout(x,g(T))}function C(T){return s=void 0,f&&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(oi())}function b(){var T=oi(),j=y(T);if(n=arguments,a=this,c=T,j){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 A2="Expected a function";function P2(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(A2);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),fu(e,t,{leading:n,maxWait:t,trailing:a})}var M2=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,f=1-h/o;return{h:r.h,s:l,v:f,a:r.a,source:"hsv"}},I2=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 F2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k2(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 fn=function(e){j2(t,e);function t(r){F2(this,t);var n=k2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,M2(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=P2(function(a,i,o){a(i,o)},50),n}return I2(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),
213
+ 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 d.createElement("div",{style:h.color,ref:function(f){return n.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("style",null,`
216
214
  .saturation-white {
217
215
  background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
218
216
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -221,16 +219,17 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,X,M,N,L+"."+X
221
219
  background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
222
220
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
223
221
  }
224
- `),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`
222
+ `),d.createElement("div",{style:h.white,className:"saturation-white"},d.createElement("div",{style:h.black,className:"saturation-black"}),d.createElement("div",{style:h.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:h.circle}))))}}]),t}(d.PureComponent||d.Component);function L2(e,t){return e&&ou(e,t,pr)}function D2(e,t){return function(r,n){if(r==null)return r;if(!Pt(r))return e(r,n);for(var a=r.length,i=-1,o=Object(r);++i<a&&n(o[i],i,o)!==!1;);return r}}var du=D2(L2);function N2(e){return typeof e=="function"?e:cn}function B2(e,t){var r=$e(e)?ro:du;return r(e,N2(t))}function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}var H2=/^\s+/,G2=/\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=V2(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=yu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=pu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=pu(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=hu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=hu(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 vu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return R2(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:aO[vu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+gu(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=k(t);n="#"+gu(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(X2,arguments)},brighten:function(){return this._applyModification(J2,arguments)},darken:function(){return this._applyModification(Z2,arguments)},desaturate:function(){return this._applyModification(K2,arguments)},saturate:function(){return this._applyModification(q2,arguments)},greyscale:function(){return this._applyModification(Y2,arguments)},spin:function(){return this._applyModification(Q2,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rO,arguments)},complement:function(){return this._applyCombination(eO,arguments)},monochromatic:function(){return this._applyCombination(nO,arguments)},splitcomplement:function(){return this._applyCombination(tO,arguments)},triad:function(){return this._applyCombination(bu,[3])},tetrad:function(){return this._applyCombination(bu,[4])}},k.fromRatio=function(e,t){if(dn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Pr(e[n]));e=r}return k(e,t)};function V2(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=lO(e)),dn(e)=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(t=U2(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=Pr(e.s),a=Pr(e.v),t=W2(e.h,n,a),o=!0,s="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(n=Pr(e.s),i=Pr(e.l),t=z2(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=yu(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 U2(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function hu(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 z2(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 pu(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 W2(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 vu(e,t,r,n){var a=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(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 R2(e,t,r,n,a){var i=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16)),Ue(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 gu(e,t,r,n){var a=[Ue(mu(n)),Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(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 K2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s-=t/100,r.s=hn(r.s),k(r)}function q2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s+=t/100,r.s=hn(r.s),k(r)}function Y2(e){return k(e).desaturate(100)}function X2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l+=t/100,r.l=hn(r.l),k(r)}function J2(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 Z2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l-=t/100,r.l=hn(r.l),k(r)}function Q2(e,t){var r=k(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,k(r)}function eO(e){var t=k(e).toHsl();return t.h=(t.h+180)%360,k(t)}function bu(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 tO(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 rO(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 nO(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=uO(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 si=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"},aO=k.hexNames=iO(si);function iO(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function yu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){oO(e)&&(e="100%");var r=sO(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 hn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function oO(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function sO(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ue(e){return e.length==1?"0"+e:""+e}function Pr(e){return e<=1&&(e=e*100+"%"),e}function mu(e){return Math.round(parseFloat(e)*255).toString(16)}function xu(e){return je(e)/255}var ze=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!!ze.CSS_UNIT.exec(e)}function lO(e){e=e.replace(H2,"").replace(G2,"").toLowerCase();var t=!1;if(si[e])e=si[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ze.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ze.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ze.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ze.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ze.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ze.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ze.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:xu(r[4]),format:t?"name":"hex8"}:(r=ze.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=ze.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:xu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ze.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 uO(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 Su=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return B2(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},Mr=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}},lt=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()},li=function(t){if(!t)return"#fff";var r=Mr(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"},ui=function(t,r){var n=t.replace("°","");return k(r+" ("+n+")")._ok},Ir=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},cO=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 fO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dO(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 hO(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){hO(a,n);function a(i){fO(this,a);var o=dO(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Su(s);if(u){var h=Mr(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=Su(s);if(u){var h=Mr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=Ir({},Mr(i.color,0)),o.debounce=fu(function(s,c,u){s(c,u)},100),o}return cO(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),d.createElement(t,Ir({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Ir({},Mr(o.color,s.oldHue))}}]),a}(d.PureComponent||d.Component);return r.propTypes=Ir({},t.propTypes),r.defaultProps=Ir({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},pO=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},vO=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 gO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(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 bO(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 yO=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){bO(a,n);function a(){var i,o,s,c;gO(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=wu(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),wu(s,c)}return vO(a,[{key:"render",value:function(){return d.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},d.createElement(t,pO({},this.props,this.state)))}}]),a}(d.Component)},Eu=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},mO=13,xO=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,f=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Eu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?f:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===mO&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),d.createElement("div",Eu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&d.createElement(Dt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=yO(xO);var SO=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 d.createElement("div",{style:n.picker})},wO=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},_u=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,f=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return d.createElement("div",{style:p.picker,className:"alpha-picker "+f},d.createElement(Ya,wO({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};_u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SO},Fe(_u);var EO="__lodash_hash_undefined__";function _O(e){return this.__data__.set(e,EO),this}function CO(e){return this.__data__.has(e)}function pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new et;++t<r;)this.add(e[t])}pn.prototype.add=pn.prototype.push=_O,pn.prototype.has=CO;function $O(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 TO(e,t){return e.has(t)}var OO=1,AO=2;function Cu(e,t,r,n,a,i){var o=r&OO,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,f=!0,p=r&AO?new pn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!$O(t,function(x,C){if(!TO(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function PO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function MO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var IO=1,FO=2,kO="[object Boolean]",jO="[object Date]",LO="[object Error]",DO="[object Map]",NO="[object Number]",BO="[object RegExp]",HO="[object Set]",GO="[object String]",VO="[object Symbol]",UO="[object ArrayBuffer]",zO="[object DataView]",$u=Ke?Ke.prototype:void 0,ci=$u?$u.valueOf:void 0;function WO(e,t,r,n,a,i,o){switch(r){case zO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UO:return!(e.byteLength!=t.byteLength||!i(new Wr(e),new Wr(t)));case kO:case jO:case NO:return lr(+e,+t);case LO:return e.name==t.name&&e.message==t.message;case BO:case GO:return e==t+"";case DO:var s=PO;case HO:var c=n&IO;if(s||(s=MO),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=FO,o.set(e,t);var h=Cu(s(e),s(t),n,a,i,o);return o.delete(e),h;case VO:if(ci)return ci.call(e)==ci.call(t)}return!1}var RO=1,KO=Object.prototype,qO=KO.hasOwnProperty;function YO(e,t,r,n,a,i){var o=r&RO,s=Bn(e),c=s.length,u=Bn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:qO.call(t,f)))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 y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){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 XO=1,Tu="[object Arguments]",Ou="[object Array]",vn="[object Object]",JO=Object.prototype,Au=JO.hasOwnProperty;function ZO(e,t,r,n,a,i){var o=$e(e),s=$e(t),c=o?Ou:Ve(e),u=s?Ou:Ve(t);c=c==Tu?vn:c,u=u==Tu?vn:u;var h=c==vn,l=u==vn,f=c==u;if(f&&dr(e)){if(!dr(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ge),o||jn(e)?Cu(e,t,r,n,a,i):WO(e,t,c,r,n,a,i);if(!(r&XO)){var p=h&&Au.call(e,"__wrapped__"),v=l&&Au.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ge),a(g,y,r,n,i)}}return f?(i||(i=new Ge),YO(e,t,r,n,a,i)):!1}function fi(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:ZO(e,t,r,n,fi,a)}var QO=1,eA=2;function tA(e,t,r,n){var a=r.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=r[a];var s=o[0],c=e[s],u=o[1];if(o[2]){if(c===void 0&&!(s in e))return!1}else{var h=new Ge,l;if(!(l===void 0?fi(u,c,QO|eA,n,h):l))return!1}}return!0}function Pu(e){return e===e&&!ke(e)}function rA(e){for(var t=pr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Pu(a)]}return t}function Mu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function nA(e){var t=rA(e);return t.length==1&&t[0][2]?Mu(t[0][0],t[0][1]):function(r){return r===e||tA(r,e,t)}}var aA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iA=/^\w*$/;function di(e,t){if($e(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gr(e)?!0:iA.test(e)||!aA.test(e)||t!=null&&e in Object(t)}function Iu(e,t){return $e(e)?e:di(e,t)?[e]:Bo(Uo(e))}function Fu(e,t){t=Iu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[br(t[r++])];return r&&r==n?e:void 0}function oA(e,t,r){var n=e==null?void 0:Fu(e,t);return n===void 0?r:n}function sA(e,t){return e!=null&&t in Object(e)}function lA(e,t,r){t=Iu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=br(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&&In(a)&&Mn(o,a)&&($e(e)||zr(e)))}function uA(e,t){return e!=null&&lA(e,t,sA)}var cA=1,fA=2;function dA(e,t){return di(e)&&Pu(t)?Mu(br(e),t):function(r){var n=oA(r,e);return n===void 0&&n===t?uA(r,e):fi(t,n,cA|fA)}}function hA(e){return function(t){return t==null?void 0:t[e]}}function pA(e){return function(t){return Fu(t,e)}}function vA(e){return di(e)?hA(br(e)):pA(e)}function gA(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?$e(e)?dA(e[0],e[1]):nA(e):vA(e)}function bA(e,t){var r=-1,n=Pt(e)?Array(e.length):[];return du(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=$e(e)?Wn:bA;return r(e,gA(t))}var yA=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 d.createElement("div",{style:i.swatches},wt(r,function(o){return d.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),d.createElement("div",{style:i.clear}))},hi=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,f=a==="transparent",p=function(y,x){lt(y)&&r({hex:y,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:li(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 d.createElement("div",{style:v.card,className:"block-picker "+l},d.createElement("div",{style:v.triangle}),d.createElement("div",{style:v.head},f&&d.createElement(Dt,{borderRadius:"6px 6px 0 0"}),d.createElement("div",{style:v.label},a)),d.createElement("div",{style:v.body},d.createElement(yA,{colors:i,onClick:p,onSwatchHover:n}),d.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};hi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},hi.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(hi);var Bt={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"},Ht={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"},Gt={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"},Vt={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"},Ut={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"},zt={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"},Wt={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"},Rt={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"},Kt={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"},Fr={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"},qt={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"},Yt={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"},Xt={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"},Jt={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"},Zt={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"},Qt={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"},er={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},tr={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 d.createElement("div",{style:u.swatch},d.createElement(St,{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 mA=Ka(ku);var pi=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,f=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(y,x){return n({hex:y,source:"hex"},x)};return d.createElement("div",{style:p.card,className:"circle-picker "+f},wt(i,function(g){return d.createElement(mA,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};pi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},pi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Bt[500],Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Rt[500],Kt[500],Fr[500],qt[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500]],styles:{}},Fe(pi);function ju(e){return e===void 0}var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var 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},xA=d,Nu=SA(xA);function SA(e){return e&&e.__esModule?e:{default:e}}function wA(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 gn=24,EA=Lu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?gn:n,i=e.height,o=i===void 0?gn:i,s=e.style,c=s===void 0?{}:s,u=wA(e,["fill","width","height","style"]);return Nu.default.createElement("svg",Du({viewBox:"0 0 "+gn+" "+gn,style:Du({fill:r,width:a,height:o},c)},u),Nu.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"}))},_A=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 CA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $A(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 Bu=function(e){TA(t,e);function t(r){CA(this,t);var n=$A(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?lt(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(ju(a.s)?n.props.hsl.s:a.s),l:Number(ju(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 _A(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=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.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=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),d.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,d.createElement("div",{style:a.toggle},d.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},d.createElement(EA,{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}(d.Component);Bu.defaultProps={view:"hex"};var Hu=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 d.createElement("div",{style:t.picker})},OA=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return d.createElement("div",{style:t.picker})},vi=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,f=t.className,p=f===void 0?"":f,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 d.createElement("div",{style:g.picker,className:"chrome-picker "+p},d.createElement("div",{style:g.saturation},d.createElement(fn,{style:g.Saturation,hsl:o,hsv:s,pointer:OA,onChange:n})),d.createElement("div",{style:g.body},d.createElement("div",{style:g.controls,className:"flexbox-fix"},d.createElement("div",{style:g.color},d.createElement("div",{style:g.swatch},d.createElement("div",{style:g.active}),d.createElement(Dt,{renderers:u}))),d.createElement("div",{style:g.toggles},d.createElement("div",{style:g.hue},d.createElement(Nt,{style:g.Hue,hsl:o,pointer:Hu,onChange:n})),d.createElement("div",{style:g.alpha},d.createElement(Ya,{style:g.Alpha,rgb:i,hsl:o,pointer:Hu,renderers:u,onChange:n})))),d.createElement(Bu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};vi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},vi.defaultProps={width:225,disableAlpha:!1,styles:{}};const AA=Fe(vi);var PA=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:li(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 d.createElement(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:s.dot}))},MA=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 d.createElement("div",{style:i.fields,className:"flexbox-fix"},d.createElement("div",{style:i.active}),d.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},gi=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)),f=function(v,g){v.hex?lt(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return d.createElement(Ar,{style:l.Compact,styles:c},d.createElement("div",{style:l.compact,className:"compact-picker "+h},d.createElement("div",null,wt(a,function(p){return d.createElement(PA,{key:p,color:p,active:p.toLowerCase()===i,onClick:f,onSwatchHover:n})}),d.createElement("div",{style:l.clear})),d.createElement(MA,{hex:i,rgb:o,onChange:f})))};gi.propTypes={colors:O.arrayOf(O.string),styles:O.object},gi.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(gi);var IA=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 d.createElement("div",{style:s.swatch},d.createElement(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const FA=Ka(IA);var bi=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"}),f=function(v,g){return a({hex:v,source:"hex"},g)};return d.createElement("div",{style:l.card,className:"github-picker "+h},d.createElement("div",{style:l.triangleShadow}),d.createElement("div",{style:l.triangle}),wt(n,function(p){return d.createElement(FA,{color:p,key:p,onClick:f,onSwatchHover:i})}))};bi.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},bi.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(bi);var kA=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 d.createElement("div",{style:n.picker})},jA=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},yi=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,f=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 d.createElement("div",{style:f.picker,className:"hue-picker "+l},d.createElement(Nt,jA({},f.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};yi.propTypes={styles:O.object},yi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:kA,styles:{}},Fe(yi);var LA=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(f,p){f.hex?lt(f.hex)&&r({hex:f.hex,source:"hex"},p):(f.r||f.g||f.b)&&r({r:f.r||a.r,g:f.g||a.g,b:f.b||a.b,source:"rgb"},p)};return d.createElement(Ar,{styles:o},d.createElement("div",{style:u.material,className:"material-picker "+c},d.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),d.createElement("div",{style:u.split,className:"flexbox-fix"},d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(LA);var DA=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["#"]?lt(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 d.createElement("div",{style:o.fields},d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),d.createElement("div",{style:o.fieldSymbols},d.createElement("div",{style:o.symbol},"°"),d.createElement("div",{style:o.symbol},"%"),d.createElement("div",{style:o.symbol},"%")))},NA=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 d.createElement("div",{style:n.picker})},BA=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 d.createElement("div",{style:t.pointer},d.createElement("div",{style:t.left},d.createElement("div",{style:t.leftInside})),d.createElement("div",{style:t.right},d.createElement("div",{style:t.rightInside})))},Gu=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 d.createElement("div",{style:o.button,onClick:r},n||a)},HA=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 d.createElement("div",null,d.createElement("div",{style:a.label},"new"),d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.new}),d.createElement("div",{style:a.current})),d.createElement("div",{style:a.label},"current"))},GA=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 VA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(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 zA(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 mi=function(e){zA(t,e);function t(r){VA(this,t);var n=UA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return GA(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 d.createElement("div",{style:c.picker,className:"photoshop-picker "+s},d.createElement("div",{style:c.head},this.props.header),d.createElement("div",{style:c.body,className:"flexbox-fix"},d.createElement("div",{style:c.saturation},d.createElement(fn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:NA,onChange:this.props.onChange})),d.createElement("div",{style:c.hue},d.createElement(Nt,{direction:"vertical",hsl:this.props.hsl,pointer:BA,onChange:this.props.onChange})),d.createElement("div",{style:c.controls},d.createElement("div",{style:c.top,className:"flexbox-fix"},d.createElement("div",{style:c.previews},d.createElement(HA,{rgb:this.props.rgb,currentColor:this.state.currentColor})),d.createElement("div",{style:c.actions},d.createElement(Gu,{label:"OK",onClick:this.props.onAccept,active:!0}),d.createElement(Gu,{label:"Cancel",onClick:this.props.onCancel}),d.createElement(DA,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(d.Component);mi.propTypes={header:O.string,styles:O.object},mi.defaultProps={header:"Color Picker",styles:{}},Fe(mi);var WA=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?lt(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 d.createElement("div",{style:s.fields,className:"flexbox-fix"},d.createElement("div",{style:s.double},d.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.alpha},d.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},RA=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},Vu=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 d.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 d.createElement("div",{key:h,style:o.swatchWrap},d.createElement(St,RA({},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}})))}))};Vu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var KA=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.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,f=t.styles,p=f===void 0?{}:f,v=t.className,g=v===void 0?"":v,y=z(Ie({default:KA({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 d.createElement("div",{style:y.picker,className:"sketch-picker "+g},d.createElement("div",{style:y.saturation},d.createElement(fn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),d.createElement("div",{style:y.controls,className:"flexbox-fix"},d.createElement("div",{style:y.sliders},d.createElement("div",{style:y.hue},d.createElement(Nt,{style:y.Hue,hsl:o,onChange:s})),d.createElement("div",{style:y.alpha},d.createElement(Ya,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),d.createElement("div",{style:y.color},d.createElement(Dt,null),d.createElement("div",{style:y.activeColor}))),d.createElement(WA,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),d.createElement(Vu,{colors:h,onClick:s,onSwatchHover:c}))};xi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},xi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(xi);var kr=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(f){return i({h:r.h,s:.5,l:n,source:"hsl"},f)};return d.createElement("div",{style:u.swatch,onClick:h})},qA=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 d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),d.createElement("div",{style:a.clear}))},YA=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 d.createElement("div",{style:t.picker})},Si=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 d.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},d.createElement("div",{style:u.hue},d.createElement(Nt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),d.createElement("div",{style:u.swatches},d.createElement(qA,{hsl:r,onClick:n})))};Si.propTypes={styles:O.object},Si.defaultProps={pointer:YA,styles:{}},Fe(Si);var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var zu=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=d,Wu=JA(XA);function JA(e){return e&&e.__esModule?e:{default:e}}function ZA(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 bn=24,QA=Uu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?bn:n,i=e.height,o=i===void 0?bn:i,s=e.style,c=s===void 0?{}:s,u=ZA(e,["fill","width","height","style"]);return Wu.default.createElement("svg",zu({viewBox:"0 0 "+bn+" "+bn,style:zu({fill:r,width:a,height:o},c)},u),Wu.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},e5=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:li(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 d.createElement(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:u.check},d.createElement(QA,null)))},t5=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 d.createElement("div",{style:o.group},wt(a,function(s,c){return d.createElement(e5,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},wi=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,f=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,y){return a({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.picker,className:"swatches-picker "+l},d.createElement(Ar,null,d.createElement("div",{style:f.overflow},d.createElement("div",{style:f.body},wt(o,function(v){return d.createElement(t5,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),d.createElement("div",{style:f.clear})))))};wi.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},wi.defaultProps={width:320,height:240,colors:[[Bt[900],Bt[700],Bt[500],Bt[300],Bt[100]],[Ht[900],Ht[700],Ht[500],Ht[300],Ht[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[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]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],["#194D33",Fr[700],Fr[500],Fr[300],Fr[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[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]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(wi);var Ei=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,f=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,y){lt(g)&&r({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.card,className:"twitter-picker "+l},d.createElement("div",{style:f.triangleShadow}),d.createElement("div",{style:f.triangle}),d.createElement("div",{style:f.body},wt(i,function(v,g){return d.createElement(St,{key:g,color:v,hex:v,style:f.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),d.createElement("div",{style:f.hash},"#"),d.createElement(Z,{label:null,style:{input:f.input},value:a.replace("#",""),onChange:p}),d.createElement("div",{style:f.clear})))};Ei.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},Ei.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(Ei);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 d.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 Ci=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 d.createElement("div",{style:r.picker})};Ci.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ci.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var r5=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)lt(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");ui(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var y=p.hsv.split(",");ui(p.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");ui(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 d.createElement("div",{style:c.wrap,className:"flexbox-fix"},d.createElement("div",{style:c.fields},d.createElement("div",{style:c.double},d.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),d.createElement("div",{style:c.column},d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},$i=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,f=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 d.createElement("div",{style:p.picker,className:"google-picker "+f},d.createElement("div",{style:p.head},c),d.createElement("div",{style:p.swatch}),d.createElement("div",{style:p.saturation},d.createElement(fn,{hsl:i,hsv:o,pointer:_i,onChange:n})),d.createElement("div",{style:p.body},d.createElement("div",{style:p.controls,className:"flexbox-fix"},d.createElement("div",{style:p.hue},d.createElement(Nt,{style:p.Hue,hsl:i,radius:"4px",pointer:Ci,onChange:n}))),d.createElement(r5,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};$i.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},$i.defaultProps={width:652,styles:{},header:"Color picker"},Fe($i);const n5=e=>{const[t,r]=d.useState(!1),[n,a]=d.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return m.jsxs("div",{children:[m.jsx(Ru,{disabled:e.disabled,color:n,onClick:i}),m.jsx(F.Dialog,{open:t,onClose:o,children:m.jsx(AA,{color:n,onChange:s,css:de.css`
225
223
  padding: 10px;
226
- `})})]})},ac=e=>y.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:le.css`
224
+ `})})]})},Ru=e=>m.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:de.css`
227
225
  border: solid 1px black;
228
226
  background-color: white;
229
227
  padding: 2px;
230
228
  cursor: pointer;
231
229
  opacity: ${e.disabled?.2:1};
232
- `,children:y.jsx("div",{css:le.css`
230
+ `,children:m.jsx("div",{css:de.css`
233
231
  width: 72px;
234
232
  height: 19px;
235
233
  background-color: ${e.color};
236
- `})});B.ConfigrBoolean=Zb,B.ConfigrChooserButton=iy,B.ConfigrColorPicker=hP,B.ConfigrConditional=oy,B.ConfigrCustomBooleanInput=Wb,B.ConfigrCustomNumberInput=Kb,B.ConfigrCustomObjectInput=qb,B.ConfigrCustomStringInput=zb,B.ConfigrForEach=Jb,B.ConfigrGroup=gs,B.ConfigrInput=Ub,B.ConfigrMakeToggle=ay,B.ConfigrPane=xm,B.ConfigrRadio=ty,B.ConfigrRadioGroup=Qb,B.ConfigrSelect=Rb,B.ConfigrSubPage=Xb,B.ConfigrSubgroup=Yb,B.ConfigrToggleGroup=ry,B.ContentPane=vs,B.SwatchButton=ac,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
234
+ `})});B.ConfigrBoolean=q0,B.ConfigrChooserButton=tb,B.ConfigrColorPicker=n5,B.ConfigrConditional=rb,B.ConfigrCustomBooleanInput=z0,B.ConfigrCustomNumberInput=W0,B.ConfigrCustomObjectInput=R0,B.ConfigrCustomStringInput=U0,B.ConfigrForEach=Yr,B.ConfigrGroup=Jn,B.ConfigrInput=V0,B.ConfigrMakeToggle=eb,B.ConfigrPage=Zn,B.ConfigrPane=yy,B.ConfigrRadio=J0,B.ConfigrRadioGroup=Y0,B.ConfigrSelect=K0,B.ConfigrToggleGroup=Z0,B.ContentPane=os,B.SwatchButton=Ru,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
235
+ //# sourceMappingURL=configr.umd.js.map