babylon.inspector.bundle.js 532 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs"),require("babylonjs-gui"),require("babylonjs-loaders"),require("babylonjs-materials"),require("babylonjs-serializers")):"function"==typeof define&&define.amd?define("babylonjs-inspector",["babylonjs","babylonjs-gui","babylonjs-loaders","babylonjs-materials","babylonjs-serializers"],t):"object"==typeof exports?exports["babylonjs-inspector"]=t(require("babylonjs"),require("babylonjs-gui"),require("babylonjs-loaders"),require("babylonjs-materials"),require("babylonjs-serializers")):e.INSPECTOR=t(e.BABYLON,e.BABYLON.GUI,e.BABYLON,e.BABYLON,e.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,(function(e,t,r,n,a){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=16)}([function(e,t,r){"use strict";e.exports=r(17)},function(t,r){t.exports=e},function(e,t,r){e.exports=r(24)()},function(e,r){e.exports=t},function(e,t,r){"use strict";
  2. /*
  3. object-assign
  4. (c) Sindre Sorhus
  5. @license MIT
  6. */var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,l,s=i(e),c=1;c<arguments.length;c++){for(var p in r=Object(arguments[c]))a.call(r,p)&&(s[p]=r[p]);if(n){l=n(r);for(var u=0;u<l.length;u++)o.call(r,l[u])&&(s[l[u]]=r[l[u]])}}return s}},function(e,t,r){var n;
  7. /*!
  8. Copyright (c) 2017 Jed Watson.
  9. Licensed under the MIT License (MIT), see
  10. http://jedwatson.github.io/classnames
  11. */!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var i=a.apply(null,n);i&&e.push(i)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=r(18)},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(0),a=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},s={base:{position:"absolute",userSelect:"none",MsUserSelect:"none"},top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},c=function(e){return n.createElement("div",{className:e.className,style:i({},s.base,s[e.direction],e.replaceStyles||{}),onMouseDown:function(t){e.onResizeStart(t,e.direction)},onTouchStart:function(t){e.onResizeStart(t,e.direction)}},e.children)},p={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},u={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},d=function(e,t,r){return Math.max(Math.min(e,r),t)},h=function(e,t){return Math.round(e/t)*t},b=function(e,t){return t.reduce((function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t}))},m=function(e,t){return e.substr(e.length-t.length,t.length)===t},f=function(e){return"auto"===e.toString()?e.toString():m(e.toString(),"px")?e.toString():m(e.toString(),"%")?e.toString():m(e.toString(),"vh")?e.toString():m(e.toString(),"vw")?e.toString():m(e.toString(),"vmax")?e.toString():m(e.toString(),"vmin")?e.toString():e+"px"},g=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent"],v=function(e){function t(e){a(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={isResizing:!1,resizeCursor:"auto",width:void 0===(r.propsSize&&r.propsSize.width)?"auto":r.propsSize&&r.propsSize.width,height:void 0===(r.propsSize&&r.propsSize.height)?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0}},r.updateExtendsProps(e),r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),"undefined"!=typeof window&&(window.addEventListener("mouseup",r.onMouseUp),window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseleave",r.onMouseUp),window.addEventListener("touchmove",r.onMouseMove),window.addEventListener("touchend",r.onMouseUp)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"updateExtendsProps",value:function(e){this.extendsProps=Object.keys(e).reduce((function(t,r){return-1!==g.indexOf(r)?t:(t[r]=e[r],t)}),{})}},{key:"getParentSize",value:function(){var e=this.base;if(!e)return{width:window.innerWidth,height:window.innerHeight};var t=!1,r=this.parentNode.style.flexWrap,n=e.style.minWidth;"wrap"!==r&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var a={width:e.offsetWidth,height:e.offsetHeight};return e.style.position="absolute",t&&(this.parentNode.style.flexWrap=r),e.style.minWidth=n,a}},{key:"componentDidMount",value:function(){var e=this.size;this.setState({width:this.state.width||e.width,height:this.state.height||e.height});var t=this.parentNode;if(t instanceof HTMLElement&&!this.base){var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.position="absolute",r.style.transform="scale(0, 0)",r.style.left="0",r.style.flex="0",r.classList?r.classList.add("__resizable_base__"):r.className+="__resizable_base__",t.appendChild(r)}}},{key:"componentWillReceiveProps",value:function(e){this.updateExtendsProps(e)}},{key:"componentWillUnmount",value:function(){if("undefined"!=typeof window){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp);var e=this.parentNode,t=this.base;if(!t||!e)return;if(!(e instanceof HTMLElement&&t instanceof Node))return;e.removeChild(t)}}},{key:"calculateNewSize",value:function(e,t){var r=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==r&&"auto"!==r?e:"auto"}},{key:"onResizeStart",value:function(e,t){var r=0,n=0;if(e.nativeEvent instanceof MouseEvent){if(r=e.nativeEvent.clientX,n=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(r=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY);this.props.onResizeStart&&this.props.onResizeStart(e,t,this.resizable),this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.setState({original:{x:r,y:n,width:this.size.width,height:this.size.height},isResizing:!0,resizeCursor:window.getComputedStyle(e.target).cursor,direction:t})}},{key:"onMouseMove",value:function(e){if(this.state.isResizing){var t=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,r=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,n=this.state,a=n.direction,o=n.original,i=n.width,l=n.height,s=this.props,c=s.lockAspectRatio,p=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,f=this.props,g=f.maxWidth,v=f.maxHeight,y=f.minWidth,C=f.minHeight,E=this.getParentSize();if(g&&"string"==typeof g&&m(g,"%")){var O=Number(g.replace("%",""))/100;g=E.width*O}if(v&&"string"==typeof v&&m(v,"%")){var S=Number(v.replace("%",""))/100;v=E.height*S}if(y&&"string"==typeof y&&m(y,"%")){var x=Number(y.replace("%",""))/100;y=E.width*x}if(C&&"string"==typeof C&&m(C,"%")){var P=Number(C.replace("%",""))/100;C=E.height*P}g=void 0===g?void 0:Number(g),v=void 0===v?void 0:Number(v),y=void 0===y?void 0:Number(y),C=void 0===C?void 0:Number(C);var k="number"==typeof c?c:o.width/o.height,w=o.width,T=o.height;if(/right/i.test(a)&&(w=o.width+(t-o.x),c&&(T=(w-u)/k+p)),/left/i.test(a)&&(w=o.width-(t-o.x),c&&(T=(w-u)/k+p)),/bottom/i.test(a)&&(T=o.height+(r-o.y),c&&(w=(T-p)*k+u)),/top/i.test(a)&&(T=o.height-(r-o.y),c&&(w=(T-p)*k+u)),"parent"===this.props.bounds){var N=this.parentNode;if(N instanceof HTMLElement){var _=N.getBoundingClientRect(),M=_.left,L=_.top,R=this.resizable.getBoundingClientRect(),A=R.left,I=R.top,j=N.offsetWidth+(M-A),D=N.offsetHeight+(L-I);g=g&&g<j?g:j,v=v&&v<D?v:D}}else if("window"===this.props.bounds){if("undefined"!=typeof window){var z=this.resizable.getBoundingClientRect(),F=z.left,U=z.top,V=window.innerWidth-F,H=window.innerHeight-U;g=g&&g<V?g:V,v=v&&v<H?v:H}}else if(this.props.bounds instanceof HTMLElement){var G=this.props.bounds.getBoundingClientRect(),B=G.left,W=G.top,Y=this.resizable.getBoundingClientRect(),X=Y.left,q=Y.top;if(!(this.props.bounds instanceof HTMLElement))return;var K=this.props.bounds.offsetWidth+(B-X),Q=this.props.bounds.offsetHeight+(W-q);g=g&&g<K?g:K,v=v&&v<Q?v:Q}var $=void 0===y?10:y,Z=void 0===g||g<0?w:g,J=void 0===C?10:C,ee=void 0===v||v<0?T:v;if(c){var te=(J-p)*k+u,re=(ee-p)*k+u,ne=($-u)/k+p,ae=(Z-u)/k+p,oe=Math.max($,te),ie=Math.min(Z,re),le=Math.max(J,ne),se=Math.min(ee,ae);w=d(w,oe,ie),T=d(T,le,se)}else w=d(w,$,Z),T=d(T,J,ee);this.props.grid&&(w=h(w,this.props.grid[0])),this.props.grid&&(T=h(T,this.props.grid[1])),this.props.snap&&this.props.snap.x&&(w=b(w,this.props.snap.x)),this.props.snap&&this.props.snap.y&&(T=b(T,this.props.snap.y));var ce={width:w-o.width,height:T-o.height};if(i&&"string"==typeof i&&m(i,"%"))w=w/E.width*100+"%";if(l&&"string"==typeof l&&m(l,"%"))T=T/E.height*100+"%";this.setState({width:this.calculateNewSize(w,"width"),height:this.calculateNewSize(T,"height")}),this.props.onResize&&this.props.onResize(e,a,this.resizable,ce)}}},{key:"onMouseUp",value:function(e){var t=this.state,r=t.isResizing,n=t.direction,a=t.original;if(r){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,o),this.props.size&&this.setState(this.props.size),this.setState({isResizing:!1,resizeCursor:"auto"})}}},{key:"updateSize",value:function(e){this.setState({width:e.width,height:e.height})}},{key:"renderResizer",value:function(){var e=this,t=this.props,r=t.enable,a=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,l=t.handleWrapperClass,s=t.handleComponent;if(!r)return null;var p=Object.keys(r).map((function(t){return!1!==r[t]?n.createElement(c,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:a&&a[t],className:o&&o[t]},s&&s[t]?n.createElement(s[t]):null):null}));return n.createElement("span",{className:l,style:i},p)}},{key:"render",value:function(){var e=this,t=this.state.isResizing?p:u;return n.createElement("div",i({ref:function(t){t&&(e.resizable=t)},style:i({position:"relative"},t,this.props.style,this.sizeStyle,{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box"}),className:this.props.className},this.extendsProps),this.state.isResizing&&n.createElement("div",{style:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:""+(this.state.resizeCursor||"auto"),opacity:"0",position:"fixed",zIndex:"9999",top:"0",left:"0",bottom:"0",right:"0"}}),this.props.children,this.renderResizer())}},{key:"parentNode",get:function(){return this.resizable.parentNode}},{key:"propsSize",get:function(){return this.props.size||this.props.defaultSize}},{key:"base",get:function(){var e=this.parentNode;if(e)for(var t=[].slice.call(e.children),r=0;r<t.length;r+=1){var n=t[r];if(n instanceof HTMLElement&&n.classList.contains("__resizable_base__"))return n}}},{key:"size",get:function(){var e=0,t=0;if("undefined"!=typeof window){var r=this.resizable.offsetWidth,n=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:r,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=a}return{width:e,height:t}}},{key:"sizeStyle",get:function(){var e=this,t=this.props.size,r=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&m(e.propsSize[t].toString(),"%")){if(m(e.state[t].toString(),"%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return f(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?f(t.width):r("width"),height:t&&void 0!==t.height&&!this.state.isResizing?f(t.height):r("height")}}}]),t}(n.Component);v.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0},e.exports=v},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";
  12. /*! *****************************************************************************
  13. Copyright (c) Microsoft Corporation. All rights reserved.
  14. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  15. this file except in compliance with the License. You may obtain a copy of the
  16. License at http://www.apache.org/licenses/LICENSE-2.0
  17. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20. MERCHANTABLITY OR NON-INFRINGEMENT.
  21. See the Apache Version 2.0 License for specific language governing permissions
  22. and limitations under the License.
  23. ***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};var i=r(0),l=r.n(i),s=r(6),c=r(1),p=r(13),u=r(2),d=r.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){b(e,t,r[t])}))}return e}function f(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function g(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function v(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var y=!1;try{y=!0}catch(e){}function C(e){return null===e?null:"object"===h(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function E(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?b({},e,t):{}}function O(e){var t=e.icon,r=e.mask,n=e.symbol,a=e.className,o=e.title,i=C(t),l=E("classes",[].concat(g(function(e){var t,r=e.spin,n=e.pulse,a=e.fixedWidth,o=e.inverse,i=e.border,l=e.listItem,s=e.flip,c=e.size,p=e.rotation,u=e.pull,d=(b(t={"fa-spin":r,"fa-pulse":n,"fa-fw":a,"fa-inverse":o,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(c),void 0!==c),b(t,"fa-rotate-".concat(p),void 0!==p),b(t,"fa-pull-".concat(u),void 0!==u),b(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(e)),g(a.split(" ")))),s=E("transform","string"==typeof e.transform?p.b.transform(e.transform):e.transform),c=E("mask",C(r)),u=Object(p.a)(i,m({},l,s,c,{symbol:n,title:o}));if(!u)return function(){var e;!y&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",i),null;var d=u.abstract,h={};return Object.keys(e).forEach((function(t){O.defaultProps.hasOwnProperty(t)||(h[t]=e[t])})),x(d[0],h)}O.displayName="FontAwesomeIcon",O.propTypes={border:d.a.bool,className:d.a.string,mask:d.a.oneOfType([d.a.object,d.a.array,d.a.string]),fixedWidth:d.a.bool,inverse:d.a.bool,flip:d.a.oneOf(["horizontal","vertical","both"]),icon:d.a.oneOfType([d.a.object,d.a.array,d.a.string]),listItem:d.a.bool,pull:d.a.oneOf(["right","left"]),pulse:d.a.bool,rotation:d.a.oneOf([90,180,270]),size:d.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:d.a.bool,symbol:d.a.oneOfType([d.a.bool,d.a.string]),title:d.a.string,transform:d.a.oneOfType([d.a.string,d.a.object]),swapOpacity:d.a.bool},O.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var S,x=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var a=(r.children||[]).map((function(r){return e(t,r)})),o=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),a=v(t.slice(0,n)),o=t.slice(n+1).trim();return a.startsWith("webkit")?e[(r=a,r.charAt(0).toUpperCase()+r.slice(1))]=o:e[a]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[v(t)]=n}return e}),{attrs:{}}),i=n.style,l=void 0===i?{}:i,s=f(n,["style"]);return o.attrs.style=m({},o.attrs.style,l),t.apply(void 0,[r.tag,m({},o.attrs,s)].concat(g(a)))}.bind(null,l.a.createElement),P=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onSelect=function(e){this.props.onSelectedIndexChange(e)},t.prototype.renderLabel=function(e,t){var r=this,n=this.props.selectedIndex===t?"label active":"label";return i.createElement("div",{className:n,key:t,onClick:function(){return r.onSelect(t)},title:e.props.title},i.createElement("div",null,i.createElement(O,{icon:e.props.icon})))},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"tabs",onContextMenu:function(e){return e.preventDefault()}},i.createElement("div",{className:"labels"},this.props.children.map((function(t,r){return e.renderLabel(t,r)}))),i.createElement("div",{className:"panes"},this.props.children[this.props.selectedIndex]))},t}(i.Component),k={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},w={prefix:"fas",iconName:"arrows-alt",icon:[512,512,[],"f0b2","M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"]},T={prefix:"fas",iconName:"ban",icon:[512,512,[],"f05e","M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"]},N={prefix:"fas",iconName:"bone",icon:[640,512,[],"f5d7","M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"]},_={prefix:"fas",iconName:"brush",icon:[384,512,[],"f55d","M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"]},M={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"]},L={prefix:"fas",iconName:"camera",icon:[512,512,[],"f030","M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]},R={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},A={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},I={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},j={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},D={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"]},z={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]},F={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},U={prefix:"fas",iconName:"crosshairs",icon:[512,512,[],"f05b","M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"]},V={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]},H={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},G={prefix:"fas",iconName:"expand-arrows-alt",icon:[448,512,[],"f31e","M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"]},B={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"]},W={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"]},Y={prefix:"fas",iconName:"file-alt",icon:[384,512,[],"f15c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},X={prefix:"fas",iconName:"film",icon:[512,512,[],"f008","M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]},q={prefix:"fas",iconName:"highlighter",icon:[544,512,[],"f591","M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"]},K={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]},Q={prefix:"fas",iconName:"lightbulb",icon:[352,512,[],"f0eb","M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]},$={prefix:"fas",iconName:"magic",icon:[512,512,[],"f0d0","M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"]},Z={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},J={prefix:"fas",iconName:"object-group",icon:[512,512,[],"f247","M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"]},ee={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},te={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},re={prefix:"fas",iconName:"redo-alt",icon:[512,512,[],"f2f9","M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]},ne={prefix:"fas",iconName:"skull",icon:[512,512,[],"f54c","M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"]},ae={prefix:"fas",iconName:"sync-alt",icon:[512,512,[],"f2f1","M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]},oe={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},ie={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},le={prefix:"fas",iconName:"vector-square",icon:[512,512,[],"f5cb","M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"]},se={prefix:"fas",iconName:"video",icon:[576,512,[],"f03d","M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"]},ce={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]},pe={prefix:"fas",iconName:"wrench",icon:[512,512,[],"f0ad","M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]},ue=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return i.createElement("div",{className:"pane"})},t}(i.Component),de=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.ignoreValue?null:this.props.onLink?i.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):i.createElement("div",{className:"value",title:this.props.value,style:{color:this.props.color?this.props.color:""}},this.props.value||"no name")},t.prototype.render=function(){return i.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},i.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(i.Component),he=function(e){function t(r){var n,a=e.call(this,r)||this;try{n=t._InMemoryStorage&&void 0!==t._InMemoryStorage[a.props.title]?t._InMemoryStorage[a.props.title]:"undefined"!=typeof Storage&&null!==localStorage.getItem(a.props.title)?"true"===localStorage.getItem(a.props.title):!a.props.closed}catch(e){t._InMemoryStorage={},t._InMemoryStorage[a.props.title]=!a.props.closed,n=!a.props.closed}return a.state={isExpanded:n,isHighlighted:!1},a}return a(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;try{t._InMemoryStorage?t._InMemoryStorage[this.props.title]=e:"undefined"!=typeof Storage&&localStorage.setItem(this.props.title,e?"true":"false")}catch(r){t._InMemoryStorage={},t._InMemoryStorage[this.props.title]=e}this.setState({isExpanded:e})},t.prototype.componentDidMount=function(){var e=this;this.props.globalState&&!this.props.globalState.selectedLineContainerTitle||(this.props.globalState&&this.props.globalState.selectedLineContainerTitle===this.props.title?(setTimeout((function(){e.props.globalState.selectedLineContainerTitle=""})),this.setState({isExpanded:!0,isHighlighted:!0}),window.setTimeout((function(){e.setState({isHighlighted:!1})}),5e3)):this.setState({isExpanded:!1}))},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return i.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},i.createElement("div",{className:"title"},this.props.title),i.createElement("div",{className:t},i.createElement(O,{icon:I})))},t.prototype.render=function(){return this.state.isExpanded?i.createElement("div",{className:"paneContainer"},i.createElement("div",{className:"paneContainer-content"},this.renderHeader(),i.createElement("div",{className:"paneList"},this.props.children)),i.createElement("div",{className:"paneContainer-highlight-border"+(this.state.isHighlighted?"":" transparent")})):i.createElement("div",{className:"paneContainer"},i.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(i.Component),be=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=void 0!==this.props.fractionDigits?this.props.fractionDigits:2,t=this.props.value.toFixed(e)+(this.props.units?" "+this.props.units:"");return i.createElement("div",{className:"textLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"value",style:{color:this.props.color?this.props.color:""}},t))},t}(i.Component),me=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.value?i.createElement(O,{icon:A}):i.createElement(O,{icon:ie}),t=this.props.value?"value check":"value uncheck";return i.createElement("div",{className:"textLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:t},e))},t}(i.Component),fe=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.scene;return n?(r._sceneInstrumentation=new c.SceneInstrumentation(n),r._sceneInstrumentation.captureActiveMeshesEvaluationTime=!0,r._sceneInstrumentation.captureRenderTargetsRenderTime=!0,r._sceneInstrumentation.captureFrameTime=!0,r._sceneInstrumentation.captureRenderTime=!0,r._sceneInstrumentation.captureInterFrameTime=!0,r._sceneInstrumentation.captureParticlesRenderTime=!0,r._sceneInstrumentation.captureSpritesRenderTime=!0,r._sceneInstrumentation.capturePhysicsTime=!0,r._sceneInstrumentation.captureAnimationsTime=!0,r._engineInstrumentation=new c.EngineInstrumentation(n.getEngine()),r._engineInstrumentation.captureGPUFrameTime=!0,r._timerIntervalId=window.setInterval((function(){return r.forceUpdate()}),500),r):r}return a(t,e),t.prototype.componentWillUnmount=function(){this._sceneInstrumentation&&(this._sceneInstrumentation.dispose(),this._sceneInstrumentation=null),this._engineInstrumentation&&(this._engineInstrumentation.dispose(),this._engineInstrumentation=null),window.clearInterval(this._timerIntervalId)},t.prototype.render=function(){var e=this.props.scene;if(!e||!this._sceneInstrumentation||!this._engineInstrumentation)return null;var t=e.getEngine(),r=this._sceneInstrumentation,n=this._engineInstrumentation,a=t.getCaps();return i.createElement("div",{className:"pane"},i.createElement(de,{label:"Version",value:c.Engine.Version,color:"rgb(113, 159, 255)"}),i.createElement(be,{label:"FPS",value:t.getFps(),fractionDigits:0}),i.createElement(he,{globalState:this.props.globalState,title:"COUNT"},i.createElement(de,{label:"Total meshes",value:e.meshes.length.toString()}),i.createElement(de,{label:"Active meshes",value:e.getActiveMeshes().length.toString()}),i.createElement(de,{label:"Active indices",value:e.getActiveIndices().toString()}),i.createElement(de,{label:"Active faces",value:(e.getActiveIndices()/3).toString()}),i.createElement(de,{label:"Active bones",value:e.getActiveBones().toString()}),i.createElement(de,{label:"Active particles",value:e.getActiveParticles().toString()}),i.createElement(de,{label:"Draw calls",value:r.drawCallsCounter.current.toString()}),i.createElement(de,{label:"Total lights",value:e.lights.length.toString()}),i.createElement(de,{label:"Total vertices",value:e.getTotalVertices().toString()}),i.createElement(de,{label:"Total materials",value:e.materials.length.toString()}),i.createElement(de,{label:"Total textures",value:e.textures.length.toString()})),i.createElement(he,{globalState:this.props.globalState,title:"FRAME STEPS DURATION"},i.createElement(be,{label:"Absolute FPS",value:1e3/this._sceneInstrumentation.frameTimeCounter.current,fractionDigits:0}),i.createElement(be,{label:"Meshes selection",value:r.activeMeshesEvaluationTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Render targets",value:r.renderTargetsRenderTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Particles",value:r.particlesRenderTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Sprites",value:r.spritesRenderTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Animations",value:r.animationsTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Physics",value:r.physicsTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Render",value:r.renderTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Frame total",value:r.frameTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Inter-frame",value:r.interFrameTimeCounter.current,units:"ms"}),i.createElement(be,{label:"GPU Frame time",value:1e-6*n.gpuFrameTimeCounter.current,units:"ms"}),i.createElement(be,{label:"GPU Frame time (average)",value:1e-6*n.gpuFrameTimeCounter.average,units:"ms"})),i.createElement(he,{globalState:this.props.globalState,title:"SYSTEM INFO"},i.createElement(de,{label:"Resolution",value:t.getRenderWidth()+"x"+t.getRenderHeight()}),i.createElement(de,{label:"WebGL version",value:t.webGLVersion.toString()}),i.createElement(me,{label:"Std derivatives",value:a.standardDerivatives}),i.createElement(me,{label:"Compressed textures",value:void 0!==a.s3tc}),i.createElement(me,{label:"Hardware instances",value:a.instancedArrays}),i.createElement(me,{label:"Texture float",value:a.textureFloat}),i.createElement(me,{label:"Texture half-float",value:a.textureHalfFloat}),i.createElement(me,{label:"Render to texture float",value:a.textureFloatRender}),i.createElement(me,{label:"Render to texture half-float",value:a.textureHalfFloatRender}),i.createElement(me,{label:"32bits indices",value:a.uintIndices}),i.createElement(me,{label:"Fragment depth",value:a.fragmentDepthSupported}),i.createElement(me,{label:"High precision shaders",value:a.highPrecisionShaderSupported}),i.createElement(me,{label:"Draw buffers",value:a.drawBuffersExtension}),i.createElement(me,{label:"Vertex array object",value:a.vertexArrayObject}),i.createElement(me,{label:"Timer query",value:void 0!==a.timerQuery}),i.createElement(me,{label:"Stencil",value:t.isStencilEnable}),i.createElement(me,{label:"Parallel shader compilation",value:null!=a.parallelShaderCompile}),i.createElement(be,{label:"Max textures units",value:a.maxTexturesImageUnits,fractionDigits:0}),i.createElement(be,{label:"Max textures size",value:a.maxTextureSize,fractionDigits:0}),i.createElement(be,{label:"Max anisotropy",value:a.maxAnisotropy,fractionDigits:0}),i.createElement(de,{label:"Driver",value:t.getGlInfo().renderer})))},t}(ue),ge=function(e){function t(r){var n=e.call(this,r)||this;return n._localChange=!1,n._uniqueId=t._UniqueIdSeed++,n.props.isSelected?n.state={isSelected:n.props.isSelected()}:n.state={isSelected:!0===n.props.target[n.props.propertyName]},n}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r;return!((r=this.props.isSelected?e.isSelected():!0===e.target[e.propertyName])===t.isSelected&&!this._localChange)&&(t.isSelected=r,this._localChange=!1,!0)},t.prototype.onChange=function(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target[this.props.propertyName]=!this.state.isSelected),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected})},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"checkBoxLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"checkBox"},i.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),i.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(i.Component),ve=r(14),ye=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isEnabled:!1},r}return a(t,e),t.prototype.componentDidMount=function(){for(var e=0,t=c.UtilityLayerRenderer.DefaultKeepDepthUtilityLayer.utilityLayerScene.meshes;e<t.length;e++){var r=t[e];if(r.reservedDataStore&&r.reservedDataStore.isInspectorGrid)return this._gridMesh=r,void this.setState({isEnabled:!0})}},t.prototype.addOrRemoveGrid=function(){var e=c.UtilityLayerRenderer.DefaultKeepDepthUtilityLayer.utilityLayerScene;if(!this._gridMesh){var t=this.props.scene.getWorldExtends(),r=5*(t.max.x-t.min.x),n=5*(t.max.z-t.min.z);this._gridMesh=c.Mesh.CreateGround("grid",1,1,1,e),this._gridMesh.reservedDataStore||(this._gridMesh.reservedDataStore={}),this._gridMesh.scaling.x=Math.max(r,n),this._gridMesh.scaling.z=this._gridMesh.scaling.x,this._gridMesh.reservedDataStore.isInspectorGrid=!0,this._gridMesh.isPickable=!1;var a=new ve.GridMaterial("GridMaterial",e);return a.majorUnitFrequency=10,a.minorUnitVisibility=.3,a.gridRatio=.01,a.backFaceCulling=!1,a.mainColor=new c.Color3(1,1,1),a.lineColor=new c.Color3(1,1,1),a.opacity=.8,a.zOffset=1,a.opacityTexture=new c.Texture("https://assets.babylonjs.com/environments/backgroundGround.png",e),this._gridMesh.material=a,void this.setState({isEnabled:!0})}this.setState({isEnabled:!this.state.isEnabled}),this._gridMesh.dispose(!0,!0),this._gridMesh=null},t.prototype.render=function(){var e=this;return i.createElement("div",null,i.createElement(ge,{label:"Render grid",isSelected:function(){return e.state.isEnabled},onSelect:function(){return e.addOrRemoveGrid()}}))},t}(i.Component),Ce=function(e){function t(t){var r=e.call(this,t)||this;r._physicsViewersEnabled=!1;var n=r.props.scene;return n?(n.reservedDataStore||(n.reservedDataStore={}),r._physicsViewersEnabled=null!=n.reservedDataStore.physicsViewer,r):r}return a(t,e),t.prototype.switchPhysicsViewers=function(){this._physicsViewersEnabled=!this._physicsViewersEnabled;var e=this.props.scene;if(this._physicsViewersEnabled){var t=new c.PhysicsViewer(e);e.reservedDataStore.physicsViewer=t;for(var r=0,n=e.meshes;r<n.length;r++){var a=n[r];if(a.physicsImpostor){var o=t.showImpostor(a.physicsImpostor,a);o&&(o.reservedDataStore={hidden:!0},o.material.reservedDataStore={hidden:!0})}}}else e.reservedDataStore.physicsViewer.dispose(),e.reservedDataStore.physicsViewer=null},t.prototype.render=function(){var e=this,t=this.props.scene;return t?i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"HELPERS"},i.createElement(ye,{globalState:this.props.globalState,scene:t}),i.createElement(ge,{label:"Physics",isSelected:function(){return e._physicsViewersEnabled},onSelect:function(){return e.switchPhysicsViewers()}})),i.createElement(he,{globalState:this.props.globalState,title:"TEXTURE CHANNELS"},i.createElement(ge,{label:"Diffuse",isSelected:function(){return c.StandardMaterial.DiffuseTextureEnabled},onSelect:function(){return c.StandardMaterial.DiffuseTextureEnabled=!c.StandardMaterial.DiffuseTextureEnabled}}),i.createElement(ge,{label:"Ambient",isSelected:function(){return c.StandardMaterial.AmbientTextureEnabled},onSelect:function(){return c.StandardMaterial.AmbientTextureEnabled=!c.StandardMaterial.AmbientTextureEnabled}}),i.createElement(ge,{label:"Specular",isSelected:function(){return c.StandardMaterial.SpecularTextureEnabled},onSelect:function(){return c.StandardMaterial.SpecularTextureEnabled=!c.StandardMaterial.SpecularTextureEnabled}}),i.createElement(ge,{label:"Emissive",isSelected:function(){return c.StandardMaterial.EmissiveTextureEnabled},onSelect:function(){return c.StandardMaterial.EmissiveTextureEnabled=!c.StandardMaterial.EmissiveTextureEnabled}}),i.createElement(ge,{label:"Bump",isSelected:function(){return c.StandardMaterial.BumpTextureEnabled},onSelect:function(){return c.StandardMaterial.BumpTextureEnabled=!c.StandardMaterial.BumpTextureEnabled}}),i.createElement(ge,{label:"Opacity",isSelected:function(){return c.StandardMaterial.OpacityTextureEnabled},onSelect:function(){return c.StandardMaterial.OpacityTextureEnabled=!c.StandardMaterial.OpacityTextureEnabled}}),i.createElement(ge,{label:"Reflection",isSelected:function(){return c.StandardMaterial.ReflectionTextureEnabled},onSelect:function(){return c.StandardMaterial.ReflectionTextureEnabled=!c.StandardMaterial.ReflectionTextureEnabled}}),i.createElement(ge,{label:"Refraction",isSelected:function(){return c.StandardMaterial.RefractionTextureEnabled},onSelect:function(){return c.StandardMaterial.RefractionTextureEnabled=!c.StandardMaterial.RefractionTextureEnabled}}),i.createElement(ge,{label:"ColorGrading",isSelected:function(){return c.StandardMaterial.ColorGradingTextureEnabled},onSelect:function(){return c.StandardMaterial.ColorGradingTextureEnabled=!c.StandardMaterial.ColorGradingTextureEnabled}}),i.createElement(ge,{label:"Lightmap",isSelected:function(){return c.StandardMaterial.LightmapTextureEnabled},onSelect:function(){return c.StandardMaterial.LightmapTextureEnabled=!c.StandardMaterial.LightmapTextureEnabled}}),i.createElement(ge,{label:"Fresnel",isSelected:function(){return c.StandardMaterial.FresnelEnabled},onSelect:function(){return c.StandardMaterial.FresnelEnabled=!c.StandardMaterial.FresnelEnabled}})),i.createElement(he,{globalState:this.props.globalState,title:"FEATURES"},i.createElement(ge,{label:"Animations",isSelected:function(){return t.animationsEnabled},onSelect:function(){return t.animationsEnabled=!t.animationsEnabled}}),i.createElement(ge,{label:"Collisions",isSelected:function(){return t.collisionsEnabled},onSelect:function(){return t.collisionsEnabled=!t.collisionsEnabled}}),i.createElement(ge,{label:"Fog",isSelected:function(){return t.fogEnabled},onSelect:function(){return t.fogEnabled=!t.fogEnabled}}),i.createElement(ge,{label:"Lens flares",isSelected:function(){return t.lensFlaresEnabled},onSelect:function(){return t.lensFlaresEnabled=!t.lensFlaresEnabled}}),i.createElement(ge,{label:"Lights",isSelected:function(){return t.lightsEnabled},onSelect:function(){return t.lightsEnabled=!t.lightsEnabled}}),i.createElement(ge,{label:"Particles",isSelected:function(){return t.particlesEnabled},onSelect:function(){return t.particlesEnabled=!t.particlesEnabled}}),i.createElement(ge,{label:"Post-processes",isSelected:function(){return t.postProcessesEnabled},onSelect:function(){return t.postProcessesEnabled=!t.postProcessesEnabled}}),i.createElement(ge,{label:"Probes",isSelected:function(){return t.probesEnabled},onSelect:function(){return t.probesEnabled=!t.probesEnabled}}),i.createElement(ge,{label:"Textures",isSelected:function(){return t.texturesEnabled},onSelect:function(){return t.texturesEnabled=!t.texturesEnabled}}),i.createElement(ge,{label:"Procedural textures",isSelected:function(){return t.proceduralTexturesEnabled},onSelect:function(){return t.proceduralTexturesEnabled=!t.proceduralTexturesEnabled}}),i.createElement(ge,{label:"Render targets",isSelected:function(){return t.renderTargetsEnabled},onSelect:function(){return t.renderTargetsEnabled=!t.renderTargetsEnabled}}),i.createElement(ge,{label:"Shadows",isSelected:function(){return t.shadowsEnabled},onSelect:function(){return t.shadowsEnabled=!t.shadowsEnabled}}),i.createElement(ge,{label:"Skeletons",isSelected:function(){return t.skeletonsEnabled},onSelect:function(){return t.skeletonsEnabled=!t.skeletonsEnabled}}),i.createElement(ge,{label:"Sprites",isSelected:function(){return t.spritesEnabled},onSelect:function(){return t.spritesEnabled=!t.spritesEnabled}}))):null},t}(ue),Ee=r(8),Oe=r.n(Ee),Se=function(e){function t(t){var r=e.call(this,t)||this;if(r._localChange=!1,void 0!==r.props.directValue)r.state={value:r.props.directValue};else{var n=r.props.target[r.props.propertyName];void 0===n&&(n=r.props.maximum),r.state={value:n}}return r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;var r=e.target[e.propertyName];return void 0===r&&(r=e.maximum),!(r===t.value&&!this._localChange)&&(t.value=r,this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=parseFloat(e);this.props.useEuler&&(t=c.Tools.ToRadians(t)),this.props.target&&(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.value}),this.props.target[this.props.propertyName]=t),this.props.onChange&&this.props.onChange(t),this.setState({value:t})},t.prototype.onInput=function(e){var t=parseFloat(e);this.props.onInput&&this.props.onInput(t)},t.prototype.prepareDataToRead=function(e){return this.props.useEuler?c.Tools.ToDegrees(e):e},t.prototype.render=function(){var e=this,t=void 0!==this.props.decimalCount?this.props.decimalCount:2;return i.createElement("div",{className:"sliderLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"slider"},this.state.value?this.prepareDataToRead(this.state.value).toFixed(t):"0"," ",i.createElement("input",{className:"range",type:"range",step:this.props.step,min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),value:this.prepareDataToRead(this.state.value),onInput:function(t){return e.onInput(t.target.value)},onChange:function(t){return e.onChange(t.target.value)}})))},t}(i.Component),xe=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:t.target[t.propertyName]},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=e.target[e.propertyName];return null!=r&&r!==t.value&&(t.value=r,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t=parseInt(e);this._localChange=!0;var r=this.state.value;this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=t),this.setState({value:t}),this.raiseOnPropertyChanged(t,r),this.props.onSelect&&this.props.onSelect(t)},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"listLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"options"},i.createElement("select",{onChange:function(t){return e.updateValue(t.target.value)},value:this.state.value},this.props.options.map((function(e){return i.createElement("option",{key:e.label,value:e.value},e.label)})))))},t}(i.Component),Pe=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:r.props.value.toFixed(void 0!==r.props.precision?r.props.precision:3)},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(void 0!==this.props.precision?this.props.precision:3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var r=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(r)||this.props.onChange(r)}},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"numeric"},this.props.label&&i.createElement("div",{className:"numeric-label"},this.props.label+": "),i.createElement("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t)}}))},t.defaultProps={step:1},t}(i.Component),ke=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,color:r.props.target[r.props.propertyName].clone()},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=e.target[e.propertyName];return!(r.equals(t.color)&&!this._localChange)&&(t.color=r.clone(),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=c.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.props.target[this.props.propertyName]=t,this.setState({color:t})},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].x=e,this.state.color.r=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].g=e,this.state.color.g=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].b=e,this.state.color.b=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee}),r="Color3"===this.state.color.getClassName()?this.state.color:new c.Color3(this.state.color.r,this.state.color.g,this.state.color.b);return i.createElement("div",{className:"color3Line"},i.createElement("div",{className:"firstLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"color3"},i.createElement("input",{type:"color",value:r.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),i.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},i.createElement(O,{icon:F})),i.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),i.createElement(Pe,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),i.createElement(Pe,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(i.Component),we=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.getCurrentValue().clone()},r}return a(t,e),t.prototype.getCurrentValue=function(){return this.props.target[this.props.propertyName]},t.prototype.shouldComponentUpdate=function(e,t){var r=this.getCurrentValue();return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector3=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector3()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector3()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector3()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee});return i.createElement("div",{className:"vector3Line"},i.createElement("div",{className:"firstLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"vector"},!this.props.useEuler&&"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2),this.props.useEuler&&"X: "+c.Tools.ToDegrees(this.state.value.x).toFixed(2)+", Y: "+c.Tools.ToDegrees(this.state.value.y).toFixed(2)+", Z: "+c.Tools.ToDegrees(this.state.value.z).toFixed(2)),i.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&!this.props.useEuler&&i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),i.createElement(Pe,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),i.createElement(Pe,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})),this.state.isExpanded&&this.props.useEuler&&i.createElement("div",{className:"secondLine"},i.createElement(Se,{label:"x",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(this.state.value.x),onChange:function(t){return e.updateStateX(c.Tools.ToRadians(t))}}),i.createElement(Se,{label:"y",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(this.state.value.y),onChange:function(t){return e.updateStateY(c.Tools.ToRadians(t))}}),i.createElement(Se,{label:"z",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(this.state.value.z),onChange:function(t){return e.updateStateZ(c.Tools.ToRadians(t))}})))},t.defaultProps={step:.001},t}(i.Component),Te=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1;var n=r.props.target[r.props.propertyName].clone();return r.state={isExpanded:!1,value:n,eulerValue:n.toEulerAngles()},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=e.target[e.propertyName];return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateQuaternion=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(this.state.value,e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateQuaternion()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateQuaternion()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateQuaternion()},t.prototype.updateStateW=function(e){this._localChange=!0,this.state.value.w=e,this.updateQuaternion()},t.prototype.updateQuaternionFromEuler=function(){var e=this.state.eulerValue.toQuaternion();this.state.value.x=e.x,this.state.value.y=e.y,this.state.value.z=e.z,this.state.value.w=e.w,this.updateQuaternion()},t.prototype.updateStateEulerX=function(e){this._localChange=!0,this.state.eulerValue.x=c.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.updateStateEulerY=function(e){this._localChange=!0,this.state.eulerValue.y=c.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.updateStateEulerZ=function(e){this._localChange=!0,this.state.eulerValue.z=c.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee}),r=this.state.value,n=this.state.eulerValue;return i.createElement("div",{className:"vector3Line"},i.createElement("div",{className:"firstLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"vector"},!this.props.useEuler&&"X: "+r.x.toFixed(1)+", Y: "+r.y.toFixed(1)+", Z: "+r.z.toFixed(1)+", W: "+r.w.toFixed(1),this.props.useEuler&&"X: "+c.Tools.ToDegrees(n.x).toFixed(2)+", Y: "+c.Tools.ToDegrees(n.y).toFixed(2)+", Z: "+c.Tools.ToDegrees(n.z).toFixed(2)),i.createElement("div",{className:"expand",onClick:function(){return e.switchExpandState()}},t)),this.state.isExpanded&&!this.props.useEuler&&i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"x",value:r.x,onChange:function(t){return e.updateStateX(t)}}),i.createElement(Pe,{label:"y",value:r.y,onChange:function(t){return e.updateStateY(t)}}),i.createElement(Pe,{label:"z",value:r.z,onChange:function(t){return e.updateStateZ(t)}}),i.createElement(Pe,{label:"w",value:r.w,onChange:function(t){return e.updateStateW(t)}})),this.state.isExpanded&&this.props.useEuler&&i.createElement("div",{className:"secondLine"},i.createElement(Se,{label:"x",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(n.x),onChange:function(t){return e.updateStateEulerX(t)}}),i.createElement(Se,{label:"y",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(n.y),onChange:function(t){return e.updateStateEulerY(t)}}),i.createElement(Se,{label:"z",minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(n.z),onChange:function(t){return e.updateStateEulerZ(t)}})))},t}(i.Component),Ne=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:(void 0!==r.props.value?r.props.value:r.props.target[r.props.propertyName])||""},r}return a(t,e),t.prototype.componentWillUnmount=function(){this.props.lockObject.lock=!1},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=void 0!==e.value?e.value:e.target[e.propertyName];return r!==t.value&&(t.value=r||"",!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){this._localChange=!0;var t=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.setState({value:e}),this.raiseOnPropertyChanged(e,t),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"textInputLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"value"},i.createElement("input",{value:this.state.value,onBlur:function(){return e.props.lockObject.lock=!1},onFocus:function(){return e.props.lockObject.lock=!0},onChange:function(t){return e.updateValue(t.target.value)}})))},t}(i.Component),_e=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:0},r}return a(t,e),t.prototype.renderInspectable=function(e){switch(e.type){case c.InspectableType.Checkbox:return i.createElement(ge,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case c.InspectableType.Slider:return i.createElement(Se,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,step:void 0!==e.step?e.step:.1,minimum:void 0!==e.min?e.min:0,maximum:void 0!==e.max?e.max:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case c.InspectableType.Vector3:return i.createElement(we,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case c.InspectableType.Quaternion:return i.createElement(Te,{useEuler:this.props.globalState.onlyUseEulers,key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case c.InspectableType.Color3:return i.createElement(ke,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case c.InspectableType.String:return i.createElement(Ne,{key:e.label,label:e.label,lockObject:this.props.lockObject,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}return null},t.prototype.render=function(){var e=this,t=this.props.target.inspectableCustomProperties;return t&&0!==t.length?i.createElement(he,{title:"CUSTOM",globalState:this.props.globalState},t.map((function(t){return e.renderInspectable(t)}))):null},t}(i.Component),Me=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.material,r=[{label:"Clockwise",value:c.Material.ClockWiseSideOrientation},{label:"Counterclockwise",value:c.Material.CounterClockWiseSideOrientation}],n=[{label:"Opaque",value:c.PBRMaterial.PBRMATERIAL_OPAQUE},{label:"Alpha test",value:c.PBRMaterial.PBRMATERIAL_ALPHATEST},{label:"Alpha blend",value:c.PBRMaterial.PBRMATERIAL_ALPHABLEND},{label:"Alpha blend and test",value:c.PBRMaterial.PBRMATERIAL_ALPHATESTANDBLEND}],a=[{label:"Combine",value:c.Constants.ALPHA_COMBINE},{label:"One one",value:c.Constants.ALPHA_ONEONE},{label:"Add",value:c.Constants.ALPHA_ADD},{label:"Subtract",value:c.Constants.ALPHA_SUBTRACT},{label:"Multiply",value:c.Constants.ALPHA_MULTIPLY},{label:"Maximized",value:c.Constants.ALPHA_MAXIMIZED},{label:"Pre-multiplied",value:c.Constants.ALPHA_PREMULTIPLIED}];return i.createElement("div",null,i.createElement(_e,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:t.id}),i.createElement(de,{label:"Unique ID",value:t.uniqueId.toString()}),i.createElement(de,{label:"Class",value:t.getClassName()}),i.createElement(ge,{label:"Backface culling",target:t,propertyName:"backFaceCulling",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Orientation",options:r,target:t,propertyName:"sideOrientation",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),i.createElement(ge,{label:"Disable lighting",target:t,propertyName:"disableLighting",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Disable depth write",target:t,propertyName:"disableDepthWrite",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Need depth pre-pass",target:t,propertyName:"needDepthPrePass",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Wireframe",target:t,propertyName:"wireframe",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Point cloud",target:t,propertyName:"pointsCloud",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Point size",target:t,propertyName:"pointSize",minimum:0,maximum:100,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Z-offset",target:t,propertyName:"zOffset",minimum:-10,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSPARENCY"},i.createElement(Se,{label:"Alpha",target:t,propertyName:"alpha",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==t.transparencyMode&&i.createElement(xe,{label:"Transparency mode",options:n,target:t,propertyName:"transparencyMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({transparencyMode:t})}}),i.createElement(xe,{label:"Alpha mode",options:a,target:t,propertyName:"alphaMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({alphaMode:t})}}),i.createElement(ge,{label:"Separate culling pass",target:t,propertyName:"separateCullingPass",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Le=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),Re=function(e){function t(r){var n=e.call(this,r)||this;return n._id=t._IDGenerator++,n}return a(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"buttonLine"},i.createElement("label",{htmlFor:"file-upload"+this._id,className:"file-upload"},this.props.label),i.createElement("input",{ref:"upload",id:"file-upload"+this._id,type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t._IDGenerator=0,t}(i.Component),Ae=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.material,a=r.props.texture;return r.state={isDebugSelected:n&&n.reservedDataStore&&n.reservedDataStore.debugTexture===a},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onDebugSelectionChangeObservable&&(this._onDebugSelectionChangeObserver=this.props.onDebugSelectionChangeObservable.add((function(t){e.props.texture!==t&&e.setState({isDebugSelected:!1})})))},t.prototype.componentWillUnmount=function(){this.props.onDebugSelectionChangeObservable&&this._onDebugSelectionChangeObserver&&this.props.onDebugSelectionChangeObservable.remove(this._onDebugSelectionChangeObserver)},t.prototype.debugTexture=function(){if(this.props.customDebugAction){var e=!this.state.isDebugSelected;return this.props.customDebugAction(e),void this.setState({isDebugSelected:e})}var t=this.props.texture,r=this.props.material;if(r&&t){var n=r.getScene();if(r.reservedDataStore&&r.reservedDataStore.debugTexture===t){var a=r.reservedDataStore.debugMaterial;t.level=r.reservedDataStore.level;for(var o=0,i=n.meshes;o<i.length;o++){(h=i[o]).material===a&&(h.material=r)}return a.dispose(),r.reservedDataStore.debugTexture=null,r.reservedDataStore.debugMaterial=null,void this.setState({isDebugSelected:!1})}var l=r,s=!1;r.reservedDataStore&&r.reservedDataStore.debugTexture&&(l=r.reservedDataStore.debugMaterial,s=!0);var p=new c.StandardMaterial("debugMaterial",n);p.disableLighting=!0,p.sideOrientation=r.sideOrientation,p.emissiveTexture=t,p.forceDepthWrite=!0,p.reservedDataStore={hidden:!0};for(var u=0,d=n.meshes;u<d.length;u++){var h;(h=d[u]).material===l&&(h.material=p)}r.reservedDataStore||(r.reservedDataStore={}),r.reservedDataStore.debugTexture=t,r.reservedDataStore.debugMaterial=p,r.reservedDataStore.level=t.level,t.level=1,this.props.onDebugSelectionChangeObservable&&this.props.onDebugSelectionChangeObservable.notifyObservers(t),s&&l.dispose(),this.setState({isDebugSelected:!0})}},t.prototype.onLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.texture;this.props.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.updateTexture=function(e){var t=this,r=this.props.material;c.Tools.ReadFile(e,(function(e){var n=new Blob([e],{type:"octet/stream"}),a=URL.createObjectURL(n),o=new c.Texture(a,r.getScene(),!1,!1);t.props.propertyName?r[t.props.propertyName]=o:t.props.onTextureCreated&&t.props.onTextureCreated(o),t.forceUpdate()}),void 0,!0)},t.prototype.render=function(){var e=this,t=this.props.texture;return t?i.createElement("div",{className:"textureLinkLine"},!t.isCube&&this.props.material&&i.createElement("div",{className:this.state.isDebugSelected?"debug selected":"debug",onClick:function(){return e.debugTexture()},title:"Render as main texture"},i.createElement(O,{icon:pe})),i.createElement(de,{label:this.props.label,value:t.name,onLink:function(){return e.onLink()}})):this.props.propertyName||this.props.onTextureCreated?i.createElement(Re,{label:"Add "+this.props.label+" texture",onClick:function(t){return e.updateTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}):null},t}(i.Component),Ie=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return i.createElement(he,{globalState:this.props.globalState,title:"TEXTURES"},i.createElement(Ae,{label:"Diffuse",texture:e.diffuseTexture,propertyName:"diffuseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Specular",texture:e.specularTexture,propertyName:"specularTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Reflection",texture:e.reflectionTexture,propertyName:"reflectionTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Refraction",texture:e.refractionTexture,propertyName:"refractionTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Bump",texture:e.bumpTexture,propertyName:"bumpTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Opacity",texture:e.opacityTexture,propertyName:"opacityTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Ambient",texture:e.ambientTexture,propertyName:"ambientTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(ge,{label:"Use lightmap as shadowmap",target:e,propertyName:"useLightmapAsShadowmap ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),i.createElement(he,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Specular",target:e,propertyName:"specularColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Specular power",target:e,propertyName:"specularPower",minimum:0,maximum:128,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Emissive",target:e,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Ambient",target:e,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"LEVELS",closed:!0},e.diffuseTexture&&i.createElement(Se,{label:"Diffuse level",target:e.diffuseTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.specularTexture&&i.createElement(Se,{label:"Specular level",target:e.specularTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.reflectionTexture&&i.createElement(Se,{label:"Reflection level",target:e.reflectionTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.refractionTexture&&i.createElement(Se,{label:"Refraction level",target:e.refractionTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.emissiveTexture&&i.createElement(Se,{label:"Emissive level",target:e.emissiveTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.bumpTexture&&i.createElement(Se,{label:"Bump level",target:e.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.opacityTexture&&i.createElement(Se,{label:"Opacity level",target:e.opacityTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.ambientTexture&&i.createElement(Se,{label:"Ambient level",target:e.ambientTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.lightmapTexture&&i.createElement(Se,{label:"Lightmap level",target:e.lightmapTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),je=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"buttonLine"},i.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(i.Component);!function(e){e[e.R=0]="R",e[e.G=1]="G",e[e.B=2]="B",e[e.A=3]="A",e[e.All=4]="All"}(S||(S={}));var De=function(e){function t(t){var r=e.call(this,t)||this;return r.state={channel:S.All,face:0},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){return e.texture!==this.props.texture||t.channel!==this.state.channel||t.face!==this.state.face},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){var e=this,t=this.props.texture;!t.isReady()&&t._texture&&t._texture.onLoadedObservable.addOnce((function(){e.updatePreview()}));var r,n=t.getScene(),a=n.getEngine(),o=t.getSize(),i=o.width/o.height,l=this.props.width,s=l/i|1;if(t.isCube){var p=new c.PassCubePostProcess("pass",1,null,c.Texture.NEAREST_SAMPLINGMODE,a,!1,c.Constants.TEXTURETYPE_UNSIGNED_INT);p.face=this.state.face,r=p}else r=new c.PassPostProcess("pass",1,null,c.Texture.NEAREST_SAMPLINGMODE,a,!1,c.Constants.TEXTURETYPE_UNSIGNED_INT);if(!r.getEffect().isReady())return r.dispose(),void setTimeout((function(){return e.updatePreview()}),250);var u=this.refs.canvas;this.props.globalState&&(this.props.globalState.blockMutationUpdates=!0);var d=new c.RenderTargetTexture("temp",{width:l,height:s},n,!1);r.onApply=function(e){e.setTexture("textureSampler",t)};var h=d.getInternalTexture();if(h){n.postProcessManager.directRender([r],h);var b=4*l,m=s/2,f=a.readPixels(0,0,l,s);if(!t.isCube&&this.state.channel!=S.All)for(var g=0;g<l*s*4;g+=4)switch(this.state.channel){case S.R:f[g+1]=f[g],f[g+2]=f[g],f[g+3]=255;break;case S.G:f[g]=f[g+1],f[g+2]=f[g],f[g+3]=255;break;case S.B:f[g]=f[g+2],f[g+1]=f[g+2],f[g+3]=255;break;case S.A:f[g]=f[g+3],f[g+1]=f[g+3],f[g+2]=f[g+3],f[g+3]=255}if(t.invertY||t.isCube)for(g=0;g<m;g++)for(var v=0;v<b;v++){var y=v+g*b,C=v+(s-g-1)*b,E=f[y];f[y]=f[C],f[C]=E}u.width=l,u.height=s;var O=u.getContext("2d");if(O){var x=O.createImageData(l,s);x.data.set(f),O.putImageData(x,0,0)}a.unBindFramebuffer(h)}d.dispose(),r.dispose(),u.style.height=s+"px",this.props.globalState&&(this.props.globalState.blockMutationUpdates=!1)},t.prototype.render=function(){var e=this,t=this.props.texture;return i.createElement(i.Fragment,null,i.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&i.createElement("div",{className:"control3D"},i.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),i.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),i.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),i.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),i.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),i.createElement("button",{className:5===this.state.face?"nz command selected":"nz command",onClick:function(){return e.setState({face:5})}},"NZ")),!this.props.hideChannelSelect&&!t.isCube&&i.createElement("div",{className:"control"},i.createElement("button",{className:this.state.channel===S.R?"red command selected":"red command",onClick:function(){return e.setState({channel:S.R})}},"R"),i.createElement("button",{className:this.state.channel===S.G?"green command selected":"green command",onClick:function(){return e.setState({channel:S.G})}},"G"),i.createElement("button",{className:this.state.channel===S.B?"blue command selected":"blue command",onClick:function(){return e.setState({channel:S.B})}},"B"),i.createElement("button",{className:this.state.channel===S.A?"alpha command selected":"alpha command",onClick:function(){return e.setState({channel:S.A})}},"A"),i.createElement("button",{className:this.state.channel===S.All?"all command selected":"all command",onClick:function(){return e.setState({channel:S.All})}},"ALL")),i.createElement("canvas",{ref:"canvas",className:"preview"})),t.isRenderTarget&&i.createElement(je,{label:"Refresh",onClick:function(){e.updatePreview()}}))},t}(i.Component),ze=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1;var n=r.props.target[r.props.propertyName];return r.state={value:n?r.props.isInteger?n.toFixed(0):n.toFixed(r.props.digits||3):"0"},r._store=n,r}return a(t,e),t.prototype.componentWillUnmount=function(){this.unlock()},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=e.target[e.propertyName],n=r?this.props.isInteger?r.toFixed(0):r.toFixed(this.props.digits||3):"0";return n!==t.value&&(t.value=n,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t;/[^0-9\.\-]/g.test(e)||(t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.raiseOnPropertyChanged(t,this._store),this.props.target[this.props.propertyName]=t,this._store=t))},t.prototype.lock=function(){this.props.lockObject&&(this.props.lockObject.lock=!0)},t.prototype.unlock=function(){this.props.lockObject&&(this.props.lockObject.lock=!1)},t.prototype.render=function(){var e,t=this;return e=this.props.isInteger?parseInt(this.state.value):parseFloat(this.state.value),i.createElement("div",null,!this.props.useEuler&&i.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"value"},i.createElement("input",{type:"number",step:this.props.step||this.props.isInteger?"1":"0.01",className:"numeric-input",value:this.state.value,onBlur:function(){return t.unlock()},onFocus:function(){return t.lock()},onChange:function(e){return t.updateValue(e.target.value)}}))),this.props.useEuler&&i.createElement(Se,{label:this.props.label,minimum:0,maximum:360,step:.1,directValue:c.Tools.ToDegrees(e),onChange:function(e){return t.updateValue(c.Tools.ToRadians(e).toString())}}))},t}(i.Component),Fe=r(3),Ue=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.texture;if(!n||!n.rootContainer)return r;var a=n;return r._adtInstrumentation=new Fe.AdvancedDynamicTextureInstrumentation(a),r._adtInstrumentation.captureRenderTime=!0,r._adtInstrumentation.captureLayoutTime=!0,r}return a(t,e),t.prototype.componentWillUnmount=function(){this._adtInstrumentation&&(this._adtInstrumentation.dispose(),this._adtInstrumentation=null)},t.prototype.updateTexture=function(e){var t=this,r=this.props.texture;c.Tools.ReadFile(e,(function(n){var a=new Blob([n],{type:"octet/stream"}),o=URL.createObjectURL(a);if(r.isCube){var i=void 0;e.name.toLowerCase().indexOf(".dds")>0?i=".dds":e.name.toLowerCase().indexOf(".env")>0&&(i=".env"),r.updateURL(o,i,(function(){return t.foreceRefresh()}))}else r.updateURL(o,null,(function(){return t.foreceRefresh()}))}),void 0,!0)},t.prototype.foreceRefresh=function(){this.forceUpdate(),this.refs.textureLine.updatePreview()},t.prototype.render=function(){var e=this,t=this.props.texture,r=[{label:"Nearest",value:c.Texture.NEAREST_NEAREST},{label:"Nearest & linear mip",value:c.Texture.NEAREST_LINEAR},{label:"Linear",value:c.Texture.LINEAR_LINEAR_MIPLINEAR}],n=[{label:"Explicit",value:c.Texture.EXPLICIT_MODE},{label:"Cubic",value:c.Texture.CUBIC_MODE},{label:"Inverse cubic",value:c.Texture.INVCUBIC_MODE},{label:"Equirectangular",value:c.Texture.EQUIRECTANGULAR_MODE},{label:"Fixed equirectangular",value:c.Texture.FIXED_EQUIRECTANGULAR_MODE},{label:"Fixed equirectangular mirrored",value:c.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE},{label:"Planar",value:c.Texture.PLANAR_MODE},{label:"Projection",value:c.Texture.PROJECTION_MODE},{label:"Skybox",value:c.Texture.SKYBOX_MODE},{label:"Spherical",value:c.Texture.SPHERICAL_MODE}],a="",o=t.url;if(o)for(var l=o.length-1;l>=0&&"."!==o[l];l--)a=o[l]+a;else o="";var s="data"===o.substring(0,4)||"blob"===o.substring(0,4)?"":o;return i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"PREVIEW"},i.createElement(De,{ref:"textureLine",texture:t,width:256,height:256,globalState:this.props.globalState}),i.createElement(Re,{label:"Load texture from file",onClick:function(t){return e.updateTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),i.createElement(Ne,{label:"URL",value:s,lockObject:this.props.lockObject,onChange:function(r){t.updateURL(r),e.foreceRefresh()}})),i.createElement(_e,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"Width",value:t.getSize().width.toString()}),i.createElement(de,{label:"Height",value:t.getSize().height.toString()}),t.isRenderTarget&&i.createElement(je,{label:"Scale up",onClick:function(){var r=t.getScene();t.scale(2),setTimeout((function(){e.props.globalState.onSelectionChangedObservable.notifyObservers(r.getTextureByUniqueID(t.uniqueId))}))}}),t.isRenderTarget&&i.createElement(je,{label:"Scale down",onClick:function(){var r=t.getScene();t.scale(.5),setTimeout((function(){e.props.globalState.onSelectionChangedObservable.notifyObservers(r.getTextureByUniqueID(t.uniqueId))}))}}),a&&i.createElement(de,{label:"File format",value:a}),i.createElement(de,{label:"Unique ID",value:t.uniqueId.toString()}),i.createElement(de,{label:"Class",value:t.getClassName()}),i.createElement(de,{label:"Has alpha",value:t.hasAlpha?"Yes":"No"}),i.createElement(de,{label:"Is 3D",value:t.is3D?"Yes":"No"}),i.createElement(de,{label:"Is cube",value:t.isCube?"Yes":"No"}),i.createElement(de,{label:"Is render target",value:t.isRenderTarget?"Yes":"No"}),i.createElement(de,{label:"Has mipmaps",value:t.noMipmap?"No":"Yes"}),i.createElement(Se,{label:"UV set",target:t,propertyName:"coordinatesIndex",minimum:0,maximum:3,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}),i.createElement(xe,{label:"Mode",options:n,target:t,propertyName:"coordinatesMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.updateSamplingMode(e)}}),i.createElement(Se,{label:"Level",target:t,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.updateSamplingMode&&i.createElement(xe,{label:"Sampling",options:r,target:t,noDirectUpdate:!0,propertyName:"samplingMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.updateSamplingMode(e)}})),t.rootContainer&&i.createElement(he,{globalState:this.props.globalState,title:"ADVANCED TEXTURE PROPERTIES"},i.createElement(be,{label:"Last layout time",value:this._adtInstrumentation.renderTimeCounter.current,units:"ms"}),i.createElement(be,{label:"Last render time",value:this._adtInstrumentation.layoutTimeCounter.current,units:"ms"}),i.createElement(Se,{label:"Render scale",minimum:.1,maximum:5,step:.1,target:t,propertyName:"renderScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Premultiply alpha",target:t,propertyName:"premulAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Ideal width",target:t,propertyName:"idealWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Ideal height",target:t,propertyName:"idealHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Use smallest ideal",target:t,propertyName:"useSmallestIdeal",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Render at ideal size",target:t,propertyName:"renderAtIdealSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Invalidate Rect optimization",target:t,propertyName:"useInvalidateRectOptimization",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORM"},!t.isCube&&i.createElement("div",null,i.createElement(ze,{lockObject:this.props.lockObject,label:"U offset",target:t,propertyName:"uOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"V offset",target:t,propertyName:"vOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"U scale",target:t,propertyName:"uScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"V scale",target:t,propertyName:"vScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"U angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"uAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"V angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"vAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"W angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"wAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Clamp U",isSelected:function(){return t.wrapU===c.Texture.CLAMP_ADDRESSMODE},onSelect:function(e){return t.wrapU=e?c.Texture.CLAMP_ADDRESSMODE:c.Texture.WRAP_ADDRESSMODE}}),i.createElement(ge,{label:"Clamp V",isSelected:function(){return t.wrapV===c.Texture.CLAMP_ADDRESSMODE},onSelect:function(e){return t.wrapV=e?c.Texture.CLAMP_ADDRESSMODE:c.Texture.WRAP_ADDRESSMODE}})),t.isCube&&i.createElement("div",null,i.createElement(Se,{label:"Rotation Y",useEuler:this.props.globalState.onlyUseEulers,minimum:0,maximum:2*Math.PI,step:.1,target:t,propertyName:"rotationY"}))))},t}(i.Component),Ve=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.props.target[r.props.propertyName].clone()},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=e.target[e.propertyName];return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateStateX=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].x=e,this.state.value.x=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateY=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].y=e,this.state.value.y=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.render=function(){var e=this,t=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee});return i.createElement("div",{className:"vector3Line"},i.createElement("div",{className:"firstLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),i.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),i.createElement(Pe,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(i.Component),He=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.switchAmbientMode=function(e){this.props.material.debugMode=e?21:0},t.prototype.switchMetallicMode=function(e){this.props.material.debugMode=e?62:0},t.prototype.switchRoughnessMode=function(e){this.props.material.debugMode=e?63:0},t.prototype.renderTextures=function(e){var t=this,r=this.props.material;return i.createElement(he,{globalState:this.props.globalState,title:"CHANNELS"},i.createElement(Ae,{label:"Albedo",texture:r.albedoTexture,propertyName:"albedoTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{customDebugAction:function(e){return t.switchMetallicMode(e)},label:"Metallic",texture:r.metallicTexture,propertyName:"metallicTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{customDebugAction:function(e){return t.switchRoughnessMode(e)},label:"Roughness",texture:r.metallicTexture,propertyName:"metallicTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Reflection",texture:r.reflectionTexture,propertyName:"reflectionTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Refraction",texture:r.refractionTexture,propertyName:"refractionTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Micro-surface",texture:r.microSurfaceTexture,propertyName:"microSurfaceTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Bump",texture:r.bumpTexture,propertyName:"bumpTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Emissive",texture:r.emissiveTexture,propertyName:"emissiveTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Opacity",texture:r.opacityTexture,propertyName:"opacityTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{customDebugAction:function(e){return t.switchAmbientMode(e)},label:"Ambient",texture:r.ambientTexture,propertyName:"ambientTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(Ae,{label:"Lightmap",texture:r.lightmapTexture,propertyName:"lightmapTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),i.createElement(ge,{label:"Use lightmap as shadowmap",target:r,propertyName:"useLightmapAsShadowmap ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e=this,t=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(this._onDebugSelectionChangeObservable),i.createElement(he,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},i.createElement(ke,{label:"Albedo",target:t,propertyName:"albedoColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Reflectivity",target:t,propertyName:"reflectivityColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Micro-surface",target:t,propertyName:"microSurface",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Emissive",target:t,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Ambient",target:t,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Use physical light falloff",target:t,propertyName:"usePhysicalLightFalloff ",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"METALLIC WORKFLOW"},i.createElement(Se,{label:"Metallic",target:t,propertyName:"metallic",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Roughness",target:t,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"CLEAR COAT"},i.createElement(ge,{label:"Enabled",target:t.clearCoat,propertyName:"isEnabled",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearCoat.isEnabled&&i.createElement("div",{className:"fragment"},i.createElement(Se,{label:"Intensity",target:t.clearCoat,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Roughness",target:t.clearCoat,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"IOR",target:t.clearCoat,propertyName:"indexOfRefraction",minimum:1,maximum:3,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ae,{label:"Texture",texture:t.clearCoat.texture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),i.createElement(Ae,{label:"Bump",texture:t.clearCoat.bumpTexture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),t.clearCoat.bumpTexture&&i.createElement(Se,{label:"Bump strength",target:t.clearCoat.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Tint",target:t.clearCoat,propertyName:"isTintEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearCoat.isEnabled&&t.clearCoat.isTintEnabled&&i.createElement(ke,{label:"Tint Color",target:t.clearCoat,propertyName:"tintColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearCoat.isEnabled&&t.clearCoat.isTintEnabled&&i.createElement(Se,{label:"At Distance",target:t.clearCoat,propertyName:"tintColorAtDistance",minimum:0,maximum:20,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearCoat.isEnabled&&t.clearCoat.isTintEnabled&&i.createElement(Se,{label:"Tint Thickness",target:t.clearCoat,propertyName:"tintThickness",minimum:0,maximum:20,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearCoat.isEnabled&&t.clearCoat.isTintEnabled&&i.createElement(Ae,{label:"Tint Texture",texture:t.clearCoat.tintTexture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"ANISOTROPIC"},i.createElement(ge,{label:"Enabled",target:t.anisotropy,propertyName:"isEnabled",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.anisotropy.isEnabled&&i.createElement("div",{className:"fragment"},i.createElement(Se,{label:"Intensity",target:t.anisotropy,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ve,{label:"Direction",target:t.anisotropy,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ae,{label:"Texture",texture:t.anisotropy.texture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"SHEEN"},i.createElement(ge,{label:"Enabled",target:t.sheen,propertyName:"isEnabled",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.sheen.isEnabled&&i.createElement("div",{className:"fragment"},i.createElement(ge,{label:"Link to Albedo",target:t.sheen,propertyName:"linkSheenWithAlbedo",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Intensity",target:t.sheen,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Color",target:t.sheen,propertyName:"color",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ae,{label:"Texture",texture:t.sheen.texture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"SUBSURFACE"},i.createElement(Ae,{label:"Thickness",texture:t.subSurface.thicknessTexture,material:t,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),i.createElement(Se,{label:"Min Thickness",target:t.subSurface,propertyName:"minimumThickness",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Max Thickness",target:t.subSurface,propertyName:"maximumThickness",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Mask From Thickness",target:t.subSurface,propertyName:"useMaskFromThicknessTexture",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Tint Color",target:t.subSurface,propertyName:"tintColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Refraction Enabled",target:t.subSurface,propertyName:"isRefractionEnabled",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.subSurface.isRefractionEnabled&&i.createElement("div",{className:"fragment"},i.createElement(Se,{label:"Intensity",target:t.subSurface,propertyName:"refractionIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Index of Refraction",target:t.subSurface,propertyName:"indexOfRefraction",minimum:1,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Tint at Distance",target:t.subSurface,propertyName:"tintColorAtDistance",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Link refraction with transparency",target:t.subSurface,propertyName:"linkRefractionWithTransparency",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(ge,{label:"Translucency Enabled",target:t.subSurface,propertyName:"isTranslucencyEnabled",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.subSurface.isTranslucencyEnabled&&i.createElement("div",{className:"fragment"},i.createElement(Se,{label:"Intensity",target:t.subSurface,propertyName:"translucencyIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Diffusion Distance",target:t.subSurface,propertyName:"diffusionDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"LEVELS",closed:!0},i.createElement(Se,{label:"Environment",target:t,propertyName:"environmentIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Specular",target:t,propertyName:"specularIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Emissive",target:t,propertyName:"emissiveIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Direct",target:t,propertyName:"directIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.bumpTexture&&i.createElement(Se,{label:"Bump strength",target:t.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.ambientTexture&&i.createElement(Se,{label:"Ambient strength",target:t,propertyName:"ambientTextureStrength",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.reflectionTexture&&i.createElement(Se,{label:"Reflection strength",target:t.reflectionTexture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"RENDERING",closed:!0},i.createElement(ge,{label:"Alpha from albedo",target:t,propertyName:"useAlphaFromAlbedoTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Ambient in grayscale",target:t,propertyName:"useAmbientInGrayScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Radiance over alpha",target:t,propertyName:"useRadianceOverAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Micro-surface from ref. map alpha",target:t,propertyName:"useMicroSurfaceFromReflectivityMapAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Specular over alpha",target:t,propertyName:"useSpecularOverAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Specular anti-aliasing",target:t,propertyName:"enableSpecularAntiAliasing",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"ADVANCED",closed:!0},i.createElement(ge,{label:"Energy Conservation",target:t.brdf,propertyName:"useEnergyConservation",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Spherical Harmonics",target:t.brdf,propertyName:"useSphericalHarmonics",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Radiance occlusion",target:t,propertyName:"useRadianceOcclusion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Horizon occlusion ",target:t,propertyName:"useHorizonOcclusion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Unlit",target:t,propertyName:"unlit",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"DEBUG",closed:!0},i.createElement(xe,{label:"Debug mode",options:[{label:"None",value:0},{label:"Normalized position",value:1},{label:"Normals",value:2},{label:"Tangents",value:3},{label:"Bitangents",value:4},{label:"Bump Normals",value:5},{label:"UV1",value:6},{label:"UV2",value:7},{label:"ClearCoat Normals",value:8},{label:"ClearCoat Tangents",value:9},{label:"ClearCoat Bitangents",value:10},{label:"Anisotropic Normals",value:11},{label:"Anisotropic Tangents",value:12},{label:"Anisotropic Bitangents",value:13},{label:"Albdeo Map",value:20},{label:"Ambient Map",value:21},{label:"Opacity Map",value:22},{label:"Emissive Map",value:23},{label:"Light Map",value:24},{label:"Metallic Map",value:25},{label:"Reflectivity Map",value:26},{label:"ClearCoat Map",value:27},{label:"ClearCoat Tint Map",value:28},{label:"Sheen Map",value:29},{label:"Anisotropic Map",value:30},{label:"Thickness Map",value:31},{label:"Env Refraction",value:40},{label:"Env Reflection",value:41},{label:"Env Clear Coat",value:42},{label:"Direct Diffuse",value:50},{label:"Direct Specular",value:51},{label:"Direct Clear Coat",value:52},{label:"Direct Sheen",value:53},{label:"Env Irradiance",value:54},{label:"Surface Albedo",value:60},{label:"Reflectance 0",value:61},{label:"Metallic",value:62},{label:"Roughness",value:63},{label:"AlphaG",value:64},{label:"NdotV",value:65},{label:"ClearCoat Color",value:66},{label:"ClearCoat Roughness",value:67},{label:"ClearCoat NdotV",value:68},{label:"Transmittance",value:69},{label:"Refraction Transmittance",value:70},{label:"SEO",value:80},{label:"EHO",value:81},{label:"Energy Factor",value:82},{label:"Specular Reflectance",value:83},{label:"Clear Coat Reflectance",value:84},{label:"Sheen Reflectance",value:85},{label:"Luminance Over Alpha",value:86},{label:"Alpha",value:87}],target:t,propertyName:"debugMode"}),i.createElement(Se,{label:"Split position",target:t,propertyName:"debugLimit",minimum:-1,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Output factor",target:t,propertyName:"debugFactor",minimum:0,maximum:5,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Ge=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isSelected:r.props.isSelected()},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this._onSelectionChangedObserver=this.props.onSelectionChangedObservable.add((function(t){e.setState({isSelected:t===e})}))},t.prototype.componentWillUnmount=function(){this._onSelectionChangedObserver&&(this.props.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onSelectionChangedObserver=null)},t.prototype.onChange=function(){this.props.onSelect(),this.props.onSelectionChangedObservable.notifyObservers(this)},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"radioLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"radioContainer"},i.createElement("input",{id:this.props.label,className:"radio",type:"radio",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),i.createElement("label",{htmlFor:this.props.label,className:"labelForRadio"})))},t}(i.Component),Be=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:r.props.scene.fogMode},r}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.scene,r=[{label:"None",value:c.Scene.FOGMODE_NONE},{label:"Linear",value:c.Scene.FOGMODE_LINEAR},{label:"Exp",value:c.Scene.FOGMODE_EXP},{label:"Exp2",value:c.Scene.FOGMODE_EXP2}];return i.createElement("div",null,i.createElement(xe,{label:"Fog mode",options:r,target:t,propertyName:"fogMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),this.state.mode!==c.Scene.FOGMODE_NONE&&i.createElement(ke,{label:"Fog color",target:t,propertyName:"fogColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(this.state.mode===c.Scene.FOGMODE_EXP||this.state.mode===c.Scene.FOGMODE_EXP2)&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Fog density",target:t,propertyName:"fogDensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.state.mode===c.Scene.FOGMODE_LINEAR&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Fog start",target:t,propertyName:"fogStart",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.state.mode===c.Scene.FOGMODE_LINEAR&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Fog end",target:t,propertyName:"fogEnd",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),We=function(e){function t(t){var r=e.call(this,t)||this;return r._renderingModeGroupObservable=new c.Observable,r}return a(t,e),t.prototype.setRenderingModes=function(e,t){var r=this.props.scene;r.forcePointsCloud=e,r.forceWireframe=t},t.prototype.switchIBL=function(){var e=this.props.scene;e.environmentTexture?(this._storedEnvironmentTexture=e.environmentTexture,e.environmentTexture=null):(e.environmentTexture=this._storedEnvironmentTexture,this._storedEnvironmentTexture=null)},t.prototype.updateEnvironmentTexture=function(e){var t=e.name.toLowerCase().indexOf(".dds")>0,r=e.name.toLowerCase().indexOf(".env")>0;if(t||r){var n=this.props.scene;c.Tools.ReadFile(e,(function(e){var r=new Blob([e],{type:"octet/stream"}),a=URL.createObjectURL(r);n.environmentTexture=t?c.CubeTexture.CreateFromPrefilteredData(a,n,".dds"):new c.CubeTexture(a,n,void 0,void 0,void 0,(function(){}),(function(e){e&&console.error(e)}),void 0,void 0,".env")}),void 0,!0)}else console.error("Unable to update environment texture. Please select a dds or env file.")},t.prototype.updateGravity=function(e){this.props.scene.getPhysicsEngine().setGravity(e)},t.prototype.updateTimeStep=function(e){this.props.scene.getPhysicsEngine().setTimeStep(e)},t.prototype.normalizeScene=function(){this.props.scene.meshes.forEach((function(e){e.normalizeToUnitCube(!0),e.computeWorldMatrix(!0)}))},t.prototype.render=function(){var e=this,t=this.props.scene,r=t.getPhysicsEngine(),n=null;r&&(n={gravity:r.gravity,timeStep:r.getTimeStep()});var a=t.imageProcessingConfiguration,o=[{label:"Standard",value:c.ImageProcessingConfiguration.TONEMAPPING_STANDARD},{label:"ACES",value:c.ImageProcessingConfiguration.TONEMAPPING_ACES}],l=[{label:"Multiply",value:c.ImageProcessingConfiguration.VIGNETTEMODE_MULTIPLY},{label:"Opaque",value:c.ImageProcessingConfiguration.VIGNETTEMODE_OPAQUE}];return i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"RENDERING MODE"},i.createElement(Ge,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Point",isSelected:function(){return t.forcePointsCloud},onSelect:function(){return e.setRenderingModes(!0,!1)}}),i.createElement(Ge,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Wireframe",isSelected:function(){return t.forceWireframe},onSelect:function(){return e.setRenderingModes(!1,!0)}}),i.createElement(Ge,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Solid",isSelected:function(){return!t.forcePointsCloud&&!t.forceWireframe},onSelect:function(){return e.setRenderingModes(!1,!1)}})),i.createElement(he,{globalState:this.props.globalState,title:"ENVIRONMENT"},i.createElement(ke,{label:"Clear color",target:t,propertyName:"clearColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Clear color enabled",target:t,propertyName:"autoClear",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Ambient color",target:t,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Environment texture (IBL)",isSelected:function(){return null!=t.environmentTexture},onSelect:function(){return e.switchIBL()}}),t.environmentTexture&&i.createElement(Ae,{label:"Env. texture",texture:t.environmentTexture,onSelectionChangedObservable:this.props.onSelectionChangedObservable}),i.createElement(Re,{label:"Update environment texture",onClick:function(t){return e.updateEnvironmentTexture(t)},accept:".dds, .env"}),i.createElement(Se,{minimum:0,maximum:2,step:.01,label:"IBL Intensity",target:t,propertyName:"environmentIntensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Be,{globalState:this.props.globalState,lockObject:this.props.lockObject,scene:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"MATERIAL IMAGE PROCESSING"},i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Contrast",target:a,propertyName:"contrast",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Exposure",target:a,propertyName:"exposure",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Tone mapping",target:a,propertyName:"toneMappingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Tone mapping type",options:o,target:a,propertyName:"toneMappingType",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),i.createElement(ge,{label:"Vignette",target:a,propertyName:"vignetteEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Vignette weight",target:a,propertyName:"vignetteWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette stretch",target:a,propertyName:"vignetteStretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:Math.PI,step:.1,label:"Vignette FOV",target:a,propertyName:"vignetteCameraFov",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette center X",target:a,propertyName:"vignetteCentreX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette center Y",target:a,propertyName:"vignetteCentreY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Vignette color",target:a,propertyName:"vignetteColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Vignette blend mode",options:l,target:a,propertyName:"vignetteBlendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}})),null!==n&&i.createElement(he,{globalState:this.props.globalState,title:"PHYSICS",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"Time step",target:n,propertyName:"timeStep",onChange:function(t){return e.updateTimeStep(t)},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Gravity",target:n,propertyName:"gravity",onChange:function(t){return e.updateGravity(t)},onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},i.createElement(we,{label:"Gravity",target:t,propertyName:"gravity",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"SHADOWS",closed:!0},i.createElement(je,{label:"Normalize scene",onClick:function(){return e.normalizeScene()}})))},t}(i.Component),Ye=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return i.createElement("div",null,i.createElement(_e,{globalState:this.props.globalState,target:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:e.id}),i.createElement(de,{label:"Unique ID",value:e.uniqueId.toString()}),i.createElement(de,{label:"Class",value:e.getClassName()}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Intensity",target:e,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Xe=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return i.createElement("div",{className:"pane"},i.createElement(Ye,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SETUP"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Ground",target:e,propertyName:"groundColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),qe=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.createShadowGenerator=function(){var e=this.props.light,t=e.getScene(),r=new c.ShadowGenerator(512,e);t.meshes.forEach((function(e){r.addShadowCaster(e),e.receiveShadows=!0})),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.light,r=t.getShadowGenerator()||null,n=[{label:"None",value:c.ShadowGenerator.FILTER_NONE},{label:"PCF",value:c.ShadowGenerator.FILTER_PCF},{label:"PCSS",value:c.ShadowGenerator.FILTER_PCSS},{label:"Poisson",value:c.ShadowGenerator.FILTER_POISSONSAMPLING},{label:"Exponential",value:c.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP},{label:"Blurred exponential",value:c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP},{label:"Close exponential",value:c.ShadowGenerator.FILTER_CLOSEEXPONENTIALSHADOWMAP},{label:"Blurred close exponential",value:c.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP}],a=[{label:"Low",value:c.ShadowGenerator.QUALITY_LOW},{label:"Medium",value:c.ShadowGenerator.QUALITY_MEDIUM},{label:"High",value:c.ShadowGenerator.QUALITY_HIGH}],o=r?r.filter:0;return i.createElement("div",null,i.createElement(he,{globalState:this.props.globalState,title:"SHADOWS"},i.createElement(ge,{label:"Shadows enabled",target:t,propertyName:"shadowEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Shadows near plane",target:t,propertyName:"shadowMinZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Shadows far plane",target:t,propertyName:"shadowMaxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),null==r&&i.createElement(he,{globalState:this.props.globalState,title:"SHADOW GENERATOR"},i.createElement(je,{label:"Create generator",onClick:function(){return e.createShadowGenerator()}})),null!==r&&i.createElement(he,{globalState:this.props.globalState,title:"SHADOW GENERATOR"},i.createElement(ze,{lockObject:this.props.lockObject,digits:4,step:"0.0001",label:"Bias",target:r,propertyName:"bias",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Normal bias",target:r,propertyName:"normalBias",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Darkness",target:r,minimum:0,maximum:1,step:.01,propertyName:"darkness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Allow transparent shadows",target:r,propertyName:"transparencyShadow",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Filter",options:n,onSelect:function(){e.forceUpdate()},target:r,propertyName:"filter",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_PCF||o===c.ShadowGenerator.FILTER_PCSS)&&i.createElement(xe,{label:"Filtering quality",options:a,onSelect:function(){e.forceUpdate()},target:r,propertyName:"filteringQuality",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),o===c.ShadowGenerator.FILTER_PCSS&&i.createElement(Se,{label:"Penumbra ratio",minimum:0,maximum:.5,step:.001,target:r,propertyName:"contactHardeningLightSizeUVRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||o===c.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&i.createElement(ge,{label:"Use kernel blur",target:r,propertyName:"useKernelBlur",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||o===c.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&!r.useKernelBlur&&i.createElement(Se,{label:"Blur box offset",target:r,propertyName:"blurBoxOffset",minimum:1,maximum:64,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||o===c.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&r.useKernelBlur&&i.createElement(Se,{label:"Blur kernel",target:r,propertyName:"blurKernel",minimum:1,maximum:64,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||o===c.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP)&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Depth scale",target:r,propertyName:"depthScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(o===c.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||o===c.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP)&&i.createElement(Se,{label:"Blur scale",target:r,propertyName:"blurScale",minimum:1,maximum:4,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Ke=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return i.createElement("div",{className:"pane"},i.createElement(Ye,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SETUP"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(qe,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),Qe=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:r.props.camera.mode},r}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.camera,r=[{label:"Perspective",value:c.Camera.PERSPECTIVE_CAMERA},{label:"Orthographic",value:c.Camera.ORTHOGRAPHIC_CAMERA}];return i.createElement("div",null,i.createElement(_e,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:t.id}),i.createElement(de,{label:"Unique ID",value:t.uniqueId.toString()}),i.createElement(de,{label:"Class",value:t.getClassName()}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Near plane",target:t,propertyName:"minZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Far plane",target:t,propertyName:"maxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Inertia",target:t,propertyName:"inertia",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Mode",options:r,target:t,propertyName:"mode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),t.mode===c.Camera.PERSPECTIVE_CAMERA&&i.createElement(Se,{label:"Field of view",target:t,useEuler:this.props.globalState.onlyUseEulers,propertyName:"fov",minimum:.1,maximum:Math.PI,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===c.Camera.ORTHOGRAPHIC_CAMERA&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Left",target:t,propertyName:"orthoLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===c.Camera.ORTHOGRAPHIC_CAMERA&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Top",target:t,propertyName:"orthoTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===c.Camera.ORTHOGRAPHIC_CAMERA&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Right",target:t,propertyName:"orthoRight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===c.Camera.ORTHOGRAPHIC_CAMERA&&i.createElement(ze,{lockObject:this.props.lockObject,label:"Bottom",target:t,propertyName:"orthoBottom",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),$e=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.camera;return i.createElement("div",{className:"pane"},i.createElement(Qe,{globalState:this.props.globalState,lockObject:this.props.lockObject,camera:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMS"},i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"CONTROLS",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"Angular sensitivity",target:e,propertyName:"angularSensibility",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Speed",target:e,propertyName:"speed",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},i.createElement(ge,{label:"Check collisions",target:e,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Apply gravity",target:e,propertyName:"applyGravity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Ellipsoid",target:e,propertyName:"ellipsoid",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Ellipsoid offset",target:e,propertyName:"ellipsoidOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Ze=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.camera;return i.createElement("div",{className:"pane"},i.createElement(Qe,{globalState:this.props.globalState,lockObject:this.props.lockObject,camera:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMS"},i.createElement(we,{label:"Target",target:e,propertyName:"target",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Alpha",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"alpha",minimum:e.lowerAlphaLimit||0,maximum:e.upperAlphaLimit||2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Beta",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"beta",minimum:e.lowerAlphaLimit||0,maximum:e.upperBetaLimit||2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"CONTROLS",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"Angular sensitivity X",target:e,propertyName:"angularSensibilityX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Angular sensitivity Y",target:e,propertyName:"angularSensibilityY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Panning sensitivity",target:e,propertyName:"panningSensibility",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Pinch delta percentage",target:e,propertyName:"pinchDeltaPercentage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Wheel delta percentage",target:e,propertyName:"wheelDeltaPercentage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Speed",target:e,propertyName:"speed",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},i.createElement(ge,{label:"Check collisions",target:e,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Collision radius",target:e,propertyName:"collisionRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"LIMITS",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"Lower alpha limit",target:e,propertyName:"lowerAlphaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Upper alpha limit",target:e,propertyName:"upperAlphaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Lower beta limit",target:e,propertyName:"lowerBetaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Upper beta limit",target:e,propertyName:"upperBetaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Lower radius limit",target:e,propertyName:"lowerRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Upper radius limit",target:e,propertyName:"upperRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"BEHAVIORS",closed:!0},i.createElement(ge,{label:"Auto rotation",target:e,propertyName:"useAutoRotationBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Bouncing",target:e,propertyName:"useBouncingBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Framing",target:e,propertyName:"useFramingBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Je=function(e){function t(t){var r=e.call(this,t)||this;return r.state={displayNormals:!1,displayVertexColors:!1},r}return a(t,e),t.prototype.renderWireframeOver=function(){var e=this.props.mesh,t=e.getScene();if(e.reservedDataStore&&e.reservedDataStore.wireframeOver)return e.reservedDataStore.wireframeOver.dispose(!1,!0),e.reservedDataStore.wireframeOver=null,void this.forceUpdate();var r=e.clone();r.reservedDataStore={hidden:!0},r.parent=e,r.position=c.Vector3.Zero(),r.scaling=new c.Vector3(1,1,1),r.rotation=c.Vector3.Zero(),r.rotationQuaternion=null;var n=new c.StandardMaterial("wireframeOver",t);n.reservedDataStore={hidden:!0},r.material=n,n.zOffset=1,n.disableLighting=!0,n.backFaceCulling=!1,n.emissiveColor=c.Color3.White(),n.wireframe=!0,e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.wireframeOver=r,this.forceUpdate()},t.prototype.renderNormalVectors=function(){var e=this.props.mesh,t=e.getScene();if(e.reservedDataStore&&e.reservedDataStore.normalLines)return e.reservedDataStore.normalLines.dispose(),e.reservedDataStore.normalLines=null,void this.forceUpdate();for(var r=e.getVerticesData(c.VertexBuffer.NormalKind),n=e.getVerticesData(c.VertexBuffer.PositionKind),a=c.Color3.White(),o=e.getBoundingInfo(),i=.05*o.maximum.subtractToRef(o.minimum,c.TmpVectors.Vector3[0]).length(),l=[],s=0;s<r.length;s+=3){var p=c.Vector3.FromArray(n,s),u=p.add(c.Vector3.FromArray(r,s).scaleInPlace(i));l.push([p,u])}var d=c.LinesBuilder.CreateLineSystem("normalLines",{lines:l},t);d.color=a,d.parent=e,d.reservedDataStore={hidden:!0},e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.normalLines=d,this.forceUpdate()},t.prototype.displayNormals=function(){var e=this,t=this.props.mesh,r=t.getScene();if(t.material&&"NormalMaterial"===t.material.getClassName())t.material.dispose(),t.material=t.reservedDataStore.originalMaterial,t.reservedDataStore.originalMaterial=null,this.setState({displayNormals:!1});else{if(!BABYLON.NormalMaterial)return this.setState({displayNormals:!0}),void c.Tools.LoadScript("https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.js",(function(){e.displayNormals()}));t.reservedDataStore||(t.reservedDataStore={}),t.reservedDataStore.originalMaterial||(t.reservedDataStore.originalMaterial=t.material);var n=new BABYLON.NormalMaterial("normalMaterial",r);n.disableLighting=!0,t.material&&(n.sideOrientation=t.material.sideOrientation),n.reservedDataStore={hidden:!0},t.material=n,this.setState({displayNormals:!0})}},t.prototype.displayVertexColors=function(){var e=this.props.mesh,t=e.getScene();if(e.material&&e.material.reservedDataStore&&e.material.reservedDataStore.isVertexColorMaterial)e.material.dispose(),e.material=e.reservedDataStore.originalMaterial,e.reservedDataStore.originalMaterial=null,this.setState({displayVertexColors:!1});else{e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.originalMaterial||(e.reservedDataStore.originalMaterial=e.material);var r=new c.StandardMaterial("vertex colors",t);r.disableLighting=!0,r.emissiveColor=c.Color3.White(),e.material&&(r.sideOrientation=e.material.sideOrientation),r.reservedDataStore={hidden:!0,isVertexColorMaterial:!0},e.useVertexColors=!0,e.material=r,this.setState({displayVertexColors:!0})}},t.prototype.onMaterialLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.mesh;this.props.onSelectionChangedObservable.notifyObservers(e.material)}},t.prototype.onSourceMeshLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.mesh;this.props.onSelectionChangedObservable.notifyObservers(e.sourceMesh)}},t.prototype.convertPhysicsTypeToString=function(){switch(this.props.mesh.physicsImpostor.type){case c.PhysicsImpostor.NoImpostor:return"No impostor";case c.PhysicsImpostor.SphereImpostor:return"Sphere";case c.PhysicsImpostor.BoxImpostor:return"Box";case c.PhysicsImpostor.PlaneImpostor:return"Plane";case c.PhysicsImpostor.MeshImpostor:return"Mesh";case c.PhysicsImpostor.CylinderImpostor:return"Cylinder";case c.PhysicsImpostor.ParticleImpostor:return"Particle";case c.PhysicsImpostor.HeightmapImpostor:return"Heightmap";case c.PhysicsImpostor.ConvexHullImpostor:return"Convex hull";case c.PhysicsImpostor.RopeImpostor:return"Rope";case c.PhysicsImpostor.SoftbodyImpostor:return"Soft body"}return"Unknown"},t.prototype.render=function(){var e=this,t=this.props.mesh,r=t.getScene(),n=null!=t.material&&"NormalMaterial"===t.material.getClassName(),a=!(null==t.material||!t.material.reservedDataStore||!t.material.reservedDataStore.isVertexColorMaterial),o=!(!t.reservedDataStore||!t.reservedDataStore.normalLines),l=!(!t.reservedDataStore||!t.reservedDataStore.wireframeOver),s=[];if(t.morphTargetManager)for(var p=0;p<t.morphTargetManager.numTargets;p++)s.push(t.morphTargetManager.getTarget(p));var u=[{label:"Accurate",value:c.AbstractMesh.OCCLUSION_ALGORITHM_TYPE_ACCURATE},{label:"Conservative",value:c.AbstractMesh.OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE}],d=[{label:"None",value:c.AbstractMesh.OCCLUSION_TYPE_NONE},{label:"Optimistic",value:c.AbstractMesh.OCCLUSION_TYPE_OPTIMISTIC},{label:"Strict",value:c.AbstractMesh.OCCLUSION_TYPE_STRICT}];return i.createElement("div",{className:"pane"},i.createElement(_e,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:t.id}),i.createElement(de,{label:"Unique ID",value:t.uniqueId.toString()}),i.createElement(de,{label:"Class",value:t.getClassName()}),i.createElement(de,{label:"Vertices",value:t.getTotalVertices().toString()}),i.createElement(de,{label:"Faces",value:(t.getTotalIndices()/3).toFixed(0)}),i.createElement(de,{label:"Sub-meshes",value:t.subMeshes?t.subMeshes.length.toString():"0"}),i.createElement(de,{label:"Has skeleton",value:t.skeleton?"Yes":"No"}),i.createElement(ge,{label:"Is enabled",isSelected:function(){return t.isEnabled()},onSelect:function(e){return t.setEnabled(e)}}),i.createElement(ge,{label:"Is pickable",target:t,propertyName:"isPickable",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.material&&(!t.material.reservedDataStore||!t.material.reservedDataStore.hidden)&&i.createElement(de,{label:"Material",value:t.material.name,onLink:function(){return e.onMaterialLink()}}),t.isAnInstance&&i.createElement(de,{label:"Source",value:t.sourceMesh.name,onLink:function(){return e.onSourceMeshLink()}})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMS"},i.createElement(we,{label:"Position",target:t,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!t.rotationQuaternion&&i.createElement(we,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.rotationQuaternion&&i.createElement(Te,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Scaling",target:t,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"DISPLAY",closed:!0},!t.isAnInstance&&i.createElement(Se,{label:"Visibility",target:t,propertyName:"visibility",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Alpha index",target:t,propertyName:"alphaIndex",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Receive shadows",target:t,propertyName:"receiveShadows",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.isVerticesDataPresent(c.VertexBuffer.ColorKind)&&i.createElement(ge,{label:"Use vertex colors",target:t,propertyName:"useVertexColors",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.fogMode!==c.Scene.FOGMODE_NONE&&i.createElement(ge,{label:"Apply fog",target:t,propertyName:"applyFog",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!t.parent&&i.createElement(ge,{label:"Infinite distance",target:t,propertyName:"infiniteDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),null!=t.morphTargetManager&&i.createElement(he,{globalState:this.props.globalState,title:"MORPH TARGETS",closed:!0},s.map((function(t,r){return i.createElement(Se,{label:t.name,target:t,propertyName:"influence",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:e.props.onPropertyChangedObservable})}))),i.createElement(he,{globalState:this.props.globalState,title:"ADVANCED",closed:!0},t.useBones&&i.createElement(ge,{label:"Compute bones using shaders",target:t,propertyName:"computeBonesUsingShaders",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Collisions",target:t,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(de,{label:"Has normals",value:t.isVerticesDataPresent(c.VertexBuffer.NormalKind)?"Yes":"No"}),i.createElement(de,{label:"Has vertex colors",value:t.isVerticesDataPresent(c.VertexBuffer.ColorKind)?"Yes":"No"}),i.createElement(de,{label:"Has UV set 0",value:t.isVerticesDataPresent(c.VertexBuffer.UVKind)?"Yes":"No"}),i.createElement(de,{label:"Has UV set 1",value:t.isVerticesDataPresent(c.VertexBuffer.UV2Kind)?"Yes":"No"}),i.createElement(de,{label:"Has UV set 2",value:t.isVerticesDataPresent(c.VertexBuffer.UV3Kind)?"Yes":"No"}),i.createElement(de,{label:"Has UV set 3",value:t.isVerticesDataPresent(c.VertexBuffer.UV4Kind)?"Yes":"No"}),i.createElement(de,{label:"Has tangents",value:t.isVerticesDataPresent(c.VertexBuffer.TangentKind)?"Yes":"No"}),i.createElement(de,{label:"Has matrix weights",value:t.isVerticesDataPresent(c.VertexBuffer.MatricesWeightsKind)?"Yes":"No"}),i.createElement(de,{label:"Has matrix indices",value:t.isVerticesDataPresent(c.VertexBuffer.MatricesIndicesKind)?"Yes":"No"})),null!=t.physicsImpostor&&i.createElement(he,{globalState:this.props.globalState,title:"PHYSICS",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"Mass",target:t.physicsImpostor,propertyName:"mass",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Friction",target:t.physicsImpostor,propertyName:"friction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Restitution",target:t.physicsImpostor,propertyName:"restitution",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(de,{label:"Type",value:this.convertPhysicsTypeToString()})),i.createElement(he,{globalState:this.props.globalState,title:"OCCLUSIONS",closed:!0},i.createElement(xe,{label:"Type",options:d,target:t,propertyName:"occlusionType",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Retry count",minimum:-1,maximum:10,decimalCount:0,step:1,target:t,propertyName:"occlusionRetryCount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Algorithm",options:u,target:t,propertyName:"occlusionQueryAlgorithmType",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"EDGE RENDERING",closed:!0},i.createElement(ge,{label:"Enable",target:t,isSelected:function(){return null!=t.edgesRenderer},onSelect:function(e){e?t.enableEdgesRendering():t.disableEdgesRendering()}}),i.createElement(Se,{label:"Edge width",minimum:0,maximum:10,step:.1,target:t,propertyName:"edgesWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Edge color",target:t,propertyName:"edgesColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),!t.isAnInstance&&i.createElement(he,{globalState:this.props.globalState,title:"OUTLINE & OVERLAY",closed:!0},i.createElement(ge,{label:"Render overlay",target:t,propertyName:"renderOverlay",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Overlay color",target:t,propertyName:"overlayColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Render outline",target:t,propertyName:"renderOutline",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Outline color",target:t,propertyName:"outlineColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"DEBUG",closed:!0},!t.isAnInstance&&i.createElement(ge,{label:"Display normals",isSelected:function(){return n},onSelect:function(){return e.displayNormals()}}),!t.isAnInstance&&i.createElement(ge,{label:"Display vertex colors",isSelected:function(){return a},onSelect:function(){return e.displayVertexColors()}}),t.isVerticesDataPresent(c.VertexBuffer.NormalKind)&&i.createElement(ge,{label:"Render vertex normals",isSelected:function(){return o},onSelect:function(){return e.renderNormalVectors()}}),!t.isAnInstance&&i.createElement(ge,{label:"Render wireframe over mesh",isSelected:function(){return l},onSelect:function(){return e.renderWireframeOver()}})))},t}(i.Component),et=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.transformNode;return i.createElement("div",{className:"pane"},i.createElement(_e,{globalState:this.props.globalState,target:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:e.id}),i.createElement(de,{label:"Unique ID",value:e.uniqueId.toString()}),i.createElement(de,{label:"Class",value:e.getClassName()}),i.createElement(ge,{label:"IsEnabled",isSelected:function(){return e.isEnabled()},onSelect:function(t){return e.setEnabled(t)}})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMATIONS"},i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!e.rotationQuaternion&&i.createElement(we,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.rotationQuaternion&&i.createElement(Te,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Scaling",target:e,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),tt=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return i.createElement(he,{globalState:this.props.globalState,title:"TEXTURES"},i.createElement(Ae,{label:"Diffuse",texture:e.diffuseTexture,material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Reflection",texture:e.reflectionTexture,material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),e.reflectionTexture&&i.createElement(Se,{label:"Reflection blur",target:e,propertyName:"reflectionBlur",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},i.createElement(ke,{label:"Primary",target:e,propertyName:"primaryColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Shadow level",target:e,propertyName:"primaryColorShadowLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Highlight level",target:e,propertyName:"primaryColorHighlightLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),this.renderTextures(),i.createElement(he,{globalState:this.props.globalState,title:"RENDERING",closed:!0},i.createElement(ge,{label:"Enable noise",target:e,propertyName:"enableNoise",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Opacity fresnel",target:e,propertyName:"opacityFresnel",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Reflection fresnel",target:e,propertyName:"reflectionFresnel",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Reflection amount",target:e,propertyName:"reflectionAmount",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),rt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderGridInformation=function(){var e=this.props.control;if(!e.parent)return null;var t=e.parent;if(void 0===t.rowCount)return null;var r=t.getChildCellInfo(e);if(void 0===r)return null;var n=r.split(":");return i.createElement(he,{globalState:this.props.globalState,title:"GRID"},i.createElement(de,{label:"Row",value:n[0]}),i.createElement(de,{label:"Column",value:n[1]}))},t.prototype.render=function(){var e=this.props.control,t=[{label:"Left",value:Fe.Control.HORIZONTAL_ALIGNMENT_LEFT},{label:"Right",value:Fe.Control.HORIZONTAL_ALIGNMENT_RIGHT},{label:"Center",value:Fe.Control.HORIZONTAL_ALIGNMENT_CENTER}],r=[{label:"Top",value:Fe.Control.VERTICAL_ALIGNMENT_TOP},{label:"Bottom",value:Fe.Control.VERTICAL_ALIGNMENT_BOTTOM},{label:"Center",value:Fe.Control.VERTICAL_ALIGNMENT_CENTER}];return i.createElement("div",null,i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"Class",value:e.getClassName()}),i.createElement(de,{label:"Unique ID",value:e.uniqueId.toString()}),i.createElement(Se,{label:"Alpha",target:e,propertyName:"alpha",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==e.color&&i.createElement(Ne,{lockObject:this.props.lockObject,label:"Color",target:e,propertyName:"color",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==e.background&&i.createElement(Ne,{lockObject:this.props.lockObject,label:"Background",target:e,propertyName:"background",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),this.renderGridInformation(),i.createElement(he,{globalState:this.props.globalState,title:"ALIGNMENT"},i.createElement(xe,{label:"Horizontal",options:t,target:e,propertyName:"horizontalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Vertical",options:r,target:e,propertyName:"verticalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"POSITION"},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Left",target:e,propertyName:"left",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Top",target:e,propertyName:"top",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Width",target:e,propertyName:"width",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Height",target:e,propertyName:"height",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Padding left",target:e,propertyName:"paddingLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Padding top",target:e,propertyName:"paddingTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Padding right",target:e,propertyName:"paddingRight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Padding bottom",target:e,propertyName:"paddingBottom",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMATION",closed:!0},i.createElement(ze,{lockObject:this.props.lockObject,label:"ScaleX",target:e,propertyName:"scaleX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"ScaleY",target:e,propertyName:"scaleY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Rotation",target:e,propertyName:"rotation",minimum:0,maximum:2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Transform center X",target:e,propertyName:"transformCenterX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Transform center Y",target:e,propertyName:"transformCenterY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"FONT",closed:!0},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Family",target:e,propertyName:"fontFamily",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Size",target:e,propertyName:"fontSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Weight",target:e,propertyName:"fontWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Style",target:e,propertyName:"fontStyle",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"SHADOWS",closed:!0},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Color",target:e,propertyName:"shadowColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Offset X",target:e,propertyName:"shadowOffsetX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Offset Y",target:e,propertyName:"shadowOffsetY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Blur",target:e,propertyName:"shadowBlur",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),nt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.control;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),at=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.textBlock,t=[{label:"Left",value:Fe.Control.HORIZONTAL_ALIGNMENT_LEFT},{label:"Right",value:Fe.Control.HORIZONTAL_ALIGNMENT_RIGHT},{label:"Center",value:Fe.Control.HORIZONTAL_ALIGNMENT_CENTER}],r=[{label:"Top",value:Fe.Control.VERTICAL_ALIGNMENT_TOP},{label:"Bottom",value:Fe.Control.VERTICAL_ALIGNMENT_BOTTOM},{label:"Center",value:Fe.Control.VERTICAL_ALIGNMENT_CENTER}],n=[{label:"Clip",value:Fe.TextWrapping.Clip},{label:"Ellipsis",value:Fe.TextWrapping.Ellipsis},{label:"Word wrap",value:Fe.TextWrapping.WordWrap}];return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"TEXTBLOCK"},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Text",target:e,propertyName:"text",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Horizontal text alignment",options:t,target:e,propertyName:"textHorizontalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Vertical text alignment",options:r,target:e,propertyName:"textVerticalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Resize to fit",target:e,propertyName:"resizeToFit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Wrapping",options:n,target:e,propertyName:"textWrapping",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Line spacing",target:e,propertyName:"lineSpacing",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"OUTLINE"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Outline width",target:e,propertyName:"outlineWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Outline color",target:e,propertyName:"outlineColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),ot=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.inputText;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"INPUTTEXT"},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Text",target:e,propertyName:"text",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Prompt",target:e,propertyName:"promptMessage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Max width",target:e,propertyName:"maxWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Highlight color",target:e,propertyName:"textHighlightColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Highligher opacity",minimum:0,maximum:1,step:.01,target:e,propertyName:"highligherOpacity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"On focus select all",target:e,propertyName:"onFocusSelectAll",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Focused background",target:e,propertyName:"focusedBackground",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Max width",target:e,propertyName:"maxWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Margin",target:e,propertyName:"margin",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Auto stretch width",target:e,propertyName:"autoStretchWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Placeholder text",target:e,propertyName:"placeholderText",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Placeholder color",target:e,propertyName:"placeholderColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),it=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.colorPicker;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"COLORPICKER"},i.createElement(ke,{label:"Color",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),lt=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.animationGroup;return r.state={playButtonText:n.isPlaying?"Pause":"Play",currentFrame:0},r.connect(r.props.animationGroup),r._onBeforeRenderObserver=r.props.scene.onBeforeRenderObservable.add((function(){r.updateCurrentFrame(r.props.animationGroup)})),r}return a(t,e),t.prototype.disconnect=function(e){this._onAnimationGroupPlayObserver&&(e.onAnimationGroupPlayObservable.remove(this._onAnimationGroupPlayObserver),this._onAnimationGroupPlayObserver=null),this._onAnimationGroupPauseObserver&&(e.onAnimationGroupPauseObservable.remove(this._onAnimationGroupPauseObserver),this._onAnimationGroupPauseObserver=null)},t.prototype.connect=function(e){var t=this;this._onAnimationGroupPlayObserver=e.onAnimationGroupPlayObservable.add((function(){t.forceUpdate()})),this._onAnimationGroupPauseObserver=e.onAnimationGroupPauseObservable.add((function(){t.forceUpdate()})),this.updateCurrentFrame(e)},t.prototype.updateCurrentFrame=function(e){if(e.targetedAnimations.length>0){var t=e.targetedAnimations[0].animation.runtimeAnimations;t.length>0?this.setState({currentFrame:t[0].currentFrame}):this.setState({currentFrame:0})}},t.prototype.shouldComponentUpdate=function(e){return this.props.animationGroup!==e.animationGroup&&(this.disconnect(this.props.animationGroup),this.connect(e.animationGroup)),!0},t.prototype.componentWillUnmount=function(){this.disconnect(this.props.animationGroup),this._onBeforeRenderObserver&&(this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=null)},t.prototype.playOrPause=function(){var e=this.props.animationGroup;e.isPlaying?(this.setState({playButtonText:"Play"}),e.pause()):(this.setState({playButtonText:"Pause"}),this.props.scene.animationGroups.forEach((function(e){return e.pause()})),e.play(!0))},t.prototype.onCurrentFrameChange=function(e){var t=this.props.animationGroup;t.isPlaying?t.goToFrame(e):(t.play(!0),t.goToFrame(e),t.pause()),this.setState({currentFrame:e})},t.prototype.render=function(){var e=this,t=this.props.animationGroup,r=t.isPlaying?"Pause":"Play";return i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"CONTROLS"},i.createElement(je,{label:r,onClick:function(){return e.playOrPause()}}),i.createElement(Se,{label:"Speed ratio",minimum:0,maximum:10,step:.1,target:t,propertyName:"speedRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{ref:"timeline",label:"Current frame",minimum:t.from,maximum:t.to,step:(t.to-t.from)/1e3,directValue:this.state.currentFrame,onInput:function(t){return e.onCurrentFrameChange(t)}})),i.createElement(he,{globalState:this.props.globalState,title:"INFOS"},i.createElement(de,{label:"Animation count",value:t.targetedAnimations.length.toString()}),i.createElement(de,{label:"From",value:t.from.toFixed(2)}),i.createElement(de,{label:"To",value:t.to.toFixed(2)})))},t}(i.Component),st=function(){this.lock=!1},ct=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.image,r=[{label:"None",value:Fe.Image.STRETCH_NONE},{label:"Fill",value:Fe.Image.STRETCH_FILL},{label:"Uniform",value:Fe.Image.STRETCH_UNIFORM},{label:"Extend",value:Fe.Image.STRETCH_EXTEND},{label:"NinePatch",value:Fe.Image.STRETCH_NINE_PATCH}];return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"IMAGE"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Source left",target:t,propertyName:"sourceLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Source top",target:t,propertyName:"sourceTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Source width",target:t,propertyName:"sourceWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Source height",target:t,propertyName:"sourceHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Autoscale",target:t,propertyName:"autoScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Stretch",options:r,target:t,propertyName:"stretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}})),i.createElement(he,{globalState:this.props.globalState,title:"ANIMATION SHEET"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Cell Id",isInteger:!0,target:t,propertyName:"cellId",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Cell width",target:t,propertyName:"cellWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Cell height",target:t,propertyName:"cellHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),pt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.slider;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SLIDER"},i.createElement(Ne,{lockObject:this.props.lockObject,label:"Border color",target:e,propertyName:"borderColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Display thumb",target:e,propertyName:"displayThumb",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Thumb circle",target:e,propertyName:"isThumbCircle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Thumb clamped",target:e,propertyName:"isThumbClamped",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Bar offset",target:e,propertyName:"barOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Thumb width",target:e,propertyName:"thumbWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Minimum",target:e,propertyName:"minimum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Maximum",target:e,propertyName:"maximum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Value",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),ut=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.imageBasedSlider;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"IMAGE BASED SLIDER"},i.createElement(ge,{label:"Display thumb",target:e,propertyName:"displayThumb",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Thumb clamped",target:e,propertyName:"isThumbClamped",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Bar offset",target:e,propertyName:"barOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Thumb width",target:e,propertyName:"thumbWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Minimum",target:e,propertyName:"minimum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Maximum",target:e,propertyName:"maximum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Value",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),dt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.rectangle;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"RECTANGLE"},i.createElement(ge,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Corner radius",target:e,propertyName:"cornerRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),ht=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.ellipse;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"ELLIPSE"},i.createElement(ge,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),bt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.checkbox;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"CHECKBOX"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Check size ratio",target:e,propertyName:"checkSizeRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Checked",target:e,propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),mt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.radioButton;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"RADIO BUTTON"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Check size ratio",target:e,propertyName:"checkSizeRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Group",target:e,propertyName:"group",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Checked",target:e,propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),ft=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onDashChange=function(e){var t=this.props.line,r=e.split(",");t.dash=[],r.forEach((function(e){var r=parseInt(e);isNaN(r)||t.dash.push(r)}))},t.prototype.render=function(){var e=this,t=this.props.line;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"LINE"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Line width",target:t,propertyName:"lineWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"X1",target:t,propertyName:"x1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Y1",target:t,propertyName:"y1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"X2",target:t,propertyName:"x2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Y2",target:t,propertyName:"y2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Dash pattern",target:t,value:t.dash.join(","),onChange:function(t){return e.onDashChange(t)}})))},t}(i.Component),gt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.scrollViewer;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"RECTANGLE"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Corner radius",target:e,propertyName:"cornerRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"SCROLLVIEWER"},i.createElement(ze,{lockObject:this.props.lockObject,label:"Bar size",target:e,propertyName:"barSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Bar color",target:e,propertyName:"barColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ne,{lockObject:this.props.lockObject,label:"Bar background",target:e,propertyName:"barBackground",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Wheel precision",target:e,propertyName:"wheelPrecision",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),vt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderRows=function(){for(var e=this.props.grid,t=[],r=0;r<e.rowCount;r++)t.push(e.getRowDefinition(r));return t.map((function(t,r){return i.createElement(de,{key:"r"+r,label:"Row "+r,value:t.toString(e.host,2),underline:r===e.rowCount-1})}))},t.prototype.renderColumns=function(){for(var e=this.props.grid,t=[],r=0;r<e.columnCount;r++)t.push(e.getColumnDefinition(r));return t.map((function(t,r){return i.createElement(de,{key:"c"+r,label:"Column "+r,value:t.toString(e.host,2)})}))},t.prototype.render=function(){for(var e=this.props.grid,t=[],r=0;r<e.rowCount;r++)t.push(e.getColumnDefinition(r));return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GRID"},this.renderRows(),this.renderColumns()))},t}(i.Component),yt=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return i.createElement(he,{globalState:this.props.globalState,title:"TEXTURES"},i.createElement(Ae,{label:"Base",texture:e.baseTexture,propertyName:"baseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Metallic roughness",texture:e.metallicRoughnessTexture,propertyName:"metallicRoughnessTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Normal",texture:e.normalTexture,propertyName:"normalTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Environment",texture:e.environmentTexture,propertyName:"environmentTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}))},t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),i.createElement(he,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},i.createElement(ke,{label:"Base",target:e,propertyName:"baseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Emissive",target:e,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"LEVELS",closed:!0},i.createElement(Se,{label:"Metallic",target:e,propertyName:"metallic",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Roughness",target:e,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Ct=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return i.createElement(he,{globalState:this.props.globalState,title:"TEXTURES"},i.createElement(Ae,{label:"Diffuse",texture:e.diffuseTexture,propertyName:"diffuseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Specular glossiness",texture:e.specularGlossinessTexture,propertyName:"specularGlossinessTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Normal",texture:e.normalTexture,propertyName:"normalTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Environment",texture:e.environmentTexture,propertyName:"environmentTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),i.createElement(Ae,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}))},t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),i.createElement(he,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Specular",target:e,propertyName:"specularColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"LEVELS",closed:!0},i.createElement(Se,{label:"Glossiness",target:e,propertyName:"glossiness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Et=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.stackPanel;return i.createElement("div",{className:"pane"},i.createElement(rt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"STACKPANEL"},i.createElement(ge,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Ot=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.postProcess;return i.createElement("div",null,i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"Class",value:e.getClassName()}),e.width&&i.createElement(de,{label:"Width",value:e.width.toString()}),e.height&&i.createElement(de,{label:"Height",value:e.height.toString()}),i.createElement(ge,{label:"Auto clear",target:e,propertyName:"autoClear",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.clearColor&&i.createElement(ke,{label:"Clear color",target:e,propertyName:"clearColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Pixel perfect",target:e,propertyName:"enablePixelPerfectMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Fullscreen viewport",target:e,propertyName:"forceFullscreenViewport",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Samples",target:e,propertyName:"samples",minimum:1,maximum:8,step:1,decimalCount:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),St=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.postProcess;return i.createElement("div",{className:"pane"},i.createElement(Ot,{globalState:this.props.globalState,lockObject:this.props.lockObject,postProcess:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),xt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline,t=e;return i.createElement("div",null,i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"Class",value:e.getClassName()}),void 0!==t.samples&&i.createElement(Se,{label:"Samples",minimum:1,maximum:8,step:1,decimalCount:0,target:e,propertyName:"samples",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Pt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return i.createElement("div",{className:"pane"},i.createElement(xt,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),kt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.renderPipeline,r=t.scene.activeCamera,n=[{label:"Standard",value:c.ImageProcessingConfiguration.TONEMAPPING_STANDARD},{label:"ACES",value:c.ImageProcessingConfiguration.TONEMAPPING_ACES}],a=[{label:"Multiply",value:c.ImageProcessingConfiguration.VIGNETTEMODE_MULTIPLY},{label:"Opaque",value:c.ImageProcessingConfiguration.VIGNETTEMODE_OPAQUE}];return i.createElement("div",{className:"pane"},i.createElement(xt,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"BLOOM"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"bloomEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.bloomEnabled&&i.createElement("div",null,i.createElement(Se,{label:"Threshold",minimum:0,maximum:1,step:.05,target:t,propertyName:"bloomThreshold",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Weight",minimum:0,maximum:1,step:.05,target:t,propertyName:"bloomWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Kernel",minimum:0,maximum:128,step:1,target:t,propertyName:"bloomKernel",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}),i.createElement(Se,{label:"Scale",minimum:0,maximum:1,step:.25,target:t,propertyName:"bloomScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"CHROMATIC ABERRATION"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"chromaticAberrationEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.chromaticAberrationEnabled&&i.createElement("div",null,i.createElement(Se,{label:"aberrationAmount",minimum:0,maximum:128,step:.1,target:t.chromaticAberration,propertyName:"aberrationAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Radial intensity",minimum:0,maximum:1,step:.01,target:t.chromaticAberration,propertyName:"radialIntensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ve,{label:"Center",target:t.chromaticAberration,propertyName:"centerPosition",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Ve,{label:"Direction",target:t.chromaticAberration,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"DEPTH OF FIELD"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"depthOfFieldEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.depthOfFieldEnabled&&i.createElement("div",null,i.createElement(Se,{label:"Focal length",minimum:0,maximum:r.maxZ,step:.1,target:t.depthOfField,propertyName:"focalLength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"fStop",minimum:0,maximum:32,step:.1,target:t.depthOfField,propertyName:"fStop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Distance",minimum:0,maximum:r.maxZ,step:.1,target:t.depthOfField,propertyName:"focusDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Lens size",minimum:0,maximum:1e3,step:1,target:t.depthOfField,propertyName:"lensSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}))),i.createElement(he,{globalState:this.props.globalState,title:"FXAA"},i.createElement(ge,{label:"Enabled",target:t,propertyName:"fxaaEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"GLOW LAYER"},i.createElement(ge,{label:"Enabled",target:t,propertyName:"glowLayerEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.glowLayerEnabled&&i.createElement("div",null,i.createElement(Se,{label:"Blur kernel size",minimum:1,maximum:128,step:1,decimalCount:0,target:t.glowLayer,propertyName:"blurKernelSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Intensity",minimum:0,maximum:10,step:.1,target:t.glowLayer,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"GRAIN"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"grainEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.grainEnabled&&i.createElement("div",null,i.createElement(ge,{label:"Animated",target:t.grain,propertyName:"animated",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Intensity",minimum:0,maximum:50,step:.1,target:t.grain,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),i.createElement(he,{globalState:this.props.globalState,title:"IMAGE PROCESSING"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"imageProcessingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.imageProcessing&&i.createElement("div",null,i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Contrast",target:t.imageProcessing,propertyName:"contrast",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Exposure",target:t.imageProcessing,propertyName:"exposure",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Tone mapping",target:t.imageProcessing,propertyName:"toneMappingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Tone mapping type",options:n,target:t.imageProcessing,propertyName:"toneMappingType",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),i.createElement(ge,{label:"Vignette",target:t.imageProcessing,propertyName:"vignetteEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:4,step:.1,label:"Vignette weight",target:t.imageProcessing,propertyName:"vignetteWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette stretch",target:t.imageProcessing,propertyName:"vignetteStretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:Math.PI,step:.1,label:"Vignette FOV",target:t.imageProcessing,propertyName:"vignetteCameraFov",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette center X",target:t.imageProcessing,propertyName:"vignetteCentreX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{minimum:0,maximum:1,step:.1,label:"Vignette center Y",target:t.imageProcessing,propertyName:"vignetteCentreY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Vignette color",target:t.imageProcessing,propertyName:"vignetteColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(xe,{label:"Vignette blend mode",options:a,target:t.imageProcessing,propertyName:"vignetteBlendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}))),i.createElement(he,{globalState:this.props.globalState,title:"SHARPEN"},i.createElement(ge,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"sharpenEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.sharpenEnabled&&i.createElement("div",null,i.createElement(Se,{label:"Color amount",minimum:0,maximum:1,step:.05,target:t.sharpen,propertyName:"colorAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Edge amount",minimum:0,maximum:5,step:.05,target:t.sharpen,propertyName:"edgeAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))))},t}(i.Component),wt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return i.createElement("div",{className:"pane"},i.createElement(xt,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SSAO"},i.createElement(Se,{label:"Strength",minimum:0,maximum:2,step:.05,target:e,propertyName:"totalStrength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Base",minimum:0,maximum:1,step:.05,target:e,propertyName:"base",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Radius",minimum:1e-4,maximum:.001,step:1e-4,target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:4}),i.createElement(Se,{label:"Area",minimum:1e-4,maximum:.01,step:1e-4,target:e,propertyName:"area",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:4}),i.createElement(Se,{label:"Falloff",minimum:0,maximum:1e-5,step:1e-6,target:e,propertyName:"fallOff",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:6})))},t}(i.Component),Tt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline,t=e.scene.activeCamera;return i.createElement("div",{className:"pane"},i.createElement(xt,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SSAO"},i.createElement(Se,{label:"Strength",minimum:0,maximum:2,step:.05,target:e,propertyName:"totalStrength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Base",minimum:0,maximum:1,step:.05,target:e,propertyName:"base",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Max Z",minimum:0,maximum:t.maxZ,step:1,target:e,propertyName:"maxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Min Z aspect",minimum:0,maximum:.5,step:.01,target:e,propertyName:"minZAspect",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Radius",minimum:0,maximum:10,step:.05,target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Nt=function(e){function t(t){var r=e.call(this,t)||this;r._animations=null,r._animationControl={from:0,to:0,loop:!1},r._isPlaying=!1,r.state={currentFrame:0};var n=r.props.animatable;if(r._ranges=n.getAnimationRanges?n.getAnimationRanges():[],n.getAnimatables){var a=n.getAnimatables();r._animations=new Array,a.forEach((function(e){var t;e.animations&&(t=r._animations).push.apply(t,e.animations)})),r._animations&&r._animations.length&&r._animations.forEach((function(e){var t=e.getKeys();if(t&&t.length>0){t[0].frame<r._animationControl.from&&(r._animationControl.from=t[0].frame);var n=t.length-1;t[n].frame>r._animationControl.to&&(r._animationControl.to=t[n].frame)}}))}return r}return a(t,e),t.prototype.playOrPause=function(){var e=this.props.animatable;this._isPlaying=this.props.scene.getAllAnimatablesByTarget(e).length>0,this._isPlaying?(this.props.scene.stopAnimation(this.props.animatable),this._runningAnimatable=null):this._runningAnimatable=this.props.scene.beginAnimation(this.props.animatable,this._animationControl.from,this._animationControl.to,this._animationControl.loop),this.forceUpdate()},t.prototype.componentDidMount=function(){var e=this;this._onBeforeRenderObserver=this.props.scene.onBeforeRenderObservable.add((function(){e._isPlaying&&e._runningAnimatable&&e.setState({currentFrame:e._runningAnimatable.masterFrame})}))},t.prototype.componentWillUnmount=function(){this._onBeforeRenderObserver&&(this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=null)},t.prototype.onCurrentFrameChange=function(e){this._runningAnimatable&&(this._runningAnimatable.goToFrame(e),this.setState({currentFrame:e}))},t.prototype.render=function(){var e=this,t=this.props.animatable,r=this.props.animatable,n=this.props.scene.getAllAnimatablesByTarget(t);return this._isPlaying=n.length>0,this._isPlaying&&!this._runningAnimatable&&(this._runningAnimatable=n[0]),this._runningAnimatable&&(this._animationControl.from=this._runningAnimatable.fromFrame,this._animationControl.to=this._runningAnimatable.toFrame,this._animationControl.loop=this._runningAnimatable.loopAnimation),i.createElement("div",null,(this._ranges.length>0||this._animations&&this._animations.length>0)&&i.createElement(he,{globalState:this.props.globalState,title:"ANIMATION OVERRIDE"},i.createElement(ge,{label:"Enable override",onSelect:function(t){t?(r.animationPropertiesOverride=new c.AnimationPropertiesOverride,r.animationPropertiesOverride.blendingSpeed=.05):r.animationPropertiesOverride=null,e.forceUpdate()},isSelected:function(){return null!=r.animationPropertiesOverride},onValueChanged:function(){return e.forceUpdate()}}),null!=r.animationPropertiesOverride&&i.createElement("div",null,i.createElement(ge,{label:"Enable blending",target:r.animationPropertiesOverride,propertyName:"enableBlending",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Blending speed",target:r.animationPropertiesOverride,propertyName:"blendingSpeed",minimum:0,maximum:.1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),this._ranges.length>0&&i.createElement(he,{globalState:this.props.globalState,title:"ANIMATION RANGES"},this._ranges.map((function(r){return i.createElement(je,{key:r.name,label:r.name,onClick:function(){e._runningAnimatable=null,e.props.scene.beginAnimation(t,r.from,r.to,!0)}})}))),this._animations&&this._animations.length>0&&i.createElement(he,{globalState:this.props.globalState,title:"ANIMATIONS"},i.createElement(de,{label:"Count",value:this._animations.length.toString()}),i.createElement(ze,{lockObject:this.props.lockObject,label:"From",target:this._animationControl,propertyName:"from"}),i.createElement(ze,{lockObject:this.props.lockObject,label:"To",target:this._animationControl,propertyName:"to"}),i.createElement(ge,{label:"Loop",onSelect:function(t){return e._animationControl.loop=t},isSelected:function(){return e._animationControl.loop}}),i.createElement(je,{label:this._isPlaying?"Stop":"Play",onClick:function(){return e.playOrPause()}}),this._isPlaying&&i.createElement(Se,{ref:"timeline",label:"Current frame",minimum:this._animationControl.from,maximum:this._animationControl.to,step:(this._animationControl.to-this._animationControl.from)/1e3,directValue:this.state.currentFrame,onInput:function(t){return e.onCurrentFrameChange(t)}})))},t}(i.Component),_t=function(e){function t(t){var r=e.call(this,t)||this;return r._skeletonViewersEnabled=!1,r._skeletonViewers=new Array,r.checkSkeletonViewerState(r.props),r}return a(t,e),t.prototype.switchSkeletonViewers=function(){this._skeletonViewersEnabled=!this._skeletonViewersEnabled;var e=this.props.skeleton.getScene();if(this._skeletonViewersEnabled)for(var t=0,r=e.meshes;t<r.length;t++){var n=r[t];if(n.skeleton===this.props.skeleton){for(var a=!1,o=0;o<this._skeletonViewers.length;o++)if(this._skeletonViewers[o].skeleton===n.skeleton){a=!0;break}if(a)continue;var i=new c.SkeletonViewer(n.skeleton,n,e,!0,0);i.isEnabled=!0,this._skeletonViewers.push(i),n.reservedDataStore||(n.reservedDataStore={}),n.reservedDataStore.skeletonViewer=i}}else{for(var l=0;l<this._skeletonViewers.length;l++)this._skeletonViewers[l].mesh.reservedDataStore.skeletonViewer=null,this._skeletonViewers[l].dispose();this._skeletonViewers=[]}},t.prototype.checkSkeletonViewerState=function(e){var t=e.skeleton.getScene();if(this._skeletonViewers=[],t){for(var r=0,n=t.meshes;r<n.length;r++){var a=n[r];a.skeleton===e.skeleton&&a.reservedDataStore&&a.reservedDataStore.skeletonViewer&&this._skeletonViewers.push(a.reservedDataStore.skeletonViewer)}this._skeletonViewersEnabled=this._skeletonViewers.length>0}},t.prototype.shouldComponentUpdate=function(e){return e.skeleton!==this.props.skeleton&&this.checkSkeletonViewerState(e),!0},t.prototype.render=function(){var e=this,t=this.props.skeleton;return i.createElement("div",{className:"pane"},i.createElement(_e,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:t.id}),i.createElement(de,{label:"Bone count",value:t.bones.length.toString()}),i.createElement(ge,{label:"Use texture to store matrices",target:t,propertyName:"useTextureToStoreBoneMatrices",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Debug mode",isSelected:function(){return e._skeletonViewersEnabled},onSelect:function(){return e.switchSkeletonViewers()}})),i.createElement(Nt,{globalState:this.props.globalState,animatable:t,scene:t.getScene(),lockObject:this.props.lockObject}))},t}(i.Component),Mt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.bone;return i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"GENERAL"},i.createElement(de,{label:"ID",value:e.id}),i.createElement(de,{label:"Unique ID",value:e.uniqueId.toString()})),i.createElement(he,{globalState:this.props.globalState,title:"TRANSFORMATIONS"},i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!e.rotationQuaternion&&i.createElement(we,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.rotationQuaternion&&i.createElement(Te,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Scaling",target:e,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),Lt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return i.createElement("div",{className:"pane"},i.createElement(Ye,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SETUP"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(qe,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),Rt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return i.createElement("div",{className:"pane"},i.createElement(Ye,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"SETUP"},i.createElement(ke,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ke,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(we,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,useEuler:this.props.globalState.onlyUseEulers,label:"Angle",target:e,propertyName:"angle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,useEuler:this.props.globalState.onlyUseEulers,label:"Inner angle",target:e,propertyName:"innerAngle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ze,{lockObject:this.props.lockObject,label:"Exponent",target:e,propertyName:"exponent",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(qe,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(i.Component),At=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return i.createElement("div",{className:"pane"},i.createElement(xt,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"OPTIONS"},i.createElement(Se,{label:"Edge blur",minimum:0,maximum:5,step:.1,target:e,propertyName:"edgeBlur",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Edge distortion",minimum:0,maximum:5,step:.1,target:e,propertyName:"edgeDistortion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Grain amount",minimum:0,maximum:1,step:.1,target:e,propertyName:"grainAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Chromatic aberration",minimum:0,maximum:5,step:.1,target:e,propertyName:"chromaticAberration",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Darken out of focus",minimum:0,maximum:5,step:.1,target:e,propertyName:"darkenOutOfFocus",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Blur noise",target:e,propertyName:"blurNoise",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),i.createElement(he,{globalState:this.props.globalState,title:"DEPTH OF FIELD"},i.createElement(Se,{label:"Aperture",minimum:0,maximum:10,step:.1,target:e,propertyName:"dofAperture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Distortion",minimum:0,maximum:10,step:.1,target:e,propertyName:"dofDistortion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Pentagon bokeh",target:e,propertyName:"pentagonBokeh",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Highlight gain",minimum:0,maximum:5,step:.1,target:e,propertyName:"highlightsGain",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(Se,{label:"Highlight threshold",minimum:0,maximum:5,step:.1,target:e,propertyName:"highlightsThreshold",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(i.Component),It=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.getCurrentValue().clone()},r}return a(t,e),t.prototype.getCurrentValue=function(){return this.props.target[this.props.propertyName]},t.prototype.shouldComponentUpdate=function(e,t){var r=this.getCurrentValue();return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector4=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector4()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector4()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector4()},t.prototype.updateStateW=function(e){this._localChange=!0,this.state.value.w=e,this.updateVector4()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee});return i.createElement("div",{className:"vector3Line"},i.createElement("div",{className:"firstLine"},i.createElement("div",{className:"label"},this.props.label),i.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2)+", W: "+this.state.value.w.toFixed(2)),i.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),i.createElement(Pe,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),i.createElement(Pe,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),i.createElement(Pe,{label:"w",step:this.props.step,value:this.state.value.w,onChange:function(t){return e.updateStateW(t)}})))},t.defaultProps={step:.001},t}(i.Component),jt=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new c.Observable,r}return a(t,e),t.prototype.edit=function(){this.props.material.edit()},t.prototype.renderTextures=function(){var e=this,t=this.props.material,r=this._onDebugSelectionChangeObservable,n=t.getTextureBlocks();return n&&0!==n.length?i.createElement(he,{globalState:this.props.globalState,title:"TEXTURES"},n.map((function(n,a){return i.createElement(Ae,{label:n.name,key:a,texture:n.texture,material:t,onTextureCreated:function(e){return n.texture=e},onSelectionChangedObservable:e.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:r})}))):null},t.prototype.renderInputValues=function(){var e=this,t=this.props.material.getInputBlocks().filter((function(e){return e.visibleInInspector&&e.isUniform&&!e.isSystemValue})).sort((function(e,t){return e.name.localeCompare(t.name)}));return 0===t.length?null:i.createElement(he,{globalState:this.props.globalState,title:"INPUTS"},t.map((function(t){switch(t.type){case c.NodeMaterialBlockConnectionPointTypes.Float:var r=isNaN(t.min)||isNaN(t.max)||t.min===t.max;return i.createElement(i.Fragment,null,r&&i.createElement(ze,{key:t.name,lockObject:e.props.lockObject,label:t.name,target:t,propertyName:"value",onPropertyChangedObservable:e.props.onPropertyChangedObservable}),!r&&i.createElement(Se,{key:t.name,label:t.name,target:t,propertyName:"value",step:.1,minimum:t.min,maximum:t.max,onPropertyChangedObservable:e.props.onPropertyChangedObservable}));case c.NodeMaterialBlockConnectionPointTypes.Color3:case c.NodeMaterialBlockConnectionPointTypes.Color4:return i.createElement(ke,{key:t.name,label:t.name,target:t,propertyName:"value",onPropertyChangedObservable:e.props.onPropertyChangedObservable});case c.NodeMaterialBlockConnectionPointTypes.Vector2:return i.createElement(Ve,{key:t.name,label:t.name,target:t,propertyName:"value",onPropertyChangedObservable:e.props.onPropertyChangedObservable});case c.NodeMaterialBlockConnectionPointTypes.Vector3:return i.createElement(we,{key:t.name,label:t.name,target:t,propertyName:"value",onPropertyChangedObservable:e.props.onPropertyChangedObservable});case c.NodeMaterialBlockConnectionPointTypes.Vector4:return i.createElement(It,{key:t.name,label:t.name,target:t,propertyName:"value",onPropertyChangedObservable:e.props.onPropertyChangedObservable})}return null})))},t.prototype.render=function(){var e=this,t=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(he,{globalState:this.props.globalState,title:"CONFIGURATION"},i.createElement(ge,{label:"Ignore alpha",target:t,propertyName:"ignoreAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(je,{label:"Edit",onClick:function(){return e.edit()}})),this.renderInputValues(),this.renderTextures())},t}(i.Component),Dt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onMaterialLink=function(e){this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.notifyObservers(e)},t.prototype.renderChildMaterial=function(){var e=this,t=this.props.material;return i.createElement(he,{globalState:this.props.globalState,title:"CHILDREN"},t.subMaterials.map((function(t,r){return t?i.createElement(de,{key:"Material #"+r,label:"Material #"+r,value:t.name,onLink:function(){return e.onMaterialLink(t)}}):null})))},t.prototype.render=function(){var e=this.props.material;return i.createElement("div",{className:"pane"},i.createElement(Me,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderChildMaterial())},t}(i.Component),zt=function(e){function t(t){var r=e.call(this,t)||this;return r._lockObject=new st,r}return a(t,e),t.prototype.timerRefresh=function(){this._lockObject.lock||this.forceUpdate()},t.prototype.componentDidMount=function(){var e=this;this._timerIntervalId=window.setInterval((function(){return e.timerRefresh()}),500)},t.prototype.componentWillUnmount=function(){window.clearInterval(this._timerIntervalId)},t.prototype.render=function(){var e=this.props.selectedEntity;if(!e)return i.createElement("div",{className:"infoMessage"},"Please select an entity in the scene explorer.");if(e.getClassName){var t=e.getClassName();if("Scene"===t){var r=e;return i.createElement(We,{scene:r,globalState:this.props.globalState,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Mesh")){var n=e;if(n.getTotalVertices()>0)return i.createElement("div",null,i.createElement(Je,{globalState:this.props.globalState,mesh:n,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))}if(-1!==t.indexOf("FreeCamera")||-1!==t.indexOf("UniversalCamera")){var a=e;return i.createElement($e,{globalState:this.props.globalState,camera:a,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("ArcRotateCamera")){var o=e;return i.createElement(Ze,{globalState:this.props.globalState,camera:o,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("HemisphericLight"===t){var l=e;return i.createElement(Xe,{globalState:this.props.globalState,light:l,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PointLight"===t){var s=e;return i.createElement(Ke,{globalState:this.props.globalState,light:s,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("DirectionalLight"===t){s=e;return i.createElement(Lt,{globalState:this.props.globalState,light:s,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("SpotLight"===t){s=e;return i.createElement(Rt,{globalState:this.props.globalState,light:s,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("TransformNode")||-1!==t.indexOf("Mesh")){var c=e;return i.createElement(et,{transformNode:c,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("MultiMaterial"===t){var p=e;return i.createElement(Dt,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("StandardMaterial"===t){p=e;return i.createElement(Ie,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("NodeMaterial"===t){p=e;return i.createElement(jt,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRMaterial"===t){p=e;return i.createElement(He,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRMetallicRoughnessMaterial"===t){p=e;return i.createElement(yt,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRSpecularGlossinessMaterial"===t){p=e;return i.createElement(Ct,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("BackgroundMaterial"===t){p=e;return i.createElement(tt,{globalState:this.props.globalState,material:p,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("AnimationGroup"===t){var u=e;return i.createElement(lt,{globalState:this.props.globalState,animationGroup:u,scene:this.props.scene,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Material")){p=e;return i.createElement(Le,{material:p,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("DefaultRenderingPipeline")){var d=e;return i.createElement(kt,{renderPipeline:d,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("LensRenderingPipeline")){d=e;return i.createElement(At,{renderPipeline:d,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("SSAORenderingPipeline")){d=e;return i.createElement(wt,{renderPipeline:d,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("SSAO2RenderingPipeline")){d=e;return i.createElement(Tt,{renderPipeline:d,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("RenderingPipeline")){d=e;return i.createElement(Pt,{renderPipeline:d,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("PostProcess")){var h=e;return i.createElement(St,{postProcess:h,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Texture")){var b=e;return i.createElement(Ue,{texture:b,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Skeleton")){var m=e;return i.createElement(_t,{skeleton:m,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Bone")){var f=e;return i.createElement(Mt,{bone:f,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("TextBlock"===t){var g=e;return i.createElement(at,{textBlock:g,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("InputText"===t){var v=e;return i.createElement(ot,{inputText:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ColorPicker"===t){var y=e;return i.createElement(it,{colorPicker:y,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Image"===t){var C=e;return i.createElement(ct,{image:C,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Slider"===t){var E=e;return i.createElement(pt,{slider:E,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ImageBasedSlider"===t){var O=e;return i.createElement(ut,{imageBasedSlider:O,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Rectangle"===t){var S=e;return i.createElement(dt,{rectangle:S,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("StackPanel"===t){var x=e;return i.createElement(Et,{stackPanel:x,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Grid"===t){var P=e;return i.createElement(vt,{grid:P,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ScrollViewer"===t){var k=e;return i.createElement(gt,{scrollViewer:k,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Ellipse"===t){var w=e;return i.createElement(ht,{ellipse:w,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Checkbox"===t){var T=e;return i.createElement(bt,{checkbox:T,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("RadioButton"===t){var N=e;return i.createElement(mt,{radioButton:N,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Line"===t){var _=e;return i.createElement(ft,{line:_,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(e._host){var M=e;return i.createElement(nt,{control:M,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}}return null},t}(ue),Ft=function(e){function t(t){var r=e.call(this,t)||this;return r._backStack=new Array,r.state={isBackVisible:!1},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onSelectionChangedObservable&&(this._onSelectionChangeObserver=this.props.onSelectionChangedObservable.add((function(t){0!==e._backStack.length&&t===e._backStack[e._backStack.length-1]||(e._backStack.push(t),e.setState({isBackVisible:e._backStack.length>1}))})))},t.prototype.componentWillUnmount=function(){this._onSelectionChangeObserver&&this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver)},t.prototype.goBack=function(){this._backStack.pop();var e=this._backStack[this._backStack.length-1];this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.notifyObservers(e),this.setState({isBackVisible:this._backStack.length>1})},t.prototype.renderLogo=function(){var e=this;return this.props.noCommands?null:this.props.handleBack?this.state.isBackVisible?i.createElement("div",{id:"back",onClick:function(){return e.goBack()}},i.createElement(O,{icon:k})):null:i.createElement("img",{id:"logo",style:{top:"0%"},src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"})},t.prototype.render=function(){var e=this;return i.createElement("div",{id:"header"},this.renderLogo(),i.createElement("div",{id:"title"},this.props.title),i.createElement("div",{id:"commands"},!this.props.noCommands&&!this.props.noExpand&&i.createElement("div",{className:"expand",onClick:function(){return e.props.onPopup()}},i.createElement(O,{icon:ce})),!this.props.noCommands&&!this.props.noClose&&i.createElement("div",{className:"close",onClick:function(){return e.props.onClose()}},i.createElement(O,{icon:oe}))))},t}(i.Component),Ut=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return this.props.icon?i.createElement("div",{className:"iconMessageLine"},i.createElement("div",{className:"icon",style:{color:this.props.color?this.props.color:""}},i.createElement(O,{icon:this.props.icon})),i.createElement("div",{className:"value",title:this.props.text},this.props.text)):i.createElement("div",{className:"messageLine"},i.createElement("div",{className:"value",title:this.props.text,style:{color:this.props.color?this.props.color:""}},this.props.text))},t}(i.Component),Vt=r(7),Ht=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.globalState.glTFLoaderExtensionDefaults;n.MSFT_lod=n.MSFT_lod||{enabled:!0,maxLODsToLoad:10},n.MSFT_minecraftMesh=n.MSFT_minecraftMesh||{enabled:!0},n.MSFT_sRGBFactors=n.MSFT_sRGBFactors||{enabled:!0},n.MSFT_audio_emitter=n.MSFT_audio_emitter||{enabled:!0},n.KHR_draco_mesh_compression=n.KHR_draco_mesh_compression||{enabled:!0},n.KHR_materials_pbrSpecularGlossiness=n.KHR_materials_pbrSpecularGlossiness||{enabled:!0},n.KHR_materials_unlit=n.KHR_materials_unlit||{enabled:!0},n.KHR_lights_punctual=n.KHR_lights_punctual||{enabled:!0},n.KHR_texture_transform=n.KHR_texture_transform||{enabled:!0},n.EXT_lights_image_based=n.EXT_lights_image_based||{enabled:!0};var a=r.props.globalState.glTFLoaderDefaults;return void 0===a.animationStartMode&&(a.animationStartMode=Vt.GLTFLoaderAnimationStartMode.FIRST),a.capturePerformanceCounters=a.capturePerformanceCounters||!1,a.compileMaterials=a.compileMaterials||!1,a.compileShadowGenerators=a.compileShadowGenerators||!1,a.coordinateSystemMode=a.coordinateSystemMode||Vt.GLTFLoaderCoordinateSystemMode.AUTO,a.loggingEnabled=a.loggingEnabled||!1,a.transparencyAsCoverage=a.transparencyAsCoverage||!1,a.useClipPlane=a.useClipPlane||!1,a.validate=a.validate||!0,r}return a(t,e),t.prototype.openValidationDetails=function(){var e=this.props.globalState.validationResults,t=window.open("","_blank");t&&(t.document.title="glTF Validation Results",t.document.body.innerText=JSON.stringify(e,null,2),t.document.body.style.whiteSpace="pre",t.document.body.style.fontFamily="monospace",t.document.body.style.fontSize="14px",t.focus())},t.prototype.prepareText=function(e,t){return t?t+" "+e+"s":""+e},t.prototype.renderValidation=function(){var e=this,t=this.props.globalState.validationResults.issues;return i.createElement(he,{globalState:this.props.globalState,title:"GLTF VALIDATION",closed:!t.numErrors&&!t.numWarnings},0!==t.numErrors&&i.createElement(Ut,{text:"Your file has some validation issues",icon:ie,color:"Red"}),0===t.numErrors&&i.createElement(Ut,{text:"Your file is a valid glTF file",icon:A,color:"Green"}),i.createElement(de,{label:"Errors",value:t.numErrors.toString()}),i.createElement(de,{label:"Warnings",value:t.numWarnings.toString()}),i.createElement(de,{label:"Infos",value:t.numInfos.toString()}),i.createElement(de,{label:"Hints",value:t.numHints.toString()}),i.createElement(de,{label:"More details",value:"Click here",onLink:function(){return e.openValidationDetails()}}))},t.prototype.render=function(){var e=this.props.globalState.glTFLoaderExtensionDefaults,t=this.props.globalState.glTFLoaderDefaults,r=[{label:"None",value:Vt.GLTFLoaderAnimationStartMode.NONE},{label:"First",value:Vt.GLTFLoaderAnimationStartMode.FIRST},{label:"ALL",value:Vt.GLTFLoaderAnimationStartMode.ALL}],n=[{label:"Auto",value:Vt.GLTFLoaderCoordinateSystemMode.AUTO},{label:"Right handed",value:Vt.GLTFLoaderCoordinateSystemMode.FORCE_RIGHT_HANDED}];return i.createElement("div",null,i.createElement(he,{globalState:this.props.globalState,title:"GLTF LOADER",closed:!0},i.createElement(xe,{label:"Animation start mode",options:r,target:t,propertyName:"animationStartMode"}),i.createElement(ge,{label:"Capture performance counters",target:t,propertyName:"capturePerformanceCounters"}),i.createElement(ge,{label:"Compile materials",target:t,propertyName:"compileMaterials"}),i.createElement(ge,{label:"Compile shadow generators",target:t,propertyName:"compileShadowGenerators"}),i.createElement(xe,{label:"Coordinate system",options:n,target:t,propertyName:"coordinateSystemMode"}),i.createElement(ge,{label:"Enable logging",target:t,propertyName:"loggingEnabled"}),i.createElement(ge,{label:"Transparency as coverage",target:t,propertyName:"transparencyAsCoverage"}),i.createElement(ge,{label:"Use clip plane",target:t,propertyName:"useClipPlane"}),i.createElement(ge,{label:"Validate",target:t,propertyName:"validate"}),i.createElement(Ut,{text:"You need to reload your file to see these changes"})),i.createElement(he,{globalState:this.props.globalState,title:"GLTF EXTENSIONS",closed:!0},i.createElement(ge,{label:"MSFT_lod",isSelected:function(){return e.MSFT_lod.enabled},onSelect:function(t){return e.MSFT_lod.enabled=t}}),i.createElement(ze,{label:"Maximum LODs",target:e.MSFT_lod,propertyName:"maxLODsToLoad",additionalClass:"gltf-extension-property",isInteger:!0}),i.createElement(ge,{label:"MSFT_minecraftMesh",isSelected:function(){return e.MSFT_minecraftMesh.enabled},onSelect:function(t){return e.MSFT_minecraftMesh.enabled=t}}),i.createElement(ge,{label:"MSFT_sRGBFactors",isSelected:function(){return e.MSFT_sRGBFactors.enabled},onSelect:function(t){return e.MSFT_sRGBFactors.enabled=t}}),i.createElement(ge,{label:"MSFT_audio_emitter",isSelected:function(){return e.MSFT_audio_emitter.enabled},onSelect:function(t){return e.MSFT_audio_emitter.enabled=t}}),i.createElement(ge,{label:"KHR_draco_mesh_compression",isSelected:function(){return e.KHR_draco_mesh_compression.enabled},onSelect:function(t){return e.KHR_draco_mesh_compression.enabled=t}}),i.createElement(ge,{label:"KHR_materials_pbrSpecularGlossiness",isSelected:function(){return e.KHR_materials_pbrSpecularGlossiness.enabled},onSelect:function(t){return e.KHR_materials_pbrSpecularGlossiness.enabled=t}}),i.createElement(ge,{label:"KHR_materials_unlit",isSelected:function(){return e.KHR_materials_unlit.enabled},onSelect:function(t){return e.KHR_materials_unlit.enabled=t}}),i.createElement(ge,{label:"KHR_lights_punctual",isSelected:function(){return e.KHR_lights_punctual.enabled},onSelect:function(t){return e.KHR_lights_punctual.enabled=t}}),i.createElement(ge,{label:"KHR_texture_transform",isSelected:function(){return e.KHR_texture_transform.enabled},onSelect:function(t){return e.KHR_texture_transform.enabled=t}}),i.createElement(ge,{label:"EXT_lights_image_based",isSelected:function(){return e.EXT_lights_image_based.enabled},onSelect:function(t){return e.EXT_lights_image_based.enabled=t}}),i.createElement(Ut,{text:"You need to reload your file to see these changes"})),t.validate&&this.props.globalState.validationResults&&this.renderValidation())},t}(i.Component),Gt=r(15),Bt=function(e){function t(t){var r=e.call(this,t)||this;return r._screenShotSize={precision:1},r._useWidthHeight=!1,r._isExporting=!1,r.state={tag:"Record video"},r}return a(t,e),t.prototype.componentDidMount=function(){BABYLON.GLTF2Export||c.Tools.LoadScript("https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js",(function(){}))},t.prototype.componentWillUnmount=function(){this._videoRecorder&&(this._videoRecorder.stopRecording(),this._videoRecorder.dispose(),this._videoRecorder=null)},t.prototype.captureScreenshot=function(){var e=this.props.scene;e.activeCamera&&c.Tools.CreateScreenshot(e.getEngine(),e.activeCamera,this._screenShotSize)},t.prototype.captureRender=function(){var e=this.props.scene,t={height:this._screenShotSize.height,width:this._screenShotSize.width,precision:this._screenShotSize.precision};this._useWidthHeight||(this._screenShotSize.width=void 0,this._screenShotSize.height=void 0),e.activeCamera&&c.Tools.CreateScreenshotUsingRenderTarget(e.getEngine(),e.activeCamera,this._screenShotSize),this._screenShotSize=t},t.prototype.recordVideo=function(){var e=this;if(this._videoRecorder&&this._videoRecorder.isRecording)this._videoRecorder.stopRecording();else{var t=this.props.scene;this._videoRecorder||(this._videoRecorder=new c.VideoRecorder(t.getEngine())),this._videoRecorder.startRecording().then((function(){e.setState({tag:"Record video"})})),this.setState({tag:"Stop recording"})}},t.prototype.shouldExport=function(e){if(e instanceof c.Mesh&&e.material){var t=e.material.reflectionTexture;if(t&&t.coordinatesMode===c.Texture.SKYBOX_MODE)return!1}return!0},t.prototype.exportGLTF=function(){var e=this,t=this.props.scene;this._isExporting=!0,this.forceUpdate(),Gt.GLTF2Export.GLBAsync(t,"scene",{shouldExportNode:function(t){return e.shouldExport(t)}}).then((function(t){t.downloadFiles(),e._isExporting=!1,e.forceUpdate()})).catch((function(t){e._isExporting=!1,e.forceUpdate()}))},t.prototype.exportBabylon=function(){var e=this.props.scene,t=JSON.stringify(c.SceneSerializer.Serialize(e)),r=new Blob([t],{type:"octet/stream"});c.Tools.Download(r,"scene.babylon")},t.prototype.createEnvTexture=function(){var e=this.props.scene;c.EnvironmentTextureTools.CreateEnvTextureAsync(e.environmentTexture).then((function(e){var t=new Blob([e],{type:"octet/stream"});c.Tools.Download(t,"environment.env")})).catch((function(e){console.error(e),alert(e)}))},t.prototype.resetReplay=function(){this.props.globalState.recorder.reset()},t.prototype.exportReplay=function(){this.props.globalState.recorder.export()},t.prototype.render=function(){var e=this,t=this.props.scene;return t?i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"CAPTURE"},i.createElement(je,{label:"Screenshot",onClick:function(){return e.captureScreenshot()}}),i.createElement(je,{label:this.state.tag,onClick:function(){return e.recordVideo()}})),i.createElement(he,{globalState:this.props.globalState,title:"CAPTURE WITH RTT"},i.createElement(je,{label:"Capture",onClick:function(){return e.captureRender()}}),i.createElement("div",{className:"vector3Line"},i.createElement(ze,{label:"Precision",target:this._screenShotSize,propertyName:"precision",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),i.createElement(ge,{label:"Use Width/Height",onSelect:function(t){e._useWidthHeight=t,e.forceUpdate()},isSelected:function(){return e._useWidthHeight}}),this._useWidthHeight&&i.createElement("div",{className:"secondLine"},i.createElement(Pe,{label:"Width",precision:0,step:1,value:this._screenShotSize.width?this._screenShotSize.width:512,onChange:function(t){return e._screenShotSize.width=t}}),i.createElement(Pe,{label:"Height",precision:0,step:1,value:this._screenShotSize.height?this._screenShotSize.height:512,onChange:function(t){return e._screenShotSize.height=t}})))),i.createElement(he,{globalState:this.props.globalState,title:"REPLAY"},i.createElement(je,{label:"Generate replay code",onClick:function(){return e.exportReplay()}}),i.createElement(je,{label:"Reset",onClick:function(){return e.resetReplay()}})),i.createElement(he,{globalState:this.props.globalState,title:"SCENE EXPORT"},this._isExporting&&i.createElement(de,{label:"Please wait..exporting",ignoreValue:!0}),!this._isExporting&&i.createElement(i.Fragment,null,i.createElement(je,{label:"Export to GLB",onClick:function(){return e.exportGLTF()}}),i.createElement(je,{label:"Export to Babylon",onClick:function(){return e.exportBabylon()}}),!t.getEngine().premultipliedAlpha&&t.environmentTexture&&t.environmentTexture.isPrefiltered&&t.activeCamera&&i.createElement(je,{label:"Generate .env texture",onClick:function(){return e.createEnvTexture()}}))),BABYLON.GLTFFileLoader&&i.createElement(Ht,{scene:t,globalState:this.props.globalState})):null},t}(ue),Wt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.globalState;return i.createElement("div",{className:"pane"},i.createElement(he,{globalState:this.props.globalState,title:"UI"},i.createElement(ge,{label:"Only display Euler values",target:e,propertyName:"onlyUseEulers"}),i.createElement(ge,{label:"Ignore backfaces when picking",target:e,propertyName:"ignoreBackfacesForPicking"})))},t}(ue);r(26);var Yt=function(e){function t(t){var r=e.call(this,t)||this;r._once=!0;var n=0;if(r.props.globalState){var a=r.props.globalState.validationResults;a&&(a.issues.numErrors||a.issues.numWarnings)&&(n=3)}return r.state={selectedEntity:null,selectedIndex:n},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState&&(this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((function(t){e.setState({selectedEntity:t,selectedIndex:0})})),this._onTabChangedObserver=this.props.globalState.onTabChangedObservable.add((function(t){e.setState({selectedIndex:t})})))},t.prototype.componentWillUnmount=function(){this.props.globalState&&(this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onTabChangedObserver&&this.props.globalState.onTabChangedObservable.remove(this._onTabChangedObserver))},t.prototype.changeSelectedTab=function(e){this.props.globalState&&this.props.globalState.onTabChangedObservable.notifyObservers(e)},t.prototype.renderContent=function(){var e=this;return this.props.globalState&&this.props.scene?i.createElement(P,{selectedIndex:this.state.selectedIndex,onSelectedIndexChange:function(t){return e.changeSelectedTab(t)}},i.createElement(zt,{title:"Properties",icon:Y,scene:this.props.scene,selectedEntity:this.state.selectedEntity,globalState:this.props.globalState,onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable}),i.createElement(Ce,{title:"Debug",icon:M,scene:this.props.scene,globalState:this.props.globalState}),i.createElement(fe,{title:"Statistics",icon:R,scene:this.props.scene,globalState:this.props.globalState}),i.createElement(Bt,{title:"Tools",icon:pe,scene:this.props.scene,globalState:this.props.globalState}),i.createElement(Wt,{title:"Settings",icon:D,scene:this.props.scene,globalState:this.props.globalState})):null},t.prototype.onClose=function(){this.props.onClose&&this.props.onClose()},t.prototype.onPopup=function(){this.props.onPopup&&this.props.onPopup()},t.prototype.render=function(){var e=this;return this.props.popupMode?i.createElement("div",{id:"actionTabs"},!this.props.noHeader&&i.createElement(Ft,{title:"INSPECTOR",handleBack:!0,noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()},onSelectionChangedObservable:this.props.globalState?this.props.globalState.onSelectionChangedObservable:void 0}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("actionTabs");e&&(e.style.width="300px")}),150)),i.createElement(Oe.a,{id:"actionTabs",minWidth:300,maxWidth:600,size:{height:"100%"},minHeight:"100%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1}},!this.props.noHeader&&i.createElement(Ft,{title:"INSPECTOR",handleBack:!0,noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()},onSelectionChangedObservable:this.props.globalState?this.props.globalState.onSelectionChangedObservable:void 0}),this.renderContent()))},t}(i.Component),Xt={prefix:"far",iconName:"eye",icon:[576,512,[],"f06e","M569.354 231.631C512.97 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-102.556 0-192.091-54.701-240-136 44.157-74.933 123.677-127.27 216.162-135.007C273.958 131.078 280 144.83 280 160c0 30.928-25.072 56-56 56s-56-25.072-56-56l.001-.042C157.794 179.043 152 200.844 152 224c0 75.111 60.889 136 136 136s136-60.889 136-136c0-31.031-10.4-59.629-27.895-82.515C451.704 164.638 498.009 205.106 528 256c-47.908 81.299-137.444 136-240 136z"]},qt={prefix:"far",iconName:"eye-slash",icon:[576,512,[],"f070","M272.702 359.139c-80.483-9.011-136.212-86.886-116.93-167.042l116.93 167.042zM288 392c-102.556 0-192.092-54.701-240-136 21.755-36.917 52.1-68.342 88.344-91.658l-27.541-39.343C67.001 152.234 31.921 188.741 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.004 376.006 168.14 440 288 440a332.89 332.89 0 0 0 39.648-2.367l-32.021-45.744A284.16 284.16 0 0 1 288 392zm281.354-111.631c-33.232 56.394-83.421 101.742-143.554 129.492l48.116 68.74c3.801 5.429 2.48 12.912-2.949 16.712L450.23 509.83c-5.429 3.801-12.912 2.48-16.712-2.949L102.084 33.399c-3.801-5.429-2.48-12.912 2.949-16.712L125.77 2.17c5.429-3.801 12.912-2.48 16.712 2.949l55.526 79.325C226.612 76.343 256.808 72 288 72c119.86 0 224.996 63.994 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM528 256c-44.157-74.933-123.677-127.27-216.162-135.007C302.042 131.078 296 144.83 296 160c0 30.928 25.072 56 56 56s56-25.072 56-56l-.001-.042c30.632 57.277 16.739 130.26-36.928 171.719l26.695 38.135C452.626 346.551 498.308 306.386 528 256z"]},Kt={prefix:"far",iconName:"lightbulb",icon:[352,512,[],"f0eb","M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"]},Qt={prefix:"far",iconName:"square",icon:[448,512,[],"f0c8","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"]},$t=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"title",onClick:function(){return e.onClick()}},i.createElement("div",{className:"titleIcon"},i.createElement(O,{icon:this.props.icon,color:this.props.color})),i.createElement("div",{className:"titleText"},this.props.label||"no name"))},t}(i.Component),Zt=function(e){function t(t){var r=e.call(this,t)||this;return r.state={popupVisible:!1},r}return a(t,e),t.prototype.showPopup=function(){this.setState({popupVisible:!0})},t.prototype.componentDidMount=function(){this._popup&&this._popup.focus()},t.prototype.componentDidUpdate=function(){this._popup&&this._popup.focus()},t.prototype.render=function(){var e=this;if(!this.props.extensibilityGroups)return null;for(var t=[],r=0,n=this.props.extensibilityGroups;r<n.length;r++){var a=n[r];a.predicate(this.props.target)&&t.push.apply(t,a.entries)}return 0===t.length?null:i.createElement("div",{ref:"extensions",className:"extensions",onClick:function(){return e.showPopup()}},i.createElement("div",{title:"Additional options",className:"icon"},i.createElement(O,{icon:H})),i.createElement("div",{ref:function(t){e._popup=t},tabIndex:-1,className:this.state.popupVisible?"popup show":"popup",onBlur:function(){return e.setState({popupVisible:!1})}},t.map((function(t){return i.createElement("div",{key:t.label,className:"popupMenu",onClick:function(){return t.action(e.props.target)}},t.label)}))))},t}(i.Component),Jt=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.mesh;return r.state={isBoundingBoxEnabled:n.showBoundingBox,isVisible:r.props.mesh.isVisible},r}return a(t,e),t.prototype.showBoundingBox=function(){this.props.mesh.showBoundingBox=!this.state.isBoundingBoxEnabled,this.setState({isBoundingBoxEnabled:!this.state.isBoundingBoxEnabled})},t.prototype.switchVisibility=function(){var e=!this.state.isVisible;this.setState({isVisible:e}),this.props.mesh.isVisible=e},t.prototype.render=function(){var e=this,t=this.props.mesh,r=this.state.isVisible?i.createElement(O,{icon:Xt}):i.createElement(O,{icon:qt,className:"isNotActive"});return i.createElement("div",{className:"meshTools"},i.createElement($t,{label:t.name,onClick:function(){return e.props.onClick()},icon:V,color:"dodgerblue"}),i.createElement("div",{className:this.state.isBoundingBoxEnabled?"bounding-box selected icon":"bounding-box icon",onClick:function(){return e.showBoundingBox()},title:"Show/Hide bounding box"},i.createElement(O,{icon:Qt})),i.createElement("div",{className:"visibility icon",onClick:function(){return e.switchVisibility()},title:"Show/Hide mesh"},r),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),er=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.camera,a=n.getScene();return r.state={isActive:a.activeCamera===n},r}return a(t,e),t.prototype.setActive=function(){var e=this.props.camera,t=e.getScene();t.activeCamera=e,e.attachControl(t.getEngine().getRenderingCanvas(),!0),this.setState({isActive:!0})},t.prototype.componentDidMount=function(){var e=this,t=this.props.camera,r=t.getScene();this._onActiveCameraObserver=r.onActiveCameraChanged.add((function(){e.state.isActive&&r.activeCameras.length<=1&&t.detachControl(r.getEngine().getRenderingCanvas()),e.setState({isActive:r.activeCamera===t})}))},t.prototype.componentWillUnmount=function(){this._onActiveCameraObserver&&this.props.camera.getScene().onActiveCameraChanged.remove(this._onActiveCameraObserver)},t.prototype.render=function(){var e=this,t=this.state.isActive?i.createElement(O,{icon:se}):i.createElement(O,{icon:se,className:"isNotActive"}),r=this.props.camera.getScene();return i.createElement("div",{className:"cameraTools"},i.createElement($t,{label:this.props.camera.name,onClick:function(){return e.props.onClick()},icon:L,color:"green"}),(!r.activeCameras||0===r.activeCameras.length)&&i.createElement("div",{className:"activeCamera icon",onClick:function(){return e.setActive()},title:"Set as main camera"},t),i.createElement(Zt,{target:this.props.camera,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),tr=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.light;return r.state={isEnabled:n.isEnabled(),isGizmoEnabled:n.reservedDataStore&&n.reservedDataStore.lightGizmo},r}return a(t,e),t.prototype.switchIsEnabled=function(){var e=this.props.light;e.setEnabled(!e.isEnabled()),this.setState({isEnabled:e.isEnabled()})},t.prototype.toggleGizmo=function(){var e=this.props.light;e.reservedDataStore&&e.reservedDataStore.lightGizmo?(e.getScene().reservedDataStore&&e.getScene().reservedDataStore.gizmoManager&&e.getScene().reservedDataStore.gizmoManager.attachToMesh(null),this.props.globalState.enableLightGizmo(e,!1),this.setState({isGizmoEnabled:!1})):(this.props.globalState.enableLightGizmo(e,!0),this.setState({isGizmoEnabled:!0}))},t.prototype.render=function(){var e=this,t=this.state.isEnabled?i.createElement(O,{icon:Kt}):i.createElement(O,{icon:Kt,className:"isNotActive"}),r=this.state.isGizmoEnabled||this.props.light&&this.props.light.reservedDataStore&&this.props.light.reservedDataStore.lightGizmo?i.createElement(O,{icon:B}):i.createElement(O,{icon:B,className:"isNotActive"});return i.createElement("div",{className:"lightTools"},i.createElement($t,{label:this.props.light.name,onClick:function(){return e.props.onClick()},icon:Q,color:"yellow"}),i.createElement("div",{className:"visibility icon",onClick:function(){return e.switchIsEnabled()},title:"Turn on/off the light"},t),i.createElement("div",{className:"enableGizmo icon",onClick:function(){return e.toggleGizmo()},title:"Turn on/off the light's gizmo"},r),i.createElement(Zt,{target:this.props.light,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),rr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"materialTools"},i.createElement($t,{label:this.props.material.name,onClick:function(){return e.props.onClick()},icon:_,color:"orange"}),i.createElement(Zt,{target:this.props.material,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),nr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"textureTools"},i.createElement($t,{label:this.props.texture.name,onClick:function(){return e.props.onClick()},icon:K,color:"mediumpurple"}),i.createElement(Zt,{target:this.props.texture,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),ar=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.transformNode;return i.createElement("div",{className:"transformNodeTools"},i.createElement($t,{label:t.name,onClick:function(){return e.props.onClick()},icon:j,color:"cornflowerblue"}),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),or=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.control;return r.state={isActive:n.isHighlighted,isVisible:n.isVisible},r}return a(t,e),t.prototype.highlight=function(){var e=this.props.control;e.isHighlighted=!e.isHighlighted,this.setState({isActive:e.isHighlighted})},t.prototype.switchVisibility=function(){var e=!this.state.isVisible;this.setState({isVisible:e}),this.props.control.isVisible=e},t.prototype.render=function(){var e=this,t=this.props.control,r=(t.name||"No name")+" ["+t.getClassName()+"]",n=this.state.isActive?i.createElement(O,{icon:q}):i.createElement(O,{icon:q,className:"isNotActive"}),a=this.state.isVisible?i.createElement(O,{icon:B}):i.createElement(O,{icon:W,className:"isNotActive"});return i.createElement("div",{className:"controlTools"},i.createElement($t,{label:r,onClick:function(){return e.props.onClick()},icon:J,color:"greenyellow"}),i.createElement("div",{className:"highlight icon",onClick:function(){return e.highlight()},title:"Highlight this control"},n),i.createElement("div",{className:"visibility icon",onClick:function(){return e.switchVisibility()},title:"Show/Hide control"},a),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),ir=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isInPickingMode:!1},r}return a(t,e),t.prototype.componentWillUnmount=function(){var e=this.props.texture;this._onControlPickedObserver&&(e.onControlPickedObservable.remove(this._onControlPickedObserver),this._onControlPickedObserver=null)},t.prototype.onPickingMode=function(){var e=this,t=this.props.texture;this._onControlPickedObserver&&(t.onControlPickedObservable.remove(this._onControlPickedObserver),this._onControlPickedObserver=null),this.state.isInPickingMode||(this._onControlPickedObserver=t.onControlPickedObservable.add((function(t){e.props.onSelectionChangedObservable&&("ScrollViewerWindow"===t.getClassName()&&(t=t.getAscendantOfClass("ScrollViewer")),e.props.onSelectionChangedObservable.notifyObservers(t))}))),this.setState({isInPickingMode:!this.state.isInPickingMode})},t.prototype.render=function(){var e=this;return i.createElement("div",{className:"adtextureTools"},i.createElement($t,{label:this.props.texture.name,onClick:function(){return e.props.onClick()},icon:K,color:"mediumpurple"}),i.createElement("div",{className:this.state.isInPickingMode?"pickingMode selected icon":"pickingMode icon",onClick:function(){return e.onPickingMode()},title:"Turn picking mode on/off"},i.createElement(O,{icon:U})),i.createElement(Zt,{target:this.props.texture,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),lr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.animationGroup;return i.createElement("div",{className:"animationGroupTools"},i.createElement($t,{label:t.name,onClick:function(){return e.props.onClick()},icon:X,color:"cornflowerblue"}),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),sr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"postProcessTools"},i.createElement($t,{label:this.props.postProcess.name,onClick:function(){return e.props.onClick()},icon:$,color:"red"}),i.createElement(Zt,{target:this.props.postProcess,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),cr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"postProcessTools"},i.createElement($t,{label:this.props.renderPipeline.name,onClick:function(){return e.props.onClick()},icon:$,color:"orangered"}),i.createElement(Zt,{target:this.props.renderPipeline,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),pr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.skeleton;return i.createElement("div",{className:"skeletonTools"},i.createElement($t,{label:t.name||"no name",onClick:function(){return e.props.onClick()},icon:ne,color:"gray"}),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),ur=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.bone;return i.createElement("div",{className:"skeletonTools"},i.createElement($t,{label:t.name||"no name",onClick:function(){return e.props.onClick()},icon:N,color:"lightgray"}),i.createElement(Zt,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(i.Component),dr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.render=function(){var e=this,t=this.props.entity;if(t&&t.getClassName){var r=t.getClassName();if(-1!==r.indexOf("Mesh")){var n=t;return n.isAnInstance||n.getTotalVertices()>0?i.createElement(Jt,{extensibilityGroups:this.props.extensibilityGroups,mesh:n,onClick:function(){return e.onClick()}}):i.createElement(ar,{extensibilityGroups:this.props.extensibilityGroups,transformNode:t,onClick:function(){return e.onClick()}})}if(-1!==r.indexOf("Skeleton"))return i.createElement(pr,{extensibilityGroups:this.props.extensibilityGroups,skeleton:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Bone"))return i.createElement(ur,{extensibilityGroups:this.props.extensibilityGroups,bone:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("TransformNode"))return i.createElement(ar,{extensibilityGroups:this.props.extensibilityGroups,transformNode:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Camera"))return i.createElement(er,{extensibilityGroups:this.props.extensibilityGroups,camera:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Light",r.length-5))return i.createElement(tr,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,light:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Material"))return i.createElement(rr,{extensibilityGroups:this.props.extensibilityGroups,material:t,onClick:function(){return e.onClick()}});if("AdvancedDynamicTexture"===r)return i.createElement(ir,{onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable,extensibilityGroups:this.props.extensibilityGroups,texture:t,onClick:function(){return e.onClick()}});if("AnimationGroup"===r)return i.createElement(lr,{extensibilityGroups:this.props.extensibilityGroups,animationGroup:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Texture"))return i.createElement(nr,{extensibilityGroups:this.props.extensibilityGroups,texture:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("RenderingPipeline"))return i.createElement(cr,{extensibilityGroups:this.props.extensibilityGroups,renderPipeline:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("PostProcess"))return i.createElement(sr,{extensibilityGroups:this.props.extensibilityGroups,postProcess:t,onClick:function(){return e.onClick()}});if(t._host)return i.createElement(or,{extensibilityGroups:this.props.extensibilityGroups,control:t,onClick:function(){return e.onClick()}})}return i.createElement("div",{className:"meshTools"},i.createElement($t,{label:t.name,onClick:function(){return e.onClick()},icon:te,color:"cornflowerblue"}))},t}(i.Component),hr=function(){function e(){}return e.StoreLocalBooleanSettings=function(e,t){"undefined"!=typeof Storage&&localStorage.setItem(e,t?"true":"false")},e.ReadLocalBooleanSettings=function(e,t){return"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?"true"===localStorage.getItem(e):t},e.LookForItem=function(t,r){if(t===r)return!0;var n=t.getChildren?t.getChildren():t.children;if(n&&"MultiMaterial"!==t.getClassName())for(var a=0,o=n;a<o.length;a++){var i=o[a];if(e.LookForItem(i,r))return!0}return!1},e._RecursiveRemoveHiddenMeshesAndHoistChildren=function(t){for(var r=[],n=0,a=t;n<a.length;n++){var o=a[n];o.reservedDataStore&&o.reservedDataStore.hidden&&o.getChildMeshes?e._RecursiveRemoveHiddenMeshesAndHoistChildren(o.getChildMeshes()).forEach((function(e){r.push(e)})):o.reservedDataStore&&o.reservedDataStore.hidden||r.push(o)}return r},e.SortAndFilter=function(t,r){if(!r)return[];var n=e._RecursiveRemoveHiddenMeshesAndHoistChildren(r);return t&&t.reservedDataStore&&t.reservedDataStore.detachedChildren&&n.push.apply(n,t.reservedDataStore.detachedChildren),n.sort((function(e,t){var r=(e.name||"").toLowerCase(),n=(t.name||"").toLowerCase();return r===n?0:r>n?1:-1}))},e}(),br=function(e){function t(t){var r=e.call(this,t)||this;return r._wasSelected=!1,r.state={isSelected:r.props.entity===r.props.selectedEntity,isExpanded:r.props.mustExpand||hr.LookForItem(r.props.entity,r.props.selectedEntity)},r}return a(t,e),t.prototype.switchExpandedState=function(){this.setState({isExpanded:!this.state.isExpanded})},t.prototype.shouldComponentUpdate=function(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;if(e.selectedEntity){if(e.entity===e.selectedEntity)return t.isSelected=!0,!0;if(t.isSelected=!1,hr.LookForItem(e.entity,e.selectedEntity))return t.isExpanded=!0,!0}return!0},t.prototype.scrollIntoView=function(){var e=s.findDOMNode(this);e&&e.scrollIntoView(!1)},t.prototype.componentDidMount=function(){this.state.isSelected&&this.scrollIntoView()},t.prototype.componentDidUpdate=function(){this.state.isSelected&&!this._wasSelected&&this.scrollIntoView(),this._wasSelected=!1},t.prototype.onSelect=function(){if(this.props.globalState.onSelectionChangedObservable){this._wasSelected=!0;var e=this.props.entity;this.props.globalState.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.renderChildren=function(){var e=this,r=this.props.entity;return(r.getChildren||r.children)&&this.state.isExpanded?hr.SortAndFilter(r,r.getChildren?r.getChildren():r.children).map((function(r){return i.createElement(t,{globalState:e.props.globalState,mustExpand:e.props.mustExpand,extensibilityGroups:e.props.extensibilityGroups,selectedEntity:e.props.selectedEntity,key:r.uniqueId,offset:e.props.offset+2,entity:r,filter:e.props.filter})})):null},t.prototype.render=function(){var e=this,t={paddingLeft:10*(this.props.offset+.5)+"px"},r=this.props.entity,n=this.state.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee}),a=("MultiMaterial"===r.getClassName()?[]:hr.SortAndFilter(r,r.getChildren?r.getChildren():r.children)).length>0;if(r.reservedDataStore||(r.reservedDataStore={}),r.reservedDataStore.setExpandedState=function(t){e.setState({isExpanded:t})},r.reservedDataStore.isExpanded=this.state.isExpanded,this.props.filter){var o=this.props.filter.toLowerCase();if(!r.name||-1===r.name.toLowerCase().indexOf(o)){if(!a)return null;if(r.getDescendants&&0===r.getDescendants(!1,(function(e){return console.log(e.name),e.name&&-1!==e.name.toLowerCase().indexOf(o)})).length)return null}}return i.createElement("div",null,i.createElement("div",{className:this.state.isSelected?"itemContainer selected":"itemContainer",style:t},a&&i.createElement("div",{className:"arrow icon",onClick:function(){return e.switchExpandedState()}},n),i.createElement(dr,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,label:r.name,entity:r,onClick:function(){return e.onSelect()}})),this.renderChildren())},t}(i.Component),mr=r(5),fr=r.n(mr),gr=r(4),vr=r.n(gr);
  24. /*!
  25. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  26. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  27. */function yr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e&&e.apply(void 0,r)}function Cr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Er="react-contextmenu",Or="react-contextmenu--visible",Sr="react-contextmenu-wrapper",xr="react-contextmenu-item",Pr="react-contextmenu-item--active",kr="react-contextmenu-item--disabled",wr="react-contextmenu-item--divider",Tr="react-contextmenu-item--selected",Nr="react-contextmenu-submenu",_r={},Mr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Lr="REACT_CONTEXTMENU_SHOW",Rr="REACT_CONTEXTMENU_HIDE";function Ar(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,n=void 0;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),r&&(r.dispatchEvent(n),vr()(_r,t))}function Ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];Ar(Lr,vr()({},e,{type:Lr}),t)}function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];Ar(Rr,vr()({},e,{type:Rr}),t)}var Dr=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handleShowEvent=function(e){for(var r in t.callbacks)Cr(t.callbacks,r)&&t.callbacks[r].show(e)},this.handleHideEvent=function(e){for(var r in t.callbacks)Cr(t.callbacks,r)&&t.callbacks[r].hide(e)},this.register=function(e,r){var n=Math.random().toString(36).substring(7);return t.callbacks[n]={show:e,hide:r},n},this.unregister=function(e){e&&t.callbacks[e]&&delete t.callbacks[e]},this.callbacks={},Mr&&(window.addEventListener(Lr,this.handleShowEvent),window.addEventListener(Rr,this.handleHideEvent))},zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vr(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Hr=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=Vr(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleClick=function(e){e.preventDefault(),n.props.disabled||n.props.divider||(yr(n.props.onClick,e,vr()({},n.props.data,_r.data),_r.target),n.props.preventClose||jr())},Vr(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Fr(t,[{key:"render",value:function(){var e,t=this,r=this.props,n=r.disabled,a=r.divider,o=r.children,i=r.attributes,s=r.selected,c=fr()(xr,i.className,(Ur(e={},fr()(kr,i.disabledClassName),n),Ur(e,fr()(wr,i.dividerClassName),a),Ur(e,fr()(Tr,i.selectedClassName),s),e));return l.a.createElement("div",zr({},i,{className:c,role:"menuitem",tabIndex:"-1","aria-disabled":n?"true":"false","aria-orientation":a?"horizontal":null,ref:function(e){t.ref=e},onMouseMove:this.props.onMouseMove,onMouseLeave:this.props.onMouseLeave,onTouchEnd:this.handleClick,onClick:this.handleClick}),a?null:o)}}]),t}(i.Component);Hr.propTypes={children:d.a.node,attributes:d.a.object,data:d.a.object,disabled:d.a.bool,divider:d.a.bool,preventClose:d.a.bool,onClick:d.a.func,selected:d.a.bool,onMouseMove:d.a.func,onMouseLeave:d.a.func},Hr.defaultProps={disabled:!1,data:{},divider:!1,attributes:{},preventClose:!1,onClick:function(){return null},children:null,selected:!1,onMouseMove:function(){return null},onMouseLeave:function(){return null}};var Gr=Hr;var Br=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Wr.call(r),r.seletedItemRef=null,r.state={selectedItem:null,forceSubMenuOpen:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.Component);Br.propTypes={children:d.a.node.isRequired};var Wr=function(){var e=this;this.handleKeyNavigation=function(t){if(!1!==e.state.isVisible)switch(t.keyCode){case 37:case 27:t.preventDefault(),e.hideMenu(t);break;case 38:t.preventDefault(),e.selectChildren(!0);break;case 40:t.preventDefault(),e.selectChildren(!1);break;case 39:e.tryToOpenSubMenu(t);break;case 13:t.preventDefault(),e.tryToOpenSubMenu(t);var r=e.seletedItemRef&&e.seletedItemRef.props&&e.seletedItemRef.props.disabled;e.seletedItemRef&&e.seletedItemRef.ref instanceof HTMLElement&&!r?e.seletedItemRef.ref.click():e.hideMenu(t)}},this.handleForceClose=function(){e.setState({forceSubMenuOpen:!1})},this.tryToOpenSubMenu=function(t){e.state.selectedItem&&e.state.selectedItem.type===e.getSubMenuType()&&(t.preventDefault(),e.setState({forceSubMenuOpen:!0}))},this.selectChildren=function(t){var r=e.state.selectedItem,n=[];l.a.Children.forEach(e.props.children,(function t(r){r&&([Gr,e.getSubMenuType()].indexOf(r.type)<0?l.a.Children.forEach(r.props.children,t):r.props.divider||n.push(r))}));var a=n.indexOf(r);a<0?e.setState({selectedItem:t?n[n.length-1]:n[0],forceSubMenuOpen:!1}):t?e.setState({selectedItem:n[a-1<0?n.length-1:a-1],forceSubMenuOpen:!1}):e.setState({selectedItem:n[a+1<n.length?a+1:0],forceSubMenuOpen:!1})},this.onChildMouseMove=function(t){e.state.selectedItem!==t&&e.setState({selectedItem:t,forceSubMenuOpen:!1})},this.onChildMouseLeave=function(){e.setState({selectedItem:null,forceSubMenuOpen:!1})},this.renderChildren=function(t){return l.a.Children.map(t,(function(t){var r={};return l.a.isValidElement(t)?[Gr,e.getSubMenuType()].indexOf(t.type)<0?(r.children=e.renderChildren(t.props.children),l.a.cloneElement(t,r)):(r.onMouseLeave=e.onChildMouseLeave.bind(e),t.type===e.getSubMenuType()&&(r.forceOpen=e.state.forceSubMenuOpen&&e.state.selectedItem===t,r.forceClose=e.handleForceClose,r.parentKeyNavigationHandler=e.handleKeyNavigation),t.props.divider||e.state.selectedItem!==t?(r.onMouseMove=function(){return e.onChildMouseMove(t)},l.a.cloneElement(t,r)):(r.selected=!0,r.ref=function(t){e.seletedItemRef=t},l.a.cloneElement(t,r))):t}))}},Yr=Br,Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qr=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getMenuPosition=function(){var e=window,t=e.innerWidth,n=e.innerHeight,a=r.subMenu.getBoundingClientRect(),o={};return a.bottom>n?o.bottom=0:o.top=0,a.right<t?o.left="100%":o.right="100%",o},r.getRTLMenuPosition=function(){var e=window.innerHeight,t=r.subMenu.getBoundingClientRect(),n={};return t.bottom>e?n.bottom=0:n.top=0,t.left<0?n.left="100%":n.right="100%",n},r.hideMenu=function(e){e.detail&&e.detail.id&&r.menu&&e.detail.id!==r.menu.id||(r.props.forceOpen&&r.props.forceClose(),r.setState({visible:!1,selectedItem:null}),r.unregisterHandlers())},r.handleClick=function(e){e.preventDefault(),r.props.disabled||yr(r.props.onClick,e,vr()({},r.props.data,_r.data),_r.target)},r.handleMouseEnter=function(){r.closetimer&&clearTimeout(r.closetimer),r.props.disabled||r.state.visible||(r.opentimer=setTimeout((function(){return r.setState({visible:!0,selectedItem:null})}),r.props.hoverDelay))},r.handleMouseLeave=function(){r.opentimer&&clearTimeout(r.opentimer),r.state.visible&&(r.closetimer=setTimeout((function(){return r.setState({visible:!1,selectedItem:null})}),r.props.hoverDelay))},r.menuRef=function(e){r.menu=e},r.subMenuRef=function(e){r.subMenu=e},r.registerHandlers=function(){document.removeEventListener("keydown",r.props.parentKeyNavigationHandler),document.addEventListener("keydown",r.handleKeyNavigation)},r.unregisterHandlers=function(e){document.removeEventListener("keydown",r.handleKeyNavigation),e||document.addEventListener("keydown",r.props.parentKeyNavigationHandler)},r.state=vr()({},r.state,{visible:!1}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),qr(t,[{key:"componentDidMount",value:function(){this.listenId=Dr.register((function(){}),this.hideMenu)}},{key:"getSubMenuType",value:function(){return t}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;if(this.isVisibilityChange)if(this.props.forceOpen||this.state.visible){(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),Cr(t,"top")&&(e.subMenu.style.top=t.top),Cr(t,"left")&&(e.subMenu.style.left=t.left),Cr(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),Cr(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(Or),e.registerHandlers(),e.setState({selectedItem:null})}))}else{this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(Or)}}},{key:"componentWillUnmount",value:function(){this.listenId&&Dr.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,r=t.children,n=t.attributes,a=t.disabled,o=t.title,i=t.selected,s=this.state.visible,c={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:fr()(xr,Nr,n.listClassName),style:{position:"relative"}},p={className:fr()(xr,n.className,(e={},Kr(e,fr()(kr,n.disabledClassName),a),Kr(e,fr()(Pr,n.visibleClassName),s),Kr(e,fr()(Tr,n.selectedClassName),i),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},u={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:fr()(Er,this.props.className)};return l.a.createElement("nav",Xr({},c,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),l.a.createElement("div",Xr({},n,p),o),l.a.createElement("nav",Xr({},u,{role:"menu",tabIndex:"-1"}),this.renderChildren(r)))}}]),t}(Yr);Qr.propTypes={children:d.a.node.isRequired,attributes:d.a.object,title:d.a.node.isRequired,className:d.a.string,disabled:d.a.bool,hoverDelay:d.a.number,rtl:d.a.bool,selected:d.a.bool,onMouseMove:d.a.func,onMouseOut:d.a.func,forceOpen:d.a.bool,forceClose:d.a.func,parentKeyNavigationHandler:d.a.func},Qr.defaultProps={disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}};var $r=Qr,Zr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var Jr=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.registerHandlers=function(){document.addEventListener("mousedown",r.handleOutsideClick),document.addEventListener("touchstart",r.handleOutsideClick),document.addEventListener("scroll",r.handleHide),document.addEventListener("contextmenu",r.handleHide),document.addEventListener("keydown",r.handleKeyNavigation),window.addEventListener("resize",r.handleHide)},r.unregisterHandlers=function(){document.removeEventListener("mousedown",r.handleOutsideClick),document.removeEventListener("touchstart",r.handleOutsideClick),document.removeEventListener("scroll",r.handleHide),document.removeEventListener("contextmenu",r.handleHide),document.removeEventListener("keydown",r.handleKeyNavigation),window.removeEventListener("resize",r.handleHide)},r.handleShow=function(e){if(e.detail.id===r.props.id&&!r.state.isVisible){var t=e.detail.position,n=t.x,a=t.y;r.setState({isVisible:!0,x:n,y:a}),r.registerHandlers(),yr(r.props.onShow,e)}},r.handleHide=function(e){!r.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==r.props.id||(r.unregisterHandlers(),r.setState({isVisible:!1,selectedItem:null,forceSubMenuOpen:!1}),yr(r.props.onHide,e))},r.handleOutsideClick=function(e){r.menu.contains(e.target)||jr()},r.handleMouseLeave=function(e){e.preventDefault(),yr(r.props.onMouseLeave,e,vr()({},r.props.data,_r.data),_r.target),r.props.hideOnLeave&&jr()},r.handleContextMenu=function(e){e.preventDefault(),r.handleHide(e)},r.hideMenu=function(e){27!==e.keyCode&&13!==e.keyCode||jr()},r.getMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!r.menu)return n;var a=window,o=a.innerWidth,i=a.innerHeight,l=r.menu.getBoundingClientRect();return t+l.height>i&&(n.top-=l.height),e+l.width>o&&(n.left-=l.width),n.top<0&&(n.top=l.height<i?(i-l.height)/2:0),n.left<0&&(n.left=l.width<o?(o-l.width)/2:0),n},r.getRTLMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!r.menu)return n;var a=window,o=a.innerWidth,i=a.innerHeight,l=r.menu.getBoundingClientRect();return n.left=e-l.width,t+l.height>i&&(n.top-=l.height),n.left<0&&(n.left+=l.width),n.top<0&&(n.top=l.height<i?(i-l.height)/2:0),n.left+l.width>o&&(n.left=l.width<o?(o-l.width)/2:0),n},r.menuRef=function(e){r.menu=e},r.state=vr()({},r.state,{x:0,y:0,isVisible:!1}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Zr(t,[{key:"getSubMenuType",value:function(){return $r}},{key:"componentDidMount",value:function(){this.listenId=Dr.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var e=this;if(this.state.isVisible){var t=window.requestAnimationFrame||setTimeout;t((function(){var r=e.state,n=r.x,a=r.y,o=e.props.rtl?e.getRTLMenuPosition(n,a):e.getMenuPosition(n,a),i=o.top,l=o.left;t((function(){e.menu&&(e.menu.style.top=i+"px",e.menu.style.left=l+"px",e.menu.style.opacity=1,e.menu.style.pointerEvents="auto")}))}))}else{if(!this.menu)return;this.menu.style.opacity=0,this.menu.style.pointerEvents="none"}}},{key:"componentWillUnmount",value:function(){this.listenId&&Dr.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var e,t,r,n=this.props,a=n.children,o=n.className,i=n.style,s=this.state.isVisible,c=vr()({},i,{position:"fixed",opacity:0,pointerEvents:"none"}),p=fr()(Er,o,(r=s,(t=Or)in(e={})?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e));return l.a.createElement("nav",{role:"menu",tabIndex:"-1",ref:this.menuRef,style:c,className:p,onContextMenu:this.handleContextMenu,onMouseLeave:this.handleMouseLeave},this.renderChildren(a))}}]),t}(Yr);Jr.propTypes={id:d.a.string.isRequired,children:d.a.node.isRequired,data:d.a.object,className:d.a.string,hideOnLeave:d.a.bool,rtl:d.a.bool,onHide:d.a.func,onMouseLeave:d.a.func,onShow:d.a.func,style:d.a.object},Jr.defaultProps={className:"",data:{},hideOnLeave:!1,rtl:!1,onHide:function(){return null},onMouseLeave:function(){return null},onShow:function(){return null},style:{}};var en=Jr,tn=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function rn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var nn=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=rn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.touchHandled=!1,n.handleMouseDown=function(e){n.props.holdToDisplay>=0&&0===e.button&&(e.persist(),e.stopPropagation(),n.mouseDownTimeoutId=setTimeout((function(){return n.handleContextClick(e)}),n.props.holdToDisplay)),yr(n.props.attributes.onMouseDown,e)},n.handleMouseUp=function(e){0===e.button&&clearTimeout(n.mouseDownTimeoutId),yr(n.props.attributes.onMouseUp,e)},n.handleMouseOut=function(e){0===e.button&&clearTimeout(n.mouseDownTimeoutId),yr(n.props.attributes.onMouseOut,e)},n.handleTouchstart=function(e){n.touchHandled=!1,n.props.holdToDisplay>=0&&(e.persist(),e.stopPropagation(),n.touchstartTimeoutId=setTimeout((function(){n.handleContextClick(e),n.touchHandled=!0}),n.props.holdToDisplay)),yr(n.props.attributes.onTouchStart,e)},n.handleTouchEnd=function(e){n.touchHandled&&e.preventDefault(),clearTimeout(n.touchstartTimeoutId),yr(n.props.attributes.onTouchEnd,e)},n.handleContextMenu=function(e){n.handleContextClick(e),yr(n.props.attributes.onContextMenu,e)},n.handleContextClick=function(e){if(!n.props.disable){e.preventDefault(),e.stopPropagation();var t=e.clientX||e.touches&&e.touches[0].pageX,r=e.clientY||e.touches&&e.touches[0].pageY;n.props.posX&&(t-=n.props.posX),n.props.posY&&(r-=n.props.posY),jr();var a=yr(n.props.collect,n.props),o={position:{x:t,y:r},target:n.elem,id:n.props.id,data:a};a&&"function"==typeof a.then?a.then((function(e){o.data=e,Ir(o)})):Ir(o)}},n.elemRef=function(e){n.elem=e},rn(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),tn(t,[{key:"render",value:function(){var e=this.props,t=e.renderTag,r=e.attributes,n=e.children,a=vr()({},r,{className:fr()(Sr,r.className),onContextMenu:this.handleContextMenu,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return l.a.createElement(t,a,n)}}]),t}(i.Component);nn.propTypes={id:d.a.string.isRequired,children:d.a.node.isRequired,attributes:d.a.object,collect:d.a.func,disable:d.a.bool,holdToDisplay:d.a.number,posX:d.a.number,posY:d.a.number,renderTag:d.a.oneOfType([d.a.node,d.a.func])},nn.defaultProps={attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0};var an=nn;Object.assign,function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}}();[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(Object.keys(an.propTypes)),["children"]);var on=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.expandAll=function(){this.props.onExpandAll(!this.props.isExpanded)},t.prototype.render=function(){var e=this,t=this.props.isExpanded?i.createElement(O,{icon:Z}):i.createElement(O,{icon:ee}),r=this.props.isExpanded?i.createElement(O,{icon:z}):i.createElement(O,{icon:G});return i.createElement("div",{className:"expandableHeader"},i.createElement("div",{className:"text"},i.createElement("div",{className:"arrow icon",onClick:function(){return e.props.onClick()}},t),i.createElement("div",{className:"text-value"},this.props.label)),i.createElement("div",{className:"expandAll icon",onClick:function(){return e.expandAll()},title:this.props.isExpanded?"Collapse all":"Expand all"},r))},t}(i.Component),ln=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return i.createElement("div",{className:"expandableHeader"},i.createElement("div",{className:"text"},i.createElement("div",{className:"arrow icon"},i.createElement(O,{icon:T})),i.createElement("div",{className:"text-value"},this.props.label)))},t}(i.Component),sn=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isExpanded:!1,mustExpand:!1},r}return a(t,e),t.prototype.switchExpandedState=function(){this.setState({isExpanded:!this.state.isExpanded,mustExpand:!1})},t.prototype.shouldComponentUpdate=function(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;var r=e.items;if(r&&r.length&&e.selectedEntity)for(var n=0,a=r;n<a.length;n++){var o=a[n];if(hr.LookForItem(o,e.selectedEntity))return t.isExpanded=!0,!0}return!0},t.prototype.expandAll=function(e){this.setState({isExpanded:e,mustExpand:e})},t.prototype.renderContextMenu=function(){return this.props.contextMenuItems?i.createElement(en,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator++,className:"context-menu"},this.props.contextMenuItems.map((function(e){return i.createElement(Gr,{onClick:function(){return e.action()},key:e.label},e.label)}))):(t._ContextMenuUniqueIdGenerator++,null)},t.prototype.render=function(){var e=this,r=this.props.items,n={paddingLeft:10*(this.props.offset+.5)+"px"};if(!r)return i.createElement("div",{className:"groupContainer",style:n},i.createElement("div",null,this.props.label));if(!r.length)return i.createElement("div",{className:"groupContainer",style:n},i.createElement(an,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),i.createElement(ln,{label:this.props.label})));if(!this.state.isExpanded)return i.createElement("div",{className:"groupContainer",style:n},i.createElement(an,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),i.createElement(on,{isExpanded:!1,label:this.props.label,onClick:function(){return e.switchExpandedState()},onExpandAll:function(t){return e.expandAll(t)}})));var a=hr.SortAndFilter(null,r);return i.createElement("div",null,i.createElement("div",{className:"groupContainer",style:n},i.createElement(an,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),i.createElement(on,{isExpanded:this.state.isExpanded,label:this.props.label,onClick:function(){return e.switchExpandedState()},onExpandAll:function(t){return e.expandAll(t)}}))),a.map((function(t){return i.createElement(br,{mustExpand:e.state.mustExpand,extensibilityGroups:e.props.extensibilityGroups,key:void 0!==t.uniqueId&&null!==t.uniqueId?t.uniqueId:t.name,offset:e.props.offset+1,selectedEntity:e.props.selectedEntity,entity:t,globalState:e.props.globalState,filter:e.props.filter})})))},t._ContextMenuUniqueIdGenerator=0,t}(i.Component),cn=function(){},pn=function(e){function t(t){var r=e.call(this,t)||this;r._posDragEnd=null,r._scaleDragEnd=null,r._rotateDragEnd=null;var n=r.props.scene,a=0;if(n.reservedDataStore&&n.reservedDataStore.gizmoManager){var o=n.reservedDataStore.gizmoManager;o.positionGizmoEnabled?a=1:o.rotationGizmoEnabled?a=2:o.scaleGizmoEnabled?a=3:o.boundingBoxGizmoEnabled&&(a=4)}return r.state={isSelected:!1,isInPickingMode:!1,gizmoMode:a},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(e.selectedEntity){if(e.scene===e.selectedEntity)return t.isSelected=!0,!0;t.isSelected=!1}return!0},t.prototype.componentDidMount=function(){var e=this;if(this.props.onSelectionChangedObservable){var t=this.props.scene;this._onSelectionChangeObserver=this.props.onSelectionChangedObservable.add((function(r){if(e._selectedEntity=r,t.reservedDataStore&&t.reservedDataStore.gizmoManager){var n=t.reservedDataStore.gizmoManager,a=r.getClassName();"TransformNode"===a||-1!==a.indexOf("Mesh")?n.attachToMesh(r):-1!==a.indexOf("Light")?(e._selectedEntity.reservedDataStore&&e._selectedEntity.reservedDataStore.lightGizmo||(e.props.globalState.enableLightGizmo(e._selectedEntity,!0),e.forceUpdate()),n.attachToMesh(e._selectedEntity.reservedDataStore.lightGizmo.attachedMesh)):n.attachToMesh(null)}}))}},t.prototype.componentWillUnmount=function(){var e=this.props.scene;this._onPointerObserver&&(e.onPointerObservable.remove(this._onPointerObserver),this._onPointerObserver=null),this._gizmoLayerOnPointerObserver&&(e.onPointerObservable.remove(this._gizmoLayerOnPointerObserver),this._gizmoLayerOnPointerObserver=null),this._onSelectionChangeObserver&&this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver)},t.prototype.onSelect=function(){if(this.props.onSelectionChangedObservable){var e=this.props.scene;this.props.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.onPickingMode=function(){var e=this,t=this.props.scene;this._onPointerObserver&&(t.onPointerObservable.remove(this._onPointerObserver),this._onPointerObserver=null),this.state.isInPickingMode||(this._onPointerObserver=t.onPointerObservable.add((function(){var r=t.unTranslatedPointer,n=t.pick(r.x,r.y,(function(e){return e.isEnabled()&&e.isVisible&&e.getTotalVertices()>0}),!1,void 0,(function(t,r,n,a){if(!e.props.globalState.ignoreBackfacesForPicking)return!0;var o=c.TmpVectors.Vector3[0],i=c.TmpVectors.Vector3[1],l=c.TmpVectors.Vector3[2];return r.subtractToRef(t,o),n.subtractToRef(r,i),l=c.Vector3.Cross(o,i),c.Vector3.Dot(l,a.direction)<0}));if(e.props.globalState.lightGizmos.length>0){var a=e.props.globalState.lightGizmos[0].gizmoLayer.utilityLayerScene.pick(r.x,r.y,(function(t){for(var r=0,n=e.props.globalState.lightGizmos;r<n.length;r++){if(n[r].attachedMesh==t)return!0}return!1}));if(a&&a.hit&&e.props.onSelectionChangedObservable)return void e.props.onSelectionChangedObservable.notifyObservers(a.pickedMesh)}n&&n.hit&&e.props.onSelectionChangedObservable&&e.props.onSelectionChangedObservable.notifyObservers(n.pickedMesh)}),c.PointerEventTypes.POINTERTAP)),this.setState({isInPickingMode:!this.state.isInPickingMode})},t.prototype.setGizmoMode=function(e){var t=this,r=this.props.scene;r.reservedDataStore||(r.reservedDataStore={}),this._gizmoLayerOnPointerObserver&&(r.onPointerObservable.remove(this._gizmoLayerOnPointerObserver),this._gizmoLayerOnPointerObserver=null),r.reservedDataStore.gizmoManager||(r.reservedDataStore.gizmoManager=new c.GizmoManager(r));var n=r.reservedDataStore.gizmoManager;if(this._gizmoLayerOnPointerObserver=c.UtilityLayerRenderer.DefaultUtilityLayer.utilityLayerScene.onPointerObservable.add((function(e){if(e.type==c.PointerEventTypes.POINTERDOWN&&e.pickInfo&&e.pickInfo.pickedMesh){for(var r=e.pickInfo.pickedMesh;r&&null!=r.parent;)r=r.parent;for(var a=0,o=t.props.globalState.lightGizmos;a<o.length;a++){var i=o[a];i._rootMesh==r&&n.attachToMesh(i.attachedMesh)}}})),n.boundingBoxGizmoEnabled=!1,n.positionGizmoEnabled=!1,n.rotationGizmoEnabled=!1,n.scaleGizmoEnabled=!1,this.state.gizmoMode===e)e=0,n.dispose(),r.reservedDataStore.gizmoManager=null;else{switch(e){case 1:n.positionGizmoEnabled=!0,this._posDragEnd||(this._posDragEnd=n.gizmos.positionGizmo.onDragEndObservable.add((function(){if(n.gizmos.positionGizmo&&n.gizmos.positionGizmo.attachedMesh){var e=n.gizmos.positionGizmo.attachedMesh.reservedDataStore?n.gizmos.positionGizmo.attachedMesh.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.positionGizmo.attachedMesh;if(r.position){var a=new cn;a.object=r,a.property="position",a.value=r.position,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}}})));break;case 2:n.rotationGizmoEnabled=!0,this._rotateDragEnd||(this._rotateDragEnd=n.gizmos.rotationGizmo.onDragEndObservable.add((function(){if(n.gizmos.rotationGizmo&&n.gizmos.rotationGizmo.attachedMesh){var e=n.gizmos.rotationGizmo.attachedMesh.reservedDataStore?n.gizmos.rotationGizmo.attachedMesh.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.rotationGizmo.attachedMesh;if(r.rotationQuaternion)(a=new cn).object=r,a.property="rotationQuaternion",a.value=r.rotationQuaternion,t.props.globalState.onPropertyChangedObservable.notifyObservers(a);else if(r.rotation){(a=new cn).object=r,a.property="rotation",a.value=r.rotation,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}else if(r.direction){var a;(a=new cn).object=r,a.property="direction",a.value=r.direction,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}}})));break;case 3:n.scaleGizmoEnabled=!0,this._scaleDragEnd||(this._scaleDragEnd=n.gizmos.scaleGizmo.onDragEndObservable.add((function(){if(n.gizmos.scaleGizmo&&n.gizmos.scaleGizmo.attachedMesh){var e=n.gizmos.scaleGizmo.attachedMesh.reservedDataStore?n.gizmos.scaleGizmo.attachedMesh.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.scaleGizmo.attachedMesh;if(r.scaling){var a=new cn;a.object=r,a.property="scaling",a.value=r.scaling,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}}})));break;case 4:n.boundingBoxGizmoEnabled=!0,n.gizmos.boundingBoxGizmo&&(n.gizmos.boundingBoxGizmo.fixedDragMeshScreenSize=!0)}if(this._selectedEntity&&this._selectedEntity.getClassName){var a=this._selectedEntity.getClassName();"TransformNode"===a||-1!==a.indexOf("Mesh")?n.attachToMesh(this._selectedEntity):-1!==a.indexOf("Light")&&(this._selectedEntity.reservedDataStore&&this._selectedEntity.reservedDataStore.lightGizmo||(this.props.globalState.enableLightGizmo(this._selectedEntity,!0),this.forceUpdate()),n.attachToMesh(this._selectedEntity.reservedDataStore.lightGizmo.attachedMesh))}}this.setState({gizmoMode:e})},t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.state.isSelected?"itemContainer selected":"itemContainer"},i.createElement("div",{className:"sceneNode"},i.createElement("div",{className:"sceneTitle",onClick:function(){return e.onSelect()}},i.createElement(O,{icon:K})," Scene"),i.createElement("div",{className:1===this.state.gizmoMode?"translation selected icon":"translation icon",onClick:function(){return e.setGizmoMode(1)},title:"Enable/Disable position mode"},i.createElement(O,{icon:w})),i.createElement("div",{className:2===this.state.gizmoMode?"rotation selected icon":"rotation icon",onClick:function(){return e.setGizmoMode(2)},title:"Enable/Disable rotation mode"},i.createElement(O,{icon:re})),i.createElement("div",{className:3===this.state.gizmoMode?"scaling selected icon":"scaling icon",onClick:function(){return e.setGizmoMode(3)},title:"Enable/Disable scaling mode"},i.createElement(O,{icon:z})),i.createElement("div",{className:4===this.state.gizmoMode?"bounding selected icon":"bounding icon",onClick:function(){return e.setGizmoMode(4)},title:"Enable/Disable bounding box mode"},i.createElement(O,{icon:le})),i.createElement("div",{className:"separator"}),i.createElement("div",{className:this.state.isInPickingMode?"pickingMode selected icon":"pickingMode icon",onClick:function(){return e.onPickingMode()},title:"Turn picking mode on/off"},i.createElement(O,{icon:U})),i.createElement("div",{className:"refresh icon",onClick:function(){return e.props.onRefresh()},title:"Refresh the explorer"},i.createElement(O,{icon:ae})),i.createElement(Zt,{target:this.props.scene,extensibilityGroups:this.props.extensibilityGroups})))},t}(i.Component);r(29);var un=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:"filter"},i.createElement("input",{type:"text",placeholder:"Filter",onChange:function(t){return e.props.onFilter(t.target.value)}}))},t}(i.Component),dn=function(e){function t(t){var r=e.call(this,t)||this;return r._once=!0,r._hooked=!1,r.state={filter:null,selectedEntity:null,scene:r.props.scene},r.sceneMutationFunc=r.processMutation.bind(r),r}return a(t,e),t.prototype.processMutation=function(){this.props.globalState.blockMutationUpdates||this.forceUpdate()},t.prototype.componentDidMount=function(){var e=this;this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((function(t){e.state.selectedEntity!==t&&e.setState({selectedEntity:t})}))},t.prototype.componentWillUnmount=function(){this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onNewSceneAddedObserver&&c.EngineStore.LastCreatedEngine.onNewSceneAddedObservable.remove(this._onNewSceneAddedObserver);var e=this.state.scene;e.onNewSkeletonAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewCameraAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewLightAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewMaterialAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewMeshAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewTextureAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewTransformNodeAddedObservable.removeCallback(this.sceneMutationFunc),e.onSkeletonRemovedObservable.removeCallback(this.sceneMutationFunc),e.onMeshRemovedObservable.removeCallback(this.sceneMutationFunc),e.onCameraRemovedObservable.removeCallback(this.sceneMutationFunc),e.onLightRemovedObservable.removeCallback(this.sceneMutationFunc),e.onMaterialRemovedObservable.removeCallback(this.sceneMutationFunc),e.onTransformNodeRemovedObservable.removeCallback(this.sceneMutationFunc),e.onTextureRemovedObservable.removeCallback(this.sceneMutationFunc)},t.prototype.filterContent=function(e){this.setState({filter:e})},t.prototype.findSiblings=function(e,t,r,n,a){if(!t)return!1;var o=hr.SortAndFilter(e,t);if(!t||0===o.length)return!1;for(var i=0,l=o;i<l.length;i++){var s=l[i];if(s===r){if(a.found=!0,!n)return a.previousOne&&this.props.globalState.onSelectionChangedObservable.notifyObservers(a.previousOne),!0}else{if(a.found)return this.props.globalState.onSelectionChangedObservable.notifyObservers(s),!0;a.previousOne=s}if(s.getChildren&&s.reservedDataStore&&s.reservedDataStore.isExpanded&&this.findSiblings(s,s.getChildren(),r,n,a))return!0}return!1},t.prototype.processKeys=function(e){if(this.state.selectedEntity){var t=this.state.scene,r=!1,n=!1;if(38===e.keyCode)r=!0;else if(40===e.keyCode)n=!0,r=!0;else{var a;if(13===e.keyCode||39===e.keyCode)return(a=this.state.selectedEntity.reservedDataStore)&&a.setExpandedState&&a.setExpandedState(!0),void e.preventDefault();if(37===e.keyCode)return(a=this.state.selectedEntity.reservedDataStore)&&a.setExpandedState&&a.setExpandedState(!1),void e.preventDefault()}if(r){e.preventDefault();var o={};this.findSiblings(null,t.rootNodes,this.state.selectedEntity,n,o)||this.findSiblings(null,t.materials,this.state.selectedEntity,n,o)||this.findSiblings(null,t.textures,this.state.selectedEntity,n,o)}}},t.prototype.renderContent=function(){var e=this,t=this.state.scene;if(!t)return this._onNewSceneAddedObserver=c.EngineStore.LastCreatedEngine.onNewSceneAddedObservable.addOnce((function(t){return e.setState({scene:t})})),null;this._hooked||(this._hooked=!0,t.onNewSkeletonAddedObservable.add(this.sceneMutationFunc),t.onNewCameraAddedObservable.add(this.sceneMutationFunc),t.onNewLightAddedObservable.add(this.sceneMutationFunc),t.onNewMaterialAddedObservable.add(this.sceneMutationFunc),t.onNewMeshAddedObservable.add(this.sceneMutationFunc),t.onNewTextureAddedObservable.add(this.sceneMutationFunc),t.onNewTransformNodeAddedObservable.add(this.sceneMutationFunc),t.onSkeletonRemovedObservable.add(this.sceneMutationFunc),t.onMeshRemovedObservable.add(this.sceneMutationFunc),t.onCameraRemovedObservable.add(this.sceneMutationFunc),t.onLightRemovedObservable.add(this.sceneMutationFunc),t.onMaterialRemovedObservable.add(this.sceneMutationFunc),t.onTransformNodeRemovedObservable.add(this.sceneMutationFunc),t.onTextureRemovedObservable.add(this.sceneMutationFunc));var r=t.textures.filter((function(e){return"AdvancedDynamicTexture"===e.getClassName()})),n=t.textures.filter((function(e){return"AdvancedDynamicTexture"!==e.getClassName()})),a=t.postProcesses,o=t.postProcessRenderPipelineManager.supportedPipelines,l=[];t.activeCamera&&(o.some((function(e){return"DefaultRenderingPipeline"===e.getClassName()}))||l.push({label:"Add new Default Rendering Pipeline",action:function(){var r=new c.DefaultRenderingPipeline("Default rendering pipeline",!0,t,[t.activeCamera]);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),o.some((function(e){return"SSAORenderingPipeline"===e.getClassName()}))||l.push({label:"Add new SSAO Rendering Pipeline",action:function(){var r=new c.SSAORenderingPipeline("SSAO rendering pipeline",t,1,[t.activeCamera]);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),t.getEngine().webGLVersion>1&&!o.some((function(e){return"SSAORenderingPipeline"===e.getClassName()}))&&l.push({label:"Add new SSAO2 Rendering Pipeline",action:function(){var r=new c.SSAORenderingPipeline("SSAO2 rendering pipeline",t,1,[t.activeCamera]);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}));var s=[];s.push({label:"Add new point light",action:function(){var r=new c.PointLight("point light",c.Vector3.Zero(),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),s.push({label:"Add new directional light",action:function(){var r=new c.DirectionalLight("directional light",new c.Vector3(-1,-1,-.5),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),s.push({label:"Add new free camera",action:function(){var r=new c.FreeCamera("free camera",t.activeCamera?t.activeCamera.globalPosition:new c.Vector3(0,0,-5),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}});var p=[];return p.push.apply(p,t.materials),t.multiMaterials&&t.multiMaterials.length&&p.push.apply(p,t.multiMaterials),i.createElement("div",{id:"tree",onContextMenu:function(e){return e.preventDefault()}},i.createElement(un,{onFilter:function(t){return e.filterContent(t)}}),i.createElement(pn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,scene:t,onRefresh:function(){return e.forceUpdate()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),i.createElement(sn,{globalState:this.props.globalState,contextMenuItems:s,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.rootNodes,label:"Nodes",offset:1,filter:this.state.filter}),t.skeletons.length>0&&i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.skeletons,label:"Skeletons",offset:1,filter:this.state.filter}),i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:p,label:"Materials",offset:1,filter:this.state.filter}),i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:n,label:"Textures",offset:1,filter:this.state.filter}),a.length>0&&i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:a,label:"Post-processes",offset:1,filter:this.state.filter}),i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,contextMenuItems:l,selectedEntity:this.state.selectedEntity,items:o,label:"Rendering pipelines",offset:1,filter:this.state.filter}),r&&r.length>0&&i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:r,label:"GUI",offset:1,filter:this.state.filter}),t.animationGroups.length>0&&i.createElement(sn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.animationGroups,label:"Animation groups",offset:1,filter:this.state.filter}))},t.prototype.onClose=function(){this.props.onClose&&this.props.onClose()},t.prototype.onPopup=function(){this.props.onPopup&&this.props.onPopup()},t.prototype.render=function(){var e=this;return this.props.popupMode?i.createElement("div",{id:"sceneExplorer"},!this.props.noHeader&&i.createElement(Ft,{title:"SCENE EXPLORER",noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()}}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("sceneExplorer");e&&(e.style.width="300px")}),150)),i.createElement(Oe.a,{tabIndex:-1,id:"sceneExplorer",ref:"sceneExplorer",size:{height:"100%"},minWidth:300,maxWidth:600,minHeight:"100%",enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onKeyDown:function(t){return e.processKeys(t)}},!this.props.noHeader&&i.createElement(Ft,{title:"SCENE EXPLORER",noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()}}),this.renderContent()))},t}(i.Component),hn=r(31).default;r(32);var bn=function(e){function t(t){var r=e.call(this,t)||this;return r._once=!0,r}return a(t,e),t.prototype.componentDidMount=function(){this.refs.split&&hn([this.refs.topPart,this.refs.bottomPart],{direction:"vertical",minSize:[200,200],gutterSize:4})},t.prototype.renderContent=function(){return this.props.popupMode?i.createElement("div",{id:"split",className:"splitPopup"},i.createElement("div",{id:"topPart"},i.createElement(dn,{scene:this.props.scene,popupMode:!0,globalState:this.props.globalState,noHeader:!0})),i.createElement("div",{id:"separator"}),i.createElement("div",{id:"bottomPart",style:{marginTop:"4px",overflow:"hidden"}},i.createElement(Yt,{scene:this.props.scene,popupMode:!0,globalState:this.props.globalState,noHeader:!0}))):i.createElement("div",{ref:"split",id:"split",className:"noPopup"},i.createElement("div",{id:"topPart",ref:"topPart"},i.createElement(dn,{scene:this.props.scene,globalState:this.props.globalState,popupMode:!0,noHeader:!0})),i.createElement("div",{id:"bottomPart",ref:"bottomPart",style:{marginTop:"4px",overflow:"hidden"}},i.createElement(Yt,{scene:this.props.scene,globalState:this.props.globalState,popupMode:!0,noHeader:!0})))},t.prototype.render=function(){var e=this;return this.props.popupMode?i.createElement("div",{id:"embed"},i.createElement(Ft,{title:"INSPECTOR",noClose:this.props.noClose,noExpand:this.props.noExpand,handleBack:!0,onClose:function(){return e.props.onClose()},onPopup:function(){return e.props.onPopup()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("embed");e&&(e.style.width="300px")}),150)),i.createElement(Oe.a,{id:"embed",minWidth:300,maxWidth:600,size:{height:"100%"},minHeight:"100%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1}},i.createElement(Ft,{title:"INSPECTOR",noClose:this.props.noClose,noExpand:this.props.noExpand,handleBack:!0,onClose:function(){return e.props.onClose()},onPopup:function(){return e.props.onPopup()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),this.renderContent()))},t}(i.Component),mn=function(){function e(){}return e.prototype.reset=function(){this._recordedCodeLines=[],this._previousObject=null,this._previousProperty=""},e.prototype.record=function(e){this._recordedCodeLines||(this._recordedCodeLines=[]),this._previousObject===e.object&&this._previousProperty===e.property&&this._recordedCodeLines.pop();var t=e.value;void 0!==t.w?t="new BABYLON.Quaternion("+t.x+", "+t.y+", "+t.z+", "+t.w+")":void 0!==t.z?t="new BABYLON.Vector3("+t.x+", "+t.y+", "+t.z+")":void 0!==t.y?t="new BABYLON.Vector2("+t.x+", "+t.y+")":void 0!==t.a?t="new BABYLON.Color4("+t.r+", "+t.g+", "+t.b+", "+t.a+")":void 0!==t.b&&(t="new BABYLON.Color3("+t.r+", "+t.g+", "+t.b+")");var r=e.object.getClassName().toLowerCase();e.object.id&&("Scene"===r?r="scene":r.indexOf("camera")>-1?r='scene.getCameraByID("'+e.object.id+'")':r.indexOf("mesh")>-1?r='scene.getMeshByID("'+e.object.id+'")':r.indexOf("light")>-1?r='scene.getLightByID("'+e.object.id+'")':"transformnode"===r?r='scene.getTransformNodeByID("'+e.object.id+'")':"skeleton"===r?r='scene.getSkeletonById("'+e.object.id+'")':r.indexOf("material")>-1&&(r='scene.getMaterialByID("'+e.object.id+'")')),this._recordedCodeLines.push(r+"."+e.property+" = "+t+";"),this._previousObject=e.object,this._previousProperty=e.property},e.prototype.export=function(){var e="// Code generated by babylon.js Inspector\r\n// Please keep in mind to define the 'scene' variable before using that code\r\n\r\n";this._recordedCodeLines&&(e+=this._recordedCodeLines.join("\r\n")),c.Tools.Download(new Blob([e]),"pseudo-code.txt")},e}(),fn=function(){function e(){this.onInspectorClosedObservable=new c.Observable,this.onTabChangedObservable=new c.Observable,this.onValidationResultsUpdatedObservable=new c.Observable,this.glTFLoaderExtensionDefaults={},this.glTFLoaderDefaults={validate:!0},this.blockMutationUpdates=!1,this.selectedLineContainerTitle="",this.recorder=new mn,this._onlyUseEulers=null,this._ignoreBackfacesForPicking=null,this.lightGizmos=[]}return Object.defineProperty(e.prototype,"onlyUseEulers",{get:function(){return null===this._onlyUseEulers&&(this._onlyUseEulers=hr.ReadLocalBooleanSettings("settings_onlyUseEulers",!0)),this._onlyUseEulers},set:function(e){this._onlyUseEulers=e,hr.StoreLocalBooleanSettings("settings_onlyUseEulers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreBackfacesForPicking",{get:function(){return null===this._ignoreBackfacesForPicking&&(this._ignoreBackfacesForPicking=hr.ReadLocalBooleanSettings("settings_ignoreBackfacesForPicking",!1)),this._ignoreBackfacesForPicking},set:function(e){this._ignoreBackfacesForPicking=e,hr.StoreLocalBooleanSettings("settings_ignoreBackfacesForPicking",e)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){var t=this;this.onPropertyChangedObservable=e,e.add((function(e){t.recorder.record(e)}))},e.prototype.prepareGLTFPlugin=function(e){var t=this,r=this.glTFLoaderDefaults;if(void 0!==r)for(var n in r)e[n]=r[n];e.onExtensionLoadedObservable.add((function(e){var r=t.glTFLoaderExtensionDefaults[e.name];if(void 0!==r)for(var n in r)e[n]=r[n]})),e.onValidatedObservable.add((function(e){t.validationResults=e,t.onValidationResultsUpdatedObservable.notifyObservers(e),(e.issues.numErrors||e.issues.numWarnings)&&t.onTabChangedObservable.notifyObservers(3)}))},e.prototype.enableLightGizmo=function(e,t){void 0===t&&(t=!0),t?(e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.lightGizmo||(e.reservedDataStore.lightGizmo=new c.LightGizmo,this.lightGizmos.push(e.reservedDataStore.lightGizmo),e.reservedDataStore.lightGizmo.light=e,e.reservedDataStore.lightGizmo.material.reservedDataStore={hidden:!0})):e.reservedDataStore&&e.reservedDataStore.lightGizmo&&(this.lightGizmos.splice(this.lightGizmos.indexOf(e.reservedDataStore.lightGizmo),1),e.reservedDataStore.lightGizmo.dispose(),e.reservedDataStore.lightGizmo=null)},e}(),gn=function(){function e(){}return e.MarkLineContainerTitleForHighlighting=function(e){this._GlobalState.selectedLineContainerTitle=e},e._CopyStyles=function(e,t){for(var r=0;r<e.styleSheets.length;r++){var n=e.styleSheets[r];try{if(n.cssRules){for(var a=e.createElement("style"),o=0,i=n.cssRules;o<i.length;o++){var l=i[o];a.appendChild(e.createTextNode(l.cssText))}t.head.appendChild(a)}else if(n.href){var s=e.createElement("link");s.rel="stylesheet",s.href=n.href,t.head.appendChild(s)}}catch(e){console.log(e)}}},e._CreateSceneExplorer=function(t,r,n){var a=this;if(r.original&&(r={original:!1,popup:r.popup,overlay:r.overlay,showExplorer:r.showExplorer,showInspector:r.showInspector,embedMode:r.embedMode,handleResize:r.handleResize,enablePopup:r.enablePopup,enableClose:r.enableClose,explorerExtensibility:r.explorerExtensibility}),n&&(this._SceneExplorerHost=n.ownerDocument.createElement("div"),this._SceneExplorerHost.id="scene-explorer-host",this._SceneExplorerHost.style.width=r.explorerWidth||"auto",r.popup?n.appendChild(this._SceneExplorerHost):n.insertBefore(this._SceneExplorerHost,this._NewCanvasContainer),r.overlay||(this._SceneExplorerHost.style.position="relative")),this._SceneExplorerHost){this._OpenedPane++;var o=i.createElement(dn,{scene:t,globalState:this._GlobalState,extensibilityGroups:r.explorerExtensibility,noClose:!r.enableClose,noExpand:!r.enablePopup,popupMode:r.popup,onPopup:function(){s.unmountComponentAtNode(a._SceneExplorerHost),a._RemoveElementFromDOM(a._SceneExplorerHost),r.popup&&a._SceneExplorerWindow.close(),r.popup=!r.popup,r.showExplorer=!0,r.showInspector=!1,r.explorerWidth=r.popup?"100%":"300px",e.Show(t,r)},onClose:function(){s.unmountComponentAtNode(a._SceneExplorerHost),e._OpenedPane--,a._RemoveElementFromDOM(a._SceneExplorerHost),a._Cleanup(),r.popup&&a._SceneExplorerWindow.close()}});s.render(o,this._SceneExplorerHost)}},e._CreateActionTabs=function(t,r,n){var a=this;if(r.original=!1,n){var o=n.ownerDocument.createElement("div");o.id="inspector-host",o.style.width=r.inspectorWidth||"auto",n.appendChild(o),this._ActionTabsHost=o,r.overlay||(this._ActionTabsHost.style.position="relative")}if(this._ActionTabsHost){this._OpenedPane++;var l=i.createElement(Yt,{globalState:this._GlobalState,scene:t,noClose:!r.enableClose,noExpand:!r.enablePopup,popupMode:r.popup,onPopup:function(){s.unmountComponentAtNode(a._ActionTabsHost),a._RemoveElementFromDOM(a._ActionTabsHost),r.popup&&a._ActionTabsWindow.close(),r.popup=!r.popup,r.showExplorer=!1,r.showInspector=!0,r.inspectorWidth=r.popup?"100%":"300px",e.Show(t,r)},onClose:function(){s.unmountComponentAtNode(a._ActionTabsHost),e._OpenedPane--,a._Cleanup(),a._RemoveElementFromDOM(a._ActionTabsHost),r.popup&&a._ActionTabsWindow.close()}});s.render(l,this._ActionTabsHost)}},e._CreateEmbedHost=function(t,r,n,a){var o=this;if(n){var l=n.ownerDocument.createElement("div");l.id="embed-host",l.style.width=r.embedHostWidth||"auto",n.appendChild(l),this._EmbedHost=l,r.overlay||(this._EmbedHost.style.position="relative")}if(this._EmbedHost){this._OpenedPane++;var c=i.createElement(bn,{globalState:this._GlobalState,scene:t,noExpand:!r.enablePopup,noClose:!r.enableClose,popupMode:r.popup,onPopup:function(){s.unmountComponentAtNode(o._EmbedHost),r.popup&&o._EmbedHostWindow.close(),o._RemoveElementFromDOM(o._EmbedHost),r.popup=!r.popup,r.embedMode=!0,r.showExplorer=!0,r.showInspector=!0,r.embedHostWidth=r.popup?"100%":"auto",e.Show(t,r)},onClose:function(){s.unmountComponentAtNode(o._EmbedHost),o._OpenedPane=0,o._Cleanup(),o._RemoveElementFromDOM(o._EmbedHost),r.popup&&o._EmbedHostWindow.close()}});s.render(c,this._EmbedHost)}},e._CreatePopup=function(e,t,r,n){void 0===r&&(r=300),void 0===n&&(n=800);var a={width:r,height:n,top:(window.innerHeight-r)/2+window.screenY,left:(window.innerWidth-n)/2+window.screenX},o=Object.keys(a).map((function(e){return e+"="+a[e]})).join(","),i=window.open("",e,o);if(!i)return null;var l=i.document;l.title=e,l.body.style.width="100%",l.body.style.height="100%",l.body.style.margin="0",l.body.style.padding="0";var s=l.createElement("div");return s.style.width="100%",s.style.height="100%",s.style.margin="0",s.style.padding="0",i.document.body.appendChild(s),this._CopyStyles(window.document,l),this[t]=i,s},Object.defineProperty(e,"IsVisible",{get:function(){return this._OpenedPane>0},enumerable:!0,configurable:!0}),e.EarlyAttachToLoader=function(){var e=this;this._GlobalState.onPluginActivatedObserver||(this._GlobalState.onPluginActivatedObserver=c.SceneLoader.OnPluginActivatedObservable.add((function(t){var r=t;"gltf"===r.name&&e._GlobalState.prepareGLTFPlugin(r)})))},e.Show=function(t,r){var n=o({original:!0,popup:!1,overlay:!1,showExplorer:!0,showInspector:!0,embedMode:!1,enableClose:!0,handleResize:!0,enablePopup:!0},r);this._GlobalState.onPropertyChangedObservable||this._GlobalState.init(this.OnPropertyChangedObservable),this._GlobalState.onSelectionChangedObservable||(this._GlobalState.onSelectionChangedObservable=this.OnSelectionChangeObservable),this.IsVisible&&n.original&&this.Hide(),t||(t=c.EngineStore.LastCreatedScene),this._Scene=t;var a=t?t.getEngine().getRenderingCanvas():c.EngineStore.LastCreatedEngine.getRenderingCanvas();if(n.embedMode&&n.showExplorer&&n.showInspector)if(n.popup)this._CreateEmbedHost(t,n,this._CreatePopup("INSPECTOR","_EmbedHostWindow"),e.OnSelectionChangeObservable);else{var i=n.globalRoot?n.globalRoot:a.parentElement;n.overlay||this._NewCanvasContainer?!n.overlay&&this._NewCanvasContainer&&this._NewCanvasContainer.parentElement&&(i=this._NewCanvasContainer.parentElement):this._CreateCanvasContainer(i),this._NewCanvasContainer&&n.handleResize&&t&&(this._OnBeforeRenderObserver=t.onBeforeRenderObservable.add((function(){t.getEngine().resize()}))),this._CreateEmbedHost(t,n,i,e.OnSelectionChangeObservable)}else if(n.popup)n.showExplorer&&(this._SceneExplorerHost&&(this._SceneExplorerHost.style.width="0"),this._CreateSceneExplorer(t,n,this._CreatePopup("SCENE EXPLORER","_SceneExplorerWindow"))),n.showInspector&&(this._ActionTabsHost&&(this._ActionTabsHost.style.width="0"),this._CreateActionTabs(t,n,this._CreatePopup("INSPECTOR","_ActionTabsWindow")));else{i=n.globalRoot?n.globalRoot:a.parentElement;n.overlay||this._NewCanvasContainer?!n.overlay&&this._NewCanvasContainer&&this._NewCanvasContainer.parentElement&&(i=this._NewCanvasContainer.parentElement):this._CreateCanvasContainer(i),this._NewCanvasContainer&&n.handleResize&&t&&(this._OnBeforeRenderObserver=t.onBeforeRenderObservable.add((function(){t.getEngine().resize()}))),n.showExplorer&&this._CreateSceneExplorer(t,n,i),n.showInspector&&this._CreateActionTabs(t,n,i)}},e._CreateCanvasContainer=function(e){for(this._NewCanvasContainer=e.ownerDocument.createElement("div"),this._NewCanvasContainer.style.display=e.style.display,e.style.display="flex";e.childElementCount>0;){var t=e.childNodes[0];e.removeChild(t),this._NewCanvasContainer.appendChild(t)}e.appendChild(this._NewCanvasContainer),this._NewCanvasContainer.style.width="100%",this._NewCanvasContainer.style.height="100%"},e._DestroyCanvasContainer=function(){for(var e=this._NewCanvasContainer.parentElement;this._NewCanvasContainer.childElementCount>0;){var t=this._NewCanvasContainer.childNodes[0];this._NewCanvasContainer.removeChild(t),e.appendChild(t)}e.removeChild(this._NewCanvasContainer),e.style.display=this._NewCanvasContainer.style.display,delete this._NewCanvasContainer},e._Cleanup=function(){var t=this;0===e._OpenedPane&&(this._GlobalState.lightGizmos.forEach((function(e){e.light&&t._GlobalState.enableLightGizmo(e.light,!1)})),this._Scene&&this._Scene.reservedDataStore&&this._Scene.reservedDataStore.gizmoManager&&(this._Scene.reservedDataStore.gizmoManager.dispose(),this._Scene.reservedDataStore.gizmoManager=null),this._NewCanvasContainer&&this._DestroyCanvasContainer(),this._OnBeforeRenderObserver&&this._Scene&&(this._Scene.onBeforeRenderObservable.remove(this._OnBeforeRenderObserver),this._OnBeforeRenderObserver=null,this._Scene.getEngine().resize()),this._GlobalState.onInspectorClosedObservable.notifyObservers(this._Scene))},e._RemoveElementFromDOM=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},e.Hide=function(){this._ActionTabsHost&&(s.unmountComponentAtNode(this._ActionTabsHost),this._RemoveElementFromDOM(this._ActionTabsHost),this._ActionTabsHost=null),this._SceneExplorerHost&&(s.unmountComponentAtNode(this._SceneExplorerHost),this._SceneExplorerHost.parentElement&&this._SceneExplorerHost.parentElement.removeChild(this._SceneExplorerHost),this._SceneExplorerHost=null),this._EmbedHost&&(s.unmountComponentAtNode(this._EmbedHost),this._EmbedHost.parentElement&&this._EmbedHost.parentElement.removeChild(this._EmbedHost),this._EmbedHost=null),e._OpenedPane=0,this._Cleanup(),this._GlobalState.onPluginActivatedObserver||(c.SceneLoader.OnPluginActivatedObservable.remove(this._GlobalState.onPluginActivatedObserver),this._GlobalState.onPluginActivatedObserver=null)},e._OpenedPane=0,e.OnSelectionChangeObservable=new c.Observable,e.OnPropertyChangedObservable=new c.Observable,e._GlobalState=new fn,e}();gn.EarlyAttachToLoader(),r.d(t,"a",(function(){return gn}))},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var a=(i=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),o=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[r].concat(o).concat([a]).join("\n")}var i;return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),t.push(i))}},t}},function(e,t,r){var n,a,o={},i=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===a&&(a=n.apply(this,arguments)),a}),l=function(e){return document.querySelector(e)},s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,p=0,u=[],d=r(28);function h(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=o[n.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](n.parts[i]);for(;i<n.parts.length;i++)a.parts.push(y(n.parts[i],t))}else{var l=[];for(i=0;i<n.parts.length;i++)l.push(y(n.parts[i],t));o[n.id]={id:n.id,refs:1,parts:l}}}}function b(e,t){for(var r=[],n={},a=0;a<e.length;a++){var o=e[a],i=t.base?o[0]+t.base:o[0],l={css:o[1],media:o[2],sourceMap:o[3]};n[i]?n[i].parts.push(l):r.push(n[i]={id:i,parts:[l]})}return r}function m(e,t){var r=s(e.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=u[u.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),u.push(t);else if("bottom"===e.insertAt)r.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=s(e.insertInto+" "+e.insertAt.before);r.insertBefore(t,a)}}function f(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function g(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),v(t,e.attrs),m(e,t),t}function v(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}function y(e,t){var r,n,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var i=p++;r=c||(c=g(t)),n=O.bind(null,r,i,!1),a=O.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),m(e,t),t}(t),n=x.bind(null,r,t),a=function(){f(r),r.href&&URL.revokeObjectURL(r.href)}):(r=g(t),n=S.bind(null,r),a=function(){f(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=b(e,t);return h(r,t),function(e){for(var n=[],a=0;a<r.length;a++){var i=r[a];(l=o[i.id]).refs--,n.push(l)}e&&h(b(e,t),t);for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete o[l.id]}}}};var C,E=(C=[],function(e,t){return C[e]=t,C.filter(Boolean).join("\n")});function O(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=E(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function S(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function x(e,t,r){var n=r.css,a=r.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(n=d(n)),a&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([n],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(i),l&&URL.revokeObjectURL(l)}},function(e,t,r){"use strict";(function(e,n){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(t,"a",(function(){return Re})),r.d(t,"b",(function(){return Le}));var c=function(){},p={},u={},d={mark:c,measure:c};try{"undefined"!=typeof window&&(p=window),"undefined"!=typeof document&&(u=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var h=(p.navigator||{}).userAgent,b=void 0===h?"":h,m=p,f=u,g=d,v=(m.document,!!f.documentElement&&!!f.head&&"function"==typeof f.addEventListener&&"function"==typeof f.createElement),y=(~b.indexOf("MSIE")||b.indexOf("Trident/"),"fa"),C="svg-inline--fa",E="data-fa-i2svg",O=(function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),S=O.concat([11,12,13,14,15,16,17,18,19,20]),x={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},P=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",x.GROUP,x.SWAP_OPACITY,x.PRIMARY,x.SECONDARY].concat(O.map((function(e){return"".concat(e,"x")}))).concat(S.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(f&&"function"==typeof f.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),r=t[0],n=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=f.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(r));null!=a&&(P[n]=a)}))}var k=l({},{familyPrefix:y,replacementClass:C,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},P);k.autoReplaceSvg||(k.observeMutations=!1);var w=l({},k);m.FontAwesomeConfig=w;var T=m||{};T.___FONT_AWESOME___||(T.___FONT_AWESOME___={}),T.___FONT_AWESOME___.styles||(T.___FONT_AWESOME___.styles={}),T.___FONT_AWESOME___.hooks||(T.___FONT_AWESOME___.hooks={}),T.___FONT_AWESOME___.shims||(T.___FONT_AWESOME___.shims=[]);var N=T.___FONT_AWESOME___,_=[];v&&((f.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(f.readyState)||f.addEventListener("DOMContentLoaded",(function e(){f.removeEventListener("DOMContentLoaded",e),1,_.map((function(e){return e()}))})));var M,L="pending",R="settled",A="fulfilled",I="rejected",j=function(){},D=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,z=void 0===n?setTimeout:n,F=[];function U(){for(var e=0;e<F.length;e++)F[e][0](F[e][1]);F=[],M=!1}function V(e,t){F.push([e,t]),M||(M=!0,z(U,0))}function H(e){var t=e.owner,r=t._state,n=t._data,a=e[r],o=e.then;if("function"==typeof a){r=A;try{n=a(n)}catch(e){Y(o,e)}}G(o,n)||(r===A&&B(o,n),r===I&&Y(o,n))}function G(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===a(t))){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){r||(r=!0,t===n?W(e,n):B(e,n))}),(function(t){r||(r=!0,Y(e,t))})),!0}}catch(t){return r||Y(e,t),!0}return!1}function B(e,t){e!==t&&G(e,t)||W(e,t)}function W(e,t){e._state===L&&(e._state=R,e._data=t,V(q,e))}function Y(e,t){e._state===L&&(e._state=R,e._data=t,V(K,e))}function X(e){e._then=e._then.forEach(H)}function q(e){e._state=A,X(e)}function K(t){t._state=I,X(t),!t._handled&&D&&e.process.emit("unhandledRejection",t._data,t)}function Q(t){e.process.emit("rejectionHandled",t)}function $(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof $==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){Y(t,e)}try{e((function(e){B(t,e)}),r)}catch(e){r(e)}}(e,this)}$.prototype={constructor:$,_state:L,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(j),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===I&&D&&V(Q,this)),this._state===A||this._state===I?V(H,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},$.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new $((function(t,r){var n=[],a=0;function o(e){return a++,function(r){n[e]=r,--a||t(n)}}for(var i,l=0;l<e.length;l++)(i=e[l])&&"function"==typeof i.then?i.then(o(l),r):n[l]=i;a||t(n)}))},$.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new $((function(t,r){for(var n,a=0;a<e.length;a++)(n=e[a])&&"function"==typeof n.then?n.then(t,r):t(n)}))},$.resolve=function(e){return e&&"object"===a(e)&&e.constructor===$?e:new $((function(t){t(e)}))},$.reject=function(e){return new $((function(t,r){r(e)}))};"function"==typeof Promise&&Promise;var Z={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function J(e){if(e&&v){var t=f.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=f.head.childNodes,n=null,a=r.length-1;a>-1;a--){var o=r[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(n=o)}return f.head.insertBefore(t,n),e}}var ee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function te(){for(var e=12,t="";e-- >0;)t+=ee[62*Math.random()|0];return t}function re(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ne(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r],";")}),"")}function ae(e){return e.size!==Z.size||e.x!==Z.x||e.y!==Z.y||e.rotate!==Z.rotate||e.flipX||e.flipY}function oe(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(o," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var ie={x:0,y:0,width:"100%",height:"100%"};function le(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function se(e){var t=e.icons,r=t.main,n=t.mask,a=e.prefix,o=e.iconName,i=e.transform,s=e.symbol,c=e.title,p=e.extra,u=e.watchable,d=void 0!==u&&u,h=n.found?n:r,b=h.width,m=h.height,f="fa-w-".concat(Math.ceil(b/m*16)),g=[w.replacementClass,o?"".concat(w.familyPrefix,"-").concat(o):"",f].filter((function(e){return-1===p.classes.indexOf(e)})).concat(p.classes).join(" "),v={children:[],attributes:l({},p.attributes,{"data-prefix":a,"data-icon":o,class:g,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(m)})};d&&(v.attributes[E]=""),c&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(te())},children:[c]});var y=l({},v,{prefix:a,iconName:o,main:r,mask:n,transform:i,symbol:s,styles:p.styles}),C=n.found&&r.found?function(e){var t,r=e.children,n=e.attributes,a=e.main,o=e.mask,i=e.transform,s=a.width,c=a.icon,p=o.width,u=o.icon,d=oe({transform:i,containerWidth:p,iconWidth:s}),h={tag:"rect",attributes:l({},ie,{fill:"white"})},b=c.children?{children:c.children.map(le)}:{},m={tag:"g",attributes:l({},d.inner),children:[le(l({tag:c.tag,attributes:l({},c.attributes,d.path)},b))]},f={tag:"g",attributes:l({},d.outer),children:[m]},g="mask-".concat(te()),v="clip-".concat(te()),y={tag:"mask",attributes:l({},ie,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,f]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=u,"g"===t.tag?t.children:[t])},y]};return r.push(C,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")")},ie)}),{children:r,attributes:n}}(y):function(e){var t=e.children,r=e.attributes,n=e.main,a=e.transform,o=ne(e.styles);if(o.length>0&&(r.style=o),ae(a)){var i=oe({transform:a,containerWidth:n.width,iconWidth:n.width});t.push({tag:"g",attributes:l({},i.outer),children:[{tag:"g",attributes:l({},i.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:l({},n.icon.attributes,i.path)}]}]})}else t.push(n.icon);return{children:t,attributes:r}}(y),O=C.children,S=C.attributes;return y.children=O,y.attributes=S,s?function(e){var t=e.prefix,r=e.iconName,n=e.children,a=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},a,{id:!0===o?"".concat(t,"-").concat(w.familyPrefix,"-").concat(r):o}),children:n}]}]}(y):function(e){var t=e.children,r=e.main,n=e.mask,a=e.attributes,o=e.styles,i=e.transform;if(ae(i)&&r.found&&!n.found){var s={x:r.width/r.height/2,y:.5};a.style=ne(l({},o,{"transform-origin":"".concat(s.x+i.x/16,"em ").concat(s.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(y)}var ce=function(){},pe=(w.measurePerformance&&g&&g.mark&&g.measure,function(e,t,r,n){var a,o,i,l=Object.keys(e),s=l.length,c=void 0!==n?function(e,t){return function(r,n,a,o){return e.call(t,r,n,a,o)}}(t,n):t;for(void 0===r?(a=1,i=e[l[0]]):(a=0,i=r);a<s;a++)i=c(i,e[o=l[a]],o,e);return i});function ue(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==r&&r,a=Object.keys(t).reduce((function(e,r){var n=t[r];return!!n.icon?e[n.iconName]=n.icon:e[r]=n,e}),{});"function"!=typeof N.hooks.addPack||n?N.styles[e]=l({},N.styles[e]||{},a):N.hooks.addPack(e,a),"fas"===e&&ue("fa",t)}var de=N.styles,he=N.shims,be=function(){var e=function(e){return pe(de,(function(t,r,n){return t[n]=pe(r,e,{}),t}),{})};e((function(e,t,r){return t[3]&&(e[t[3]]=r),e})),e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in de;pe(he,(function(e,r){var n=r[0],a=r[1],o=r[2];return"far"!==a||t||(a="fas"),e[n]={prefix:a,iconName:o},e}),{})};be();N.styles;function me(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function fe(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,a=e.children,o=void 0===a?[]:a;return"string"==typeof e?re(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(re(e[r]),'" ')}),"").trim()}(n),">").concat(o.map(fe).join(""),"</").concat(t,">")}var ge=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],a=r.slice(1).join("-");if(n&&"h"===a)return e.flipX=!0,e;if(n&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(n){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),t):t};function ve(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ve.prototype=Object.create(Error.prototype),ve.prototype.constructor=ve;var ye={fill:"currentColor"},Ce={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Ee={tag:"path",attributes:l({},ye,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Oe=l({},Ce,{attributeName:"opacity"});l({},ye,{cx:"256",cy:"364",r:"28"}),l({},Ce,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},Oe,{values:"1;0;1;1;0;1;"}),l({},ye,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),l({},Oe,{values:"1;0;0;0;0;1;"}),l({},ye,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),l({},Oe,{values:"0;0;1;1;0;0;"}),N.styles;function Se(e){var t=e[0],r=e[1],n=s(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(w.familyPrefix,"-").concat(x.GROUP)},children:[{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(x.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(x.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}N.styles;var xe='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';function Pe(){var e=y,t=C,r=w.familyPrefix,n=w.replacementClass,a=xe;if(r!==e||n!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(o,".".concat(r,"-")).replace(i,"--".concat(r,"-")).replace(l,".".concat(n))}return a}function ke(){w.autoAddCss&&!Me&&(J(Pe()),Me=!0)}function we(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return fe(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(v){var t=f.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Te(e){var t=e.prefix,r=void 0===t?"fa":t,n=e.iconName;if(n)return me(_e.definitions,r,n)||me(N.styles,r,n)}var Ne,_e=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,(r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(t){e.definitions[t]=l({},e.definitions[t]||{},a[t]),ue(t,a[t]),be()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((function(t){var n=r[t],a=n.prefix,o=n.iconName,i=n.icon;e[a]||(e[a]={}),e[a][o]=i})),e}}])&&o(t.prototype,r),n&&o(t,n),e}()),Me=!1,Le={transform:function(e){return ge(e)}},Re=(Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?Z:r,a=t.symbol,o=void 0!==a&&a,i=t.mask,s=void 0===i?null:i,c=t.title,p=void 0===c?null:c,u=t.classes,d=void 0===u?[]:u,h=t.attributes,b=void 0===h?{}:h,m=t.styles,f=void 0===m?{}:m;if(e){var g=e.prefix,v=e.iconName,y=e.icon;return we(l({type:"icon"},e),(function(){return ke(),w.autoA11y&&(p?b["aria-labelledby"]="".concat(w.replacementClass,"-title-").concat(te()):(b["aria-hidden"]="true",b.focusable="false")),se({icons:{main:Se(y),mask:s?Se(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:l({},Z,n),symbol:o,title:p,extra:{attributes:b,styles:f,classes:d}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:Te(e||{}),n=t.mask;return n&&(n=(n||{}).icon?n:Te(n||{})),Ne(r,l({},t,{mask:n}))})}).call(this,r(9),r(21).setImmediate)},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";r.r(t),function(e){var n=r(10);r.d(t,"Inspector",(function(){return n.a}));var a=void 0!==e?e:"undefined"!=typeof window?window:void 0;void 0!==a&&(a.BABYLON=a.BABYLON||{},a.BABYLON.Inspector=n.a)}.call(this,r(9))},function(e,t,r){"use strict";
  28. /** @license React v16.9.0
  29. * react.production.min.js
  30. *
  31. * Copyright (c) Facebook, Inc. and its affiliates.
  32. *
  33. * This source code is licensed under the MIT license found in the
  34. * LICENSE file in the root directory of this source tree.
  35. */var n=r(4),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,u=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,f=a?Symbol.for("react.lazy"):60116;a&&Symbol.for("react.fundamental"),a&&Symbol.for("react.responder");var g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function E(e,t,r){this.props=e,this.context=t,this.refs=C,this.updater=r||y}function O(){}function S(e,t,r){this.props=e,this.context=t,this.refs=C,this.updater=r||y}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw v(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=E.prototype;var x=S.prototype=new O;x.constructor=S,n(x,E.prototype),x.isPureReactComponent=!0;var P={current:null},k={suspense:null},w={current:null},T=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var n=void 0,a={},i=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,n)&&!N.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),p=0;p<s;p++)c[p]=arguments[p+2];a.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===a[n]&&(a[n]=s[n]);return{$$typeof:o,type:e,key:i,ref:l,props:a,_owner:w.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var L=/\/+/g,R=[];function A(e,t,r,n){if(R.length){var a=R.pop();return a.result=e,a.keyPrefix=t,a.func=r,a.context=n,a.count=0,a}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function j(e,t,r){return null==e?0:function e(t,r,n,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case i:s=!0}}if(s)return n(a,t,""===r?"."+D(t,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c<t.length;c++){var p=r+D(l=t[c],c);s+=e(l,p,n,a)}else if(null===t||"object"!=typeof t?p=null:p="function"==typeof(p=g&&t[g]||t["@@iterator"])?p:null,"function"==typeof p)for(t=p.call(t),c=0;!(l=t.next()).done;)s+=e(l=l.value,p=r+D(l,c++),n,a);else if("object"===l)throw n=""+t,v(Error(31),"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,"");return s}(e,"",t,r)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function z(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,r){var n=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,n,r,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+r)),n.push(e))}function U(e,t,r,n,a){var o="";null!=r&&(o=(""+r).replace(L,"$&/")+"/"),j(e,F,t=A(t,o,n,a)),I(t)}function V(){var e=P.current;if(null===e)throw v(Error(321));return e}var H={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return U(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;j(e,z,t=A(null,null,t,r)),I(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return U(e,t,null,(function(e){return e})),t},only:function(e){if(!M(e))throw v(Error(143));return e}},createRef:function(){return{current:null}},Component:E,PureComponent:S,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:f,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return V().useCallback(e,t)},useContext:function(e,t){return V().useContext(e,t)},useEffect:function(e,t){return V().useEffect(e,t)},useImperativeHandle:function(e,t,r){return V().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return V().useLayoutEffect(e,t)},useMemo:function(e,t){return V().useMemo(e,t)},useReducer:function(e,t,r){return V().useReducer(e,t,r)},useRef:function(e){return V().useRef(e)},useState:function(e){return V().useState(e)},Fragment:l,Profiler:c,StrictMode:s,Suspense:h,unstable_SuspenseList:b,createElement:_,cloneElement:function(e,t,r){if(null==e)throw v(Error(267),e);var a=void 0,i=n({},e.props),l=e.key,s=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,c=w.current),void 0!==t.key&&(l=""+t.key);var p=void 0;for(a in e.type&&e.type.defaultProps&&(p=e.type.defaultProps),t)T.call(t,a)&&!N.hasOwnProperty(a)&&(i[a]=void 0===t[a]&&void 0!==p?p[a]:t[a])}if(1===(a=arguments.length-2))i.children=r;else if(1<a){p=Array(a);for(var u=0;u<a;u++)p[u]=arguments[u+2];i.children=p}return{$$typeof:o,type:e.type,key:l,ref:s,props:i,_owner:c}},createFactory:function(e){var t=_.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var r=k.suspense;k.suspense=void 0===t?null:t;try{e()}finally{k.suspense=r}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:P,ReactCurrentBatchConfig:k,ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:n}},G={default:H},B=G&&H||G;e.exports=B.default||B},function(e,t,r){"use strict";
  36. /** @license React v16.9.0
  37. * react-dom.production.min.js
  38. *
  39. * Copyright (c) Facebook, Inc. and its affiliates.
  40. *
  41. * This source code is licensed under the MIT license found in the
  42. * LICENSE file in the root directory of this source tree.
  43. */var n=r(0),a=r(4),o=r(19);function i(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!n)throw i(Error(227));var l=null,s={};function c(){if(l)for(var e in s){var t=s[e],r=l.indexOf(e);if(!(-1<r))throw i(Error(96),e);if(!u[r]){if(!t.extractEvents)throw i(Error(97),e);for(var n in u[r]=t,r=t.eventTypes){var a=void 0,o=r[n],c=t,h=n;if(d.hasOwnProperty(h))throw i(Error(99),h);d[h]=o;var b=o.phasedRegistrationNames;if(b){for(a in b)b.hasOwnProperty(a)&&p(b[a],c,h);a=!0}else o.registrationName?(p(o.registrationName,c,h),a=!0):a=!1;if(!a)throw i(Error(98),n,e)}}}}function p(e,t,r){if(h[e])throw i(Error(100),e);h[e]=t,b[e]=t.eventTypes[r].dependencies}var u=[],d={},h={},b={};function m(e,t,r,n,a,o,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var f=!1,g=null,v=!1,y=null,C={onError:function(e){f=!0,g=e}};function E(e,t,r,n,a,o,i,l,s){f=!1,g=null,m.apply(C,arguments)}var O=null,S=null,x=null;function P(e,t,r){var n=e.type||"unknown-event";e.currentTarget=x(r),function(e,t,r,n,a,o,l,s,c){if(E.apply(this,arguments),f){if(!f)throw i(Error(198));var p=g;f=!1,g=null,v||(v=!0,y=p)}}(n,t,void 0,e),e.currentTarget=null}function k(e,t){if(null==t)throw i(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function w(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var T=null;function N(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)P(e,t[n],r[n]);else t&&P(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function _(e){if(null!==e&&(T=k(T,e)),e=T,T=null,e){if(w(e,N),T)throw i(Error(95));if(v)throw e=y,v=!1,y=null,e}}var M={injectEventPluginOrder:function(e){if(l)throw i(Error(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!s.hasOwnProperty(t)||s[t]!==n){if(s[t])throw i(Error(102),t);s[t]=n,r=!0}}r&&c()}};function L(e,t){var r=e.stateNode;if(!r)return null;var n=O(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw i(Error(231),t,typeof r);return r}var R=Math.random().toString(36).slice(2),A="__reactInternalInstance$"+R,I="__reactEventHandlers$"+R;function j(e){if(e[A])return e[A];for(;!e[A];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[A]).tag||6===e.tag?e:null}function D(e){return!(e=e[A])||5!==e.tag&&6!==e.tag?null:e}function z(e){if(5===e.tag||6===e.tag)return e.stateNode;throw i(Error(33))}function F(e){return e[I]||null}function U(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function V(e,t,r){(t=L(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=k(r._dispatchListeners,t),r._dispatchInstances=k(r._dispatchInstances,e))}function H(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=U(t);for(t=r.length;0<t--;)V(r[t],"captured",e);for(t=0;t<r.length;t++)V(r[t],"bubbled",e)}}function G(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=L(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=k(r._dispatchListeners,t),r._dispatchInstances=k(r._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&G(e._targetInst,null,e)}function W(e){w(e,H)}var Y=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function X(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var q={animationend:X("Animation","AnimationEnd"),animationiteration:X("Animation","AnimationIteration"),animationstart:X("Animation","AnimationStart"),transitionend:X("Transition","TransitionEnd")},K={},Q={};function $(e){if(K[e])return K[e];if(!q[e])return e;var t,r=q[e];for(t in r)if(r.hasOwnProperty(t)&&t in Q)return K[e]=r[t];return e}Y&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var Z=$("animationend"),J=$("animationiteration"),ee=$("animationstart"),te=$("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,ae=null,oe=null;function ie(){if(oe)return oe;var e,t,r=ae,n=r.length,a="value"in ne?ne.value:ne.textContent,o=a.length;for(e=0;e<n&&r[e]===a[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===a[o-t];t++);return oe=a.slice(e,1<t?1-t:void 0)}function le(){return!0}function se(){return!1}function ce(e,t,r,n){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(r):"target"===a?this.target=n:this[a]=r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?le:se,this.isPropagationStopped=se,this}function pe(e,t,r,n){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,r,n),a}return new this(e,t,r,n)}function ue(e){if(!(e instanceof this))throw i(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=pe,e.release=ue}a(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return a(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,de(r),r},de(ce);var he=ce.extend({data:null}),be=ce.extend({data:null}),me=[9,13,27,32],fe=Y&&"CompositionEvent"in window,ge=null;Y&&"documentMode"in document&&(ge=document.documentMode);var ve=Y&&"TextEvent"in window&&!ge,ye=Y&&(!fe||ge&&8<ge&&11>=ge),Ce=String.fromCharCode(32),Ee={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Oe=!1;function Se(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pe=!1;var ke={eventTypes:Ee,extractEvents:function(e,t,r,n){var a=void 0,o=void 0;if(fe)e:{switch(e){case"compositionstart":a=Ee.compositionStart;break e;case"compositionend":a=Ee.compositionEnd;break e;case"compositionupdate":a=Ee.compositionUpdate;break e}a=void 0}else Pe?Se(e,r)&&(a=Ee.compositionEnd):"keydown"===e&&229===r.keyCode&&(a=Ee.compositionStart);return a?(ye&&"ko"!==r.locale&&(Pe||a!==Ee.compositionStart?a===Ee.compositionEnd&&Pe&&(o=ie()):(ae="value"in(ne=n)?ne.value:ne.textContent,Pe=!0)),a=he.getPooled(a,t,r,n),o?a.data=o:null!==(o=xe(r))&&(a.data=o),W(a),o=a):o=null,(e=ve?function(e,t){switch(e){case"compositionend":return xe(t);case"keypress":return 32!==t.which?null:(Oe=!0,Ce);case"textInput":return(e=t.data)===Ce&&Oe?null:e;default:return null}}(e,r):function(e,t){if(Pe)return"compositionend"===e||!fe&&Se(e,t)?(e=ie(),oe=ae=ne=null,Pe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=be.getPooled(Ee.beforeInput,t,r,n)).data=e,W(t)):t=null,null===o?t:null===t?o:[o,t]}},we=null,Te=null,Ne=null;function _e(e){if(e=S(e)){if("function"!=typeof we)throw i(Error(280));var t=O(e.stateNode);we(e.stateNode,e.type,t)}}function Me(e){Te?Ne?Ne.push(e):Ne=[e]:Te=e}function Le(){if(Te){var e=Te,t=Ne;if(Ne=Te=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Re(e,t){return e(t)}function Ae(e,t,r,n){return e(t,r,n)}function Ie(){}var je=Re,De=!1;function ze(){null===Te&&null===Ne||(Ie(),Le())}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ue(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function Ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function He(e){if(!Y)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Be(e){e._valueTracker||(e._valueTracker=function(e){var t=Ge(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function We(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ge(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}var Ye=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ye.hasOwnProperty("ReactCurrentDispatcher")||(Ye.ReactCurrentDispatcher={current:null}),Ye.hasOwnProperty("ReactCurrentBatchConfig")||(Ye.ReactCurrentBatchConfig={suspense:null});var Xe=/^(.*)[\\\/]/,qe="function"==typeof Symbol&&Symbol.for,Ke=qe?Symbol.for("react.element"):60103,Qe=qe?Symbol.for("react.portal"):60106,$e=qe?Symbol.for("react.fragment"):60107,Ze=qe?Symbol.for("react.strict_mode"):60108,Je=qe?Symbol.for("react.profiler"):60114,et=qe?Symbol.for("react.provider"):60109,tt=qe?Symbol.for("react.context"):60110,rt=qe?Symbol.for("react.concurrent_mode"):60111,nt=qe?Symbol.for("react.forward_ref"):60112,at=qe?Symbol.for("react.suspense"):60113,ot=qe?Symbol.for("react.suspense_list"):60120,it=qe?Symbol.for("react.memo"):60115,lt=qe?Symbol.for("react.lazy"):60116;qe&&Symbol.for("react.fundamental"),qe&&Symbol.for("react.responder");var st="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=st&&e[st]||e["@@iterator"])?e:null}function pt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case $e:return"Fragment";case Qe:return"Portal";case Je:return"Profiler";case Ze:return"StrictMode";case at:return"Suspense";case ot:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case nt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case it:return pt(e.type);case lt:if(e=1===e._status?e._result:null)return pt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,a=e._debugSource,o=pt(e.type);r=null,n&&(r=pt(n.type)),n=o,o="",a?o=" (at "+a.fileName.replace(Xe,"")+":"+a.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n in "+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}var dt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ht=Object.prototype.hasOwnProperty,bt={},mt={};function ft(e,t,r,n,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gt[e]=new ft(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gt[t]=new ft(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gt[e]=new ft(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gt[e]=new ft(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gt[e]=new ft(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){gt[e]=new ft(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){gt[e]=new ft(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){gt[e]=new ft(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){gt[e]=new ft(e,5,!1,e.toLowerCase(),null,!1)}));var vt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function Ct(e,t,r,n){var a=gt.hasOwnProperty(t)?gt[t]:null;(null!==a?0===a.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!ht.call(mt,e)||!ht.call(bt,e)&&(dt.test(e)?mt[e]=!0:(bt[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}function Et(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ot(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function St(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Et(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&Ct(e,"checked",t,!1)}function Pt(e,t){xt(e,t);var r=Et(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?wt(e,t.type,r):t.hasOwnProperty("defaultValue")&&wt(e,t.type,Et(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function wt(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(vt,yt);gt[t]=new ft(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vt,yt);gt[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vt,yt);gt[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){gt[e]=new ft(e,1,!1,e.toLowerCase(),null,!1)})),gt.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){gt[e]=new ft(e,1,!1,e.toLowerCase(),null,!0)}));var Tt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Nt(e,t,r){return(e=ce.getPooled(Tt.change,e,t,r)).type="change",Me(r),W(e),e}var _t=null,Mt=null;function Lt(e){_(e)}function Rt(e){if(We(z(e)))return e}function At(e,t){if("change"===e)return t}var It=!1;function jt(){_t&&(_t.detachEvent("onpropertychange",Dt),Mt=_t=null)}function Dt(e){if("value"===e.propertyName&&Rt(Mt))if(e=Nt(Mt,e,Ve(e)),De)_(e);else{De=!0;try{Re(Lt,e)}finally{De=!1,ze()}}}function zt(e,t,r){"focus"===e?(jt(),Mt=r,(_t=t).attachEvent("onpropertychange",Dt)):"blur"===e&&jt()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(Mt)}function Ut(e,t){if("click"===e)return Rt(t)}function Vt(e,t){if("input"===e||"change"===e)return Rt(t)}Y&&(It=He("input")&&(!document.documentMode||9<document.documentMode));var Ht={eventTypes:Tt,_isInputEventSupported:It,extractEvents:function(e,t,r,n){var a=t?z(t):window,o=void 0,i=void 0,l=a.nodeName&&a.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===a.type?o=At:Ue(a)?It?o=Vt:(o=Ft,i=zt):(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=Ut),o&&(o=o(e,t)))return Nt(o,r,n);i&&i(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&wt(a,"number",a.value)}},Gt=ce.extend({view:null,detail:null}),Bt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bt[e])&&!!t[e]}function Yt(){return Wt}var Xt=0,qt=0,Kt=!1,Qt=!1,$t=Gt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Yt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Xt;return Xt=e.screenX,Kt?"mousemove"===e.type?e.screenX-t:0:(Kt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qt;return qt=e.screenY,Qt?"mousemove"===e.type?e.screenY-t:0:(Qt=!0,0)}}),Zt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},er={eventTypes:Jt,extractEvents:function(e,t,r,n){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&(r.relatedTarget||r.fromElement)||!o&&!a)return null;if(a=n.window===n?n:(a=n.ownerDocument)?a.defaultView||a.parentWindow:window,o?(o=t,t=(t=r.relatedTarget||r.toElement)?j(t):null):o=null,o===t)return null;var i=void 0,l=void 0,s=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(i=$t,l=Jt.mouseLeave,s=Jt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=Zt,l=Jt.pointerLeave,s=Jt.pointerEnter,c="pointer");var p=null==o?a:z(o);if(a=null==t?a:z(t),(e=i.getPooled(l,o,r,n)).type=c+"leave",e.target=p,e.relatedTarget=a,(r=i.getPooled(s,t,r,n)).type=c+"enter",r.target=a,r.relatedTarget=p,n=t,o&&n)e:{for(a=n,c=0,i=t=o;i;i=U(i))c++;for(i=0,s=a;s;s=U(s))i++;for(;0<c-i;)t=U(t),c--;for(;0<i-c;)a=U(a),i--;for(;c--;){if(t===a||t===a.alternate)break e;t=U(t),a=U(a)}t=null}else t=null;for(a=t,t=[];o&&o!==a&&(null===(c=o.alternate)||c!==a);)t.push(o),o=U(o);for(o=[];n&&n!==a&&(null===(c=n.alternate)||c!==a);)o.push(n),n=U(n);for(n=0;n<t.length;n++)G(t[n],"bubbled",e);for(n=o.length;0<n--;)G(o[n],"captured",r);return[e,r]}};function tr(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var rr=Object.prototype.hasOwnProperty;function nr(e,t){if(tr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!rr.call(t,r[n])||!tr(e[r[n]],t[r[n]]))return!1;return!0}function ar(e,t){return{responder:e,props:t}}function or(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function ir(e){if(2!==or(e))throw i(Error(188))}function lr(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=or(e)))throw i(Error(188));return 1===t?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(n=a.return)){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return ir(a),e;if(o===n)return ir(a),t;o=o.sibling}throw i(Error(188))}if(r.return!==n.return)r=a,n=o;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=o;break}if(s===n){l=!0,n=a,r=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===r){l=!0,r=o,n=a;break}if(s===n){l=!0,n=o,r=a;break}s=s.sibling}if(!l)throw i(Error(189))}}if(r.alternate!==n)throw i(Error(190))}if(3!==r.tag)throw i(Error(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var sr=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cr=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pr=Gt.extend({relatedTarget:null});function ur(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var dr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},br=Gt.extend({key:function(e){if(e.key){var t=dr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ur(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Yt,charCode:function(e){return"keypress"===e.type?ur(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ur(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),mr=$t.extend({dataTransfer:null}),fr=Gt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Yt}),gr=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vr=$t.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),yr=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Z,"animationEnd",2],[J,"animationIteration",2],[ee,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[te,"transitionEnd",2],["waiting","waiting",2]],Cr={},Er={},Or=0;Or<yr.length;Or++){var Sr=yr[Or],xr=Sr[0],Pr=Sr[1],kr=Sr[2],wr="on"+(Pr[0].toUpperCase()+Pr.slice(1)),Tr={phasedRegistrationNames:{bubbled:wr,captured:wr+"Capture"},dependencies:[xr],eventPriority:kr};Cr[Pr]=Tr,Er[xr]=Tr}var Nr={eventTypes:Cr,getEventPriority:function(e){return void 0!==(e=Er[e])?e.eventPriority:2},extractEvents:function(e,t,r,n){var a=Er[e];if(!a)return null;switch(e){case"keypress":if(0===ur(r))return null;case"keydown":case"keyup":e=br;break;case"blur":case"focus":e=pr;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=fr;break;case Z:case J:case ee:e=sr;break;case te:e=gr;break;case"scroll":e=Gt;break;case"wheel":e=vr;break;case"copy":case"cut":case"paste":e=cr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Zt;break;default:e=ce}return W(t=e.getPooled(a,t,r,n)),t}},_r=Nr.getEventPriority,Mr=[];function Lr(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n;for(n=r;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(r),r=j(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=Ve(e.nativeEvent);n=e.topLevelType;for(var o=e.nativeEvent,i=null,l=0;l<u.length;l++){var s=u[l];s&&(s=s.extractEvents(n,t,o,a))&&(i=k(i,s))}_(i)}}var Rr=!0;function Ar(e,t){Ir(t,e,!1)}function Ir(e,t,r){switch(_r(t)){case 0:var n=jr.bind(null,t,1);break;case 1:n=Dr.bind(null,t,1);break;default:n=zr.bind(null,t,1)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function jr(e,t,r){De||Ie();var n=zr,a=De;De=!0;try{Ae(n,e,t,r)}finally{(De=a)||ze()}}function Dr(e,t,r){zr(e,t,r)}function zr(e,t,r){if(Rr){if(null===(t=j(t=Ve(r)))||"number"!=typeof t.tag||2===or(t)||(t=null),Mr.length){var n=Mr.pop();n.topLevelType=e,n.nativeEvent=r,n.targetInst=t,e=n}else e={topLevelType:e,nativeEvent:r,targetInst:t,ancestors:[]};try{if(r=e,De)Lr(r);else{De=!0;try{je(Lr,r,void 0)}finally{De=!1,ze()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Mr.length&&Mr.push(e)}}}var Fr=new("function"==typeof WeakMap?WeakMap:Map);function Ur(e){var t=Fr.get(e);return void 0===t&&(t=new Set,Fr.set(e,t)),t}function Vr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var r,n=Hr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hr(n)}}function Br(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Vr((e=t.contentWindow).document)}return t}function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Yr=Y&&"documentMode"in document&&11>=document.documentMode,Xr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,Kr=null,Qr=null,$r=!1;function Zr(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $r||null==qr||qr!==Vr(r)?null:("selectionStart"in(r=qr)&&Wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Qr&&nr(Qr,r)?null:(Qr=r,(e=ce.getPooled(Xr.select,Kr,e,t)).type="select",e.target=qr,W(e),e))}var Jr={eventTypes:Xr,extractEvents:function(e,t,r,n){var a,o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(a=!o)){e:{o=Ur(o),a=b.onSelect;for(var i=0;i<a.length;i++)if(!o.has(a[i])){o=!1;break e}o=!0}a=!o}if(a)return null;switch(o=t?z(t):window,e){case"focus":(Ue(o)||"true"===o.contentEditable)&&(qr=o,Kr=t,Qr=null);break;case"blur":Qr=Kr=qr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Zr(r,n);case"selectionchange":if(Yr)break;case"keydown":case"keyup":return Zr(r,n)}return null}};function en(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function tn(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Et(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function rn(e,t){if(null!=t.dangerouslySetInnerHTML)throw i(Error(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nn(e,t){var r=t.value;if(null==r){if(r=t.defaultValue,null!=(t=t.children)){if(null!=r)throw i(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw i(Error(93));t=t[0]}r=t}null==r&&(r="")}e._wrapperState={initialValue:Et(r)}}function an(e,t){var r=Et(t.value),n=Et(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function on(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),O=F,S=D,x=z,M.injectEventPluginsByName({SimpleEventPlugin:Nr,EnterLeaveEventPlugin:er,ChangeEventPlugin:Ht,SelectEventPlugin:Jr,BeforeInputEventPlugin:ke});var ln={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function cn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?sn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pn=void 0,un=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if(e.namespaceURI!==ln.svg||"innerHTML"in e)e.innerHTML=t;else{for((pn=pn||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=pn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function dn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var hn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bn=["Webkit","ms","Moz","O"];function mn(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||hn.hasOwnProperty(e)&&hn[e]?(""+t).trim():t+"px"}function fn(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=mn(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(hn).forEach((function(e){bn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hn[t]=hn[e]}))}));var gn=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vn(e,t){if(t){if(gn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw i(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw i(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw i(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw i(Error(62),"")}}function yn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Cn(e,t){var r=Ur(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=b[t];for(var n=0;n<t.length;n++){var a=t[n];if(!r.has(a)){switch(a){case"scroll":Ir(e,"scroll",!0);break;case"focus":case"blur":Ir(e,"focus",!0),Ir(e,"blur",!0),r.add("blur"),r.add("focus");break;case"cancel":case"close":He(a)&&Ir(e,a,!0);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(a)&&Ar(a,e)}r.add(a)}}}function En(){}var On=null,Sn=null;function xn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Pn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function Tn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Nn=[],_n=-1;function Mn(e){0>_n||(e.current=Nn[_n],Nn[_n]=null,_n--)}function Ln(e,t){Nn[++_n]=e.current,e.current=t}var Rn={},An={current:Rn},In={current:!1},jn=Rn;function Dn(e,t){var r=e.type.contextTypes;if(!r)return Rn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in r)o[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zn(e){return null!=(e=e.childContextTypes)}function Fn(e){Mn(In),Mn(An)}function Un(e){Mn(In),Mn(An)}function Vn(e,t,r){if(An.current!==Rn)throw i(Error(168));Ln(An,t),Ln(In,r)}function Hn(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw i(Error(108),pt(t)||"Unknown",o);return a({},r,n)}function Gn(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Rn,jn=An.current,Ln(An,t),Ln(In,In.current),!0}function Bn(e,t,r){var n=e.stateNode;if(!n)throw i(Error(169));r?(t=Hn(e,t,jn),n.__reactInternalMemoizedMergedChildContext=t,Mn(In),Mn(An),Ln(An,t)):Mn(In),Ln(In,r)}var Wn=o.unstable_runWithPriority,Yn=o.unstable_scheduleCallback,Xn=o.unstable_cancelCallback,qn=o.unstable_shouldYield,Kn=o.unstable_requestPaint,Qn=o.unstable_now,$n=o.unstable_getCurrentPriorityLevel,Zn=o.unstable_ImmediatePriority,Jn=o.unstable_UserBlockingPriority,ea=o.unstable_NormalPriority,ta=o.unstable_LowPriority,ra=o.unstable_IdlePriority,na={},aa=void 0!==Kn?Kn:function(){},oa=null,ia=null,la=!1,sa=Qn(),ca=1e4>sa?Qn:function(){return Qn()-sa};function pa(){switch($n()){case Zn:return 99;case Jn:return 98;case ea:return 97;case ta:return 96;case ra:return 95;default:throw i(Error(332))}}function ua(e){switch(e){case 99:return Zn;case 98:return Jn;case 97:return ea;case 96:return ta;case 95:return ra;default:throw i(Error(332))}}function da(e,t){return e=ua(e),Wn(e,t)}function ha(e,t,r){return e=ua(e),Yn(e,t,r)}function ba(e){return null===oa?(oa=[e],ia=Yn(Zn,fa)):oa.push(e),na}function ma(){null!==ia&&Xn(ia),fa()}function fa(){if(!la&&null!==oa){la=!0;var e=0;try{var t=oa;da(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),oa=null}catch(t){throw null!==oa&&(oa=oa.slice(e+1)),Yn(Zn,ma),t}finally{la=!1}}}function ga(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function va(e,t){if(e&&e.defaultProps)for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var ya={current:null},Ca=null,Ea=null,Oa=null;function Sa(){Oa=Ea=Ca=null}function xa(e,t){var r=e.type._context;Ln(ya,r._currentValue),r._currentValue=t}function Pa(e){var t=ya.current;Mn(ya),e.type._context._currentValue=t}function ka(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function wa(e,t){Ca=e,Oa=Ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ui=!0),e.firstContext=null)}function Ta(e,t){if(Oa!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Oa=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ea){if(null===Ca)throw i(Error(308));Ea=t,Ca.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ea=Ea.next=t;return e._currentValue}var Na=!1;function _a(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ma(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function La(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ra(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Aa(e,t){var r=e.alternate;if(null===r){var n=e.updateQueue,a=null;null===n&&(n=e.updateQueue=_a(e.memoizedState))}else n=e.updateQueue,a=r.updateQueue,null===n?null===a?(n=e.updateQueue=_a(e.memoizedState),a=r.updateQueue=_a(r.memoizedState)):n=e.updateQueue=Ma(a):null===a&&(a=r.updateQueue=Ma(n));null===a||n===a?Ra(n,t):null===n.lastUpdate||null===a.lastUpdate?(Ra(n,t),Ra(a,t)):(Ra(n,t),a.lastUpdate=t)}function Ia(e,t){var r=e.updateQueue;null===(r=null===r?e.updateQueue=_a(e.memoizedState):ja(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t)}function ja(e,t){var r=e.alternate;return null!==r&&t===r.updateQueue&&(t=e.updateQueue=Ma(t)),t}function Da(e,t,r,n,o,i){switch(r.tag){case 1:return"function"==typeof(e=r.payload)?e.call(i,n,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=r.payload)?e.call(i,n,o):e))break;return a({},n,o);case 2:Na=!0}return n}function za(e,t,r,n,a){Na=!1;for(var o=(t=ja(e,t)).baseState,i=null,l=0,s=t.firstUpdate,c=o;null!==s;){var p=s.expirationTime;p<a?(null===i&&(i=s,o=c),l<p&&(l=p)):(Hl(p,s.suspenseConfig),c=Da(e,0,s,c,r,n),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(p=null,s=t.firstCapturedUpdate;null!==s;){var u=s.expirationTime;u<a?(null===p&&(p=s,null===i&&(o=c)),l<u&&(l=u)):(c=Da(e,0,s,c,r,n),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===i&&(t.lastUpdate=null),null===p?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===p&&(o=c),t.baseState=o,t.firstUpdate=i,t.firstCapturedUpdate=p,e.expirationTime=l,e.memoizedState=c}function Fa(e,t,r){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Ua(t.firstEffect,r),t.firstEffect=t.lastEffect=null,Ua(t.firstCapturedEffect,r),t.firstCapturedEffect=t.lastCapturedEffect=null}function Ua(e,t){for(;null!==e;){var r=e.callback;if(null!==r){e.callback=null;var n=t;if("function"!=typeof r)throw i(Error(191),r);r.call(n)}e=e.nextEffect}}var Va=Ye.ReactCurrentBatchConfig,Ha=(new n.Component).refs;function Ga(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:a({},t,r),e.memoizedState=r,null!==(n=e.updateQueue)&&0===e.expirationTime&&(n.baseState=r)}var Ba={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===or(e)},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Nl(),a=Va.suspense;(a=La(n=_l(n,e,a),a)).payload=t,null!=r&&(a.callback=r),Aa(e,a),Ll(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Nl(),a=Va.suspense;(a=La(n=_l(n,e,a),a)).tag=1,a.payload=t,null!=r&&(a.callback=r),Aa(e,a),Ll(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Nl(),n=Va.suspense;(n=La(r=_l(r,e,n),n)).tag=2,null!=t&&(n.callback=t),Aa(e,n),Ll(e,r)}};function Wa(e,t,r,n,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!nr(r,n)||!nr(a,o))}function Ya(e,t,r){var n=!1,a=Rn,o=t.contextType;return"object"==typeof o&&null!==o?o=Ta(o):(a=zn(t)?jn:An.current,o=(n=null!=(n=t.contextTypes))?Dn(e,a):Rn),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ba,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Xa(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ba.enqueueReplaceState(t,t.state,null)}function qa(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=Ha;var o=t.contextType;"object"==typeof o&&null!==o?a.context=Ta(o):(o=zn(t)?jn:An.current,a.context=Dn(e,o)),null!==(o=e.updateQueue)&&(za(e,o,r,a,n),a.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(Ga(e,t,o,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ba.enqueueReplaceState(a,a.state,null),null!==(o=e.updateQueue)&&(za(e,o,r,a,n),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Ka=Array.isArray;function Qa(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){r=r._owner;var n=void 0;if(r){if(1!==r.tag)throw i(Error(309));n=r.stateNode}if(!n)throw i(Error(147),e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=n.refs;t===Ha&&(t=n.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw i(Error(284));if(!r._owner)throw i(Error(290),e)}return e}function $a(e,t){if("textarea"!==e.type)throw i(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Za(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,r){return(e=os(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=ss(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=Qa(e,t,r),n.return=e,n):((n=is(r.type,r.key,r.props,null,e.mode,n)).ref=Qa(e,t,r),n.return=e,n)}function p(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=cs(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function u(e,t,r,n,o){return null===t||7!==t.tag?((t=ls(r,e.mode,n,o)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=ss(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(r=is(t.type,t.key,t.props,null,e.mode,r)).ref=Qa(e,null,t),r.return=e,r;case Qe:return(t=cs(t,e.mode,r)).return=e,t}if(Ka(t)||ct(t))return(t=ls(t,e.mode,r,null)).return=e,t;$a(e,t)}return null}function h(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ke:return r.key===a?r.type===$e?u(e,t,r.props.children,n,a):c(e,t,r,n):null;case Qe:return r.key===a?p(e,t,r,n):null}if(Ka(r)||ct(r))return null!==a?null:u(e,t,r,n,null);$a(e,r)}return null}function b(e,t,r,n,a){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return e=e.get(null===n.key?r:n.key)||null,n.type===$e?u(t,e,n.props.children,a,n.key):c(t,e,n,a);case Qe:return p(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(Ka(n)||ct(n))return u(t,e=e.get(r)||null,n,a,null);$a(t,n)}return null}function m(a,i,l,s){for(var c=null,p=null,u=i,m=i=0,f=null;null!==u&&m<l.length;m++){u.index>m?(f=u,u=null):f=u.sibling;var g=h(a,u,l[m],s);if(null===g){null===u&&(u=f);break}e&&u&&null===g.alternate&&t(a,u),i=o(g,i,m),null===p?c=g:p.sibling=g,p=g,u=f}if(m===l.length)return r(a,u),c;if(null===u){for(;m<l.length;m++)null!==(u=d(a,l[m],s))&&(i=o(u,i,m),null===p?c=u:p.sibling=u,p=u);return c}for(u=n(a,u);m<l.length;m++)null!==(f=b(u,a,m,l[m],s))&&(e&&null!==f.alternate&&u.delete(null===f.key?m:f.key),i=o(f,i,m),null===p?c=f:p.sibling=f,p=f);return e&&u.forEach((function(e){return t(a,e)})),c}function f(a,l,s,c){var p=ct(s);if("function"!=typeof p)throw i(Error(150));if(null==(s=p.call(s)))throw i(Error(151));for(var u=p=null,m=l,f=l=0,g=null,v=s.next();null!==m&&!v.done;f++,v=s.next()){m.index>f?(g=m,m=null):g=m.sibling;var y=h(a,m,v.value,c);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(a,m),l=o(y,l,f),null===u?p=y:u.sibling=y,u=y,m=g}if(v.done)return r(a,m),p;if(null===m){for(;!v.done;f++,v=s.next())null!==(v=d(a,v.value,c))&&(l=o(v,l,f),null===u?p=v:u.sibling=v,u=v);return p}for(m=n(a,m);!v.done;f++,v=s.next())null!==(v=b(m,a,f,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?f:v.key),l=o(v,l,f),null===u?p=v:u.sibling=v,u=v);return e&&m.forEach((function(e){return t(a,e)})),p}return function(e,n,o,s){var c="object"==typeof o&&null!==o&&o.type===$e&&null===o.key;c&&(o=o.props.children);var p="object"==typeof o&&null!==o;if(p)switch(o.$$typeof){case Ke:e:{for(p=o.key,c=n;null!==c;){if(c.key===p){if(7===c.tag?o.type===$e:c.elementType===o.type){r(e,c.sibling),(n=a(c,o.type===$e?o.props.children:o.props)).ref=Qa(e,c,o),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}o.type===$e?((n=ls(o.props.children,e.mode,s,o.key)).return=e,e=n):((s=is(o.type,o.key,o.props,null,e.mode,s)).ref=Qa(e,n,o),s.return=e,e=s)}return l(e);case Qe:e:{for(c=o.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=a(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=cs(o,e.mode,s)).return=e,e=n}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,o)).return=e,e=n):(r(e,n),(n=ss(o,e.mode,s)).return=e,e=n),l(e);if(Ka(o))return m(e,n,o,s);if(ct(o))return f(e,n,o,s);if(p&&$a(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,i(Error(152),e.displayName||e.name||"Component")}return r(e,n)}}var Ja=Za(!0),eo=Za(!1),to={},ro={current:to},no={current:to},ao={current:to};function oo(e){if(e===to)throw i(Error(174));return e}function io(e,t){Ln(ao,t),Ln(no,e),Ln(ro,to);var r=t.nodeType;switch(r){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cn(null,"");break;default:t=cn(t=(r=8===r?t.parentNode:t).namespaceURI||null,r=r.tagName)}Mn(ro),Ln(ro,t)}function lo(e){Mn(ro),Mn(no),Mn(ao)}function so(e){oo(ao.current);var t=oo(ro.current),r=cn(t,e.type);t!==r&&(Ln(no,e),Ln(ro,r))}function co(e){no.current===e&&(Mn(ro),Mn(no))}var po=1,uo=1,ho=2,bo={current:0};function mo(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,go=2,vo=4,yo=8,Co=16,Eo=32,Oo=64,So=128,xo=Ye.ReactCurrentDispatcher,Po=0,ko=null,wo=null,To=null,No=null,_o=null,Mo=null,Lo=0,Ro=null,Ao=0,Io=!1,jo=null,Do=0;function zo(){throw i(Error(321))}function Fo(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!tr(e[r],t[r]))return!1;return!0}function Uo(e,t,r,n,a,o){if(Po=o,ko=t,To=null!==e?e.memoizedState:null,xo.current=null===To?Jo:ei,t=r(n,a),Io){do{Io=!1,Do+=1,To=null!==e?e.memoizedState:null,Mo=No,Ro=_o=wo=null,xo.current=ei,t=r(n,a)}while(Io);jo=null,Do=0}if(xo.current=Zo,(e=ko).memoizedState=No,e.expirationTime=Lo,e.updateQueue=Ro,e.effectTag|=Ao,e=null!==wo&&null!==wo.next,Po=0,Mo=_o=No=To=wo=ko=null,Lo=0,Ro=null,Ao=0,e)throw i(Error(300));return t}function Vo(){xo.current=Zo,Po=0,Mo=_o=No=To=wo=ko=null,Lo=0,Ro=null,Ao=0,Io=!1,jo=null,Do=0}function Ho(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===_o?No=_o=e:_o=_o.next=e,_o}function Go(){if(null!==Mo)Mo=(_o=Mo).next,To=null!==(wo=To)?wo.next:null;else{if(null===To)throw i(Error(310));var e={memoizedState:(wo=To).memoizedState,baseState:wo.baseState,queue:wo.queue,baseUpdate:wo.baseUpdate,next:null};_o=null===_o?No=e:_o.next=e,To=wo.next}return _o}function Bo(e,t){return"function"==typeof t?t(e):t}function Wo(e){var t=Go(),r=t.queue;if(null===r)throw i(Error(311));if(r.lastRenderedReducer=e,0<Do){var n=r.dispatch;if(null!==jo){var a=jo.get(r);if(void 0!==a){jo.delete(r);var o=t.memoizedState;do{o=e(o,a.action),a=a.next}while(null!==a);return tr(o,t.memoizedState)||(ui=!0),t.memoizedState=o,t.baseUpdate===r.last&&(t.baseState=o),r.lastRenderedState=o,[o,n]}}return[t.memoizedState,n]}n=r.last;var l=t.baseUpdate;if(o=t.baseState,null!==l?(null!==n&&(n.next=null),n=l.next):n=null!==n?n.next:null,null!==n){var s=a=null,c=n,p=!1;do{var u=c.expirationTime;u<Po?(p||(p=!0,s=l,a=o),u>Lo&&(Lo=u)):(Hl(u,c.suspenseConfig),o=c.eagerReducer===e?c.eagerState:e(o,c.action)),l=c,c=c.next}while(null!==c&&c!==n);p||(s=l,a=o),tr(o,t.memoizedState)||(ui=!0),t.memoizedState=o,t.baseUpdate=s,t.baseState=a,r.lastRenderedState=o}return[t.memoizedState,r.dispatch]}function Yo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===Ro?(Ro={lastEffect:null}).lastEffect=e.next=e:null===(t=Ro.lastEffect)?Ro.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,Ro.lastEffect=e),e}function Xo(e,t,r,n){var a=Ho();Ao|=e,a.memoizedState=Yo(t,r,void 0,void 0===n?null:n)}function qo(e,t,r,n){var a=Go();n=void 0===n?null:n;var o=void 0;if(null!==wo){var i=wo.memoizedState;if(o=i.destroy,null!==n&&Fo(n,i.deps))return void Yo(fo,r,o,n)}Ao|=e,a.memoizedState=Yo(t,r,o,n)}function Ko(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(){}function $o(e,t,r){if(!(25>Do))throw i(Error(301));var n=e.alternate;if(e===ko||null!==n&&n===ko)if(Io=!0,e={expirationTime:Po,suspenseConfig:null,action:r,eagerReducer:null,eagerState:null,next:null},null===jo&&(jo=new Map),void 0===(r=jo.get(t)))jo.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}else{var a=Nl(),o=Va.suspense;o={expirationTime:a=_l(a,e,o),suspenseConfig:o,action:r,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)o.next=o;else{var s=l.next;null!==s&&(o.next=s),l.next=o}if(t.last=o,0===e.expirationTime&&(null===n||0===n.expirationTime)&&null!==(n=t.lastRenderedReducer))try{var c=t.lastRenderedState,p=n(c,r);if(o.eagerReducer=n,o.eagerState=p,tr(p,c))return}catch(e){}Ll(e,a)}}var Zo={readContext:Ta,useCallback:zo,useContext:zo,useEffect:zo,useImperativeHandle:zo,useLayoutEffect:zo,useMemo:zo,useReducer:zo,useRef:zo,useState:zo,useDebugValue:zo,useResponder:zo},Jo={readContext:Ta,useCallback:function(e,t){return Ho().memoizedState=[e,void 0===t?null:t],e},useContext:Ta,useEffect:function(e,t){return Xo(516,So|Oo,e,t)},useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Xo(4,vo|Eo,Ko.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xo(4,vo|Eo,e,t)},useMemo:function(e,t){var r=Ho();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ho();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=$o.bind(null,ko,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Ho().memoizedState=e},useState:function(e){var t=Ho();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e}).dispatch=$o.bind(null,ko,e),[t.memoizedState,e]},useDebugValue:Qo,useResponder:ar},ei={readContext:Ta,useCallback:function(e,t){var r=Go();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Fo(t,n[1])?n[0]:(r.memoizedState=[e,t],e)},useContext:Ta,useEffect:function(e,t){return qo(516,So|Oo,e,t)},useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,qo(4,vo|Eo,Ko.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qo(4,vo|Eo,e,t)},useMemo:function(e,t){var r=Go();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Fo(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)},useReducer:Wo,useRef:function(){return Go().memoizedState},useState:function(e){return Wo(Bo)},useDebugValue:Qo,useResponder:ar},ti=null,ri=null,ni=!1;function ai(e,t){var r=ns(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function oi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ii(e){if(ni){var t=ri;if(t){var r=t;if(!oi(e,t)){if(!(t=Tn(r.nextSibling))||!oi(e,t))return e.effectTag|=2,ni=!1,void(ti=e);ai(ti,r)}ti=e,ri=Tn(t.firstChild)}else e.effectTag|=2,ni=!1,ti=e}}function li(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ti=e}function si(e){if(e!==ti)return!1;if(!ni)return li(e),ni=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Pn(t,e.memoizedProps))for(t=ri;t;)ai(e,t),t=Tn(t.nextSibling);return li(e),ri=ti?Tn(e.stateNode.nextSibling):null,!0}function ci(){ri=ti=null,ni=!1}var pi=Ye.ReactCurrentOwner,ui=!1;function di(e,t,r,n){t.child=null===e?eo(t,null,r,n):Ja(t,e.child,r,n)}function hi(e,t,r,n,a){r=r.render;var o=t.ref;return wa(t,a),n=Uo(e,t,r,n,o,a),null===e||ui?(t.effectTag|=1,di(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Pi(e,t,a))}function bi(e,t,r,n,a,o){if(null===e){var i=r.type;return"function"!=typeof i||as(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=is(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,mi(e,t,i,n,a,o))}return i=e.child,a<o&&(a=i.memoizedProps,(r=null!==(r=r.compare)?r:nr)(a,n)&&e.ref===t.ref)?Pi(e,t,o):(t.effectTag|=1,(e=os(i,n)).ref=t.ref,e.return=t,t.child=e)}function mi(e,t,r,n,a,o){return null!==e&&nr(e.memoizedProps,n)&&e.ref===t.ref&&(ui=!1,a<o)?Pi(e,t,o):gi(e,t,r,n,o)}function fi(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function gi(e,t,r,n,a){var o=zn(r)?jn:An.current;return o=Dn(t,o),wa(t,a),r=Uo(e,t,r,n,o,a),null===e||ui?(t.effectTag|=1,di(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Pi(e,t,a))}function vi(e,t,r,n,a){if(zn(r)){var o=!0;Gn(t)}else o=!1;if(wa(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ya(t,r,n),qa(t,r,n,a),n=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=r.contextType;"object"==typeof c&&null!==c?c=Ta(c):c=Dn(t,c=zn(r)?jn:An.current);var p=r.getDerivedStateFromProps,u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==c)&&Xa(t,i,n,c),Na=!1;var d=t.memoizedState;s=i.state=d;var h=t.updateQueue;null!==h&&(za(t,h,n,i,a),s=t.memoizedState),l!==n||d!==s||In.current||Na?("function"==typeof p&&(Ga(t,r,p,n),s=t.memoizedState),(l=Na||Wa(t,r,l,n,d,s,c))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),i.props=n,i.state=s,i.context=c,n=l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),n=!1)}else i=t.stateNode,l=t.memoizedProps,i.props=t.type===t.elementType?l:va(t.type,l),s=i.context,"object"==typeof(c=r.contextType)&&null!==c?c=Ta(c):c=Dn(t,c=zn(r)?jn:An.current),(u="function"==typeof(p=r.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==c)&&Xa(t,i,n,c),Na=!1,s=t.memoizedState,d=i.state=s,null!==(h=t.updateQueue)&&(za(t,h,n,i,a),d=t.memoizedState),l!==n||s!==d||In.current||Na?("function"==typeof p&&(Ga(t,r,p,n),d=t.memoizedState),(p=Na||Wa(t,r,l,n,s,d,c))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,d,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,d,c)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),i.props=n,i.state=d,i.context=c,n=p):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return yi(e,t,r,n,o,a)}function yi(e,t,r,n,a,o){fi(e,t);var i=0!=(64&t.effectTag);if(!n&&!i)return a&&Bn(t,r,!1),Pi(e,t,o);n=t.stateNode,pi.current=t;var l=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&i?(t.child=Ja(t,e.child,null,o),t.child=Ja(t,null,l,o)):di(e,t,l,o),t.memoizedState=n.state,a&&Bn(t,r,!0),t.child}function Ci(e){var t=e.stateNode;t.pendingContext?Vn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Vn(0,t.context,!1),io(e,t.containerInfo)}var Ei={};function Oi(e,t,r){var n,a=t.mode,o=t.pendingProps,i=bo.current,l=null,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(i&ho)&&(null===e||null!==e.memoizedState)),n?(l=Ei,s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=uo),Ln(bo,i&=po),null===e)if(s){if(o=o.fallback,(e=ls(null,a,0,null)).return=t,0==(2&t.mode))for(s=null!==t.memoizedState?t.child.child:t.child,e.child=s;null!==s;)s.return=e,s=s.sibling;(r=ls(o,a,r,null)).return=t,e.sibling=r,a=e}else a=r=eo(t,null,o.children,r);else{if(null!==e.memoizedState)if(a=(i=e.child).sibling,s){if(o=o.fallback,(r=os(i,i.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==i.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;(o=os(a,o,a.expirationTime)).return=t,r.sibling=o,a=r,r.childExpirationTime=0,r=o}else a=r=Ja(t,i.child,o.children,r);else if(i=e.child,s){if(s=o.fallback,(o=ls(null,a,0,null)).return=t,o.child=i,null!==i&&(i.return=o),0==(2&t.mode))for(i=null!==t.memoizedState?t.child.child:t.child,o.child=i;null!==i;)i.return=o,i=i.sibling;(r=ls(s,a,r,null)).return=t,o.sibling=r,r.effectTag|=2,a=o,o.childExpirationTime=0}else r=a=Ja(t,i,o.children,r);t.stateNode=e.stateNode}return t.memoizedState=l,t.child=a,r}function Si(e,t,r,n,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,last:n,tail:r,tailExpiration:0,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.last=n,o.tail=r,o.tailExpiration=0,o.tailMode=a)}function xi(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(di(e,t,n.children,r),0!=((n=bo.current)&ho))n=n&po|ho,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<r&&(e.expirationTime=r);var i=e.alternate;null!==i&&i.expirationTime<r&&(i.expirationTime=r),ka(e.return,r)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=po}if(Ln(bo,n),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(n=r.alternate)&&null===mo(n)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Si(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(n=a.alternate)&&null===mo(n)){t.child=a;break}n=a.sibling,a.sibling=r,r=a,a=n}Si(t,!0,r,null,o);break;case"together":Si(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pi(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw i(Error(153));if(null!==t.child){for(r=os(e=t.child,e.pendingProps,e.expirationTime),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=os(e,e.pendingProps,e.expirationTime)).return=t;r.sibling=null}return t.child}function ki(e){e.effectTag|=4}var wi=void 0,Ti=void 0,Ni=void 0,_i=void 0;function Mi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Li(e){switch(e.tag){case 1:zn(e.type)&&Fn();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(lo(),Un(),0!=(64&(t=e.effectTag)))throw i(Error(285));return e.effectTag=-2049&t|64,e;case 5:return co(e),null;case 13:return Mn(bo),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Mn(bo),null;case 4:return lo(),null;case 10:return Pa(e),null;default:return null}}function Ri(e,t){return{value:e,source:t,stack:ut(t)}}wi=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(20===r.tag)e.appendChild(r.stateNode.instance);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ti=function(){},Ni=function(e,t,r,n,o){var i=e.memoizedProps;if(i!==n){var l=t.stateNode;switch(oo(ro.current),e=null,r){case"input":i=Ot(l,i),n=Ot(l,n),e=[];break;case"option":i=en(l,i),n=en(l,n),e=[];break;case"select":i=a({},i,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":i=rn(l,i),n=rn(l,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(l.onclick=En)}vn(r,n),l=r=void 0;var s=null;for(r in i)if(!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&null!=i[r])if("style"===r){var c=i[r];for(l in c)c.hasOwnProperty(l)&&(s||(s={}),s[l]="")}else"dangerouslySetInnerHTML"!==r&&"children"!==r&&"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(h.hasOwnProperty(r)?e||(e=[]):(e=e||[]).push(r,null));for(r in n){var p=n[r];if(c=null!=i?i[r]:void 0,n.hasOwnProperty(r)&&p!==c&&(null!=p||null!=c))if("style"===r)if(c){for(l in c)!c.hasOwnProperty(l)||p&&p.hasOwnProperty(l)||(s||(s={}),s[l]="");for(l in p)p.hasOwnProperty(l)&&c[l]!==p[l]&&(s||(s={}),s[l]=p[l])}else s||(e||(e=[]),e.push(r,s)),s=p;else"dangerouslySetInnerHTML"===r?(p=p?p.__html:void 0,c=c?c.__html:void 0,null!=p&&c!==p&&(e=e||[]).push(r,""+p)):"children"===r?c===p||"string"!=typeof p&&"number"!=typeof p||(e=e||[]).push(r,""+p):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&(h.hasOwnProperty(r)?(null!=p&&Cn(o,r),e||c===p||(e=[])):(e=e||[]).push(r,p))}s&&(e=e||[]).push("style",s),o=e,(t.updateQueue=o)&&ki(t)}},_i=function(e,t,r,n){r!==n&&ki(t)};var Ai="function"==typeof WeakSet?WeakSet:Set;function Ii(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ut(r)),null!==r&&pt(r.type),t=t.value,null!==e&&1===e.tag&&pt(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ji(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ql(e,t)}else t.current=null}function Di(e,t,r){if(null!==(r=null!==(r=r.updateQueue)?r.lastEffect:null)){var n=r=r.next;do{if((n.tag&e)!==fo){var a=n.destroy;n.destroy=void 0,void 0!==a&&a()}(n.tag&t)!==fo&&(a=n.create,n.destroy=a()),n=n.next}while(n!==r)}}function zi(e,t){switch("function"==typeof ts&&ts(e),e.tag){case 0:case 11:case 14:case 15:var r=e.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var n=r.next;da(97<t?97:t,(function(){var t=n;do{var r=t.destroy;if(void 0!==r){var a=e;try{r()}catch(e){Ql(a,e)}}t=t.next}while(t!==n)}))}break;case 1:ji(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ql(e,t)}}(e,t);break;case 5:ji(e);break;case 4:Hi(e,t)}}function Fi(e,t){for(var r=e;;)if(zi(r,t),null!==r.child&&4!==r.tag)r.child.return=r,r=r.child;else{if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Ui(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){e:{for(var t=e.return;null!==t;){if(Ui(t)){var r=t;break e}t=t.return}throw i(Error(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw i(Error(161))}16&r.effectTag&&(dn(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||Ui(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}for(var a=e;;){var o=5===a.tag||6===a.tag;if(o||20===a.tag){var l=o?a.stateNode:a.stateNode.instance;if(r)if(n){var s=l;l=r,8===(o=t).nodeType?o.parentNode.insertBefore(s,l):o.insertBefore(s,l)}else t.insertBefore(l,r);else n?(8===(s=t).nodeType?(o=s.parentNode).insertBefore(l,s):(o=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==o.onclick||(o.onclick=En)):t.appendChild(l)}else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function Hi(e,t){for(var r=e,n=!1,a=void 0,o=void 0;;){if(!n){n=r.return;e:for(;;){if(null===n)throw i(Error(160));switch(a=n.stateNode,n.tag){case 5:o=!1;break e;case 3:case 4:a=a.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===r.tag||6===r.tag)if(Fi(r,t),o){var l=a,s=r.stateNode;8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)}else a.removeChild(r.stateNode);else if(20===r.tag)s=r.stateNode.instance,Fi(r,t),o?8===(l=a).nodeType?l.parentNode.removeChild(s):l.removeChild(s):a.removeChild(s);else if(4===r.tag){if(null!==r.child){a=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(zi(r,t),null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;4===(r=r.return).tag&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Gi(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Di(vo,yo,t);break;case 1:break;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,a=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[I]=n,"input"===e&&"radio"===n.type&&null!=n.name&&xt(r,n),yn(e,a),t=yn(e,n),a=0;a<o.length;a+=2){var l=o[a],s=o[a+1];"style"===l?fn(r,s):"dangerouslySetInnerHTML"===l?un(r,s):"children"===l?dn(r,s):Ct(r,l,s,t)}switch(e){case"input":Pt(r,n);break;case"textarea":an(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?tn(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?tn(r,!!n.multiple,n.defaultValue,!0):tn(r,!!n.multiple,n.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw i(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,ml=ca()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,o.style.display=mn("display",a));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break e;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Bi(t);break;case 19:Bi(t);break;case 17:case 20:break;default:throw i(Error(163))}}function Bi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Ai),t.forEach((function(t){var n=Zl.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var Wi="function"==typeof WeakMap?WeakMap:Map;function Yi(e,t,r){(r=La(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){vl||(vl=!0,yl=n),Ii(e,t)},r}function Xi(e,t,r){(r=La(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return Ii(e,t),n(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Cl?Cl=new Set([this]):Cl.add(this),Ii(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var qi=Math.ceil,Ki=Ye.ReactCurrentDispatcher,Qi=Ye.ReactCurrentOwner,$i=0,Zi=8,Ji=16,el=32,tl=0,rl=1,nl=2,al=3,ol=4,il=$i,ll=null,sl=null,cl=0,pl=tl,ul=1073741823,dl=1073741823,hl=null,bl=!1,ml=0,fl=500,gl=null,vl=!1,yl=null,Cl=null,El=!1,Ol=null,Sl=90,xl=0,Pl=null,kl=0,wl=null,Tl=0;function Nl(){return(il&(Ji|el))!==$i?1073741821-(ca()/10|0):0!==Tl?Tl:Tl=1073741821-(ca()/10|0)}function _l(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=pa();if(0==(4&t))return 99===n?1073741823:1073741822;if((il&Ji)!==$i)return cl;if(null!==r)e=1073741821-25*(1+((1073741821-e+(0|r.timeoutMs||5e3)/10)/25|0));else switch(n){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw i(Error(326))}return null!==ll&&e===cl&&--e,e}var Ml=0;function Ll(e,t){if(50<kl)throw kl=0,wl=null,i(Error(185));if(null!==(e=Rl(e,t))){e.pingTime=0;var r=pa();if(1073741823===t)if((il&Zi)!==$i&&(il&(Ji|el))===$i)for(var n=Vl(e,1073741823,!0);null!==n;)n=n(!0);else Al(e,99,1073741823),il===$i&&ma();else Al(e,r,t);(4&il)===$i||98!==r&&99!==r||(null===Pl?Pl=new Map([[e,t]]):(void 0===(r=Pl.get(e))||r>t)&&Pl.set(e,t))}}function Rl(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,a=null;if(null===n&&3===e.tag)a=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){a=n.stateNode;break}n=n.return}return null!==a&&(t>a.firstPendingTime&&(a.firstPendingTime=t),0===(e=a.lastPendingTime)||t<e)&&(a.lastPendingTime=t),a}function Al(e,t,r){if(e.callbackExpirationTime<r){var n=e.callbackNode;null!==n&&n!==na&&Xn(n),e.callbackExpirationTime=r,1073741823===r?e.callbackNode=ba(Il.bind(null,e,Vl.bind(null,e,r))):(n=null,1!==r&&(n={timeout:10*(1073741821-r)-ca()}),e.callbackNode=ha(t,Il.bind(null,e,Vl.bind(null,e,r)),n))}}function Il(e,t,r){var n=e.callbackNode,a=null;try{return null!==(a=t(r))?Il.bind(null,e,a):null}finally{null===a&&n===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function jl(){(il&(1|Ji|el))===$i&&(function(){if(null!==Pl){var e=Pl;Pl=null,e.forEach((function(e,t){ba(Vl.bind(null,t,e))})),ma()}}(),Xl())}function Dl(e,t){var r=il;il|=1;try{return e(t)}finally{(il=r)===$i&&ma()}}function zl(e,t,r,n){var a=il;il|=4;try{return da(98,e.bind(null,t,r,n))}finally{(il=a)===$i&&ma()}}function Fl(e,t){var r=il;il&=-2,il|=Zi;try{return e(t)}finally{(il=r)===$i&&ma()}}function Ul(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,wn(r)),null!==sl)for(r=sl.return;null!==r;){var n=r;switch(n.tag){case 1:var a=n.type.childContextTypes;null!=a&&Fn();break;case 3:lo(),Un();break;case 5:co(n);break;case 4:lo();break;case 13:case 19:Mn(bo);break;case 10:Pa(n)}r=r.return}ll=e,sl=os(e.current,null),cl=t,pl=tl,dl=ul=1073741823,hl=null,bl=!1}function Vl(e,t,r){if((il&(Ji|el))!==$i)throw i(Error(327));if(e.firstPendingTime<t)return null;if(r&&e.finishedExpirationTime===t)return Wl.bind(null,e);if(Xl(),e!==ll||t!==cl)Ul(e,t);else if(pl===al)if(bl)Ul(e,t);else{var n=e.lastPendingTime;if(n<t)return Vl.bind(null,e,n)}if(null!==sl){n=il,il|=Ji;var a=Ki.current;if(null===a&&(a=Zo),Ki.current=Zo,r){if(1073741823!==t){var o=Nl();if(o<t)return il=n,Sa(),Ki.current=a,Vl.bind(null,e,o)}}else Tl=0;for(;;)try{if(r)for(;null!==sl;)sl=Gl(sl);else for(;null!==sl&&!qn();)sl=Gl(sl);break}catch(r){if(Sa(),Vo(),null===(o=sl)||null===o.return)throw Ul(e,t),il=n,r;e:{var l=e,s=o.return,c=o,p=r,u=cl;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==p&&"object"==typeof p&&"function"==typeof p.then){var d=p,h=0!=(bo.current&uo);p=s;do{var b;if((b=13===p.tag)&&(null!==p.memoizedState?b=!1:b=void 0!==(b=p.memoizedProps).fallback&&(!0!==b.unstable_avoidThisFallback||!h)),b){if(null===(s=p.updateQueue)?((s=new Set).add(d),p.updateQueue=s):s.add(d),0==(2&p.mode)){p.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((u=La(1073741823,null)).tag=2,Aa(c,u))),c.expirationTime=1073741823;break e}c=l,l=u,null===(h=c.pingCache)?(h=c.pingCache=new Wi,s=new Set,h.set(d,s)):void 0===(s=h.get(d))&&(s=new Set,h.set(d,s)),s.has(l)||(s.add(l),c=$l.bind(null,c,d,l),d.then(c,c)),p.effectTag|=2048,p.expirationTime=u;break e}p=p.return}while(null!==p);p=Error((pt(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(c))}pl!==ol&&(pl=rl),p=Ri(p,c),c=s;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=u,Ia(c,u=Yi(c,p,u));break e;case 1:if(d=p,l=c.type,s=c.stateNode,0==(64&c.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===Cl||!Cl.has(s)))){c.effectTag|=2048,c.expirationTime=u,Ia(c,u=Xi(c,d,u));break e}}c=c.return}while(null!==c)}sl=Bl(o)}if(il=n,Sa(),Ki.current=a,null!==sl)return Vl.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var r=e.firstBatch;return!!(null!==r&&r._defer&&r._expirationTime>=t)&&(ha(97,(function(){return r._onComplete(),null})),!0)}(e,t))return null;switch(ll=null,pl){case tl:throw i(Error(328));case rl:return(n=e.lastPendingTime)<t?Vl.bind(null,e,n):r?Wl.bind(null,e):(Ul(e,t),ba(Vl.bind(null,e,t)),null);case nl:return 1073741823===ul&&!r&&10<(r=ml+fl-ca())?bl?(Ul(e,t),Vl.bind(null,e,t)):(n=e.lastPendingTime)<t?Vl.bind(null,e,n):(e.timeoutHandle=kn(Wl.bind(null,e),r),null):Wl.bind(null,e);case al:if(!r){if(bl)return Ul(e,t),Vl.bind(null,e,t);if((r=e.lastPendingTime)<t)return Vl.bind(null,e,r);if(1073741823!==dl?r=10*(1073741821-dl)-ca():1073741823===ul?r=0:(r=10*(1073741821-ul)-5e3,0>(r=(n=ca())-r)&&(r=0),(t=10*(1073741821-t)-n)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qi(r/1960))-r)&&(r=t)),10<r)return e.timeoutHandle=kn(Wl.bind(null,e),r),null}return Wl.bind(null,e);case ol:return!r&&1073741823!==ul&&null!==hl&&(n=ul,0>=(t=0|(a=hl).busyMinDurationMs)?t=0:(r=0|a.busyDelayMs,t=(n=ca()-(10*(1073741821-n)-(0|a.timeoutMs||5e3)))<=r?0:r+t-n),10<t)?(e.timeoutHandle=kn(Wl.bind(null,e),t),null):Wl.bind(null,e);default:throw i(Error(329))}}function Hl(e,t){e<ul&&1<e&&(ul=e),null!==t&&e<dl&&1<e&&(dl=e,hl=t)}function Gl(e){var t=Jl(e.alternate,e,cl);return e.memoizedProps=e.pendingProps,null===t&&(t=Bl(e)),Qi.current=null,t}function Bl(e){sl=e;do{var t=sl.alternate;if(e=sl.return,0==(1024&sl.effectTag)){e:{var r=t,n=cl,o=(t=sl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:zn(t.type)&&Fn();break;case 3:lo(),Un(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==r&&null!==r.child||(si(t),t.effectTag&=-3),Ti(t);break;case 5:co(t),n=oo(ao.current);var l=t.type;if(null!==r&&null!=t.stateNode)Ni(r,t,l,o,n),r.ref!==t.ref&&(t.effectTag|=128);else if(o){var s=oo(ro.current);if(si(t)){o=void 0,l=(r=t).stateNode;var c=r.type,p=r.memoizedProps;switch(l[A]=r,l[I]=p,c){case"iframe":case"object":case"embed":Ar("load",l);break;case"video":case"audio":for(var u=0;u<re.length;u++)Ar(re[u],l);break;case"source":Ar("error",l);break;case"img":case"image":case"link":Ar("error",l),Ar("load",l);break;case"form":Ar("reset",l),Ar("submit",l);break;case"details":Ar("toggle",l);break;case"input":St(l,p),Ar("invalid",l),Cn(n,"onChange");break;case"select":l._wrapperState={wasMultiple:!!p.multiple},Ar("invalid",l),Cn(n,"onChange");break;case"textarea":nn(l,p),Ar("invalid",l),Cn(n,"onChange")}for(o in vn(c,p),u=null,p)p.hasOwnProperty(o)&&(s=p[o],"children"===o?"string"==typeof s?l.textContent!==s&&(u=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(u=["children",""+s]):h.hasOwnProperty(o)&&null!=s&&Cn(n,o));switch(c){case"input":Be(l),kt(l,p,!0);break;case"textarea":Be(l),on(l);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(l.onclick=En)}n=u,r.updateQueue=n,null!==n&&ki(t)}else{p=l,r=o,c=t,u=9===n.nodeType?n:n.ownerDocument,s===ln.html&&(s=sn(p)),s===ln.html?"script"===p?((p=u.createElement("div")).innerHTML="<script><\/script>",u=p.removeChild(p.firstChild)):"string"==typeof r.is?u=u.createElement(p,{is:r.is}):(u=u.createElement(p),"select"===p&&(p=u,r.multiple?p.multiple=!0:r.size&&(p.size=r.size))):u=u.createElementNS(s,p),(p=u)[A]=c,p[I]=r,wi(r=p,t,!1,!1),c=r;var d=n,b=yn(l,o);switch(l){case"iframe":case"object":case"embed":Ar("load",c),n=o;break;case"video":case"audio":for(n=0;n<re.length;n++)Ar(re[n],c);n=o;break;case"source":Ar("error",c),n=o;break;case"img":case"image":case"link":Ar("error",c),Ar("load",c),n=o;break;case"form":Ar("reset",c),Ar("submit",c),n=o;break;case"details":Ar("toggle",c),n=o;break;case"input":St(c,o),n=Ot(c,o),Ar("invalid",c),Cn(d,"onChange");break;case"option":n=en(c,o);break;case"select":c._wrapperState={wasMultiple:!!o.multiple},n=a({},o,{value:void 0}),Ar("invalid",c),Cn(d,"onChange");break;case"textarea":nn(c,o),n=rn(c,o),Ar("invalid",c),Cn(d,"onChange");break;default:n=o}vn(l,n),p=void 0,u=l,s=c;var m=n;for(p in m)if(m.hasOwnProperty(p)){var f=m[p];"style"===p?fn(s,f):"dangerouslySetInnerHTML"===p?null!=(f=f?f.__html:void 0)&&un(s,f):"children"===p?"string"==typeof f?("textarea"!==u||""!==f)&&dn(s,f):"number"==typeof f&&dn(s,""+f):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(h.hasOwnProperty(p)?null!=f&&Cn(d,p):null!=f&&Ct(s,p,f,b))}switch(l){case"input":Be(c),kt(c,o,!1);break;case"textarea":Be(c),on(c);break;case"option":null!=o.value&&c.setAttribute("value",""+Et(o.value));break;case"select":n=c,c=o,n.multiple=!!c.multiple,null!=(p=c.value)?tn(n,!!c.multiple,p,!1):null!=c.defaultValue&&tn(n,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof n.onClick&&(c.onclick=En)}xn(l,o)&&ki(t),t.stateNode=r}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw i(Error(166));break;case 6:if(r&&null!=t.stateNode)_i(r,t,r.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw i(Error(166));r=oo(ao.current),oo(ro.current),si(t)?(n=t.stateNode,r=t.memoizedProps,n[A]=t,n.nodeValue!==r&&ki(t)):(n=t,(r=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[A]=t,n.stateNode=r)}break;case 11:break;case 13:if(Mn(bo),o=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=n;break e}n=null!==o,o=!1,null===r?si(t):(o=null!==(l=r.memoizedState),n||null===l||null!==(l=r.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=l,l.nextEffect=c):(t.firstEffect=t.lastEffect=l,l.nextEffect=null),l.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===r&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(bo.current&uo)?pl===tl&&(pl=nl):pl!==tl&&pl!==nl||(pl=al)),(n||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:lo(),Ti(t);break;case 10:Pa(t);break;case 9:case 14:break;case 17:zn(t.type)&&Fn();break;case 18:break;case 19:if(Mn(bo),null===(o=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(c=o.rendering)){if(l)Mi(o,!1);else if(pl!==tl||null!==r&&0!=(64&r.effectTag))for(r=t.child;null!==r;){if(null!==(c=mo(r))){for(t.effectTag|=64,Mi(o,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),t.firstEffect=t.lastEffect=null,r=t.child;null!==r;)l=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(c=o.alternate)?(o.childExpirationTime=0,o.expirationTime=l,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=c.childExpirationTime,o.expirationTime=c.expirationTime,o.child=c.child,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,l=c.dependencies,o.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),r=r.sibling;Ln(bo,bo.current&po|ho),t=t.child;break e}r=r.sibling}}else{if(!l)if(null!==(r=mo(c))){if(t.effectTag|=64,l=!0,Mi(o,!0),null===o.tail&&"hidden"===o.tailMode){null!==(n=r.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null);break}}else ca()>o.tailExpiration&&1<n&&(t.effectTag|=64,l=!0,Mi(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=o.last)?n.sibling=c:t.child=c,o.last=c)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=ca()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,n.sibling=null,r=bo.current,Ln(bo,r=l?r&po|ho:r&po),t=n;break e}break;case 20:break;default:throw i(Error(156))}t=null}if(n=sl,1===cl||1!==n.childExpirationTime){for(r=0,o=n.child;null!==o;)(l=o.expirationTime)>r&&(r=l),(c=o.childExpirationTime)>r&&(r=c),o=o.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=sl.firstEffect),null!==sl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=sl.firstEffect),e.lastEffect=sl.lastEffect),1<sl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=sl:e.firstEffect=sl,e.lastEffect=sl))}else{if(null!==(t=Li(sl)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=sl.sibling))return t;sl=e}while(null!==sl);return pl===tl&&(pl=ol),null}function Wl(e){var t=pa();return da(99,Yl.bind(null,e,t)),null!==Ol&&ha(97,(function(){return Xl(),null})),null}function Yl(e,t){if(Xl(),(il&(Ji|el))!==$i)throw i(Error(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw i(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var a=r.expirationTime,o=r.childExpirationTime;if(a=o>a?o:a,e.firstPendingTime=a,a<e.lastPendingTime&&(e.lastPendingTime=a),e===ll&&(sl=ll=null,cl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){o=il,il|=el,Qi.current=null,On=Rr;var l=Br();if(Wr(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var p=c.anchorOffset,u=c.focusNode;c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var d=0,h=-1,b=-1,m=0,f=0,g=l,v=null;t:for(;;){for(var y;g!==s||0!==p&&3!==g.nodeType||(h=d+p),g!==u||0!==c&&3!==g.nodeType||(b=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===l)break t;if(v===s&&++m===p&&(h=d),v===u&&++f===c&&(b=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}s=-1===h||-1===b?null:{start:h,end:b}}else s=null}s=s||{start:0,end:0}}else s=null;Sn={focusedElem:l,selectionRange:s},Rr=!1,gl=a;do{try{for(;null!==gl;){if(0!=(256&gl.effectTag)){var C=gl.alternate;switch((l=gl).tag){case 0:case 11:case 15:Di(go,fo,l);break;case 1:if(256&l.effectTag&&null!==C){var E=C.memoizedProps,O=C.memoizedState,S=l.stateNode,x=S.getSnapshotBeforeUpdate(l.elementType===l.type?E:va(l.type,E),O);S.__reactInternalSnapshotBeforeUpdate=x}break;case 3:case 5:case 6:case 4:case 17:break;default:throw i(Error(163))}}gl=gl.nextEffect}}catch(e){if(null===gl)throw i(Error(330));Ql(gl,e),gl=gl.nextEffect}}while(null!==gl);gl=a;do{try{for(C=t;null!==gl;){var P=gl.effectTag;if(16&P&&dn(gl.stateNode,""),128&P){var k=gl.alternate;if(null!==k){var w=k.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(14&P){case 2:Vi(gl),gl.effectTag&=-3;break;case 6:Vi(gl),gl.effectTag&=-3,Gi(gl.alternate,gl);break;case 4:Gi(gl.alternate,gl);break;case 8:Hi(E=gl,C),E.return=null,E.child=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null;var T=E.alternate;null!==T&&(T.return=null,T.child=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null)}gl=gl.nextEffect}}catch(e){if(null===gl)throw i(Error(330));Ql(gl,e),gl=gl.nextEffect}}while(null!==gl);if(w=Sn,k=Br(),P=w.focusedElem,C=w.selectionRange,k!==P&&P&&P.ownerDocument&&function e(t,r){return!(!t||!r)&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(P.ownerDocument.documentElement,P)){null!==C&&Wr(P)&&(k=C.start,void 0===(w=C.end)&&(w=k),"selectionStart"in P?(P.selectionStart=k,P.selectionEnd=Math.min(w,P.value.length)):(w=(k=P.ownerDocument||document)&&k.defaultView||window).getSelection&&(w=w.getSelection(),E=P.textContent.length,T=Math.min(C.start,E),C=void 0===C.end?T:Math.min(C.end,E),!w.extend&&T>C&&(E=C,C=T,T=E),E=Gr(P,T),O=Gr(P,C),E&&O&&(1!==w.rangeCount||w.anchorNode!==E.node||w.anchorOffset!==E.offset||w.focusNode!==O.node||w.focusOffset!==O.offset)&&((k=k.createRange()).setStart(E.node,E.offset),w.removeAllRanges(),T>C?(w.addRange(k),w.extend(O.node,O.offset)):(k.setEnd(O.node,O.offset),w.addRange(k))))),k=[];for(w=P;w=w.parentNode;)1===w.nodeType&&k.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof P.focus&&P.focus(),P=0;P<k.length;P++)(w=k[P]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Sn=null,Rr=!!On,On=null,e.current=r,gl=a;do{try{for(P=n;null!==gl;){var N=gl.effectTag;if(36&N){var _=gl.alternate;switch(w=P,(k=gl).tag){case 0:case 11:case 15:Di(Co,Eo,k);break;case 1:var M=k.stateNode;if(4&k.effectTag)if(null===_)M.componentDidMount();else{var L=k.elementType===k.type?_.memoizedProps:va(k.type,_.memoizedProps);M.componentDidUpdate(L,_.memoizedState,M.__reactInternalSnapshotBeforeUpdate)}var R=k.updateQueue;null!==R&&Fa(0,R,M);break;case 3:var A=k.updateQueue;if(null!==A){if(T=null,null!==k.child)switch(k.child.tag){case 5:T=k.child.stateNode;break;case 1:T=k.child.stateNode}Fa(0,A,T)}break;case 5:var I=k.stateNode;null===_&&4&k.effectTag&&(w=I,xn(k.type,k.memoizedProps)&&w.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw i(Error(163))}}if(128&N){var j=gl.ref;if(null!==j){var D=gl.stateNode;switch(gl.tag){case 5:var z=D;break;default:z=D}"function"==typeof j?j(z):j.current=z}}512&N&&(El=!0),gl=gl.nextEffect}}catch(e){if(null===gl)throw i(Error(330));Ql(gl,e),gl=gl.nextEffect}}while(null!==gl);gl=null,aa(),il=o}else e.current=r;if(El)El=!1,Ol=e,xl=n,Sl=t;else for(gl=a;null!==gl;)t=gl.nextEffect,gl.nextEffect=null,gl=t;if(0!==(t=e.firstPendingTime)?Al(e,N=ga(N=Nl(),t),t):Cl=null,"function"==typeof es&&es(r.stateNode,n),1073741823===t?e===wl?kl++:(kl=0,wl=e):kl=0,vl)throw vl=!1,e=yl,yl=null,e;return(il&Zi)!==$i?null:(ma(),null)}function Xl(){if(null===Ol)return!1;var e=Ol,t=xl,r=Sl;return Ol=null,xl=0,Sl=90,da(97<r?97:r,ql.bind(null,e,t))}function ql(e){if((il&(Ji|el))!==$i)throw i(Error(331));var t=il;for(il|=el,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:Di(So,fo,r),Di(fo,Oo,r)}}catch(t){if(null===e)throw i(Error(330));Ql(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return il=t,ma(),!0}function Kl(e,t,r){Aa(e,t=Yi(e,t=Ri(r,t),1073741823)),null!==(e=Rl(e,1073741823))&&Al(e,99,1073741823)}function Ql(e,t){if(3===e.tag)Kl(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Kl(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Cl||!Cl.has(n))){Aa(r,e=Xi(r,e=Ri(t,e),1073741823)),null!==(r=Rl(r,1073741823))&&Al(r,99,1073741823);break}}r=r.return}}function $l(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),ll===e&&cl===r?pl===al||pl===nl&&1073741823===ul&&ca()-ml<fl?Ul(e,cl):bl=!0:e.lastPendingTime<r||(0!==(t=e.pingTime)&&t<r||(e.pingTime=r,e.finishedExpirationTime===r&&(e.finishedExpirationTime=0,e.finishedWork=null),Al(e,t=ga(t=Nl(),r),r)))}function Zl(e,t){var r=e.stateNode;null!==r&&r.delete(t),r=ga(r=Nl(),t=_l(r,e,null)),null!==(e=Rl(e,t))&&Al(e,r,t)}var Jl=void 0;Jl=function(e,t,r){var n=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||In.current)ui=!0;else if(n<r){switch(ui=!1,t.tag){case 3:Ci(t),ci();break;case 5:if(so(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:zn(t.type)&&Gn(t);break;case 4:io(t,t.stateNode.containerInfo);break;case 10:xa(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Oi(e,t,r):(Ln(bo,bo.current&po),null!==(t=Pi(e,t,r))?t.sibling:null);Ln(bo,bo.current&po);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return xi(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),Ln(bo,bo.current),!n)return null}return Pi(e,t,r)}}else ui=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=Dn(t,An.current),wa(t,r),a=Uo(null,t,n,e,a,r),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,Vo(),zn(n)){var o=!0;Gn(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var l=n.getDerivedStateFromProps;"function"==typeof l&&Ga(t,n,l,e),a.updater=Ba,t.stateNode=a,a._reactInternalFiber=t,qa(t,n,e,r),t=yi(null,t,n,!0,o,r)}else t.tag=0,di(null,t,a,r),t=t.child;return t;case 16:switch(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(a),t.type=a,o=t.tag=function(e){if("function"==typeof e)return as(e)?1:0;if(null!=e){if((e=e.$$typeof)===nt)return 11;if(e===it)return 14}return 2}(a),e=va(a,e),o){case 0:t=gi(null,t,a,e,r);break;case 1:t=vi(null,t,a,e,r);break;case 11:t=hi(null,t,a,e,r);break;case 14:t=bi(null,t,a,va(a.type,e),n,r);break;default:throw i(Error(306),a,"")}return t;case 0:return n=t.type,a=t.pendingProps,gi(e,t,n,a=t.elementType===n?a:va(n,a),r);case 1:return n=t.type,a=t.pendingProps,vi(e,t,n,a=t.elementType===n?a:va(n,a),r);case 3:if(Ci(t),null===(n=t.updateQueue))throw i(Error(282));return a=null!==(a=t.memoizedState)?a.element:null,za(t,n,t.pendingProps,null,r),(n=t.memoizedState.element)===a?(ci(),t=Pi(e,t,r)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(ri=Tn(t.stateNode.containerInfo.firstChild),ti=t,a=ni=!0),a?(t.effectTag|=2,t.child=eo(t,null,n,r)):(di(e,t,n,r),ci()),t=t.child),t;case 5:return so(t),null===e&&ii(t),n=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,Pn(n,a)?l=null:null!==o&&Pn(n,o)&&(t.effectTag|=16),fi(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(di(e,t,l,r),t=t.child),t;case 6:return null===e&&ii(t),null;case 13:return Oi(e,t,r);case 4:return io(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ja(t,null,n,r):di(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,hi(e,t,n,a=t.elementType===n?a:va(n,a),r);case 7:return di(e,t,t.pendingProps,r),t.child;case 8:case 12:return di(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,l=t.memoizedProps,xa(t,o=a.value),null!==l){var s=l.value;if(0===(o=tr(s,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,o):1073741823))){if(l.children===a.children&&!In.current){t=Pi(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var p=c.firstContext;null!==p;){if(p.context===n&&0!=(p.observedBits&o)){1===s.tag&&((p=La(r,null)).tag=2,Aa(s,p)),s.expirationTime<r&&(s.expirationTime=r),null!==(p=s.alternate)&&p.expirationTime<r&&(p.expirationTime=r),ka(s.return,r),c.expirationTime<r&&(c.expirationTime=r);break}p=p.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}di(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(o=t.pendingProps).children,wa(t,r),n=n(a=Ta(a,o.unstable_observedBits)),t.effectTag|=1,di(e,t,n,r),t.child;case 14:return o=va(a=t.type,t.pendingProps),bi(e,t,a,o=va(a.type,o),n,r);case 15:return mi(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:va(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,zn(n)?(e=!0,Gn(t)):e=!1,wa(t,r),Ya(t,n,a),qa(t,n,a,r),yi(null,t,n,!0,e,r);case 19:return xi(e,t,r)}throw i(Error(156))};var es=null,ts=null;function rs(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ns(e,t,r,n){return new rs(e,t,r,n)}function as(e){return!(!(e=e.prototype)||!e.isReactComponent)}function os(e,t){var r=e.alternate;return null===r?((r=ns(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function is(e,t,r,n,a,o){var l=2;if(n=e,"function"==typeof e)as(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case $e:return ls(r.children,a,o,t);case rt:l=8,a|=7;break;case Ze:l=8,a|=1;break;case Je:return(e=ns(12,r,t,8|a)).elementType=Je,e.type=Je,e.expirationTime=o,e;case at:return(e=ns(13,r,t,a)).type=at,e.elementType=at,e.expirationTime=o,e;case ot:return(e=ns(19,r,t,a)).elementType=ot,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:l=10;break e;case tt:l=9;break e;case nt:l=11;break e;case it:l=14;break e;case lt:l=16,n=null;break e}throw i(Error(130),null==e?e:typeof e,"")}return(t=ns(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=o,t}function ls(e,t,r,n){return(e=ns(7,e,n,t)).expirationTime=r,e}function ss(e,t,r){return(e=ns(6,e,null,t)).expirationTime=r,e}function cs(e,t,r){return(t=ns(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ps(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function us(e,t,r){return e=new ps(e,t,r),t=ns(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function ds(e,t,r,n,a,o){var l=t.current;e:if(r){t:{if(2!==or(r=r._reactInternalFiber)||1!==r.tag)throw i(Error(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(zn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw i(Error(171))}if(1===r.tag){var c=r.type;if(zn(c)){r=Hn(r,c,s);break e}}r=s}else r=Rn;return null===t.context?t.context=r:t.pendingContext=r,t=o,(a=La(n,a)).payload={element:e},null!==(t=void 0===t?null:t)&&(a.callback=t),Aa(l,a),Ll(l,n),n}function hs(e,t,r,n){var a=t.current,o=Nl(),i=Va.suspense;return ds(e,t,r,a=_l(o,a,i),i,n)}function bs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ms(e){var t=1073741821-25*(1+((1073741821-Nl()+500)/25|0));t<=Ml&&--t,this._expirationTime=Ml=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function fs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function gs(e,t,r){this._internalRoot=us(e,t,r)}function vs(e,t){this._internalRoot=us(e,2,t)}function ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Cs(e,t,r,n,a){var o=r._reactRootContainer,i=void 0;if(o){if(i=o._internalRoot,"function"==typeof a){var l=a;a=function(){var e=bs(i);l.call(e)}}hs(t,i,e,a)}else{if(o=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new gs(e,0,t)}(r,n),i=o._internalRoot,"function"==typeof a){var s=a;a=function(){var e=bs(i);s.call(e)}}Fl((function(){hs(t,i,e,a)}))}return bs(i)}function Es(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ys(t))throw i(Error(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}we=function(e,t,r){switch(t){case"input":if(Pt(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=F(n);if(!a)throw i(Error(90));We(n),Pt(n,a)}}}break;case"textarea":an(e,r);break;case"select":null!=(t=r.value)&&tn(e,!!r.multiple,t,!1)}},ms.prototype.render=function(e){if(!this._defer)throw i(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,r=this._expirationTime,n=new fs;return ds(e,t,null,r,null,n._onCommit),n},ms.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ms.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw i(Error(251));if(this._hasChildren){var r=this._expirationTime;if(t!==this){this._hasChildren&&(r=this._expirationTime=t._expirationTime,this.render(this._children));for(var n=null,a=t;a!==this;)n=a,a=a._next;if(null===n)throw i(Error(251));n._next=a._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=r,(il&(Ji|el))!==$i)throw i(Error(253));ba(Vl.bind(null,e,t)),ma(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ms.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},fs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},fs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)throw i(Error(191),r);r()}}},vs.prototype.render=gs.prototype.render=function(e,t){var r=this._internalRoot,n=new fs;return null!==(t=void 0===t?null:t)&&n.then(t),hs(e,r,null,n._onCommit),n},vs.prototype.unmount=gs.prototype.unmount=function(e){var t=this._internalRoot,r=new fs;return null!==(e=void 0===e?null:e)&&r.then(e),hs(null,t,null,r._onCommit),r},vs.prototype.createBatch=function(){var e=new ms(this),t=e._expirationTime,r=this._internalRoot,n=r.firstBatch;if(null===n)r.firstBatch=e,e._next=null;else{for(r=null;null!==n&&n._expirationTime>=t;)r=n,n=n._next;e._next=n,null!==r&&(r._next=e)}return e},Re=Dl,Ae=zl,Ie=jl,je=function(e,t){var r=il;il|=2;try{return e(t)}finally{(il=r)===$i&&ma()}};var Os,Ss,xs={createPortal:Es,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw i(Error(188));throw i(Error(268),Object.keys(e))}e=null===(e=lr(t))?null:e.stateNode}return e},hydrate:function(e,t,r){if(!ys(t))throw i(Error(200));return Cs(null,e,t,!0,r)},render:function(e,t,r){if(!ys(t))throw i(Error(200));return Cs(null,e,t,!1,r)},unstable_renderSubtreeIntoContainer:function(e,t,r,n){if(!ys(r))throw i(Error(200));if(null==e||void 0===e._reactInternalFiber)throw i(Error(38));return Cs(e,t,r,!1,n)},unmountComponentAtNode:function(e){if(!ys(e))throw i(Error(40));return!!e._reactRootContainer&&(Fl((function(){Cs(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Es.apply(void 0,arguments)},unstable_batchedUpdates:Dl,unstable_interactiveUpdates:function(e,t,r,n){return jl(),zl(e,t,r,n)},unstable_discreteUpdates:zl,unstable_flushDiscreteUpdates:jl,flushSync:function(e,t){if((il&(Ji|el))!==$i)throw i(Error(187));var r=il;il|=1;try{return da(99,e.bind(null,t))}finally{il=r,ma()}},unstable_createRoot:function(e,t){if(!ys(e))throw i(Error(299),"unstable_createRoot");return new vs(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!ys(e))throw i(Error(299),"unstable_createRoot");return new gs(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=il;il|=1;try{da(99,e)}finally{(il=t)===$i&&ma()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[D,z,F,M.injectEventPluginsByName,d,W,function(e){w(e,B)},Me,Le,zr,_,Xl,{current:!1}]}};Ss=(Os={findFiberByHostInstance:j,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);es=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},ts=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(a({},Os,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ye.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lr(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Ss?Ss(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Ps={default:xs},ks=Ps&&xs||Ps;e.exports=ks.default||ks},function(e,t,r){"use strict";e.exports=r(20)},function(e,t,r){"use strict";
  44. /** @license React v0.15.0
  45. * scheduler.production.min.js
  46. *
  47. * Copyright (c) Facebook, Inc. and its affiliates.
  48. *
  49. * This source code is licensed under the MIT license found in the
  50. * LICENSE file in the root directory of this source tree.
  51. */Object.defineProperty(t,"__esModule",{value:!0});var n=void 0,a=void 0,o=void 0,i=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,p=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(p,0),e}};t.unstable_now=function(){return Date.now()},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(p,0))},a=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var u=window.performance,d=window.Date,h=window.setTimeout,b=window.clearTimeout,m=window.requestAnimationFrame,f=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"==typeof u&&"function"==typeof u.now?function(){return u.now()}:function(){return d.now()};var g=!1,v=null,y=-1,C=-1,E=33.33,O=-1,S=-1,x=0,P=!1;i=function(){return t.unstable_now()>=x},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(E=Math.floor(1e3/e),P=!0):(E=33.33,P=!1)};var k=function(){if(null!==v){var e=t.unstable_now(),r=0<x-e;try{v(r,e)||(v=null)}catch(e){throw T.postMessage(null),e}}},w=new MessageChannel,T=w.port2;w.port1.onmessage=k;var N=function(e){if(null===v)S=O=-1,g=!1;else{g=!0,m((function(e){b(y),N(e)}));var r=function(){x=t.unstable_now()+E/2,k(),y=h(r,3*E)};if(y=h(r,3*E),-1!==O&&.1<e-O){var n=e-O;!P&&-1!==S&&n<E&&S<E&&(8.33>(E=n<S?S:n)&&(E=8.33)),S=n}O=e,x=e+E,T.postMessage(null)}};n=function(e){v=e,g||(g=!0,m((function(e){N(e)})))},a=function(e,r){C=h((function(){e(t.unstable_now())}),r)},o=function(){b(C),C=-1}}var _=null,M=null,L=null,R=3,A=!1,I=!1,j=!1;function D(e,t){var r=e.next;if(r===e)_=null;else{e===_&&(_=r);var n=e.previous;n.next=r,r.previous=n}e.next=e.previous=null,r=e.callback,n=R;var a=L;R=e.priorityLevel,L=e;try{var o=e.expirationTime<=t;switch(R){case 1:var i=r(o);break;case 2:case 3:case 4:i=r(o);break;case 5:i=r(o)}}catch(e){throw e}finally{R=n,L=a}if("function"==typeof i)if(t=e.expirationTime,e.callback=i,null===_)_=e.next=e.previous=e;else{i=null,o=_;do{if(t<=o.expirationTime){i=o;break}o=o.next}while(o!==_);null===i?i=_:i===_&&(_=e),(t=i.previous).next=i.previous=e,e.next=i,e.previous=t}}function z(e){if(null!==M&&M.startTime<=e)do{var t=M,r=t.next;if(t===r)M=null;else{M=r;var n=t.previous;n.next=r,r.previous=n}t.next=t.previous=null,H(t,t.expirationTime)}while(null!==M&&M.startTime<=e)}function F(e){j=!1,z(e),I||(null!==_?(I=!0,n(U)):null!==M&&a(F,M.startTime-e))}function U(e,r){I=!1,j&&(j=!1,o()),z(r),A=!0;try{if(e){if(null!==_)do{D(_,r),z(r=t.unstable_now())}while(null!==_&&!i())}else for(;null!==_&&_.expirationTime<=r;)D(_,r),z(r=t.unstable_now());return null!==_||(null!==M&&a(F,M.startTime-r),!1)}finally{A=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function H(e,t){if(null===_)_=e.next=e.previous=e;else{var r=null,n=_;do{if(t<n.expirationTime){r=n;break}n=n.next}while(n!==_);null===r?r=_:r===_&&(_=e),(t=r.previous).next=r.previous=e,e.next=r,e.previous=t}}var G=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=R;R=e;try{return t()}finally{R=r}},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var r=R;R=t;try{return e()}finally{R=r}},t.unstable_scheduleCallback=function(e,r,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:V(e)}else i=V(e),s=l;if(e={callback:r,priorityLevel:e,startTime:s,expirationTime:i=s+i,next:null,previous:null},s>l){if(i=s,null===M)M=e.next=e.previous=e;else{r=null;var c=M;do{if(i<c.startTime){r=c;break}c=c.next}while(c!==M);null===r?r=M:r===M&&(M=e),(i=r.previous).next=r.previous=e,e.next=r,e.previous=i}null===_&&M===e&&(j?o():j=!0,a(F,s-l))}else H(e,i),I||A||(I=!0,n(U));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===_?_=null:e===M&&(M=null);else{e===_?_=t:e===M&&(M=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=R;return function(){var r=R;R=t;try{return e.apply(this,arguments)}finally{R=r}}},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_shouldYield=function(){var e=t.unstable_now();return z(e),null!==L&&null!==_&&_.startTime<=e&&_.expirationTime<L.expirationTime||i()},t.unstable_requestPaint=G,t.unstable_continueExecution=function(){I||A||(I=!0,n(U))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return _}},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(a.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(22),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(9))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,a,o,i,l,s=1,c={},p=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){b(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){b(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(a=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){b(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):n=function(e){setTimeout(b,0,e)}:(i="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&b(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),n=function(t){e.postMessage(i+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var a={callback:e,args:t};return c[s]=a,n(s),s++},d.clearImmediate=h}function h(e){delete c[e]}function b(e){if(p)setTimeout(b,0,e);else{var t=c[e];if(t){p=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{h(e),p=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(9),r(23))},function(e,t){var r,n,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],p=!1,u=-1;function d(){p&&s&&(p=!1,s.length?c=s.concat(c):u=-1,c.length&&h())}function h(){if(!p){var e=l(d);p=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,p=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new b(e,t)),1!==c.length||p||l(h)},b.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(25);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(27);"string"==typeof n&&(n=[[e.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};r(12)(n,a);n.locals&&(e.exports=n.locals)},function(e,t,r){(e.exports=r(11)(!1)).push([e.i,'#inspector-host{position:absolute;right:0px;top:0px;bottom:0px}#__resizable_base__{display:none}#actionTabs{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:14px "Arial";overflow:hidden}#actionTabs .hoverIcon:hover{opacity:0.8}#actionTabs #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#actionTabs #header #logo{grid-column:1;width:24px;height:24px;display:flex;align-self:center;justify-self:center}#actionTabs #header #back{grid-column:1;display:grid;align-self:center;justify-self:center;cursor:pointer}#actionTabs #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#actionTabs #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#actionTabs #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs{display:grid;grid-row:2;grid-template-rows:40px 1fr;font:14px "Arial";overflow:hidden}#actionTabs .tabs .labels{grid-row:1;display:flex;align-items:center;justify-items:center;border-bottom:1px solid #ffffff;margin:0;padding:0}#actionTabs .tabs .labels .label{font-size:24px;color:white;width:40px;display:flex;align-content:center;justify-content:center;border:1px solid transparent;border-bottom:none;background:#333333;padding:5px;height:28px;cursor:pointer}#actionTabs .tabs .labels .label.active{border-color:#ffffff;border-bottom:2px solid transparent;margin-bottom:-2px}#actionTabs .tabs .panes{grid-row:2;display:grid;grid-template-rows:100%;overflow:hidden}#actionTabs .tabs .panes .infoMessage{opacity:0.5;color:white;margin:15px 5px 0px 5px}#actionTabs .tabs .panes .pane{color:white;overflow-x:hidden;overflow-y:auto;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#actionTabs .tabs .panes .pane .underline{border-bottom:0.5px solid rgba(255,255,255,0.5)}#actionTabs .tabs .panes .pane .textureLinkLine{display:grid;grid-template-columns:auto 1fr}#actionTabs .tabs .panes .pane .textureLinkLine .debug{grid-column:1;margin-left:5px;margin-right:5px;display:grid;align-items:center;justify-items:center;cursor:pointer;opacity:0.5}#actionTabs .tabs .panes .pane .textureLinkLine .debug.selected{opacity:1.0}#actionTabs .tabs .panes .pane .textureLinkLine .textLine{grid-column:2}#actionTabs .tabs .panes .pane .messageLine{text-align:center;font-size:12px;font-style:italic;opacity:0.6}#actionTabs .tabs .panes .pane .iconMessageLine{padding-left:2px;height:30px;display:grid;grid-template-columns:30px 1fr}#actionTabs .tabs .panes .pane .iconMessageLine .icon{grid-column:1;display:grid;align-items:center;justify-items:center}#actionTabs .tabs .panes .pane .iconMessageLine .value{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .textLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .textLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .textLine .link-value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:6px;max-width:140px;text-decoration:underline;cursor:pointer}#actionTabs .tabs .panes .pane .textLine .value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:6px;max-width:200px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}#actionTabs .tabs .panes .pane .textLine .value.check{color:green}#actionTabs .tabs .panes .pane .textLine .value.uncheck{color:red}#actionTabs .tabs .panes .pane .textInputLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 120px}#actionTabs .tabs .panes .pane .textInputLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .textInputLine .value{display:flex;align-items:center;grid-column:2}#actionTabs .tabs .panes .pane .textInputLine .value input{width:110px}#actionTabs .tabs .panes .pane .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch}#actionTabs .tabs .panes .pane .buttonLine input[type="file"]{display:none}#actionTabs .tabs .panes .pane .buttonLine .file-upload{background:#222222;border:1px solid #337ab7;margin:0px 10px;color:white;padding:4px 5px;opacity:0.9;cursor:pointer;text-align:center}#actionTabs .tabs .panes .pane .buttonLine .file-upload:hover{opacity:1.0}#actionTabs .tabs .panes .pane .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:0.5 0.5}#actionTabs .tabs .panes .pane .buttonLine button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#actionTabs .tabs .panes .pane .buttonLine button:hover{opacity:1.0}#actionTabs .tabs .panes .pane .buttonLine button:active{background:#282828}#actionTabs .tabs .panes .pane .buttonLine button:focus{border:1px solid #337ab7;outline:0px}#actionTabs .tabs .panes .pane .radioLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 24px}#actionTabs .tabs .panes .pane .radioLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .radioLine .radioContainer{display:flex;align-items:center}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio{grid-column:2;display:none}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked+label:before{border-color:#337ab7}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked+label:after{transform:scale(1)}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio{display:inline-block;height:14px;position:relative;padding:0 24px;margin-bottom:0;cursor:pointer;vertical-align:bottom}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before,#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after{position:absolute;content:\'\';border-radius:50%;transition:all .3s ease;transition-property:transform, border-color}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before{left:0px;top:0;width:16px;height:16px;border:2px solid white}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after{top:6px;left:6px;width:8px;height:8px;transform:scale(0);background:#337ab7}#actionTabs .tabs .panes .pane .vector3Line{padding-left:2px;display:grid}#actionTabs .tabs .panes .pane .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:30px}#actionTabs .tabs .panes .pane .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:0.8}#actionTabs .tabs .panes .pane .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#actionTabs .tabs .panes .pane .checkBoxLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .checkBoxLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl{position:relative;display:block;height:14px;width:34px;margin-right:5px;background:#898989;border-radius:100px;cursor:pointer;transition:all 0.3s ease}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:after{position:absolute;left:3px;top:2px;display:block;width:10px;height:10px;border-radius:100px;background:#fff;box-shadow:0px 3px 3px rgba(0,0,0,0.05);content:\'\';transition:all 0.15s ease}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:active:after{transform:scale(1.15, 0.85)}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label{background:#337ab7}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label:after{left:20px;background:#164975}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .hidden{display:none}#actionTabs .tabs .panes .pane .textureLine{display:grid;grid-template-rows:30px auto}#actionTabs .tabs .panes .pane .textureLine .control{margin-top:2px;grid-row:1;display:grid;grid-template-columns:1fr 40px 40px 40px 40px 40px 1fr}#actionTabs .tabs .panes .pane .textureLine .control .red{grid-column:2}#actionTabs .tabs .panes .pane .textureLine .control .green{grid-column:3}#actionTabs .tabs .panes .pane .textureLine .control .blue{grid-column:4}#actionTabs .tabs .panes .pane .textureLine .control .alpha{grid-column:5}#actionTabs .tabs .panes .pane .textureLine .control .all{grid-column:6}#actionTabs .tabs .panes .pane .textureLine .control3D{margin-top:2px;grid-row:1;display:grid;grid-template-columns:1fr 40px 40px 40px 40px 40px 40px 1fr}#actionTabs .tabs .panes .pane .textureLine .control3D .px{grid-column:2}#actionTabs .tabs .panes .pane .textureLine .control3D .nx{grid-column:3}#actionTabs .tabs .panes .pane .textureLine .control3D .py{grid-column:4}#actionTabs .tabs .panes .pane .textureLine .control3D .ny{grid-column:5}#actionTabs .tabs .panes .pane .textureLine .control3D .pz{grid-column:6}#actionTabs .tabs .panes .pane .textureLine .control3D .nz{grid-column:7}#actionTabs .tabs .panes .pane .textureLine .command{border:1px solid transparent;background:transparent;color:white}#actionTabs .tabs .panes .pane .textureLine .selected{border:1px solid #337ab7}#actionTabs .tabs .panes .pane .textureLine .preview{grid-row:2;display:grid;align-self:center;justify-self:center;height:256px;width:256px;margin-top:5px;margin-bottom:5px;border:2px solid rgba(255,255,255,0.4)}#actionTabs .tabs .panes .pane .gltf-extension-property{margin-left:30px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .floatLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 120px}#actionTabs .tabs .panes .pane .floatLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .floatLine .value{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .floatLine .value input{width:110px}#actionTabs .tabs .panes .pane .sliderLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .sliderLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .sliderLine .slider{grid-column:2;margin-right:5px;display:flex;align-items:center}#actionTabs .tabs .panes .pane .sliderLine .slider .range{-webkit-appearance:none;width:120px;height:6px;background:#d3d3d3;border-radius:5px;outline:none;opacity:0.7;-webkit-transition:.2s;transition:opacity .2s}#actionTabs .tabs .panes .pane .sliderLine .slider .range:hover{opacity:1}#actionTabs .tabs .panes .pane .sliderLine .slider .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .pane .sliderLine .slider .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line{padding-left:2px;display:grid}#actionTabs .tabs .panes .pane .color3Line .firstLine{height:30px;display:grid;grid-template-columns:1fr auto 20px 20px}#actionTabs .tabs .panes .pane .color3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type="color"]{-webkit-appearance:none;border:1px solid rgba(255,255,255,0.5);padding:0;width:30px;height:20px}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch-wrapper{padding:0}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch{border:none}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input{margin-right:5px}#actionTabs .tabs .panes .pane .color3Line .firstLine .copy{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line .firstLine .expand{grid-column:4;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#actionTabs .tabs .panes .pane .listLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .listLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .listLine .options{grid-column:2;display:flex;align-items:center;margin-right:5px}#actionTabs .tabs .panes .pane .listLine .options select{width:115px}#actionTabs .tabs .panes .pane .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#actionTabs .tabs .panes .pane .paneContainer .paneList{border-left:3px solid transparent}#actionTabs .tabs .panes .pane .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,0.8)}#actionTabs .tabs .panes .pane .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;transition:opacity 250ms;pointer-events:none}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var r=t.protocol+"//"+t.host,n=r+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(a=0===o.indexOf("//")?o:0===o.indexOf("/")?r+o:n+o.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},function(e,t,r){var n=r(30);"string"==typeof n&&(n=[[e.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};r(12)(n,a);n.locals&&(e.exports=n.locals)},function(e,t,r){(e.exports=r(11)(!1)).push([e.i,'#scene-explorer-host{position:absolute;left:0px;top:0px;bottom:0px}#scene-explorer-host:focus{outline:none}#__resizable_base__{display:none}.context-menu{background:#222222}.context-menu .react-contextmenu-item{padding:10px;cursor:pointer}.context-menu .react-contextmenu-item:hover{background:#555555}.react-contextmenu.context-menu.react-contextmenu--visible{z-index:99;transform:scale(1)}#sceneExplorer{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:14px "Arial"}#sceneExplorer:focus{outline:none}#sceneExplorer #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#sceneExplorer #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#sceneExplorer #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#sceneExplorer #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#sceneExplorer #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer #tree{grid-row:2;overflow-x:hidden;overflow-y:auto}#sceneExplorer .filter{display:flex;align-items:stretch}#sceneExplorer .filter input{width:100%;margin:10px 40px 5px 40px;display:block;border:none;padding:0;border-bottom:solid 1px #337ab7;background:linear-gradient(to bottom, rgba(255,255,255,0) 96%, #337ab7 4%);background-position:-1000px 0;background-size:1000px 100%;background-repeat:no-repeat;color:white}#sceneExplorer .filter input::placeholder{color:lightgray}#sceneExplorer .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#sceneExplorer .groupContainer{margin-left:0px;color:white;margin-top:0px;margin-bottom:0px;height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-self:center;display:grid;align-items:center}#sceneExplorer .groupContainer:hover{background:#444444}#sceneExplorer .groupContainer .expandableHeader{display:grid;grid-template-columns:1fr 20px}#sceneExplorer .groupContainer .expandableHeader .text{grid-column:1;display:grid;grid-template-columns:20px 1fr}#sceneExplorer .groupContainer .expandableHeader .text .arrow{grid-column:1;margin-left:0px;color:white;cursor:pointer;display:inline-block;margin-right:6px;opacity:0.5}#sceneExplorer .groupContainer .expandableHeader .text .text-value{grid-column:2;display:flex;align-items:center}#sceneExplorer .groupContainer .expandableHeader .expandAll{opacity:0.5;grid-column:2;margin-right:10px}#sceneExplorer .icon{display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer .itemContainer{margin-left:0px;color:white;margin-top:0px;margin-bottom:0px;height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:grid;grid-template-columns:20px 1fr}#sceneExplorer .itemContainer:hover{background:#444444}#sceneExplorer .itemContainer.selected{background:#bbbbbb;color:black}#sceneExplorer .itemContainer .isNotActive{opacity:0.3}#sceneExplorer .itemContainer .arrow{grid-column:1;color:white;opacity:0.6}#sceneExplorer .itemContainer .popup{width:200px;visibility:hidden;background-color:#444444;color:#fff;border:1px solid rgba(255,255,255,0.5);position:absolute;z-index:1;margin-left:-180px;box-sizing:border-box}#sceneExplorer .itemContainer .popup.show{visibility:visible}#sceneExplorer .itemContainer .popup:focus{outline:none}#sceneExplorer .itemContainer .popup .popupMenu{padding:6px 5px 5px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:18px}#sceneExplorer .itemContainer .popup .popupMenu:hover{background:white;color:#333333}#sceneExplorer .itemContainer .sceneNode{grid-column:2;margin-left:-10px;display:grid;grid-template-columns:1fr 20px 20px 20px 20px 10px 20px 20px auto 5px;align-items:center;cursor:pointer}#sceneExplorer .itemContainer .sceneNode .sceneTitle{grid-column:1;margin-right:5px;display:flex;align-items:center;height:24px}#sceneExplorer .itemContainer .sceneNode .translation{grid-column:2;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .translation.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .rotation{grid-column:3;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .rotation.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .scaling{grid-column:4;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .scaling.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .bounding{grid-column:5;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .bounding.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .separator{grid-column:6;margin-left:5px;width:5px;display:flex;align-items:center;height:18px;border-left:solid 1px #337ab7}#sceneExplorer .itemContainer .sceneNode .pickingMode{grid-column:7;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .pickingMode.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .refresh{grid-column:8}#sceneExplorer .itemContainer .sceneNode .extensions{width:20px;grid-column:9}#sceneExplorer .itemContainer .animationGroupTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .animationGroupTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .meshTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .meshTools .bounding-box{grid-column:2;opacity:0.5}#sceneExplorer .itemContainer .meshTools .bounding-box.selected{opacity:1}#sceneExplorer .itemContainer .meshTools .visibility{grid-column:3}#sceneExplorer .itemContainer .meshTools .extensions{width:20px;grid-column:4}#sceneExplorer .itemContainer .cameraTools{grid-column:2;display:grid;grid-template-columns:1fr 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .cameraTools .activeCamera{grid-column:2}#sceneExplorer .itemContainer .cameraTools .extensions{width:20px;grid-column:3}#sceneExplorer .itemContainer .lightTools{grid-column:2;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .lightTools .enableLight{grid-column:2}#sceneExplorer .itemContainer .lightTools .extensions{width:20px;grid-column:3}#sceneExplorer .itemContainer .materialTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .materialTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .postProcessTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .postProcessTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .renderingPipelineTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .renderingPipelineTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .textureTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .textureTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .adtextureTools{grid-column:2;display:grid;grid-template-columns:1fr 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .adtextureTools .pickingMode{grid-column:2;opacity:0.6}#sceneExplorer .itemContainer .adtextureTools .pickingMode.selected{opacity:1}#sceneExplorer .itemContainer .adtextureTools .extensions{width:20px;grid-column:3}#sceneExplorer .itemContainer .controlTools{grid-column:2;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .controlTools .highlight{grid-column:2}#sceneExplorer .itemContainer .controlTools .visibility{grid-column:3}#sceneExplorer .itemContainer .controlTools .extensions{width:20px;grid-column:4}#sceneExplorer .itemContainer .transformNodeTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .transformNodeTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .skeletonTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .skeletonTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .title{grid-column:1;background:transparent;white-space:nowrap;overflow:hidden;min-width:0;margin-right:5px;display:grid;align-items:center;grid-template-columns:25px 1fr;height:24px;cursor:pointer}#sceneExplorer .itemContainer .title .titleIcon{grid-column:1;display:grid;align-items:center;justify-items:center}#sceneExplorer .itemContainer .title .titleText{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n',""])},function(e,t,r){"use strict";r.r(t);var n=window,a=n.document,o="addEventListener",i="removeEventListener",l="getBoundingClientRect",s="_a",c="_b",p="_c",u="horizontal",d=function(){return!1},h=n.attachEvent&&!n[o],b=["","-webkit-","-moz-","-o-"].filter((function(e){var t=a.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",m=function(e){return"string"==typeof e||e instanceof String},f=function(e){if(m(e)){var t=a.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},g=function(e,t,r){var n=e[t];return void 0!==n?n:r},v=function(e,t,r,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(r){if("start"===n)return 0;if("center"===n)return e/2}return e},y=function(e,t){var r=a.createElement("div");return r.className="gutter gutter-"+t,r},C=function(e,t,r){var n={};return m(t)?n[e]=t:n[e]=h?t+"%":b+"("+t+"% - "+r+"px)",n},E=function(e,t){var r;return(r={})[e]=t+"px",r};t.default=function(e,t){void 0===t&&(t={});var r,b,m,O,S,x,P=e;Array.from&&(P=Array.from(P));var k=f(P[0]).parentNode,w=getComputedStyle?getComputedStyle(k):null,T=w?w.flexDirection:null,N=g(t,"sizes")||P.map((function(){return 100/P.length})),_=g(t,"minSize",100),M=Array.isArray(_)?_:P.map((function(){return _})),L=g(t,"expandToMin",!1),R=g(t,"gutterSize",10),A=g(t,"gutterAlign","center"),I=g(t,"snapOffset",30),j=g(t,"dragInterval",1),D=g(t,"direction",u),z=g(t,"cursor",D===u?"col-resize":"row-resize"),F=g(t,"gutter",y),U=g(t,"elementStyle",C),V=g(t,"gutterStyle",E);function H(e,t,n,a){var o=U(r,t,n,a);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function G(){return x.map((function(e){return e.size}))}function B(e){return"touches"in e?e.touches[0][b]:e[b]}function W(e){var t=x[this.a],r=x[this.b],n=t.size+r.size;t.size=e/this.size*n,r.size=n-e/this.size*n,H(t.element,t.size,this[c],t.i),H(r.element,r.size,this[p],r.i)}function Y(e){var r,n=x[this.a],a=x[this.b];this.dragging&&(r=B(e)-this.start+(this[c]-this.dragOffset),j>1&&(r=Math.round(r/j)*j),r<=n.minSize+I+this[c]?r=n.minSize+this[c]:r>=this.size-(a.minSize+I+this[p])&&(r=this.size-(a.minSize+this[p])),W.call(this,r),g(t,"onDrag",d)())}function X(){var e=x[this.a].element,t=x[this.b].element,n=e[l](),a=t[l]();this.size=n[r]+a[r]+this[c]+this[p],this.start=n[m],this.end=n[O]}function q(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var r=e[S];return 0===r?null:r-=D===u?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(M.reduce((function(e,t){return e+t}),0)>t)return e;var r=0,n=[],a=e.map((function(a,o){var i=t*a/100,l=v(R,0===o,o===e.length-1,A),s=M[o]+l;return i<s?(r+=s-i,n.push(0),s):(n.push(i-s),i)}));return 0===r?e:a.map((function(e,a){var o=e;if(r>0&&n[a]-r>0){var i=Math.min(r,n[a]-r);r-=i,o=e-i}return o/t*100}))}function K(){var e=x[this.a].element,r=x[this.b].element;this.dragging&&g(t,"onDragEnd",d)(G()),this.dragging=!1,n[i]("mouseup",this.stop),n[i]("touchend",this.stop),n[i]("touchcancel",this.stop),n[i]("mousemove",this.move),n[i]("touchmove",this.move),this.stop=null,this.move=null,e[i]("selectstart",d),e[i]("dragstart",d),r[i]("selectstart",d),r[i]("dragstart",d),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",a.body.style.cursor=""}function Q(e){if(!("button"in e&&0!==e.button)){var r=x[this.a].element,i=x[this.b].element;this.dragging||g(t,"onDragStart",d)(G()),e.preventDefault(),this.dragging=!0,this.move=Y.bind(this),this.stop=K.bind(this),n[o]("mouseup",this.stop),n[o]("touchend",this.stop),n[o]("touchcancel",this.stop),n[o]("mousemove",this.move),n[o]("touchmove",this.move),r[o]("selectstart",d),r[o]("dragstart",d),i[o]("selectstart",d),i[o]("dragstart",d),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",this.gutter.style.cursor=z,this.parent.style.cursor=z,a.body.style.cursor=z,X.call(this),this.dragOffset=B(e)-this.end}}D===u?(r="width",b="clientX",m="left",O="right",S="clientWidth"):"vertical"===D&&(r="height",b="clientY",m="top",O="bottom",S="clientHeight"),N=q(N);var $=[];function Z(e){var t=e.i===$.length,r=t?$[e.i-1]:$[e.i];X.call(r);var n=t?r.size-e.minSize-r[p]:e.minSize+r[c];W.call(r,n)}function J(e){var t=q(e);t.forEach((function(e,r){if(r>0){var n=$[r-1],a=x[n.a],o=x[n.b];a.size=t[r-1],o.size=e,H(a.element,a.size,n[c],a.i),H(o.element,o.size,n[p],o.i)}}))}function ee(e,t){$.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[i]("mousedown",n[s]),n.gutter[i]("touchstart",n[s])),!0!==e){var a=U(r,n.a.size,n[c]);Object.keys(a).forEach((function(e){x[n.a].element.style[e]="",x[n.b].element.style[e]=""}))}}))}return(x=P.map((function(e,t){var n,a={element:f(e),size:N[t],minSize:M[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:D,parent:k})[c]=v(R,t-1==0,!1,A),n[p]=v(R,!1,t===P.length-1,A),"row-reverse"===T||"column-reverse"===T)){var i=n.a;n.a=n.b,n.b=i}if(!h&&t>0){var l=F(t,D,a.element);!function(e,t,n){var a=V(r,t,n);Object.keys(a).forEach((function(t){e.style[t]=a[t]}))}(l,R,t),n[s]=Q.bind(n),l[o]("mousedown",n[s]),l[o]("touchstart",n[s]),k.insertBefore(l,a.element),n.gutter=l}return H(a.element,a.size,v(R,0===t,t===P.length-1,A),t),t>0&&$.push(n),a}))).forEach((function(e){var t=e.element[l]()[r];t<e.minSize&&(L?Z(e):e.minSize=t)})),h?{setSizes:J,destroy:ee}:{setSizes:J,getSizes:G,collapse:function(e){Z(x[e])},destroy:ee,parent:k,pairs:$}}},function(e,t,r){var n=r(33);"string"==typeof n&&(n=[[e.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};r(12)(n,a);n.locals&&(e.exports=n.locals)},function(e,t,r){(e.exports=r(11)(!1)).push([e.i,'#embed-host{position:absolute;right:0px;top:0px;bottom:0px}#__resizable_base__{display:none}#embed{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:30px 1fr;font:14px "Arial";overflow:hidden}#embed #header{font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#embed #header #logo{grid-column:1;width:24px;height:24px;display:flex;align-self:center;justify-self:center}#embed #header #back{grid-column:1;display:grid;align-self:center;justify-self:center;cursor:pointer}#embed #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#embed #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#embed #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#embed #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#embed #split{grid-row:2;overflow:hidden}#embed #split.splitPopup{display:grid;grid-template-rows:300px 2px 1fr}#embed #split.splitPopup .panes{margin-bottom:1px}#embed #split #topPart{grid-row:1;overflow:hidden;display:grid;grid-auto-rows:100%}#embed #split #separator{grid-row:2;background:white;opacity:0.1}#embed #split #bottomPart{overflow:hidden;grid-row:3;display:grid;grid-auto-rows:100%}#embed #split .gutter.gutter-vertical{background-image:none;background:#444444;cursor:row-resize}\n',""])}])}));