!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):"object"==typeofexports?exports.dat=e():t.dat=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;varo=n[r]={exports:{},id:r,loaded:!1};returnt[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}varn={};returne.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)thrownewError("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0}).call(e,function(){returnthis}())},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){functionr(t,e){returnfunction(n){varr,o=w(n),i=0,a=[];for(rino)r!=m&&h(o,r)&&a.push(r);for(;e>i;)h(o,r=t[i++])&&(~R(a,r)||a.push(r));returna}}functiono(){}functioni(t,e,n){if(!(einV)){for(varr=[],o=0;e>o;o++)r[o]="a["+o+"]";V[e]=Function("F,a","return new F("+r.join(",")+")")}returnV[e](t,n)}functiona(t){returnfunction(e,n){x(e);varr=w(this),o=A(r.length),i=t?o-1:0,a=t?-1:1;if(arguments.length<2)for(;;){if(iinr){n=r[i],i+=a;break}if(i+=a,t?0>i:i>=o)throwTypeError("Reduce of empty array with no initial value")}for(;t?i>=0:o>i;i+=a)iinr&&(n=e(n,r[i],i,this));returnn}}functionu(t){returnt>9?t:"0"+t}vars=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(){return8}}).x}catch(z){}s.setDesc=function(t,e,n){if(L)try{returnN(t,e,n)}catch(r){}if("get"inn||"set"inn)throwTypeError("Accessors not supported!");return"value"inn&&(b(t)[e]=n.value),t},s.getDesc=function(t,e){if(L)try{returnP(t,e)}catch(n){}returnh(t,e)?l(!O.propertyIsEnumerable.call(t,e),t[e]):void0},s.setDescs=j=function(t,e){b(t);for(varn,r=s.getKeys(e),o=r.length,i=0;o>i;)s.setDesc(t,n=r[i++],e[n]);returnt}}_(_.S+_.F*!c,"Object",{getOwnPropertyDescriptor:s.getDesc,defineProperty:s.setDesc,defineProperties:j});varG="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),W=G.concat("length","prototype"),K=G.length,X=function(){vart,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--;)deleteX.prototype[G[n]];returnX()};_(_.S,"Object",{getPrototypeOf:s.getProto=s.getProto||function(t){returnt=w(t,!0),h(t,m)?t[m]:"function"==typeoft.constructor&&tinstanceoft.constructor?t.constructor.prototype:tinstanceofObject?O:null},getOwnPropertyNames:s.getNames=s.getNames||r(W,W.length,!0),create:s.create=s.create||function(t,e){varn;returnnull!==t?(o.prototype=b(t),n=newo,o.prototype=null,n[m]=t):n=X(),void0===e?n:j(n,e)},keys:s.getKeys=s.getKeys||r(G,K,!1),seal:function(t){returnt},freeze:function(t){returnt},preventExtensions:function(t){returnt},isSealed:function(t){return!y(t)},isFrozen:function(t){return!y(t)},isExtensible:function(t){returny(t)}}),_(_.P,"Function",{bind:function(t){functione(){varo=r.concat(M.call(arguments));returnthisins
functione(n,r,i){o(this,e),t.call(this,n,r);vara=i,u=this;this.__select=document.createElement("select"),f["default"].isArray(a)&&!function(){vart={};f["default"].each(a,function(e){t[e]=e}),a=t}(),f["default"].each(a,function(t,e){varn=document.createElement("option");n.innerHTML=e,n.setAttribute("value",t),u.__select.appendChild(n)}),this.updateDisplay(),c["default"].bind(this.__select,"change",function(){vart=this.options[this.selectedIndex].value;u.setValue(t)}),this.domElement.appendChild(this.__select)}returni(e,t),e.prototype.setValue=function(e){varn=t.prototype.setValue.call(this,e);returnthis.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),n},e.prototype.updateDisplay=function(){returnthis.__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";functionr(t){returnt&&t.__esModule?t:{"default":t}}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);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;vara=n(175),u=r(a),s=n(177),c=r(s),l=function(t){functione(n,r){functioni(){u.setValue(u.__input.value)}functiona(){u.__onFinishChange&&u.__onFinishChange.call(u,u.getValue())}o(this,e),t.call(this,n,r);varu=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)}returni(e,t),e.prototype.updateDisplay=function(){returnc["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";functionr(t){returnt&&t.__esModule?t:{"default":t}}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);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)}functiona(t){vare=t.toString();returne.indexOf(".")>-1?e.length-e.indexOf(".")-1:0}e.__esModule=!0;varu=n(175),s=r(u),c=n(173),l=r(c),f=function(t){functione(n,r,i){o(this,e),t.call(this,n,r);varu=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)}returni(e,t),e.prototype.setValue=function(e){varn=e;returnvoid0!==this.__min&&n<this.__min?n=this.__min:void0!==this.__max&&n>this.__max&&(n=this.__max),void0!==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){returnthis.__min=t,this},e.prototype.max=function(t){returnthis.__max=t,this},e.prototype.step=function(t){returnthis.__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";functionr(t){returnt&&t.__esModule?t:{"default":t}}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumera
this.closed=!0},onResize:function(){vart=this.getRoot();if(t.scrollable){vare=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=newV["default"],q.domElement.innerHTML=x["default"]),this.parent)thrownewError("You can only call remember on a top level GUI.");vart=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(vart=this;t.parent;)t=t.parent;returnt},getSaveObject:function(){vart=this.load;returnt.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){vare=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){varr=n(193);"string"==typeofr&&(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,".dgul{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.1slinear;transition:opacity.1slinear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window.close-button{opacity:1;margin-top:-1px;border-top:1pxsolid#2c2c2c}.dg.mainul.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.1slinear;transition:opacity.1slinear;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}.dgli{-webkit-transition:height.1sease-out;transition:height.1sease-out}.dgli:not(.folder){cursor:auto;height:27px;line-height:27px;overflow:hidden;padding:04px05px}.dgli.folder{padding:0;border-left:4pxsolidtransparent}.dgli.title{cursor:pointer;margin-left:-4px}.dg.closedli:not(.title),.dg.c