dat.gui/build/dat.gui.min.js
2015-08-15 03:45:28 +02:00

4 lines
105 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.dat=e():t.dat=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";e.__esModule=!0,n(1),e["default"]=n(169),t.exports=e["default"]},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(3)},function(t,e,n){(function(t){"use strict";if(n(4),n(167),t._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0}).call(e,function(){return this}())},function(t,e,n){n(5),n(34),n(42),n(44),n(46),n(48),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(69),n(70),n(71),n(73),n(74),n(75),n(76),n(77),n(78),n(79),n(80),n(81),n(82),n(83),n(84),n(85),n(91),n(92),n(94),n(95),n(97),n(98),n(103),n(104),n(107),n(109),n(110),n(111),n(112),n(113),n(115),n(116),n(118),n(119),n(120),n(121),n(126),n(129),n(130),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(145),n(146),n(147),n(148),n(149),n(150),n(152),n(153),n(154),n(155),n(157),n(158),n(160),n(161),n(162),n(165),n(166),t.exports=n(16)},function(t,e,n){function r(t,e){return function(n){var r,o=w(n),i=0,a=[];for(r in o)r!=m&&h(o,r)&&a.push(r);for(;e>i;)h(o,r=t[i++])&&(~R(a,r)||a.push(r));return a}}function o(){}function i(t,e,n){if(!(e in V)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";V[e]=Function("F,a","return new F("+r.join(",")+")")}return V[e](t,n)}function a(t){return function(e,n){x(e);var r=w(this),o=A(r.length),i=t?o-1:0,a=t?-1:1;if(arguments.length<2)for(;;){if(i in r){n=r[i],i+=a;break}if(i+=a,t?0>i:i>=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?i>=0:o>i;i+=a)i in r&&(n=e(n,r[i],i,this));return n}}function u(t){return t>9?t:"0"+t}var s=n(6),c=n(7),l=n(8),f=n(9),d=n(11),h=n(13),p=n(14),_=n(15),g=n(20),v=n(21),m=n(19)("__proto__"),y=n(12),b=n(29),x=n(26),w=n(22),E=n(28),S=n(30),A=n(27),C=n(23),O=Object.prototype,k=[],M=k.slice,T=k.join,N=s.setDesc,P=s.getDesc,j=s.setDescs,L=!1,R=n(31)(!1),F=v(0),D=v(1),I=v(2),B=v(3),U=v(4),V={},H=n(32)(/^\s*([\s\S]*\S)?\s*$/,"$1");if(!c){try{L=8==N(d("div"),"x",{get:function(){return 8}}).x}catch(z){}s.setDesc=function(t,e,n){if(L)try{return N(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(b(t)[e]=n.value),t},s.getDesc=function(t,e){if(L)try{return P(t,e)}catch(n){}return h(t,e)?l(!O.propertyIsEnumerable.call(t,e),t[e]):void 0},s.setDescs=j=function(t,e){b(t);for(var n,r=s.getKeys(e),o=r.length,i=0;o>i;)s.setDesc(t,n=r[i++],e[n]);return t}}_(_.S+_.F*!c,"Object",{getOwnPropertyDescriptor:s.getDesc,defineProperty:s.setDesc,defineProperties:j});var G="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),W=G.concat("length","prototype"),K=G.length,X=function(){var t,e=d("iframe"),n=K,r=">";for(e.style.display="none",f.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),X=t.F;n--;)delete X.prototype[G[n]];return X()};_(_.S,"Object",{getPrototypeOf:s.getProto=s.getProto||function(t){return t=w(t,!0),h(t,m)?t[m]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?O:null},getOwnPropertyNames:s.getNames=s.getNames||r(W,W.length,!0),create:s.create=s.create||function(t,e){var n;return null!==t?(o.prototype=b(t),n=new o,o.prototype=null,n[m]=t):n=X(),void 0===e?n:j(n,e)},keys:s.getKeys=s.getKeys||r(G,K,!1),seal:function(t){return t},freeze:function(t){return t},preventExtensions:function(t){return t},isSealed:function(t){return!y(t)},isFrozen:function(t){return!y(t)},isExtensible:function(t){return y(t)}}),_(_.P,"Function",{bind:function(t){function e(){var o=r.concat(M.call(arguments));return this instanceof e?i(n,o.length,o):g(n,o,t)}var n=x(this),r=M.call(arguments,1);return y(n.prototype)&&(e.prototype=n.prototype),e}});var Y=!0;try{f&&M.call(f),Y=!1}catch(z){}_(_.P+_.F*Y,"Array",{slice:function(t,e){var n=A(this.length),r=p(this);if(e=void 0===e?n:e,"Array"==r)return M.call(this,t,e);for(var o=S(t,n),i=S(e,n),a=A(i-o),u=Array(a),s=0;a>s;s++)u[s]="String"==r?this.charAt(o+s):this[o+s];return u}}),_(_.P+_.F*(C!=Object),"Array",{join:function(){return T.apply(C(this),arguments)}}),_(_.S,"Array",{isArray:function(t){return"Array"==p(t)}}),_(_.P,"Array",{forEach:s.each=s.each||function(t){return F(this,t,arguments[1])},map:function(t){return D(this,t,arguments[1])},filter:function(t){return I(this,t,arguments[1])},some:function(t){return B(this,t,arguments[1])},every:function(t){return U(this,t,arguments[1])},reduce:a(!1),reduceRight:a(!0),indexOf:function(t){return R(this,t,arguments[1])},lastIndexOf:function(t,e){var n=w(this),r=A(n.length),o=r-1;for(arguments.length>1&&(o=Math.min(o,E(e))),0>o&&(o=A(r+o));o>=0;o--)if(o in n&&n[o]===t)return o;return-1}}),_(_.P,"String",{trim:function(){return H(this)}}),_(_.S,"Date",{now:function(){return+new Date}});var J=new Date(-5e13-1),Q=!(J.toISOString&&"0385-07-25T07:06:39.999Z"==J.toISOString()&&n(33)(function(){new Date(NaN).toISOString()}));_(_.P+_.F*Q,"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=0>e?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(n>99?n:"0"+u(n))+"Z"}})},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e){t.exports=!!function(){try{return 2==Object.defineProperty({},"a",{get:function(){return 2}}).a}catch(t){}}()},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports=n(10).document&&document.documentElement},function(t,e){var n="undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.exports=n,"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(12),o=n(10).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){function r(t,e){return function(){return t.apply(e,arguments)}}function o(t,e,n){var l,f,d,h,p=t&o.G,_=t&o.P,g=p?i:t&o.S?i[e]||(i[e]={}):(i[e]||{})[c],v=p?a:a[e]||(a[e]={});p&&(n=e);for(l in n)f=!(t&o.F)&&g&&l in g,d=(f?g:n)[l],h=t&o.B&&f?r(d,i):_&&"function"==typeof d?r(Function.call,d):d,g&&!f&&s(g,l,d),v[l]!=d&&u(v,l,h),_&&((v[c]||(v[c]={}))[l]=d)}var i=n(10),a=n(16),u=n(17),s=n(18),c="prototype";i.core=a,o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,t.exports=o},function(t,e){var n=t.exports={};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(6),o=n(8);t.exports=n(7)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){function r(t,e,n,r){if("function"==typeof n){var i=t[e];a(n,s,i?String(i):u.replace(/hasOwnProperty/,String(e))),"name"in n||(n.name=e)}t===o?t[e]=n:(r||delete t[e],a(t,e,n))}var o=n(10),i=n(13),a=n(17),u=String({}.hasOwnProperty),s=n(19)("src"),c=Function.toString;r(Function.prototype,"toString",function(){return i(this,s)?this[s]:c.call(this)}),n(16).inspectSource=function(t){return c.call(t)},t.exports=r},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3]);case 5:return r?t(e[0],e[1],e[2],e[3],e[4]):t.call(n,e[0],e[1],e[2],e[3],e[4])}return t.apply(n,e)}},function(t,e,n){var r=n(22),o=n(23),i=n(25),a=n(27);t.exports=function(t){var e=1==t,n=2==t,u=3==t,s=4==t,c=6==t,l=5==t||c;return function(f,d,h){for(var p,_,g=r(f,!0),v=o(g),m=i(d,h,3),y=a(v.length),b=0,x=e?Array(y):n?[]:void 0;y>b;b++)if((l||b in v)&&(p=v[b],_=m(p,b,g),t))if(e)x[b]=_;else if(_)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:x.push(p)}else if(s)return!1;return c?-1:u||s?s:x}}},function(t,e,n){var r=n(23),o=n(24);t.exports=function(t,e){return(e?Object:r)(o(t))}},function(t,e,n){var r=n(14),o=Object;t.exports=0 in o("z")?o:function(t){return"String"==r(t)?t.split(""):o(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),~n&&void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(28),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(22),o=n(27),i=n(30);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l;return!t&&-1}}},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e){t.exports=function(t){try{return t(),!1}catch(e){return!0}}},function(t,e,n){"use strict";function r(t){var e=F[t]=M(N.prototype);return e._k=t,p&&P&&B(I,t,{configurable:!0,set:function(e){h(this,j)&&h(this[j],t)&&(this[j][t]=!1),B(this,t,C(1,e))}}),e}function o(t,e,n){return n&&h(F,e)?(n.enumerable?(h(t,j)&&t[j][e]&&(t[j][e]=!1),n=M(n,{enumerable:C(0,!1)})):(h(t,j)||k(t,j,C(1,{})),t[j][e]=!0),B(t,e,n)):k(t,e,n)}function i(t,e){S(t);for(var n,r=E(e=A(e)),i=0,a=r.length;a>i;)o(t,n=r[i++],e[n]);return t}function a(t,e){return void 0===e?M(t):i(M(t),e)}function u(t){var e=L.call(this,t);return e||!h(this,t)||!h(F,t)||h(this,j)&&this[j][t]?e:!0}function s(t,e){var n=O(t=A(t),e);return!n||!h(F,e)||h(t,j)&&t[j][e]||(n.enumerable=!0),n}function c(t){for(var e,n=T(A(t)),r=[],o=0;n.length>o;)h(F,e=n[o++])||e==j||r.push(e);return r}function l(t){for(var e,n=T(A(t)),r=[],o=0;n.length>o;)h(F,e=n[o++])&&r.push(F[e]);return r}var f=n(6),d=n(10),h=n(13),p=n(7),_=n(15),g=n(18),v=n(35),m=n(36),y=n(19),b=n(37),x=n(38),w=n(39),E=n(40),S=n(29),A=n(22),C=n(8),O=f.getDesc,k=f.setDesc,M=f.create,T=w.get,N=d.Symbol,P=!1,j=b("_hidden"),L=f.isEnum,R=v("symbol-registry"),F=v("symbols"),D="function"==typeof N,I=Object.prototype,B=p?function(){try{return M(k({},j,{get:function(){return k(this,j,{value:!1})[j]}}))[j]||k}catch(t){return function(t,e,n){var r=O(I,e);r&&delete I[e],k(t,e,n),r&&t!==I&&k(I,e,r)}}}():k;D||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor");return r(y(arguments[0]))},g(N.prototype,"toString",function(){return this._k}),f.create=a,f.isEnum=u,f.getDesc=s,f.setDesc=o,f.setDescs=i,f.getNames=w.get=c,f.getSymbols=l,p&&!n(41)&&g(I,"propertyIsEnumerable",u,!0));var U={"for":function(t){return h(R,t+="")?R[t]:R[t]=N(t)},keyFor:function(t){return x(R,t)},useSetter:function(){P=!0},useSimple:function(){P=!1}};f.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=b(t);U[t]=D?e:r(e)}),P=!0,_(_.G+_.W,{Symbol:N}),_(_.S,"Symbol",U),_(_.S+_.F*!D,"Object",{create:a,defineProperty:o,defineProperties:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:c,getOwnPropertySymbols:l}),m(N,"Symbol"),m(Math,"Math",!0),m(d.JSON,"JSON",!0)},function(t,e,n){var r=n(10),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(13),o=n(17),i=n(37)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,e)}},function(t,e,n){var r=n(35)("wks"),o=n(10).Symbol;t.exports=function(t){return r[t]||(r[t]=o&&o[t]||(o||n(19))("Symbol."+t))}},function(t,e,n){var r=n(6),o=n(22);t.exports=function(t,e){for(var n,i=o(t),a=r.getKeys(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},function(t,e,n){function r(t){try{return a(t)}catch(e){return u.slice()}}var o={}.toString,i=n(22),a=n(6).getNames,u="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(t){return u&&"[object Window]"==o.call(t)?r(t):a(i(t))}},function(t,e,n){var r=n(6);t.exports=function(t){var e=r.getKeys(t),n=r.isEnum,o=r.getSymbols;if(o)for(var i,a=o(t),u=0;a.length>u;)n.call(t,i=a[u++])&&e.push(i);return e}},function(t,e){t.exports=!1},function(t,e,n){var r=n(15);r(r.S,"Object",{assign:n(43)})},function(t,e,n){var r=n(22),o=n(23),i=n(40);t.exports=Object.assign||function(t,e){for(var n=r(t,!0),a=arguments.length,u=1;a>u;)for(var s,c=o(arguments[u++]),l=i(c),f=l.length,d=0;f>d;)n[s=l[d++]]=c[s];return n}},function(t,e,n){var r=n(15);r(r.S,"Object",{is:n(45)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(15);r(r.S,"Object",{setPrototypeOf:n(47).set})},function(t,e,n){function r(t,e){if(a(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var o=n(6).getDesc,i=n(12),a=n(29);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e){try{e=n(25)(Function.call,o(Object.prototype,"__proto__").set,2),e({},[])}catch(i){t=!0}return function(n,o){return r(n,o),t?n.__proto__=o:e(n,o),n}}():void 0),check:r}},function(t,e,n){"use strict";var r=n(49),o={};o[n(37)("toStringTag")]="z",o+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(14),o=n(37)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=(e=Object(t))[o])?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(6),o=n(16),i=n(15),a=n(22),u=n(12);r.each.call("freeze,seal,preventExtensions,isFrozen,isSealed,isExtensible,getOwnPropertyDescriptor,getPrototypeOf,keys,getOwnPropertyNames".split(","),function(t,e){var r=(o.Object||{})[t]||Object[t],s=0,c={};c[t]=0==e?function(t){return u(t)?r(t):t}:1==e?function(t){return u(t)?r(t):t}:2==e?function(t){return u(t)?r(t):t}:3==e?function(t){return u(t)?r(t):!0}:4==e?function(t){return u(t)?r(t):!0}:5==e?function(t){return u(t)?r(t):!1}:6==e?function(t,e){return r(a(t),e)}:7==e?function(t){return r(a(t,!0))}:8==e?function(t){return r(a(t))}:n(39).get;try{r("z")}catch(l){s=1}i(i.S+i.F*s,"Object",c)})},function(t,e,n){"use strict";var r=n(6),o=n(13),i=n(8),a=r.setDesc,u=Function.prototype,s="name";s in u||n(7)&&a(u,s,{configurable:!0,get:function(){var t=String(this).match(/^\s*function ([^ (]*)/),e=t?t[1]:"";return o(this,s)||a(this,s,i(5,e)),e},set:function(t){o(this,s)||a(this,s,i(0,t))}})},function(t,e,n){var r=n(6),o=n(12),i=n(37)("hasInstance"),a=Function.prototype;i in a||r.setDesc(a,i,{value:function(t){if("function"!=typeof this||!o(t))return!1;if(!o(this.prototype))return t instanceof this;for(;t=r.getProto(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){"use strict";function r(t){var e,n;if("function"==typeof(e=t.valueOf)&&!c(n=e.call(t)))return n;if("function"==typeof(e=t.toString)&&!c(n=e.call(t)))return n;throw TypeError("Can't convert object to number")}function o(t){if(c(t)&&(t=r(t)),"string"==typeof t&&t.length>2&&48==t.charCodeAt(0)){var e=!1;switch(t.charCodeAt(1)){case 66:case 98:e=!0;case 79:case 111:return parseInt(t.slice(2),e?2:8)}}return+t}var i=n(6),a=n(10),u=n(13),s=n(14),c=n(12),l="Number",f=a[l],d=f,h=f.prototype,p=s(i.create(h))==l?function(t){try{return h.valueOf.call(t),!1}catch(e){return!0}}:function(t){return s(t)!=l};f("0o1")&&f("0b1")||(f=function(t){return this instanceof f&&p(this)?new d(o(t)):o(t)},i.each.call(n(7)?i.getNames(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){u(d,t)&&!u(f,t)&&i.setDesc(f,t,i.getDesc(d,t))}),f.prototype=h,h.constructor=f,n(18)(a,l,f))},function(t,e,n){var r=n(15);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(15),o=n(10).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(15);r(r.S,"Number",{isInteger:n(57)})},function(t,e,n){var r=n(12),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e,n){var r=n(15);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(15),o=n(57),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(15);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(15);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(15);r(r.S,"Number",{parseFloat:parseFloat})},function(t,e,n){var r=n(15);r(r.S,"Number",{parseInt:parseInt})},function(t,e,n){var r=n(15),o=Math.E,i=Math.sqrt;r(r.S,"Math",{acosh:function(t){return(t=+t)<1?NaN:isFinite(t)?Math.log(t/o+i(t+1)*i(t-1)/o)+1:t}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?0>t?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=n(15);o(o.S,"Math",{asinh:r})},function(t,e,n){var r=n(15);r(r.S,"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(15),o=n(68);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,e,n){var r=n(15);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(15),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(15);r(r.S,"Math",{expm1:n(72)})},function(t,e){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},function(t,e,n){function r(t){return t+1/u-1/u}var o=n(15),i=n(68),a=Math.pow,u=a(2,-52),s=a(2,-23),c=a(2,127)*(2-s),l=a(2,-126);o(o.S,"Math",{fround:function(t){var e,n,o=Math.abs(t),a=i(t);return l>o?a*r(o/l/s)*l*s:(e=(1+s/u)*o,n=e-(e-o),n>c||n!=n?a*(1/0):a*n)}})},function(t,e,n){var r=n(15),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments.length,s=0;u>a;)n=o(arguments[a++]),n>s?(r=s/n,i=i*r*r+1,s=n):n>0?(r=n/s,i+=r*r):i+=n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(t,e,n){var r=n(15);r(r.S,"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var r=n(15);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(15);r(r.S,"Math",{log1p:function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}})},function(t,e,n){var r=n(15);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(15);r(r.S,"Math",{sign:n(68)})},function(t,e,n){var r=n(15),o=n(72),i=Math.exp;r(r.S,"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(15),o=n(72),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(15);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(15),o=n(30),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(65536>e?i(e):i(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(15),o=n(22),i=n(27);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),r>u&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,n){var r=n(86)(!0);n(87)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(28),o=n(24);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return 0>s||s>=c?t?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";function r(){return this}var o=n(41),i=n(15),a=n(18),u=n(17),s=n(13),c=n(37)("iterator"),l=n(88),f="@@iterator",d="keys",h="values";t.exports=function(t,e,p,_,g,v,m){function y(t){switch(t){case d:return function(){return new p(this,t)};case h:return function(){return new p(this,t)}}return function(){return new p(this,t)}}n(89)(p,e,_);var b,x,w=e+" Iterator",E=t.prototype,S=E[c]||E[f]||g&&E[g],A=S||y(g);if(S){var C=n(6).getProto(A.call(new t));n(36)(C,w,!0),!o&&s(E,f)&&u(C,c,r)}if((!o||m)&&u(E,c,A),l[e]=A,l[w]=r,g)if(b={keys:v?A:y(d),values:g==h?A:y(h),entries:g!=h?A:y("entries")},m)for(x in b)x in E||a(E,x,b[x]);else i(i.P+i.F*n(90),e,b)}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(6),o={};n(17)(o,n(37)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=r.create(o,{next:n(8)(1,i)}),n(36)(t,e+" Iterator")}},function(t,e){t.exports="keys"in[]&&!("next"in[].keys())},function(t,e,n){"use strict";var r=n(15),o=n(86)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(15),o=n(27),i=n(93);r(r.P+r.F*!n(33)(function(){"q".endsWith(/./)}),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments[1],r=o(e.length),a=void 0===n?r:Math.min(o(n),r),u=String(t);return e.slice(a-u.length,a)===u}})},function(t,e,n){var r=n(24),o=n(14);t.exports=function(t,e,n){if("RegExp"==o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){"use strict";var r=n(15),o=n(93);r(r.P,"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments[1])}})},function(t,e,n){var r=n(15);r(r.P,"String",{repeat:n(96)})},function(t,e,n){"use strict";var r=n(28),o=n(24);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(0>i||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(15),o=n(27),i=n(93);r(r.P+r.F*!n(33)(function(){"q".startsWith(/./)}),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments[1],e.length)),r=String(t);return e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(25),o=n(15),i=n(22),a=n(99),u=n(100),s=n(27),c=n(101);o(o.S+o.F*!n(102)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,f=i(t,!0),d="function"==typeof this?this:Array,h=arguments[1],p=void 0!==h,_=0,g=c(f);if(p&&(h=r(h,arguments[2],2)),void 0==g||d==Array&&u(g))for(n=new d(e=s(f.length));e>_;_++)n[_]=p?h(f[_],_):f[_];else for(l=g.call(f),n=new d;!(o=l.next()).done;_++)n[_]=p?a(l,h,[o.value,_],!0):o.value;return n.length=_,n}})},function(t,e,n){function r(t){var e=t["return"];void 0!==e&&o(e.call(t))}var o=n(29);t.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(a){throw r(t),a}}},function(t,e,n){var r=n(88),o=n(37)("iterator");t.exports=function(t){return("Array"in r?r.Array:Array.prototype[o])===t}},function(t,e,n){var r=n(10),o=n(49),i=n(37)("iterator"),a=n(88);t.exports=n(16).getIteratorMethod=function(t){var e=r.Symbol;return void 0!=t?t[e&&e.iterator||"@@iterator"]||t[i]||a[o(t)]:void 0}},function(t,e,n){var r=n(37)("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t){if(!o)return!1;var e=!1;try{var n=[7],i=n[r]();i.next=function(){e=!0},n[r]=function(){return i},t(n)}catch(a){}return e}},function(t,e,n){var r=n(15);r(r.S,"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)n[t]=arguments[t++];return n.length=e,n}})},function(t,e,n){var r=n(105),o=n(106),i=n(88),a=n(22);n(87)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(37)("unscopables");r in[]||n(17)(Array.prototype,r,{}),t.exports=function(t){[][r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(108)(Array)},function(t,e,n){var r=n(6),o=n(37)("species");t.exports=function(t){!n(7)||o in t||r.setDesc(t,o,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(15),o=n(22),i=n(30),a=n(27);r(r.P,"Array",{copyWithin:function(t,e){var n=o(this,!0),r=a(n.length),u=i(t,r),s=i(e,r),c=arguments[2],l=void 0===c?r:i(c,r),f=Math.min(l-s,r-u),d=1;for(u>s&&s+f>u&&(d=-1,s=s+f-1,u=u+f-1);f-->0;)s in n?n[u]=n[s]:delete n[u],u+=d,s+=d;return n}}),n(105)("copyWithin")},function(t,e,n){"use strict";var r=n(15),o=n(22),i=n(30),a=n(27);r(r.P,"Array",{fill:function(t){for(var e=o(this,!0),n=a(e.length),r=i(arguments[1],n),u=arguments[2],s=void 0===u?n:i(u,n);s>r;)e[r++]=t;return e}}),n(105)("fill")},function(t,e,n){"use strict";var r="find",o=n(15),i=!0,a=n(21)(5);r in[]&&Array(1)[r](function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(t){return a(this,t,arguments[1])}}),n(105)(r)},function(t,e,n){"use strict";var r="findIndex",o=n(15),i=!0,a=n(21)(6);r in[]&&Array(1)[r](function(){i=!1}),o(o.P+o.F*i,"Array",{findIndex:function(t){return a(this,t,arguments[1])}}),n(105)(r)},function(t,e,n){var r=n(6),o=n(10),i=n(14),a=n(114),u=o.RegExp,s=u,c=u.prototype,l=/a/g,f=new u(l)!==l,d=function(){try{return"/a/i"==u(l,"i")}catch(t){}}();n(7)&&(f&&d||(u=function(t,e){var n="RegExp"==i(t),r=void 0===e;return this instanceof u||!n||!r?f?new s(n&&!r?t.source:t,e):new s(n?t.source:t,n&&r?a.call(t):e):t},r.each.call(r.getNames(s),function(t){t in u||r.setDesc(u,t,{configurable:!0,get:function(){return s[t]},set:function(e){s[t]=e}})}),c.constructor=u,u.prototype=c,n(18)(o,"RegExp",u))),n(108)(u)},function(t,e,n){var r=n(29);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(6);n(7)&&"g"!=/./g.flags&&r.setDesc(RegExp.prototype,"flags",{configurable:!0,get:n(114)})},function(t,e,n){n(117)("match",1,function(t){return function(e){"use strict";var n=String(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](n)}})},function(t,e,n){"use strict";t.exports=function(t,e,r){var o=n(37)(t),i=""[t];(function(){try{var e={};return e[o]=function(){return 7},7!=""[t](e)}catch(n){return!0}})()&&(n(18)(String.prototype,t,r(o,i)),n(17)(RegExp.prototype,o,2==e?function(t,e){return i.call(t,this,e)}:function(t){return i.call(t,this)}))}},function(t,e,n){n(117)("replace",2,function(t,e){return function(n,r){"use strict";var o=String(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(o,n,r)}})},function(t,e,n){n(117)("search",1,function(t){return function(e){"use strict";var n=String(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](n)}})},function(t,e,n){n(117)("split",2,function(t,e){return function(n,r){"use strict";var o=String(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(o,n,r)}})},function(t,e,n){"use strict";function r(t){var e=new j(function(){});return t&&(e.constructor=Object),j.resolve(e)===e}function o(t){return y(t)&&(L?"Promise"==v(t):k in t)}function i(t,e){return p&&t===j&&e===d?!0:A(t,e)}function a(t){var e=b(t)[O];return void 0!=e?e:t}function u(t){var e;return y(t)&&"function"==typeof(e=t.then)?e:!1}function s(t,e){if(!t.n){t.n=!0;var n=t.c;P.call(_,function(){function r(e){var n,r,a=i?e.ok:e.fail;try{a?(i||(t.h=!0),n=a===!0?o:a(o),n===e.P?e.rej(TypeError("Promise-chain cycle")):(r=u(n))?r.call(n,e.res,e.rej):e.res(n)):e.rej(o)}catch(s){e.rej(s)}}for(var o=t.v,i=1==t.s,a=0;n.length>a;)r(n[a++]);n.length=0,t.n=!1,e&&setTimeout(function(){P.call(_,function(){c(t.p)&&(N?T.emit("unhandledRejection",o,t.p):_.console&&console.error&&console.error("Unhandled promise rejection",o)),t.a=void 0})},1)})}}function c(t){var e,n=t[k],r=n.a||n.c,o=0;if(n.h)return!1;for(;r.length>o;)if(e=r[o++],e.fail||!c(e.P))return!1;return!0}function l(t){var e=this;e.d||(e.d=!0,e=e.r||e,e.v=t,e.s=2,e.a=e.c.slice(),s(e,!0))}function f(t){var e,n=this;if(!n.d){n.d=!0,n=n.r||n;try{(e=u(t))?P.call(_,function(){var r={r:n,d:!1};try{e.call(t,g(f,r,1),g(l,r,1))}catch(o){l.call(r,o)}}):(n.v=t,n.s=1,s(n,!1))}catch(r){l.call({r:n,d:!1},r)}}}var d,h=n(6),p=n(41),_=n(10),g=n(25),v=n(49),m=n(15),y=n(12),b=n(29),x=n(26),w=n(122),E=n(123),S=n(47).set,A=n(45),C=n(108),O=n(37)("species"),k=n(19)("record"),M="Promise",T=_.process,N="process"==v(T),P=T&&T.nextTick||n(124).set,j=_[M],L=function(){function t(e){var n=new j(e);return S(n,t.prototype),n}var e=!1;try{if(e=j&&j.resolve&&r(),S(t,j),t.prototype=h.create(j.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(e=!1),e&&n(7)){var o=!1;j.resolve(h.setDesc({},"then",{get:function(){o=!0}})),e=o}}catch(i){e=!1}return e}();L||(j=function(t){x(t);var e={p:w(this,j,M),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};this[k]=e;try{t(g(f,e,1),g(l,e,1))}catch(n){l.call(e,n)}},n(125)(j.prototype,{then:function(t,e){var n=b(b(this).constructor)[O],r={ok:"function"==typeof t?t:!0,fail:"function"==typeof e?e:!1},o=r.P=new(void 0!=n?n:j)(function(t,e){r.res=x(t),r.rej=x(e)}),i=this[k];return i.c.push(r),i.a&&i.a.push(r),i.s&&s(i,!1),o},"catch":function(t){return this.then(void 0,t)}})),m(m.G+m.W+m.F*!L,{Promise:j}),n(36)(j,M),C(j),C(d=n(16)[M]),m(m.S+m.F*!L,M,{reject:function(t){return new this(function(e,n){n(t)})}}),m(m.S+m.F*(!L||r(!0)),M,{resolve:function(t){return o(t)&&i(t.constructor,this)?t:new this(function(e){e(t)})}}),m(m.S+m.F*!(L&&n(102)(function(t){j.all(t)["catch"](function(){})})),M,{all:function(t){var e=a(this),n=[];return new e(function(r,o){E(t,!1,n.push,n);var i=n.length,a=Array(i);i?h.each.call(n,function(t,n){e.resolve(t).then(function(t){a[n]=t,--i||r(a)},o)}):r(a)})},race:function(t){var e=a(this);return new e(function(n,r){E(t,!1,function(t){e.resolve(t).then(n,r)})})}})},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError(n+": use the 'new' operator!");return t}},function(t,e,n){var r=n(25),o=n(99),i=n(100),a=n(29),u=n(27),s=n(101);t.exports=function(t,e,n,c){var l,f,d,h=s(t),p=r(n,c,e?2:1),_=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(i(h))for(l=u(t.length);l>_;_++)e?p(a(f=t[_])[0],f[1]):p(t[_]);else for(d=h.call(t);!(f=d.next()).done;)o(d,p,f.value,e);
}},function(t,e,n){"use strict";function r(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}}function o(t){r.call(t.data)}var i,a,u,s=n(25),c=n(20),l=n(9),f=n(11),d=n(10),h=d.process,p=d.setImmediate,_=d.clearImmediate,g=d.MessageChannel,v=0,m={},y="onreadystatechange";p&&_||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){c("function"==typeof t?t:Function(t),e)},i(v),v},_=function(t){delete m[t]},"process"==n(14)(h)?i=function(t){h.nextTick(s(r,t,1))}:d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(t){d.postMessage(t,"*")},d.addEventListener("message",o,!1)):g?(a=new g,u=a.port2,a.port1.onmessage=o,i=s(u.postMessage,u,1)):i=y in f("script")?function(t){l.appendChild(f("script"))[y]=function(){l.removeChild(this),r.call(t)}}:function(t){setTimeout(s(r,t,1),0)}),t.exports={set:p,clear:_}},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n in e)r(t,n,e[n]);return t}},function(t,e,n){"use strict";var r=n(127);n(128)("Map",function(t){return function(){return t(this,arguments[0])}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";function r(t,e){if(!_(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!p(t,h)){if(!g(t))return"F";if(!e)return"E";a(t,h,++y)}return"O"+t[h]}function o(t,e){var n,o=r(e);if("F"!==o)return t._i[o];for(n=t._f;n;n=n.n)if(n.k==e)return n}var i=n(6),a=n(17),u=n(25),s=n(108),c=n(122),l=n(24),f=n(123),d=n(106),h=n(19)("id"),p=n(13),_=n(12),g=Object.isExtensible||_,v=n(7),m=v?"_s":"size",y=0;t.exports={getConstructor:function(t,e,r,a){var s=t(function(t,n){c(t,s,e),t._i=i.create(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=n&&f(n,r,t[a],t)});return n(125)(s.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var e=this,n=o(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[m]--}return!!n},forEach:function(t){for(var e,n=u(t,arguments[1],3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!o(this,t)}}),v&&i.setDesc(s.prototype,"size",{get:function(){return l(this[m])}}),s},def:function(t,e,n){var i,a,u=o(t,e);return u?u.v=n:(t._l=u={i:a=r(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=u),i&&(i.n=u),t[m]++,"F"!==a&&(t._i[a]=u)),t},getEntry:o,setStrong:function(t,e,r){n(87)(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?d(0,n.k):"values"==e?d(0,n.v):d(0,[n.k,n.v]):(t._t=void 0,d(1))},r?"entries":"values",!r,!0),s(t),s(n(16)[e])}}},function(t,e,n){"use strict";var r=n(10),o=n(15),i=n(90),a=n(123),u=n(122);t.exports=function(t,e,s,c,l,f){function d(t){var e=g[t];n(18)(g,t,"delete"==t?function(t){return e.call(this,0===t?0:t)}:"has"==t?function(t){return e.call(this,0===t?0:t)}:"get"==t?function(t){return e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})}var h=r[t],p=h,_=l?"set":"add",g=p&&p.prototype,v={};if("function"==typeof p&&(f||!i&&g.forEach&&g.entries)){var m,y=new p,b=y[_](f?{}:-0,1);n(102)(function(t){new p(t)})||(p=e(function(e,n){u(e,p,t);var r=new h;return void 0!=n&&a(n,l,r[_],r),r}),p.prototype=g,g.constructor=p),f||y.forEach(function(t,e){m=1/e===-(1/0)}),m&&(d("delete"),d("has"),l&&d("get")),(m||b!==y)&&d(_),f&&g.clear&&delete g.clear}else p=c.getConstructor(e,t,l,_),n(125)(p.prototype,s);return n(36)(p,t),v[t]=p,o(o.G+o.W+o.F*(p!=h),v),f||c.setStrong(p,t,l),p}},function(t,e,n){"use strict";var r=n(127);n(128)("Set",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r=n(6),o=n(131),i=n(12),a=n(13),u=o.frozenStore,s=o.WEAK,c=Object.isExtensible||i,l={},f=n(128)("WeakMap",function(t){return function(){return t(this,arguments[0])}},{get:function(t){if(i(t)){if(!c(t))return u(this).get(t);if(a(t,s))return t[s][this._i]}},set:function(t,e){return o.def(this,t,e)}},o,!0,!0);7!=(new f).set((Object.freeze||Object)(l),7).get(l)&&r.each.call(["delete","has","get","set"],function(t){var e=f.prototype,r=e[t];n(18)(e,t,function(e,n){if(i(e)&&!c(e)){var o=u(this)[t](e,n);return"set"==t?this:o}return r.call(this,e,n)})})},function(t,e,n){"use strict";function r(t){return t._l||(t._l=new o)}function o(){this.a=[]}function i(t,e){return _(t.a,function(t){return t[0]===e})}var a=n(17),u=n(29),s=n(122),c=n(123),l=n(21),f=n(19)("weak"),d=n(12),h=n(13),p=Object.isExtensible||d,_=l(5),g=l(6),v=0;o.prototype={get:function(t){var e=i(this,t);return e?e[1]:void 0},has:function(t){return!!i(this,t)},set:function(t,e){var n=i(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=g(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,o,i){var a=t(function(t,n){s(t,a,e),t._i=v++,t._l=void 0,void 0!=n&&c(n,o,t[i],t)});return n(125)(a.prototype,{"delete":function(t){return d(t)?p(t)?h(t,f)&&h(t[f],this._i)&&delete t[f][this._i]:r(this)["delete"](t):!1},has:function(t){return d(t)?p(t)?h(t,f)&&h(t[f],this._i):r(this).has(t):!1}}),a},def:function(t,e,n){return p(u(e))?(h(e,f)||a(e,f,{}),e[f][t._i]=n):r(t).set(e,n),t},frozenStore:r,WEAK:f}},function(t,e,n){"use strict";var r=n(131);n(128)("WeakSet",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){var r=n(15),o=Function.apply;r(r.S,"Reflect",{apply:function(t,e,n){return o.call(t,e,n)}})},function(t,e,n){var r=n(6),o=n(15),i=n(26),a=n(12),u=Function.apply,s=Function.bind||n(16).Function.prototype.bind;o(o.S,"Reflect",{construct:function(t,e){if(arguments.length<3)return new(s.apply(t,[null].concat(e)));var n=i(arguments[2]).prototype,o=r.create(a(n)?n:Object.prototype),c=u.call(t,o,e);return a(c)?c:o}})},function(t,e,n){var r=n(6),o=n(15),i=n(29);o(o.S+o.F*n(33)(function(){Reflect.defineProperty(r.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t);try{return r.setDesc(t,e,n),!0}catch(o){return!1}}})},function(t,e,n){var r=n(15),o=n(6).getDesc,i=n(29);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return n&&!n.configurable?!1:delete t[e]}})},function(t,e,n){function r(t){this._t=i(t),this._k=void 0,this._i=0}var o=n(15),i=n(29);n(89)(r,"Object",function(){var t,e=this,n=e._k;if(void 0==n){e._k=n=[];for(t in e._t)n.push(t)}do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),o(o.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,n){function r(t,e){var n,a,c=arguments.length<3?t:arguments[2];return s(t)===c?t[e]:(n=o.getDesc(t,e))?i(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(a=o.getProto(t))?r(a,e,c):void 0}var o=n(6),i=n(13),a=n(15),u=n(12),s=n(29);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(6),o=n(15),i=n(29);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.getDesc(i(t),e)}})},function(t,e,n){var r=n(15),o=n(6).getProto,i=n(29);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(15);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(15),o=n(29),i=Object.isExtensible||n(12);r(r.S,"Reflect",{isExtensible:function(t){return i(o(t))}})},function(t,e,n){var r=n(15);r(r.S,"Reflect",{ownKeys:n(144)})},function(t,e,n){var r=n(6),o=n(29);t.exports=function(t){var e=r.getNames(o(t)),n=r.getSymbols;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(15),o=n(29),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(e){return!1}}})},function(t,e,n){function r(t,e,n){var a,l,f=arguments.length<4?t:arguments[3],d=o.getDesc(s(t),e);if(!d){if(c(l=o.getProto(t)))return r(l,e,n,f);d=u(0)}return i(d,"value")?d.writable!==!1&&c(f)?(a=o.getDesc(f,e)||u(0),a.value=n,o.setDesc(f,e,a),!0):!1:void 0===d.set?!1:(d.set.call(f,n),!0)}var o=n(6),i=n(13),a=n(15),u=n(8),s=n(29),c=n(12);a(a.S,"Reflect",{set:r})},function(t,e,n){var r=n(15),o=n(47);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(n){return!1}}})},function(t,e,n){"use strict";var r=n(15),o=n(31)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments[1])}}),n(105)("includes")},function(t,e,n){"use strict";var r=n(15),o=n(86)(!0);r(r.P,"String",{at:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(15),o=n(151);r(r.P,"String",{lpad:function(t){return o(this,t,arguments[1],!0)}})},function(t,e,n){var r=n(28),o=n(96),i=n(24);t.exports=function(t,e,n,a){var u=String(i(t));if(void 0===e)return u;var s=r(e),c=s-u.length;if(0>c||c===1/0)throw new RangeError("Cannot satisfy string length "+e+" for string: "+u);var l=void 0===n?" ":String(n),f=o.call(l,Math.ceil(c/l.length));return f.length>c&&(f=a?f.slice(f.length-c):f.slice(0,c)),a?f.concat(u):u.concat(f)}},function(t,e,n){"use strict";var r=n(15),o=n(151);r(r.P,"String",{rpad:function(t){return o(this,t,arguments[1],!1)}})},function(t,e,n){var r=n(15),o=n(32)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e,n){var r=n(6),o=n(15),i=n(144),a=n(22),u=n(8);o(o.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,o=a(t),s=r.setDesc,c=r.getDesc,l=i(o),f={},d=0;l.length>d;)n=c(o,e=l[d++]),e in f?s(f,e,u(0,n)):f[e]=n;return f}})},function(t,e,n){var r=n(15),o=n(156)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(6),o=n(22);t.exports=function(t){return function(e){var n,i=o(e),a=r.getKeys(i),u=a.length,s=0,c=Array(u);if(t)for(;u>s;)c[s]=[n=a[s++],i[n]];else for(;u>s;)c[s]=i[a[s++]];return c}}},function(t,e,n){var r=n(15),o=n(156)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){var r=n(15);r(r.P,"Map",{toJSON:n(159)("Map")})},function(t,e,n){var r=n(123),o=n(49);t.exports=function(t){return function(){if(o(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return r(this,!1,e.push,e),e}}},function(t,e,n){var r=n(15);r(r.P,"Set",{toJSON:n(159)("Set")})},function(t,e,n){function r(t,e){o.each.call(t.split(","),function(t){void 0==e&&t in a?u[t]=a[t]:t in[]&&(u[t]=n(25)(Function.call,[][t],e))})}var o=n(6),i=n(15),a=n(16).Array||Array,u={};r("pop,reverse,shift,keys,values,entries",1),r("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),r("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),i(i.S,"Array",u)},function(t,e,n){function r(t){return c?function(e,n){return t(a(u,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t}var o=n(10),i=n(15),a=n(20),u=n(163),s=o.navigator,c=!!s&&/MSIE .\./.test(s.userAgent);i(i.G+i.B+i.F*c,{setTimeout:r(o.setTimeout),setInterval:r(o.setInterval)})},function(t,e,n){"use strict";var r=n(164),o=n(20),i=n(26);t.exports=function(){for(var t=i(this),e=arguments.length,n=Array(e),a=0,u=r._,s=!1;e>a;)(n[a]=arguments[a++])===u&&(s=!0);return function(){var r,i=this,a=arguments.length,c=0,l=0;if(!s&&!a)return o(t,n,i);if(r=n.slice(),s)for(;e>c;c++)r[c]===u&&(r[c]=arguments[l++]);for(;a>l;)r.push(arguments[l++]);return o(t,r,i)}}},function(t,e,n){t.exports=n(10)},function(t,e,n){var r=n(15),o=n(124);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){n(104);var r=n(10),o=n(17),i=n(88),a=n(37)("iterator"),u=r.NodeList,s=r.HTMLCollection,c=u&&u.prototype,l=s&&s.prototype,f=i.NodeList=i.HTMLCollection=i.Array;!u||a in c||o(c,a,f),!s||a in l||o(l,a,f)},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=Object.create((e||i).prototype);return o._invoke=f(t,n||null,new p(r||[])),o}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function i(){}function a(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function l(t){function e(e,n){var r=t[e](n),o=r.value;return o instanceof c?Promise.resolve(o.arg).then(i,a):Promise.resolve(o).then(function(t){return r.value=t,r})}function r(t,n){var r=o?o.then(function(){return e(t,n)}):new Promise(function(r){r(e(t,n))});return o=r["catch"](function(t){}),r}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var o,i=e.bind(t,"next"),a=e.bind(t,"throw");e.bind(t,"return");this._invoke=r}function f(t,e,n){var r=w;return function(i,a){if(r===S)throw new Error("Generator is already running");if(r===A){if("throw"===i)throw a;return g()}for(;;){var u=n.delegate;if(u){if("return"===i||"throw"===i&&u.iterator[i]===v){n.delegate=null;var s=u.iterator["return"];if(s){var c=o(s,u.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(u.iterator[i],u.iterator,a);if("throw"===c.type){n.delegate=null,i="throw",a=c.arg;continue}i="next",a=v;var l=c.arg;if(!l.done)return r=E,l;n[u.resultName]=l.value,n.next=u.nextLoc,n.delegate=null}if("next"===i)r===E?n.sent=a:n.sent=v;else if("throw"===i){if(r===w)throw r=A,a;n.dispatchException(a)&&(i="next",a=v)}else"return"===i&&n.abrupt("return",a);r=S;var c=o(t,e,n);if("normal"===c.type){r=n.done?A:E;var l={value:c.arg,done:n.done};if(c.arg!==C)return l;n.delegate&&"next"===i&&(a=v)}else"throw"===c.type&&(r=A,i="throw",a=c.arg)}}}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function _(t){if(t){var e=t[y];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function o(){for(;++n<t.length;)if(m.call(t,n))return o.value=t[n],o.done=!1,o;return o.value=v,o.done=!0,o};return r.next=r}}return{next:g}}function g(){return{value:v,done:!0}}var v,m=Object.prototype.hasOwnProperty,y="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof t,x=e.regeneratorRuntime;if(x)return void(b&&(t.exports=x));x=e.regeneratorRuntime=b?t.exports:{},x.wrap=r;var w="suspendedStart",E="suspendedYield",S="executing",A="completed",C={},O=u.prototype=i.prototype;a.prototype=O.constructor=u,u.constructor=a,a.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return e?e===a||"GeneratorFunction"===(e.displayName||e.name):!1},x.mark=function(t){return t.__proto__=u,t.prototype=Object.create(O),t},x.awrap=function(t){return new c(t)},s(l.prototype),x.async=function(t,e,n,o){var i=new l(r(t,e,n,o));return x.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},s(O),O[y]=function(){return this},O.toString=function(){return"[object Generator]"},x.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},x.values=_,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),u=m.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),C},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;h(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(168))},function(t,e){function n(){c=!1,a.length?s=a.concat(s):l=-1,s.length&&r()}function r(){if(!c){var t=setTimeout(n);c=!0;for(var e=s.length;e;){for(a=s,s=[];++l<e;)a[l].run();l=-1,e=s.length}a=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var a,u=t.exports={},s=[],c=!1,l=-1;u.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new o(t,e)),1!==s.length||c||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=i,u.addListener=i,u.once=i,u.off=i,u.removeListener=i,u.removeAllListeners=i,u.emit=i,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(t,e,n){"use strict";e.__esModule=!0,e["default"]={color:{Color:n(170),math:n(174),interpret:n(171)},controllers:{Controller:n(175),BooleanController:n(176),OptionController:n(178),StringController:n(179),NumberController:n(180),NumberControllerBox:n(181),NumberControllerSlider:n(182),FunctionController:n(188),ColorController:n(189)},dom:{dom:n(177)},gui:{GUI:n(190)},GUI:n(190)},t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){Object.defineProperty(t,e,{get:function(){return"RGB"===this.__state.space?this.__state[e]:(_.recalculateRGB(this,e,n),this.__state[e])},set:function(t){"RGB"!==this.__state.space&&(_.recalculateRGB(this,e,n),this.__state.space="RGB"),this.__state[e]=t}})}function a(t,e){Object.defineProperty(t,e,{get:function(){return"HSV"===this.__state.space?this.__state[e]:(_.recalculateHSV(this),this.__state[e])},set:function(t){"HSV"!==this.__state.space&&(_.recalculateHSV(this),this.__state.space="HSV"),this.__state[e]=t}})}e.__esModule=!0;var u=n(171),s=r(u),c=n(174),l=r(c),f=n(172),d=r(f),h=n(173),p=r(h),_=function(){function t(){if(o(this,t),this.__state=s["default"].apply(this,arguments),this.__state===!1)throw new Error("Failed to interpret color arguments");this.__state.a=this.__state.a||1}return t.prototype.toString=function(){return d["default"](this)},t.prototype.toOriginal=function(){return this.__state.conversion.write(this)},t}();_.recalculateRGB=function(t,e,n){if("HEX"===t.__state.space)t.__state[e]=l["default"].component_from_hex(t.__state.hex,n);else{if("HSV"!==t.__state.space)throw new Error("Corrupted color state");p["default"].extend(t.__state,l["default"].hsv_to_rgb(t.__state.h,t.__state.s,t.__state.v))}},_.recalculateHSV=function(t){var e=l["default"].rgb_to_hsv(t.r,t.g,t.b);p["default"].extend(t.__state,{s:e.s,v:e.v}),p["default"].isNaN(e.h)?p["default"].isUndefined(t.__state.h)&&(t.__state.h=0):t.__state.h=e.h},_.COMPONENTS=["r","g","b","h","s","v","hex","a"],i(_.prototype,"r",2),i(_.prototype,"g",1),i(_.prototype,"b",0),a(_.prototype,"h"),a(_.prototype,"s"),a(_.prototype,"v"),Object.defineProperty(_.prototype,"a",{get:function(){return this.__state.a},set:function(t){this.__state.a=t}}),Object.defineProperty(_.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=l["default"].rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(t){this.__state.space="HEX",this.__state.hex=t}}),e["default"]=_,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(172),i=r(o),a=n(173),u=r(a),s=[{litmus:u["default"].isString,conversions:{THREE_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);return null===e?!1:{space:"HEX",hex:parseInt("0x"+e[1].toString()+e[1].toString()+e[2].toString()+e[2].toString()+e[3].toString()+e[3].toString(),0)}},write:i["default"]},SIX_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9]{6})$/i);return null===e?!1:{space:"HEX",hex:parseInt("0x"+e[1].toString(),0)}},write:i["default"]},CSS_RGB:{read:function(t){var e=t.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null===e?!1:{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3])}},write:i["default"]},CSS_RGBA:{read:function(t){var e=t.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\,\s*(.+)\s*\)/);return null===e?!1:{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3]),a:parseFloat(e[4])}},write:i["default"]}}},{litmus:u["default"].isNumber,conversions:{HEX:{read:function(t){return{space:"HEX",hex:t,conversionName:"HEX"}},write:function(t){return t.hex}}}},{litmus:u["default"].isArray,conversions:{RGB_ARRAY:{read:function(t){return 3!==t.length?!1:{space:"RGB",r:t[0],g:t[1],b:t[2]}},write:function(t){return[t.r,t.g,t.b]}},RGBA_ARRAY:{read:function(t){return 4!==t.length?!1:{space:"RGB",r:t[0],g:t[1],b:t[2],a:t[3]}},write:function(t){return[t.r,t.g,t.b,t.a]}}}},{litmus:u["default"].isObject,conversions:{RGBA_OBJ:{read:function(t){return u["default"].isNumber(t.r)&&u["default"].isNumber(t.g)&&u["default"].isNumber(t.b)&&u["default"].isNumber(t.a)?{space:"RGB",r:t.r,g:t.g,b:t.b,a:t.a}:!1},write:function(t){return{r:t.r,g:t.g,b:t.b,a:t.a}}},RGB_OBJ:{read:function(t){return u["default"].isNumber(t.r)&&u["default"].isNumber(t.g)&&u["default"].isNumber(t.b)?{space:"RGB",r:t.r,g:t.g,b:t.b}:!1},write:function(t){return{r:t.r,g:t.g,b:t.b}}},HSVA_OBJ:{read:function(t){return u["default"].isNumber(t.h)&&u["default"].isNumber(t.s)&&u["default"].isNumber(t.v)&&u["default"].isNumber(t.a)?{space:"HSV",h:t.h,s:t.s,v:t.v,a:t.a}:!1},write:function(t){return{h:t.h,s:t.s,v:t.v,a:t.a}}},HSV_OBJ:{read:function(t){return u["default"].isNumber(t.h)&&u["default"].isNumber(t.s)&&u["default"].isNumber(t.v)?{space:"HSV",h:t.h,s:t.s,v:t.v}:!1},write:function(t){return{h:t.h,s:t.s,v:t.v}}}}}],c=void 0,l=void 0,f=function(){l=!1;var t=arguments.length>1?u["default"].toArray(arguments):arguments[0];return u["default"].each(s,function(e){return e.litmus(t)?(u["default"].each(e.conversions,function(e,n){return c=e.read(t),l===!1&&c!==!1?(l=c,c.conversionName=n,c.conversion=e,u["default"].BREAK):void 0}),u["default"].BREAK):void 0}),l};e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(173),i=r(o);e["default"]=function(t){if(1===t.a||i["default"].isUndefined(t.a)){for(var e=t.hex.toString(16);e.length<6;)e="0"+e;return"#"+e}return"rgba("+Math.round(t.r)+","+Math.round(t.g)+","+Math.round(t.b)+","+t.a+")"},t.exports=e["default"]},function(t,e){"use strict";e.__esModule=!0;var n=Array.prototype.forEach,r=Array.prototype.slice,o={BREAK:{},extend:function(t){return this.each(r.call(arguments,1),function(e){for(var n in e)this.isUndefined(e[n])||(t[n]=e[n])},this),t},defaults:function(t){return this.each(r.call(arguments,1),function(e){for(var n in e)this.isUndefined(t[n])&&(t[n]=e[n])},this),t},compose:function(){var t=r.call(arguments);return function(){for(var e=r.call(arguments),n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},each:function(t,e,r){if(t)if(n&&t.forEach&&t.forEach===n)t.forEach(e,r);else if(t.length===t.length+0){var o=void 0,i=void 0;for(o=0,i=t.length;i>o;o++)if(o in t&&e.call(r,t[o],o)===this.BREAK)return}else for(var o in t)if(e.call(r,t[o],o)===this.BREAK)return},defer:function(t){setTimeout(t,0)},toArray:function(t){return t.toArray?t.toArray():r.call(t)},isUndefined:function(t){return void 0===t},isNull:function(t){return null===t},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return isNaN(t)}),isArray:Array.isArray||function(t){return t.constructor===Array},isObject:function(t){return t===Object(t)},isNumber:function(t){return t===t+0},isString:function(t){return t===t+""},isBoolean:function(t){return t===!1||t===!0},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)}};e["default"]=o,t.exports=e["default"]},function(t,e){"use strict";e.__esModule=!0;var n=void 0,r={hsv_to_rgb:function(t,e,n){var r=Math.floor(t/60)%6,o=t/60-Math.floor(t/60),i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=[[n,u,i],[a,n,i],[i,n,u],[i,a,n],[u,i,n],[n,i,a]][r];return{r:255*s[0],g:255*s[1],b:255*s[2]}},rgb_to_hsv:function(t,e,n){var r=Math.min(t,e,n),o=Math.max(t,e,n),i=o-r,a=void 0,u=void 0;return 0===o?{h:NaN,s:0,v:0}:(u=i/o,a=t===o?(e-n)/i:e===o?2+(n-t)/i:4+(t-e)/i,a/=6,0>a&&(a+=1),{h:360*a,s:u,v:o/255})},rgb_to_hex:function(t,e,n){var r=this.hex_with_component(0,2,t);return r=this.hex_with_component(r,1,e),r=this.hex_with_component(r,0,n)},component_from_hex:function(t,e){return t>>8*e&255},hex_with_component:function(t,e,r){return r<<(n=8*e)|t&~(255<<n)}};e["default"]=r,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(e,r){n(this,t),this.initialValue=e[r],this.domElement=document.createElement("div"),this.object=e,this.property=r,this.__onChange=void 0,this.__onFinishChange=void 0}return t.prototype.onChange=function(t){return this.__onChange=t,this},t.prototype.onFinishChange=function(t){return this.__onFinishChange=t,this},t.prototype.setValue=function(t){return this.object[this.property]=t,this.__onChange&&this.__onChange.call(this,t),this.updateDisplay(),this},t.prototype.getValue=function(){return this.object[this.property]},t.prototype.updateDisplay=function(){return this},t.prototype.isModified=function(){return this.initialValue!==this.getValue()},t}();e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(175),u=r(a),s=n(177),c=r(s),l=function(t){function e(n,r){function i(){a.setValue(!a.__prev)}o(this,e),t.call(this,n,r);var a=this;this.__prev=this.getValue(),this.__checkbox=document.createElement("input"),this.__checkbox.setAttribute("type","checkbox"),c["default"].bind(this.__checkbox,"change",i,!1),this.domElement.appendChild(this.__checkbox),this.updateDisplay()}return i(e,t),e.prototype.setValue=function(e){var n=t.prototype.setValue.call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),this.__prev=this.getValue(),n},e.prototype.updateDisplay=function(){return this.getValue()===!0?(this.__checkbox.setAttribute("checked","checked"),this.__checkbox.checked=!0):this.__checkbox.checked=!1,t.prototype.updateDisplay.call(this)},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if("0"===t||a["default"].isUndefined(t))return 0;var e=t.match(c);return a["default"].isNull(e)?0:parseFloat(e[1])}e.__esModule=!0;var i=n(173),a=r(i),u={HTMLEvents:["change"],MouseEvents:["click","mousemove","mousedown","mouseup","mouseover"],KeyboardEvents:["keydown"]},s={};a["default"].each(u,function(t,e){a["default"].each(t,function(t){s[t]=e})});var c=/(\d+(\.\d+)?)px/,l={makeSelectable:function(t,e){void 0!==t&&void 0!==t.style&&(t.onselectstart=e?function(){return!1}:function(){},t.style.MozUserSelect=e?"auto":"none",t.style.KhtmlUserSelect=e?"auto":"none",t.unselectable=e?"on":"off")},makeFullscreen:function(t,e,n){var r=n,o=e;a["default"].isUndefined(o)&&(o=!0),a["default"].isUndefined(r)&&(r=!0),t.style.position="absolute",o&&(t.style.left=0,t.style.right=0),r&&(t.style.top=0,t.style.bottom=0)},fakeEvent:function(t,e,n,r){var o=n||{},i=s[e];if(!i)throw new Error("Event type "+e+" not supported.");var u=document.createEvent(i);switch(i){case"MouseEvents":var c=o.x||o.clientX||0,l=o.y||o.clientY||0;u.initMouseEvent(e,o.bubbles||!1,o.cancelable||!0,window,o.clickCount||1,0,0,c,l,!1,!1,!1,!1,0,null);break;case"KeyboardEvents":var f=u.initKeyboardEvent||u.initKeyEvent;a["default"].defaults(o,{cancelable:!0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:void 0,charCode:void 0}),f(e,o.bubbles||!1,o.cancelable,window,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.keyCode,o.charCode);break;default:u.initEvent(e,o.bubbles||!1,o.cancelable||!0)}a["default"].defaults(u,r),t.dispatchEvent(u)},bind:function(t,e,n,r){var o=r||!1;return t.addEventListener?t.addEventListener(e,n,o):t.attachEvent&&t.attachEvent("on"+e,n),l},unbind:function(t,e,n,r){var o=r||!1;return t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent&&t.detachEvent("on"+e,n),l},addClass:function(t,e){if(void 0===t.className)t.className=e;else if(t.className!==e){var n=t.className.split(/ +/);-1===n.indexOf(e)&&(n.push(e),t.className=n.join(" ").replace(/^\s+/,"").replace(/\s+$/,""))}return l},removeClass:function(t,e){if(e)if(t.className===e)t.removeAttribute("class");else{var n=t.className.split(/ +/),r=n.indexOf(e);-1!==r&&(n.splice(r,1),t.className=n.join(" "))}else t.className=void 0;return l},hasClass:function(t,e){return new RegExp("(?:^|\\s+)"+e+"(?:\\s+|$)").test(t.className)||!1},getWidth:function(t){var e=getComputedStyle(t);return o(e["border-left-width"])+o(e["border-right-width"])+o(e["padding-left"])+o(e["padding-right"])+o(e.width)},getHeight:function(t){var e=getComputedStyle(t);return o(e["border-top-width"])+o(e["border-bottom-width"])+o(e["padding-top"])+o(e["padding-bottom"])+o(e.height)},getOffset:function(t){var e=t,n={left:0,top:0};if(e.offsetParent)do n.left+=e.offsetLeft,n.top+=e.offsetTop,e=e.offsetParent;while(e);return n},isActive:function(t){return t===document.activeElement&&(t.type||t.href)}};e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(175),u=r(a),s=n(177),c=r(s),l=n(173),f=r(l),d=function(t){
function e(n,r,i){o(this,e),t.call(this,n,r);var a=i,u=this;this.__select=document.createElement("select"),f["default"].isArray(a)&&!function(){var t={};f["default"].each(a,function(e){t[e]=e}),a=t}(),f["default"].each(a,function(t,e){var n=document.createElement("option");n.innerHTML=e,n.setAttribute("value",t),u.__select.appendChild(n)}),this.updateDisplay(),c["default"].bind(this.__select,"change",function(){var t=this.options[this.selectedIndex].value;u.setValue(t)}),this.domElement.appendChild(this.__select)}return i(e,t),e.prototype.setValue=function(e){var n=t.prototype.setValue.call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),n},e.prototype.updateDisplay=function(){return this.__select.value=this.getValue(),t.prototype.updateDisplay.call(this)},e}(u["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(175),u=r(a),s=n(177),c=r(s),l=function(t){function e(n,r){function i(){u.setValue(u.__input.value)}function a(){u.__onFinishChange&&u.__onFinishChange.call(u,u.getValue())}o(this,e),t.call(this,n,r);var u=this;this.__input=document.createElement("input"),this.__input.setAttribute("type","text"),c["default"].bind(this.__input,"keyup",i),c["default"].bind(this.__input,"change",i),c["default"].bind(this.__input,"blur",a),c["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&this.blur()}),this.updateDisplay(),this.domElement.appendChild(this.__input)}return i(e,t),e.prototype.updateDisplay=function(){return c["default"].isActive(this.__input)||(this.__input.value=this.getValue()),t.prototype.updateDisplay.call(this)},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.toString();return e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0}e.__esModule=!0;var u=n(175),s=r(u),c=n(173),l=r(c),f=function(t){function e(n,r,i){o(this,e),t.call(this,n,r);var u=i||{};this.__min=u.min,this.__max=u.max,this.__step=u.step,l["default"].isUndefined(this.__step)?0===this.initialValue?this.__impliedStep=1:this.__impliedStep=Math.pow(10,Math.floor(Math.log(Math.abs(this.initialValue))/Math.LN10))/10:this.__impliedStep=this.__step,this.__precision=a(this.__impliedStep)}return i(e,t),e.prototype.setValue=function(e){var n=e;return void 0!==this.__min&&n<this.__min?n=this.__min:void 0!==this.__max&&n>this.__max&&(n=this.__max),void 0!==this.__step&&n%this.__step!==0&&(n=Math.round(n/this.__step)*this.__step),t.prototype.setValue.call(this,n)},e.prototype.min=function(t){return this.__min=t,this},e.prototype.max=function(t){return this.__max=t,this},e.prototype.step=function(t){return this.__step=t,this.__impliedStep=t,this.__precision=a(t),this},e}(s["default"]);e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}e.__esModule=!0;var u=n(180),s=r(u),c=n(177),l=r(c),f=n(173),d=r(f),h=function(t){function e(n,r,i){function a(){var t=parseFloat(h.__input.value);d["default"].isNaN(t)||h.setValue(t)}function u(){a(),h.__onFinishChange&&h.__onFinishChange.call(h,h.getValue())}function s(t){var e=p-t.clientY;h.setValue(h.getValue()+e*h.__impliedStep),p=t.clientY}function c(){l["default"].unbind(window,"mousemove",s),l["default"].unbind(window,"mouseup",c)}function f(t){l["default"].bind(window,"mousemove",s),l["default"].bind(window,"mouseup",c),p=t.clientY}o(this,e),t.call(this,n,r,i),this.__truncationSuspended=!1;var h=this,p=void 0;this.__input=document.createElement("input"),this.__input.setAttribute("type","text"),l["default"].bind(this.__input,"change",a),l["default"].bind(this.__input,"blur",u),l["default"].bind(this.__input,"mousedown",f),l["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&(h.__truncationSuspended=!0,this.blur(),h.__truncationSuspended=!1)}),this.updateDisplay(),this.domElement.appendChild(this.__input)}return i(e,t),e.prototype.updateDisplay=function(){return this.__input.value=this.__truncationSuspended?this.getValue():a(this.getValue(),this.__precision),t.prototype.updateDisplay.call(this)},e}(s["default"]);e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,n,r,o){return r+(o-r)*((t-e)/(n-e))}e.__esModule=!0;var u=n(180),s=r(u),c=n(177),l=r(c),f=n(183),d=r(f),h=n(184),p=r(h),_=function(t){function e(n,r,i,u,s){function c(t){l["default"].bind(window,"mousemove",f),l["default"].bind(window,"mouseup",d),f(t)}function f(t){t.preventDefault();var e=l["default"].getOffset(h.__background),n=l["default"].getWidth(h.__background);return h.setValue(a(t.clientX,e.left,e.left+n,h.__min,h.__max)),!1}function d(){l["default"].unbind(window,"mousemove",f),l["default"].unbind(window,"mouseup",d),h.__onFinishChange&&h.__onFinishChange.call(h,h.getValue())}o(this,e),t.call(this,n,r,{min:i,max:u,step:s});var h=this;this.__background=document.createElement("div"),this.__foreground=document.createElement("div"),l["default"].bind(this.__background,"mousedown",c),l["default"].addClass(this.__background,"slider"),l["default"].addClass(this.__foreground,"slider-fg"),this.updateDisplay(),this.__background.appendChild(this.__foreground),this.domElement.appendChild(this.__background)}return i(e,t),e.prototype.updateDisplay=function(){var e=(this.getValue()-this.__min)/(this.__max-this.__min);return this.__foreground.style.width=100*e+"%",t.prototype.updateDisplay.call(this)},e}(s["default"]);_.useDefaultStyles=function(){d["default"].inject(p["default"])},e["default"]=_,t.exports=e["default"]},function(t,e){"use strict";t.exports={load:function(t,e){var n=e||document,r=n.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,n.getElementsByTagName("head")[0].appendChild(r)},inject:function(t,e){var n=e||document,r=document.createElement("style");r.type="text/css",r.innerHTML=t,n.getElementsByTagName("head")[0].appendChild(r)}}},function(t,e,n){var r=n(185);"string"==typeof r&&(r=[[t.id,r,""]]);n(187)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(186)(),e.push([t.id,".slider{box-shadow:inset 0 2px 4px rgba(0,0,0,.15);height:1em;border-radius:1em;background-color:#eee;padding:0 .5em;overflow:hidden}.slider-fg{padding:1px 0 2px;background-color:#aaa;height:1em;margin-left:-.5em;padding-right:.5em;border-radius:1em 0 0 1em}.slider-fg:after{display:inline-block;border-radius:1em;background-color:#fff;border:1px solid #aaa;content:'';float:right;margin-right:-1em;margin-top:-1px;height:.9em;width:.9em}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=f[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(u(r.parts[i],e))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(u(r.parts[i],e));f[r.id]={id:r.id,refs:1,parts:a}}}}function o(t){for(var e=[],n={},r=0;r<t.length;r++){var o=t[r],i=o[0],a=o[1],u=o[2],s=o[3],c={css:a,media:u,sourceMap:s};n[i]?n[i].parts.push(c):e.push(n[i]={id:i,parts:[c]})}return e}function i(){var t=document.createElement("style"),e=p();return t.type="text/css",e.appendChild(t),t}function a(){var t=document.createElement("link"),e=p();return t.rel="stylesheet",e.appendChild(t),t}function u(t,e){var n,r,o;if(e.singleton){var u=g++;n=_||(_=i()),r=s.bind(null,n,u,!1),o=s.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(),r=l.bind(null,n),o=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(),r=c.bind(null,n),o=function(){n.parentNode.removeChild(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function s(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=v(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function c(t,e){var n=e.css,r=e.media;e.sourceMap;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function l(t,e){var n=e.css,r=(e.media,e.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var f={},d=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},h=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=d(function(){return document.head||document.getElementsByTagName("head")[0]}),_=null,g=0;t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=h());var n=o(t);return r(n,e),function(t){for(var i=[],a=0;a<n.length;a++){var u=n[a],s=f[u.id];s.refs--,i.push(s)}if(t){var c=o(t);r(c,e)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete f[s.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(175),u=r(a),s=n(177),c=r(s),l=function(t){function e(n,r,i){o(this,e),t.call(this,n,r);var a=this;this.__button=document.createElement("div"),this.__button.innerHTML=void 0===i?"Fire":i,c["default"].bind(this.__button,"click",function(t){return t.preventDefault(),a.fire(),!1}),c["default"].addClass(this.__button,"button"),this.domElement.appendChild(this.__button)}return i(e,t),e.prototype.fire=function(){this.__onChange&&this.__onChange.call(this),this.getValue().call(this.object),this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue())},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,n,r){t.style.background="",v["default"].each(y,function(o){t.style.cssText+="background: "+o+"linear-gradient("+e+", "+n+" 0%, "+r+" 100%); "})}function u(t){t.style.background="",t.style.cssText+="background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);",t.style.cssText+="background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);"}e.__esModule=!0;var s=n(175),c=r(s),l=n(177),f=r(l),d=n(170),h=r(d),p=n(171),_=r(p),g=n(173),v=r(g),m=function(t){function e(n,r){function i(t){d(t),f["default"].bind(window,"mousemove",d),f["default"].bind(window,"mouseup",s)}function s(){f["default"].unbind(window,"mousemove",d),f["default"].unbind(window,"mouseup",s)}function c(){var t=_["default"](this.value);t!==!1?(g.__color.__state=t,g.setValue(g.__color.toOriginal())):this.value=g.__color.toString()}function l(){f["default"].unbind(window,"mousemove",p),f["default"].unbind(window,"mouseup",l)}function d(t){t.preventDefault();var e=f["default"].getWidth(g.__saturation_field),n=f["default"].getOffset(g.__saturation_field),r=(t.clientX-n.left+document.body.scrollLeft)/e,o=1-(t.clientY-n.top+document.body.scrollTop)/e;return o>1?o=1:0>o&&(o=0),r>1?r=1:0>r&&(r=0),g.__color.v=o,g.__color.s=r,g.setValue(g.__color.toOriginal()),!1}function p(t){t.preventDefault();var e=f["default"].getHeight(g.__hue_field),n=f["default"].getOffset(g.__hue_field),r=1-(t.clientY-n.top+document.body.scrollTop)/e;return r>1?r=1:0>r&&(r=0),g.__color.h=360*r,g.setValue(g.__color.toOriginal()),!1}o(this,e),t.call(this,n,r),this.__color=new h["default"](this.getValue()),this.__temp=new h["default"](0);var g=this;this.domElement=document.createElement("div"),f["default"].makeSelectable(this.domElement,!1),this.__selector=document.createElement("div"),this.__selector.className="selector",this.__saturation_field=document.createElement("div"),this.__saturation_field.className="saturation-field",this.__field_knob=document.createElement("div"),this.__field_knob.className="field-knob",this.__field_knob_border="2px solid ",this.__hue_knob=document.createElement("div"),this.__hue_knob.className="hue-knob",this.__hue_field=document.createElement("div"),this.__hue_field.className="hue-field",this.__input=document.createElement("input"),this.__input.type="text",this.__input_textShadow="0 1px 1px ",f["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&c.call(this)}),f["default"].bind(this.__input,"blur",c),f["default"].bind(this.__selector,"mousedown",function(){f["default"].addClass(this,"drag").bind(window,"mouseup",function(){f["default"].removeClass(g.__selector,"drag")})});var m=document.createElement("div");v["default"].extend(this.__selector.style,{width:"122px",height:"102px",padding:"3px",backgroundColor:"#222",boxShadow:"0px 1px 3px rgba(0,0,0,0.3)"}),v["default"].extend(this.__field_knob.style,{position:"absolute",width:"12px",height:"12px",border:this.__field_knob_border+(this.__color.v<.5?"#fff":"#000"),boxShadow:"0px 1px 3px rgba(0,0,0,0.5)",borderRadius:"12px",zIndex:1}),v["default"].extend(this.__hue_knob.style,{position:"absolute",width:"15px",height:"2px",borderRight:"4px solid #fff",zIndex:1}),v["default"].extend(this.__saturation_field.style,{width:"100px",height:"100px",border:"1px solid #555",marginRight:"3px",display:"inline-block",cursor:"pointer"}),v["default"].extend(m.style,{width:"100%",height:"100%",background:"none"}),a(m,"top","rgba(0,0,0,0)","#000"),v["default"].extend(this.__hue_field.style,{width:"15px",height:"100px",display:"inline-block",border:"1px solid #555",cursor:"ns-resize"}),u(this.__hue_field),v["default"].extend(this.__input.style,{outline:"none",textAlign:"center",color:"#fff",border:0,fontWeight:"bold",textShadow:this.__input_textShadow+"rgba(0,0,0,0.7)"}),f["default"].bind(this.__saturation_field,"mousedown",i),f["default"].bind(this.__field_knob,"mousedown",i),f["default"].bind(this.__hue_field,"mousedown",function(t){p(t),f["default"].bind(window,"mousemove",p),f["default"].bind(window,"mouseup",l)}),this.__saturation_field.appendChild(m),this.__selector.appendChild(this.__field_knob),this.__selector.appendChild(this.__saturation_field),this.__selector.appendChild(this.__hue_field),this.__hue_field.appendChild(this.__hue_knob),this.domElement.appendChild(this.__input),this.domElement.appendChild(this.__selector),this.updateDisplay()}return i(e,t),e.prototype.updateDisplay=function(){var t=_["default"](this.getValue());if(t!==!1){var e=!1;v["default"].each(h["default"].COMPONENTS,function(n){return v["default"].isUndefined(t[n])||v["default"].isUndefined(this.__color.__state[n])||t[n]===this.__color.__state[n]?void 0:(e=!0,{})},this),e&&v["default"].extend(this.__color.__state,t)}v["default"].extend(this.__temp.__state,this.__color.__state),this.__temp.a=1;var n=this.__color.v<.5||this.__color.s>.5?255:0,r=255-n;v["default"].extend(this.__field_knob.style,{marginLeft:100*this.__color.s-7+"px",marginTop:100*(1-this.__color.v)-7+"px",backgroundColor:this.__temp.toString(),border:this.__field_knob_border+"rgb("+n+","+n+","+n+")"}),this.__hue_knob.style.marginTop=100*(1-this.__color.h/360)+"px",this.__temp.s=1,this.__temp.v=1,a(this.__saturation_field,"left","#fff",this.__temp.toString()),v["default"].extend(this.__input.style,{backgroundColor:this.__input.value=this.__color.toString(),color:"rgb("+n+","+n+","+n+")",textShadow:this.__input_textShadow+"rgba("+r+","+r+","+r+",.7)"})},e}(c["default"]),y=["-moz-","-o-","-webkit-","-ms-",""];e["default"]=m,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=document.createElement("li");return e&&r.appendChild(e),n?t.__ul.insertBefore(r,params.before):t.__ul.appendChild(r),t.onResize(),r}function i(t,e){var n=t.__preset_select[t.__preset_select.selectedIndex];e?n.innerHTML=n.value+"*":n.innerHTML=n.value}function a(t,e,n){if(n.__li=e,n.__gui=t,W["default"].extend(n,{options:function(e){return arguments.length>1?(n.remove(),s(t,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[W["default"].toArray(arguments)]})):W["default"].isArray(e)||W["default"].isObject(e)?(n.remove(),s(t,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[e]})):void 0},name:function(t){return n.__li.firstElementChild.firstElementChild.innerHTML=t,n},listen:function(){return n.__gui.listen(n),n},remove:function(){return n.__gui.remove(n),n}}),n instanceof R["default"])!function(){var t=new j["default"](n.object,n.property,{min:n.__min,max:n.__max,step:n.__step});W["default"].each(["updateDisplay","onChange","onFinishChange"],function(e){var r=n[e],o=t[e];n[e]=t[e]=function(){var e=Array.prototype.slice.call(arguments);return r.apply(n,e),o.apply(t,e)}}),z["default"].addClass(e,"has-slider"),n.domElement.insertBefore(t.domElement,n.domElement.firstElementChild)}();else if(n instanceof j["default"]){var r=function(e){return W["default"].isNumber(n.__min)&&W["default"].isNumber(n.__max)?(n.remove(),s(t,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[n.__min,n.__max,n.__step]})):e};n.min=W["default"].compose(r,n.min),n.max=W["default"].compose(r,n.max)}else n instanceof M["default"]?(z["default"].bind(e,"click",function(){z["default"].fakeEvent(n.__checkbox,"click")}),z["default"].bind(n.__checkbox,"click",function(t){t.stopPropagation()})):n instanceof N["default"]?(z["default"].bind(e,"click",function(){z["default"].fakeEvent(n.__button,"click")}),z["default"].bind(e,"mouseover",function(){z["default"].addClass(n.__button,"hover")}),z["default"].bind(e,"mouseout",function(){z["default"].removeClass(n.__button,"hover")})):n instanceof D["default"]&&(z["default"].addClass(e,"color"),n.updateDisplay=W["default"].compose(function(t){return e.style.borderLeftColor=n.__color.toString(),t},n.updateDisplay),n.updateDisplay());n.setValue=W["default"].compose(function(e){return t.getRoot().__preset_select&&n.isModified()&&i(t.getRoot(),!0),e},n.setValue)}function u(t,e){var n=t.getRoot(),r=n.__rememberedObjects.indexOf(e.object);if(-1!==r){var o=n.__rememberedObjectIndecesToControllers[r];if(void 0===o&&(o={},n.__rememberedObjectIndecesToControllers[r]=o),o[e.property]=e,n.load&&n.load.remembered){var i=n.load.remembered,a=void 0;if(i[t.preset])a=i[t.preset];else{if(!i[J])return;a=i[J]}if(a[r]&&void 0!==a[r][e.property]){var u=a[r][e.property];e.initialValue=u,e.setValue(u)}}}}function s(t,e,n,r){if(void 0===e[n])throw new Error('Object "'+e+'" has no property "'+n+'"');var i=void 0;if(r.color)i=new D["default"](e,n);else{var s=[e,n].concat(r.factoryArgs);i=A["default"].apply(t,s)}r.before instanceof O["default"]&&(r.before=r.before.__li),u(t,i),z["default"].addClass(i.domElement,"c");var c=document.createElement("span");z["default"].addClass(c,"property-name"),c.innerHTML=i.property;var l=document.createElement("div");l.appendChild(c),l.appendChild(i.domElement);var f=o(t,l,r.before);return z["default"].addClass(f,nt.CLASS_CONTROLLER_ROW),i instanceof D["default"]?z["default"].addClass(f,"color"):z["default"].addClass(f,typeof i.getValue()),a(t,f,i),t.__controllers.push(i),i}function c(t,e){return document.location.href+"."+e}function l(t,e,n){var r=document.createElement("option");r.innerHTML=e,r.value=e,t.__preset_select.appendChild(r),n&&(t.__preset_select.selectedIndex=t.__preset_select.length-1)}function f(t,e){e.style.display=t.useLocalStorage?"block":"none"}function d(t){var e=t.__save_row=document.createElement("li");z["default"].addClass(t.domElement,"has-save"),t.__ul.insertBefore(e,t.__ul.firstChild),z["default"].addClass(e,"save-row");var n=document.createElement("span");n.innerHTML="&nbsp;",z["default"].addClass(n,"button gears");var r=document.createElement("span");r.innerHTML="Save",z["default"].addClass(r,"button"),z["default"].addClass(r,"save");var o=document.createElement("span");o.innerHTML="New",z["default"].addClass(o,"button"),z["default"].addClass(o,"save-as");var i=document.createElement("span");i.innerHTML="Revert",z["default"].addClass(i,"button"),z["default"].addClass(i,"revert");var a=t.__preset_select=document.createElement("select");t.load&&t.load.remembered?W["default"].each(t.load.remembered,function(e,n){l(t,n,n===t.preset)}):l(t,J,!1),z["default"].bind(a,"change",function(){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].innerHTML=t.__preset_select[e].value;t.preset=this.value}),e.appendChild(a),e.appendChild(n),e.appendChild(r),e.appendChild(o),e.appendChild(i),Q&&!function(){var e=document.getElementById("dg-local-explain"),n=document.getElementById("dg-local-storage"),r=document.getElementById("dg-save-locally");r.style.display="block","true"===localStorage.getItem(c(t,"isLocal"))&&n.setAttribute("checked","checked"),f(t,e),z["default"].bind(n,"change",function(){t.useLocalStorage=!t.useLocalStorage,f(t,e)})}();var u=document.getElementById("dg-new-constructor");z["default"].bind(u,"keydown",function(t){!t.metaKey||67!==t.which&&67!==t.keyCode||q.hide()}),z["default"].bind(n,"click",function(){u.innerHTML=JSON.stringify(t.getSaveObject(),void 0,2),q.show(),u.focus(),u.select()}),z["default"].bind(r,"click",function(){t.save()}),z["default"].bind(o,"click",function(){var e=prompt("Enter a new preset name.");e&&t.saveAs(e)}),z["default"].bind(i,"click",function(){t.revert()})}function h(t){function e(e){return e.preventDefault(),t.width+=o-e.clientX,t.onResize(),o=e.clientX,!1}function n(){z["default"].removeClass(t.__closeButton,nt.CLASS_DRAG),z["default"].unbind(window,"mousemove",e),z["default"].unbind(window,"mouseup",n)}function r(r){return r.preventDefault(),o=r.clientX,z["default"].addClass(t.__closeButton,nt.CLASS_DRAG),z["default"].bind(window,"mousemove",e),z["default"].bind(window,"mouseup",n),!1}var o=void 0;t.__resize_handle=document.createElement("div"),W["default"].extend(t.__resize_handle.style,{width:"6px",marginLeft:"-3px",height:"200px",cursor:"ew-resize",position:"absolute"}),z["default"].bind(t.__resize_handle,"mousedown",r),z["default"].bind(t.__closeButton,"mousedown",r),t.domElement.insertBefore(t.__resize_handle,t.domElement.firstElementChild)}function p(t,e){t.domElement.style.width=e+"px",t.__save_row&&t.autoPlace&&(t.__save_row.style.width=e+"px"),t.__closeButton&&(t.__closeButton.style.width=e+"px")}function _(t,e){var n={};return W["default"].each(t.__rememberedObjects,function(r,o){var i={},a=t.__rememberedObjectIndecesToControllers[o];W["default"].each(a,function(t,n){i[n]=e?t.initialValue:t.getValue()}),n[o]=i}),n}function g(t){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].value===t.preset&&(t.__preset_select.selectedIndex=e)}function v(t){0!==t.length&&B["default"](function(){v(t)}),W["default"].each(t,function(t){t.updateDisplay()})}var m=n(183),y=r(m),b=n(191),x=r(b),w=n(192),E=r(w),S=n(194),A=r(S),C=n(175),O=r(C),k=n(176),M=r(k),T=n(188),N=r(T),P=n(181),j=r(P),L=n(182),R=r(L),F=n(189),D=r(F),I=n(195),B=r(I),U=n(196),V=r(U),H=n(177),z=r(H),G=n(173),W=r(G);y["default"].inject(E["default"]);var K="dg",X=72,Y=20,J="Default",Q=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}(),q=void 0,Z=!0,$=void 0,tt=!1,et=[],nt=function rt(t){function e(){var t=n.getRoot();t.width+=1,W["default"].defer(function(){t.width-=1})}var n=this,r=t||{};this.domElement=document.createElement("div"),this.__ul=document.createElement("ul"),this.domElement.appendChild(this.__ul),z["default"].addClass(this.domElement,K),this.__folders={},this.__controllers=[],this.__rememberedObjects=[],this.__rememberedObjectIndecesToControllers=[],this.__listening=[],r=W["default"].defaults(r,{autoPlace:!0,width:rt.DEFAULT_WIDTH}),r=W["default"].defaults(r,{resizable:r.autoPlace,hideable:r.autoPlace}),W["default"].isUndefined(r.load)?r.load={preset:J}:r.preset&&(r.load.preset=r.preset),W["default"].isUndefined(r.parent)&&r.hideable&&et.push(this),r.resizable=W["default"].isUndefined(r.parent)&&r.resizable,r.autoPlace&&W["default"].isUndefined(r.scrollable)&&(r.scrollable=!0);var i=Q&&"true"===localStorage.getItem(c(this,"isLocal")),a=void 0;if(Object.defineProperties(this,{parent:{get:function(){return r.parent}},scrollable:{get:function(){return r.scrollable}},autoPlace:{get:function(){return r.autoPlace}},preset:{get:function(){return n.parent?n.getRoot().preset:r.load.preset},set:function(t){n.parent?n.getRoot().preset=t:r.load.preset=t,g(this),n.revert()}},width:{get:function(){return r.width},set:function(t){r.width=t,p(n,t)}},name:{get:function(){return r.name},set:function(t){r.name=t,titleRowName&&(titleRowName.innerHTML=r.name)}},closed:{get:function(){return r.closed},set:function(t){r.closed=t,r.closed?z["default"].addClass(n.__ul,rt.CLASS_CLOSED):z["default"].removeClass(n.__ul,rt.CLASS_CLOSED),this.onResize(),n.__closeButton&&(n.__closeButton.innerHTML=t?rt.TEXT_OPEN:rt.TEXT_CLOSED)}},load:{get:function(){return r.load}},useLocalStorage:{get:function(){return i},set:function(t){Q&&(i=t,t?z["default"].bind(window,"unload",a):z["default"].unbind(window,"unload",a),localStorage.setItem(c(n,"isLocal"),t))}}}),W["default"].isUndefined(r.parent)){if(r.closed=!1,z["default"].addClass(this.domElement,rt.CLASS_MAIN),z["default"].makeSelectable(this.domElement,!1),Q&&i){n.useLocalStorage=!0;var u=localStorage.getItem(c(this,"gui"));u&&(r.load=JSON.parse(u))}this.__closeButton=document.createElement("div"),this.__closeButton.innerHTML=rt.TEXT_CLOSED,z["default"].addClass(this.__closeButton,rt.CLASS_CLOSE_BUTTON),this.domElement.appendChild(this.__closeButton),z["default"].bind(this.__closeButton,"click",function(){n.closed=!n.closed})}else{void 0===r.closed&&(r.closed=!0);var s=document.createTextNode(r.name);z["default"].addClass(s,"controller-name");var l=o(n,s),f=function(t){return t.preventDefault(),n.closed=!n.closed,!1};z["default"].addClass(this.__ul,rt.CLASS_CLOSED),z["default"].addClass(l,"title"),z["default"].bind(l,"click",f),r.closed||(this.closed=!1)}r.autoPlace&&(W["default"].isUndefined(r.parent)&&(Z&&($=document.createElement("div"),z["default"].addClass($,K),z["default"].addClass($,rt.CLASS_AUTO_PLACE_CONTAINER),document.body.appendChild($),Z=!1),$.appendChild(this.domElement),z["default"].addClass(this.domElement,rt.CLASS_AUTO_PLACE)),this.parent||p(n,r.width)),z["default"].bind(window,"resize",function(){n.onResize()}),z["default"].bind(this.__ul,"webkitTransitionEnd",function(){n.onResize()}),z["default"].bind(this.__ul,"transitionend",function(){n.onResize()}),z["default"].bind(this.__ul,"oTransitionEnd",function(){n.onResize()}),this.onResize(),r.resizable&&h(this),a=function(){Q&&"true"===localStorage.getItem(c(n,"isLocal"))&&localStorage.setItem(c(n,"gui"),JSON.stringify(n.getSaveObject()))},this.saveToLocalStorageIfPossible=a,r.parent||e()};nt.toggleHide=function(){tt=!tt,W["default"].each(et,function(t){t.domElement.style.zIndex=tt?-999:999,t.domElement.style.opacity=tt?0:1})},nt.CLASS_AUTO_PLACE="a",nt.CLASS_AUTO_PLACE_CONTAINER="ac",nt.CLASS_MAIN="main",nt.CLASS_CONTROLLER_ROW="cr",nt.CLASS_TOO_TALL="taller-than-window",nt.CLASS_CLOSED="closed",nt.CLASS_CLOSE_BUTTON="close-button",nt.CLASS_DRAG="drag",nt.DEFAULT_WIDTH=245,nt.TEXT_CLOSED="Close Controls",nt.TEXT_OPEN="Open Controls",z["default"].bind(window,"keydown",function(t){"text"===document.activeElement.type||t.which!==X&&t.keyCode!==X||nt.toggleHide()},!1),W["default"].extend(nt.prototype,{add:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e){return s(this,t,e,{factoryArgs:Array.prototype.slice.call(arguments,2)})}),addColor:function(t,e){return s(this,t,e,{color:!0})},remove:function(t){this.__ul.removeChild(t.__li),this.__controllers.splice(this.__controllers.indexOf(t),1);var e=this;W["default"].defer(function(){e.onResize()})},destroy:function(){this.autoPlace&&$.removeChild(this.domElement)},addFolder:function(t){if(void 0!==this.__folders[t])throw new Error('You already have a folder in this GUI by the name "'+t+'"');var e={name:t,parent:this};e.autoPlace=this.autoPlace,this.load&&this.load.folders&&this.load.folders[t]&&(e.closed=this.load.folders[t].closed,e.load=this.load.folders[t]);var n=new nt(e);this.__folders[t]=n;var r=o(this,n.domElement);return z["default"].addClass(r,"folder"),n},open:function(){this.closed=!1},close:function(){
this.closed=!0},onResize:function(){var t=this.getRoot();if(t.scrollable){var e=z["default"].getOffset(t.__ul).top,n=0;W["default"].each(t.__ul.childNodes,function(e){t.autoPlace&&e===t.__save_row||(n+=z["default"].getHeight(e))}),window.innerHeight-e-Y<n?(z["default"].addClass(t.domElement,nt.CLASS_TOO_TALL),t.__ul.style.height=window.innerHeight-e-Y+"px"):(z["default"].removeClass(t.domElement,nt.CLASS_TOO_TALL),t.__ul.style.height="auto")}t.__resize_handle&&W["default"].defer(function(){t.__resize_handle.style.height=t.__ul.offsetHeight+"px"}),t.__closeButton&&(t.__closeButton.style.width=t.width+"px")},remember:function(){if(W["default"].isUndefined(q)&&(q=new V["default"],q.domElement.innerHTML=x["default"]),this.parent)throw new Error("You can only call remember on a top level GUI.");var t=this;W["default"].each(Array.prototype.slice.call(arguments),function(e){0===t.__rememberedObjects.length&&d(t),-1===t.__rememberedObjects.indexOf(e)&&t.__rememberedObjects.push(e)}),this.autoPlace&&p(this,this.width)},getRoot:function(){for(var t=this;t.parent;)t=t.parent;return t},getSaveObject:function(){var t=this.load;return t.closed=this.closed,this.__rememberedObjects.length>0&&(t.preset=this.preset,t.remembered||(t.remembered={}),t.remembered[this.preset]=_(this)),t.folders={},W["default"].each(this.__folders,function(e,n){t.folders[n]=e.getSaveObject()}),t},save:function(){this.load.remembered||(this.load.remembered={}),this.load.remembered[this.preset]=_(this),i(this,!1),this.saveToLocalStorageIfPossible()},saveAs:function(t){this.load.remembered||(this.load.remembered={},this.load.remembered[J]=_(this,!0)),this.load.remembered[t]=_(this),this.preset=t,l(this,t,!0),this.saveToLocalStorageIfPossible()},revert:function(t){W["default"].each(this.__controllers,function(e){this.getRoot().load.remembered?u(t||this.getRoot(),e):e.setValue(e.initialValue)},this),W["default"].each(this.__folders,function(t){t.revert(t)}),t||i(this.getRoot(),!1)},listen:function(t){var e=0===this.__listening.length;this.__listening.push(t),e&&v(this.__listening)}}),t.exports=nt},function(t,e){t.exports='<div id=dg-save class="dg dialogue">Here\'s the new load parameter for your <code>GUI</code>\'s constructor:<textarea id=dg-new-constructor></textarea><div id=dg-save-locally><input id=dg-local-storage type="checkbox"> Automatically save values to <code>localStorage</code> on exit.<div id=dg-local-explain>The values saved to <code>localStorage</code> will override those passed to <code>dat.GUI</code>\'s constructor. This makes it easier to work incrementally, but <code>localStorage</code> is fragile, and your friends may not see the same values you do.</div></div></div>'},function(t,e,n){var r=n(193);"string"==typeof r&&(r=[[t.id,r,""]]);n(187)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(186)(),e.push([t.id,".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1!important}.dg.main .close-button.drag,.dg.main:hover .close-button{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;transition:opacity .1s linear;border:0;position:absolute;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-x:hidden}.dg.a.has-save>ul{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{position:fixed;top:0;z-index:1002}.dg li{-webkit-transition:height .1s ease-out;transition:height .1s ease-out}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;overflow:hidden;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid transparent}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:9px}.dg .c select{margin-top:5px}.dg .cr.boolean,.dg .cr.boolean *,.dg .cr.function,.dg .cr.function *,.dg .cr.function .property-name{cursor:pointer}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco,monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:9pt 0;display:block;width:440px;overflow-y:scroll;height:75pt;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande',sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:81pt}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:1pc;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid hsla(0,0%,100%,.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2fa1d6}.dg .cr.number input[type=text]{color:#2fa1d6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.boolean:hover,.dg .cr.function:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:0}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2fa1d6}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(178),i=r(o),a=n(181),u=r(a),s=n(182),c=r(s),l=n(179),f=r(l),d=n(188),h=r(d),p=n(176),_=r(p),g=n(173),v=r(g),m=function(t,e){var n=t[e];return v["default"].isArray(arguments[2])||v["default"].isObject(arguments[2])?new i["default"](t,e,arguments[2]):v["default"].isNumber(n)?v["default"].isNumber(arguments[2])&&v["default"].isNumber(arguments[3])?v["default"].isNumber(arguments[4])?new c["default"](t,e,arguments[2],arguments[3],arguments[4]):new c["default"](t,e,arguments[2],arguments[3]):new u["default"](t,e,{min:arguments[2],max:arguments[3]}):v["default"].isString(n)?new f["default"](t,e):v["default"].isFunction(n)?new h["default"](t,e,""):v["default"].isBoolean(n)?new _["default"](t,e):void 0};e["default"]=m,t.exports=e["default"]},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(){function t(t){window.setTimeout(t,1e3/60)}return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||t},t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(177),a=r(i),u=n(173),s=r(u),c=function(){function t(){o(this,t),this.backgroundElement=document.createElement("div"),s["default"].extend(this.backgroundElement.style,{backgroundColor:"rgba(0,0,0,0.8)",top:0,left:0,display:"none",zIndex:"1000",opacity:0,WebkitTransition:"opacity 0.2s linear",transition:"opacity 0.2s linear"}),a["default"].makeFullscreen(this.backgroundElement),this.backgroundElement.style.position="fixed",this.domElement=document.createElement("div"),s["default"].extend(this.domElement.style,{position:"fixed",display:"none",zIndex:"1001",opacity:0,WebkitTransition:"-webkit-transform 0.2s ease-out, opacity 0.2s linear",transition:"transform 0.2s ease-out, opacity 0.2s linear"}),document.body.appendChild(this.backgroundElement),document.body.appendChild(this.domElement);var e=this;a["default"].bind(this.backgroundElement,"click",function(){e.hide()})}return t.prototype.show=function(){var t=this;this.backgroundElement.style.display="block",this.domElement.style.display="block",this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)",this.layout(),s["default"].defer(function(){t.backgroundElement.style.opacity=1,t.domElement.style.opacity=1,t.domElement.style.webkitTransform="scale(1)"})},t.prototype.hide=function e(){var t=this,e=function n(){t.domElement.style.display="none",t.backgroundElement.style.display="none",a["default"].unbind(t.domElement,"webkitTransitionEnd",n),a["default"].unbind(t.domElement,"transitionend",n),a["default"].unbind(t.domElement,"oTransitionEnd",n)};a["default"].bind(this.domElement,"webkitTransitionEnd",e),a["default"].bind(this.domElement,"transitionend",e),a["default"].bind(this.domElement,"oTransitionEnd",e),this.backgroundElement.style.opacity=0,this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)"},t.prototype.layout=function(){this.domElement.style.left=window.innerWidth/2-a["default"].getWidth(this.domElement)/2+"px",this.domElement.style.top=window.innerHeight/2-a["default"].getHeight(this.domElement)/2+"px"},t}();e["default"]=c,t.exports=e["default"]}])});