!(function(e,t){var n=[],r=e.BABYLON||this.BABYLON;"object"==typeof exports&&"object"==typeof module?(r=r||require("babylonjs"),module.exports=t(r)):"function"==typeof define&&define.amd?(n.push("babylonjs"),define("babylonjs-inspector",n,t)):"object"==typeof exports?(r=r||require("babylonjs"),exports["babylonjs-inspector"]=t(r)):e.INSPECTOR=t(r)})(this,(function(e){e=e||this.BABYLON;var t=(function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)})([(function(e,t,n){n(1),e.exports=n(5)}),(function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)}),(function(e,t,n){t=e.exports=n(3)(),t.push([e.i,"@import url(https://use.fontawesome.com/releases/v5.0.13/css/all.css);",""]),t.push([e.i,"@import url(https://fonts.googleapis.com/css?family=Inconsolata);",""]),t.push([e.i,'.insp-wrapper {\n user-select: none;\n display: flex;\n font-size: 0.9em;\n font-family: "Inconsolata", sans-serif;\n background-color: #242424;\n /**\r\n * A tool contained in the tree panel (available for each item of the tree)\r\n */\n /**\r\n * The toolbar contains : \r\n * - a refresh tool - refresh the whole panel\r\n * - a popup tool - Open the inspector in a new panel\r\n * ...\r\n */\n /*\r\n* 1. Set to 0 height and width, and remove border for a slider without a thumb\r\n*/ }\n .insp-wrapper .gutter {\n background-color: #2c2c2c; }\n .insp-wrapper .gutter.gutter-vertical:not(.blocked) {\n cursor: ns-resize; }\n .insp-wrapper .gutter.gutter-horizontal:not(.blocked) {\n cursor: ew-resize; }\n .insp-wrapper .insp-right-panel {\n width: 750px;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n flex-shrink: 0; }\n .insp-wrapper .insp-right-panel.popupmode {\n width: 100% !important; }\n .insp-wrapper .insp-right-panel .top-panel {\n width: 100%;\n height: 100%;\n position: relative;\n background-color: #242424;\n color: #ccc;\n font-size: 1em; }\n .insp-wrapper .insp-right-panel .top-panel .tab-panel-content {\n width: 100%;\n height: calc(100% - 50px); }\n .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel {\n position: absolute;\n z-index: 10;\n top: 50px;\n right: 0;\n width: 100px;\n display: none;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n border: 1px solid #454545;\n background-color: #242424; }\n .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab {\n height: 25px;\n width: 100%;\n line-height: 25px;\n text-align: center;\n background-color: #2c2c2c;\n cursor: pointer; }\n .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:hover {\n background-color: #383838; }\n .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:active {\n background-color: #454545; }\n .insp-wrapper .tooltip {\n position: absolute;\n top: 50px;\n right: 0;\n color: #f29766;\n display: none;\n z-index: 4;\n font-family: "Inconsolata", sans-serif;\n padding: 2px;\n background-color: #242424;\n border: 1px solid #454545; }\n .insp-wrapper .treeTool {\n margin: 3px 8px 3px 3px;\n cursor: pointer;\n position: relative; }\n .insp-wrapper .treeTool:hover {\n color: #5db0d7; }\n .insp-wrapper .treeTool.active {\n color: #5db0d7; }\n .insp-wrapper .tab-panel {\n height: 100%; }\n .insp-wrapper .tab-panel.searchable {\n height: calc(100% - 30px - 10px); }\n .insp-wrapper .tab-panel .texture-image {\n max-height: 400px; }\n .insp-wrapper .tab-panel .scene-actions {\n overflow-y: auto;\n padding-left: 5px; }\n .insp-wrapper .tab-panel .scene-actions .actions-title {\n font-size: 1.1em;\n padding-bottom: 10px;\n border-bottom: 1px solid #5db0d7;\n margin: 10px 0 10px 0; }\n .insp-wrapper .tab-panel .scene-actions .defaut-action, .insp-wrapper .tab-panel .scene-actions .action-radio, .insp-wrapper .tab-panel .scene-actions .action {\n height: 20px;\n line-height: 20px;\n width: 100%;\n cursor: pointer; }\n .insp-wrapper .tab-panel .scene-actions .defaut-action:hover, .insp-wrapper .tab-panel .scene-actions .action-radio:hover, .insp-wrapper .tab-panel .scene-actions .action:hover {\n background-color: #2c2c2c; }\n .insp-wrapper .tab-panel .scene-actions .defaut-action:active, .insp-wrapper .tab-panel .scene-actions .action-radio:active, .insp-wrapper .tab-panel .scene-actions .action:active {\n background-color: #383838; }\n .insp-wrapper .tab-panel .scene-actions .action-radio:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F111";\n margin-right: 10px; }\n .insp-wrapper .tab-panel .scene-actions .action-radio.active:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F192";\n color: #5db0d7;\n margin-right: 10px; }\n .insp-wrapper .tab-panel .scene-actions .action:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F0C8";\n margin-right: 10px; }\n .insp-wrapper .tab-panel .scene-actions .action.active:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F14A";\n color: #5db0d7;\n margin-right: 10px; }\n .insp-wrapper .tab-panel .shader-tree-panel {\n height: 30px; }\n .insp-wrapper .tab-panel .shader-tree-panel select {\n height: 30px;\n background-color: transparent;\n color: #ccc;\n height: 30px;\n width: 100%;\n max-width: 300px;\n padding-left: 15px;\n border: 1px solid #2c2c2c;\n outline: 1px solid #454545; }\n .insp-wrapper .tab-panel .shader-tree-panel select option {\n padding: 5px;\n color: gray; }\n .insp-wrapper .tab-panel .shader-panel {\n min-height: 100px;\n user-select: text;\n box-sizing: border-box;\n padding: 0 15px; }\n .insp-wrapper .tab-panel .shader-panel pre {\n margin: 0;\n white-space: pre-wrap; }\n .insp-wrapper .tab-panel .shader-panel pre code {\n background-color: #242424 !important;\n padding: 0;\n margin: 0; }\n .insp-wrapper .tab-panel .shader-panel .shader-panel-title {\n height: 25px;\n border-bottom: 1px solid #383838;\n text-transform: uppercase;\n line-height: 25px;\n margin-bottom: 10px; }\n .insp-wrapper .tab-panel .console-panel {\n min-height: 100px;\n user-select: text;\n box-sizing: border-box;\n padding: 0 15px; }\n .insp-wrapper .tab-panel .console-panel .console-panel-title {\n height: 25px;\n border-bottom: 1px solid #383838;\n text-transform: uppercase;\n line-height: 25px;\n margin-bottom: 10px; }\n .insp-wrapper .tab-panel .console-panel .console-panel-content {\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(100% - 30px); }\n .insp-wrapper .tab-panel .console-panel .defaut-line, .insp-wrapper .tab-panel .console-panel .log, .insp-wrapper .tab-panel .console-panel .warn, .insp-wrapper .tab-panel .console-panel .error, .insp-wrapper .tab-panel .console-panel .object {\n word-wrap: break-word;\n padding: 3px 0 3px 5px; }\n .insp-wrapper .tab-panel .console-panel .caller {\n padding: 3px 0 3px 0;\n color: #349ccd; }\n .insp-wrapper .tab-panel .console-panel .log {\n color: white; }\n .insp-wrapper .tab-panel .console-panel .warn {\n color: orange; }\n .insp-wrapper .tab-panel .console-panel .error {\n color: orangered; }\n .insp-wrapper .tab-panel .console-panel .object {\n color: #5db0d7; }\n .insp-wrapper .tab-panel.stats-panel {\n overflow-y: auto; }\n .insp-wrapper .tab-panel .stats-fps {\n font-weight: 600;\n color: #f29766; }\n .insp-wrapper .tab-panel .stat-title1 {\n font-size: 1.1em;\n padding: 10px; }\n .insp-wrapper .tab-panel .stat-title2 {\n margin: 10px 0 10px 0;\n font-size: 1.05em;\n border-bottom: 1px solid #5db0d7;\n box-sizing: border-box; }\n .insp-wrapper .tab-panel .stat-label {\n display: inline-block;\n width: 80%;\n padding: 2px;\n background-color: #2c2c2c;\n border-bottom: 1px solid #242424;\n border-top: 1px solid #242424;\n height: 30px;\n line-height: 30px;\n box-sizing: border-box; }\n .insp-wrapper .tab-panel .stat-value {\n display: inline-block;\n width: 20%;\n padding: 2px;\n background-color: #2c2c2c;\n border-top: 1px solid #242424;\n border-bottom: 1px solid #242424;\n height: 30px;\n line-height: 30px;\n box-sizing: border-box; }\n .insp-wrapper .tab-panel .stat-infos {\n width: 100%;\n padding: 4px; }\n .insp-wrapper .tab-panel .gltf-actions {\n overflow-y: auto;\n padding-left: 5px; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-title {\n font-size: 1.1em;\n padding-bottom: 10px;\n border-bottom: 1px solid #5db0d7;\n margin: 10px 0 10px 0; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-action, .insp-wrapper .tab-panel .gltf-actions .gltf-checkbox {\n height: 20px;\n line-height: 20px;\n width: 100%;\n cursor: pointer;\n white-space: nowrap; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-action:hover, .insp-wrapper .tab-panel .gltf-actions .gltf-checkbox:hover {\n background-color: #2c2c2c; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-checkbox:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F0C8";\n margin-right: 10px; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-checkbox.active:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F14A";\n color: #5db0d7;\n margin-right: 10px; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-input {\n background-color: #2c2c2c;\n border: none;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #b3b3b3;\n padding: 5px;\n margin: 0px 6px 0px 0; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-input:hover {\n background-color: #383838; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-button {\n background-color: #2c2c2c;\n border: none;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #ccc;\n padding: 5px 10px;\n margin: 0px 6px 0px 0; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-button:hover {\n background-color: #383838; }\n .insp-wrapper .tab-panel .gltf-actions .gltf-button:active {\n background-color: #454545; }\n .insp-wrapper .tab-panel.tools-panel {\n overflow-y: auto; }\n .insp-wrapper .tab-panel .tool-title1 {\n font-size: 1.1em;\n padding: 10px; }\n .insp-wrapper .tab-panel .tool-title2 {\n margin: 10px 0 10px 0;\n font-size: 1.05em;\n border-bottom: 1px solid #5db0d7;\n box-sizing: border-box; }\n .insp-wrapper .tab-panel .tool-label, .insp-wrapper .tab-panel .tool-label-line, .insp-wrapper .tab-panel .tool-label-error {\n background-color: #2c2c2c;\n border: none;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #b3b3b3;\n padding: 5px;\n margin: 0px 6px 0px 0; }\n .insp-wrapper .tab-panel .tool-label-line {\n width: 100%; }\n .insp-wrapper .tab-panel .tool-label-error {\n color: #fa371d;\n width: 100%;\n background-color: none; }\n .insp-wrapper .tab-panel .tool-value {\n display: inline-block;\n width: 25%;\n padding: 2px;\n background-color: #2c2c2c;\n border-top: 1px solid #242424;\n border-bottom: 1px solid #242424;\n height: 30px;\n line-height: 30px;\n box-sizing: border-box; }\n .insp-wrapper .tab-panel .tool-infos {\n width: 100%;\n padding: 4px; }\n .insp-wrapper .tab-panel .tool-input {\n background-color: #2c2c2c;\n border: none;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #ccc;\n padding: 5px 10px;\n margin: 0px 6px 0px 0;\n width: 100%;\n border-top: 1px solid #242424;\n border-bottom: 1px solid #242424;\n text-align: left; }\n .insp-wrapper .tab-panel .tool-input:hover {\n background-color: #383838;\n cursor: pointer; }\n .insp-wrapper .tab-panel .tool-input:active {\n background-color: #454545; }\n .insp-wrapper .property-type {\n color: #5db0d7; }\n .insp-wrapper .property-name, .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {\n color: #f29766; }\n .insp-wrapper .insp-tree {\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(50% - 50px - 30px); }\n .insp-wrapper .insp-tree .line {\n padding: 3px;\n cursor: pointer; }\n .insp-wrapper .insp-tree .line:hover {\n background-color: #2c2c2c; }\n .insp-wrapper .insp-tree .line.active {\n background-color: #454545; }\n .insp-wrapper .insp-tree .line.active .line-content {\n background-color: #242424; }\n .insp-wrapper .insp-tree .line.unfolded:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F107";\n font-weight: 900; }\n .insp-wrapper .insp-tree .line.folded:before {\n width: 1em;\n height: 1em;\n line-height: 1em;\n display: inline-block;\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\F105";\n font-weight: 900; }\n .insp-wrapper .insp-tree .line.unfolded.transformNode > span:first-of-type {\n color: #f29766; }\n .insp-wrapper .insp-tree .line.folded.transformNode > span:first-of-type {\n color: #f29766; }\n .insp-wrapper .insp-tree .line .line-content {\n padding-left: 15px; }\n .insp-wrapper .insp-tree .line .line-content:hover {\n background-color: #242424; }\n .insp-wrapper .insp-tree .line .line-content .line:hover:first-child {\n background-color: #383838; }\n .insp-wrapper .insp-tree .line_invisible {\n display: none; }\n .insp-wrapper .insp-details {\n background-color: #242424;\n overflow-y: auto;\n overflow-x: auto;\n color: #ccc;\n font-family: "Inconsolata", sans-serif; }\n .insp-wrapper .insp-details .details {\n padding-left: 5px; }\n .insp-wrapper .insp-details .base-row, .insp-wrapper .insp-details .row, .insp-wrapper .insp-details .header-row {\n display: flex;\n width: 100%; }\n .insp-wrapper .insp-details .base-row .base-property, .insp-wrapper .insp-details .row .base-property, .insp-wrapper .insp-details .header-row .base-property, .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name, .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {\n padding: 2px 0 2px 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {\n width: 35%; }\n .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {\n width: 59%;\n padding-left: 5px; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable, .insp-wrapper .insp-details .row .prop-value.clickable, .insp-wrapper .insp-details .header-row .prop-value.clickable {\n cursor: pointer; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable:hover, .insp-wrapper .insp-details .row .prop-value.clickable:hover, .insp-wrapper .insp-details .header-row .prop-value.clickable:hover {\n background-color: #383838; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable:after, .insp-wrapper .insp-details .row .prop-value.clickable:after, .insp-wrapper .insp-details .header-row .prop-value.clickable:after {\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\A0 \\A0 \\A0 \\F105";\n font-weight: 900; }\n .insp-wrapper .insp-details .row:nth-child(even) {\n background-color: #2c2c2c; }\n .insp-wrapper .insp-details .row.unfolded .prop-value.clickable:after {\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\A0 \\A0 \\A0 \\F107";\n font-weight: 900; }\n .insp-wrapper .insp-details .header-row {\n background-color: #2c2c2c;\n color: #ccc;\n width: 100%;\n max-width: 100%; }\n .insp-wrapper .insp-details .header-row > * {\n color: #ccc !important;\n padding: 5px 0 5px 5px !important;\n cursor: pointer; }\n .insp-wrapper .insp-details .header-row > *:hover {\n background-color: #383838; }\n .insp-wrapper .insp-details .header-row .header-col {\n display: flex;\n justify-content: space-between;\n align-items: center; }\n .insp-wrapper .insp-details .header-row .header-col .sort-direction {\n margin-right: 5px; }\n .insp-wrapper .insp-details .element-viewer, .insp-wrapper .insp-details .color-element, .insp-wrapper .insp-details .texture-element {\n position: relative;\n width: 10px;\n height: 10px;\n display: inline-block;\n margin-left: 5px; }\n .insp-wrapper .insp-details .color-element {\n width: 20px;\n height: 15px; }\n .insp-wrapper .insp-details .texture-element {\n color: #f29766;\n margin-left: 10px; }\n .insp-wrapper .insp-details .texture-element .texture-viewer {\n color: #ccc;\n position: absolute;\n z-index: 10;\n bottom: 0;\n right: 0;\n display: block;\n width: 150px;\n height: 150px;\n border: 1px solid #454545;\n background-color: #242424;\n transform: translateX(100%) translateY(100%);\n display: none;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center; }\n .insp-wrapper .insp-details .texture-element .texture-viewer .texture-viewer-img {\n margin: 10px 0 10px 0;\n max-width: 110px;\n max-height: 110px; }\n .insp-wrapper .tabbar {\n height: 50px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid #383838;\n width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n box-sizing: border-box; }\n .insp-wrapper .tabbar .tab {\n height: calc(50px - 2px);\n width: auto;\n padding: 0 10px 0 10px;\n color: #ccc;\n line-height: 50px;\n text-align: center;\n cursor: pointer;\n margin: 0 5px 0 5px;\n box-sizing: border-box; }\n .insp-wrapper .tabbar .tab:hover {\n border-bottom: 1px solid #f29766;\n background-color: #2c2c2c; }\n .insp-wrapper .tabbar .tab:active {\n background-color: #383838; }\n .insp-wrapper .tabbar .tab.active {\n border-bottom: 1px solid #f29766; }\n .insp-wrapper .tabbar .more-tabs {\n width: 50px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n position: relative;\n border-right: 1px solid #383838; }\n .insp-wrapper .tabbar .more-tabs:hover {\n background-color: #383838; }\n .insp-wrapper .tabbar .more-tabs:active {\n color: #f29766;\n background-color: #454545; }\n .insp-wrapper .tabbar .more-tabs.active {\n color: #f29766; }\n .insp-wrapper .toolbar {\n display: flex; }\n .insp-wrapper .toolbar .tool {\n width: 50px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n position: relative;\n border-right: 1px solid #383838; }\n .insp-wrapper .toolbar .tool:hover {\n background-color: #383838; }\n .insp-wrapper .toolbar .tool:active {\n color: #f29766;\n background-color: #454545; }\n .insp-wrapper .toolbar .tool.active {\n color: #f29766; }\n .insp-wrapper .searchbar {\n border: 1px solid #2c2c2c;\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n color: #b3b3b3; }\n .insp-wrapper .searchbar input {\n background-color: #242424;\n border: none;\n width: 100%;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #b3b3b3;\n padding: 3px 0 3px 10px;\n margin: 6px 0 6px 0; }\n .insp-wrapper input[type="range"] {\n margin: auto;\n -webkit-appearance: none;\n position: relative;\n overflow: hidden;\n height: 15px;\n width: 50%;\n cursor: pointer;\n border-radius: 0;\n /* iOS */ }\n .insp-wrapper ::-webkit-slider-runnable-track {\n background: #ddd; }\n .insp-wrapper ::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: 20px;\n /* 1 */\n height: 15px;\n /* 1 */\n background: #fff;\n box-shadow: -100vw 0 0 100vw dodgerblue;\n border: 0px solid #999;\n /* 1 */ }\n .insp-wrapper ::-moz-range-track {\n height: 15px;\n background: #ddd; }\n .insp-wrapper ::-moz-range-thumb {\n background: #fff;\n height: 15px;\n width: 20px;\n border: 0px solid #999;\n border-radius: 0 !important;\n box-shadow: -100vw 0 0 100vw dodgerblue;\n box-sizing: border-box; }\n .insp-wrapper ::-ms-fill-lower {\n background: dodgerblue; }\n .insp-wrapper ::-ms-thumb {\n background: #fff;\n border: 0px solid #999;\n height: 15px;\n width: 20px;\n box-sizing: border-box; }\n .insp-wrapper ::-ms-ticks-after {\n display: none; }\n .insp-wrapper ::-ms-ticks-before {\n display: none; }\n .insp-wrapper ::-ms-track {\n background: #ddd;\n color: transparent;\n height: 15px;\n border: none; }\n .insp-wrapper ::-ms-tooltip {\n display: none; }\n',""])}),(function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&y.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function p(e,t){var n,r,i;if(t.singleton){var p=b++;n=v||(v=a(t)),r=l.bind(null,n,p,!1),i=l.bind(null,n,p,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=u.bind(null,n),i=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=c.bind(null,n),i=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function u(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},d=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},_=d((function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())})),f=d((function(){return document.head||document.getElementsByTagName("head")[0]})),v=null,b=0,y=[];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||{},void 0===t.singleton&&(t.singleton=_()),void 0===t.insertAt&&(t.insertAt="bottom");var i=r(e);return n(i,t),function(e){for(var o=[],a=0;a=n.WINDOW.innerWidth&&(this._c2diwrapper.style.maxWidth=f-b+"px")}var y=this._getRelativeParent(c),m=y.clientWidth,g=y.clientHeight,w=f/m*100,x=v/g*100;this._c2diwrapper.style.width=w+"%",this._c2diwrapper.style.height=x+"%",c.style.position="static",c.style.width="100%",c.style.height="100%",c.style.paddingBottom="0",c.style.paddingLeft="0",c.style.paddingTop="0",c.style.paddingRight="0",c.style.margin="0",c.style.marginBottom="0",c.style.marginLeft="0",c.style.marginTop="0",c.style.marginRight="0",u&&u.replaceChild(this._c2diwrapper,c),this._c2diwrapper.appendChild(c);var d=t.Helpers.CreateDiv("insp-right-panel",this._c2diwrapper);this._parentElement||o([c,d],{direction:"horizontal",sizes:[75,25],onDrag:function(){t.Helpers.SEND_EVENT("resize"),l._tabbar&&l._tabbar.updateWidth()}}),this._buildInspector(d)}t.Helpers.SEND_EVENT("resize"),this._tabbar.updateWidth()}if(this.refresh(),p)for(var C=p.backgroundColor||"#242424",T=p.backgroundColorLighter||"#2c2c2c",P=p.backgroundColorLighter2||"#383838",E=p.backgroundColorLighter3||"#454545",L=p.color||"#ccc",O=p.colorTop||"#f29766",S=p.colorBot||"#5db0d7",D=n.DOCUMENT.querySelectorAll("style"),I=0;I0&&n.push(new t.BoundingBox(this)),n.push(new t.Info(this)),n},r.prototype.setVisible=function(e){this._obj.setEnabled(e),this._obj.isVisible=e},r.prototype.isVisible=function(){return this._obj.isEnabled()&&(void 0===this._obj.isVisible||this._obj.isVisible)},r.prototype.isBoxVisible=function(){return this._obj.showBoundingBox},r.prototype.setBoxVisible=function(e){return this._obj.showBoundingBox=e},r.prototype.debug=function(e){if(this._axesViewer||this._drawAxis(),!e&&this._axesViewer){this._obj.getScene().onBeforeRenderObservable.remove(this.onBeforeRenderObserver),this._axesViewer.dispose(),this._axesViewer=null}},r.prototype.getInfo=function(){return this._obj instanceof e.AbstractMesh?this._obj.getTotalVertices()+" vertices":"0 vertices"},r.prototype._drawAxis=function(){var t=this;this._obj.computeWorldMatrix();var n=new e.Vector3(1,0,0),r=new e.Vector3(0,1,0),i=new e.Vector3(0,0,1);this._axesViewer=new e.Debug.AxesViewer(this._obj.getScene());var o=this._obj;this.onBeforeRenderObserver=o.getScene().onBeforeRenderObservable.add((function(){var a=o.getWorldMatrix(),s=new e.Vector3(1,1,1);o instanceof e.AbstractMesh&&(s=o.getBoundingInfo().boundingBox.extendSizeWorld),t._axesViewer.scaleLines=2*Math.max(s.x,s.y,s.z),t._axesViewer.update(t._obj.position,e.Vector3.TransformNormal(n,a),e.Vector3.TransformNormal(r,a),e.Vector3.TransformNormal(i,a))}))},r})(t.Adapter);t.MeshAdapter=n})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(e){var t=(function(t){function n(e){var n=t.call(this)||this;return n._detailRows=[],n._sortDirection={},n._build(),e&&(n._detailRows=e,n.update()),n}return a(n,t),Object.defineProperty(n.prototype,"details",{set:function(t){this.clean(),this._addSearchBarDetails(),this._details=e.Helpers.CreateDiv("details",this._div),this._detailRows=t,this.update()},enumerable:!0,configurable:!0}),n.prototype._build=function(){this._div.className="insp-details",this._div.id="insp-details",this._createHeaderRow(),this._div.appendChild(this._headerRow)},n.prototype.update=function(e){this._sortDetails("name",1),e?(this.cleanRow(),this._addSearchDetails(e)):this._addDetails()},n.prototype._addSearchBarDetails=function(){var t=e.Helpers.CreateDiv("searchbar-details",this._div);this._searchDetails=new e.SearchBarDetails(this),t.appendChild(this._searchDetails.toHtml()),this._div.appendChild(t)},n.prototype.searchByName=function(e){for(var t=[],n=0,r=this._detailRows;n=0&&t.push(i)}this.update(t)},n.prototype._addDetails=function(){for(var e=0,t=this._detailRows;e0))return null;for(var i=0,o=r.children;i0){for(var o=new t.TreeItem(n,new t.GUIAdapter(e)),a=0,s=r;a0){for(var l=0,c=s;l1)this._refreshRateCounter--;else{for(var e=0,t=this._updatableProperties;e0,a=r.name.toLowerCase().indexOf(".env")>0;if(!i&&!a)return p.style.display="block",void(p.textContent="Please, select a dds or env file.");e.Tools.ReadFile(r,(function(t){var n=new Blob([t],{type:"octet/stream"}),r=URL.createObjectURL(n);i?(o._scene.environmentTexture=e.CubeTexture.CreateFromPrefilteredData(r,o._scene,".dds"),p.style.display="none"):o._scene.environmentTexture=new e.CubeTexture(r,o._scene,void 0,void 0,void 0,function(){p.style.display="none"},function(e){e&&(p.style.display="block",p.textContent=e)},void 0,void 0,".env")}),void 0,!0)},l.appendChild(c),o._scene.getEngine().premultipliedAlpha||(l=t.Helpers.CreateDiv(null,o._panel),c=t.Inspector.DOCUMENT.createElement("input"),c.value="Compress current texture to .env",c.className="tool-input",c.type="button",c.onclick=function(){if(!o._scene.environmentTexture)return p.style.display="block",void(p.textContent="You must load an environment texture first.");o._scene.activeCamera?e.EnvironmentTextureTools.CreateEnvTextureAsync(o._scene.environmentTexture).then((function(t){var n=new Blob([t],{type:"octet/stream"});e.Tools.Download(n,"environment.env"),p.style.display="none"})).catch((function(e){p.style.display="block",p.textContent=e})):(p.style.display="block",p.textContent="An active camera is required.")},l.appendChild(c)),o._panel.appendChild(p),a=t.Helpers.CreateDiv("tool-title2",o._panel),a.textContent="Capture";var l=t.Helpers.CreateDiv(null,o._panel),c=t.Inspector.DOCUMENT.createElement("input");return c.value="Take Screenshot",c.type="button",c.className="tool-input",c.onclick=function(){o._scene.activeCamera&&e.Tools.CreateScreenshot(o._scene.getEngine(),o._scene.activeCamera,{precision:.5})},l.appendChild(c),o}return a(r,n),r.prototype.dispose=function(){},r})(t.Tab);t.ToolsTab=n})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(t){var n=(function(n){function r(r,i){var o=n.call(this)||this;o._tabs=[],o._invisibleTabs=[],o._visibleTabs=[],o._inspector=r,o._tabs.push(new t.SceneTab(o,o._inspector)),o._tabs.push(new t.ConsoleTab(o,o._inspector)),o._tabs.push(new t.StatsTab(o,o._inspector)),o._meshTab=new t.MeshTab(o,o._inspector),o._tabs.push(new t.TextureTab(o,o._inspector)),o._tabs.push(o._meshTab),o._tabs.push(new t.LightTab(o,o._inspector)),o._tabs.push(new t.MaterialTab(o,o._inspector)),t.GLTFTab.IsSupported&&o._tabs.push(new t.GLTFTab(o,o._inspector)),e.GUI&&o._tabs.push(new t.GUITab(o,o._inspector)),o._tabs.push(new t.PhysicsTab(o,o._inspector)),o._tabs.push(new t.CameraTab(o,o._inspector)),o._tabs.push(new t.SoundTab(o,o._inspector)),o._tabs.push(new t.ToolsTab(o,o._inspector)),o._toolBar=new t.Toolbar(o._inspector),o._build(),(!i||i<0||i>=o._tabs.length)&&(i=0),o._tabs[i].active(!0);for(var a=0,s=o._tabs;a0&&t>e;){var n=this._visibleTabs.pop();if(!n)break;this._invisibleTabs.push(n),this._div.removeChild(n.toHtml()),t=this.getPixelWidth()+75}if(this._invisibleTabs.length>0&&t+750&&!this._div.contains(this._moreTabsIcon)&&this._div.appendChild(this._moreTabsIcon)}},r})(t.BasicElement);t.TabBar=n})(i||(i={}));var i;!(function(e){var t=(function(){function t(t,n,r,i,o){var a=this;this._inspector=i,this._elem=e.Inspector.DOCUMENT.createElement("i"),this._elem.className="tool "+t+" "+n,r.appendChild(this._elem),this._elem.addEventListener("click",(function(e){a.action()})),new e.Tooltip(this._elem,o)}return t.prototype.toHtml=function(){return this._elem},t.prototype.getPixelWidth=function(){var t=e.Inspector.WINDOW.getComputedStyle(this._elem);if(!t.marginLeft||!t.marginRight)return 0;var n=parseFloat(t.marginLeft.substr(0,t.marginLeft.length-2))||0,r=parseFloat(t.marginRight.substr(0,t.marginRight.length-2))||0;return(this._elem.clientWidth||0)+n+r},t.prototype._updateIcon=function(e){this._elem.className="tool fa "+e},t})();e.AbstractTool=t})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(e){var t=(function(t){function n(e,n){var r=t.call(this,"fa","fa-pause",e,n,"Pause the automatic update of properties")||this;return r._isPause=!1,r}return a(n,t),n.prototype.action=function(){this._isPause?(e.Scheduler.getInstance().pause=!1,this._updateIcon("fa-pause")):(e.Scheduler.getInstance().pause=!0,this._updateIcon("fa-play")),this._isPause=!this._isPause},n})(e.AbstractTool);e.PauseScheduleTool=t})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(e){var t=(function(e){function t(t,n){var r=e.call(this,"fa","fa-mouse-pointer",t,n,"Select a mesh in the scene")||this;return r._isActive=!1,r._pickHandler=r._pickMesh.bind(r),r}return a(t,e),t.prototype.action=function(){if(this._isActive)this._deactivate();else{this.toHtml().classList.add("active");this._inspector.scene.getEngine().getRenderingCanvas().addEventListener("click",this._pickHandler),this._isActive=!0}},t.prototype._deactivate=function(){this.toHtml().classList.remove("active"),this._inspector.scene.getEngine().getRenderingCanvas().removeEventListener("click",this._pickHandler),this._isActive=!1},t.prototype._pickMesh=function(e){var t=this._updatePointerPosition(e),n=this._inspector.scene.pick(t.x,t.y,(function(e){return!0}));n&&n.pickedMesh&&this._inspector.displayObjectDetails(n.pickedMesh),this._deactivate()},t.prototype._updatePointerPosition=function(e){var t=this._inspector.scene.getEngine().getRenderingCanvasClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t})(e.AbstractTool);e.PickTool=t})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(e){var t=(function(e){function t(t,n){return e.call(this,"fas","fa-external-link-alt",t,n,"Open the inspector in a popup")||this}return a(t,e),t.prototype.action=function(){this._inspector.openPopup()},t})(e.AbstractTool);e.PopupTool=t})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(e){var t=(function(e){function t(t,n){return e.call(this,"fa","fa-sync",t,n,"Refresh the current tab")||this}return a(t,e),t.prototype.action=function(){this._inspector.refresh()},t})(e.AbstractTool);e.RefreshTool=t})(i||(i={}));var i,a=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}})();!(function(t){var n=(function(n){function r(e,t){var r=n.call(this,"fa","fa-tags",e,t,"Display mesh names on the canvas")||this;return r._isDisplayed=!1,r._advancedTexture=null,r._labelInitialized=!1,r._scene=null,r._guiLoaded=!1,r._scene=t.scene,r}return a(r,n),r.prototype.dispose=function(){this._advancedTexture&&this._advancedTexture.dispose()},r.prototype._checkGUILoaded=function(){return!0===this._guiLoaded||(e.GUI&&(this._guiLoaded=!0),this._guiLoaded)},r.prototype._initializeLabels=function(){var t=this;if(!this._labelInitialized&&this._scene&&this._checkGUILoaded()){this._advancedTexture=e.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");for(var n=0,r=this._scene.meshes;n0){for(var e=0,t=this.children;e0){for(var e=0,t=this.children;e0&&(this._div.classList.contains("folded")||this._div.classList.contains("unfolded")||this._div.classList.add("folded")),this.fold()},r.prototype._addEvent=function(){var e=this;this._div.addEventListener("click",(function(t){e._tab.select(e),e._isFolded()?e.unfold():e.fold(),t.stopPropagation()}))},r.prototype._isFolded=function(){return!this._div.classList.contains("unfolded")},r.prototype.active=function(e){this._div.classList.remove("active");for(var t=0,n=this.children;tthis.aMin+t.snapOffset+this.aGutterSize?n0&&(S={a:l(e[u-1]),b:D,aMin:t.minSize[u-1],bMin:t.minSize[u],dragging:!1,parent:E,isFirst:I,isLast:j,direction:t.direction},S.aGutterSize=t.gutterSize,S.bGutterSize=t.gutterSize,I&&(S.aGutterSize=t.gutterSize/2),j&&(S.bGutterSize=t.gutterSize/2)),!r){if(u>0){var k=i.createElement("div");k.className=f,k.style[c]=t.gutterSize+"px",k[o]("mousedown",m.bind(S)),k[o]("touchstart",m.bind(S)),E.insertBefore(k,D),S.gutter=k}(0===u||u==e.length-1)&&(A=t.gutterSize/2)}T(D,H,A),u>0&&y.push(S)}return{setSizes:function(e){for(var t=0;t0){var n=y[t-1];T(n.a,e[t-1],n.aGutterSize),T(n.b,e[t],n.bGutterSize)}},collapse:function(e){var t;e===y.length?(t=y[e-1],x.call(t),C.call(t,t.size-t.bGutterSize)):(t=y[e],x.call(t),C.call(t,t.aGutterSize))},destroy:function(){for(var e=0;e