iobroker.nspanel-lovelace-ui
Version:
NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of Lovelace UI Design.
27 lines (26 loc) • 187 kB
JavaScript
import{A as _,R as p}from"./AdminComponentEasyAccessSet__loadShare__react__loadShare__-CJmceRyn.js";import{P as f}from"./index-DcK0RDrH.js";import{i as nt,a as le,b as _n,k as jt,c as no,d as Br,_ as Ir,e as Rt,f as ao,g as Lr,h as ro,j as io,l as oo,m as Sn,n as lo,o as po,p as Hr,q as so,r as co,s as Nr,t as uo,u as fo,v as ho,w as vo,x as Cn,y as Gr,z as Ur,B as mo,C as go}from"./_baseIsEqual-BiOdebYq.js";var q={},at={},xo=_n,bo=le,yo=nt,wo="[object String]";function Eo(e){return typeof e=="string"||!bo(e)&&yo(e)&&xo(e)==wo}var _o=Eo;function So(e){return function(t,n,a){for(var r=-1,i=Object(t),o=a(t),l=o.length;l--;){var s=o[e?l:++r];if(n(i[s],s,i)===!1)break}return t}}var Co=So,$o=Co,Oo=$o(),ko=Oo,Ao=ko,To=jt;function Po(e,t){return e&&Ao(e,t,To)}var qr=Po;function jo(e){return e}var Wr=jo,Ro=Wr;function Fo(e){return typeof e=="function"?e:Ro}var Mo=Fo,Do=qr,zo=Mo;function Bo(e,t){return e&&Do(e,zo(t))}var $n=Bo,Io=no,Lo=Io(Object.getPrototypeOf,Object),On=Lo,Ho=_n,No=On,Go=nt,Uo="[object Object]",qo=Function.prototype,Wo=Object.prototype,Kr=qo.toString,Ko=Wo.hasOwnProperty,Xo=Kr.call(Object);function Vo(e){if(!Go(e)||Ho(e)!=Uo)return!1;var t=No(e);if(t===null)return!0;var n=Ko.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kr.call(n)==Xo}var Yo=Vo;function Zo(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}var Xr=Zo,Jo=Br,Qo=Ir,el=1,tl=2;function nl(e,t,n,a){var r=n.length,i=r,o=!a;if(e==null)return!i;for(e=Object(e);r--;){var l=n[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=n[r];var s=l[0],c=e[s],d=l[1];if(o&&l[2]){if(c===void 0&&!(s in e))return!1}else{var u=new Jo;if(a)var h=a(c,d,s,e,t,u);if(!(h===void 0?Qo(d,c,el|tl,a,u):h))return!1}}return!0}var al=nl,rl=Rt;function il(e){return e===e&&!rl(e)}var Vr=il,ol=Vr,ll=jt;function pl(e){for(var t=ll(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,ol(r)]}return t}var sl=pl;function cl(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Yr=cl,dl=al,ul=sl,fl=Yr;function hl(e){var t=ul(e);return t.length==1&&t[0][2]?fl(t[0][0],t[0][1]):function(n){return n===e||dl(n,e,t)}}var vl=hl,ml=_n,gl=nt,xl="[object Symbol]";function bl(e){return typeof e=="symbol"||gl(e)&&ml(e)==xl}var kn=bl,yl=le,wl=kn,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_l=/^\w*$/;function Sl(e,t){if(yl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wl(e)?!0:_l.test(e)||!El.test(e)||t!=null&&e in Object(t)}var An=Sl,Zr=ao,Cl="Expected a function";function Tn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cl);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,a);return n.cache=i.set(r,o)||i,o};return n.cache=new(Tn.Cache||Zr),n}Tn.Cache=Zr;var $l=Tn,Ol=$l,kl=500;function Al(e){var t=Ol(e,function(a){return n.size===kl&&n.clear(),a}),n=t.cache;return t}var Tl=Al,Pl=Tl,jl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rl=/\\(\\)?/g,Fl=Pl(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jl,function(n,a,r,i){t.push(r?i.replace(Rl,"$1"):a||n)}),t}),Ml=Fl,ya=Lr,Dl=Xr,zl=le,Bl=kn,wa=ya?ya.prototype:void 0,Ea=wa?wa.toString:void 0;function Jr(e){if(typeof e=="string")return e;if(zl(e))return Dl(e,Jr)+"";if(Bl(e))return Ea?Ea.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Il=Jr,Ll=Il;function Hl(e){return e==null?"":Ll(e)}var Nl=Hl,Gl=le,Ul=An,ql=Ml,Wl=Nl;function Kl(e,t){return Gl(e)?e:Ul(e,t)?[e]:ql(Wl(e))}var Qr=Kl,Xl=kn;function Vl(e){if(typeof e=="string"||Xl(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ft=Vl,Yl=Qr,Zl=Ft;function Jl(e,t){t=Yl(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Zl(t[n++])];return n&&n==a?e:void 0}var ei=Jl,Ql=ei;function ep(e,t,n){var a=e==null?void 0:Ql(e,t);return a===void 0?n:a}var tp=ep;function np(e,t){return e!=null&&t in Object(e)}var ap=np,rp=Qr,ip=oo,op=le,lp=io,pp=ro,sp=Ft;function cp(e,t,n){t=rp(t,e);for(var a=-1,r=t.length,i=!1;++a<r;){var o=sp(t[a]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++a!=r?i:(r=e==null?0:e.length,!!r&&pp(r)&&lp(o,r)&&(op(e)||ip(e)))}var dp=cp,up=ap,fp=dp;function hp(e,t){return e!=null&&fp(e,t,up)}var vp=hp,mp=Ir,gp=tp,xp=vp,bp=An,yp=Vr,wp=Yr,Ep=Ft,_p=1,Sp=2;function Cp(e,t){return bp(e)&&yp(t)?wp(Ep(e),t):function(n){var a=gp(n,e);return a===void 0&&a===t?xp(n,e):mp(t,a,_p|Sp)}}var $p=Cp;function Op(e){return function(t){return t==null?void 0:t[e]}}var kp=Op,Ap=ei;function Tp(e){return function(t){return Ap(t,e)}}var Pp=Tp,jp=kp,Rp=Pp,Fp=An,Mp=Ft;function Dp(e){return Fp(e)?jp(Mp(e)):Rp(e)}var zp=Dp,Bp=vl,Ip=$p,Lp=Wr,Hp=le,Np=zp;function Gp(e){return typeof e=="function"?e:e==null?Lp:typeof e=="object"?Hp(e)?Ip(e[0],e[1]):Bp(e):Np(e)}var Up=Gp,qp=Sn;function Wp(e,t){return function(n,a){if(n==null)return n;if(!qp(n))return e(n,a);for(var r=n.length,i=t?r:-1,o=Object(n);(t?i--:++i<r)&&a(o[i],i,o)!==!1;);return n}}var Kp=Wp,Xp=qr,Vp=Kp,Yp=Vp(Xp),Zp=Yp,Jp=Zp,Qp=Sn;function es(e,t){var n=-1,a=Qp(e)?Array(e.length):[];return Jp(e,function(r,i,o){a[++n]=t(r,i,o)}),a}var ts=es,ns=Xr,as=Up,rs=ts,is=le;function os(e,t){var n=is(e)?ns:rs;return n(e,as(t))}var ls=os;Object.defineProperty(at,"__esModule",{value:!0});at.flattenNames=void 0;var ps=_o,ss=Mt(ps),cs=$n,ds=Mt(cs),us=Yo,fs=Mt(us),hs=ls,vs=Mt(hs);function Mt(e){return e&&e.__esModule?e:{default:e}}var ms=at.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,vs.default)(t,function(a){Array.isArray(a)?e(a).map(function(r){return n.push(r)}):(0,fs.default)(a)?(0,ds.default)(a,function(r,i){r===!0&&n.push(i),n.push(i+"-"+r)}):(0,ss.default)(a)&&n.push(a)}),n};at.default=ms;var rt={};function gs(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var xs=gs,bs=lo,ys=(function(){try{var e=bs(Object,"defineProperty");return e({},"",{}),e}catch{}})(),ws=ys,_a=ws;function Es(e,t,n){t=="__proto__"&&_a?_a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ti=Es,_s=ti,Ss=po,Cs=Object.prototype,$s=Cs.hasOwnProperty;function Os(e,t,n){var a=e[t];(!($s.call(e,t)&&Ss(a,n))||n===void 0&&!(t in e))&&_s(e,t,n)}var ni=Os,ks=ni,As=ti;function Ts(e,t,n,a){var r=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=a?a(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),r?As(n,l,s):ks(n,l,s)}return n}var Dt=Ts,Ps=Dt,js=jt;function Rs(e,t){return e&&Ps(t,js(t),e)}var Fs=Rs;function Ms(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ds=Ms,zs=Rt,Bs=Hr,Is=Ds,Ls=Object.prototype,Hs=Ls.hasOwnProperty;function Ns(e){if(!zs(e))return Is(e);var t=Bs(e),n=[];for(var a in e)a=="constructor"&&(t||!Hs.call(e,a))||n.push(a);return n}var Gs=Ns,Us=so,qs=Gs,Ws=Sn;function Ks(e){return Ws(e)?Us(e,!0):qs(e)}var Pn=Ks,Xs=Dt,Vs=Pn;function Ys(e,t){return e&&Xs(t,Vs(t),e)}var Zs=Ys,Et={exports:{}};Et.exports;(function(e,t){var n=co,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===a,o=i?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(c,d){if(d)return c.slice();var u=c.length,h=l?l(u):new c.constructor(u);return c.copy(h),h}e.exports=s})(Et,Et.exports);var Js=Et.exports;function Qs(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var ec=Qs,tc=Dt,nc=Nr;function ac(e,t){return tc(e,nc(e),t)}var rc=ac,ic=fo,oc=On,lc=Nr,pc=uo,sc=Object.getOwnPropertySymbols,cc=sc?function(e){for(var t=[];e;)ic(t,lc(e)),e=oc(e);return t}:pc,ai=cc,dc=Dt,uc=ai;function fc(e,t){return dc(e,uc(e),t)}var hc=fc,vc=ho,mc=ai,gc=Pn;function xc(e){return vc(e,gc,mc)}var bc=xc,yc=Object.prototype,wc=yc.hasOwnProperty;function Ec(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&wc.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _c=Ec,Sa=vo;function Sc(e){var t=new e.constructor(e.byteLength);return new Sa(t).set(new Sa(e)),t}var jn=Sc,Cc=jn;function $c(e,t){var n=t?Cc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Oc=$c,kc=/\w*$/;function Ac(e){var t=new e.constructor(e.source,kc.exec(e));return t.lastIndex=e.lastIndex,t}var Tc=Ac,Ca=Lr,$a=Ca?Ca.prototype:void 0,Oa=$a?$a.valueOf:void 0;function Pc(e){return Oa?Object(Oa.call(e)):{}}var jc=Pc,Rc=jn;function Fc(e,t){var n=t?Rc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Mc=Fc,Dc=jn,zc=Oc,Bc=Tc,Ic=jc,Lc=Mc,Hc="[object Boolean]",Nc="[object Date]",Gc="[object Map]",Uc="[object Number]",qc="[object RegExp]",Wc="[object Set]",Kc="[object String]",Xc="[object Symbol]",Vc="[object ArrayBuffer]",Yc="[object DataView]",Zc="[object Float32Array]",Jc="[object Float64Array]",Qc="[object Int8Array]",ed="[object Int16Array]",td="[object Int32Array]",nd="[object Uint8Array]",ad="[object Uint8ClampedArray]",rd="[object Uint16Array]",id="[object Uint32Array]";function od(e,t,n){var a=e.constructor;switch(t){case Vc:return Dc(e);case Hc:case Nc:return new a(+e);case Yc:return zc(e,n);case Zc:case Jc:case Qc:case ed:case td:case nd:case ad:case rd:case id:return Lc(e,n);case Gc:return new a;case Uc:case Kc:return new a(e);case qc:return Bc(e);case Wc:return new a;case Xc:return Ic(e)}}var ld=od,pd=Rt,ka=Object.create,sd=(function(){function e(){}return function(t){if(!pd(t))return{};if(ka)return ka(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),cd=sd,dd=cd,ud=On,fd=Hr;function hd(e){return typeof e.constructor=="function"&&!fd(e)?dd(ud(e)):{}}var vd=hd,md=Cn,gd=nt,xd="[object Map]";function bd(e){return gd(e)&&md(e)==xd}var yd=bd,wd=yd,Ed=Ur,Aa=Gr,Ta=Aa&&Aa.isMap,_d=Ta?Ed(Ta):wd,Sd=_d,Cd=Cn,$d=nt,Od="[object Set]";function kd(e){return $d(e)&&Cd(e)==Od}var Ad=kd,Td=Ad,Pd=Ur,Pa=Gr,ja=Pa&&Pa.isSet,jd=ja?Pd(ja):Td,Rd=jd,Fd=Br,Md=xs,Dd=ni,zd=Fs,Bd=Zs,Id=Js,Ld=ec,Hd=rc,Nd=hc,Gd=go,Ud=bc,qd=Cn,Wd=_c,Kd=ld,Xd=vd,Vd=le,Yd=mo,Zd=Sd,Jd=Rt,Qd=Rd,eu=jt,tu=Pn,nu=1,au=2,ru=4,ri="[object Arguments]",iu="[object Array]",ou="[object Boolean]",lu="[object Date]",pu="[object Error]",ii="[object Function]",su="[object GeneratorFunction]",cu="[object Map]",du="[object Number]",oi="[object Object]",uu="[object RegExp]",fu="[object Set]",hu="[object String]",vu="[object Symbol]",mu="[object WeakMap]",gu="[object ArrayBuffer]",xu="[object DataView]",bu="[object Float32Array]",yu="[object Float64Array]",wu="[object Int8Array]",Eu="[object Int16Array]",_u="[object Int32Array]",Su="[object Uint8Array]",Cu="[object Uint8ClampedArray]",$u="[object Uint16Array]",Ou="[object Uint32Array]",$={};$[ri]=$[iu]=$[gu]=$[xu]=$[ou]=$[lu]=$[bu]=$[yu]=$[wu]=$[Eu]=$[_u]=$[cu]=$[du]=$[oi]=$[uu]=$[fu]=$[hu]=$[vu]=$[Su]=$[Cu]=$[$u]=$[Ou]=!0;$[pu]=$[ii]=$[mu]=!1;function wt(e,t,n,a,r,i){var o,l=t&nu,s=t&au,c=t&ru;if(n&&(o=r?n(e,a,r,i):n(e)),o!==void 0)return o;if(!Jd(e))return e;var d=Vd(e);if(d){if(o=Wd(e),!l)return Ld(e,o)}else{var u=qd(e),h=u==ii||u==su;if(Yd(e))return Id(e,l);if(u==oi||u==ri||h&&!r){if(o=s||h?{}:Xd(e),!l)return s?Nd(e,Bd(o,e)):Hd(e,zd(o,e))}else{if(!$[u])return r?e:{};o=Kd(e,u,l)}}i||(i=new Fd);var v=i.get(e);if(v)return v;i.set(e,o),Qd(e)?e.forEach(function(b){o.add(wt(b,t,n,b,e,i))}):Zd(e)&&e.forEach(function(b,S){o.set(S,wt(b,t,n,S,e,i))});var g=c?s?Ud:Gd:s?tu:eu,x=d?void 0:g(e);return Md(x||e,function(b,S){x&&(S=b,b=e[S]),Dd(o,S,wt(b,t,n,S,e,i))}),o}var ku=wt,Au=ku,Tu=1,Pu=4;function ju(e){return Au(e,Tu|Pu)}var Ru=ju;Object.defineProperty(rt,"__esModule",{value:!0});rt.mergeClasses=void 0;var Fu=$n,Mu=li(Fu),Du=Ru,zu=li(Du),Bu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function li(e){return e&&e.__esModule?e:{default:e}}var Iu=rt.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=t.default&&(0,zu.default)(t.default)||{};return n.map(function(r){var i=t[r];return i&&(0,Mu.default)(i,function(o,l){a[l]||(a[l]={}),a[l]=Bu({},a[l],i[l])}),r}),a};rt.default=Iu;var it={};Object.defineProperty(it,"__esModule",{value:!0});it.autoprefix=void 0;var Lu=$n,Ra=Nu(Lu),Hu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function Nu(e){return e&&e.__esModule?e:{default:e}}var Gu={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 n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var a=n[t];return a||{extend:t}}},Uu=it.autoprefix=function(t){var n={};return(0,Ra.default)(t,function(a,r){var i={};(0,Ra.default)(a,function(o,l){var s=Gu[l];s?i=Hu({},i,s(o)):i[l]=o}),n[r]=i}),n};it.default=Uu;var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.hover=void 0;var qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Wu=_,en=Ku(Wu);function Ku(e){return e&&e.__esModule?e:{default:e}}function Xu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fa(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 Vu(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=ot.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(a){Vu(r,a);function r(){var i,o,l,s;Xu(this,r);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return s=(o=(l=Fa(this,(i=r.__proto__||Object.getPrototypeOf(r)).call.apply(i,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return en.default.createElement(n,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},en.default.createElement(t,qu({},l.props,l.state)))},o),Fa(l,s)}return r})(en.default.Component)};ot.default=Yu;var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.active=void 0;var Zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ju=_,tn=Qu(Ju);function Qu(e){return e&&e.__esModule?e:{default:e}}function ef(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 tf(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 nf=lt.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(a){tf(r,a);function r(){var i,o,l,s;ef(this,r);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return s=(o=(l=Ma(this,(i=r.__proto__||Object.getPrototypeOf(r)).call.apply(i,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return tn.default.createElement(n,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},tn.default.createElement(t,Zu({},l.props,l.state)))},o),Ma(l,s)}return r})(tn.default.Component)};lt.default=nf;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});var af=function(t,n){var a={},r=function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a[o]=l};return t===0&&r("first-child"),t===n-1&&r("last-child"),(t===0||t%2===0)&&r("even"),Math.abs(t%2)===1&&r("odd"),r("nth-child",t),a};Rn.default=af;Object.defineProperty(q,"__esModule",{value:!0});q.ReactCSS=q.loop=q.handleActive=Fn=q.handleHover=q.hover=void 0;var rf=at,of=Le(rf),lf=rt,pf=Le(lf),sf=it,cf=Le(sf),df=ot,pi=Le(df),uf=lt,ff=Le(uf),hf=Rn,vf=Le(hf);function Le(e){return e&&e.__esModule?e:{default:e}}q.hover=pi.default;var Fn=q.handleHover=pi.default;q.handleActive=ff.default;q.loop=vf.default;var mf=q.ReactCSS=function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];var i=(0,of.default)(a),o=(0,pf.default)(t,i);return(0,cf.default)(o)},E=q.default=mf,gf=function(t,n,a,r,i){var o=i.clientWidth,l=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=s-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(a==="vertical"){var h=void 0;if(u<0?h=0:u>l?h=1:h=Math.round(u*100/l)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var v=void 0;if(d<0?v=0:d>o?v=1:v=Math.round(d*100/o)/100,r!==v)return{h:n.h,s:n.s,l:n.l,a:v,source:"rgb"}}return null},nn={},xf=function(t,n,a,r){if(typeof document>"u"&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=a*2,i.height=a*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=n,o.fillRect(0,0,a,a),o.translate(a,a),o.fillRect(0,0,a,a),i.toDataURL()):null},bf=function(t,n,a,r){var i=t+"-"+n+"-"+a+(r?"-server":"");if(nn[i])return nn[i];var o=xf(t,n,a,r);return nn[i]=o,o},Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},He=function(t){var n=t.white,a=t.grey,r=t.size,i=t.renderers,o=t.borderRadius,l=t.boxShadow,s=t.children,c=E({default:{grid:{borderRadius:o,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+bf(n,a,r,i.canvas)+") center left"}}});return _.isValidElement(s)?p.cloneElement(s,Da({},s.props,{style:Da({},s.props.style,c.grid)})):p.createElement("div",{style:c.grid})};He.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wf=(function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}})();function Ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function za(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 _f(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 Mn=(function(e){_f(t,e);function t(){var n,a,r,i;Ef(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return i=(a=(r=za(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),r),r.handleChange=function(c){var d=gf(c,r.props.hsl,r.props.direction,r.props.a,r.container);d&&typeof r.props.onChange=="function"&&r.props.onChange(d,c)},r.handleMouseDown=function(c){r.handleChange(c),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},a),za(r,i)}return wf(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var a=this,r=this.props.rgb,i=E({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("+r.r+","+r.g+","+r.b+`, 0) 0%,
rgba(`+r.r+","+r.g+","+r.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:r.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("+r.r+","+r.g+","+r.b+`, 0) 0%,
rgba(`+r.r+","+r.g+","+r.b+", 1) 100%)"},pointer:{left:0,top:r.a*100+"%"}},overwrite:yf({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return p.createElement("div",{style:i.alpha},p.createElement("div",{style:i.checkboard},p.createElement(He,{renderers:this.props.renderers})),p.createElement("div",{style:i.gradient}),p.createElement("div",{style:i.container,ref:function(l){return a.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("div",{style:i.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:i.slider}))))}}]),t})(_.PureComponent||_.Component),Sf=(function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}})();function Cf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Of(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 kf(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 Af=1,si=38,Tf=40,Pf=[si,Tf],jf=function(t){return Pf.indexOf(t)>-1},Rf=function(t){return Number(String(t).replace(/%/g,""))},Ff=1,C=(function(e){kf(t,e);function t(n){$f(this,t);var a=Of(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(r){a.setUpdatedValue(r.target.value,r)},a.handleKeyDown=function(r){var i=Rf(r.target.value);if(!isNaN(i)&&jf(r.keyCode)){var o=a.getArrowOffset(),l=r.keyCode===si?i+o:i-o;a.setUpdatedValue(l,r)}},a.handleDrag=function(r){if(a.props.dragLabel){var i=Math.round(a.props.value+r.movementX);i>=0&&i<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(i),r)}},a.handleMouseDown=function(r){a.props.dragLabel&&(r.preventDefault(),a.handleDrag(r),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},a.inputId="rc-editable-input-"+Ff++,a}return Sf(t,[{key:"componentDidUpdate",value:function(a,r){this.props.value!==this.state.value&&(a.value!==this.props.value||r.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(a){return Cf({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Af}},{key:"setUpdatedValue",value:function(a,r){var i=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(i,r),this.setState({value:a})}},{key:"render",value:function(){var a=this,r=E({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 p.createElement("div",{style:r.wrap},p.createElement("input",{id:this.inputId,style:r.input,ref:function(o){return a.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?p.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t})(_.PureComponent||_.Component),Mf=function(t,n,a,r){var i=r.clientWidth,o=r.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,s=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=l-(r.getBoundingClientRect().left+window.pageXOffset),d=s-(r.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var u=void 0;if(d<0)u=359;else if(d>o)u=0;else{var h=-(d*100/o)+100;u=360*h/100}if(a.h!==u)return{h:u,s:a.s,l:a.l,a:a.a,source:"hsl"}}else{var v=void 0;if(c<0)v=0;else if(c>i)v=359;else{var g=c*100/i;v=360*g/100}if(a.h!==v)return{h:v,s:a.s,l:a.l,a:a.a,source:"hsl"}}return null},Df=(function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}})();function zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ba(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 Bf(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 Ne=(function(e){Bf(t,e);function t(){var n,a,r,i;zf(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return i=(a=(r=Ba(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),r),r.handleChange=function(c){var d=Mf(c,r.props.direction,r.props.hsl,r.container);d&&typeof r.props.onChange=="function"&&r.props.onChange(d,c)},r.handleMouseDown=function(c){r.handleChange(c),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},a),Ba(r,i)}return Df(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 a=this,r=this.props.direction,i=r===void 0?"horizontal":r,o=E({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 p.createElement("div",{style:o.hue},p.createElement("div",{className:"hue-"+i,style:o.container,ref:function(s){return a.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),p.createElement("div",{style:o.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:o.slider}))))}}]),t})(_.PureComponent||_.Component);function If(){this.__data__=[],this.size=0}function pt(e,t){return e===t||e!==e&&t!==t}function zt(e,t){for(var n=e.length;n--;)if(pt(e[n][0],t))return n;return-1}var Lf=Array.prototype,Hf=Lf.splice;function Nf(e){var t=this.__data__,n=zt(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Hf.call(t,n,1),--this.size,!0}function Gf(e){var t=this.__data__,n=zt(t,e);return n<0?void 0:t[n][1]}function Uf(e){return zt(this.__data__,e)>-1}function qf(e,t){var n=this.__data__,a=zt(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function te(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}te.prototype.clear=If;te.prototype.delete=Nf;te.prototype.get=Gf;te.prototype.has=Uf;te.prototype.set=qf;function Wf(){this.__data__=new te,this.size=0}function Kf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Xf(e){return this.__data__.get(e)}function Vf(e){return this.__data__.has(e)}var ci=typeof global=="object"&&global&&global.Object===Object&&global,Yf=typeof self=="object"&&self&&self.Object===Object&&self,Y=ci||Yf||Function("return this")(),ie=Y.Symbol,di=Object.prototype,Zf=di.hasOwnProperty,Jf=di.toString,We=ie?ie.toStringTag:void 0;function Qf(e){var t=Zf.call(e,We),n=e[We];try{e[We]=void 0;var a=!0}catch{}var r=Jf.call(e);return a&&(t?e[We]=n:delete e[We]),r}var eh=Object.prototype,th=eh.toString;function nh(e){return th.call(e)}var ah="[object Null]",rh="[object Undefined]",Ia=ie?ie.toStringTag:void 0;function ue(e){return e==null?e===void 0?rh:ah:Ia&&Ia in Object(e)?Qf(e):nh(e)}function W(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ih="[object AsyncFunction]",oh="[object Function]",lh="[object GeneratorFunction]",ph="[object Proxy]";function Dn(e){if(!W(e))return!1;var t=ue(e);return t==oh||t==lh||t==ih||t==ph}var an=Y["__core-js_shared__"],La=(function(){var e=/[^.]+$/.exec(an&&an.keys&&an.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function sh(e){return!!La&&La in e}var ch=Function.prototype,dh=ch.toString;function fe(e){if(e!=null){try{return dh.call(e)}catch{}try{return e+""}catch{}}return""}var uh=/[\\^$.*+?()[\]{}|]/g,fh=/^\[object .+?Constructor\]$/,hh=Function.prototype,vh=Object.prototype,mh=hh.toString,gh=vh.hasOwnProperty,xh=RegExp("^"+mh.call(gh).replace(uh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bh(e){if(!W(e)||sh(e))return!1;var t=Dn(e)?xh:fh;return t.test(fe(e))}function yh(e,t){return e==null?void 0:e[t]}function he(e,t){var n=yh(e,t);return bh(n)?n:void 0}var Qe=he(Y,"Map"),et=he(Object,"create");function wh(){this.__data__=et?et(null):{},this.size=0}function Eh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _h="__lodash_hash_undefined__",Sh=Object.prototype,Ch=Sh.hasOwnProperty;function $h(e){var t=this.__data__;if(et){var n=t[e];return n===_h?void 0:n}return Ch.call(t,e)?t[e]:void 0}var Oh=Object.prototype,kh=Oh.hasOwnProperty;function Ah(e){var t=this.__data__;return et?t[e]!==void 0:kh.call(t,e)}var Th="__lodash_hash_undefined__";function Ph(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&t===void 0?Th:t,this}function de(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}de.prototype.clear=wh;de.prototype.delete=Eh;de.prototype.get=$h;de.prototype.has=Ah;de.prototype.set=Ph;function jh(){this.size=0,this.__data__={hash:new de,map:new(Qe||te),string:new de}}function Rh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Bt(e,t){var n=e.__data__;return Rh(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fh(e){var t=Bt(this,e).delete(e);return this.size-=t?1:0,t}function Mh(e){return Bt(this,e).get(e)}function Dh(e){return Bt(this,e).has(e)}function zh(e,t){var n=Bt(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}function ne(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}ne.prototype.clear=jh;ne.prototype.delete=Fh;ne.prototype.get=Mh;ne.prototype.has=Dh;ne.prototype.set=zh;var Bh=200;function Ih(e,t){var n=this.__data__;if(n instanceof te){var a=n.__data__;if(!Qe||a.length<Bh-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new ne(a)}return n.set(e,t),this.size=n.size,this}function J(e){var t=this.__data__=new te(e);this.size=t.size}J.prototype.clear=Wf;J.prototype.delete=Kf;J.prototype.get=Xf;J.prototype.has=Vf;J.prototype.set=Ih;var _t=(function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch{}})();function zn(e,t,n){t=="__proto__"&&_t?_t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function dn(e,t,n){(n!==void 0&&!pt(e[t],n)||n===void 0&&!(t in e))&&zn(e,t,n)}function Lh(e){return function(t,n,a){for(var r=-1,i=Object(t),o=a(t),l=o.length;l--;){var s=o[++r];if(n(i[s],s,i)===!1)break}return t}}var ui=Lh(),fi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ha=fi&&typeof module=="object"&&module&&!module.nodeType&&module,Hh=Ha&&Ha.exports===fi,Na=Hh?Y.Buffer:void 0;Na&&Na.allocUnsafe;function Nh(e,t){return e.slice()}var St=Y.Uint8Array;function Gh(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Uh(e,t){var n=Gh(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function qh(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var Ga=Object.create,Wh=(function(){function e(){}return function(t){if(!W(t))return{};if(Ga)return Ga(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function hi(e,t){return function(n){return e(t(n))}}var vi=hi(Object.getPrototypeOf,Object),Kh=Object.prototype;function Bn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Kh;return e===n}function Xh(e){return typeof e.constructor=="function"&&!Bn(e)?Wh(vi(e)):{}}function oe(e){return e!=null&&typeof e=="object"}var Vh="[object Arguments]";function Ua(e){return oe(e)&&ue(e)==Vh}var mi=Object.prototype,Yh=mi.hasOwnProperty,Zh=mi.propertyIsEnumerable,Ct=Ua((function(){return arguments})())?Ua:function(e){return oe(e)&&Yh.call(e,"callee")&&!Zh.call(e,"callee")},N=Array.isArray,Jh=9007199254740991;function In(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jh}function Ge(e){return e!=null&&In(e.length)&&!Dn(e)}function Qh(e){return oe(e)&&Ge(e)}function ev(){return!1}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qa=gi&&typeof module=="object"&&module&&!module.nodeType&&module,tv=qa&&qa.exports===gi,Wa=tv?Y.Buffer:void 0,nv=Wa?Wa.isBuffer:void 0,$t=nv||ev,av="[object Object]",rv=Function.prototype,iv=Object.prototype,xi=rv.toString,ov=iv.hasOwnProperty,lv=xi.call(Object);function pv(e){if(!oe(e)||ue(e)!=av)return!1;var t=vi(e);if(t===null)return!0;var n=ov.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xi.call(n)==lv}var sv="[object Arguments]",cv="[object Array]",dv="[object Boolean]",uv="[object Date]",fv="[object Error]",hv="[object Function]",vv="[object Map]",mv="[object Number]",gv="[object Object]",xv="[object RegExp]",bv="[object Set]",yv="[object String]",wv="[object WeakMap]",Ev="[object ArrayBuffer]",_v="[object DataView]",Sv="[object Float32Array]",Cv="[object Float64Array]",$v="[object Int8Array]",Ov="[object Int16Array]",kv="[object Int32Array]",Av="[object Uint8Array]",Tv="[object Uint8ClampedArray]",Pv="[object Uint16Array]",jv="[object Uint32Array]",O={};O[Sv]=O[Cv]=O[$v]=O[Ov]=O[kv]=O[Av]=O[Tv]=O[Pv]=O[jv]=!0;O[sv]=O[cv]=O[Ev]=O[dv]=O[_v]=O[uv]=O[fv]=O[hv]=O[vv]=O[mv]=O[gv]=O[xv]=O[bv]=O[yv]=O[wv]=!1;function Rv(e){return oe(e)&&In(e.length)&&!!O[ue(e)]}function Fv(e){return function(t){return e(t)}}var bi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Je=bi&&typeof module=="object"&&module&&!module.nodeType&&module,Mv=Je&&Je.exports===bi,rn=Mv&&ci.process,Ka=(function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||rn&&rn.binding&&rn.binding("util")}catch{}})(),Xa=Ka&&Ka.isTypedArray,Ln=Xa?Fv(Xa):Rv;function un(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Dv=Object.prototype,zv=Dv.hasOwnProperty;function Bv(e,t,n){var a=e[t];(!(zv.call(e,t)&&pt(a,n))||n===void 0&&!(t in e))&&zn(e,t,n)}function Iv(e,t,n,a){var r=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=void 0;s===void 0&&(s=e[l]),r?zn(n,l,s):Bv(n,l,s)}return n}function Lv(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var Hv=9007199254740991,Nv=/^(?:0|[1-9]\d*)$/;function Hn(e,t){var n=typeof e;return t=t??Hv,!!t&&(n=="number"||n!="symbol"&&Nv.test(e))&&e>-1&&e%1==0&&e<t}var Gv=Object.prototype,Uv=Gv.hasOwnProperty;function yi(e,t){var n=N(e),a=!n&&Ct(e),r=!n&&!a&&$t(e),i=!n&&!a&&!r&&Ln(e),o=n||a||r||i,l=o?Lv(e.length,String):[],s=l.length;for(var c in e)(t||Uv.call(e,c))&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Hn(c,s)))&&l.push(c);return l}function qv(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Wv=Object.prototype,Kv=Wv.hasOwnProperty;function Xv(e){if(!W(e))return qv(e);var t=Bn(e),n=[];for(var a in e)a=="constructor"&&(t||!Kv.call(e,a))||n.push(a);return n}function wi(e){return Ge(e)?yi(e,!0):Xv(e)}function Vv(e){return Iv(e,wi(e))}function Yv(e,t,n,a,r,i,o){var l=un(e,n),s=un(t,n),c=o.get(s);if(c){dn(e,n,c);return}var d=i?i(l,s,n+"",e,t,o):void 0,u=d===void 0;if(u){var h=N(s),v=!h&&$t(s),g=!h&&!v&&Ln(s);d=s,h||v||g?N(l)?d=l:Qh(l)?d=qh(l):v?(u=!1,d=Nh(s)):g?(u=!1,d=Uh(s)):d=[]:pv(s)||Ct(s)?(d=l,Ct(l)?d=Vv(l):(!W(l)||Dn(l))&&(d=Xh(s))):u=!1}u&&(o.set(s,d),r(d,s,a,i,o),o.delete(s)),dn(e,n,d)}function Ei(e,t,n,a,r){e!==t&&ui(t,function(i,o){if(r||(r=new J),W(i))Yv(e,t,o,n,Ei,a,r);else{var l=a?a(un(e,o),i,o+"",e,t,r):void 0;l===void 0&&(l=i),dn(e,o,l)}},wi)}function It(e){return e}function Zv(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Va=Math.max;function Jv(e,t,n){return t=Va(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=Va(a.length-t,0),o=Array(i);++r<i;)o[r]=a[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=a[r];return l[t]=n(o),Zv(e,this,l)}}function Qv(e){return function(){return e}}var em=_t?function(e,t){return _t(e,"toString",{configurable:!0,enumerable:!1,value:Qv(t),writable:!0})}:It,tm=800,nm=16,am=Date.now;function rm(e){var t=0,n=0;return function(){var a=am(),r=nm-(a-n);if(n=a,r>0){if(++t>=tm)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var im=rm(em);function om(e,t){return im(Jv(e,t,It),e+"")}function lm(e,t,n){if(!W(n))return!1;var a=typeof t;return(a=="number"?Ge(n)&&Hn(t,n.length):a=="string"&&t in n)?pt(n[t],e):!1}function pm(e){return om(function(t,n){var a=-1,r=n.length,i=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,o&&lm(n[0],n[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++a<r;){var l=n[a];l&&e(t,l,a,i)}return t})}var z=pm(function(e,t,n){Ei(e,t,n)}),st=function(t){var n=t.zDepth,a=t.radius,r=t.background,i=t.children,o=t.styles,l=o===void 0?{}:o,s=E(z({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+n*4+"px rgba(0,0,0,.24)",borderRadius:a,background:r}},"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%"}}},l),{"zDepth-1":n===1});return p.createElement("div",{style:s.wrap},p.createElement("div",{style:s.bg}),p.createElement("div",{style:s.content},i))};st.propTypes={background:f.string,zDepth:f.oneOf([0,1,2,3,4,5]),radius:f.number,styles:f.object};st.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var on=function(){return Y.Date.now()},sm=/\s/;function cm(e){for(var t=e.length;t--&&sm.test(e.charAt(t)););return t}var dm=/^\s+/;function um(e){return e&&e.slice(0,cm(e)+1).replace(dm,"")}var fm="[object Symbol]";function Lt(e){return typeof e=="symbol"||oe(e)&&ue(e)==fm}var Ya=NaN,hm=/^[-+]0x[0-9a-f]+$/i,vm=/^0b[01]+$/i,mm=/^0o[0-7]+$/i,gm=parseInt;function Za(e){if(typeof e=="number")return e;if(Lt(e))return Ya;if(W(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=W(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=um(e);var n=vm.test(e);return n||mm.test(e)?gm(e.slice(2),n?2:8):hm.test(e)?Ya:+e}var xm="Expected a function",bm=Math.max,ym=Math.min;function _i(e,t,n){var a,r,i,o,l,s,c=0,d=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(xm);t=Za(t)||0,W(n)&&(d=!!n.leading,u="maxWait"in n,i=u?bm(Za(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function v(T){var M=a,Q=r;return a=r=void 0,c=T,o=e.apply(Q,M),o}function g(T){return c=T,l=setTimeout(S,t),d?v(T):o}function x(T){var M=T-s,Q=T-c,ae=t-M;return u?ym(ae,i-Q):ae}function b(T){var M=T-s,Q=T-c;return s===void 0||M>=t||M<0||u&&Q>=i}function S(){var T=on();if(b(T))return R(T);l=setTimeout(S,x(T))}function R(T){return l=void 0,h&&a?v(T):(a=r=void 0,o)}function K(){l!==void 0&&clearTimeout(l),c=0,a=s=r=l=void 0}function F(){return l===void 0?o:R(on())}function G(){var T=on(),M=b(T);if(a=arguments,r=this,s=T,M){if(l===void 0)return g(s);if(u)return clearTimeout(l),l=setTimeout(S,t),v(s)}return l===void 0&&(l=setTimeout(S,t)),o}return G.cancel=K,G.flush=F,G}var wm="Expected a function";function Em(e,t,n){var a=!0,r=!0;if(typeof e!="function")throw new TypeError(wm);return W(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),_i(e,t,{leading:a,maxWait:t,trailing:r})}var _m=function(t,n,a){var r=a.getBoundingClientRect(),i=r.width,o=r.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,s=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=l-(a.getBoundingClientRect().left+window.pageXOffset),d=s-(a.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),d<0?d=0:d>o&&(d=o);var u=c/i,h=1-d/o;return{h:n.h,s:u,v:h,a:n.a,source:"hsv"}},Sm=(function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}})();function Cm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(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 Om(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 Ht=(function(e){Om(t,e);function t(n){Cm(this,t);var a=$m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return a.handleChange=function(r){typeof a.props.onChange=="function"&&a.throttle(a.props.onChange,_m(r,a.props.hsl,a.container),r)},a.handleMouseDown=function(r){a.handleChange(r);var i=a.getContainerRenderWindow();i.addEventListener("mousemove",a.handleChange),i.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.throttle=Em(function(r,i,o){r(i,o)},50),a}return Sm(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var a=this.container,r=window;!r.document.contains(a)&&r.parent!==r;)r=r.parent;return r}},{key:"unbindEventListeners",value:function(){var a=this.getContainerRenderWindow();a.removeEventListener("mousemove",this.handleChange),a.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var a=this,r=this.props.style||{},i=r.color,o=r.white,l=r.black,s=r.pointer,c=r.circle,d=E({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),
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:l,pointer:s,circle:c}},{custom:!!this.props.style});return p.createElement("div",{style:d.color,ref:function(h){return a.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),p.createElement("div",{style:d.white,className:"saturation-white"},p.createElement("div",{style:d.black,className:"saturation-black"}),p.createElement("div",{style:d.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:d.circle}))))}}]),t})(_.PureComponent||_.Component);function km(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var Am=hi(Object.keys,Object),Tm=Object.prototype,Pm=Tm.hasOwnProperty;function jm(e){if(!Bn(e))return Am(e);var t=[];for(var n in Object(e))Pm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Nn(e){return Ge(e)?yi(e):jm(e)}function Rm(e,t){return e&&ui(e,t,Nn)}function Fm(e,t){return function(n,a){if(n==null)return n;if(!Ge(n))return e(n,a);for(var r=n.length,i=-1,o=Object(n);++i<r&&a(o[i],i,o)!==!1;);return n}}var Si=Fm(Rm);function Mm(e){return typeof e=="function"?e:It}function Dm(e,t){var n=N(e)?km:Si;return n(e,Mm(t))}function Ot(e){"@babel/helpers - typeof";return Ot=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},Ot(e)}var zm=/^\s+/,Bm=/\s+$/;function y(e,t){if(e=e||"",t=t||{},e instanceof y)return e;if(!(this instanceof y))return new y(e,t);var n=Im(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.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=n.ok}y.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},getLuminanc