@sillsdev/config-r 1.0.0-alpha.2 → 1.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/dist/ConfigrColorPicker.d.ts +2 -0
- package/dist/ConfigrPane.d.ts +6 -5
- package/dist/ContentPane.d.ts +66 -68
- package/dist/FilterForSearch.d.ts +1 -1
- package/dist/HighlightSearchTerms.d.ts +1 -1
- package/dist/configr.cjs.js +462 -0
- package/dist/configr.cjs.js.map +1 -0
- package/dist/configr.es.js +25537 -7765
- package/dist/configr.es.js.map +1 -0
- package/package.json +32 -24
- package/dist/configr.umd.js +0 -231
package/dist/configr.umd.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
(function(N,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):(N=typeof globalThis<"u"?globalThis:N||self,m(N.configr={},N["emotion-react-jsx-runtime"],N["emotion-react"],N["mui-material"],N.React,N["mui-material/styles"],N.SearchIcon,N.ArrowRightIcon,N.ArrowBackIcon,N.MuiTextField,N["mui-material-formcontrol"],N["mui-material-form-helper-text"],N["mui-material-input-label"],N["mui-material-select"],N.MuiSwitch,N.MuiCheckbox,N.MuiToggleButtonGroup))})(this,function(N,m,ce,j,f,rt,ac,ic,oc,sc,lc,uc,cc,fc,dc,hc,pc){"use strict";function vc(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 X=vc(f),gc=rt.styled("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:rt.alpha(e.palette.common.white,.15),"&:hover":{backgroundColor:rt.alpha(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),bc=rt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),yc=rt.styled(j.InputBase)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}})),mc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),m.jsx(j.Box,{sx:{flexGrow:1},children:m.jsx(j.AppBar,{position:"static",children:m.jsxs(j.Toolbar,{children:[m.jsx(j.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&m.jsxs(gc,{children:[m.jsx(bc,{children:m.jsx(ac,{})}),m.jsx(yc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sc(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=Sc;function wc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ai=wc,Ec=Array.isArray,De=Ec,_c=typeof nr=="object"&&nr&&nr.Object===Object&&nr,Pi=_c,Cc=Pi,$c=typeof self=="object"&&self&&self.Object===Object&&self,Tc=Cc||$c||Function("return this")(),We=Tc,Oc=We,Ac=Oc.Symbol,ar=Ac,Mi=ar,Ii=Object.prototype,Pc=Ii.hasOwnProperty,Mc=Ii.toString,ir=Mi?Mi.toStringTag:void 0;function Ic(e){var t=Pc.call(e,ir),r=e[ir];try{e[ir]=void 0;var n=!0}catch{}var a=Mc.call(e);return n&&(t?e[ir]=r:delete e[ir]),a}var Fc=Ic,kc=Object.prototype,jc=kc.toString;function Dc(e){return jc.call(e)}var Nc=Dc,Fi=ar,Lc=Fc,Bc=Nc,Hc="[object Null]",Gc="[object Undefined]",ki=Fi?Fi.toStringTag:void 0;function Vc(e){return e==null?e===void 0?Gc:Hc:ki&&ki in Object(e)?Lc(e):Bc(e)}var lt=Vc;function Uc(e){return e!=null&&typeof e=="object"}var Je=Uc,zc=lt,Wc=Je,Kc="[object Symbol]";function qc(e){return typeof e=="symbol"||Wc(e)&&zc(e)==Kc}var Lr=qc;function Rc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _t=Rc,Yc=lt,Xc=_t,Jc="[object AsyncFunction]",Zc="[object Function]",Qc="[object GeneratorFunction]",ef="[object Proxy]";function tf(e){if(!Xc(e))return!1;var t=Yc(e);return t==Zc||t==Qc||t==Jc||t==ef}var ji=tf,rf=We,nf=rf["__core-js_shared__"],af=nf,mn=af,Di=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function of(e){return!!Di&&Di in e}var sf=of,lf=Function.prototype,uf=lf.toString;function cf(e){if(e!=null){try{return uf.call(e)}catch{}try{return e+""}catch{}}return""}var Ni=cf,ff=ji,df=sf,hf=_t,pf=Ni,vf=/[\\^$.*+?()[\]{}|]/g,gf=/^\[object .+?Constructor\]$/,bf=Function.prototype,yf=Object.prototype,mf=bf.toString,xf=yf.hasOwnProperty,Sf=RegExp("^"+mf.call(xf).replace(vf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wf(e){if(!hf(e)||df(e))return!1;var t=ff(e)?Sf:gf;return t.test(pf(e))}var Ef=wf;function _f(e,t){return e==null?void 0:e[t]}var Cf=_f,$f=Ef,Tf=Cf;function Of(e,t){var r=Tf(e,t);return $f(r)?r:void 0}var ut=Of,Af=ut,Pf=Af(Object,"create"),Br=Pf,Li=Br;function Mf(){this.__data__=Li?Li(null):{},this.size=0}var If=Mf;function Ff(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kf=Ff,jf=Br,Df="__lodash_hash_undefined__",Nf=Object.prototype,Lf=Nf.hasOwnProperty;function Bf(e){var t=this.__data__;if(jf){var r=t[e];return r===Df?void 0:r}return Lf.call(t,e)?t[e]:void 0}var Hf=Bf,Gf=Br,Vf=Object.prototype,Uf=Vf.hasOwnProperty;function zf(e){var t=this.__data__;return Gf?t[e]!==void 0:Uf.call(t,e)}var Wf=zf,Kf=Br,qf="__lodash_hash_undefined__";function Rf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Kf&&t===void 0?qf:t,this}var Yf=Rf,Xf=If,Jf=kf,Zf=Hf,Qf=Wf,ed=Yf;function Ct(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])}}Ct.prototype.clear=Xf,Ct.prototype.delete=Jf,Ct.prototype.get=Zf,Ct.prototype.has=Qf,Ct.prototype.set=ed;var td=Ct;function rd(){this.__data__=[],this.size=0}var nd=rd;function ad(e,t){return e===t||e!==e&&t!==t}var xn=ad,id=xn;function od(e,t){for(var r=e.length;r--;)if(id(e[r][0],t))return r;return-1}var Hr=od,sd=Hr,ld=Array.prototype,ud=ld.splice;function cd(e){var t=this.__data__,r=sd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ud.call(t,r,1),--this.size,!0}var fd=cd,dd=Hr;function hd(e){var t=this.__data__,r=dd(t,e);return r<0?void 0:t[r][1]}var pd=hd,vd=Hr;function gd(e){return vd(this.__data__,e)>-1}var bd=gd,yd=Hr;function md(e,t){var r=this.__data__,n=yd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var xd=md,Sd=nd,wd=fd,Ed=pd,_d=bd,Cd=xd;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=Sd,$t.prototype.delete=wd,$t.prototype.get=Ed,$t.prototype.has=_d,$t.prototype.set=Cd;var Gr=$t,$d=ut,Td=We,Od=$d(Td,"Map"),Sn=Od,Bi=td,Ad=Gr,Pd=Sn;function Md(){this.size=0,this.__data__={hash:new Bi,map:new(Pd||Ad),string:new Bi}}var Id=Md;function Fd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var kd=Fd,jd=kd;function Dd(e,t){var r=e.__data__;return jd(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vr=Dd,Nd=Vr;function Ld(e){var t=Nd(this,e).delete(e);return this.size-=t?1:0,t}var Bd=Ld,Hd=Vr;function Gd(e){return Hd(this,e).get(e)}var Vd=Gd,Ud=Vr;function zd(e){return Ud(this,e).has(e)}var Wd=zd,Kd=Vr;function qd(e,t){var r=Kd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Rd=qd,Yd=Id,Xd=Bd,Jd=Vd,Zd=Wd,Qd=Rd;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=Yd,Tt.prototype.delete=Xd,Tt.prototype.get=Jd,Tt.prototype.has=Zd,Tt.prototype.set=Qd;var wn=Tt,Hi=wn,eh="Expected a function";function En(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eh);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||Hi),r}En.Cache=Hi;var th=En,rh=th,nh=500;function ah(e){var t=rh(e,function(n){return r.size===nh&&r.clear(),n}),r=t.cache;return t}var ih=ah,oh=ih,sh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lh=/\\(\\)?/g,uh=oh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sh,function(r,n,a,i){t.push(a?i.replace(lh,"$1"):n||r)}),t}),Gi=uh,ch=Lr,fh=1/0;function dh(e){if(typeof e=="string"||ch(e))return e;var t=e+"";return t=="0"&&1/e==-fh?"-0":t}var or=dh,Vi=ar,hh=yn,ph=De,vh=Lr,gh=1/0,Ui=Vi?Vi.prototype:void 0,zi=Ui?Ui.toString:void 0;function Wi(e){if(typeof e=="string")return e;if(ph(e))return hh(e,Wi)+"";if(vh(e))return zi?zi.call(e):"";var t=e+"";return t=="0"&&1/e==-gh?"-0":t}var bh=Wi,yh=bh;function mh(e){return e==null?"":yh(e)}var Ki=mh,xh=yn,Sh=Ai,wh=De,Eh=Lr,_h=Gi,Ch=or,$h=Ki;function Th(e){return wh(e)?xh(e,Ch):Eh(e)?[e]:Sh(_h($h(e)))}var Oh=Th,qi=Array.isArray,Ri=Object.keys,Ah=Object.prototype.hasOwnProperty,Ph=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=Ri(e);if(i=l.length,i!==Ri(t).length)return!1;for(a=i;a--!==0;)if(!Ah.call(t,l[a]))return!1;if(Ph&&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 nt=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}},Mh=function(t){return Ih(t)&&!Fh(t)};function Ih(e){return!!e&&typeof e=="object"}function Fh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Dh(e)}var kh=typeof Symbol=="function"&&Symbol.for,jh=kh?Symbol.for("react.element"):60103;function Dh(e){return e.$$typeof===jh}function Nh(e){return Array.isArray(e)?[]:{}}function Ur(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sr(Nh(e),e,t):e}function Lh(e,t,r){return e.concat(t).map(function(n){return Ur(n,r)})}function Bh(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Ur(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Ur(t[a],r):n[a]=sr(e[a],t[a],r)}),n}function sr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Lh,r.isMergeableObject=r.isMergeableObject||Mh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Bh(e,t,r):Ur(t,r)}sr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return sr(n,a,r)},{})};var Cn=sr,Hh=typeof global=="object"&&global&&global.Object===Object&&global;const Yi=Hh;var Gh=typeof self=="object"&&self&&self.Object===Object&&self,Vh=Yi||Gh||Function("return this")();const He=Vh;var Uh=He.Symbol;const Ke=Uh;var Xi=Object.prototype,zh=Xi.hasOwnProperty,Wh=Xi.toString,lr=Ke?Ke.toStringTag:void 0;function Kh(e){var t=zh.call(e,lr),r=e[lr];try{e[lr]=void 0;var n=!0}catch{}var a=Wh.call(e);return n&&(t?e[lr]=r:delete e[lr]),a}var qh=Object.prototype,Rh=qh.toString;function Yh(e){return Rh.call(e)}var Xh="[object Null]",Jh="[object Undefined]",Ji=Ke?Ke.toStringTag:void 0;function ct(e){return e==null?e===void 0?Jh:Xh:Ji&&Ji in Object(e)?Kh(e):Yh(e)}function Zi(e,t){return function(r){return e(t(r))}}var Zh=Zi(Object.getPrototypeOf,Object);const $n=Zh;function qe(e){return e!=null&&typeof e=="object"}var Qh="[object Object]",ep=Function.prototype,tp=Object.prototype,Qi=ep.toString,rp=tp.hasOwnProperty,np=Qi.call(Object);function Tn(e){if(!qe(e)||ct(e)!=Qh)return!1;var t=$n(e);if(t===null)return!0;var r=rp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qi.call(r)==np}function ap(){this.__data__=[],this.size=0}function ur(e,t){return e===t||e!==e&&t!==t}function zr(e,t){for(var r=e.length;r--;)if(ur(e[r][0],t))return r;return-1}var ip=Array.prototype,op=ip.splice;function sp(e){var t=this.__data__,r=zr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():op.call(t,r,1),--this.size,!0}function lp(e){var t=this.__data__,r=zr(t,e);return r<0?void 0:t[r][1]}function up(e){return zr(this.__data__,e)>-1}function cp(e,t){var r=this.__data__,n=zr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ze(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])}}Ze.prototype.clear=ap,Ze.prototype.delete=sp,Ze.prototype.get=lp,Ze.prototype.has=up,Ze.prototype.set=cp;function fp(){this.__data__=new Ze,this.size=0}function dp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function hp(e){return this.__data__.get(e)}function pp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vp="[object AsyncFunction]",gp="[object Function]",bp="[object GeneratorFunction]",yp="[object Proxy]";function On(e){if(!ke(e))return!1;var t=ct(e);return t==gp||t==bp||t==vp||t==yp}var mp=He["__core-js_shared__"];const An=mp;var eo=function(){var e=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xp(e){return!!eo&&eo in e}var Sp=Function.prototype,wp=Sp.toString;function ft(e){if(e!=null){try{return wp.call(e)}catch{}try{return e+""}catch{}}return""}var Ep=/[\\^$.*+?()[\]{}|]/g,_p=/^\[object .+?Constructor\]$/,Cp=Function.prototype,$p=Object.prototype,Tp=Cp.toString,Op=$p.hasOwnProperty,Ap=RegExp("^"+Tp.call(Op).replace(Ep,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pp(e){if(!ke(e)||xp(e))return!1;var t=On(e)?Ap:_p;return t.test(ft(e))}function Mp(e,t){return e==null?void 0:e[t]}function dt(e,t){var r=Mp(e,t);return Pp(r)?r:void 0}var Ip=dt(He,"Map");const cr=Ip;var Fp=dt(Object,"create");const fr=Fp;function kp(){this.__data__=fr?fr(null):{},this.size=0}function jp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dp="__lodash_hash_undefined__",Np=Object.prototype,Lp=Np.hasOwnProperty;function Bp(e){var t=this.__data__;if(fr){var r=t[e];return r===Dp?void 0:r}return Lp.call(t,e)?t[e]:void 0}var Hp=Object.prototype,Gp=Hp.hasOwnProperty;function Vp(e){var t=this.__data__;return fr?t[e]!==void 0:Gp.call(t,e)}var Up="__lodash_hash_undefined__";function zp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fr&&t===void 0?Up:t,this}function ht(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])}}ht.prototype.clear=kp,ht.prototype.delete=jp,ht.prototype.get=Bp,ht.prototype.has=Vp,ht.prototype.set=zp;function Wp(){this.size=0,this.__data__={hash:new ht,map:new(cr||Ze),string:new ht}}function Kp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wr(e,t){var r=e.__data__;return Kp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function qp(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t}function Rp(e){return Wr(this,e).get(e)}function Yp(e){return Wr(this,e).has(e)}function Xp(e,t){var r=Wr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,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=Wp,Qe.prototype.delete=qp,Qe.prototype.get=Rp,Qe.prototype.has=Yp,Qe.prototype.set=Xp;var Jp=200;function Zp(e,t){var r=this.__data__;if(r instanceof Ze){var n=r.__data__;if(!cr||n.length<Jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new Ze(e);this.size=t.size}Ge.prototype.clear=fp,Ge.prototype.delete=dp,Ge.prototype.get=hp,Ge.prototype.has=pp,Ge.prototype.set=Zp;function to(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Qp=function(){try{var e=dt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Kr=Qp;function Pn(e,t,r){t=="__proto__"&&Kr?Kr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ev=Object.prototype,tv=ev.hasOwnProperty;function ro(e,t,r){var n=e[t];(!(tv.call(e,t)&&ur(n,r))||r===void 0&&!(t in e))&&Pn(e,t,r)}function dr(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?Pn(r,s,c):ro(r,s,c)}return r}function rv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var nv="[object Arguments]";function no(e){return qe(e)&&ct(e)==nv}var ao=Object.prototype,av=ao.hasOwnProperty,iv=ao.propertyIsEnumerable,ov=no(function(){return arguments}())?no:function(e){return qe(e)&&av.call(e,"callee")&&!iv.call(e,"callee")};const qr=ov;var sv=Array.isArray;const Te=sv;function lv(){return!1}var io=typeof N=="object"&&N&&!N.nodeType&&N,oo=io&&typeof module=="object"&&module&&!module.nodeType&&module,uv=oo&&oo.exports===io,so=uv?He.Buffer:void 0,cv=so?so.isBuffer:void 0,fv=cv||lv;const hr=fv;var dv=9007199254740991,hv=/^(?:0|[1-9]\d*)$/;function Mn(e,t){var r=typeof e;return t=t??dv,!!t&&(r=="number"||r!="symbol"&&hv.test(e))&&e>-1&&e%1==0&&e<t}var pv=9007199254740991;function In(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pv}var vv="[object Arguments]",gv="[object Array]",bv="[object Boolean]",yv="[object Date]",mv="[object Error]",xv="[object Function]",Sv="[object Map]",wv="[object Number]",Ev="[object Object]",_v="[object RegExp]",Cv="[object Set]",$v="[object String]",Tv="[object WeakMap]",Ov="[object ArrayBuffer]",Av="[object DataView]",Pv="[object Float32Array]",Mv="[object Float64Array]",Iv="[object Int8Array]",Fv="[object Int16Array]",kv="[object Int32Array]",jv="[object Uint8Array]",Dv="[object Uint8ClampedArray]",Nv="[object Uint16Array]",Lv="[object Uint32Array]",fe={};fe[Pv]=fe[Mv]=fe[Iv]=fe[Fv]=fe[kv]=fe[jv]=fe[Dv]=fe[Nv]=fe[Lv]=!0,fe[vv]=fe[gv]=fe[Ov]=fe[bv]=fe[Av]=fe[yv]=fe[mv]=fe[xv]=fe[Sv]=fe[wv]=fe[Ev]=fe[_v]=fe[Cv]=fe[$v]=fe[Tv]=!1;function Bv(e){return qe(e)&&In(e.length)&&!!fe[ct(e)]}function Fn(e){return function(t){return e(t)}}var lo=typeof N=="object"&&N&&!N.nodeType&&N,pr=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Hv=pr&&pr.exports===lo,kn=Hv&&Yi.process,Gv=function(){try{var e=pr&&pr.require&&pr.require("util").types;return e||kn&&kn.binding&&kn.binding("util")}catch{}}();const Ot=Gv;var uo=Ot&&Ot.isTypedArray,Vv=uo?Fn(uo):Bv;const jn=Vv;var Uv=Object.prototype,zv=Uv.hasOwnProperty;function co(e,t){var r=Te(e),n=!r&&qr(e),a=!r&&!n&&hr(e),i=!r&&!n&&!a&&jn(e),o=r||n||a||i,s=o?rv(e.length,String):[],c=s.length;for(var u in e)(t||zv.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 Wv=Object.prototype;function Dn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Wv;return e===r}var Kv=Zi(Object.keys,Object);const qv=Kv;var Rv=Object.prototype,Yv=Rv.hasOwnProperty;function Xv(e){if(!Dn(e))return qv(e);var t=[];for(var r in Object(e))Yv.call(e,r)&&r!="constructor"&&t.push(r);return t}function At(e){return e!=null&&In(e.length)&&!On(e)}function vr(e){return At(e)?co(e):Xv(e)}function Jv(e,t){return e&&dr(t,vr(t),e)}function Zv(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Qv=Object.prototype,eg=Qv.hasOwnProperty;function tg(e){if(!ke(e))return Zv(e);var t=Dn(e),r=[];for(var n in e)n=="constructor"&&(t||!eg.call(e,n))||r.push(n);return r}function gr(e){return At(e)?co(e,!0):tg(e)}function rg(e,t){return e&&dr(t,gr(t),e)}var fo=typeof N=="object"&&N&&!N.nodeType&&N,ho=fo&&typeof module=="object"&&module&&!module.nodeType&&module,ng=ho&&ho.exports===fo,po=ng?He.Buffer:void 0,vo=po?po.allocUnsafe:void 0;function go(e,t){if(t)return e.slice();var r=e.length,n=vo?vo(r):new e.constructor(r);return e.copy(n),n}function Nn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function ag(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 bo(){return[]}var ig=Object.prototype,og=ig.propertyIsEnumerable,yo=Object.getOwnPropertySymbols,sg=yo?function(e){return e==null?[]:(e=Object(e),ag(yo(e),function(t){return og.call(e,t)}))}:bo;const Ln=sg;function lg(e,t){return dr(e,Ln(e),t)}function mo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var ug=Object.getOwnPropertySymbols,cg=ug?function(e){for(var t=[];e;)mo(t,Ln(e)),e=$n(e);return t}:bo;const xo=cg;function fg(e,t){return dr(e,xo(e),t)}function So(e,t,r){var n=t(e);return Te(e)?n:mo(n,r(e))}function Bn(e){return So(e,vr,Ln)}function dg(e){return So(e,gr,xo)}var hg=dt(He,"DataView");const Hn=hg;var pg=dt(He,"Promise");const Gn=pg;var vg=dt(He,"Set");const Vn=vg;var gg=dt(He,"WeakMap");const Un=gg;var wo="[object Map]",bg="[object Object]",Eo="[object Promise]",_o="[object Set]",Co="[object WeakMap]",$o="[object DataView]",yg=ft(Hn),mg=ft(cr),xg=ft(Gn),Sg=ft(Vn),wg=ft(Un),pt=ct;(Hn&&pt(new Hn(new ArrayBuffer(1)))!=$o||cr&&pt(new cr)!=wo||Gn&&pt(Gn.resolve())!=Eo||Vn&&pt(new Vn)!=_o||Un&&pt(new Un)!=Co)&&(pt=function(e){var t=ct(e),r=t==bg?e.constructor:void 0,n=r?ft(r):"";if(n)switch(n){case yg:return $o;case mg:return wo;case xg:return Eo;case Sg:return _o;case wg:return Co}return t});const br=pt;var Eg=Object.prototype,_g=Eg.hasOwnProperty;function Cg(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 $g=He.Uint8Array;const Rr=$g;function zn(e){var t=new e.constructor(e.byteLength);return new Rr(t).set(new Rr(e)),t}function Tg(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Og=/\w*$/;function Ag(e){var t=new e.constructor(e.source,Og.exec(e));return t.lastIndex=e.lastIndex,t}var To=Ke?Ke.prototype:void 0,Oo=To?To.valueOf:void 0;function Pg(e){return Oo?Object(Oo.call(e)):{}}function Ao(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Mg="[object Boolean]",Ig="[object Date]",Fg="[object Map]",kg="[object Number]",jg="[object RegExp]",Dg="[object Set]",Ng="[object String]",Lg="[object Symbol]",Bg="[object ArrayBuffer]",Hg="[object DataView]",Gg="[object Float32Array]",Vg="[object Float64Array]",Ug="[object Int8Array]",zg="[object Int16Array]",Wg="[object Int32Array]",Kg="[object Uint8Array]",qg="[object Uint8ClampedArray]",Rg="[object Uint16Array]",Yg="[object Uint32Array]";function Xg(e,t,r){var n=e.constructor;switch(t){case Bg:return zn(e);case Mg:case Ig:return new n(+e);case Hg:return Tg(e,r);case Gg:case Vg:case Ug:case zg:case Wg:case Kg:case qg:case Rg:case Yg:return Ao(e,r);case Fg:return new n;case kg:case Ng:return new n(e);case jg:return Ag(e);case Dg:return new n;case Lg:return Pg(e)}}var Po=Object.create,Jg=function(){function e(){}return function(t){if(!ke(t))return{};if(Po)return Po(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Zg=Jg;function Mo(e){return typeof e.constructor=="function"&&!Dn(e)?Zg($n(e)):{}}var Qg="[object Map]";function e0(e){return qe(e)&&br(e)==Qg}var Io=Ot&&Ot.isMap,t0=Io?Fn(Io):e0;const r0=t0;var n0="[object Set]";function a0(e){return qe(e)&&br(e)==n0}var Fo=Ot&&Ot.isSet,i0=Fo?Fn(Fo):a0;const o0=i0;var s0=1,l0=2,u0=4,ko="[object Arguments]",c0="[object Array]",f0="[object Boolean]",d0="[object Date]",h0="[object Error]",jo="[object Function]",p0="[object GeneratorFunction]",v0="[object Map]",g0="[object Number]",Do="[object Object]",b0="[object RegExp]",y0="[object Set]",m0="[object String]",x0="[object Symbol]",S0="[object WeakMap]",w0="[object ArrayBuffer]",E0="[object DataView]",_0="[object Float32Array]",C0="[object Float64Array]",$0="[object Int8Array]",T0="[object Int16Array]",O0="[object Int32Array]",A0="[object Uint8Array]",P0="[object Uint8ClampedArray]",M0="[object Uint16Array]",I0="[object Uint32Array]",le={};le[ko]=le[c0]=le[w0]=le[E0]=le[f0]=le[d0]=le[_0]=le[C0]=le[$0]=le[T0]=le[O0]=le[v0]=le[g0]=le[Do]=le[b0]=le[y0]=le[m0]=le[x0]=le[A0]=le[P0]=le[M0]=le[I0]=!0,le[h0]=le[jo]=le[S0]=!1;function yr(e,t,r,n,a,i){var o,s=t&s0,c=t&l0,u=t&u0;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=Cg(e),!s)return Nn(e,o)}else{var l=br(e),d=l==jo||l==p0;if(hr(e))return go(e,s);if(l==Do||l==ko||d&&!a){if(o=c||d?{}:Mo(e),!s)return c?fg(e,rg(o,e)):lg(e,Jv(o,e))}else{if(!le[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),o0(e)?e.forEach(function(y){o.add(yr(y,t,r,y,e,i))}):r0(e)&&e.forEach(function(y,x){o.set(x,yr(y,t,r,x,e,i))});var v=u?c?dg:Bn:c?gr:vr,g=h?void 0:v(e);return to(g||e,function(y,x){g&&(x=y,y=e[x]),ro(o,x,yr(y,t,r,x,e,i))}),o}var F0=4;function No(e){return yr(e,F0)}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 k0="[object Symbol]";function mr(e){return typeof e=="symbol"||qe(e)&&ct(e)==k0}var j0="Expected a function";function Kn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(j0);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(Kn.Cache||Qe),r}Kn.Cache=Qe;var D0=500;function N0(e){var t=Kn(e,function(n){return r.size===D0&&r.clear(),n}),r=t.cache;return t}var L0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B0=/\\(\\)?/g,H0=N0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L0,function(r,n,a,i){t.push(a?i.replace(B0,"$1"):n||r)}),t});const Lo=H0;var G0=1/0;function xr(e){if(typeof e=="string"||mr(e))return e;var t=e+"";return t=="0"&&1/e==-G0?"-0":t}var V0=1/0,Bo=Ke?Ke.prototype:void 0,Ho=Bo?Bo.toString:void 0;function Go(e){if(typeof e=="string")return e;if(Te(e))return Wn(e,Go)+"";if(mr(e))return Ho?Ho.call(e):"";var t=e+"";return t=="0"&&1/e==-V0?"-0":t}function Vo(e){return e==null?"":Go(e)}function Uo(e){return Te(e)?Wn(e,xr):mr(e)?[e]:Nn(Lo(Vo(e)))}var U0=process.env.NODE_ENV==="production";function pe(e,t){if(!U0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var qn={},z0={get exports(){return qn},set exports(e){qn=e}},ee={};/** @license React v16.13.1
|
|
2
|
-
* react-is.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var zo;function W0(){if(zo)return ee;zo=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,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===d||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
|
-
* react-is.development.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Wo;function K0(){return Wo||(Wo=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,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===d||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 $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 Et=ze&&ze.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return $e}}case r:return $e}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function L(E){return S(E)===n}function B(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 Y(E){return S(E)===a}function we(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=k,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=he,te.Memo=Se,te.Portal=be,te.Profiler=Ce,te.StrictMode=se,te.Suspense=me,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=L,te.isLazy=B,te.isMemo=H,te.isPortal=P,te.isProfiler=K,te.isStrictMode=Y,te.isSuspense=we,te.isValidElementType=_,te.typeOf=S}()),te}(function(e){process.env.NODE_ENV==="production"?e.exports=W0():e.exports=K0()})(z0);var Ko=qn,q0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qo={};qo[Ko.ForwardRef]=q0,qo[Ko.Memo]=R0;var Y0=1,X0=4;function J0(e){return yr(e,Y0|X0)}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 Z0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vt(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 Ro(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Yo=function(t){return Array.isArray(t)&&t.length===0},_e=function(t){return typeof t=="function"},Sr=function(t){return t!==null&&typeof t=="object"},Q0=function(t){return String(Math.floor(Number(t)))===t},Rn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yn=function(t){return f.Children.count(t)===0},Xn=function(t){return Sr(t)&&_e(t.then)};function eb(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=Uo(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function Re(e,t,r){for(var n=No(e),a=n,i=0,o=Uo(t);i<o.length-1;i++){var s=o[i],c=ye(e,o.slice(0,i+1));if(c&&(Sr(c)||Array.isArray(c)))a=a[s]=No(c);else{var u=o[i+1];a=a[s]=Q0(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];Sr(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 Yr=f.createContext(void 0);Yr.displayName="FormikContext";var tb=Yr.Provider;Yr.Consumer;function gt(){var e=f.useContext(Yr);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 rb(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 nt(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:Xo(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 bt={},Xr={};function nb(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=vt(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||bt),g=f.useRef(d.initialTouched||Xr),y=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(rb,{values:d.initialValues,errors:d.initialErrors||bt,touched:d.initialTouched||Xr,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=f.useCallback(function(w,I){return new Promise(function(D,V){var R=d.validate(w,I);R==null?D(bt):Xn(R)?R.then(function(Q){D(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)}):D(R)})},[d.validate]),k=f.useCallback(function(w,I){var D=d.validationSchema,V=_e(D)?D(I):D,R=I&&V.validateAt?V.validateAt(I,w):ob(w,V);return new Promise(function(Q,Ee){R.then(function(){Q(bt)},function(Xe){Xe.name==="ValidationError"?Q(ib(Xe)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Xe),Ee(Xe))})})},[d.validationSchema]),W=f.useCallback(function(w,I){return new Promise(function(D){return D(C.current[w].validate(I))})},[]),q=f.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return _e(C.current[V].validate)}),D=I.length>0?I.map(function(V){return W(V,ye(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(D).then(function(V){return V.reduce(function(R,Q,Ee){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(R=Re(R,I[Ee],Q)),R},{})})},[W]),ge=f.useCallback(function(w){return Promise.all([q(w),d.validationSchema?k(w):{},d.validate?T(w):{}]).then(function(I){var D=I[0],V=I[1],R=I[2],Q=Cn.all([D,V,R],{arrayMerge:sb});return Q})},[d.validate,d.validationSchema,q,T,k]),ae=Ne(function(w){return w===void 0&&(w=S.values),b({type:"SET_ISVALIDATING",payload:!0}),ge(w).then(function(I){return x.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:I})),I})});f.useEffect(function(){o&&x.current===!0&&nt(p.current,d.initialValues)&&ae(p.current)},[o,ae]);var he=f.useCallback(function(w){var I=w&&w.values?w.values:p.current,D=w&&w.errors?w.errors:v.current?v.current:d.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:d.initialTouched||{},R=w&&w.status?w.status:y.current?y.current:d.initialStatus;p.current=I,v.current=D,g.current=V,y.current=R;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:D,touched:V,status:R,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(d.onReset){var Ee=d.onReset(S.values,we);Xn(Ee)?Ee.then(Q):Q()}else Q()},[d.initialErrors,d.initialStatus,d.initialTouched]);f.useEffect(function(){x.current===!0&&!nt(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&&!nt(v.current,d.initialErrors)&&(v.current=d.initialErrors||bt,b({type:"SET_ERRORS",payload:d.initialErrors||bt}))},[u,d.initialErrors]),f.useEffect(function(){u&&x.current===!0&&!nt(g.current,d.initialTouched)&&(g.current=d.initialTouched||Xr,b({type:"SET_TOUCHED",payload:d.initialTouched||Xr}))},[u,d.initialTouched]),f.useEffect(function(){u&&x.current===!0&&!nt(y.current,d.initialStatus)&&(y.current=d.initialStatus,b({type:"SET_STATUS",payload:d.initialStatus}))},[u,d.initialStatus,d.initialTouched]);var Se=Ne(function(w){if(C.current[w]&&_e(C.current[w].validate)){var I=ye(S.values,w),D=C.current[w].validate(I);return Xn(D)?(b({type:"SET_ISVALIDATING",payload:!0}),D.then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:w,value:D}}),Promise.resolve(D))}else if(d.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),k(S.values,w).then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V[w]}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),be=f.useCallback(function(w,I){var D=I.validate;C.current[w]={validate:D}},[]),Ce=f.useCallback(function(w){delete C.current[w]},[]),se=Ne(function(w,I){b({type:"SET_TOUCHED",payload:w});var D=I===void 0?a:I;return D?ae(S.values):Promise.resolve()}),me=f.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=Ne(function(w,I){var D=_e(w)?w(S.values):w;b({type:"SET_VALUES",payload:D});var V=I===void 0?r:I;return V?ae(D):Promise.resolve()}),Ae=f.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=Ne(function(w,I,D){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=D===void 0?r:D;return V?ae(Re(S.values,w,I)):Promise.resolve()}),A=f.useCallback(function(w,I){var D=I,V=w,R;if(!Rn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,Ee=Q.type,Xe=Q.name,Ti=Q.id,Oi=Q.value,pP=Q.checked,vP=Q.outerHTML,nc=Q.options,gP=Q.multiple;D=I||Xe||Ti,!D&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:vP,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(Ee)?(R=parseFloat(Oi),isNaN(R)?"":R):/checkbox/.test(Ee)?ub(ye(S.values,D),pP,Oi):nc&&gP?lb(nc):Oi}D&&$(D,V)},[$,S.values]),U=Ne(function(w){if(Rn(w))return function(I){return A(I,w)};A(w)}),G=Ne(function(w,I,D){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=D===void 0?a:D;return V?ae(S.values):Promise.resolve()}),M=f.useCallback(function(w,I){w.persist&&w.persist();var D=w.target,V=D.name,R=D.id,Q=D.outerHTML,Ee=I||V||R;!Ee&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(Ee,!0)},[G]),L=Ne(function(w){if(Rn(w))return function(I){return M(I,w)};M(w)}),B=f.useCallback(function(w){_e(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=f.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=f.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),K=Ne(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,D=!I&&Object.keys(w).length===0;if(D){var V;try{if(V=E(),V===void 0)return}catch(R){throw R}return Promise.resolve(V).then(function(R){return x.current&&b({type:"SUBMIT_SUCCESS"}),R}).catch(function(R){if(x.current)throw b({type:"SUBMIT_FAILURE"}),R})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),Y=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=eb();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?pe(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pe(!1)))}K().catch(function(D){console.warn("Warning: An unhandled error was caught from submitForm()",D)})}),we={resetForm:he,validateForm:ae,validateField:Se,setErrors:me,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,setFormikState:B,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]),Et=f.useCallback(function(w){return{setValue:function(D,V){return $(w,D,V)},setTouched:function(D,V){return G(w,D,V)},setError:function(D){return Ae(w,D)}}},[$,G,Ae]),fP=f.useCallback(function(w){var I=Sr(w),D=I?w.name:w,V=ye(S.values,D),R={name:D,value:V,onChange:U,onBlur:L};if(I){var Q=w.type,Ee=w.value,Xe=w.as,Ti=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):Xe==="select"&&Ti&&(R.value=R.value||[],R.multiple=!0)}return R},[L,U,S.values]),$i=f.useMemo(function(){return!nt(p.current,S.values)},[p.current,S.values]),dP=f.useMemo(function(){return typeof s<"u"?$i?S.errors&&Object.keys(S.errors).length===0:s!==!1&&_e(s)?s(d):s:S.errors&&Object.keys(S.errors).length===0},[s,$i,S.errors,d]),hP=oe({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:y.current,handleBlur:L,handleChange:U,handleReset:$e,handleSubmit:Y,resetForm:he,setErrors:me,setFormikState:B,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:se,setValues:Oe,submitForm:K,validateForm:ae,validateField:Se,isValid:dP,dirty:$i,unregisterField:Ce,registerField:be,getFieldProps:fP,getFieldMeta:ze,getFieldHelpers:Et,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return hP}function ab(e){var t=nb(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(tb,{value:t},r?f.createElement(r,t):a?a(t):n?_e(n)?n(t):Yn(n)?null:f.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
|
-
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+r+`
|
|
17
|
-
`)}function ib(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 ob(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var a=Jn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}function Jn(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)?Jn(a):a!==""?a:void 0}):Tn(e[n])?t[n]=Jn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function sb(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 lb(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function ub(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 cb=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 cb(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 yt(e){var t=gt(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=Sr(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 wr(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=vt(e,["validate","name","render","children","as","component"]),c=gt(),u=vt(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&&!Yn(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,y=vt(s,["innerRef"]);return f.createElement(o,oe({ref:g},d,y),a)}return f.createElement(o,oe({field:d,form:u},s),a)}var x=i||"input";if(typeof x=="string"){var C=s.innerRef,_=vt(s,["innerRef"]);return f.createElement(x,oe({ref:C},d,_),a)}return f.createElement(x,oe({},d,s),a)}var fb=f.forwardRef(function(e,t){var r=e.action,n=vt(e,["action"]),a=r??"#",i=gt(),o=i.handleReset,s=i.handleSubmit;return f.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},n))});fb.displayName="Form";var db=function(t,r,n){var a=Pt(t),i=a[r];return a.splice(r,1),a.splice(n,0,i),a},hb=function(t,r,n){var a=Pt(t),i=a[r];return a[r]=a[n],a[n]=i,a},Zn=function(t,r,n){var a=Pt(t);return a.splice(r,0,n),a},pb=function(t,r,n){var a=Pt(t);return a[r]=n,a},Pt=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[]},vb=function(e){Z0(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,y=o?p(ye(l.touched,u)):void 0;return Yo(g)&&(g=void 0),Yo(y)&&(y=void 0),oe({},l,{values:v,errors:s?Re(l.errors,u,g):l.errors,touched:o?Re(l.touched,u,y):l.touched})})},a.push=function(i){return a.updateArrayField(function(o){return[].concat(Pt(o),[J0(i)])},!1,!1)},a.handlePush=function(i){return function(){return a.push(i)}},a.swap=function(i,o){return a.updateArrayField(function(s){return hb(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 db(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 Zn(s,i,o)},function(s){return Zn(s,i,null)},function(s){return Zn(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 pb(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(Ro(a)),a.pop=a.pop.bind(Ro(a)),a}var r=t.prototype;return r.componentDidUpdate=function(a){this.props.validateOnChange&&this.props.formik.validateOnChange&&!nt(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?Pt(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=vt(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):Yn(c)?null:f.Children.only(c):null},t}(f.Component);vb.defaultProps={validateOnChange:!0};/*! *****************************************************************************
|
|
18
|
-
Copyright (c) Microsoft Corporation.
|
|
19
|
-
|
|
20
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
21
|
-
purpose with or without fee is hereby granted.
|
|
22
|
-
|
|
23
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
24
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
25
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
26
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
27
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
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 gb(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 bb(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 yb(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 Zo(e){return X.createElement(hc,xe({},yb(e)))}Zo.displayName="FormikMaterialUICheckbox";function mb(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(y){return gb(t,void 0,void 0,function(){var x;return bb(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=mb(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 X.createElement(lc,xe({disabled:c,error:o},t),X.createElement(cc,xe({id:u.labelId},r),u.label),X.createElement(fc,xe({},u)),p&&X.createElement(uc,xe({},d),o?s:l))}Qo.displayName="FormikMaterialUISelect";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"]);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 es(e){return X.createElement(dc,xe({},xb(e)))}es.displayName="FormikMaterialUISwitch";function Sb(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 ts(e){var t=e.children,r=Pe(e,["children"]);return X.createElement(sc,xe({},Sb(r)),t)}ts.displayName="FormikMaterialUITextField";function wb(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 rs(e){return X.createElement(pc,xe({},wb(e)))}rs.displayName="FormikMaterialUIToggleButtonGroup";var Qn={},Eb={get exports(){return Qn},set exports(e){Qn=e}};/*!***************************************************
|
|
31
|
-
* mark.js v8.11.1
|
|
32
|
-
* https://markjs.io/
|
|
33
|
-
* Copyright (c) 2014–2018, Julian Kühnel
|
|
34
|
-
* Released under the MIT license https://git.io/vwTVl
|
|
35
|
-
*****************************************************/(function(e,t){(function(r,n){e.exports=n()})(nr,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,y=null,x=function C(){if(!g){g=!0,clearTimeout(y);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,d,p))}catch{p()}}};l.addEventListener("load",x),y=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(){},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){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 y=d.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(y&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,y=!1;return v.forEach(function(x,C){x.val===p&&(g=C,y=x.handled)}),this.compareNodeIframe(l,d,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,d,p,v){var g=this;l.forEach(function(y){y.handled||g.getIframeContents(y.val,function(x){g.createInstanceOnIframe(x).forEachNode(d,p,v)})})}},{key:"iterateThroughNodes",value:function(l,d,p,v,g){for(var y=this,x=this.createIterator(d,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(d,function(k){return y.checkIframeFilter(S,b,k,C)},function(k){y.createInstanceOnIframe(k).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(k){p(k)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,d,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),x=y.length;x||g(),y.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(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 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 y=d[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(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(y){if(y.indexOf(g)!==-1){if(v.indexOf(y)>-1)return!1;l=l.replace(new RegExp("["+y+"]","gm"+d),"["+y+"]"),v.push(y)}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,y=typeof v=="string"?[]:v.limiters,x="";switch(y.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,y){return g.start-y.start}).forEach(function(g){var y=d.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,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,y=p.length,x=d-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 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),y=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),y}},{key:"wrapRangeInMappedTextNode",value:function(l,d,p,v,g){var y=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>d){if(!v(x.node))return!1;var S=d-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),k=l.value.substr(b+x.start);if(x.node=y.wrapRangeInTextNode(x.node,S,b),l.value=T+k,l.nodes.forEach(function(W,q){q>=C&&(l.nodes[q].start>0&&q!==C&&(l.nodes[q].start-=b),l.nodes[q].end-=b)}),p-=b,g(x.node.previousSibling,x.start),p>x.end)d=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,d,p,v,g){var y=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;_=y.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,d,p,v,g){var y=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;y.wrapRangeInMappedTextNode(C,S,T,function(k){return p(_[x],k)},function(k,W){l.lastIndex=W,v(k)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,d,p,v){var g=this;this.getTextNodes(function(y){var x=y.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,y.value),b=S.start,T=S.end,k=S.valid;k&&g.wrapRangeInMappedTextNode(y,b,T,function(W){return d(W,C,y.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",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,d){var p=this;this.opt=d;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 k=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+k+'"'),p[g](k,1,function(q,ge){return p.opt.filter(ge,T,v,W)},function(q){W++,v++,p.opt.each(q)},function(){W===0&&p.opt.noMatch(T),x[C-1]===T?p.opt.done(v):b(x[x.indexOf(T)+1])})};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),C===0?this.opt.done(v):S(x[0])}},{key:"markRanges",value:function(l,d){var p=this;this.opt=d;var v=0,g=this.checkRanges(l);g&&g.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(g)),this.wrapRangeFromIndex(g,function(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 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),y=d.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(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})})(Eb);const _b=Qn,Cb=e=>{const[t,r]=f.useState(),n=f.useRef(null);return X.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]),m.jsx("div",{ref:n,children:e.children})},Jr=e=>f.isValidElement(e)&&Boolean(e.props.children),Er=e=>f.isValidElement(e)&&Jr(e)&&f.Children.toArray(e.props.children).reduce((t,r)=>t||f.isValidElement(r),!1),ns=(e,t)=>f.Children.toArray(e).filter(t).map(r=>f.isValidElement(r)&&Er(r)?f.cloneElement(r,{...r.props,children:ns(r.props.children,t)}):r),as=ns,is=(e,t)=>{let r;return f.Children.toArray(e).find((n,a,i)=>t(n,a,i)?(r=n,!0):f.isValidElement(n)&&Er(n)?(r=is(n.props.children,t),typeof r<"u"):!1),r},$b=is,os=(e,t)=>{f.Children.forEach(e,(r,n)=>{f.isValidElement(r)&&Er(r)&&os(r.props.children,t),t(r,n)})},Tb=os,ss=(e,t)=>f.Children.toArray(e).map((r,n,a)=>f.isValidElement(r)&&Er(r)?t(f.cloneElement(r,{...r.props,children:ss(r.props.children,t)})):t(r,n,a)),Ob=ss,Ab=(e,t)=>f.Children.toArray(e).filter(t),ls=e=>f.isValidElement(e)?typeof e.type=="string"?e.type:e.type.name:null,Pb=(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=ls(i),s=o!==null&&n.includes(o)?o:r;return typeof a[s]>"u"&&(a[s]=[]),a[s]=[...a[s],i],a},{})},us=e=>typeof e>"u"||e===null||typeof e=="boolean"||JSON.stringify(e)==="{}"?"":e.toString(),cs=e=>!(e instanceof Array)&&!f.isValidElement(e)?us(e):f.Children.toArray(e).reduce((t,r)=>{let n="";return f.isValidElement(r)&&Jr(r)?n=cs(r.props.children):f.isValidElement(r)&&!Jr(r)?n="":n=us(r),t.concat(n)},""),Mb=cs,Ib=e=>as(e,t=>f.isValidElement(t)),Fb={...f.Children,deepFilter:as,deepFind:$b,deepForEach:Tb,deepMap:Ob,filter:Ab,getElementName:ls,groupByType:Pb,hasChildren:Jr,hasComplexChildren:Er,onlyText:Mb,onlyValid:Ib},Mt=X.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),kb=e=>{const t="",[r,n]=f.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return m.jsx(Mt.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},jb=e=>m.jsx(Mt.Consumer,{children:({searchRegEx:t})=>{if(!t)return m.jsx(X.Fragment,{children:e.children});if(t.test(e.label)||e.description&&t.test(Fb.onlyText(e.description))||X.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 X.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 m.jsx(X.Fragment,{children:e.children})}}),Db="rgba(5, 1, 1, 0.26)",Nb="rgba(0, 0, 0, 0.54)",ea=X.createContext({focussedSubPagePath:"",setFocussedSubPagePath:e=>{}}),fs=e=>{const[t,r]=f.useState("");return m.jsx(ea.Provider,{value:{focussedSubPagePath:t,setFocussedSubPagePath:r},children:m.jsx(ab,{initialValues:e.initialValues,onSubmit:n=>{},children:({values:n,errors:a,touched:i,handleChange:o,handleBlur:s,handleSubmit:c,isSubmitting:u})=>(e.setValueGetter&&e.setValueGetter(()=>n),e.setValueOnRender&&e.setValueOnRender(n),m.jsx("form",{onSubmit:c,css:ce.css`
|
|
36
|
-
flex-grow: 1;
|
|
37
|
-
`,children:m.jsx(Lb,{currentGroup:e.currentGroupIndex,focussedSubPagePath:t,children:e.children})}))})})},Lb=e=>m.jsx(Mt.Consumer,{children:({searchString:t})=>m.jsx("div",{id:"groups",css:ce.css`
|
|
38
|
-
width: 500px;
|
|
39
|
-
//overflow-y: scroll; //allows us to scroll the groups without
|
|
40
|
-
//scrolling the heading tabs
|
|
41
|
-
overflow-y: auto;
|
|
42
|
-
`,children:t?m.jsx(Cb,{searchString:t,focussedSubPagePath:e.focussedSubPagePath,children:e.children}):X.Children.toArray(e.children).filter((r,n)=>n===e.currentGroup)})}),ds=e=>m.jsxs(jb,{...e,kids:e.children,children:[m.jsxs("div",{className:"indentIfInSubPage",css:ce.css`
|
|
43
|
-
//margin-top: 21px !important;
|
|
44
|
-
margin-bottom: 12px !important;
|
|
45
|
-
`,children:[m.jsx(j.Typography,{variant:e.level===2?"h3":"h2",children:e.label}),m.jsx(j.Typography,{variant:"caption",children:e.description})]}),e.level===1?m.jsx("div",{className:"indentIfInSubPage",children:e.children}):m.jsx(Bb,{children:e.children})]}),Bb=e=>{const t=Hb(e);return m.jsx(j.Paper,{className:"indentIfInSubPage",elevation:2,css:ce.css`
|
|
46
|
-
//width: 100%; doesn't work with shadow
|
|
47
|
-
margin-left: 3px; //needed to show shadow
|
|
48
|
-
margin-right: 3px; //needed to show shadow
|
|
49
|
-
margin-bottom: 12px !important;
|
|
50
|
-
`,children:m.jsx(j.List,{component:"nav",css:ce.css`
|
|
51
|
-
width: calc(100% - 20px);
|
|
52
|
-
`,children:m.jsx(hs,{children:t})})})};function Hb(e){return X.Children.map(e.children,(t,r)=>X.isValidElement(t)?X.cloneElement(t,{...t.props}):null)}const hs=e=>{const t=X.Children.toArray(e.children).length;return e.children?X.Children.toArray(e.children).reduce((r,n,a)=>{if(!X.isValidElement(n))throw Error("We only expect to be given full elements not, e.g., strings");const i=n,o=ce.createElement(ps,{...i.props,key:"filter"+a},i,a<t-1&&m.jsx(j.Divider,{component:"li"},a));return r.concat(o)},[]):null},Gb=e=>m.jsxs(j.ListItem,{css:ce.css`
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
// I don't understand why this is needed. Else, it's centered
|
|
55
|
-
align-items: flex-start;
|
|
56
|
-
`,children:[m.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:e.description}),e.control]}),ps=e=>m.jsx(ea.Consumer,{children:({focussedSubPagePath:t})=>t&&!(e.path===t||ys(e.path,t)||ys(t,e.path))?null:m.jsx(X.Fragment,{children:e.children})}),Ye=e=>{const t=m.jsx(Mt.Consumer,{children:({searchRegEx:r})=>{const n=m.jsxs(X.Fragment,{children:[m.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:ce.css`
|
|
57
|
-
color: ${e.disabled?Db:"unset"};
|
|
58
|
-
${e.height?"height:"+e.height:""}
|
|
59
|
-
${e.indented&&"margin-left: 30px;"}
|
|
60
|
-
user-select: none;
|
|
61
|
-
* {
|
|
62
|
-
${e.labelCss}
|
|
63
|
-
}
|
|
64
|
-
`,primary:e.label,secondary:m.jsx(j.Typography,{variant:"caption",css:ce.css`
|
|
65
|
-
&,
|
|
66
|
-
* {
|
|
67
|
-
max-width: calc(100% - 20px);
|
|
68
|
-
}
|
|
69
|
-
`,children:e.description})}),m.jsx(j.ListItemSecondaryAction,{css:ce.css`
|
|
70
|
-
// OK, this feels like a hack. But the MUI default puts it at
|
|
71
|
-
// top:50% which is fine until you have a secondary label, in
|
|
72
|
-
// which case the whole thing gets very tall but really the
|
|
73
|
-
// button should be top-aligned.
|
|
74
|
-
/// Months later.. but it messed up toggleGroups and I'm not seeing the problem it was solving, at the moment.
|
|
75
|
-
//top: 22px;
|
|
76
|
-
`,children:e.control})]});if(r){const a=X.Children.toArray(e.children).filter(i=>r.exec(i.props.label)).length;if(a)return m.jsxs("div",{children:[n,m.jsx("span",{css:ce.css`
|
|
77
|
-
background-color: yellow;
|
|
78
|
-
`,children:`${a} matches`})]})}return n}});return e.onClick?m.jsx(j.ListItemButton,{onClick:e.onClick,children:t}):m.jsx(j.ListItem,{css:ce.css`
|
|
79
|
-
height: ${e.height};
|
|
80
|
-
`,children:t})},Vb=e=>m.jsx(Ye,{...e,control:m.jsx(wr,{component:ts,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:m.jsx(j.InputAdornment,{position:"end",children:e.units})}:void 0,css:ce.css`
|
|
81
|
-
input {
|
|
82
|
-
text-align: end;
|
|
83
|
-
}
|
|
84
|
-
`})}),Ub=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,onChange:i})})},zb=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,onChange:i})})},Wb=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,onChange:i})})},Kb=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,onChange:i})})},qb=e=>{const t=!ay(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(wr,{name:e.path,disabled:t,component:Qo,sx:{minWidth:180},css:ce.css`
|
|
85
|
-
.MuiSelect-select {
|
|
86
|
-
padding: 3px !important;
|
|
87
|
-
padding-left: 9px !important;
|
|
88
|
-
background-color: #f1f1f1;
|
|
89
|
-
}
|
|
90
|
-
* {
|
|
91
|
-
border-style: none;
|
|
92
|
-
}
|
|
93
|
-
`,children:e.options.map(r=>{if(typeof r=="number")return m.jsx(j.MenuItem,{value:r,children:m.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return m.jsx(j.MenuItem,{value:a,children:r.description?m.jsx(j.Tooltip,{title:r.description,children:m.jsx("span",{children:n})}):m.jsx("span",{children:n})},n)})})})},Rb=e=>m.jsx(ps,{...e,children:m.jsx(ds,{...e,level:2,children:e.children})}),Yb=e=>m.jsx(ea.Consumer,{children:({focussedSubPagePath:t,setFocussedSubPagePath:r})=>t===e.path?m.jsxs(X.Fragment,{children:[m.jsxs("div",{css:e.labelCss,children:[m.jsx(j.IconButton,{onClick:()=>r(""),children:m.jsx(oc,{})}),e.label]}),m.jsx("div",{css:ce.css`
|
|
94
|
-
.indentIfInSubPage {
|
|
95
|
-
margin-left: 20px;
|
|
96
|
-
//margin-right: 20px;
|
|
97
|
-
}
|
|
98
|
-
`,children:m.jsx(hs,{children:e.children})})]}):m.jsx(Ye,{onClick:()=>r(e.path),control:m.jsx(ic,{}),...e})}),Xb=e=>{const{values:t}=gt(),r=bs(t,e.path);return m.jsx(X.Fragment,{children:r.map((n,a)=>e.render(`${e.path}[${a}]`,a))})},Jb=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(wr,{component:es,type:"checkbox",name:e.path,label:e.label}):m.jsx(wr,{component:Zo,type:"checkbox",name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{n.setValue(!t.value)},control:a,...e})},Zb=e=>m.jsx(Gb,{...e,control:m.jsx(vs,{...e})}),vs=e=>{const[t]=yt(e.path);return console.log("radiogroup field "+JSON.stringify(t)),m.jsx(j.RadioGroup,{row:e.row,...t,...e,children:e.children})},Qb=e=>{const t=j.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(j.FormControlLabel,{value:e.value,control:m.jsx(j.Radio,{}),label:e.label}):m.jsx(X.Fragment,{children:e.children})},ey=e=>m.jsx(Ye,{...e,control:m.jsx(gs,{...e})}),gs=e=>m.jsx(wr,{component:rs,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function ty(e,t){return m.jsx(j.ToggleButton,{value:e,children:t})}const ry=e=>{const{setFieldValue:t}=gt(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:ce.css`
|
|
99
|
-
height: 56px; // leave room to show the path below the button
|
|
100
|
-
`,children:[m.jsx(j.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),m.jsx("div",{css:ce.css`
|
|
101
|
-
color: ${Nb};
|
|
102
|
-
`,children:r.value})]})})},ny=e=>{const{values:t}=gt(),r=e.enableWhen?!e.enableWhen(t):!1;return(e.visibleWhen?e.visibleWhen(t):!0)?m.jsx(X.Fragment,{children:X.Children.map(e.children,a=>X.isValidElement(a)?X.cloneElement(a,{disabled:r}):a)}):null};function bs(e,t,r,n=0){const a=Oh(t);for(;e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function ay(e,t){const{values:r}=gt();return t?typeof t=="string"?bs(r,t)===!0:t(r):e}function ys(e,t){return t.startsWith(e+".")}const ms={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"}}}}},xs=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},iy=e=>e?xs(e):xs;var ta={},oy={get exports(){return ta},set exports(e){ta=e}},ra={},Zr={},sy={get exports(){return Zr},set exports(e){Zr=e}},na={};/**
|
|
103
|
-
* @license React
|
|
104
|
-
* use-sync-external-store-shim.production.min.js
|
|
105
|
-
*
|
|
106
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the MIT license found in the
|
|
109
|
-
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/var Ss;function ly(){if(Ss)return na;Ss=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,y=v[1];return i(function(){g.value=p,g.getSnapshot=d,c(g)&&y({inst:g})},[l,p,d]),a(function(){return c(g)&&y({inst:g}),l(function(){c(g)&&y({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 na.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,na}var aa={};/**
|
|
111
|
-
* @license React
|
|
112
|
-
* use-sync-external-store-shim.development.js
|
|
113
|
-
*
|
|
114
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the MIT license found in the
|
|
117
|
-
* LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/var ws;function uy(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var S=arguments.length,b=new Array(S>1?S-1:0),T=1;T<S;T++)b[T-1]=arguments[T];n("error",_,b)}}function n(_,S,b){{var T=t.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(S+="%s",b=b.concat([k]));var W=b.map(function(q){return String(q)});W.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,W)}}function a(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var i=typeof Object.is=="function"?Object.is:a,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,h=!1,l=!1;function d(_,S,b){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!l){var k=S();i(T,k)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var W=o({inst:{value:T,getSnapshot:S}}),q=W[0].inst,ge=W[1];return c(function(){q.value=T,q.getSnapshot=S,p(q)&&ge({inst:q})},[_,T,S]),s(function(){p(q)&&ge({inst:q});var ae=function(){p(q)&&ge({inst:q})};return _(ae)},[_]),u(T),T}function p(_){var S=_.getSnapshot,b=_.value;try{var T=S();return!i(b,T)}catch{return!0}}function v(_,S,b){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,x=y?v:d,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;aa.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),aa}var Es;function _s(){return Es||(Es=1,function(e){process.env.NODE_ENV==="production"?e.exports=ly():e.exports=uy()}(sy)),Zr}/**
|
|
119
|
-
* @license React
|
|
120
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
121
|
-
*
|
|
122
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the MIT license found in the
|
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/var Cs;function cy(){if(Cs)return ra;Cs=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 ra.useSyncExternalStoreWithSelector=function(u,h,l,d,p){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=s(function(){function x(T){if(!C){if(C=!0,_=T,T=d(T),p!==void 0&&g.hasValue){var k=g.value;if(p(k,T))return S=k}return S=T}if(k=S,n(_,T))return k;var W=d(T);return p!==void 0&&p(k,W)?k:(_=T,S=W)}var C=!1,_,S,b=l===void 0?null:l;return[function(){return x(h())},b===null?void 0:function(){return x(b())}]},[h,l,d,p]);var y=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=y},[y]),c(y),y},ra}var ia={};/**
|
|
127
|
-
* @license React
|
|
128
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
129
|
-
*
|
|
130
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the MIT license found in the
|
|
133
|
-
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var $s;function fy(){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=_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),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,k,W=function(he){if(!b){b=!0,T=he;var Se=p(he);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,Se))return k=be,be}return k=Se,Se}var Ce=T,se=k;if(n(Ce,he))return se;var me=p(he);return v!==void 0&&v(se,me)?se:(T=he,k=me,me)},q=d===void 0?null:d,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,d,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}ia.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ia}(function(e){process.env.NODE_ENV==="production"?e.exports=cy():e.exports=fy()})(oy);const dy=xc(ta),{useSyncExternalStoreWithSelector:hy}=dy;function Ts(e,t=e.getState,r){const n=hy(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return f.useDebugValue(n),n}const Os=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"?iy(e):e,n=(a,i)=>Ts(r,a,i);return Object.assign(n,r),n},py=e=>e?Os(e):Os;var As=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'`."),py(e)};function Ps(){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 Ts(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 Ms=(e,t)=>(...r)=>Object.assign({},e,t(...r));var vy=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()}},gy=vy,Is={"text/plain":"Text","text/html":"Url",default:"Text"},by="Copy to clipboard: #{key}, Enter";function yy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function my(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=gy(),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=Is[t.format]||Is.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=yy("message"in t?t.message:by),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var Fs=my;function oa(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){oa(e,a,r[a])})}return e}function xy(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)):xy(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function sa(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 Sy(e){if(Array.isArray(e))return sa(e)}function ks(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wy(){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 js(e,t){if(e){if(typeof e=="string")return sa(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 sa(e,t)}}function at(e){return Sy(e)||ks(e)||js(e)||wy()}function Ey(e){if(Array.isArray(e))return e}function _y(){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 Ey(e)||ks(e)||js(e,t)||_y()}var la={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"},Ds={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"},Ns=function(){return null};Ns.when=function(){return!1};var ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Sa,wa,Ea,Cy=function(e){return As(Ms({enableClipboard:(ua=e.enableClipboard)!==null&&ua!==void 0?ua:!0,indentWidth:(ca=e.indentWidth)!==null&&ca!==void 0?ca:3,groupArraysAfterLength:(fa=e.groupArraysAfterLength)!==null&&fa!==void 0?fa:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(da=e.collapseStringsAfterLength)!==null&&da!==void 0?da:50,maxDisplayLength:(ha=e.maxDisplayLength)!==null&&ha!==void 0?ha:30,rootName:(pa=e.rootName)!==null&&pa!==void 0?pa:"root",onChange:(va=e.onChange)!==null&&va!==void 0?va:function(){},onCopy:(ga=e.onCopy)!==null&&ga!==void 0?ga:void 0,keyRenderer:(ba=e.keyRenderer)!==null&&ba!==void 0?ba:Ns,editable:(ya=e.editable)!==null&&ya!==void 0?ya:!1,defaultInspectDepth:(ma=e.defaultInspectDepth)!==null&&ma!==void 0?ma:5,objectSortKeys:(xa=e.objectSortKeys)!==null&&xa!==void 0?xa:!1,quotesOnKeys:(Sa=e.quotesOnKeys)!==null&&Sa!==void 0?Sa:!0,displayDataTypes:(wa=e.displayDataTypes)!==null&&wa!==void 0?wa:!0,inspectCache:{},hoverPath:null,colorspace:la,value:e.value,displayObjectSize:(Ea=e.displayObjectSize)!==null&&Ea!==void 0?Ea:!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),oa({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},_a=Ps(),J=_a.useStore,Ls=_a.useStoreApi,$y=_a.Provider,Ca=function(){return J(function(e){return e.colorspace.base07})};function it(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ty(){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);it(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 Fs(v)}):Fs(v)}},[s,c]),h=f.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Oy=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=at(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 Cr(e){return e===null?0:Array.isArray(e)?e.length:it(e,Map)||it(e,Set)?e.size:it(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Ay(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 f.useMemo(function(){return Oy(r,e,t)},[e,t,r])}function Py(e,t,r){var n=e.length,a=$a(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 My(e){return e&&e.constructor===Symbol?"symbol":typeof e}var ot=function(e){return m.jsx(j.Box,_r(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Bs=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(ot,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function et(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 m.jsxs(ot,{sx:{color:l},children:[a&&h&&m.jsx(Bs,{dataType:e}),m.jsx(ot,{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,d=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(j.InputBase,{value:h,onChange:f.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:d,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var Iy=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)},Fy=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()},ky="{",jy="}",Dy=function(e){return m.jsxs(j.NoSsr,{children:[m.jsx(Bs,{dataType:"function"}),m.jsxs(j.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Fy(e.value)," ",ky]})]})},Ny=function(){return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{component:"span",className:"data-function-end",children:jy})})},Ly=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Iy(e.value):m.jsx(j.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function By(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 Hy(e,t){if(e==null)return{};var r=By(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=Hy(e,["d"]);return m.jsx(j.SvgIcon,_r(ie({},r),{children:m.jsx("path",{d:t})}))},Gy="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Vy="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Uy="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",zy="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",Wy="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",Ky="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",qy="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Hs=function(e){return m.jsx(mt,ie({d:Gy},e))},Ry=function(e){return m.jsx(mt,ie({d:Vy},e))},Yy=function(e){return m.jsx(mt,ie({d:Uy},e))},Xy=function(e){return m.jsx(mt,ie({d:zy},e))},Jy=function(e){return m.jsx(mt,ie({d:Wy},e))},Zy=function(e){return m.jsx(mt,ie({d:Ky},e))},Qy=function(e){return m.jsx(mt,ie({d:qy},e))},em="{",tm="[",rm="}",nm="]";function Gs(e){var t=Cr(e),r="";return(it(e,Map)||it(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 am=function(e){var t=J(function(c){return c.colorspace.base04}),r=Ca(),n=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=f.useMemo(function(){return Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=$a(e.path,e.value);return m.jsxs(j.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?tm:em,o&&e.inspect&&!a&&m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Yy,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},im=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 Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]);return m.jsxs(j.Box,{component:"span",className:"data-object-end",children:[r?nm:rm,n&&(a||!e.inspect)?m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function om(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var sm=function(e){var t=Ca(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=$a(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=om(v);if(g&&!Array.isArray(v)){var y=[];if(it(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,k=Me(T,2),W=k[0],q=k[1],ge="".concat(W);y.push(m.jsx(It,{path:at(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;y.push(m.jsx(It,{path:at(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 y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,L){var B=at(e.path).concat([L]);return m.jsx(It,{path:B,value:M},L)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(ot,{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 $=Ay(v,n);return $.map(function(M,L){var B=at(e.path);return m.jsx(It,{path:B,value:M,nestedIndex:L},L)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return H.localeCompare(K)}):A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return c(H,K)}));var U=A.slice(0,o).map(function(M){var L=Me(M,2),B=L[0],H=L[1],P=at(e.path).concat([B]);return m.jsx(It,{path:P,value:H},B)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(ot,{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 Cr(e.value)===0},[e.value]);return p?null:m.jsx(j.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?d-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(j.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},lm=function(){return As(Ms({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Vs=Ps(),um=Vs.Provider,Us=Vs.useStore,cm={is:function(e){return typeof e=="object"},Component:sm,PreComponent:am,PostComponent:im};function fm(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 cm;throw new Error("this is not possible")}return n}function dm(e,t){var r=Us(function(n){return n.registry});return f.useMemo(function(){return fm(e,t,r)},[e,t,r])}function hm(){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"}},et("bool",function(a){var i=a.value;return m.jsx(m.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 it(a,Date)}},et("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}},et("null",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},et("undefined",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},et("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 m.jsxs(j.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.jsx(j.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Ly,PreComponent:Dy,PostComponent:Ny});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},et("NaN",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},et("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)}},et("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":My(a))==="bigint"}},et("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 Qr=function(e){return m.jsx(j.Box,_r(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},It=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}),y=J(function(P){return P.value}),x=Me(Py(r,t,n),2),C=x[0],_=x[1],S=Me(f.useState(!1),2),b=S[0],T=S[1],k=J(function(P){return P.onChange}),W=Ca(),q=J(function(P){return P.colorspace.base0C}),ge=dm(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=y===t,Oe=Number.isInteger(Number(d)),Ae=J(function(P){return P.enableClipboard}),$=Ty(),A=$.copy,U=$.copied,G=f.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Qr,{children:m.jsx(Xy,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Qr,{children:m.jsx(Hs,{sx:{fontSize:".8rem"},onClick:function(){T(!1),k(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Qr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(K){console.error(K)}},children:U?m.jsx(Hs,{sx:{fontSize:".8rem"}}):m.jsx(Jy,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Qr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(Zy,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,k,r,u,t]),M=f.useMemo(function(){return Cr(t)===0},[t]),L=!M&&!!(he&&Se),B=J(function(P){return P.keyRenderer}),H=f.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(j.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:f.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(ot,{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:[L?C?m.jsx(Qy,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Ry,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,me?se!==!1?Ce?m.jsxs(m.Fragment,{children:['"',se,'"']}):m.jsx(m.Fragment,{children:se}):null:B.when(H)?m.jsx(B,ie({},H)):n===void 0&&(Oe?m.jsx(j.Box,{component:"span",style:{color:q},children:d}):Ce?m.jsxs(m.Fragment,{children:['"',d,'"']}):m.jsx(m.Fragment,{children:d})),me?se!==!1?m.jsx(ot,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(ot,{sx:{mr:.5},children:":"}),he&&m.jsx(he,ie({},H)),v&&L&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(j.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),Se&&m.jsx(Se,ie({},H)),v&&L&&!C&&G,v&&!L&&G]})},zs="(prefers-color-scheme: dark)";function pm(){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(zs).matches);var a=window.matchMedia(zs);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Le(e,t){var r=Ls();f.useEffect(function(){t!==void 0&&r.setState(oa({},e,t))},[e,t,r])}var vm=function(e){var t=Ls();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:la}):e.theme==="dark"?t.setState({colorspace:Ds}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=f.useRef(!0),n=f.useMemo(function(){return hm()},[]),a=Us(function(u){return u.registerTypes});if(r.current){var i,o=at(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=at(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(j.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:f.useCallback(function(){c(null)},[c]),children:m.jsx(It,{value:s,path:f.useMemo(function(){return[]},[])})})},gm=function(t){var r=pm(),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"?Ds.base00:la.base00;return j.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=_r(ie({},t),{theme:a});return m.jsx(j.ThemeProvider,{theme:i,children:m.jsx(um,{createStore:lm,children:m.jsx($y,{createStore:function(){return Cy(t)},children:m.jsx(vm,ie({},o))})})})};const bm=e=>{const[t,r]=f.useState(0),n=e.themeOverrides?rt.createTheme(ms,e.themeOverrides):rt.createTheme(ms),a=X.Children.toArray(e.children).length>1,[i,o]=f.useState(e.initialValues),s=c=>{e.setValueOnRender&&e.setValueOnRender(c),o(c)};return m.jsxs("div",{css:ce.css`
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: row;
|
|
137
|
-
`,children:[m.jsx(rt.ThemeProvider,{theme:n,children:m.jsx(kb,{children:m.jsx(Mt.Consumer,{children:({searchString:c,setSearchString:u})=>m.jsxs(X.Fragment,{children:[e.showAppBar&&m.jsx(mc,{label:e.label,showSearch:e.showSearch,searchValue:c,setSearchString:h=>{c!==h&&(u(h),r(h?void 0:0))}}),m.jsxs("div",{css:ce.css`
|
|
138
|
-
// no. Make client set the background color: background-color: #f8f9fa;
|
|
139
|
-
height: 100%;
|
|
140
|
-
display: flex;
|
|
141
|
-
padding-right: 20px;
|
|
142
|
-
padding-left: ${a?void 0:"20px"};
|
|
143
|
-
|
|
144
|
-
.MuiTab-wrapper {
|
|
145
|
-
text-align: left;
|
|
146
|
-
align-items: start;
|
|
147
|
-
}
|
|
148
|
-
`,className:e.className,children:[a&&m.jsx(ym,{currentGroup:t,setCurrentGroupIndex:r,children:e.children}),m.jsx(fs,{currentGroupIndex:t,setValueOnRender:s,...e})]})]})})})}),e.showJson&&m.jsx("div",{css:ce.css`
|
|
149
|
-
white-space: pre;
|
|
150
|
-
margin-left: 20px;
|
|
151
|
-
.data-type-label {
|
|
152
|
-
color: lightblue;
|
|
153
|
-
font-size: 7px;
|
|
154
|
-
}
|
|
155
|
-
`,children:m.jsx(gm,{value:i})})]})},ym=e=>{const t=f.useMemo(()=>X.Children.map(e.children,r=>m.jsx(j.Tab,{label:r.props.label,css:ce.css`
|
|
156
|
-
font-weight: 500;
|
|
157
|
-
align-items: start;
|
|
158
|
-
text-transform: unset;
|
|
159
|
-
color: black;
|
|
160
|
-
font-weight: 500;
|
|
161
|
-
font-size: 13px;
|
|
162
|
-
`},r.props.label)),[e.children]);return m.jsx(Mt.Consumer,{children:({searchString:r,setSearchString:n})=>m.jsx(j.Tabs,{value:e.currentGroup===void 0?!1:e.currentGroup,onChange:(a,i)=>{r&&(console.log("clearing search from onchange from tab"),n("")),e.setCurrentGroupIndex(i)},centered:!1,orientation:"vertical",css:ce.css`
|
|
163
|
-
min-width: 150px;
|
|
164
|
-
.MuiTabs-indicator {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
167
|
-
.Mui-selected {
|
|
168
|
-
font-weight: bold;
|
|
169
|
-
}
|
|
170
|
-
button {
|
|
171
|
-
padding-left: 0;
|
|
172
|
-
min-height: 0;
|
|
173
|
-
padding-top: 0;
|
|
174
|
-
}
|
|
175
|
-
`,children:t})})};var Be={},$r={},mm=lt,xm=De,Sm=Je,wm="[object String]";function Em(e){return typeof e=="string"||!xm(e)&&Sm(e)&&mm(e)==wm}var _m=Em;function Cm(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 $m=Cm,Tm=$m,Om=Tm(),Am=Om;function Pm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Mm=Pm,Im=lt,Fm=Je,km="[object Arguments]";function jm(e){return Fm(e)&&Im(e)==km}var Dm=jm,Ws=Dm,Nm=Je,Ks=Object.prototype,Lm=Ks.hasOwnProperty,Bm=Ks.propertyIsEnumerable,Hm=Ws(function(){return arguments}())?Ws:function(e){return Nm(e)&&Lm.call(e,"callee")&&!Bm.call(e,"callee")},qs=Hm,Ft={},Gm={get exports(){return Ft},set exports(e){Ft=e}};function Vm(){return!1}var Um=Vm;(function(e,t){var r=We,n=Um,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})(Gm,Ft);var zm=9007199254740991,Wm=/^(?:0|[1-9]\d*)$/;function Km(e,t){var r=typeof e;return t=t??zm,!!t&&(r=="number"||r!="symbol"&&Wm.test(e))&&e>-1&&e%1==0&&e<t}var Rs=Km,qm=9007199254740991;function Rm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qm}var Ta=Rm,Ym=lt,Xm=Ta,Jm=Je,Zm="[object Arguments]",Qm="[object Array]",e1="[object Boolean]",t1="[object Date]",r1="[object Error]",n1="[object Function]",a1="[object Map]",i1="[object Number]",o1="[object Object]",s1="[object RegExp]",l1="[object Set]",u1="[object String]",c1="[object WeakMap]",f1="[object ArrayBuffer]",d1="[object DataView]",h1="[object Float32Array]",p1="[object Float64Array]",v1="[object Int8Array]",g1="[object Int16Array]",b1="[object Int32Array]",y1="[object Uint8Array]",m1="[object Uint8ClampedArray]",x1="[object Uint16Array]",S1="[object Uint32Array]",de={};de[h1]=de[p1]=de[v1]=de[g1]=de[b1]=de[y1]=de[m1]=de[x1]=de[S1]=!0,de[Zm]=de[Qm]=de[f1]=de[e1]=de[d1]=de[t1]=de[r1]=de[n1]=de[a1]=de[i1]=de[o1]=de[s1]=de[l1]=de[u1]=de[c1]=!1;function w1(e){return Jm(e)&&Xm(e.length)&&!!de[Ym(e)]}var E1=w1;function _1(e){return function(t){return e(t)}}var Oa=_1,kt={},C1={get exports(){return kt},set exports(e){kt=e}};(function(e,t){var r=Pi,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})(C1,kt);var $1=E1,T1=Oa,Ys=kt,Xs=Ys&&Ys.isTypedArray,O1=Xs?T1(Xs):$1,Js=O1,A1=Mm,P1=qs,M1=De,I1=Ft,F1=Rs,k1=Js,j1=Object.prototype,D1=j1.hasOwnProperty;function N1(e,t){var r=M1(e),n=!r&&P1(e),a=!r&&!n&&I1(e),i=!r&&!n&&!a&&k1(e),o=r||n||a||i,s=o?A1(e.length,String):[],c=s.length;for(var u in e)(t||D1.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||F1(u,c)))&&s.push(u);return s}var Zs=N1,L1=Object.prototype;function B1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||L1;return e===r}var Aa=B1;function H1(e,t){return function(r){return e(t(r))}}var Qs=H1,G1=Qs,V1=G1(Object.keys,Object),U1=V1,z1=Aa,W1=U1,K1=Object.prototype,q1=K1.hasOwnProperty;function R1(e){if(!z1(e))return W1(e);var t=[];for(var r in Object(e))q1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Y1=R1,X1=ji,J1=Ta;function Z1(e){return e!=null&&J1(e.length)&&!X1(e)}var en=Z1,Q1=Zs,ex=Y1,tx=en;function rx(e){return tx(e)?Q1(e):ex(e)}var Tr=rx,nx=Am,ax=Tr;function ix(e,t){return e&&nx(e,t,ax)}var el=ix;function ox(e){return e}var tl=ox,sx=tl;function lx(e){return typeof e=="function"?e:sx}var ux=lx,cx=el,fx=ux;function dx(e,t){return e&&cx(e,fx(t))}var Pa=dx,hx=Qs,px=hx(Object.getPrototypeOf,Object),Ma=px,vx=lt,gx=Ma,bx=Je,yx="[object Object]",mx=Function.prototype,xx=Object.prototype,rl=mx.toString,Sx=xx.hasOwnProperty,wx=rl.call(Object);function Ex(e){if(!bx(e)||vx(e)!=yx)return!1;var t=gx(e);if(t===null)return!0;var r=Sx.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&rl.call(r)==wx}var _x=Ex,Cx=Gr;function $x(){this.__data__=new Cx,this.size=0}var Tx=$x;function Ox(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ax=Ox;function Px(e){return this.__data__.get(e)}var Mx=Px;function Ix(e){return this.__data__.has(e)}var Fx=Ix,kx=Gr,jx=Sn,Dx=wn,Nx=200;function Lx(e,t){var r=this.__data__;if(r instanceof kx){var n=r.__data__;if(!jx||n.length<Nx-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Dx(n)}return r.set(e,t),this.size=r.size,this}var Bx=Lx,Hx=Gr,Gx=Tx,Vx=Ax,Ux=Mx,zx=Fx,Wx=Bx;function jt(e){var t=this.__data__=new Hx(e);this.size=t.size}jt.prototype.clear=Gx,jt.prototype.delete=Vx,jt.prototype.get=Ux,jt.prototype.has=zx,jt.prototype.set=Wx;var Ia=jt,Kx="__lodash_hash_undefined__";function qx(e){return this.__data__.set(e,Kx),this}var Rx=qx;function Yx(e){return this.__data__.has(e)}var Xx=Yx,Jx=wn,Zx=Rx,Qx=Xx;function tn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Jx;++t<r;)this.add(e[t])}tn.prototype.add=tn.prototype.push=Zx,tn.prototype.has=Qx;var eS=tn;function tS(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 rS=tS;function nS(e,t){return e.has(t)}var aS=nS,iS=eS,oS=rS,sS=aS,lS=1,uS=2;function cS(e,t,r,n,a,i){var o=r&lS,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&uS?new iS: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;d=!1;break}if(p){if(!oS(t,function(x,C){if(!sS(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 nl=cS,fS=We,dS=fS.Uint8Array,al=dS;function hS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var pS=hS;function vS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var gS=vS,il=ar,ol=al,bS=xn,yS=nl,mS=pS,xS=gS,SS=1,wS=2,ES="[object Boolean]",_S="[object Date]",CS="[object Error]",$S="[object Map]",TS="[object Number]",OS="[object RegExp]",AS="[object Set]",PS="[object String]",MS="[object Symbol]",IS="[object ArrayBuffer]",FS="[object DataView]",sl=il?il.prototype:void 0,Fa=sl?sl.valueOf:void 0;function kS(e,t,r,n,a,i,o){switch(r){case FS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case IS:return!(e.byteLength!=t.byteLength||!i(new ol(e),new ol(t)));case ES:case _S:case TS:return bS(+e,+t);case CS:return e.name==t.name&&e.message==t.message;case OS:case PS:return e==t+"";case $S:var s=mS;case AS:var c=n&SS;if(s||(s=xS),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=wS,o.set(e,t);var h=yS(s(e),s(t),n,a,i,o);return o.delete(e),h;case MS:if(Fa)return Fa.call(e)==Fa.call(t)}return!1}var jS=kS;function DS(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var ll=DS,NS=ll,LS=De;function BS(e,t,r){var n=t(e);return LS(e)?n:NS(n,r(e))}var ul=BS;function HS(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 GS=HS;function VS(){return[]}var cl=VS,US=GS,zS=cl,WS=Object.prototype,KS=WS.propertyIsEnumerable,fl=Object.getOwnPropertySymbols,qS=fl?function(e){return e==null?[]:(e=Object(e),US(fl(e),function(t){return KS.call(e,t)}))}:zS,ka=qS,RS=ul,YS=ka,XS=Tr;function JS(e){return RS(e,XS,YS)}var dl=JS,hl=dl,ZS=1,QS=Object.prototype,ew=QS.hasOwnProperty;function tw(e,t,r,n,a,i){var o=r&ZS,s=hl(e),c=s.length,u=hl(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:ew.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 y=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}y||(y=d=="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 rw=tw,nw=ut,aw=We,iw=nw(aw,"DataView"),ow=iw,sw=ut,lw=We,uw=sw(lw,"Promise"),cw=uw,fw=ut,dw=We,hw=fw(dw,"Set"),pw=hw,vw=ut,gw=We,bw=vw(gw,"WeakMap"),yw=bw,ja=ow,Da=Sn,Na=cw,La=pw,Ba=yw,pl=lt,Dt=Ni,vl="[object Map]",mw="[object Object]",gl="[object Promise]",bl="[object Set]",yl="[object WeakMap]",ml="[object DataView]",xw=Dt(ja),Sw=Dt(Da),ww=Dt(Na),Ew=Dt(La),_w=Dt(Ba),xt=pl;(ja&&xt(new ja(new ArrayBuffer(1)))!=ml||Da&&xt(new Da)!=vl||Na&&xt(Na.resolve())!=gl||La&&xt(new La)!=bl||Ba&&xt(new Ba)!=yl)&&(xt=function(e){var t=pl(e),r=t==mw?e.constructor:void 0,n=r?Dt(r):"";if(n)switch(n){case xw:return ml;case Sw:return vl;case ww:return gl;case Ew:return bl;case _w:return yl}return t});var rn=xt,Ha=Ia,Cw=nl,$w=jS,Tw=rw,xl=rn,Sl=De,wl=Ft,Ow=Js,Aw=1,El="[object Arguments]",_l="[object Array]",nn="[object Object]",Pw=Object.prototype,Cl=Pw.hasOwnProperty;function Mw(e,t,r,n,a,i){var o=Sl(e),s=Sl(t),c=o?_l:xl(e),u=s?_l:xl(t);c=c==El?nn:c,u=u==El?nn:u;var h=c==nn,l=u==nn,d=c==u;if(d&&wl(e)){if(!wl(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ha),o||Ow(e)?Cw(e,t,r,n,a,i):$w(e,t,c,r,n,a,i);if(!(r&Aw)){var p=h&&Cl.call(e,"__wrapped__"),v=l&&Cl.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 d?(i||(i=new Ha),Tw(e,t,r,n,a,i)):!1}var Iw=Mw,Fw=Iw,$l=Je;function Tl(e,t,r,n,a){return e===t?!0:e==null||t==null||!$l(e)&&!$l(t)?e!==e&&t!==t:Fw(e,t,r,n,Tl,a)}var Ol=Tl,kw=Ia,jw=Ol,Dw=1,Nw=2;function Lw(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 kw;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?jw(h,u,Dw|Nw,n,l):d))return!1}}return!0}var Bw=Lw,Hw=_t;function Gw(e){return e===e&&!Hw(e)}var Al=Gw,Vw=Al,Uw=Tr;function zw(e){for(var t=Uw(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Vw(a)]}return t}var Ww=zw;function Kw(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Pl=Kw,qw=Bw,Rw=Ww,Yw=Pl;function Xw(e){var t=Rw(e);return t.length==1&&t[0][2]?Yw(t[0][0],t[0][1]):function(r){return r===e||qw(r,e,t)}}var Jw=Xw,Zw=De,Qw=Lr,eE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tE=/^\w*$/;function rE(e,t){if(Zw(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Qw(e)?!0:tE.test(e)||!eE.test(e)||t!=null&&e in Object(t)}var Ga=rE,nE=De,aE=Ga,iE=Gi,oE=Ki;function sE(e,t){return nE(e)?e:aE(e,t)?[e]:iE(oE(e))}var Ml=sE,lE=Ml,uE=or;function cE(e,t){t=lE(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[uE(t[r++])];return r&&r==n?e:void 0}var Il=cE,fE=Il;function dE(e,t,r){var n=e==null?void 0:fE(e,t);return n===void 0?r:n}var hE=dE;function pE(e,t){return e!=null&&t in Object(e)}var vE=pE,gE=Ml,bE=qs,yE=De,mE=Rs,xE=Ta,SE=or;function wE(e,t,r){t=gE(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=SE(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&&xE(a)&&mE(o,a)&&(yE(e)||bE(e)))}var EE=wE,_E=vE,CE=EE;function $E(e,t){return e!=null&&CE(e,t,_E)}var TE=$E,OE=Ol,AE=hE,PE=TE,ME=Ga,IE=Al,FE=Pl,kE=or,jE=1,DE=2;function NE(e,t){return ME(e)&&IE(t)?FE(kE(e),t):function(r){var n=AE(r,e);return n===void 0&&n===t?PE(r,e):OE(t,n,jE|DE)}}var LE=NE;function BE(e){return function(t){return t==null?void 0:t[e]}}var HE=BE,GE=Il;function VE(e){return function(t){return GE(t,e)}}var UE=VE,zE=HE,WE=UE,KE=Ga,qE=or;function RE(e){return KE(e)?zE(qE(e)):WE(e)}var YE=RE,XE=Jw,JE=LE,ZE=tl,QE=De,e_=YE;function t_(e){return typeof e=="function"?e:e==null?ZE:typeof e=="object"?QE(e)?JE(e[0],e[1]):XE(e):e_(e)}var r_=t_,n_=en;function a_(e,t){return function(r,n){if(r==null)return r;if(!n_(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 i_=a_,o_=el,s_=i_,l_=s_(o_),u_=l_,c_=u_,f_=en;function d_(e,t){var r=-1,n=f_(e)?Array(e.length):[];return c_(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var h_=d_,p_=yn,v_=r_,g_=h_,b_=De;function y_(e,t){var r=b_(e)?p_:g_;return r(e,v_(t))}var m_=y_;Object.defineProperty($r,"__esModule",{value:!0}),$r.flattenNames=void 0;var x_=_m,S_=an(x_),w_=Pa,E_=an(w_),__=_x,C_=an(__),$_=m_,T_=an($_);function an(e){return e&&e.__esModule?e:{default:e}}var O_=$r.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,T_.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,C_.default)(n)?(0,E_.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,S_.default)(n)&&r.push(n)}),r};$r.default=O_;var Or={};function A_(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var P_=A_,M_=ut,I_=function(){try{var e=M_(Object,"defineProperty");return e({},"",{}),e}catch{}}(),F_=I_,Fl=F_;function k_(e,t,r){t=="__proto__"&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var kl=k_,j_=kl,D_=xn,N_=Object.prototype,L_=N_.hasOwnProperty;function B_(e,t,r){var n=e[t];(!(L_.call(e,t)&&D_(n,r))||r===void 0&&!(t in e))&&j_(e,t,r)}var jl=B_,H_=jl,G_=kl;function V_(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?G_(r,s,c):H_(r,s,c)}return r}var on=V_,U_=on,z_=Tr;function W_(e,t){return e&&U_(t,z_(t),e)}var K_=W_;function q_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var R_=q_,Y_=_t,X_=Aa,J_=R_,Z_=Object.prototype,Q_=Z_.hasOwnProperty;function eC(e){if(!Y_(e))return J_(e);var t=X_(e),r=[];for(var n in e)n=="constructor"&&(t||!Q_.call(e,n))||r.push(n);return r}var tC=eC,rC=Zs,nC=tC,aC=en;function iC(e){return aC(e)?rC(e,!0):nC(e)}var Va=iC,oC=on,sC=Va;function lC(e,t){return e&&oC(t,sC(t),e)}var uC=lC,sn={},cC={get exports(){return sn},set exports(e){sn=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})(cC,sn);var fC=on,dC=ka;function hC(e,t){return fC(e,dC(e),t)}var pC=hC,vC=ll,gC=Ma,bC=ka,yC=cl,mC=Object.getOwnPropertySymbols,xC=mC?function(e){for(var t=[];e;)vC(t,bC(e)),e=gC(e);return t}:yC,Dl=xC,SC=on,wC=Dl;function EC(e,t){return SC(e,wC(e),t)}var _C=EC,CC=ul,$C=Dl,TC=Va;function OC(e){return CC(e,TC,$C)}var AC=OC,PC=Object.prototype,MC=PC.hasOwnProperty;function IC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&MC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var FC=IC,Nl=al;function kC(e){var t=new e.constructor(e.byteLength);return new Nl(t).set(new Nl(e)),t}var Ua=kC,jC=Ua;function DC(e,t){var r=t?jC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var NC=DC,LC=/\w*$/;function BC(e){var t=new e.constructor(e.source,LC.exec(e));return t.lastIndex=e.lastIndex,t}var HC=BC,Ll=ar,Bl=Ll?Ll.prototype:void 0,Hl=Bl?Bl.valueOf:void 0;function GC(e){return Hl?Object(Hl.call(e)):{}}var VC=GC,UC=Ua;function zC(e,t){var r=t?UC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var WC=zC,KC=Ua,qC=NC,RC=HC,YC=VC,XC=WC,JC="[object Boolean]",ZC="[object Date]",QC="[object Map]",e$="[object Number]",t$="[object RegExp]",r$="[object Set]",n$="[object String]",a$="[object Symbol]",i$="[object ArrayBuffer]",o$="[object DataView]",s$="[object Float32Array]",l$="[object Float64Array]",u$="[object Int8Array]",c$="[object Int16Array]",f$="[object Int32Array]",d$="[object Uint8Array]",h$="[object Uint8ClampedArray]",p$="[object Uint16Array]",v$="[object Uint32Array]";function g$(e,t,r){var n=e.constructor;switch(t){case i$:return KC(e);case JC:case ZC:return new n(+e);case o$:return qC(e,r);case s$:case l$:case u$:case c$:case f$:case d$:case h$:case p$:case v$:return XC(e,r);case QC:return new n;case e$:case n$:return new n(e);case t$:return RC(e);case r$:return new n;case a$:return YC(e)}}var b$=g$,y$=_t,Gl=Object.create,m$=function(){function e(){}return function(t){if(!y$(t))return{};if(Gl)return Gl(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),x$=m$,S$=x$,w$=Ma,E$=Aa;function _$(e){return typeof e.constructor=="function"&&!E$(e)?S$(w$(e)):{}}var C$=_$,$$=rn,T$=Je,O$="[object Map]";function A$(e){return T$(e)&&$$(e)==O$}var P$=A$,M$=P$,I$=Oa,Vl=kt,Ul=Vl&&Vl.isMap,F$=Ul?I$(Ul):M$,k$=F$,j$=rn,D$=Je,N$="[object Set]";function L$(e){return D$(e)&&j$(e)==N$}var B$=L$,H$=B$,G$=Oa,zl=kt,Wl=zl&&zl.isSet,V$=Wl?G$(Wl):H$,U$=V$,z$=Ia,W$=P_,K$=jl,q$=K_,R$=uC,Y$=sn,X$=Ai,J$=pC,Z$=_C,Q$=dl,eT=AC,tT=rn,rT=FC,nT=b$,aT=C$,iT=De,oT=Ft,sT=k$,lT=_t,uT=U$,cT=Tr,fT=Va,dT=1,hT=2,pT=4,Kl="[object Arguments]",vT="[object Array]",gT="[object Boolean]",bT="[object Date]",yT="[object Error]",ql="[object Function]",mT="[object GeneratorFunction]",xT="[object Map]",ST="[object Number]",Rl="[object Object]",wT="[object RegExp]",ET="[object Set]",_T="[object String]",CT="[object Symbol]",$T="[object WeakMap]",TT="[object ArrayBuffer]",OT="[object DataView]",AT="[object Float32Array]",PT="[object Float64Array]",MT="[object Int8Array]",IT="[object Int16Array]",FT="[object Int32Array]",kT="[object Uint8Array]",jT="[object Uint8ClampedArray]",DT="[object Uint16Array]",NT="[object Uint32Array]",ue={};ue[Kl]=ue[vT]=ue[TT]=ue[OT]=ue[gT]=ue[bT]=ue[AT]=ue[PT]=ue[MT]=ue[IT]=ue[FT]=ue[xT]=ue[ST]=ue[Rl]=ue[wT]=ue[ET]=ue[_T]=ue[CT]=ue[kT]=ue[jT]=ue[DT]=ue[NT]=!0,ue[yT]=ue[ql]=ue[$T]=!1;function ln(e,t,r,n,a,i){var o,s=t&dT,c=t&hT,u=t&pT;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!lT(e))return e;var h=iT(e);if(h){if(o=rT(e),!s)return X$(e,o)}else{var l=tT(e),d=l==ql||l==mT;if(oT(e))return Y$(e,s);if(l==Rl||l==Kl||d&&!a){if(o=c||d?{}:aT(e),!s)return c?Z$(e,R$(o,e)):J$(e,q$(o,e))}else{if(!ue[l])return a?e:{};o=nT(e,l,s)}}i||(i=new z$);var p=i.get(e);if(p)return p;i.set(e,o),uT(e)?e.forEach(function(y){o.add(ln(y,t,r,y,e,i))}):sT(e)&&e.forEach(function(y,x){o.set(x,ln(y,t,r,x,e,i))});var v=u?c?eT:Q$:c?fT:cT,g=h?void 0:v(e);return W$(g||e,function(y,x){g&&(x=y,y=e[x]),K$(o,x,ln(y,t,r,x,e,i))}),o}var LT=ln,BT=LT,HT=1,GT=4;function VT(e){return BT(e,HT|GT)}var UT=VT;Object.defineProperty(Or,"__esModule",{value:!0}),Or.mergeClasses=void 0;var zT=Pa,WT=Yl(zT),KT=UT,qT=Yl(KT),RT=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 Yl(e){return e&&e.__esModule?e:{default:e}}var YT=Or.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,qT.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,WT.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=RT({},n[s],i[s])}),a}),n};Or.default=YT;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.autoprefix=void 0;var XT=Pa,Xl=ZT(XT),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 ZT(e){return e&&e.__esModule?e:{default:e}}var QT={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}}},e2=Ar.autoprefix=function(t){var r={};return(0,Xl.default)(t,function(n,a){var i={};(0,Xl.default)(n,function(o,s){var c=QT[s];c?i=JT({},i,c(o)):i[s]=o}),r[a]=i}),r};Ar.default=e2;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.hover=void 0;var t2=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},r2=f,za=n2(r2);function n2(e){return e&&e.__esModule?e:{default:e}}function a2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jl(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 i2(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 o2=Pr.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){i2(a,n);function a(){var i,o,s,c;a2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Jl(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,t2({},s.props,s.state)))},o),Jl(s,c)}return a}(za.default.Component)};Pr.default=o2;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.active=void 0;var s2=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},l2=f,Wa=u2(l2);function u2(e){return e&&e.__esModule?e:{default:e}}function c2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zl(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 f2(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 d2=Mr.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){f2(a,n);function a(){var i,o,s,c;c2(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Zl(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,s2({},s.props,s.state)))},o),Zl(s,c)}return a}(Wa.default.Component)};Mr.default=d2;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var h2=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};Ka.default=h2,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=qa=Be.handleHover=Be.hover=void 0;var p2=$r,v2=Nt(p2),g2=Or,b2=Nt(g2),y2=Ar,m2=Nt(y2),x2=Pr,Ql=Nt(x2),S2=Mr,w2=Nt(S2),E2=Ka,_2=Nt(E2);function Nt(e){return e&&e.__esModule?e:{default:e}}Be.hover=Ql.default;var qa=Be.handleHover=Ql.default;Be.handleActive=w2.default,Be.loop=_2.default;var C2=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,v2.default)(n),o=(0,b2.default)(t,i);return(0,m2.default)(o)},z=Be.default=C2,$2=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},Ra={},T2=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},O2=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(Ra[i])return Ra[i];var o=T2(t,r,n,a);return Ra[i]=o,o},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},Lt=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("+O2(r,n,a,i.canvas)+") center left"}}});return f.isValidElement(c)?f.cloneElement(c,eu({},c.props,{style:eu({},c.props.style,u.grid)})):f.createElement("div",{style:u.grid})};Lt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};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},P2=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 M2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(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 I2(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){I2(t,e);function t(){var r,n,a,i;M2(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=tu(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=$2(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),tu(a,i)}return P2(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%,
|
|
176
|
-
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%,
|
|
177
|
-
rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:A2({},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(Lt,{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),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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D2(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 N2(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 L2=1,ru=38,B2=40,H2=[ru,B2],G2=function(t){return H2.indexOf(t)>-1},V2=function(t){return Number(String(t).replace(/%/g,""))},U2=1,Z=function(e){N2(t,e);function t(r){j2(this,t);var n=D2(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=V2(a.target.value);if(!isNaN(i)&&G2(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===ru?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-"+U2++,n}return F2(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 k2({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||L2}},{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),z2=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},W2=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 q2(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 Bt=function(e){q2(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=z2(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),nu(a,i)}return W2(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,`
|
|
178
|
-
.hue-horizontal {
|
|
179
|
-
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
180
|
-
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
181
|
-
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
|
182
|
-
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.hue-vertical {
|
|
186
|
-
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
|
187
|
-
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
188
|
-
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
189
|
-
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
190
|
-
}
|
|
191
|
-
`),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={},au={get exports(){return O},set exports(e){O=e}},un={},R2={get exports(){return un},set exports(e){un=e}},re={};/** @license React v16.13.1
|
|
192
|
-
* react-is.production.min.js
|
|
193
|
-
*
|
|
194
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the MIT license found in the
|
|
197
|
-
* LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/var iu;function Y2(){if(iu)return re;iu=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,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===d||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
|
|
199
|
-
* react-is.development.js
|
|
200
|
-
*
|
|
201
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the MIT license found in the
|
|
204
|
-
* LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/var ou;function X2(){return ou||(ou=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,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===d||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 $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 Et=ze&&ze.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return $e}}case r:return $e}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,he=v,Se=p,be=r,Ce=i,se=a,me=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function L(E){return S(E)===n}function B(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 Y(E){return S(E)===a}function we(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=k,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=he,ne.Memo=Se,ne.Portal=be,ne.Profiler=Ce,ne.StrictMode=se,ne.Suspense=me,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=L,ne.isLazy=B,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=K,ne.isStrictMode=Y,ne.isSuspense=we,ne.isValidElementType=_,ne.typeOf=S}()),ne}var su;function lu(){return su||(su=1,function(e){process.env.NODE_ENV==="production"?e.exports=Y2():e.exports=X2()}(R2)),un}/*
|
|
206
|
-
object-assign
|
|
207
|
-
(c) Sindre Sorhus
|
|
208
|
-
@license MIT
|
|
209
|
-
*/var Xa,uu;function J2(){if(uu)return Xa;uu=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 Xa=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},Xa}var Ja,cu;function Za(){if(cu)return Ja;cu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ja=e,Ja}var Qa,fu;function du(){return fu||(fu=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var ei,hu;function Z2(){if(hu)return ei;hu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Za(),r={},n=du();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={})},ei=a,ei}var ti,pu;function Q2(){if(pu)return ti;pu=1;var e=lu(),t=J2(),r=Za(),n=du(),a=Z2(),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 ti=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function l($){var A=$&&(u&&$[u]||$[h]);if(typeof A=="function")return A}var d="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:C(),arrayOf:_,element:S(),elementType:b(),instanceOf:T,node:ge(),objectOf:W,oneOf:k,oneOfType:q,shape:he,exact:Se};function v($,A){return $===A?$!==0||1/$===1/A:$!==$&&A!==A}function g($,A){this.message=$,this.data=A&&typeof A=="object"?A:{},this.stack=""}g.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(L,B,H,P,K,Y,we){if(P=P||d,Y=Y||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 `"+Y+"` 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 B[H]==null?L?B[H]===null?new g("The "+K+" `"+Y+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+K+" `"+Y+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(B,H,P,K,Y)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,L,B,H){var P=U[G],K=se(P);if(K!==$){var Y=me(P);return new g("Invalid "+L+" `"+B+"` of type "+("`"+Y+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(A)}function C(){return y(o)}function _($){function A(U,G,M,L,B){if(typeof $!="function")return new g("Property `"+B+"` 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 "+L+" `"+B+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var K=0;K<H.length;K++){var Y=$(H,K,M,L,B+"["+K+"]",r);if(Y instanceof Error)return Y}return null}return y(A)}function S(){function $(A,U,G,M,L){var B=A[U];if(!s(B)){var H=se(B);return new g("Invalid "+M+" `"+L+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y($)}function b(){function $(A,U,G,M,L){var B=A[U];if(!e.isValidElementType(B)){var H=se(B);return new g("Invalid "+M+" `"+L+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y($)}function T($){function A(U,G,M,L,B){if(!(U[G]instanceof $)){var H=$.name||d,P=Ae(U[G]);return new g("Invalid "+L+" `"+B+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return y(A)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function A(U,G,M,L,B){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 "+L+" `"+B+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+K+"."))}return y(A)}function W($){function A(U,G,M,L,B){if(typeof $!="function")return new g("Property `"+B+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+L+" `"+B+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var K in H)if(n(H,K)){var Y=$(H,K,M,L,B+"."+K,r);if(Y instanceof Error)return Y}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,L,B,H,P){for(var K=[],Y=0;Y<$.length;Y++){var we=$[Y],E=we(M,L,B,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 "+("`"+B+"`"+$e+"."))}return y(G)}function ge(){function $(A,U,G,M,L){return be(A[U])?null:new g("Invalid "+M+" `"+L+"` 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 he($){function A(U,G,M,L,B){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+L+" `"+B+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var K in $){var Y=$[K];if(typeof Y!="function")return ae(M,L,B,K,me(Y));var we=Y(H,K,M,L,B+"."+K,r);if(we)return we}return null}return y(A)}function Se($){function A(U,G,M,L,B){var H=U[G],P=se(H);if(P!=="object")return new g("Invalid "+L+" `"+B+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var K=t({},U[G],$);for(var Y in K){var we=$[Y];if(n($,Y)&&typeof we!="function")return ae(M,L,B,Y,me(we));if(!we)return new g("Invalid "+L+" `"+B+"` key `"+Y+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
|
|
210
|
-
Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,Y,M,L,B+"."+Y,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 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},ti}var ri,vu;function eO(){if(vu)return ri;vu=1;var e=Za();function t(){}function r(){}return r.resetWarningCache=t,ri=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},ri}if(process.env.NODE_ENV!=="production"){var tO=lu(),rO=!0;au.exports=Q2()(tO.isElement,rO)}else au.exports=eO()();function ni(e,t,r){(r!==void 0&&!ur(e[t],r)||r===void 0&&!(t in e))&&Pn(e,t,r)}function nO(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 aO=nO();const gu=aO;function iO(e){return qe(e)&&At(e)}function ai(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function oO(e){return dr(e,gr(e))}function sO(e,t,r,n,a,i,o){var s=ai(e,r),c=ai(t,r),u=o.get(c);if(u){ni(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&&hr(c),v=!d&&!p&&jn(c);h=c,d||p||v?Te(s)?h=s:iO(s)?h=Nn(s):p?(l=!1,h=go(c,!0)):v?(l=!1,h=Ao(c,!0)):h=[]:Tn(c)||qr(c)?(h=s,qr(s)?h=oO(s):(!ke(s)||On(s))&&(h=Mo(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),ni(e,r,h)}function bu(e,t,r,n,a){e!==t&&gu(t,function(i,o){if(a||(a=new Ge),ke(i))sO(e,t,o,r,bu,n,a);else{var s=n?n(ai(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),ni(e,o,s)}},gr)}function cn(e){return e}function lO(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 yu=Math.max;function uO(e,t,r){return t=yu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=yu(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),lO(e,this,s)}}function cO(e){return function(){return e}}var fO=Kr?function(e,t){return Kr(e,"toString",{configurable:!0,enumerable:!1,value:cO(t),writable:!0})}:cn;const dO=fO;var hO=800,pO=16,vO=Date.now;function gO(e){var t=0,r=0;return function(){var n=vO(),a=pO-(n-r);if(r=n,a>0){if(++t>=hO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bO=gO(dO);const yO=bO;function mO(e,t){return yO(uO(e,t,cn),e+"")}function xO(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?At(r)&&Mn(t,r.length):n=="string"&&t in r)?ur(r[t],e):!1}function SO(e){return mO(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&&xO(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 wO=SO(function(e,t,r){bu(e,t,r)});const Ie=wO;var Ir=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))};Ir.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},Ir.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var EO=function(){return He.Date.now()};const ii=EO;var _O=/\s/;function CO(e){for(var t=e.length;t--&&_O.test(e.charAt(t)););return t}var $O=/^\s+/;function TO(e){return e&&e.slice(0,CO(e)+1).replace($O,"")}var mu=0/0,OO=/^[-+]0x[0-9a-f]+$/i,AO=/^0b[01]+$/i,PO=/^0o[0-7]+$/i,MO=parseInt;function xu(e){if(typeof e=="number")return e;if(mr(e))return mu;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=TO(e);var r=AO.test(e);return r||PO.test(e)?MO(e.slice(2),r?2:8):OO.test(e)?mu:+e}var IO="Expected a function",FO=Math.max,kO=Math.min;function Su(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(IO);t=xu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?FO(xu(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function p(T){var k=n,W=a;return n=a=void 0,u=T,o=e.apply(W,k),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var k=T-c,W=T-u,q=t-k;return l?kO(q,i-W):q}function y(T){var k=T-c,W=T-u;return c===void 0||k>=t||k<0||l&&W>=i}function x(){var T=ii();if(y(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(ii())}function b(){var T=ii(),k=y(T);if(n=arguments,a=this,c=T,k){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=_,b.flush=S,b}var jO="Expected a function";function DO(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(jO);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Su(e,t,{leading:n,maxWait:t,trailing:a})}var NO=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"}},LO=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 BO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HO(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 GO(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){GO(t,e);function t(r){BO(this,t);var n=HO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,NO(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=DO(function(a,i,o){a(i,o)},50),n}return LO(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),
|
|
211
|
-
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,`
|
|
212
|
-
.saturation-white {
|
|
213
|
-
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
214
|
-
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
215
|
-
}
|
|
216
|
-
.saturation-black {
|
|
217
|
-
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
218
|
-
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
219
|
-
}
|
|
220
|
-
`),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 VO(e,t){return e&&gu(e,t,vr)}function UO(e,t){return function(r,n){if(r==null)return r;if(!At(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 zO=UO(VO);const wu=zO;function WO(e){return typeof e=="function"?e:cn}function KO(e,t){var r=Te(e)?to:wu;return r(e,WO(t))}function dn(e){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 qO=/^\s+/,RO=/\s+$/;function F(e,t){if(e=e||"",t=t||{},e instanceof F)return e;if(!(this instanceof F))return new F(e,t);var r=YO(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}F.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=Ou(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=Eu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Eu(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 Cu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return QO(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:fA[Cu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+$u(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=F(t);n="#"+$u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(nA,arguments)},brighten:function(){return this._applyModification(aA,arguments)},darken:function(){return this._applyModification(iA,arguments)},desaturate:function(){return this._applyModification(eA,arguments)},saturate:function(){return this._applyModification(tA,arguments)},greyscale:function(){return this._applyModification(rA,arguments)},spin:function(){return this._applyModification(oA,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(uA,arguments)},complement:function(){return this._applyCombination(sA,arguments)},monochromatic:function(){return this._applyCombination(cA,arguments)},splitcomplement:function(){return this._applyCombination(lA,arguments)},triad:function(){return this._applyCombination(Tu,[3])},tetrad:function(){return this._applyCombination(Tu,[4])}},F.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]=Fr(e[n]));e=r}return F(e,t)};function YO(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=vA(e)),dn(e)=="object"&&(tt(e.r)&&tt(e.g)&&tt(e.b)?(t=XO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):tt(e.h)&&tt(e.s)&&tt(e.v)?(n=Fr(e.s),a=Fr(e.v),t=ZO(e.h,n,a),o=!0,s="hsv"):tt(e.h)&&tt(e.s)&&tt(e.l)&&(n=Fr(e.s),i=Fr(e.l),t=JO(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ou(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 XO(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function Eu(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 JO(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 ZO(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 Cu(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 QO(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(Au(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 $u(e,t,r,n){var a=[Ve(Au(n)),Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return a.join("")}F.equals=function(e,t){return!e||!t?!1:F(e).toRgbString()==F(t).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function eA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s-=t/100,r.s=hn(r.s),F(r)}function tA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s+=t/100,r.s=hn(r.s),F(r)}function rA(e){return F(e).desaturate(100)}function nA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l+=t/100,r.l=hn(r.l),F(r)}function aA(e,t){t=t===0?0:t||10;var r=F(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),F(r)}function iA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l-=t/100,r.l=hn(r.l),F(r)}function oA(e,t){var r=F(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,F(r)}function sA(e){var t=F(e).toHsl();return t.h=(t.h+180)%360,F(t)}function Tu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=F(e).toHsl(),n=[F(e)],a=360/t,i=1;i<t;i++)n.push(F({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function lA(e){var t=F(e).toHsl(),r=t.h;return[F(e),F({h:(r+72)%360,s:t.s,l:t.l}),F({h:(r+216)%360,s:t.s,l:t.l})]}function uA(e,t,r){t=t||6,r=r||30;var n=F(e).toHsl(),a=360/r,i=[F(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(F(n));return i}function cA(e,t){t=t||6;for(var r=F(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(F({h:n,s:a,v:i})),i=(i+s)%1;return o}F.mix=function(e,t,r){r=r===0?0:r||50;var n=F(e).toRgb(),a=F(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return F(o)},F.readability=function(e,t){var r=F(e),n=F(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(e,t,r){var n=F.readability(e,t),a,i;switch(i=!1,a=gA(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},F.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=F.readability(e,t[u]),i>a&&(a=i,n=F(t[u]));return F.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,F.mostReadable(e,["#fff","#000"],r))};var oi=F.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},fA=F.hexNames=dA(oi);function dA(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ou(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){hA(e)&&(e="100%");var r=pA(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 hA(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function pA(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ve(e){return e.length==1?"0"+e:""+e}function Fr(e){return e<=1&&(e=e*100+"%"),e}function Au(e){return Math.round(parseFloat(e)*255).toString(16)}function Pu(e){return je(e)/255}var Ue=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function tt(e){return!!Ue.CSS_UNIT.exec(e)}function vA(e){e=e.replace(qO,"").replace(RO,"").toLowerCase();var t=!1;if(oi[e])e=oi[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ue.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ue.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ue.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ue.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ue.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ue.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ue.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:Pu(r[4]),format:t?"name":"hex8"}:(r=Ue.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=Ue.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:Pu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ue.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function gA(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 Mu=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return KO(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},kr=function(t,r){var n=t.hex?F(t.hex):F(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},st=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&F(t).isValid()},si=function(t){if(!t)return"#fff";var r=kr(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"},li=function(t,r){var n=t.replace("°","");return F(r+" ("+n+")")._ok},jr=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},bA=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 yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(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 xA(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){xA(a,n);function a(i){yA(this,a);var o=mA(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Mu(s);if(u){var h=kr(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=Mu(s);if(u){var h=kr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=jr({},kr(i.color,0)),o.debounce=Su(function(s,c,u){s(c,u)},100),o}return bA(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),f.createElement(t,jr({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return jr({},kr(o.color,s.oldHue))}}]),a}(f.PureComponent||f.Component);return r.propTypes=jr({},t.propTypes),r.defaultProps=jr({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},SA=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},wA=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 EA(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 _A(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var CA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){_A(a,n);function a(){var i,o,s,c;EA(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Iu(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),Iu(s,c)}return wA(a,[{key:"render",value:function(){return f.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},f.createElement(t,SA({},this.props,this.state)))}}]),a}(f.Component)},Fu=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},$A=13,TA=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:Fu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?d:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===$A&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),f.createElement("div",Fu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&f.createElement(Lt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=CA(TA);var OA=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})},AA=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},ku=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(Ya,AA({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};ku.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:OA},Fe(ku);var PA="__lodash_hash_undefined__";function MA(e){return this.__data__.set(e,PA),this}function IA(e){return this.__data__.has(e)}function pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}pn.prototype.add=pn.prototype.push=MA,pn.prototype.has=IA;function FA(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 kA(e,t){return e.has(t)}var jA=1,DA=2;function ju(e,t,r,n,a,i){var o=r&jA,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&DA?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;d=!1;break}if(p){if(!FA(t,function(x,C){if(!kA(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 NA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function LA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var BA=1,HA=2,GA="[object Boolean]",VA="[object Date]",UA="[object Error]",zA="[object Map]",WA="[object Number]",KA="[object RegExp]",qA="[object Set]",RA="[object String]",YA="[object Symbol]",XA="[object ArrayBuffer]",JA="[object DataView]",Du=Ke?Ke.prototype:void 0,ui=Du?Du.valueOf:void 0;function ZA(e,t,r,n,a,i,o){switch(r){case JA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case XA:return!(e.byteLength!=t.byteLength||!i(new Rr(e),new Rr(t)));case GA:case VA:case WA:return ur(+e,+t);case UA:return e.name==t.name&&e.message==t.message;case KA:case RA:return e==t+"";case zA:var s=NA;case qA:var c=n&BA;if(s||(s=LA),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=HA,o.set(e,t);var h=ju(s(e),s(t),n,a,i,o);return o.delete(e),h;case YA:if(ui)return ui.call(e)==ui.call(t)}return!1}var QA=1,e5=Object.prototype,t5=e5.hasOwnProperty;function r5(e,t,r,n,a,i){var o=r&QA,s=Bn(e),c=s.length,u=Bn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:t5.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 y=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}y||(y=d=="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 n5=1,Nu="[object Arguments]",Lu="[object Array]",vn="[object Object]",a5=Object.prototype,Bu=a5.hasOwnProperty;function i5(e,t,r,n,a,i){var o=Te(e),s=Te(t),c=o?Lu:br(e),u=s?Lu:br(t);c=c==Nu?vn:c,u=u==Nu?vn:u;var h=c==vn,l=u==vn,d=c==u;if(d&&hr(e)){if(!hr(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ge),o||jn(e)?ju(e,t,r,n,a,i):ZA(e,t,c,r,n,a,i);if(!(r&n5)){var p=h&&Bu.call(e,"__wrapped__"),v=l&&Bu.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 d?(i||(i=new Ge),r5(e,t,r,n,a,i)):!1}function ci(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:i5(e,t,r,n,ci,a)}var o5=1,s5=2;function l5(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?ci(h,u,o5|s5,n,l):d))return!1}}return!0}function Hu(e){return e===e&&!ke(e)}function u5(e){for(var t=vr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Hu(a)]}return t}function Gu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function c5(e){var t=u5(e);return t.length==1&&t[0][2]?Gu(t[0][0],t[0][1]):function(r){return r===e||l5(r,e,t)}}var f5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d5=/^\w*$/;function fi(e,t){if(Te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mr(e)?!0:d5.test(e)||!f5.test(e)||t!=null&&e in Object(t)}function Vu(e,t){return Te(e)?e:fi(e,t)?[e]:Lo(Vo(e))}function Uu(e,t){t=Vu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xr(t[r++])];return r&&r==n?e:void 0}function h5(e,t,r){var n=e==null?void 0:Uu(e,t);return n===void 0?r:n}function p5(e,t){return e!=null&&t in Object(e)}function v5(e,t,r){t=Vu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=xr(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)&&(Te(e)||qr(e)))}function g5(e,t){return e!=null&&v5(e,t,p5)}var b5=1,y5=2;function m5(e,t){return fi(e)&&Hu(t)?Gu(xr(e),t):function(r){var n=h5(r,e);return n===void 0&&n===t?g5(r,e):ci(t,n,b5|y5)}}function x5(e){return function(t){return t==null?void 0:t[e]}}function S5(e){return function(t){return Uu(t,e)}}function w5(e){return fi(e)?x5(xr(e)):S5(e)}function E5(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?Te(e)?m5(e[0],e[1]):c5(e):w5(e)}function _5(e,t){var r=-1,n=At(e)?Array(e.length):[];return wu(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=Te(e)?Wn:_5;return r(e,E5(t))}var C5=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},wt(r,function(o){return f.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),f.createElement("div",{style:i.clear}))},di=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(y,x){st(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:si(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(Lt,{borderRadius:"6px 6px 0 0"}),f.createElement("div",{style:v.label},a)),f.createElement("div",{style:v.body},f.createElement(C5,{colors:i,onClick:p,onSwatchHover:n}),f.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};di.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},di.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(di);var Ht={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"},Gt={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"},Vt={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"},Ut={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"},zt={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"},Wt={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"},Kt={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"},qt={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"},Rt={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"},Dr={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"},Yt={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"},Xt={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"},Jt={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"},Zt={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"},Qt={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"},er={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"},tr={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},rr={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},zu=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(St,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};zu.defaultProps={circleSize:28,circleSpacing:14};const $5=qa(zu);var hi=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(y,x){return n({hex:y,source:"hex"},x)};return f.createElement("div",{style:p.card,className:"circle-picker "+d},wt(i,function(g){return f.createElement($5,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};hi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},hi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Kt[500],qt[500],Rt[500],Dr[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500],rr[500]],styles:{}},Fe(hi);function Wu(e){return e===void 0}var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});var qu=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},T5=f,Ru=O5(T5);function O5(e){return e&&e.__esModule?e:{default:e}}function A5(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,P5=Ku.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=A5(e,["fill","width","height","style"]);return Ru.default.createElement("svg",qu({viewBox:"0 0 "+gn+" "+gn,style:qu({fill:r,width:a,height:o},c)},u),Ru.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"}))},M5=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 I5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F5(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 k5(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 Yu=function(e){k5(t,e);function t(r){I5(this,t);var n=F5(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?st(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(Wu(a.s)?n.props.hsl.s:a.s),l:Number(Wu(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 M5(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(P5,{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);Yu.defaultProps={view:"hex"};var Xu=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})},j5=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})},pi=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(fn,{style:g.Saturation,hsl:o,hsv:s,pointer:j5,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(Lt,{renderers:u}))),f.createElement("div",{style:g.toggles},f.createElement("div",{style:g.hue},f.createElement(Bt,{style:g.Hue,hsl:o,pointer:Xu,onChange:n})),f.createElement("div",{style:g.alpha},f.createElement(Ya,{style:g.Alpha,rgb:i,hsl:o,pointer:Xu,renderers:u,onChange:n})))),f.createElement(Yu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};pi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},pi.defaultProps={width:225,disableAlpha:!1,styles:{}};const D5=Fe(pi);var N5=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:si(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(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:s.dot}))},L5=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}))},vi=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?st(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return f.createElement(Ir,{style:l.Compact,styles:c},f.createElement("div",{style:l.compact,className:"compact-picker "+h},f.createElement("div",null,wt(a,function(p){return f.createElement(N5,{key:p,color:p,active:p.toLowerCase()===i,onClick:d,onSwatchHover:n})}),f.createElement("div",{style:l.clear})),f.createElement(L5,{hex:i,rgb:o,onChange:d})))};vi.propTypes={colors:O.arrayOf(O.string),styles:O.object},vi.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(vi);var B5=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(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const H5=qa(B5);var gi=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}),wt(n,function(p){return f.createElement(H5,{color:p,key:p,onClick:d,onSwatchHover:i})}))};gi.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},gi.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(gi);var G5=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})},V5=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},bi=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(Bt,V5({},d.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};bi.propTypes={styles:O.object},bi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:G5,styles:{}},Fe(bi);var U5=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?st(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(Ir,{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(U5);var z5=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["#"]?st(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},"%")))},W5=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})},K5=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})))},Ju=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)},q5=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"))},R5=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 Y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X5(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 J5(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 yi=function(e){J5(t,e);function t(r){Y5(this,t);var n=X5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return R5(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(fn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:W5,onChange:this.props.onChange})),f.createElement("div",{style:c.hue},f.createElement(Bt,{direction:"vertical",hsl:this.props.hsl,pointer:K5,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(q5,{rgb:this.props.rgb,currentColor:this.state.currentColor})),f.createElement("div",{style:c.actions},f.createElement(Ju,{label:"OK",onClick:this.props.onAccept,active:!0}),f.createElement(Ju,{label:"Cancel",onClick:this.props.onCancel}),f.createElement(z5,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(f.Component);yi.propTypes={header:O.string,styles:O.object},yi.defaultProps={header:"Color Picker",styles:{}},Fe(yi);var Z5=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?st(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"})))},Q5=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},Zu=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(St,Q5({},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}})))}))};Zu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var eP=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},mi=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,y=z(Ie({default:eP({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:y.picker,className:"sketch-picker "+g},f.createElement("div",{style:y.saturation},f.createElement(fn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),f.createElement("div",{style:y.controls,className:"flexbox-fix"},f.createElement("div",{style:y.sliders},f.createElement("div",{style:y.hue},f.createElement(Bt,{style:y.Hue,hsl:o,onChange:s})),f.createElement("div",{style:y.alpha},f.createElement(Ya,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),f.createElement("div",{style:y.color},f.createElement(Lt,null),f.createElement("div",{style:y.activeColor}))),f.createElement(Z5,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),f.createElement(Zu,{colors:h,onClick:s,onSwatchHover:c}))};mi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},mi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(mi);var Nr=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})},tP=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(Nr,{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(Nr,{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(Nr,{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(Nr,{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(Nr,{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}))},rP=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})},xi=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(Bt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),f.createElement("div",{style:u.swatches},f.createElement(tP,{hsl:r,onClick:n})))};xi.propTypes={styles:O.object},xi.defaultProps={pointer:rP,styles:{}},Fe(xi);var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});var ec=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},nP=f,tc=aP(nP);function aP(e){return e&&e.__esModule?e:{default:e}}function iP(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,oP=Qu.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=iP(e,["fill","width","height","style"]);return tc.default.createElement("svg",ec({viewBox:"0 0 "+bn+" "+bn,style:ec({fill:r,width:a,height:o},c)},u),tc.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},sP=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:si(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(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:u.check},f.createElement(oP,null)))},lP=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},wt(a,function(s,c){return f.createElement(sP,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},Si=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,y){return a({hex:g,source:"hex"},y)};return f.createElement("div",{style:d.picker,className:"swatches-picker "+l},f.createElement(Ir,null,f.createElement("div",{style:d.overflow},f.createElement("div",{style:d.body},wt(o,function(v){return f.createElement(lP,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),f.createElement("div",{style:d.clear})))))};Si.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},Si.defaultProps={width:320,height:240,colors:[[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]],[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]],["#194D33",Dr[700],Dr[500],Dr[300],Dr[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]],[rr[900],rr[700],rr[500],rr[300],rr[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(Si);var wi=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,y){st(g)&&r({hex:g,source:"hex"},y)};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},wt(i,function(v,g){return f.createElement(St,{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})))};wi.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},wi.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(wi);var Ei=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})};Ei.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ei.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var _i=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})};_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 uP=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)st(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");li(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(",");li(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(",");li(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})))))},Ci=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(fn,{hsl:i,hsv:o,pointer:Ei,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(Bt,{style:p.Hue,hsl:i,radius:"4px",pointer:_i,onChange:n}))),f.createElement(uP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Ci.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Ci);const cP=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 m.jsxs("div",{children:[m.jsx(rc,{color:n,onClick:i}),m.jsx(j.Dialog,{open:t,onClose:o,children:m.jsx(D5,{color:n,onChange:s,css:ce.css`
|
|
221
|
-
padding: 10px;
|
|
222
|
-
`})})]})},rc=e=>m.jsx("button",{onClick:e.onClick,css:ce.css`
|
|
223
|
-
border: solid 1px black;
|
|
224
|
-
background-color: white;
|
|
225
|
-
padding: 2px;
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
`,children:m.jsx("div",{css:ce.css`
|
|
228
|
-
width: 72px;
|
|
229
|
-
height: 19px;
|
|
230
|
-
background-color: ${e.color};
|
|
231
|
-
`})});N.ConfigrBoolean=Jb,N.ConfigrChooserButton=ry,N.ConfigrColorPicker=cP,N.ConfigrConditional=ny,N.ConfigrCustomBooleanInput=zb,N.ConfigrCustomNumberInput=Wb,N.ConfigrCustomObjectInput=Kb,N.ConfigrCustomStringInput=Ub,N.ConfigrForEach=Xb,N.ConfigrGroup=ds,N.ConfigrInput=Vb,N.ConfigrMakeToggle=ty,N.ConfigrPane=bm,N.ConfigrRadio=Qb,N.ConfigrRadioGroup=Zb,N.ConfigrRadioGroupRaw=vs,N.ConfigrSelect=qb,N.ConfigrSubPage=Yb,N.ConfigrSubgroup=Rb,N.ConfigrToggleGroup=ey,N.ConfigrToggleGroupRaw=gs,N.ContentPane=fs,N.SwatchButton=rc,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|