12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs")):"function"==typeof define&&define.amd?define("babylonjs-node-editor",["babylonjs"],t):"object"==typeof exports?exports["babylonjs-node-editor"]=t(require("babylonjs")):e.NODEEDITOR=t(e.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=129)}([function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=n(130)},function(e,t,n){e.exports=n(141)()},function(e,t,n){var r;try{r={cloneDeep:n(259),constant:n(63),defaults:n(260),each:n(94),filter:n(97),find:n(261),flatten:n(124),forEach:n(95),forIn:n(266),has:n(108),isUndefined:n(109),last:n(267),map:n(110),mapValues:n(268),max:n(269),merge:n(271),min:n(277),minBy:n(278),now:n(279),pick:n(280),range:n(285),reduce:n(112),sortBy:n(288),uniqueId:n(293),values:n(117),zipObject:n(294)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph;function a(e,t,n,o){var a;do{a=r.uniqueId(o)}while(e.hasNode(a));return n.dummy=t,e.setNode(a,n),a}function i(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:a,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,a=e.y,i=t.x-o,s=t.y-a,l=e.width/2,c=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*l>Math.abs(i)*c?(s<0&&(c=-c),n=c*i/s,r=c):(i<0&&(l=-l),n=l,r=l*s/i);return{x:o+n,y:a+r}},buildLayerMatrix:function(e){var t=r.map(r.range(i(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),a=o.rank;r.isUndefined(a)||(t[a][o.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,a=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%a!=0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return a(e,"border",o,t)},maxRank:i,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){var r;try{r={clone:n(147),constant:n(63),each:n(94),filter:n(97),has:n(108),isArray:n(4),isEmpty:n(223),isFunction:n(27),isUndefined:n(109),keys:n(14),map:n(110),reduce:n(112),size:n(226),transform:n(232),union:n(233),values:n(117)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r;try{r=n(145)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(77),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(27),o=n(57);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(203),o=n(213),a=n(18),i=n(4),s=n(220);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){"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=n(131)},function(e,t,n){var r=n(80),o=n(59),a=n(11);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){var r=n(158),o=n(163);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(22),o=n(159),a=n(160),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(80),o=n(183),a=n(11);e.exports=function(e){return a(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var p=s(u),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(i[p].references++,i[p].updater(d)):i.push({identifier:u,updater:g(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,p=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var a=m++;n=h||(h=c(t)),r=d.bind(null,n,a,!1),o=d.bind(null,n,a,!0)}else n=c(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(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 o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);i[o].references--}for(var a=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(9),o=n(179),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l}).call(this,n(56)(e))},function(e,t,n){var r=n(188),o=n(53),a=n(189),i=n(89),s=n(190),l=n(16),c=n(78),u=c(r),p=c(o),d=c(a),f=c(i),h=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||a&&"[object Promise]"!=m(a.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(16),o=n(10);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(16),o=n(7);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(37),o=n(38);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r=n(178),o=n(10),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(180),o=n(40),a=n(58),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(25);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(33),o=n(153),a=n(154),i=n(155),s=n(156),l=n(157);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t,n){var r=n(148),o=n(149),a=n(150),i=n(151),s=n(152);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(21);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(15)(Object,"create");e.exports=r},function(e,t,n){var r=n(172);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(38),o=n(21),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(79);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(81)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(64),o=n(201)(r);e.exports=o},function(e,t,n){var r=n(45),o=n(31);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(4),o=n(67),a=n(215),i=n(104);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(18),o=n(113),a=n(114);e.exports=function(e,t){return a(o(e,t,r),e+"")}},function(e,t,n){var r=n(21),o=n(11),a=n(39),i=n(7);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(3);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var a=e.node(o);if(r.has(t,o))return a.rank;t[o]=!0;var i=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return i!==Number.POSITIVE_INFINITY&&null!=i||(i=0),a.rank=i}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Et}));var r,o=n(1),a=n.n(o),i=n(13),s=n(0);!function(e){e[e.Sphere=0]="Sphere",e[e.Box=1]="Box",e[e.Torus=2]="Torus",e[e.Cylinder=3]="Cylinder",e[e.Plane=4]="Plane",e[e.ShaderBall=5]="ShaderBall",e[e.DefaultParticleSystem=6]="DefaultParticleSystem",e[e.Bubbles=7]="Bubbles",e[e.Smoke=8]="Smoke",e[e.Rain=9]="Rain",e[e.Explosion=10]="Explosion",e[e.Fire=11]="Fire",e[e.Custom=12]="Custom"}(r||(r={}));var l=function(){function e(){this.onSelectionChangedObservable=new s.Observable,this.onRebuildRequiredObservable=new s.Observable,this.onBuiltObservable=new s.Observable,this.onResetRequiredObservable=new s.Observable,this.onUpdateRequiredObservable=new s.Observable,this.onZoomToFitRequiredObservable=new s.Observable,this.onReOrganizedRequiredObservable=new s.Observable,this.onLogRequiredObservable=new s.Observable,this.onErrorMessageDialogRequiredObservable=new s.Observable,this.onIsLoadingChanged=new s.Observable,this.onPreviewCommandActivated=new s.Observable,this.onLightUpdated=new s.Observable,this.onPreviewBackgroundChanged=new s.Observable,this.onBackFaceCullingChanged=new s.Observable,this.onDepthPrePassChanged=new s.Observable,this.onAnimationCommandActivated=new s.Observable,this.onCandidateLinkMoved=new s.Observable,this.onSelectionBoxMoved=new s.Observable,this.onFrameCreatedObservable=new s.Observable,this.onCandidatePortSelectedObservable=new s.Observable,this.onImportFrameObservable=new s.Observable,this.onGraphNodeRemovalObservable=new s.Observable,this.onGridSizeChanged=new s.Observable,this.onExposePortOnFrameObservable=new s.Observable,this.listOfCustomPreviewFiles=[],this.blockKeyboardEvents=!1,this.previewType=s.DataStorage.ReadNumber("PreviewType",r.Box),this.backFaceCulling=s.DataStorage.ReadBoolean("BackFaceCulling",!0),this.depthPrePass=s.DataStorage.ReadBoolean("DepthPrePass",!1),this.hemisphericLight=s.DataStorage.ReadBoolean("HemisphericLight",!0),this.directionalLight0=s.DataStorage.ReadBoolean("DirectionalLight0",!1),this.directionalLight1=s.DataStorage.ReadBoolean("DirectionalLight1",!1),this.controlCamera=s.DataStorage.ReadBoolean("ControlCamera",!0),this._mode=s.DataStorage.ReadNumber("Mode",s.NodeMaterialModes.Material);var e=s.DataStorage.ReadNumber("BackgroundColorR",.12549019607843137),t=s.DataStorage.ReadNumber("BackgroundColorG",.09803921568627451),n=s.DataStorage.ReadNumber("BackgroundColorB",.25098039215686274);this.backgroundColor=new s.Color4(e,t,n,1)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(e){s.DataStorage.WriteNumber("Mode",e),this._mode=e,this.onPreviewCommandActivated.notifyObservers(!0)},enumerable:!1,configurable:!0}),e}(),c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function u(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}Object.create;Object.create;var h=n(134),m=function(e){function t(t){var n=e.call(this,t)||this,r=s.DataStorage.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n}return u(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;s.DataStorage.WriteBoolean(this.props.title,e),this.setState({isExpanded:e})},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return o.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},o.createElement("div",{className:"title"},this.props.title),o.createElement("div",{className:t},o.createElement("img",{className:"img",title:this.props.title,src:h})))},t.prototype.render=function(){return this.state.isExpanded?o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader(),o.createElement("div",{className:"paneList"},this.props.children))):o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(o.Component),g=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"draggableLine",title:this.props.tooltip,draggable:!0,onDragStart:function(t){t.dataTransfer.setData("babylonjs-material-node",e.props.data)}},this.props.data.replace("Block",""))},t}(o.Component),v=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"draggableLine withButton",title:this.props.tooltip,draggable:!0,onDragStart:function(t){t.dataTransfer.setData("babylonjs-material-node",e.props.data)}},this.props.data.substr(0,this.props.data.length-6),o.createElement("div",{className:"icon",onClick:function(){e.props.onIconClick(e.props.data)},title:this.props.iconTitle},o.createElement("img",{className:"img",title:this.props.iconTitle,src:this.props.iconImage})))},t}(o.Component),b=function(e){function t(t){var n=e.call(this,t)||this,r=s.DataStorage.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n.uploadRef=o.createRef(),n}return u(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onIconClick(t[0]),e.target.value=""},t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;s.DataStorage.WriteBoolean(this.props.title,e),this.setState({isExpanded:e})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"nonDraggableLine withButton"},this.props.label,o.createElement("div",{className:"icon",title:this.props.title},o.createElement("img",{className:"img",src:this.props.iconImage})),o.createElement("div",{className:"buttonLine",title:this.props.title},o.createElement("label",{htmlFor:this.props.uploadName?this.props.uploadName:"file-upload",className:"file-upload"}),o.createElement("input",{ref:this.uploadRef,id:this.props.uploadName?this.props.uploadName:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}})))},t}(o.Component),y=n(135),x=n(73);n(136);var w=function(e){function t(t){var n=e.call(this,t)||this;n.state={filter:""};var r=localStorage.getItem("Custom-Frame-List");return r&&(n._customFrameList=JSON.parse(r)),n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},t.prototype.filterContent=function(e){this.setState({filter:e})},t.prototype.loadCustomFrame=function(e){var t=this;s.Tools.ReadFile(e,(function(e){return d(t,void 0,void 0,(function(){var t,n,r,o,a,i;return f(this,(function(s){t=new TextDecoder("utf-8"),n=JSON.parse(t.decode(e)),r=n.editorData.frames[0].name+"Custom",o=n.editorData.frames[0].comments||"";try{localStorage.setItem(r,JSON.stringify(n))}catch(e){return this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Error Saving Frame"),[2]}return a=localStorage.getItem("Custom-Frame-List"),i={},a&&(i=JSON.parse(a)),i[r]=o,localStorage.setItem("Custom-Frame-List",JSON.stringify(i)),this._customFrameList=i,this.forceUpdate(),[2]}))}))}),void 0,!0)},t.prototype.removeItem=function(e){var t=localStorage.getItem("Custom-Frame-List");if(t){var n=JSON.parse(t);delete n[e],localStorage.removeItem(e),localStorage.setItem("Custom-Frame-List",JSON.stringify(n)),this._customFrameList=n,this.forceUpdate()}},t.prototype.render=function(){var e=this,n=[];for(var r in this._customFrameList)n.push(r);var a={Custom_Frames:n,Animation:["BonesBlock","MorphTargetsBlock"],Color_Management:["ReplaceColorBlock","PosterizeBlock","GradientBlock","DesaturateBlock"],Conversion_Blocks:["ColorMergerBlock","ColorSplitterBlock","VectorMergerBlock","VectorSplitterBlock"],Inputs:["Float","Vector2","Vector3","Vector4","Color3","Color4","TextureBlock","ReflectionTextureBlock","TimeBlock","DeltaTimeBlock","FragCoordBlock","ScreenSizeBlock"],Interpolation:["LerpBlock","StepBlock","SmoothStepBlock","NLerpBlock"],Math__Standard:["AddBlock","DivideBlock","MaxBlock","MinBlock","ModBlock","MultiplyBlock","NegateBlock","OneMinusBlock","ReciprocalBlock","ScaleBlock","SignBlock","SqrtBlock","SubtractBlock"],Math__Scientific:["AbsBlock","ArcCosBlock","ArcSinBlock","ArcTanBlock","ArcTan2Block","CosBlock","DegreesToRadiansBlock","ExpBlock","Exp2Block","FractBlock","LogBlock","PowBlock","RadiansToDegreesBlock","SawToothWaveBlock","SinBlock","SquareWaveBlock","TanBlock","TriangleWaveBlock"],Math__Vector:["CrossBlock","DerivativeBlock","DistanceBlock","DotBlock","FresnelBlock","LengthBlock","ReflectBlock","RefractBlock","Rotate2dBlock","TransformBlock"],Matrices:["Matrix","WorldMatrixBlock","WorldViewMatrixBlock","WorldViewProjectionMatrixBlock","ViewMatrixBlock","ViewProjectionMatrixBlock","ProjectionMatrixBlock"],Mesh:["InstancesBlock","PositionBlock","UVBlock","ColorBlock","NormalBlock","PerturbNormalBlock","NormalBlendBlock","TangentBlock","MatrixIndicesBlock","MatrixWeightsBlock","WorldPositionBlock","WorldNormalBlock","WorldTangentBlock","FrontFacingBlock"],Noises:["RandomNumberBlock","SimplexPerlin3DBlock","WorleyNoise3DBlock"],Output_Nodes:["VertexOutputBlock","FragmentOutputBlock","DiscardBlock"],Particle:["ParticleBlendMultiplyBlock","ParticleColorBlock","ParticlePositionWorldBlock","ParticleRampGradientBlock","ParticleTextureBlock","ParticleTextureMaskBlock","ParticleUVBlock"],PBR:["PBRMetallicRoughnessBlock","AnisotropyBlock","ClearCoatBlock","ReflectionBlock","RefractionBlock","SheenBlock","SubSurfaceBlock"],PostProcess:["ScreenPositionBlock","CurrentScreenBlock"],Procedural__Texture:["ScreenPositionBlock"],Range:["ClampBlock","RemapBlock","NormalizeBlock"],Round:["RoundBlock","CeilingBlock","FloorBlock"],Scene:["FogBlock","CameraPositionBlock","FogColorBlock","ImageProcessingBlock","LightBlock","LightInformationBlock","ViewDirectionBlock"]};switch(this.props.globalState.mode){case s.NodeMaterialModes.Material:delete a.PostProcess,delete a.Particle,delete a.Procedural__Texture;break;case s.NodeMaterialModes.PostProcess:delete a.Animation,delete a.Mesh,delete a.Particle,delete a.Procedural__Texture,delete a.PBR;break;case s.NodeMaterialModes.ProceduralTexture:delete a.Animation,delete a.Mesh,delete a.Particle,delete a.PostProcess,delete a.PBR;break;case s.NodeMaterialModes.Particle:delete a.Animation,delete a.Mesh,delete a.PostProcess,delete a.Procedural__Texture,delete a.PBR,a.Output_Nodes.splice(a.Output_Nodes.indexOf("VertexOutputBlock"),1)}var i=[];for(var l in a){var c=a[l].filter((function(t){return!e.state.filter||-1!==t.toLowerCase().indexOf(e.state.filter.toLowerCase())})).sort((function(e,t){return e.localeCompare(t)})).map((function(n,r){return"Custom_Frames"===l?o.createElement(v,{key:n,data:n,tooltip:e._customFrameList[n]||"",iconImage:x,iconTitle:"Delete",onIconClick:function(t){return e.removeItem(t)}}):o.createElement(g,{key:n,data:n,tooltip:t._Tooltips[n]||""})}));if("Custom_Frames"===l){var u=o.createElement(b,{key:"add...",title:"Add Custom Frame",closed:!1,label:"Add...",uploadName:"custom-frame-upload",iconImage:y,accept:".json",onIconClick:function(t){e.loadCustomFrame(t)}});c.push(u)}c.length&&i.push(o.createElement(m,{key:l+" blocks",title:l.replace("__",": ").replace("_"," "),closed:!1},c))}return o.createElement("div",{id:"nodeList"},o.createElement("div",{className:"panes"},o.createElement("div",{className:"pane"},o.createElement("div",{className:"filter"},o.createElement("input",{type:"text",placeholder:"Filter",onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1},onChange:function(t){return e.filterContent(t.target.value)}})),o.createElement("div",{className:"list-container"},i))))},t._Tooltips={BonesBlock:"Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",MorphTargetsBlock:"Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",AddBlock:"Adds the left and right inputs of the same type together",DistanceBlock:"Provides a distance vector based on the left and right input vectors",DivideBlock:"Divides the left input by the right input of the same type",LengthBlock:"Outputs the length of an input vector",MaxBlock:"Outputs the largest value between the left and right inputs of the same type",MinBlock:"Outputs the smallest value between the left and right inputs of the same type",MultiplyBlock:"Multiplies the left and right inputs of the same type together",NegateBlock:"Multiplies the input by -1",OneMinusBlock:"Subtracts each channel of the input value from 1 (1 - input)",RandomNumberBlock:"Provides a random number based on an input seed",ReciprocalBlock:"Quotient of 1 divided by the input",ScaleBlock:"Multiplies the input channels by a float factor",SubtractBlock:"Subtracts the right input from the left input of the same type",GradientBlock:"Returns the color in the gradient represented by the target value of the input",PosterizeBlock:"Reduces the number of values in each channel to the number in the corresponding channel of steps",ReplaceColorBlock:"Replaces a reference color in value with the color in replacement blended by distance",ColorMergerBlock:"Combines float input channels into a color",ColorSplitterBlock:"Separates color input channels into individual floats",VectorMergerBlock:"Combines up to four input floats into a vector",VectorSplitterBlock:"Separates vectors input channels into individual floats",Color3:"A color made up of red, green, and blue channel values",Color4:"A color made up of red, green, blue, and alpha channel values",DeltaTimeBlock:"A float representing the time that has passed since the last frame was rendered",Float:"A floating point number representing a value with a fractional component",TextureBlock:"A node for reading a linked or embedded texture file",TimeBlock:"A float value that represents the time that has passed since the scene was loaded",Vector2:"a vector composed of X and Y channels",Vector3:"a vector composed of X, Y, and Z channels",Vector4:"a vector composed of X, Y, Z, and W channels",LerpBlock:"Outputs a value that is a mix of the left and right inputs based on the target value",NLerpBlock:"Outputs a value that is a mix of the left and right inputs based on the target's normalized value",SmoothStepBlock:"Outputs a value based on a the input value's position on a curve between the two edge values",StepBlock:"Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",Matrix:"A 4x4 table of related values",ProjectionMatrixBlock:"A matrix to remap points in 3D space to 2D plane relative to the screen",ViewMatrixBlock:"A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",ViewProjectionMatrixBlock:"A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",WorldMatrixBlock:"A matrix to remap points in 3D local space to 3D world space",WorldViewProjectionMatrixBlock:"A matrix to remap points in 3D local space to 3D world space, then to 2D camera space, and ending in 2D screen space",ColorBlock:"Outputs the RGBA color of each vertex in the mesh",InstancesBlock:"Provides the world matrix for each instance to apply this material to all instances",MatrixIndicesBlock:"A Vector4 representing the vertex to bone skinning assignments",MatrixWeightsBlock:"A Vector4 representing the vertex to bone skinning weights",NormalBlock:"A Vector3 representing the normal of each vertex of the attached mesh",PositionBlock:"A Vector3 representing the position of each vertex of the attached mesh",TangentBlock:"A Vector3 representing the tangent of each vertex of the attached mesh",UVBlock:"A Vector2 representing the UV coordinates of each vertex of the attached mesh",WorldNormal:"A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",WorldTangent:"A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",PerturbNormalBlock:"Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",NormalBlend:"Outputs the result of blending two normal maps together using a per-channel screen",WorldPosition:"A Vector4 representing the position of each vertex of the attached mesh transformed into world space",DiscardBlock:"A final node that will not output a pixel below the cutoff value",FragmentOutputBlock:"A mandatory final node for outputing the color of each pixel",VertexOutputBlock:"A mandatory final node for outputing the position of each vertex",ClampBlock:"Outputs values above the maximum or below minimum as maximum or minimum values respectively",NormalizeBlock:"Remaps the length of a vector or color to 1",RemapBlock:"Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",CeilingBlock:"Outputs fractional values as the next higher whole number",FloorBlock:"Outputs fractional values as the next lower whole number",RoundBlock:"Outputs fractional values rounded to the nearest whole number",ModBlock:"Outputs the value of one parameter modulo another",CameraPositionBlock:"Outputs a Vector3 position of the active scene camera",FogBlock:"Applies fog to the scene with an increasing opacity based on distance from the camera",FogColorBlock:"The system value for fog color pulled from the scene",ImageProcessingBlock:"Provides access to all of the Babylon image processing properties",LightBlock:"Outputs diffuse and specular contributions from one or more scene lights",LightInformationBlock:"Provides the direction, color and intensity of a selected light based on its world position",ReflectionTextureBlock:"Creates a reflection from the input texture",ViewDirectionBlock:"Outputs the direction vector of where the camera is aimed",AbsBlock:"Outputs the absolute value of the input value",ArcCosBlock:"Outputs the inverse of the cosine value based on the input value",ArcSinBlock:"Outputs the inverse of the sine value based on the input value",ArcTan2Block:"Outputs the inverse of the tangent value based on the input value",ArcTanBlock:"Outputs the inverse of the tangent value based on the input value",CosBlock:"Outputs the cosine value based on the input value",DegreesToRadiansBlock:"Converts the input degrees value to radians",Exp2Block:"Outputs the input value multiplied by itself 1 time. (Exponent of 2)",ExpBlock:"Outputs the input value multiplied by itself 9 time. (Exponent of 10)",FractBlock:"Outputs only the fractional value of a floating point number",LogBlock:"The logarithmic value based on the input value",PowBlock:"Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",RadiansToDegreesBlock:"Converts the input radians value to degrees",SawToothWaveBlock:"Outputs a sawtooth pattern value between -1 and 1 based on the input value",SignBlock:"returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",SinBlock:"Outputs the the sine value based on the input value",SqrtBlock:"Outputs the the square root of the input value",SquareWaveBlock:"Outputs a stepped pattern value between -1 and 1 based on the input value",TanBlock:"Outputs the the tangent value based on the input value",TriangleWaveBlock:"Outputs a sawtooth pattern value between 0 and 1 based on the input value",CrossBlock:"Outputs a vector that is perpendicular to two input vectors",DotBlock:"Outputs the cos of the angle between two vectors",FresnelBlock:"Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",TransformBlock:"Transforms a input vector based on the input matrix",DerivativeBlock:"FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",DesaturateBlock:"Convert a color input into a grayscale representation.",WorldViewMatrixBlock:"A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",FrontFacingBlock:"Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",SimplexPerlin3DBlock:"Creates a type of gradient noise with few directional artifacts.",WorleyNoise3DBlock:"Creates a random pattern resembling cells.",ReflectBlock:"Outputs the direction of the input vector reflected across the surface normal.",RefractBlock:"Outputs a direction simulating a deflection of the input vector.",Rotate2dBlock:"Rotates UV coordinates around the W axis.",PBRMetallicRoughnessBlock:"PBR metallic/roughness material",SheenBlock:"PBR Sheen block",AnisotropyBlock:"PBR Anisotropy block",ReflectionBlock:"PBR Reflection block",ClearCoatBlock:"PBR ClearCoat block",RefractionBlock:"PBR Refraction block",SubSurfaceBlock:"PBR SubSurface block",ScreenPositionBlock:"A Vector2 representing the position of each vertex of the screen quad (derived from UV set from the quad used to render)",CurrentScreenBlock:"The screen buffer used as input for the post process",ParticleUVBlock:"The particle uv texture coordinate",ParticleTextureBlock:"The particle texture",ParticleColorBlock:"The particle color",ParticleTextureMaskBlock:"The particle texture mask",ParticleRampGradientBlock:"The particle ramp gradient block",ParticleBlendMultiplyBlock:"The particle blend multiply block",ParticlePositionWorldBlock:"The world position of the particle",FragCoordBlock:"The gl_FragCoord predefined variable that contains the window relative coordinate (x, y, z, 1/w)",ScreenSizeBlock:"The size (in pixels) of the screen window"},t}(o.Component),_=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"buttonLine"},o.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(o.Component),C=function(){function e(){}return e._SaveAs=function(e,t,n){var r=this;if("download"in HTMLAnchorElement.prototype){var o=window.URL||window.webkitURL,a=n.createElement("a");return a.download=t,a.rel="noopener",a.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(a.href)}),4e4),void setTimeout((function(){r._Click(a,n)}),0)}var i=open("","_blank");i&&(i.document.title=i.document.body.innerText="downloading...");var s="application/octet-stream"===e.type,l=/constructor/i.test(window.HTMLElement)||window.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var p=(o=window.URL||window.webkitURL).createObjectURL(e);i?i.location.href=p:location.href=p,i=null,setTimeout((function(){o.revokeObjectURL(p)}),4e4)}},e._Click=function(e,t){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var n=t.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}},e.GetBaseType=function(e){return s.NodeMaterialBlockConnectionPointTypes[e]},e.DownloadAsFile=function(e,t,n){var r=new Blob([t],{type:"application/octet-stream"});this._SaveAs(r,n,e)},e}(),k=function(e){function t(t){var n=e.call(this,t)||this;return n.uploadRef=o.createRef(),n}return u(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 o.createElement("div",{className:"buttonLine"},o.createElement("label",{htmlFor:this.props.uploadName?this.props.uploadName:"file-upload",className:"file-upload"},this.props.label),o.createElement("input",{ref:this.uploadRef,id:this.props.uploadName?this.props.uploadName:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(o.Component),S=function(){function e(){}return e.UpdateLocations=function(e,t,n){e.editorData={locations:[]};for(var r=0,o=n?n.nodes.map((function(e){return e.block})):e.attachedBlocks;r<o.length;r++){var a=o[r],i=t.onGetNodeFromBlock(a);e.editorData.locations.push({blockId:a.uniqueId,x:i?i.x:0,y:i?i.y:0})}t.storeEditorData(e.editorData,n)},e.Serialize=function(e,t,n){var r=s.Texture.SerializeBuffers;s.Texture.SerializeBuffers=s.DataStorage.ReadBoolean("EmbedTextures",!0),this.UpdateLocations(e,t,n);var o=n?n.nodes.map((function(e){return e.block})):void 0,a=e.serialize(o);return s.Texture.SerializeBuffers=r,JSON.stringify(a,void 0,2)},e.Deserialize=function(e,t){t.nodeMaterial.loadFromSerialization(e,""),t.onIsLoadingChanged.notifyObservers(!1)},e.AddFrameToMaterial=function(e,t,n){this.UpdateLocations(n,t),t.nodeMaterial.loadFromSerialization(e,"",!0),t.onImportFrameObservable.notifyObservers(e),t.onIsLoadingChanged.notifyObservers(!1)},e}(),E=function(e){function t(n){var r=e.call(this,n)||this;return r._localChange=!1,r._uniqueId=t._UniqueIdSeed++,r.props.isSelected?r.state={isSelected:r.props.isSelected()}:r.state={isSelected:1==r.props.target[r.props.propertyName]},r.props.disabled&&(r.state=p(p({},r.state),{isDisabled:r.props.disabled})),r}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return(n=e.isSelected?e.isSelected():1==e.target[e.propertyName])!==t.isSelected||this._localChange?(t.isSelected=n,this._localChange=!1,!0):e.disabled!==!!t.isDisabled||(e.label!==this.props.label||e.target!==this.props.target)},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 o.createElement("div",{className:"checkBoxLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"checkBox"},o.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()},disabled:!!this.props.disabled}),o.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"+(this.props.disabled?" disabled":"")})))},t._UniqueIdSeed=0,t}(o.Component),P=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName];n.state={value:r?n.props.isInteger?r.toFixed(0):r.toFixed(n.props.digits||2):"0"},n._store=r;for(var o="(.*\\.",a=n.props.digits||2;a--;)o+=".";return o+=").+",n._regExp=new RegExp(o),n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.target[e.propertyName],r=n?this.props.isInteger?n.toFixed(0):n.toFixed(this.props.digits||2):"0";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){var t;/[^0-9\.\-]/g.test(e)||(e=e.replace(this._regExp,"$1"),t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(null!=this.props.max&&t>this.props.max&&(t=this.props.max),null!=this.props.min&&t<this.props.min&&(t=this.props.min),this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t))},t.prototype.render=function(){var e=this,t=this.props.smallUI?"short":"value";return o.createElement(o.Fragment,null,o.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:t},o.createElement("input",{type:"number",step:this.props.step||"0.01",className:"numeric-input",onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1,e.props.onEnter&&e.props.onEnter(e._store)},onKeyDown:function(t){13===t.keyCode&&e.props.onEnter&&e.props.onEnter(e._store)},onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}}))))},t}(o.Component),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(P,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.inputBlock.isConstant&&e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),O=function(e){function t(t){var n=e.call(this,t)||this;if(n._localChange=!1,void 0!==n.props.directValue)n.state={value:n.props.directValue};else{var r=n.props.target[n.props.propertyName];void 0===r&&(r=n.props.maximum),n.state={value:r}}return n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;var n=e.target[e.propertyName];return void 0===n&&(n=e.maximum),!(n===t.value&&e.minimum===this.props.minimum&&e.maximum===this.props.maximum&&!this._localChange)&&(t.value=Math.min(Math.max(n,e.minimum),e.maximum),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=parseFloat(e);this.props.useEuler&&(t=s.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?s.Tools.ToDegrees(e):e},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"sliderLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement(P,{globalState:this.props.globalState,smallUI:!0,label:"",target:this.state,propertyName:"value",min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),onEnter:function(){e.onChange(e.state.value)}}),o.createElement("div",{className:"slider"},o.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}(o.Component),N=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value.toFixed(3)},n}return u(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(3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var n=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(n)||this.props.onChange(n)}},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"numeric"},this.props.label&&o.createElement("div",{className:"numeric-label"},this.props.label+": "),o.createElement("input",{type:"number",onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1},step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t)}}))},t.defaultProps={step:1},t}(o.Component),B=n(70),L=n(2),M=n.n(L);function R(e){return(R="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 I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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 j(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}function U(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=j(t.slice(0,r)),a=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[o]=a,e}),{})}var V=!1;try{V=!0}catch(e){}function W(e){return null===e?null:"object"===R(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 H(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?I({},e,t):{}}function Y(e){var t=e.forwardedRef,n=A(e,["forwardedRef"]),r=n.icon,o=n.mask,a=n.symbol,i=n.className,s=n.title,l=W(r),c=H("classes",[].concat(z(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,a=e.inverse,i=e.border,s=e.listItem,l=e.flip,c=e.size,u=e.rotation,p=e.pull,d=(I(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":a,"fa-border":i,"fa-li":s,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(c),null!=c),I(t,"fa-rotate-".concat(u),null!=u&&0!==u),I(t,"fa-pull-".concat(p),null!=p),I(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(n)),z(i.split(" ")))),u=H("transform","string"==typeof n.transform?B.b.transform(n.transform):n.transform),p=H("mask",W(o)),d=Object(B.a)(l,F({},c,{},u,{},p,{symbol:a,title:s}));if(!d)return function(){var e;!V&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var f=d.abstract,h={ref:t};return Object.keys(n).forEach((function(e){Y.defaultProps.hasOwnProperty(e)||(h[e]=n[e])})),X(f[0],h)}Y.displayName="FontAwesomeIcon",Y.propTypes={border:M.a.bool,className:M.a.string,mask:M.a.oneOfType([M.a.object,M.a.array,M.a.string]),fixedWidth:M.a.bool,inverse:M.a.bool,flip:M.a.oneOf(["horizontal","vertical","both"]),icon:M.a.oneOfType([M.a.object,M.a.array,M.a.string]),listItem:M.a.bool,pull:M.a.oneOf(["right","left"]),pulse:M.a.bool,rotation:M.a.oneOf([0,90,180,270]),size:M.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:M.a.bool,symbol:M.a.oneOfType([M.a.bool,M.a.string]),title:M.a.string,transform:M.a.oneOfType([M.a.string,M.a.object]),swapOpacity:M.a.bool},Y.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 X=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=U(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[j(t)]=r}return e}),{attrs:{}}),i=r.style,s=void 0===i?{}:i,l=A(r,["style"]);return a.attrs.style=F({},a.attrs.style,{},s),t.apply(void 0,[n.tag,F({},a.attrs,{},l)].concat(z(o)))}.bind(null,a.a.createElement),G={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"]},q={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"]},Z=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.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?o.createElement(Y,{icon:G}):o.createElement(Y,{icon:q});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label",title:this.props.label},this.props.label),o.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(N,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(o.Component),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(Z,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),K=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.updateValue=function(e){if(!/[^0-9\.\-]/g.test(e)){var t=parseInt(e);isNaN(t)||(null!=this.props.max&&t>this.props.max&&(t=this.props.max),null!=this.props.min&&t<this.props.min&&(t=this.props.min),this.props.onChange(t))}},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"color-picker-component"},o.createElement("div",{className:"color-picker-component-value"},o.createElement("input",{type:"number",step:1,className:"numeric-input",value:this.props.value,onChange:function(t){return e.updateValue(t.target.value)}})),o.createElement("div",{className:"color-picker-component-label"},this.props.label))},t}(o.Component),$=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hex:n.props.value.replace("#","")},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){return e.value!==this.props.value&&(t.hex=e.value.replace("#","")),!0},t.prototype.updateHexValue=function(e){""!=e&&0==/^[0-9A-Fa-f]+$/g.test(e)||(this.setState({hex:e}),e.length===this.props.expectedLength&&this.props.onChange("#"+e))},t.prototype.render=function(){var e=this;return o.createElement("input",{type:"string",className:"hex-input",value:this.state.hex,onChange:function(t){return e.updateHexValue(t.target.value)}})},t}(o.Component);n(143);var J=function(e){function t(t){var n=e.call(this,t)||this;return n.props.color instanceof s.Color4?n.state={color:new s.Color3(n.props.color.r,n.props.color.g,n.props.color.b),alpha:n.props.color.a}:n.state={color:n.props.color.clone(),alpha:1},n._saturationRef=o.createRef(),n._hueRef=o.createRef(),n}return u(t,e),t.prototype.onSaturationPointerDown=function(e){this._evaluateSaturation(e),this._isSaturationPointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onSaturationPointerUp=function(e){this._isSaturationPointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.onSaturationPointerMove=function(e){this._isSaturationPointerDown&&this._evaluateSaturation(e)},t.prototype.onHuePointerDown=function(e){this._evaluateHue(e),this._isHuePointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onHuePointerUp=function(e){this._isHuePointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.onHuePointerMove=function(e){this._isHuePointerDown&&this._evaluateHue(e)},t.prototype._evaluateSaturation=function(e){var t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,r=Math.min(1,Math.max(1e-4,t/this._saturationRef.current.clientWidth)),o=Math.min(1,Math.max(1e-4,1-n/this._saturationRef.current.clientHeight));this.props.debugMode&&(console.log("Saturation: "+r),console.log("Value: "+o));var a=this.state.color.toHSV();s.Color3.HSVtoRGBToRef(a.r,r,o,this.state.color),this.setState({color:this.state.color})},t.prototype._evaluateHue=function(e){var t=e.nativeEvent.offsetX,n=360*Math.min(.9999,Math.max(1e-4,t/this._hueRef.current.clientWidth));this.props.debugMode&&console.log("Hue: "+n);var r=this.state.color.toHSV();s.Color3.HSVtoRGBToRef(n,Math.max(r.g,1e-4),r.b,this.state.color),this.setState({color:this.state.color})},t.prototype.componentDidUpdate=function(){this.raiseOnColorChanged()},t.prototype.raiseOnColorChanged=function(){if(this.props.onColorChanged)if(this.props.color instanceof s.Color4){var e=s.Color4.FromColor3(this.state.color,this.state.alpha);this.props.onColorChanged(e)}else this.props.onColorChanged(this.state.color.clone())},t.prototype.render=function(){var e=this,t=this.state.color.toHexString(),n=this.state.color.toHSV(),r=new s.Color3;s.Color3.HSVtoRGBToRef(n.r,1,1,r);var a=r.toHexString(),i=this.props.color instanceof s.Color4;return o.createElement("div",{className:"color-picker-container"},o.createElement("div",{className:"color-picker-saturation",onPointerMove:function(t){return e.onSaturationPointerMove(t)},onPointerDown:function(t){return e.onSaturationPointerDown(t)},onPointerUp:function(t){return e.onSaturationPointerUp(t)},ref:this._saturationRef,style:{background:a}},o.createElement("div",{className:"color-picker-saturation-white"}),o.createElement("div",{className:"color-picker-saturation-black"}),o.createElement("div",{className:"color-picker-saturation-cursor",style:{top:-100*n.b+100+"%",left:100*n.g+"%"}})),o.createElement("div",{className:"color-picker-hue"},o.createElement("div",{className:"color-picker-hue-color",style:{background:t}}),o.createElement("div",{className:"color-picker-hue-slider",ref:this._hueRef,onPointerMove:function(t){return e.onHuePointerMove(t)},onPointerDown:function(t){return e.onHuePointerDown(t)},onPointerUp:function(t){return e.onHuePointerUp(t)}},o.createElement("div",{className:"color-picker-hue-cursor",style:{left:n.r/360*100+"%",border:"1px solid "+a}}))),o.createElement("div",{className:"color-picker-rgb"},o.createElement("div",{className:"red"},o.createElement(K,{label:"R",min:0,max:255,value:255*this.state.color.r|0,onChange:function(t){e.state.color.r=t/255,e.forceUpdate()}})),o.createElement("div",{className:"green"},o.createElement(K,{label:"G",min:0,max:255,value:255*this.state.color.g|0,onChange:function(t){e.state.color.g=t/255,e.forceUpdate()}})),o.createElement("div",{className:"blue"},o.createElement(K,{label:"B",min:0,max:255,value:255*this.state.color.b|0,onChange:function(t){e.state.color.b=t/255,e.forceUpdate()}})),o.createElement("div",{className:"alpha"+(i?"":" grayed")},o.createElement(K,{label:"A",min:0,max:255,value:255*this.state.alpha|0,onChange:function(t){e.setState({alpha:t/255}),e.forceUpdate()}}))),o.createElement("div",{className:"color-picker-hex"},o.createElement("div",{className:"color-picker-hex-label"},"Hex"),o.createElement("div",{className:"color-picker-hex-value"},o.createElement($,{expectedLength:6,value:t,onChange:function(t){e.setState({color:s.Color3.FromHexString(t)})}}))))},t}(o.Component),ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={pickerEnabled:!1,color:n.props.value,hex:n.props.value.toHexString()},n._floatRef=o.createRef(),n._floatHostRef=o.createRef(),n}return u(t,e),t.prototype.syncPositions=function(){var e=this._floatRef.current,t=this._floatHostRef.current;if(e&&t){var n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().height;n+r+10>window.innerHeight&&(n=window.innerHeight-r-10),e.style.top=n+"px",e.style.left=t.getBoundingClientRect().left-e.getBoundingClientRect().width+"px"}},t.prototype.shouldComponentUpdate=function(e,t){var n=e.value.toHexString()!==this.props.value.toHexString()||t.hex!==this.state.hex||t.pickerEnabled!==this.state.pickerEnabled;return n&&(t.color=e.value,t.hex=e.value.toHexString()),n},t.prototype.componentDidUpdate=function(){this.syncPositions()},t.prototype.componentDidMount=function(){this.syncPositions()},t.prototype.setPickerState=function(e){this.setState({pickerEnabled:e}),this.props.globalState.blockKeyboardEvents=e},t.prototype.render=function(){var e=this,t=this.state.color;return this.props.globalState.blockKeyboardEvents=this.state.pickerEnabled,o.createElement("div",{className:"color-picker"},o.createElement("div",{className:"color-rect",ref:this._floatHostRef,style:{background:this.state.hex},onClick:function(){return e.setPickerState(!0)}}),this.state.pickerEnabled&&o.createElement(o.Fragment,null,o.createElement("div",{className:"color-picker-cover",onClick:function(){return e.setPickerState(!1)}}),o.createElement("div",{className:"color-picker-float",ref:this._floatRef},o.createElement(J,{color:t,onColorChanged:function(t){var n=t.toHexString();e.setState({hex:n,color:t}),e.props.onColorChanged(n)}}))))},t}(o.Component),te=n(51),ne=n(74),re=n(75),oe=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,color:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.color)&&!this._localChange)&&(t.color=n.clone(),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=s.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),"Color4"===this.props.target[this.props.propertyName].getClassName()?this.props.target[this.props.propertyName]=new s.Color4(t.r,t.g,t.b,1):this.props.target[this.props.propertyName]=t,this.setState({color:t}),this.props.onChange&&this.props.onChange()},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.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?re:ne;return o.createElement("div",{className:"color3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"color3"},o.createElement(ee,{value:this.state.color,globalState:this.props.globalState,onColorChanged:function(t){e.onChange(t)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement("img",{src:te,alt:""})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},o.createElement("img",{src:t,alt:""}))),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(N,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(o.Component),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(oe,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ie=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.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?o.createElement(Y,{icon:G}):o.createElement(Y,{icon:q});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label",title:this.props.label},this.props.label),o.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)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(N,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})))},t.defaultProps={step:.001},t}(o.Component),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(ie,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),le=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:(n.props.value||n.props.target[n.props.propertyName]).clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.value||e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.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.propertyName&&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.value||this.props.target[this.props.propertyName]).clone();this.props.value?this.props.value.copyFrom(this.state.value):this.props.target[this.props.propertyName]=this.state.value,this.forceUpdate(),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?o.createElement(Y,{icon:G}):o.createElement(Y,{icon:q});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label",title:this.props.label},this.props.label),o.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)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(N,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"w",step:this.props.step,value:this.state.value.w,onChange:function(t){return e.updateStateW(t)}})))},t.defaultProps={step:.001},t}(o.Component),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(le,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ue=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n._getValue(t)},n}return u(t,e),t.prototype._getValue=function(e){return e.getSelection?e.getSelection(e.target):e.target&&e.propertyName?e.target[e.propertyName]:e.options[e.defaultIfNull||0]},t.prototype.setValue=function(e){this.setState({value:e})},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=this._getValue(e);return null!=n&&n!==t.value&&(t.value=n,!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=this.props.valuesAreStrings?e:parseInt(e);this._localChange=!0;var n=this.state.value;this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=t),this.setState({value:t}),this.raiseOnPropertyChanged(t,n),this.props.onSelect&&this.props.onSelect(t)},t.prototype.render=function(){var e,t=this;return o.createElement("div",{className:"listLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"options"+(this.props.className?" "+this.props.className:"")},o.createElement("select",{onChange:function(e){return t.updateValue(e.target.value)},value:null!==(e=this.state.value)&&void 0!==e?e:""},this.props.options.map((function(e){return o.createElement("option",{key:e.label,value:e.value},e.label)})))))},t}(o.Component),pe=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName].clone(),o=0;if(n.props.mode){var a=new s.Quaternion;r.decompose(void 0,a);var i=a.toEulerAngles();switch(n.props.mode){case 1:o=i.x;break;case 2:o=i.y;break;case 3:o=i.z}}return n.state={value:r,mode:n.props.mode||0,angle:o},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!n.equals(t.value)||this._localChange?(t.value=n.clone(),this._localChange=!1,!0):t.mode!==this.state.mode||t.angle!==this.state.angle},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.updateMatrix=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.updateRow=function(e,t){this._localChange=!0,this.state.value.setRow(t,e),this.updateMatrix()},t.prototype.updateBasedOnMode=function(e){switch(this.state.mode){case 1:s.Matrix.RotationXToRef(this.state.angle,this.state.value);break;case 2:s.Matrix.RotationYToRef(this.state.angle,this.state.value);break;case 3:s.Matrix.RotationZToRef(this.state.angle,this.state.value)}this.updateMatrix(),this.setState({angle:e})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label)),o.createElement("div",{className:"secondLine"},o.createElement(ue,{label:"Mode",className:"no-right-margin",options:[{label:"User-defined",value:0},{label:"Rotation over X axis",value:1},{label:"Rotation over Y axis",value:2},{label:"Rotation over Z axis",value:3}],target:this,noDirectUpdate:!0,getSelection:function(){return e.state.mode},onSelect:function(t){e.props.target[e.props.propertyName]=s.Matrix.Identity(),s.Matrix.IdentityToRef(e.state.value),e.setState({mode:t,angle:0}),e.updateMatrix(),e.props.onModeChange&&e.props.onModeChange(t)}})),0===this.state.mode&&o.createElement("div",{className:"secondLine"},o.createElement(le,{globalState:this.props.globalState,label:"Row #0",value:this.state.value.getRow(0),onChange:function(t){return e.updateRow(t,0)}}),o.createElement(le,{globalState:this.props.globalState,label:"Row #1",value:this.state.value.getRow(1),onChange:function(t){return e.updateRow(t,1)}}),o.createElement(le,{globalState:this.props.globalState,label:"Row #2",value:this.state.value.getRow(2),onChange:function(t){return e.updateRow(t,2)}}),o.createElement(le,{globalState:this.props.globalState,label:"Row #3",value:this.state.value.getRow(3),onChange:function(t){return e.updateRow(t,3)}})),0!==this.state.mode&&o.createElement("div",{className:"secondLine"},o.createElement(O,{label:"Angle",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,globalState:this.props.globalState,directValue:this.state.angle,onChange:function(t){return e.updateBasedOnMode(t)}})))},t}(o.Component),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(pe,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()},mode:this.props.inputBlock.matrixMode,onModeChange:function(t){e.props.inputBlock.matrixMode=t}})},t}(o.Component),fe=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:void 0!==n.props.value?n.props.value:n.props.target[n.props.propertyName]||""},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=void 0!==e.value?e.value:e.target[e.propertyName];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,t){this._localChange=!0;var n=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.props.validator&&t&&0==this.props.validator(e)&&(e=n),this.setState({value:e}),t&&this.raiseOnPropertyChanged(e,n),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.props.multilines?"textInputArea":"textInputLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},this.props.multilines&&o.createElement(o.Fragment,null,o.createElement("textarea",{value:this.state.value,onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onChange:function(t){return e.updateValue(t.target.value,!1)},onKeyDown:function(t){13===t.keyCode&&e.updateValue(e.state.value,!0)},onBlur:function(t){e.updateValue(t.target.value,!0),e.props.globalState.blockKeyboardEvents=!1}})),!this.props.multilines&&o.createElement(o.Fragment,null,o.createElement("input",{value:this.state.value,onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onChange:function(t){return e.updateValue(t.target.value,!1)},onKeyDown:function(t){13===t.keyCode&&e.updateValue(e.state.value,!0)},onBlur:function(t){e.updateValue(t.target.value,!0),e.props.globalState.blockKeyboardEvents=!1}}))))},t}(o.Component),he=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?o.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):o.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 o.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},o.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(o.Component),me=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){return o.createElement(o.Fragment,null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}))},t}(o.Component),ge=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(m,{title:"GENERAL"},(!this.props.block.isInput||!this.props.block.isAttribute)&&o.createElement(fe,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()},validator:function(t){return!!e.props.block.validateBlockName(t)||(e.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers('"'+t+'" is a reserved name, please choose another'),!1)}}),o.createElement(he,{label:"Type",value:this.props.block.getClassName()}),o.createElement(fe,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})))},t}(o.Component),ve=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.forceRebuild=function(e){e&&!e.update||this.props.globalState.onUpdateRequiredObservable.notifyObservers(),e&&!e.rebuild||this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.block._propStore;if(!t)return o.createElement(o.Fragment,null);for(var n={},r=[],a=function(t,a,l,c,u){var p=n[c];switch(p||(p=[],n[c]=p,r.push(c)),l){case s.PropertyTypeForEdition.Boolean:p.push(o.createElement(E,{label:a,target:i.props.block,propertyName:t,onValueChanged:function(){return e.forceRebuild(u.notifiers)}}));break;case s.PropertyTypeForEdition.Float:isNaN(u.min)||isNaN(u.max)||u.min===u.max?p.push(o.createElement(P,{globalState:i.props.globalState,label:a,propertyName:t,target:i.props.block,onChange:function(){return e.forceRebuild(u.notifiers)}})):p.push(o.createElement(O,{label:a,target:i.props.block,globalState:i.props.globalState,propertyName:t,step:Math.abs(u.max-u.min)/100,minimum:Math.min(u.min,u.max),maximum:u.max,onChange:function(){return e.forceRebuild(u.notifiers)}}));break;case s.PropertyTypeForEdition.Vector2:p.push(o.createElement(Z,{globalState:i.props.globalState,label:a,propertyName:t,target:i.props.block,onChange:function(){return e.forceRebuild(u.notifiers)}}));break;case s.PropertyTypeForEdition.List:p.push(o.createElement(ue,{label:a,options:u.options,target:i.props.block,propertyName:t,onSelect:function(){return e.forceRebuild(u.notifiers)}}))}},i=this,l=0,c=t;l<c.length;l++){var u=c[l];a(u.propertyName,u.displayName,u.type,u.groupName,u.options)}return o.createElement(o.Fragment,null,r.map((function(e){return o.createElement(m,{title:e},n[e])})))},t}(o.Component),be=n(51),ye=n(74),xe=n(75),we=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName],o="Color4"===r.getClassName()?r.clone():new s.Color4(r.r,r.g,r.b,1);return n.state={isExpanded:!1,color:o},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName],r="Color4"===n.getClassName()?n:new s.Color4(n.r,n.g,n.b,1);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=s.Color4.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:this.props.target[this.props.propertyName]}),this.props.onChange&&this.props.onChange()},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.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.updateStateA=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].a=e,this.state.color.a=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?xe:ye;return o.createElement("div",{className:"color3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"color3"},o.createElement(ee,{globalState:this.props.globalState,value:this.state.color,onColorChanged:function(t){e.onChange(t)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement("img",{src:be,alt:""})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},o.createElement("img",{src:t,alt:""}))),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(N,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}}),o.createElement(N,{globalState:this.props.globalState,label:"a",value:this.state.color.a,onChange:function(t){return e.updateStateA(t)}})))},t}(o.Component),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(we,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Ce=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.block;this.onValueChangedObserver=t.onValueChangedObservable.add((function(){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}))},t.prototype.componentWillUnmount=function(){var e=this.props.block;this.onValueChangedObserver&&(e.onValueChangedObservable.remove(this.onValueChangedObserver),this.onValueChangedObserver=null)},t.prototype.renderValue=function(e){var t=this,n=this.props.block;switch(n.type){case s.NodeMaterialBlockConnectionPointTypes.Float:var r=isNaN(n.min)||isNaN(n.max)||n.min===n.max;return o.createElement(o.Fragment,null,o.createElement(E,{label:"Is boolean",target:n,propertyName:"isBoolean"}),n.isBoolean&&o.createElement(E,{label:"Value",isSelected:function(){return 1===n.value},onSelect:function(e){n.value=e?1:0,n.isConstant&&t.props.globalState.onRebuildRequiredObservable.notifyObservers(),t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),!n.isBoolean&&o.createElement(P,{globalState:this.props.globalState,label:"Min",target:n,propertyName:"min",onChange:function(){return t.forceUpdate()}}),!n.isBoolean&&o.createElement(P,{globalState:this.props.globalState,label:"Max",target:n,propertyName:"max",onChange:function(){return t.forceUpdate()}}),!n.isBoolean&&r&&o.createElement(T,{globalState:e,inputBlock:n}),!n.isBoolean&&!r&&o.createElement(O,{label:"Value",globalState:this.props.globalState,target:n,propertyName:"value",step:Math.abs(n.max-n.min)/100,minimum:Math.min(n.min,n.max),maximum:n.max,onChange:function(){n.isConstant&&t.props.globalState.onRebuildRequiredObservable.notifyObservers()}}));case s.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(Q,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement(o.Fragment,null,o.createElement(ae,{globalState:e,inputBlock:n}),o.createElement(E,{label:"Convert to gamma space",propertyName:"convertToGammaSpace",target:this.props.block,onValueChanged:function(){t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(E,{label:"Convert to linear space",propertyName:"convertToLinearSpace",target:this.props.block,onValueChanged:function(){t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}));case s.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(o.Fragment,null,o.createElement(_e,{globalState:e,inputBlock:n}),o.createElement(E,{label:"Convert to gamma space",propertyName:"convertToGammaSpace",target:this.props.block,onValueChanged:function(){t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(E,{label:"Convert to linear space",propertyName:"convertToLinearSpace",target:this.props.block,onValueChanged:function(){t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}));case s.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(se,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(ce,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement(de,{globalState:e,inputBlock:n})}return null},t.prototype.setDefaultValue=function(){this.props.block.setDefaultValue()},t.prototype.render=function(){var e=this,t=this.props.block,n=[],r=[],a=[];switch(t.type){case s.NodeMaterialBlockConnectionPointTypes.Float:a=[{label:"None",value:s.AnimatedInputBlockTypes.None},{label:"Time",value:s.AnimatedInputBlockTypes.Time}],n=[{label:"Delta time",value:s.NodeMaterialSystemValues.DeltaTime}];break;case s.NodeMaterialBlockConnectionPointTypes.Matrix:n=[{label:"World",value:s.NodeMaterialSystemValues.World},{label:"World x View",value:s.NodeMaterialSystemValues.WorldView},{label:"World x ViewxProjection",value:s.NodeMaterialSystemValues.WorldViewProjection},{label:"View",value:s.NodeMaterialSystemValues.View},{label:"View x Projection",value:s.NodeMaterialSystemValues.ViewProjection},{label:"Projection",value:s.NodeMaterialSystemValues.Projection}];break;case s.NodeMaterialBlockConnectionPointTypes.Color3:n=[{label:"Fog color",value:s.NodeMaterialSystemValues.FogColor}];break;case s.NodeMaterialBlockConnectionPointTypes.Color4:r=[{label:"color",value:"color"}];break;case s.NodeMaterialBlockConnectionPointTypes.Vector2:r=[{label:"uv",value:"uv"},{label:"uv2",value:"uv2"}];break;case s.NodeMaterialBlockConnectionPointTypes.Vector3:n=[{label:"Camera position",value:s.NodeMaterialSystemValues.CameraPosition}],r=[{label:"position",value:"position"},{label:"normal",value:"normal"},{label:"tangent",value:"tangent"}];break;case s.NodeMaterialBlockConnectionPointTypes.Vector4:r=[{label:"matricesIndices",value:"matricesIndices"},{label:"matricesWeights",value:"matricesWeights"}]}var i=[{label:"User-defined",value:0}];r.length>0&&i.push({label:"Mesh attribute",value:1}),n.length>0&&i.push({label:"System value",value:2});return o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},t.isUniform&&!t.isSystemValue&&t.animationType===s.AnimatedInputBlockTypes.None&&o.createElement(ue,{label:"Type",options:[{label:"None",value:0},{label:"Visible in the inspector",value:1},{label:"Constant",value:2}],target:t,noDirectUpdate:!0,getSelection:function(e){return e.visibleInInspector?1:e.isConstant?2:0},onSelect:function(n){switch(n){case 0:t.visibleInInspector=!1,t.isConstant=!1;break;case 1:t.visibleInInspector=!0,t.isConstant=!1;break;case 2:t.visibleInInspector=!1,t.isConstant=!0}e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.visibleInInspector&&o.createElement(fe,{globalState:this.props.globalState,label:"Group",propertyName:"groupInInspector",target:this.props.block,onChange:function(){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),o.createElement(ue,{label:"Mode",options:i,target:t,noDirectUpdate:!0,getSelection:function(e){return e.isAttribute?1:e.isSystemValue?2:0},onSelect:function(o){switch(o){case 0:t.isUniform=!0,t.setAsSystemValue(null),e.setDefaultValue();break;case 1:t.setAsAttribute(r[0].value);break;case 2:t.setAsSystemValue(n[0].value)}e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isAttribute&&o.createElement(ue,{label:"Attribute",valuesAreStrings:!0,options:r,target:t,propertyName:"name",onSelect:function(n){t.setAsAttribute(n),e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&a.length>0&&o.createElement(ue,{label:"Animation type",options:a,target:t,propertyName:"animationType",onSelect:function(t){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&!t.isSystemValue&&t.animationType===s.AnimatedInputBlockTypes.None&&this.renderValue(this.props.globalState),t.isUniform&&t.isSystemValue&&o.createElement(ue,{label:"System value",options:n,target:t,propertyName:"systemValue",onSelect:function(n){t.setAsSystemValue(n),e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),ke=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(E,{label:"Transform as direction",onSelect:function(t){var n=e.props.block;n.complementW=t?0:1,e.props.globalState.onRebuildRequiredObservable.notifyObservers()},isSelected:function(){return 0===e.props.block.complementW}})))},t}(o.Component),Se=n(73),Ee=n(51),Pe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={gradient:t.step.step},n}return u(t,e),t.prototype.updateColor=function(e){this.props.step.color=s.Color3.FromHexString(e),this.props.onUpdateStep(),this.forceUpdate()},t.prototype.updateStep=function(e){this.props.step.step=e,this.setState({gradient:e}),this.props.onUpdateStep()},t.prototype.onPointerUp=function(){this.props.onCheckForReOrder()},t.prototype.render=function(){var e=this,t=this.props.step;return o.createElement("div",{className:"gradient-step"},o.createElement("div",{className:"step"},"#"+this.props.lineIndex),o.createElement("div",{className:"color"},o.createElement(ee,{value:t.color,globalState:this.props.globalState,onColorChanged:function(t){e.updateColor(t)}})),o.createElement("div",{className:"step-value"},o.createElement(P,{globalState:this.props.globalState,smallUI:!0,label:"",target:t,propertyName:"step",min:0,max:1,onEnter:function(){e.props.onUpdateStep(),e.props.onCheckForReOrder(),e.forceUpdate()}})),o.createElement("div",{className:"step-slider"},o.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.step,onPointerUp:function(t){return e.onPointerUp()},onChange:function(t){return e.updateStep(parseFloat(t.target.value))}})),o.createElement("div",{className:"gradient-copy",onClick:function(){e.props.onCopy&&e.props.onCopy()},title:"Copy Step"},o.createElement("img",{className:"img",src:Ee})),o.createElement("div",{className:"gradient-delete",onClick:function(){return e.props.onDelete()},title:"Delete Step"},o.createElement("img",{className:"img",src:Se})))},t}(o.Component),Te=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.block;this.onValueChangedObserver=t.onValueChangedObservable.add((function(){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}))},t.prototype.componentWillUnmount=function(){var e=this.props.block;this.onValueChangedObserver&&(e.onValueChangedObservable.remove(this.onValueChangedObserver),this.onValueChangedObserver=null)},t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.deleteStep=function(e){var t=this.props.block,n=t.colorSteps.indexOf(e);n>-1&&(t.colorSteps.splice(n,1),t.colorStepsUpdated(),this.forceRebuild(),this.forceUpdate())},t.prototype.copyStep=function(e){var t=this.props.block,n=new s.GradientBlockColorStep(1,e.color);t.colorSteps.push(n),t.colorStepsUpdated(),this.forceRebuild(),this.forceUpdate()},t.prototype.addNewStep=function(){var e=this.props.block,t=new s.GradientBlockColorStep(1,s.Color3.White());e.colorSteps.push(t),e.colorStepsUpdated(),this.forceRebuild(),this.forceUpdate()},t.prototype.checkForReOrder=function(){var e=this.props.block;e.colorSteps.sort((function(e,t){return e.step===t.step?0:e.step>t.step?1:-1})),e.colorStepsUpdated(),this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.block;return o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(ue,{label:"Type",options:[{label:"None",value:0},{label:"Visible in the inspector",value:1}],target:this.props.block,noDirectUpdate:!0,getSelection:function(e){return e.visibleInInspector?1:e.isConstant?2:0},onSelect:function(t){switch(t){case 0:e.props.block.visibleInInspector=!1;break;case 1:e.props.block.visibleInInspector=!0}e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})),o.createElement(m,{title:"STEPS"},o.createElement(_,{label:"Add new step",onClick:function(){return e.addNewStep()}}),t.colorSteps.map((function(t,n){return o.createElement(Pe,{globalState:e.props.globalState,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateStep:function(){return e.forceRebuild()},key:"step-"+n,lineIndex:n,step:t,onCopy:function(){return e.copyStep(t)},onDelete:function(){return e.deleteStep(t)}})}))))},t}(o.Component),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this,t=this.props.globalState.nodeMaterial.getScene(),n=t.lights.map((function(e){return{label:e.name,value:e.name}}));n.splice(0,0,{label:"All",value:""});var r=this.props.block;return o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(ue,{label:"Light",defaultIfNull:0,noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:r,propertyName:"name",onSelect:function(n){r.light=""===n?null:t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this,t=this.props.globalState.nodeMaterial.getScene(),n=t.lights.map((function(e){return{label:e.name,value:e.name}})),r=this.props.block;return o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(ue,{label:"Light",noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:r,propertyName:"name",onSelect:function(n){r.light=t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Be=function(e){function t(t){var n=e.call(this,t)||this,r=n.textureBlock.texture;return n.state={isEmbedded:!r||"data"===r.name.substring(0,4),loadAsCubeTexture:r&&r.isCube,textureIsPrefiltered:!0},n}return u(t,e),Object.defineProperty(t.prototype,"textureBlock",{get:function(){return this.props.block},enumerable:!1,configurable:!0}),t.prototype.UNSAFE_componentWillUpdate=function(e,t){if(e.block!==this.props.block){var n=e.block.texture;t.isEmbedded=!n||"data"===n.name.substring(0,4),t.loadAsCubeTexture=n&&n.isCube}},t.prototype._generateRandomForCache=function(){return"xxxxxxxxxxxxxxxxxxxx".replace(/[x]/g,(function(e){return(10*Math.random()|0).toString()}))},t.prototype.updateAfterTextureLoad=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers(),this.forceUpdate()},t.prototype.removeTexture=function(){var e=this.textureBlock.texture;e&&(e.dispose(),e=null,this.textureBlock.texture=null),this.updateAfterTextureLoad()},t.prototype._prepareTexture=function(){var e=this.textureBlock.texture;e&&e.isCube!==this.state.loadAsCubeTexture&&(e.dispose(),e=null),e||(this.state.loadAsCubeTexture?(this.textureBlock.texture=new s.CubeTexture("",this.props.globalState.nodeMaterial.getScene()),(e=this.textureBlock.texture).coordinatesMode=s.Texture.CUBIC_MODE):(this.textureBlock.texture=new s.Texture(null,this.props.globalState.nodeMaterial.getScene(),!1,this.textureBlock instanceof s.ReflectionTextureBlock||this.textureBlock instanceof s.ReflectionBlock||this.textureBlock instanceof s.RefractionBlock||this.props.globalState.mode===s.NodeMaterialModes.PostProcess),(e=this.textureBlock.texture).coordinatesMode=s.Texture.EQUIRECTANGULAR_MODE))},t.prototype.replaceTexture=function(e){var t=this;this._prepareTexture();var n=this.textureBlock.texture;s.Tools.ReadFile(e,(function(r){var o=new Blob([r],{type:"octet/stream"}),a=new FileReader;a.readAsDataURL(o),a.onloadend=function(){var r=a.result,o=void 0;e.name.toLowerCase().indexOf(".dds")>0?o=".dds":e.name.toLowerCase().indexOf(".env")>0&&(o=".env"),n.isCube?n.updateURL(r,o,(function(){return t.updateAfterTextureLoad()}),t.state.textureIsPrefiltered):n.updateURL(r,o,(function(){return t.updateAfterTextureLoad()}))}}),void 0,!0)},t.prototype.replaceTextureWithUrl=function(e){var t=this;this._prepareTexture();var n=this.textureBlock.texture;if(n.isCube||this.textureBlock instanceof s.ReflectionTextureBlock||this.textureBlock instanceof s.ReflectionBlock||this.textureBlock instanceof s.RefractionBlock){var r=void 0;e.toLowerCase().indexOf(".dds")>0?r=".dds":e.toLowerCase().indexOf(".env")>0&&(r=".env"),n.updateURL(e,r,(function(){return t.updateAfterTextureLoad()}),this.state.textureIsPrefiltered)}else n.updateURL(e,null,(function(){return t.updateAfterTextureLoad()}))},t.prototype.render=function(){var e=this,t="",n=this.textureBlock.texture;n&&n.name&&"data"!==n.name.substring(0,4)&&(t=n.name),t=t.replace(/\?nocache=\d+/,"");var r=this.textureBlock instanceof s.ReflectionTextureBlock||this.textureBlock instanceof s.ReflectionBlock||this.textureBlock instanceof s.RefractionBlock,a=this.textureBlock instanceof s.CurrentScreenBlock||this.textureBlock instanceof s.ParticleTextureBlock,i=this.textureBlock instanceof s.ReflectionBlock,l=[{label:"Cubic",value:s.Texture.CUBIC_MODE},{label:"Equirectangular",value:s.Texture.EQUIRECTANGULAR_MODE},{label:"Explicit",value:s.Texture.EXPLICIT_MODE},{label:"Fixed equirectangular",value:s.Texture.FIXED_EQUIRECTANGULAR_MODE},{label:"Fixed mirrored equirectangular",value:s.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE},{label:"Planar",value:s.Texture.PLANAR_MODE},{label:"Projection",value:s.Texture.PROJECTION_MODE},{label:"Skybox",value:s.Texture.SKYBOX_MODE},{label:"Spherical",value:s.Texture.SPHERICAL_MODE}];return o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(E,{label:"Auto select UV",propertyName:"autoSelectUV",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),!r&&o.createElement(E,{label:"Convert to gamma space",propertyName:"convertToGammaSpace",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),!r&&o.createElement(E,{label:"Convert to linear space",propertyName:"convertToLinearSpace",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&i&&o.createElement(E,{label:"Is in gamma space",propertyName:"gammaSpace",target:n,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&r&&o.createElement(ue,{label:"Reflection mode",options:l,target:n,propertyName:"coordinatesMode",onSelect:function(t){n.coordinatesMode=t,e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(E,{label:"Clamp U",isSelected:function(){return n.wrapU===s.Texture.CLAMP_ADDRESSMODE},onSelect:function(t){n.wrapU=t?s.Texture.CLAMP_ADDRESSMODE:s.Texture.WRAP_ADDRESSMODE,e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(E,{label:"Clamp V",isSelected:function(){return n.wrapV===s.Texture.CLAMP_ADDRESSMODE},onSelect:function(t){n.wrapV=t?s.Texture.CLAMP_ADDRESSMODE:s.Texture.WRAP_ADDRESSMODE,e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(P,{globalState:this.props.globalState,label:"Offset U",target:n,propertyName:"uOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(P,{globalState:this.props.globalState,label:"Offset V",target:n,propertyName:"vOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(P,{globalState:this.props.globalState,label:"Scale U",target:n,propertyName:"uScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(P,{globalState:this.props.globalState,label:"Scale V",target:n,propertyName:"vScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(O,{label:"Rotation U",target:n,globalState:this.props.globalState,propertyName:"uAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(O,{label:"Rotation V",target:n,globalState:this.props.globalState,propertyName:"vAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(O,{label:"Rotation W",target:n,globalState:this.props.globalState,propertyName:"wAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(m,{title:"SOURCE"},o.createElement(E,{label:"Embed static texture",isSelected:function(){return e.state.isEmbedded},onSelect:function(t){e.setState({isEmbedded:t}),e.textureBlock.texture=null,e.updateAfterTextureLoad()}}),r&&o.createElement(E,{label:"Load as cube texture",isSelected:function(){return e.state.loadAsCubeTexture},onSelect:function(t){return e.setState({loadAsCubeTexture:t})}}),r&&this.state.loadAsCubeTexture&&o.createElement(E,{label:" Texture is prefiltered",isSelected:function(){return e.state.textureIsPrefiltered},onSelect:function(t){return e.setState({textureIsPrefiltered:t})}}),this.state.isEmbedded&&o.createElement(k,{label:"Upload",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),!this.state.isEmbedded&&o.createElement(fe,{label:"Link",globalState:this.props.globalState,value:t,onChange:function(t){return e.replaceTextureWithUrl(t)}}),!this.state.isEmbedded&&t&&o.createElement(_,{label:"Refresh",onClick:function(){return e.replaceTextureWithUrl(t+"?nocache="+e._generateRandomForCache())}}),n&&o.createElement(_,{label:"Remove",onClick:function(){return e.removeTexture()}})),o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}))},t}(o.Component),Le=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this,t=this.props.block,n=[{label:"Cos",value:s.TrigonometryBlockOperations.Cos},{label:"Sin",value:s.TrigonometryBlockOperations.Sin},{label:"Abs",value:s.TrigonometryBlockOperations.Abs},{label:"Exp",value:s.TrigonometryBlockOperations.Exp},{label:"Exp2",value:s.TrigonometryBlockOperations.Exp2},{label:"Round",value:s.TrigonometryBlockOperations.Round},{label:"Ceiling",value:s.TrigonometryBlockOperations.Ceiling},{label:"Floor",value:s.TrigonometryBlockOperations.Floor},{label:"ArcCos",value:s.TrigonometryBlockOperations.ArcCos},{label:"ArcSin",value:s.TrigonometryBlockOperations.ArcSin},{label:"ArcTan",value:s.TrigonometryBlockOperations.ArcTan},{label:"Tan",value:s.TrigonometryBlockOperations.Tan},{label:"Log",value:s.TrigonometryBlockOperations.Log},{label:"Fract",value:s.TrigonometryBlockOperations.Fract},{label:"Sign",value:s.TrigonometryBlockOperations.Sign},{label:"Radians to degrees",value:s.TrigonometryBlockOperations.Degrees},{label:"Degrees to radians",value:s.TrigonometryBlockOperations.Radians}];return n.sort((function(e,t){return e.label.localeCompare(t.label)})),o.createElement("div",null,o.createElement(ge,{globalState:this.props.globalState,block:this.props.block}),o.createElement(m,{title:"PROPERTIES"},o.createElement(ue,{label:"Operation",options:n,target:t,propertyName:"operation",onSelect:function(t){e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()}})))},t}(o.Component),Me=function(){function e(){}return e.RegisteredControls={},e}();Me.RegisteredControls.TransformBlock=ke,Me.RegisteredControls.InputBlock=Ce,Me.RegisteredControls.GradientBlock=Te,Me.RegisteredControls.LightBlock=Oe,Me.RegisteredControls.LightInformationBlock=Ne,Me.RegisteredControls.TextureBlock=Be,Me.RegisteredControls.ReflectionTextureBlock=Be,Me.RegisteredControls.ReflectionBlock=Be,Me.RegisteredControls.RefractionBlock=Be,Me.RegisteredControls.CurrentScreenBlock=Be,Me.RegisteredControls.ParticleTextureBlock=Be,Me.RegisteredControls.TrigonometryBlock=Le;var Re=function(){function e(){}return e.GetBlockFromString=function(e,t,n){switch(e){case"DesaturateBlock":return new s.DesaturateBlock("Desaturate");case"RefractBlock":return new s.RefractBlock("Refract");case"ReflectBlock":return new s.ReflectBlock("Reflect");case"DerivativeBlock":return new s.DerivativeBlock("Derivative");case"Rotate2dBlock":return new s.Rotate2dBlock("Rotate2d");case"NormalBlendBlock":return new s.NormalBlendBlock("NormalBlend");case"WorleyNoise3DBlock":return new s.WorleyNoise3DBlock("WorleyNoise3D");case"SimplexPerlin3DBlock":return new s.SimplexPerlin3DBlock("SimplexPerlin3D");case"BonesBlock":return new s.BonesBlock("Bones");case"InstancesBlock":return new s.InstancesBlock("Instances");case"MorphTargetsBlock":return new s.MorphTargetsBlock("MorphTargets");case"DiscardBlock":return new s.DiscardBlock("Discard");case"ImageProcessingBlock":return new s.ImageProcessingBlock("ImageProcessing");case"ColorMergerBlock":return new s.ColorMergerBlock("ColorMerger");case"VectorMergerBlock":return new s.VectorMergerBlock("VectorMerger");case"ColorSplitterBlock":return new s.ColorSplitterBlock("ColorSplitter");case"VectorSplitterBlock":return new s.VectorSplitterBlock("VectorSplitter");case"TextureBlock":return new s.TextureBlock("Texture",n.mode===s.NodeMaterialModes.Particle);case"ReflectionTextureBlock":return new s.ReflectionTextureBlock("Reflection texture");case"LightBlock":return new s.LightBlock("Lights");case"FogBlock":return new s.FogBlock("Fog");case"VertexOutputBlock":return new s.VertexOutputBlock("VertexOutput");case"FragmentOutputBlock":return new s.FragmentOutputBlock("FragmentOutput");case"AddBlock":return new s.AddBlock("Add");case"ClampBlock":return new s.ClampBlock("Clamp");case"ScaleBlock":return new s.ScaleBlock("Scale");case"CrossBlock":return new s.CrossBlock("Cross");case"DotBlock":return new s.DotBlock("Dot");case"PowBlock":return new s.PowBlock("Pow");case"MultiplyBlock":return new s.MultiplyBlock("Multiply");case"TransformBlock":return new s.TransformBlock("Transform");case"TrigonometryBlock":return new s.TrigonometryBlock("Trigonometry");case"RemapBlock":return new s.RemapBlock("Remap");case"NormalizeBlock":return new s.NormalizeBlock("Normalize");case"FresnelBlock":return new s.FresnelBlock("Fresnel");case"LerpBlock":return new s.LerpBlock("Lerp");case"NLerpBlock":return new s.NLerpBlock("NLerp");case"DivideBlock":return new s.DivideBlock("Divide");case"SubtractBlock":return new s.SubtractBlock("Subtract");case"ModBlock":return new s.ModBlock("Mod");case"StepBlock":return new s.StepBlock("Step");case"SmoothStepBlock":return new s.SmoothStepBlock("Smooth step");case"OneMinusBlock":return new s.OneMinusBlock("One minus");case"ReciprocalBlock":return new s.ReciprocalBlock("Reciprocal");case"ViewDirectionBlock":return new s.ViewDirectionBlock("View direction");case"LightInformationBlock":var r=new s.LightInformationBlock("Light information");return r.light=t.lights.length?t.lights[0]:null,r;case"MaxBlock":return new s.MaxBlock("Max");case"MinBlock":return new s.MinBlock("Min");case"LengthBlock":return new s.LengthBlock("Length");case"DistanceBlock":return new s.DistanceBlock("Distance");case"NegateBlock":return new s.NegateBlock("Negate");case"PerturbNormalBlock":return new s.PerturbNormalBlock("Perturb normal");case"RandomNumberBlock":return new s.RandomNumberBlock("Random number");case"ReplaceColorBlock":return new s.ReplaceColorBlock("Replace color");case"PosterizeBlock":return new s.PosterizeBlock("Posterize");case"ArcTan2Block":return new s.ArcTan2Block("ArcTan2");case"GradientBlock":return new s.GradientBlock("Gradient");case"FrontFacingBlock":return new s.FrontFacingBlock("Front facing");case"CosBlock":var o=new s.TrigonometryBlock("Cos");return o.operation=s.TrigonometryBlockOperations.Cos,o;case"SinBlock":var a=new s.TrigonometryBlock("Sin");return a.operation=s.TrigonometryBlockOperations.Sin,a;case"AbsBlock":var i=new s.TrigonometryBlock("Abs");return i.operation=s.TrigonometryBlockOperations.Abs,i;case"SqrtBlock":var l=new s.TrigonometryBlock("Sqrt");return l.operation=s.TrigonometryBlockOperations.Sqrt,l;case"ArcCosBlock":var c=new s.TrigonometryBlock("ArcCos");return c.operation=s.TrigonometryBlockOperations.ArcCos,c;case"ArcSinBlock":var u=new s.TrigonometryBlock("ArcSin");return u.operation=s.TrigonometryBlockOperations.ArcSin,u;case"TanBlock":var p=new s.TrigonometryBlock("Tan");return p.operation=s.TrigonometryBlockOperations.Tan,p;case"ArcTanBlock":var d=new s.TrigonometryBlock("ArcTan");return d.operation=s.TrigonometryBlockOperations.ArcTan,d;case"FractBlock":var f=new s.TrigonometryBlock("Fract");return f.operation=s.TrigonometryBlockOperations.Fract,f;case"SignBlock":var h=new s.TrigonometryBlock("Sign");return h.operation=s.TrigonometryBlockOperations.Sign,h;case"LogBlock":var m=new s.TrigonometryBlock("Log");return m.operation=s.TrigonometryBlockOperations.Log,m;case"ExpBlock":var g=new s.TrigonometryBlock("Exp");return g.operation=s.TrigonometryBlockOperations.Exp,g;case"Exp2Block":var v=new s.TrigonometryBlock("Exp2");return v.operation=s.TrigonometryBlockOperations.Exp2,v;case"DegreesToRadiansBlock":var b=new s.TrigonometryBlock("Degrees to radians");return b.operation=s.TrigonometryBlockOperations.Radians,b;case"RadiansToDegreesBlock":var y=new s.TrigonometryBlock("Radians to degrees");return y.operation=s.TrigonometryBlockOperations.Degrees,y;case"RoundBlock":var x=new s.TrigonometryBlock("Round");return x.operation=s.TrigonometryBlockOperations.Round,x;case"CeilingBlock":var w=new s.TrigonometryBlock("Ceiling");return w.operation=s.TrigonometryBlockOperations.Ceiling,w;case"FloorBlock":var _=new s.TrigonometryBlock("Floor");return _.operation=s.TrigonometryBlockOperations.Floor,_;case"SawToothWaveBlock":var C=new s.WaveBlock("SawTooth wave");return C.kind=s.WaveBlockKind.SawTooth,C;case"SquareWaveBlock":var k=new s.WaveBlock("Square wave");return k.kind=s.WaveBlockKind.Square,k;case"TriangleWaveBlock":var S=new s.WaveBlock("Triangle wave");return S.kind=s.WaveBlockKind.Triangle,S;case"WorldMatrixBlock":return(Y=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World),Y;case"WorldViewMatrixBlock":var E=new s.InputBlock("World x View");return E.setAsSystemValue(s.NodeMaterialSystemValues.WorldView),E;case"WorldViewProjectionMatrixBlock":var P=new s.InputBlock("World x View x Projection");return P.setAsSystemValue(s.NodeMaterialSystemValues.WorldViewProjection),P;case"ViewMatrixBlock":var T=new s.InputBlock("View");return T.setAsSystemValue(s.NodeMaterialSystemValues.View),T;case"ViewProjectionMatrixBlock":var O=new s.InputBlock("View x Projection");return O.setAsSystemValue(s.NodeMaterialSystemValues.ViewProjection),O;case"ProjectionMatrixBlock":var N=new s.InputBlock("Projection");return N.setAsSystemValue(s.NodeMaterialSystemValues.Projection),N;case"CameraPositionBlock":var B=new s.InputBlock("Camera position");return B.setAsSystemValue(s.NodeMaterialSystemValues.CameraPosition),B;case"FogColorBlock":var L=new s.InputBlock("Fog color");return L.setAsSystemValue(s.NodeMaterialSystemValues.FogColor),L;case"PositionBlock":return(M=new s.InputBlock("position")).setAsAttribute("position"),M;case"ScreenPositionBlock":var M;return(M=new s.InputBlock("position")).setAsAttribute("position2d"),M;case"UVBlock":var R=new s.InputBlock("uv");return R.setAsAttribute("uv"),R;case"ColorBlock":var I=new s.InputBlock("color");return I.setAsAttribute("color"),I;case"NormalBlock":var D=new s.InputBlock("normal");return D.setAsAttribute("normal"),D;case"TangentBlock":var F=new s.InputBlock("tangent");return F.setAsAttribute("tangent"),F;case"MatrixIndicesBlock":var A=new s.InputBlock("matricesIndices");return A.setAsAttribute("matricesIndices"),A;case"MatrixWeightsBlock":var z=new s.InputBlock("matricesWeights");return z.setAsAttribute("matricesWeights"),z;case"TimeBlock":var j=new s.InputBlock("Time",void 0,s.NodeMaterialBlockConnectionPointTypes.Float);return j.animationType=s.AnimatedInputBlockTypes.Time,j;case"DeltaTimeBlock":var U=new s.InputBlock("Delta time");return U.setAsSystemValue(s.NodeMaterialSystemValues.DeltaTime),U;case"WorldPositionBlock":var V=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"position"===e.name}));V||(V=new s.InputBlock("position")).setAsAttribute("position"),(Y=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===s.NodeMaterialSystemValues.World})))||(Y=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World);var W=new s.TransformBlock("World position");return V.connectTo(W),Y.connectTo(W),W;case"WorldNormalBlock":var H=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"normal"===e.name}));H||(H=new s.InputBlock("normal")).setAsAttribute("normal"),(Y=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===s.NodeMaterialSystemValues.World})))||(Y=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World);W=new s.TransformBlock("World normal");return H.connectTo(W),Y.connectTo(W),W;case"WorldTangentBlock":var Y,X=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"tangent"===e.name}));X||(X=new s.InputBlock("tangent")).setAsAttribute("tangent"),(Y=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===s.NodeMaterialSystemValues.World})))||(Y=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World);W=new s.TransformBlock("World tangent");return X.connectTo(W),Y.connectTo(W),W;case"PBRMetallicRoughnessBlock":return new s.PBRMetallicRoughnessBlock("PBRMetallicRoughness");case"SheenBlock":return new s.SheenBlock("Sheen");case"AnisotropyBlock":return new s.AnisotropyBlock("Anisotropy");case"ReflectionBlock":return new s.ReflectionBlock("Reflection");case"ClearCoatBlock":return new s.ClearCoatBlock("ClearCoat");case"RefractionBlock":return new s.RefractionBlock("Refraction");case"SubSurfaceBlock":return new s.SubSurfaceBlock("SubSurface");case"CurrentScreenBlock":return new s.CurrentScreenBlock("CurrentScreen");case"ParticleUVBlock":var G=new s.InputBlock("uv");return G.setAsAttribute("particle_uv"),G;case"ParticleTextureBlock":return new s.ParticleTextureBlock("ParticleTexture");case"ParticleColorBlock":var q=new s.InputBlock("Color");return q.setAsAttribute("particle_color"),q;case"ParticleTextureMaskBlock":var Z=new s.InputBlock("TextureMask");return Z.setAsAttribute("particle_texturemask"),Z;case"ParticlePositionWorldBlock":var Q=new s.InputBlock("PositionWorld");return Q.setAsAttribute("particle_positionw"),Q;case"ParticleRampGradientBlock":return new s.ParticleRampGradientBlock("ParticleRampGradient");case"ParticleBlendMultiplyBlock":return new s.ParticleBlendMultiplyBlock("ParticleBlendMultiply");case"FragCoordBlock":return new s.FragCoordBlock("FragCoord");case"ScreenSizeBlock":return new s.ScreenSizeBlock("ScreenSize")}return null},e.GetColorFromConnectionNodeType=function(e){var t="#880000";switch(e){case s.NodeMaterialBlockConnectionPointTypes.Float:t="#cb9e27";break;case s.NodeMaterialBlockConnectionPointTypes.Vector2:t="#16bcb1";break;case s.NodeMaterialBlockConnectionPointTypes.Vector3:case s.NodeMaterialBlockConnectionPointTypes.Color3:t="#b786cb";break;case s.NodeMaterialBlockConnectionPointTypes.Vector4:case s.NodeMaterialBlockConnectionPointTypes.Color4:t="#be5126";break;case s.NodeMaterialBlockConnectionPointTypes.Matrix:t="#591990";break;case s.NodeMaterialBlockConnectionPointTypes.Object:t="#6174FA"}return t},e.GetConnectionNodeTypeFromString=function(e){switch(e){case"Float":return s.NodeMaterialBlockConnectionPointTypes.Float;case"Vector2":return s.NodeMaterialBlockConnectionPointTypes.Vector2;case"Vector3":return s.NodeMaterialBlockConnectionPointTypes.Vector3;case"Vector4":return s.NodeMaterialBlockConnectionPointTypes.Vector4;case"Matrix":return s.NodeMaterialBlockConnectionPointTypes.Matrix;case"Color3":return s.NodeMaterialBlockConnectionPointTypes.Color3;case"Color4":return s.NodeMaterialBlockConnectionPointTypes.Color4}return s.NodeMaterialBlockConnectionPointTypes.AutoDetect},e.GetStringFromConnectionNodeType=function(e){switch(e){case s.NodeMaterialBlockConnectionPointTypes.Float:return"Float";case s.NodeMaterialBlockConnectionPointTypes.Vector2:return"Vector2";case s.NodeMaterialBlockConnectionPointTypes.Vector3:return"Vector3";case s.NodeMaterialBlockConnectionPointTypes.Vector4:return"Vector4";case s.NodeMaterialBlockConnectionPointTypes.Color3:return"Color3";case s.NodeMaterialBlockConnectionPointTypes.Color4:return"Color4";case s.NodeMaterialBlockConnectionPointTypes.Matrix:return"Matrix"}return""},e}(),Ie={position2d:"position",particle_uv:"uv",particle_color:"color",particle_texturemask:"textureMask",particle_positionw:"positionW"},De={position2d:"screen",particle_uv:"particle",particle_color:"particle",particle_texturemask:"particle",particle_positionw:"particle"},Fe=function(){function e(){}return e.prototype.getHeaderClass=function(e){var t=e;return t.isConstant?"constant":t.visibleInInspector?"inspector":""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){var t=e,n=t.name+" ("+C.GetBaseType(t.output.type)+")";return t.isAttribute&&(n=C.GetBaseType(t.output.type)),n},e.prototype.getBackgroundColor=function(e){var t="",n=e;switch(n.type){case s.NodeMaterialBlockConnectionPointTypes.Color3:case s.NodeMaterialBlockConnectionPointTypes.Color4:if(n.value){t=n.value.toHexString();break}default:t=Re.GetColorFromConnectionNodeType(n.type)}return t},e.prototype.updatePreviewContent=function(e,t){var n,r,o="",a=e;if(a.isAttribute){var i=null!==(n=Ie[a.name])&&void 0!==n?n:a.name;o=(null!==(r=De[a.name])&&void 0!==r?r:"mesh")+"."+i}else if(a.isSystemValue)switch(a.systemValue){case s.NodeMaterialSystemValues.World:o="World";break;case s.NodeMaterialSystemValues.WorldView:o="World x View";break;case s.NodeMaterialSystemValues.WorldViewProjection:o="World x View x Projection";break;case s.NodeMaterialSystemValues.View:o="View";break;case s.NodeMaterialSystemValues.ViewProjection:o="View x Projection";break;case s.NodeMaterialSystemValues.Projection:o="Projection";break;case s.NodeMaterialSystemValues.CameraPosition:o="Camera position";break;case s.NodeMaterialSystemValues.FogColor:o="Fog color";break;case s.NodeMaterialSystemValues.DeltaTime:o="Delta time"}else switch(a.type){case s.NodeMaterialBlockConnectionPointTypes.Float:o=a.animationType!==s.AnimatedInputBlockTypes.None?s.AnimatedInputBlockTypes[a.animationType]:a.value.toFixed(2);break;case s.NodeMaterialBlockConnectionPointTypes.Vector2:var l=a.value;o="("+l.x.toFixed(2)+", "+l.y.toFixed(2)+")";break;case s.NodeMaterialBlockConnectionPointTypes.Vector3:var c=a.value;o="("+c.x.toFixed(2)+", "+c.y.toFixed(2)+", "+c.z.toFixed(2)+")";break;case s.NodeMaterialBlockConnectionPointTypes.Vector4:var u=a.value;o="("+u.x.toFixed(2)+", "+u.y.toFixed(2)+", "+u.z.toFixed(2)+", "+u.w.toFixed(2)+")"}t.innerHTML=o,t.classList.add("input-block")},e}(),Ae=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"rgb(106, 44, 131)"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("output-block")},e}(),ze=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#4086BB"},e.prototype.updatePreviewContent=function(e,t){var n=e;t.classList.add("clamp-block"),t.innerHTML="["+n.minimum+", "+n.maximum+"]"},e}(),je=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){var t=e.colorSteps.map((function(e){return"rgb("+255*e.color.r+", "+255*e.color.g+", "+255*e.color.b+") "+100*e.step+"%"}));return t.length?"linear-gradient(90deg, "+t.join(", ")+")":"black"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("gradient-block")},e}(),Ue=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#4086BB"},e.prototype._extractInputValue=function(e){var t=e.connectedPoint.ownerBlock;if(t.isInput){var n=t;if(n.isUniform&&!n.isSystemValue)return n.value}return"?"},e.prototype.updatePreviewContent=function(e,t){var n=e,r=n.sourceMin.isConnected?this._extractInputValue(n.sourceMin):n.sourceRange.x,o=n.sourceMax.isConnected?this._extractInputValue(n.sourceMax):n.sourceRange.y,a=n.targetMin.isConnected?this._extractInputValue(n.targetMin):n.targetRange.x,i=n.targetMax.isConnected?this._extractInputValue(n.targetMax):n.targetRange.y;t.classList.add("remap-block"),t.innerHTML="["+r+", "+o+"] -> ["+a+", "+i+"]"},e}(),Ve=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#405C86"},e.prototype.updatePreviewContent=function(e,t){var n=e;t.classList.add("trigonometry-block"),t.innerHTML=s.TrigonometryBlockOperations[n.operation]},e}(),We=function(e){function t(t){var n=e.call(this,t)||this;return n.state={displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0,face:0},n.canvasRef=o.createRef(),n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!0},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){t.UpdatePreview(this.canvasRef.current,this.props.texture,this.props.width,this.state,void 0,this.props.globalState)},t.UpdatePreview=function(e,n,r,o,a,i){!n.isReady()&&n._texture&&n._texture.onLoadedObservable.addOnce((function(){t.UpdatePreview(e,n,r,o,a,i)}));var l,c=n.getScene(),u=c.getEngine(),p=n.getSize(),d=p.width/p.height,f=r/d|1;if(n.isCube){var h=new s.PassCubePostProcess("pass",1,null,s.Texture.NEAREST_SAMPLINGMODE,u,!1,s.Constants.TEXTURETYPE_UNSIGNED_INT);h.face=o.face,l=h}else l=new s.PassPostProcess("pass",1,null,s.Texture.NEAREST_SAMPLINGMODE,u,!1,s.Constants.TEXTURETYPE_UNSIGNED_INT);if(!l.getEffect().isReady())return l.dispose(),void setTimeout((function(){return t.UpdatePreview(e,n,r,o,a,i)}),250);i&&(i.blockMutationUpdates=!0);var m=new s.RenderTargetTexture("temp",{width:r,height:f},c,!1);l.onApply=function(e){e.setTexture("textureSampler",n)};var g=m.getInternalTexture();if(g){c.postProcessManager.directRender([l],g);var v=4*r,b=f/2,y=u.readPixels(0,0,r,f);if(!(n.isCube||o.displayRed&&o.displayGreen&&o.displayBlue))for(var x=0;x<r*f*4;x+=4)if(o.displayRed||(y[x]=0),o.displayGreen||(y[x+1]=0),o.displayBlue||(y[x+2]=0),o.displayAlpha){var w=y[x+2];y[x]=w,y[x+1]=w,y[x+2]=w,y[x+2]=0}if(n.invertY||n.isCube)for(x=0;x<b;x++)for(var _=0;_<v;_++){var C=_+x*v,k=_+(f-x-1)*v,S=y[C];y[C]=y[k],y[k]=S}e.width=r,e.height=f;var E=e.getContext("2d");if(E){var P=E.createImageData(r,f);P.data.set(y),E.putImageData(P,0,0),a&&a()}u.unBindFramebuffer(g)}m.dispose(),l.dispose(),e.style.height=f+"px",i&&(i.blockMutationUpdates=!1)},t.prototype.render=function(){var e=this,t=this.props.texture;return o.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&o.createElement("div",{className:"control3D"},o.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),o.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),o.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),o.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),o.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),o.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&&o.createElement("div",{className:"control"},o.createElement("button",{className:this.state.displayRed&&!this.state.displayGreen?"red command selected":"red command",onClick:function(){return e.setState({displayRed:!0,displayGreen:!1,displayBlue:!1,displayAlpha:!1})}},"R"),o.createElement("button",{className:this.state.displayGreen&&!this.state.displayBlue?"green command selected":"green command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!0,displayBlue:!1,displayAlpha:!1})}},"G"),o.createElement("button",{className:this.state.displayBlue&&!this.state.displayAlpha?"blue command selected":"blue command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!1,displayBlue:!0,displayAlpha:!1})}},"B"),o.createElement("button",{className:this.state.displayAlpha&&!this.state.displayRed?"alpha command selected":"alpha command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!1,displayBlue:!1,displayAlpha:!0})}},"A"),o.createElement("button",{className:this.state.displayRed&&this.state.displayGreen?"all command selected":"all command",onClick:function(){return e.setState({displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0})}},"ALL")),o.createElement("canvas",{ref:this.canvasRef,className:"preview"}))},t}(o.Component),He=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"RefractionBlock"===e.getClassName()||"ReflectionBlock"===e.getClassName()?"#6174FA":"#323232"},e.prototype.updatePreviewContent=function(e,t){var n=this,r=e;this._previewCanvas||(t.classList.add("texture-block"),(e instanceof s.TextureBlock||e instanceof s.CurrentScreenBlock||e instanceof s.ParticleTextureBlock)&&t.classList.add("regular-texture-block"),this._previewCanvas=t.ownerDocument.createElement("canvas"),this._previewImage=t.ownerDocument.createElement("img"),t.appendChild(this._previewImage),this._previewImage.classList.add("empty")),r.texture?We.UpdatePreview(this._previewCanvas,r.texture,140,{face:0,displayRed:!0,displayAlpha:!0,displayBlue:!0,displayGreen:!0},(function(){n._previewImage.src=n._previewCanvas.toDataURL("image/png"),n._previewImage.classList.remove("empty")})):this._previewImage.classList.add("empty")},e}(),Ye=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#540b0b"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("discard-block")},e}(),Xe=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#6174FA"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("pbr-block")},e}(),Ge=function(){function e(){}return e.RegisteredControls={},e}();Ge.RegisteredControls.InputBlock=Fe,Ge.RegisteredControls.VertexOutputBlock=Ae,Ge.RegisteredControls.FragmentOutputBlock=Ae,Ge.RegisteredControls.ClampBlock=ze,Ge.RegisteredControls.GradientBlock=je,Ge.RegisteredControls.RemapBlock=Ue,Ge.RegisteredControls.TrigonometryBlock=Ve,Ge.RegisteredControls.TextureBlock=He,Ge.RegisteredControls.ReflectionTextureBlock=He,Ge.RegisteredControls.ReflectionBlock=He,Ge.RegisteredControls.RefractionBlock=He,Ge.RegisteredControls.CurrentScreenBlock=He,Ge.RegisteredControls.ParticleTextureBlock=He,Ge.RegisteredControls.DiscardBlock=Ye,Ge.RegisteredControls.PBRMetallicRoughnessBlock=Xe,Ge.RegisteredControls.AnisotropyBlock=Xe,Ge.RegisteredControls.ClearCoatBlock=Xe,Ge.RegisteredControls.SheenBlock=Xe,Ge.RegisteredControls.SubSurfaceBlock=Xe;var qe=function(){function e(e,t,n,r){var o=this;this.connectionPoint=t,this.node=n,this.delegatedPort=null,this._element=e.ownerDocument.createElement("div"),this._element.classList.add("port"),e.appendChild(this._element),this._globalState=r,this._img=e.ownerDocument.createElement("img"),this._element.appendChild(this._img),"port-label"===e.children[0].className&&(this._portLabelElement=e.children[0]),this._element.port=this,this._element.ondragstart=function(){return!1},this._onCandidateLinkMovedObserver=r.onCandidateLinkMoved.add((function(e){var t=o._element.getBoundingClientRect();!e||t.left>e.x||t.right<e.x||t.top>e.y||t.bottom<e.y?o._element.classList.remove("selected"):(o._element.classList.add("selected"),o._globalState.onCandidatePortSelectedObservable.notifyObservers(o))})),this._onSelectionChangedObserver=this._globalState.onSelectionChangedObservable.add((function(e){e===o?o._img.classList.add("selected"):o._img.classList.remove("selected")})),this.refresh()}return Object.defineProperty(e.prototype,"element",{get:function(){return this.delegatedPort?this.delegatedPort.element:this._element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"portName",{get:function(){var e=this.connectionPoint.displayName||this.connectionPoint.name;return this.connectionPoint.ownerBlock.isInput&&(e=this.node.name),e},set:function(e){this._portLabelElement&&(this.connectionPoint.displayName=e,this._portLabelElement.innerHTML=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){if(!this.connectionPoint.isConnected)return!1;if(this._isConnectedToNodeOutsideOfFrame())return!0;var e=this.node.getLinksForConnectionPoint(this.connectionPoint);return!(!e.length||e[0].nodeB!==this.node)},enumerable:!1,configurable:!0}),e.prototype.hasLabel=function(){return!!this._portLabelElement},Object.defineProperty(e.prototype,"exposedOnFrame",{get:function(){return!(!this.connectionPoint.isExposedOnFrame&&!this._isConnectedToNodeOutsideOfFrame())},set:function(e){this.disabled||(this.connectionPoint.isExposedOnFrame=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exposedPortPosition",{get:function(){return this.connectionPoint.exposedPortPosition},set:function(e){this.connectionPoint.exposedPortPosition=e},enumerable:!1,configurable:!0}),e.prototype._isConnectedToNodeOutsideOfFrame=function(){var e=this.node.getLinksForConnectionPoint(this.connectionPoint);if(e.length)for(var t=0;t<e.length;t++)if(e[t].nodeA.enclosingFrameId!==e[t].nodeB.enclosingFrameId)return!0;return!1},e.prototype.refresh=function(){switch(this._element.style.background=Re.GetColorFromConnectionNodeType(this.connectionPoint.type),this.connectionPoint.type){case s.NodeMaterialBlockConnectionPointTypes.Float:case s.NodeMaterialBlockConnectionPointTypes.Int:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";break;case s.NodeMaterialBlockConnectionPointTypes.Vector2:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";break;case s.NodeMaterialBlockConnectionPointTypes.Vector3:case s.NodeMaterialBlockConnectionPointTypes.Color3:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";break;case s.NodeMaterialBlockConnectionPointTypes.Vector4:case s.NodeMaterialBlockConnectionPointTypes.Color4:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";break;case s.NodeMaterialBlockConnectionPointTypes.Matrix:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg==";break;case s.NodeMaterialBlockConnectionPointTypes.Object:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIyMSIgdmlld0JveD0iMCAwIDIxIDIxIj48Y2lyY2xlIGN4PSI3LjEiIGN5PSIxMy4wOCIgcj0iMy4yNSIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0xMC40OSwzQTcuNTIsNy41MiwwLDAsMCwzLDEwYTUuMTMsNS4xMywwLDEsMSw2LDcuODUsNy42MSw3LjYxLDAsMCwwLDEuNTIuMTYsNy41Miw3LjUyLDAsMCwwLDAtMTVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",this._img.style.width="100%",this._img.style.height="100%"}},e.prototype.dispose=function(){this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver),this._onSelectionChangedObserver&&this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},e.CreatePortElement=function(t,n,r,o,a){var i=r.ownerDocument.createElement("div"),s=t.ownerBlock;if(i.classList.add("portLine"),r.appendChild(i),!o||o.shouldDisplayPortLabels(s)){var l=r.ownerDocument.createElement("div");l.classList.add("port-label"),l.innerHTML=t.displayName||t.name,i.appendChild(l)}return new e(i,t,n,a)},e}(),Ze=function(){function e(e,t){var n=this;this.block=e,this._inputPorts=[],this._outputPorts=[],this._links=[],this._x=0,this._y=0,this._gridAlignedX=0,this._gridAlignedY=0,this._mouseStartPointX=null,this._mouseStartPointY=null,this._displayManager=null,this._isVisible=!0,this._enclosingFrameId=-1,this._globalState=t,this._onSelectionChangedObserver=this._globalState.onSelectionChangedObservable.add((function(e){e===n?n._visual.classList.add("selected"):setTimeout((function(){-1===n._ownerCanvas.selectedNodes.indexOf(n)&&n._visual.classList.remove("selected")}))})),this._onUpdateRequiredObserver=this._globalState.onUpdateRequiredObservable.add((function(){n.refresh()})),this._onSelectionBoxMovedObserver=this._globalState.onSelectionBoxMoved.add((function(e){var t=n._visual.getBoundingClientRect(),r=!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom);n.isSelected=r})),this._onFrameCreatedObserver=this._globalState.onFrameCreatedObservable.add((function(e){n._ownerCanvas.frames.some((function(e){return-1!==e.nodes.indexOf(n)}))||n.isOverlappingFrame(e)&&e.nodes.push(n)}))}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,e?(this._visual.classList.remove("hidden"),this._upateNodePortNames()):this._visual.classList.add("hidden");for(var t=0,n=this._links;t<n.length;t++){n[t].isVisible=e}this._refreshLinks()},enumerable:!1,configurable:!0}),e.prototype._upateNodePortNames=function(){for(var e=0,t=this._inputPorts.concat(this._outputPorts);e<t.length;e++){var n=t[e];n.hasLabel()&&(n.portName=n.connectionPoint.displayName||n.connectionPoint.name)}},Object.defineProperty(e.prototype,"outputPorts",{get:function(){return this._outputPorts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inputPorts",{get:function(){return this._inputPorts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"links",{get:function(){return this._links},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridAlignedX",{get:function(){return this._gridAlignedX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridAlignedY",{get:function(){return this._gridAlignedY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._gridAlignedX=this._ownerCanvas.getGridPosition(e),this._visual.style.left=this._gridAlignedX+"px",this._refreshLinks(),this._refreshFrames())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._gridAlignedY=this._ownerCanvas.getGridPosition(e),this._visual.style.top=this._gridAlignedY+"px",this._refreshLinks(),this._refreshFrames())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._visual.clientWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._visual.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.block.uniqueId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.block.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){if(this._isSelected!==e)if(this._isSelected=e,e)this._globalState.onSelectionChangedObservable.notifyObservers(this);else{this._visual.classList.remove("selected");var t=this._ownerCanvas.selectedNodes.indexOf(this);t>-1&&this._ownerCanvas.selectedNodes.splice(t,1)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enclosingFrameId",{get:function(){return this._enclosingFrameId},set:function(e){this._enclosingFrameId=e},enumerable:!1,configurable:!0}),e.prototype.isOverlappingFrame=function(e){var t=this._visual.getBoundingClientRect(),n=e.element.getBoundingClientRect();n.width-=5,n.height-=5;var r=!(n.right<t.left||n.left>t.right||n.bottom<t.top||n.top>t.bottom);return r&&(this.enclosingFrameId=e.id),r},e.prototype.getPortForConnectionPoint=function(e){for(var t=0,n=this._inputPorts;t<n.length;t++){if((a=n[t]).connectionPoint===e)return a}for(var r=0,o=this._outputPorts;r<o.length;r++){var a;if((a=o[r]).connectionPoint===e)return a}return null},e.prototype.getLinksForConnectionPoint=function(e){return this._links.filter((function(t){return t.portA.connectionPoint===e||t.portB.connectionPoint===e}))},e.prototype._refreshFrames=function(){if(!this._ownerCanvas._frameIsMoving&&!this._ownerCanvas._isLoading)for(var e=0,t=this._ownerCanvas.frames;e<t.length;e++){t[e].syncNode(this)}},e.prototype._refreshLinks=function(){if(!this._ownerCanvas._isLoading)for(var e=0,t=this._links;e<t.length;e++){t[e].update()}},e.prototype.refresh=function(){var e=this;if(this._displayManager){this._header.innerHTML=this._displayManager.getHeaderText(this.block),this._displayManager.updatePreviewContent(this.block,this._content),this._visual.style.background=this._displayManager.getBackgroundColor(this.block);var t=this._displayManager.getHeaderClass(this.block);this._header.classList.value="header",t&&this._header.classList.add(t)}else this._header.innerHTML=this.block.name;for(var n=0,r=this._inputPorts;n<r.length;n++){r[n].refresh()}for(var o=0,a=this._outputPorts;o<a.length;o++){a[o].refresh()}if(-1!==this.enclosingFrameId){var i=this._ownerCanvas.frames.findIndex((function(t){return t.id===e.enclosingFrameId}));i>=0&&this._ownerCanvas.frames[i].isCollapsed&&this._ownerCanvas.frames[i].redrawFramePorts()}this._comments.innerHTML=this.block.comments||"",this._comments.title=this.block.comments||""},e.prototype._onDown=function(e){if(!e.srcElement||"IMG"!==e.srcElement.nodeName){-1===this._ownerCanvas.selectedNodes.indexOf(this)?this._globalState.onSelectionChangedObservable.notifyObservers(this):e.ctrlKey&&(this.isSelected=!1),e.stopPropagation();for(var t=0,n=this._ownerCanvas.selectedNodes;t<n.length;t++){n[t].cleanAccumulation()}this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,this._visual.setPointerCapture(e.pointerId)}},e.prototype.cleanAccumulation=function(e){void 0===e&&(e=!1),this.x=this._ownerCanvas.getGridPosition(this.x,e),this.y=this._ownerCanvas.getGridPosition(this.y,e)},e.prototype._onUp=function(e){e.stopPropagation();for(var t=0,n=this._ownerCanvas.selectedNodes;t<n.length;t++){n[t].cleanAccumulation()}this._mouseStartPointX=null,this._mouseStartPointY=null,this._visual.releasePointerCapture(e.pointerId)},e.prototype._onMove=function(e){if(null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&!e.ctrlKey){for(var t=(e.clientX-this._mouseStartPointX)/this._ownerCanvas.zoom,n=(e.clientY-this._mouseStartPointY)/this._ownerCanvas.zoom,r=0,o=this._ownerCanvas.selectedNodes;r<o.length;r++){var a=o[r];a.x+=t,a.y+=n}this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,e.stopPropagation()}},e.prototype.renderProperties=function(){var e=Me.RegisteredControls[this.block.getClassName()];return e||(e=me),o.createElement(e,{globalState:this._globalState,block:this.block})},e.prototype.appendVisual=function(e,t){var n=this;this._ownerCanvas=t;var r=Ge.RegisteredControls[this.block.getClassName()];r&&(this._displayManager=new r),this._visual=e.ownerDocument.createElement("div"),this._visual.classList.add("visual"),this._visual.addEventListener("pointerdown",(function(e){return n._onDown(e)})),this._visual.addEventListener("pointerup",(function(e){return n._onUp(e)})),this._visual.addEventListener("pointermove",(function(e){return n._onMove(e)})),this._header=e.ownerDocument.createElement("div"),this._header.classList.add("header"),this._visual.appendChild(this._header),this._connections=e.ownerDocument.createElement("div"),this._connections.classList.add("connections"),this._visual.appendChild(this._connections),this._inputsContainer=e.ownerDocument.createElement("div"),this._inputsContainer.classList.add("inputsContainer"),this._connections.appendChild(this._inputsContainer),this._outputsContainer=e.ownerDocument.createElement("div"),this._outputsContainer.classList.add("outputsContainer"),this._connections.appendChild(this._outputsContainer),this._content=e.ownerDocument.createElement("div"),this._content.classList.add("content"),this._visual.appendChild(this._content);var o=e.ownerDocument.createElement("div");o.classList.add("selection-border"),this._visual.appendChild(o),e.appendChild(this._visual),this._comments=e.ownerDocument.createElement("div"),this._comments.classList.add("comments"),this._visual.appendChild(this._comments);for(var a=0,i=this.block.inputs;a<i.length;a++){var s=i[a];this._inputPorts.push(qe.CreatePortElement(s,this,this._inputsContainer,this._displayManager,this._globalState))}for(var l=0,c=this.block.outputs;l<c.length;l++){var u=c[l];this._outputPorts.push(qe.CreatePortElement(u,this,this._outputsContainer,this._displayManager,this._globalState))}this.refresh()},e.prototype.dispose=function(){this._globalState.onGraphNodeRemovalObservable.notifyObservers(this),this._onSelectionChangedObserver&&this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onUpdateRequiredObserver&&this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver),this._onSelectionBoxMovedObserver&&this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver),this._visual.parentElement&&this._visual.parentElement.removeChild(this._visual),this._onFrameCreatedObserver&&this._globalState.onFrameCreatedObservable.remove(this._onFrameCreatedObserver);for(var e=0,t=this._inputPorts;e<t.length;e++){t[e].dispose()}for(var n=0,r=this._outputPorts;n<r.length;n++){r[n].dispose()}for(var o=0,a=this._links.slice(0);o<a.length;o++){a[o].dispose()}this.block.dispose()},e}(),Qe=n(71),Ke=function(){function e(e,t,n,r,o){var a=this;this._isVisible=!0,this.onDisposedObservable=new s.Observable,this._portA=t,this._portB=r,this._nodeA=n,this._nodeB=o,this._graphCanvas=e;var i=t.element.ownerDocument,l=e.svgCanvas;this._path=i.createElementNS("http://www.w3.org/2000/svg","path"),this._path.setAttribute("fill","none"),this._path.classList.add("link"),l.appendChild(this._path),this._selectionPath=i.createElementNS("http://www.w3.org/2000/svg","path"),this._selectionPath.setAttribute("fill","none"),this._selectionPath.classList.add("selection-link"),l.appendChild(this._selectionPath),this._selectionPath.onmousedown=function(){return a.onClick()},this._portB&&this.update(),this._onSelectionChangedObserver=this._graphCanvas.globalState.onSelectionChangedObservable.add((function(e){e===a?(a._path.classList.add("selected"),a._selectionPath.classList.add("selected")):(a._path.classList.remove("selected"),a._selectionPath.classList.remove("selected"))}))}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,e?(this._path.classList.remove("hidden"),this._selectionPath.classList.remove("hidden")):(this._path.classList.add("hidden"),this._selectionPath.classList.add("hidden")),this.update()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"portA",{get:function(){return this._portA},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"portB",{get:function(){return this._portB},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nodeA",{get:function(){return this._nodeA},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nodeB",{get:function(){return this._nodeB},enumerable:!1,configurable:!0}),e.prototype.update=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1);var r=this._portA.element.getBoundingClientRect(),o=this._graphCanvas.canvasContainer.getBoundingClientRect(),a=this._graphCanvas.zoom,i=o.left,s=o.top,l=(r.left-i+.5*r.width)/a,c=(r.top-s+.5*r.height)/a;if(this._portB){var u=this._portB.element.getBoundingClientRect();e=(u.left-i+.5*u.width)/a,t=(u.top-s+.5*u.height)/a}if(n)this._path.setAttribute("d","M"+l+","+c+" L"+e+","+t),this._path.setAttribute("stroke-dasharray","10, 10"),this._path.setAttribute("stroke-linecap","round");else{var p=e-l,d=t-c,f=Math.min(.5*Math.sqrt(p*p+d*d),300);this._path.setAttribute("d","M"+l+","+c+" C"+(l+f)+","+c+" "+(e-f)+","+t+" "+e+","+t),this._selectionPath.setAttribute("d","M"+l+","+c+" C"+(l+f)+","+c+" "+(e-f)+","+t+" "+e+","+t)}this._path.setAttribute("stroke",this._portA.element.style.backgroundColor)},e.prototype.onClick=function(){this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this)},e.prototype.dispose=function(e){void 0===e&&(e=!0),this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._path.parentElement&&this._path.parentElement.removeChild(this._path),this._selectionPath.parentElement&&this._selectionPath.parentElement.removeChild(this._selectionPath),this._nodeB&&(this._nodeA.links.splice(this._nodeA.links.indexOf(this),1),this._nodeB.links.splice(this._nodeB.links.indexOf(this),1),this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this),1),this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint)),e&&(this.onDisposedObservable.notifyObservers(this),this.onDisposedObservable.clear())},e}();n(319);var $e,Je,et=function(e){return!!e&&void 0!==e.port},tt=function(e){function t(t){var n=e.call(this,t)||this;return n.MinZoom=.1,n.MaxZoom=4,n._nodes=[],n._links=[],n._mouseStartPointX=null,n._mouseStartPointY=null,n._dropPointX=0,n._dropPointY=0,n._selectionStartX=0,n._selectionStartY=0,n._candidateLinkedHasMoved=!1,n._x=0,n._y=0,n._zoom=1,n._selectedNodes=[],n._selectedLink=null,n._selectedPort=null,n._candidateLink=null,n._candidatePort=null,n._gridSize=20,n._selectionBox=null,n._selectedFrame=null,n._frameCandidate=null,n._frames=[],n._altKeyIsPressed=!1,n._ctrlKeyIsPressed=!1,n._oldY=-1,n._frameIsMoving=!1,n._isLoading=!1,t.globalState.onSelectionChangedObservable.add((function(e){e?e instanceof Ke?(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=e,n._selectedPort=null):e instanceof rt?(n._selectedNodes=[],n._selectedFrame=e,n._selectedLink=null,n._selectedPort=null):e instanceof Ze?n._ctrlKeyIsPressed?-1===n._selectedNodes.indexOf(e)&&n._selectedNodes.push(e):n._selectedNodes=[e]:e instanceof qe?(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=null,n._selectedPort=e):(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=null,n._selectedPort=e.port):(n._selectedNodes=[],n._selectedLink=null,n._selectedFrame=null,n._selectedPort=null)})),t.globalState.onCandidatePortSelectedObservable.add((function(e){n._candidatePort=e})),t.globalState.onGridSizeChanged.add((function(){n.gridSize=s.DataStorage.ReadNumber("GridSize",20)})),n.props.globalState.hostDocument.addEventListener("keyup",(function(){return n.onKeyUp()}),!1),n.props.globalState.hostDocument.addEventListener("keydown",(function(e){n._altKeyIsPressed=e.altKey,n._ctrlKeyIsPressed=e.ctrlKey}),!1),n.props.globalState.hostDocument.defaultView.addEventListener("blur",(function(){n._altKeyIsPressed=!1,n._ctrlKeyIsPressed=!1}),!1),n.props.globalState.storeEditorData=function(e,t){if(e.frames=[],t)e.frames.push(t.serialize(!1));else{e.x=n.x,e.y=n.y,e.zoom=n.zoom;for(var r=0,o=n._frames;r<o.length;r++){var a=o[r];e.frames.push(a.serialize(!0))}}},n}return u(t,e),Object.defineProperty(t.prototype,"gridSize",{get:function(){return this._gridSize},set:function(e){this._gridSize=e,this.updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"globalState",{get:function(){return this.props.globalState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"links",{get:function(){return this._links},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frames",{get:function(){return this._frames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{get:function(){return this._zoom},set:function(e){this._zoom!==e&&(this._zoom=e,this.updateTransform())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this.updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this.updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedNodes",{get:function(){return this._selectedNodes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedLink",{get:function(){return this._selectedLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedFrame",{get:function(){return this._selectedFrame},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedPort",{get:function(){return this._selectedPort},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasContainer",{get:function(){return this._graphCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostCanvas",{get:function(){return this._hostCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"svgCanvas",{get:function(){return this._svgCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionContainer",{get:function(){return this._selectionContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frameContainer",{get:function(){return this._frameContainer},enumerable:!1,configurable:!0}),t.prototype.getGridPosition=function(e,t){void 0===t&&(t=!1);var n=this.gridSize;return 0===n?e:t?n*Math.ceil(e/n):n*Math.floor(e/n)},t.prototype.getGridPositionCeil=function(e){var t=this.gridSize;return 0===t?e:t*Math.ceil(e/t)},t.prototype.updateTransform=function(){this._rootContainer.style.transform="translate("+this._x+"px, "+this._y+"px) scale("+this._zoom+")",s.DataStorage.ReadBoolean("ShowGrid",!0)?(this._hostCanvas.style.backgroundSize=this._gridSize*this._zoom+"px "+this._gridSize*this._zoom+"px",this._hostCanvas.style.backgroundPosition=this._x+"px "+this._y+"px"):this._hostCanvas.style.backgroundSize="0"},t.prototype.onKeyUp=function(){this._altKeyIsPressed=!1,this._ctrlKeyIsPressed=!1,this._oldY=-1},t.prototype.findNodeFromBlock=function(e){return this.nodes.filter((function(t){return t.block===e}))[0]},t.prototype.reset=function(){for(var e=0,t=this._nodes;e<t.length;e++){t[e].dispose()}for(var n=0,r=this._frames.splice(0);n<r.length;n++){r[n].dispose()}this._nodes=[],this._frames=[],this._links=[],this._graphCanvas.innerHTML="",this._svgCanvas.innerHTML=""},t.prototype.connectPorts=function(e,t){var n=e.ownerBlock,r=t.ownerBlock,o=this.findNodeFromBlock(n),a=this.findNodeFromBlock(r);if(o&&a){var i=o.getPortForConnectionPoint(e),s=a.getPortForConnectionPoint(t);if(i&&s){for(var l=0,c=this._links;l<c.length;l++){var u=c[l];if(u.portA===i&&u.portB===s)return;if(u.portA===s&&u.portB===i)return}var p=new Ke(this,i,o,s,a);this._links.push(p),o.links.push(p),a.links.push(p)}}},t.prototype.removeLink=function(e){var t=this._links.indexOf(e);t>-1&&this._links.splice(t,1),e.dispose()},t.prototype.appendBlock=function(e){var t=new Ze(e,this.props.globalState);return t.appendVisual(this._graphCanvas,this),this._nodes.push(t),t},t.prototype.distributeGraph=function(){var e=this;this.x=0,this.y=0,this.zoom=1;var t=new Qe.graphlib.Graph;t.setGraph({}),t.setDefaultEdgeLabel((function(){return{}})),t.graph().rankdir="LR",this._nodes.forEach((function(n){e._frames.some((function(e){return-1!==e.nodes.indexOf(n)}))||t.setNode(n.id.toString(),{id:n.id,type:"node",width:n.width,height:n.height})})),this._frames.forEach((function(e){t.setNode(e.id.toString(),{id:e.id,type:"frame",width:e.element.clientWidth,height:e.element.clientHeight})})),this._nodes.forEach((function(n){n.block.outputs.forEach((function(r){r.hasEndpoints&&r.endpoints.forEach((function(r){var o=e._frames.filter((function(e){return-1!==e.nodes.indexOf(n)})),a=e._frames.filter((function(e){return e.nodes.some((function(e){return e.block===r.ownerBlock}))})),i=o.length>0?o[0].id:n.id,s=a.length>0?a[0].id:r.ownerBlock.uniqueId;t.setEdge(i.toString(),s.toString())}))}))})),Qe.layout(t),t.nodes().map((function(e){return t.node(e)})).forEach((function(t){if(t)if("node"!==t.type)for(var n=0,r=e._frames;n<r.length;n++){var o=r[n];if(o.id===t.id)return e._frameIsMoving=!0,o.move(t.x-t.width/2,t.y-t.height/2,!1),o.cleanAccumulation(),void(e._frameIsMoving=!1)}else for(var a=0,i=e._nodes;a<i.length;a++){var s=i[a];if(s.id===t.id)return s.x=t.x-t.width/2,s.y=t.y-t.height/2,void s.cleanAccumulation()}}))},t.prototype.componentDidMount=function(){this._hostCanvas=this.props.globalState.hostDocument.getElementById("graph-canvas"),this._rootContainer=this.props.globalState.hostDocument.getElementById("graph-container"),this._graphCanvas=this.props.globalState.hostDocument.getElementById("graph-canvas-container"),this._svgCanvas=this.props.globalState.hostDocument.getElementById("graph-svg-container"),this._selectionContainer=this.props.globalState.hostDocument.getElementById("selection-container"),this._frameContainer=this.props.globalState.hostDocument.getElementById("frame-container"),this.gridSize=s.DataStorage.ReadNumber("GridSize",20),this.updateTransform()},t.prototype.onMove=function(e){if(this._selectionBox){var t=this.canvasContainer.getBoundingClientRect(),n=e.pageX-t.left,r=e.pageY-t.top;return n>this._selectionStartX?(this._selectionBox.style.left=this._selectionStartX/this.zoom+"px",this._selectionBox.style.width=(n-this._selectionStartX)/this.zoom+"px"):(this._selectionBox.style.left=n/this.zoom+"px",this._selectionBox.style.width=(this._selectionStartX-n)/this.zoom+"px"),r>this._selectionStartY?(this._selectionBox.style.top=this._selectionStartY/this.zoom+"px",this._selectionBox.style.height=(r-this._selectionStartY)/this.zoom+"px"):(this._selectionBox.style.top=r/this.zoom+"px",this._selectionBox.style.height=(this._selectionStartY-r)/this.zoom+"px"),void this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect())}if(this._frameCandidate){t=this.canvasContainer.getBoundingClientRect(),n=e.pageX-t.left,r=e.pageY-t.top;return n>this._selectionStartX?(this._frameCandidate.style.left=this._selectionStartX/this.zoom+"px",this._frameCandidate.style.width=(n-this._selectionStartX)/this.zoom+"px"):(this._frameCandidate.style.left=n/this.zoom+"px",this._frameCandidate.style.width=(this._selectionStartX-n)/this.zoom+"px"),void(r>this._selectionStartY?(this._frameCandidate.style.top=this._selectionStartY/this.zoom+"px",this._frameCandidate.style.height=(r-this._selectionStartY)/this.zoom+"px"):(this._frameCandidate.style.top=r/this.zoom+"px",this._frameCandidate.style.height=(this._selectionStartY-r)/this.zoom+"px"))}if(this._candidateLink){t=this.canvasContainer.getBoundingClientRect();return this._candidatePort=null,this.props.globalState.onCandidateLinkMoved.notifyObservers(new s.Vector2(e.pageX,e.pageY)),this._dropPointX=(e.pageX-t.left)/this.zoom,this._dropPointY=(e.pageY-t.top)/this.zoom,this._candidateLink.update(this._dropPointX,this._dropPointY,!0),void(this._candidateLinkedHasMoved=!0)}if(this._altKeyIsPressed&&1===e.buttons){this._oldY<0&&(this._oldY=e.pageY);var o=(e.pageY-this._oldY)/10;if(Math.abs(o)>5){var a=this.zoom;this.zoom=Math.max(Math.min(this.MaxZoom,this.zoom+o/100),this.MinZoom);var i=e.currentTarget.getBoundingClientRect(),l=i.width,c=l*this.zoom-l*a,u=(e.clientX-i.left-this.x)/a/l;this.x=this.x-c*u,this._oldY=e.pageY}}else this._rootContainer.style.cursor="move",null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&(this.x+=e.clientX-this._mouseStartPointX,this.y+=e.clientY-this._mouseStartPointY,this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY)},t.prototype.onDown=function(e){if(this._rootContainer.setPointerCapture(e.pointerId),e.currentTarget===this._hostCanvas&&e.ctrlKey){this._selectionBox=this.props.globalState.hostDocument.createElement("div"),this._selectionBox.classList.add("selection-box"),this._selectionContainer.appendChild(this._selectionBox);var t=this.canvasContainer.getBoundingClientRect();return this._selectionStartX=e.pageX-t.left,this._selectionStartY=e.pageY-t.top,this._selectionBox.style.left=this._selectionStartX/this.zoom+"px",this._selectionBox.style.top=this._selectionStartY/this.zoom+"px",this._selectionBox.style.width="0px",void(this._selectionBox.style.height="0px")}if(e.currentTarget===this._hostCanvas&&e.shiftKey){this._frameCandidate=this.props.globalState.hostDocument.createElement("div"),this._frameCandidate.classList.add("frame-box"),this._frameContainer.appendChild(this._frameCandidate);t=this.canvasContainer.getBoundingClientRect();return this._selectionStartX=e.pageX-t.left,this._selectionStartY=e.pageY-t.top,this._frameCandidate.style.left=this._selectionStartX/this.zoom+"px",this._frameCandidate.style.top=this._selectionStartY/this.zoom+"px",this._frameCandidate.style.width="0px",void(this._frameCandidate.style.height="0px")}if(e.nativeEvent.srcElement&&"IMG"===e.nativeEvent.srcElement.nodeName){if(!this._candidateLink){var n=e.nativeEvent.srcElement.parentElement.port;this._candidateLink=new Ke(this,n,n.node),this._candidateLinkedHasMoved=!1}}else this.props.globalState.onSelectionChangedObservable.notifyObservers(null),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY},t.prototype.onUp=function(e){if(this._mouseStartPointX=null,this._mouseStartPointY=null,this._rootContainer.releasePointerCapture(e.pointerId),this._oldY=-1,this._candidateLink){if(this._candidateLinkedHasMoved)this.processCandidatePort(),this.props.globalState.onCandidateLinkMoved.notifyObservers(null);else if(this._candidateLink.portA instanceof nt){var t=this._candidateLink.portA,n=this.frames.find((function(e){return e.id===t.parentFrameId}));if(n){var r={frame:n,port:t};this.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}else this._candidateLink.portA instanceof qe&&this.props.globalState.onSelectionChangedObservable.notifyObservers(this._candidateLink.portA);this._candidateLink.dispose(),this._candidateLink=null,this._candidatePort=null}if(this._selectionBox&&(this._selectionBox.parentElement.removeChild(this._selectionBox),this._selectionBox=null),this._frameCandidate){var o=new rt(this._frameCandidate,this);this._frames.push(o),this._frameCandidate.parentElement.removeChild(this._frameCandidate),this._frameCandidate=null,this.props.globalState.onSelectionChangedObservable.notifyObservers(o)}},t.prototype.onWheel=function(e){var t=e.deltaY<0?.1:-.1,n=this.zoom;this.zoom=Math.min(Math.max(this.MinZoom,this.zoom+t*this.zoom),this.MaxZoom);var r=e.currentTarget.getBoundingClientRect(),o=r.width,a=r.height,i=o*this.zoom-o*n,s=a*this.zoom-a*n,l=e.clientX-r.left,c=e.clientY-r.top,u=(l-this.x)/n/o,p=(c-this.y)/n/a;this.x=this.x-i*u,this.y=this.y-s*p,e.stopPropagation()},t.prototype.zoomToFit=function(){var e=this,t=0,n=0;this._nodes.forEach((function(r){e._frames.some((function(e){return-1!==e.nodes.indexOf(r)}))||(r.x<t&&(t=r.x),r.y<n&&(n=r.y))})),this._frames.forEach((function(e){e.x<t&&(t=e.x),e.y<n&&(n=e.y)})),this._frames.forEach((function(e){e.x+=-t,e.y+=-n,e.cleanAccumulation()})),this._nodes.forEach((function(e){e.x+=-t,e.y+=-n,e.cleanAccumulation()}));var r=this._rootContainer.clientWidth/this._rootContainer.scrollWidth,o=this._rootContainer.clientHeight/this._rootContainer.scrollHeight,a=r<o?r:o;this.zoom=a,this.x=0,this.y=0},t.prototype.processCandidatePort=function(){var e,t,n=this,r=this._candidateLink.portA.connectionPoint,o=this._candidateLink.portA.node;if(this._candidatePort)e=this._candidatePort.connectionPoint,t=this._candidatePort.node;else{if(r.direction===s.NodeMaterialConnectionPointDirection.Output)return;var a="output",i=void 0,l=this._candidateLink.portA.connectionPoint.createCustomInputBlock();l?(i=l[0],a=l[1]):i=new s.InputBlock(s.NodeMaterialBlockConnectionPointTypes[this._candidateLink.portA.connectionPoint.type],void 0,this._candidateLink.portA.connectionPoint.type),this.props.globalState.nodeMaterial.attachedBlocks.push(i),e=i[a],i.isInput?t=this.appendBlock(i):(i.autoConfigure(this.props.globalState.nodeMaterial),t=this.props.onEmitNewBlock(i)),t.x=this._dropPointX-200,t.y=this._dropPointY-50;var c=t.x-250,u=t.y;i.inputs.forEach((function(e){if(e.connectedPoint){var t=n.nodes.filter((function(t){return t.block===e.connectedPoint.ownerBlock}))[0];0===t.x&&0===t.y&&(t.x=c,t.y=u,t.cleanAccumulation(),u+=80)}}))}if(e.direction===s.NodeMaterialConnectionPointDirection.Input){var p=r;r=e,e=p;var d=t;t=o,o=d}if(r.connectedPoint!==e&&r!==e&&r.direction!==e.direction&&r.ownerBlock!==e.ownerBlock){var f="FragmentOutputBlock"===r.ownerBlock.getClassName(),h=e.checkCompatibilityState(r);if(!e.needDualDirectionValidation&&!r.needDualDirectionValidation||h!==s.NodeMaterialConnectionPointCompatibilityStates.Compatible||e instanceof s.InputBlock||(h=r.checkCompatibilityState(e)),h===s.NodeMaterialConnectionPointCompatibilityStates.Compatible){if(f){var m=r.ownerBlock;"rgb"===r.name&&m.rgba.isConnected?o.getLinksForConnectionPoint(m.rgba)[0].dispose():"rgba"===r.name&&m.rgb.isConnected&&o.getLinksForConnectionPoint(m.rgb)[0].dispose()}var g=null;if(r.isConnected){var v=o.getLinksForConnectionPoint(r);g=v.slice(),v.forEach((function(e){e.dispose(!1)}))}if(r.ownerBlock.inputsAreExclusive&&r.ownerBlock.inputs.forEach((function(e){var t=o.getLinksForConnectionPoint(e);g?g.push.apply(g,t.slice()):g=t.slice(),t.forEach((function(e){e.dispose(!1)}))})),e.connectTo(r),this.connectPorts(e,r),r.innerType===s.NodeMaterialBlockConnectionPointTypes.AutoDetect){var b=function(e){e.refresh();var t=e.links;t.forEach((function(e){var t=e.nodeA,n=e.nodeB;y.has(t)||(y.add(t),b(t)),n&&!y.has(n)&&(y.add(n),b(n))})),t.forEach((function(e){x.has(e)||(x.add(e),e.update())}))},y=new Set([t]),x=new Set([o.links[o.links.length-1]]);b(o)}else o.refresh();null==g||g.forEach((function(e){e.onDisposedObservable.notifyObservers(e),e.onDisposedObservable.clear()})),this.props.globalState.onRebuildRequiredObservable.notifyObservers()}else{var w="";switch(h){case s.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible:w="Cannot connect two different connection types";break;case s.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible:w="Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader"}this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(w)}}},t.prototype.processEditorData=function(e){for(var t=0,n=this._frames.splice(0);t<n.length;t++){(i=n[t]).dispose()}if(this._frames=[],this.x=e.x||0,this.y=e.y||0,this.zoom=e.zoom||1,e.frames)for(var r=0,o=e.frames;r<o.length;r++){var a=o[r],i=rt.Parse(a,this,e.map);this._frames.push(i)}},t.prototype.addFrame=function(e){var t=rt.Parse(e,this,this.props.globalState.nodeMaterial.editorData.map);this._frames.push(t),this.globalState.onSelectionChangedObservable.notifyObservers(t)},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"graph-canvas",onWheel:function(t){return e.onWheel(t)},onPointerMove:function(t){return e.onMove(t)},onPointerDown:function(t){return e.onDown(t)},onPointerUp:function(t){return e.onUp(t)}},o.createElement("div",{id:"graph-container"},o.createElement("div",{id:"graph-canvas-container"}),o.createElement("div",{id:"frame-container"}),o.createElement("svg",{id:"graph-svg-container"}),o.createElement("div",{id:"selection-container"})))},t}(o.Component),nt=function(e){function t(t,n,r,o,a,i,l){var c=e.call(this,t,n,r,o)||this;return c.connectionPoint=n,c.node=r,c._onFramePortPositionChangedObservable=new s.Observable,c._parentFrameId=l,c._isInput=a,c._framePortId=i,c._onSelectionChangedObserver=c._globalState.onSelectionChangedObservable.add((function(e){et(e)&&e.port===c?c._img.classList.add("selected"):c._img.classList.remove("selected")})),c.refresh(),c}return u(t,e),Object.defineProperty(t.prototype,"parentFrameId",{get:function(){return this._parentFrameId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFramePortPositionChangedObservable",{get:function(){return this._onFramePortPositionChangedObservable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInput",{get:function(){return this._isInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"framePortId",{get:function(){return this._framePortId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"framePortPosition",{get:function(){return this._framePortPosition},set:function(e){this._framePortPosition=e,this.onFramePortPositionChangedObservable.notifyObservers(this)},enumerable:!1,configurable:!0}),t.CreateFrameNodePortElement=function(e,n,r,o,a,i,s,l){var c=r.ownerDocument.createElement("div"),u=e.ownerBlock;if(c.classList.add("portLine"),null!==s&&(c.dataset.framePortId=""+s),r.appendChild(c),!o||o.shouldDisplayPortLabels(u)){var p=r.ownerDocument.createElement("div");p.classList.add("port-label");var d=e.displayName||e.name;e.ownerBlock.isInput&&(d=n.name),p.innerHTML=d,c.appendChild(p)}return new t(c,e,n,a,i,s,l)},t}(qe);!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom",e[e.TopRight=4]="TopRight",e[e.TopLeft=5]="TopLeft",e[e.BottomRight=6]="BottomRight",e[e.BottomLeft=7]="BottomLeft"}($e||($e={})),function(e){e[e.Top=0]="Top",e[e.Middle=1]="Middle",e[e.Bottom=2]="Bottom"}(Je||(Je={}));var rt=function(){function e(t,n,r){var o=this;void 0===r&&(r=!1),this.CollapsedWidth=200,this._x=0,this._y=0,this._gridAlignedX=0,this._gridAlignedY=0,this._nodes=[],this._mouseStartPointX=null,this._mouseStartPointY=null,this._onNodeLinkDisposedObservers=[],this._isCollapsed=!1,this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._exposedInPorts=[],this._exposedOutPorts=[],this._minFrameHeight=40,this._minFrameWidth=220,this.onExpandStateChanged=new s.Observable,this.CloseSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M16,15l5.85,5.84-1,1L15,15.93,9.15,21.78l-1-1L14,15,8.19,9.12l1-1L15,14l5.84-5.84,1,1Z"/></g></svg>',this.ExpandSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-6.75,6.75H11.06V14.44h3.38V11.06h1.12v3.38h3.38v1.12H15.56v3.38H14.44Z"/></g></svg>',this.CollapseSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-2.25,6.75H11.06V14.44h7.88Z"/></g></svg>',this.initResizing=function(e){e.stopPropagation(),o._mouseStartPointX=e.clientX,o._mouseStartPointY=e.clientY,o._frameIsResizing=!0},this.cleanUpResizing=function(e){e.stopPropagation(),o._frameIsResizing=!1,o._resizingDirection=null,o._mouseStartPointX=null,o._mouseStartPointY=null,o.mouseXLimit=null,o.refresh()},this.updateMinHeightWithComments=function(){if(o.comments&&o.comments.length>0){var e=o._commentsElement.offsetHeight+40;o._minFrameHeight=e}},this._onRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(o.initResizing(e),t._resizingDirection=$e.Right,t.mouseXLimit=e.clientX-(t.width-t._minFrameWidth),t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onRightHandlePointerMove))},this._onRightHandlePointerMove=function(e){var t=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,n=o._mouseStartPointX-t;o._moveRightHandle(e,n)},this._moveRightHandle=function(e,t){var n=o;if(n.mouseXLimit){if(!n._isResizingRight()||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientX<t)return;if(n._isResizingRight()){e.stopPropagation();var r=(e.clientX-n._mouseStartPointX)/n._ownerCanvas.zoom;n._expandRight(r,e.clientX),n._mouseStartPointX=e.clientX}}},this._onRightHandlePointerUp=function(e){var t=o;t._isResizingRight()&&(t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.Bottom,t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomHandlePointerMove),t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomHandlePointerUp))},this._onBottomHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t;o._moveBottomHandle(e,n)},this._moveBottomHandle=function(e,t){var n=o;if(!(n._resizingDirection!==$e.Bottom||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientY<t)&&n._resizingDirection===$e.Bottom){e.stopPropagation();var r=(e.clientY-n._mouseStartPointY)/n._ownerCanvas.zoom;n._expandBottom(r),n._mouseStartPointY=e.clientY}},this._onBottomHandlePointerUp=function(e){var t=o;t._resizingDirection===$e.Bottom&&(t.height=parseFloat(t.element.style.height.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomHandlePointerMove),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomHandlePointerUp),t.cleanUpResizing(e))},this._onLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.Left,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onLeftHandlePointerMove))},this._onLeftHandlePointerMove=function(e){var t=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,n=o._mouseStartPointX+t;o._moveLeftHandle(e,n)},this._moveLeftHandle=function(e,t){var n=o;if(n.mouseXLimit){if(n._resizingDirection!==$e.Left||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientX>t)return;if(n._resizingDirection===$e.Left){e.stopPropagation();var r=(e.clientX-n._mouseStartPointX)/n._ownerCanvas.zoom;n._expandLeft(r),n._mouseStartPointX=e.clientX}}},this._onLeftHandlePointerUp=function(e){var t=o;t._resizingDirection===$e.Left&&(t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onLeftHandlePointerMove),t.cleanUpResizing(e))},this._onTopHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.Top,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopHandlePointerMove))},this._onTopHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t;o._moveTopHandle(e,n)},this._moveTopHandle=function(e,t){var n=o;if(n._isResizingTop()&&null!==n._mouseStartPointX&&null!==n._mouseStartPointY&&!(e.clientY>t)&&n._isResizingTop()){e.stopPropagation();var r=(e.clientY-n._mouseStartPointY)/n._ownerCanvas.zoom;n._expandTop(r),n._mouseStartPointY=e.clientY}},this._onTopHandlePointerUp=function(e){var t=o;t._isResizingTop()&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopHandlePointerMove),t.cleanUpResizing(e))},this._onTopRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.TopRight,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopRightHandlePointerMove))},this._onTopRightHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX-r;o._moveTopRightHandle(e,a,n)},this._moveTopRightHandle=function(e,t,n){var r=o;if(r._isResizingTop()&&r._isResizingRight()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingRight()&&r._isResizingTop())if(e.stopPropagation(),e.clientY<n&&e.clientX>t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}else if(e.clientY>n&&e.clientX>t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX}else if(e.clientY<n&&e.clientX<t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}},this._onTopRightHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===$e.TopRight&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.BottomRight,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomRightHandlePointerMove))},this._onBottomRightHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX-r;o._moveBottomRightHandle(e,a,n)},this._moveBottomRightHandle=function(e,t,n){var r=o;if(r._isResizingBottom()&&r._isResizingRight()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingRight()&&r._isResizingBottom())if(e.stopPropagation(),e.clientY>n&&e.clientX>t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}else if(e.clientY<n&&e.clientX>t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX}else if(e.clientY>n&&e.clientX<t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}},this._onBottomRightHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===$e.BottomRight&&(t.height=parseFloat(t.element.style.height.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.BottomLeft,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomLeftHandlePointerMove))},this._onBottomLeftHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX+r;o._moveBottomLeftHandle(e,a,n)},this._moveBottomLeftHandle=function(e,t,n){var r=o;if(r._isResizingBottom()&&r._isResizingLeft()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingLeft()&&r._isResizingBottom())if(e.stopPropagation(),e.clientY>n&&e.clientX<t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}else if(e.clientY<n&&e.clientX<t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX}else if(e.clientY>n&&e.clientX>t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}},this._onBottomLeftHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===$e.BottomLeft&&(t.height=parseFloat(t.element.style.height.replace("px","")),t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomLeftHandlePointerMove),t.cleanUpResizing(e))},this._onTopLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=$e.TopLeft,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopLeftHandlePointerMove))},this._onTopLeftHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX+r;o._moveTopLeftHandle(e,a,n)},this._moveTopLeftHandle=function(e,t,n){var r=o;if(r._isResizingTop()&&r._isResizingLeft()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingLeft()&&r._isResizingTop())if(e.stopPropagation(),e.clientY<n&&e.clientX<t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}else if(e.clientY>n&&e.clientX<t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX}else if(e.clientY<n&&e.clientX>t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}},this._onTopLeftHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===$e.TopLeft&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopLeftHandlePointerMove),t.cleanUpResizing(e))},this._id=e._FrameCounter++,this._ownerCanvas=n;var a=n.frameContainer;this.element=a.ownerDocument.createElement("div"),this.element.classList.add("frame-box"),a.appendChild(this.element),this._headerElement=a.ownerDocument.createElement("div"),this._headerElement.classList.add("frame-box-header"),this._headerElement.addEventListener("dblclick",(function(){o.isCollapsed=!o.isCollapsed})),this.element.appendChild(this._headerElement),this._borderElement=a.ownerDocument.createElement("div"),this._borderElement.classList.add("frame-box-border"),this.element.appendChild(this._borderElement);var i=a.ownerDocument.createElement("div");i.className="handle right-handle",this.element.appendChild(i),i.addEventListener("pointerdown",this._onRightHandlePointerDown);var l=a.ownerDocument.createElement("div");l.className="handle left-handle",this.element.appendChild(l),l.addEventListener("pointerdown",this._onLeftHandlePointerDown);var c=a.ownerDocument.createElement("div");c.className="handle bottom-handle",this.element.appendChild(c),c.addEventListener("pointerdown",this._onBottomHandlePointerDown);var u=a.ownerDocument.createElement("div");u.className="handle top-handle",this.element.appendChild(u),u.addEventListener("pointerdown",this._onTopHandlePointerDown);var p=a.ownerDocument.createElement("div");p.className="handle right-handle top-right-corner-handle",this.element.appendChild(p),p.addEventListener("pointerdown",this._onTopRightHandlePointerDown);var d=a.ownerDocument.createElement("div");d.className="handle right-handle bottom-right-corner-handle",this.element.appendChild(d),d.addEventListener("pointerdown",this._onBottomRightHandlePointerDown);var f=a.ownerDocument.createElement("div");f.className="handle left-handle top-left-corner-handle",this.element.appendChild(f),f.addEventListener("pointerdown",this._onTopLeftHandlePointerDown);var h=a.ownerDocument.createElement("div");h.className="handle left-handle bottom-left-corner-handle",this.element.appendChild(h),h.addEventListener("pointerdown",this._onBottomLeftHandlePointerDown),this._headerTextElement=a.ownerDocument.createElement("div"),this._headerTextElement.classList.add("frame-box-header-title"),this._headerElement.appendChild(this._headerTextElement),this._headerCollapseElement=a.ownerDocument.createElement("div"),this._headerCollapseElement.classList.add("frame-box-header-collapse"),this._headerCollapseElement.classList.add("frame-box-header-button"),this._headerCollapseElement.title="Collapse",this._headerCollapseElement.ondragstart=function(){return!1},this._headerCollapseElement.addEventListener("pointerdown",(function(e){o._headerCollapseElement.classList.add("down"),e.stopPropagation()})),this._headerCollapseElement.addEventListener("pointerup",(function(e){e.stopPropagation(),o._headerCollapseElement.classList.remove("down"),o.isCollapsed=!o.isCollapsed})),this._headerCollapseElement.innerHTML=this.CollapseSVG,this._headerElement.appendChild(this._headerCollapseElement),this._headerCloseElement=a.ownerDocument.createElement("div"),this._headerCloseElement.classList.add("frame-box-header-close"),this._headerCloseElement.classList.add("frame-box-header-button"),this._headerCloseElement.title="Close",this._headerCloseElement.ondragstart=function(){return!1},this._headerCloseElement.addEventListener("pointerdown",(function(e){e.stopPropagation()})),this._headerCloseElement.addEventListener("pointerup",(function(e){e.stopPropagation(),o.dispose()})),this._headerCloseElement.innerHTML=this.CloseSVG,this._headerElement.appendChild(this._headerCloseElement),this._portContainer=a.ownerDocument.createElement("div"),this._portContainer.classList.add("port-container"),this.element.appendChild(this._portContainer),this._outputPortContainer=a.ownerDocument.createElement("div"),this._outputPortContainer.classList.add("outputsContainer"),this._portContainer.appendChild(this._outputPortContainer),this._inputPortContainer=a.ownerDocument.createElement("div"),this._inputPortContainer.classList.add("inputsContainer"),this._portContainer.appendChild(this._inputPortContainer),this.name="Frame",this.color=s.Color3.FromInts(72,72,72),t&&(this.x=parseFloat(t.style.left.replace("px","")),this.y=parseFloat(t.style.top.replace("px","")),this.width=parseFloat(t.style.width.replace("px","")),this.height=parseFloat(t.style.height.replace("px","")),this.cleanAccumulation()),this._headerTextElement.addEventListener("pointerdown",(function(e){return o._onDown(e)})),this._headerTextElement.addEventListener("pointerup",(function(e){return o._onUp(e)})),this._headerTextElement.addEventListener("pointermove",(function(e){return o._onMove(e)})),this._onSelectionChangedObserver=n.globalState.onSelectionChangedObservable.add((function(e){e===o?o.element.classList.add("selected"):o.element.classList.remove("selected")})),this._onGraphNodeRemovalObserver=n.globalState.onGraphNodeRemovalObservable.add((function(e){var t=o._nodes.indexOf(e);-1!==t&&(e.enclosingFrameId=-1,o._nodes.splice(t,1))})),this._onExposePortOnFrameObserver=n.globalState.onExposePortOnFrameObservable.add((function(e){-1!==o.nodes.indexOf(e)&&o.redrawFramePorts()})),this._commentsElement=document.createElement("div"),this._commentsElement.className="frame-comments",this._commentsElement.style.color="white",this._commentsElement.style.fontSize="16px";var m=document.createElement("span");m.className="frame-comment-span",this._commentsElement.appendChild(m),this.element.appendChild(this._commentsElement),r||this.refresh()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this._isCollapsed},set:function(e){if(this._isCollapsed!==e){if(this._isCollapsed=e,this._ownerCanvas._frameIsMoving=!0,e)this.element.classList.add("collapsed"),this._moveFrame((this.width-this.CollapsedWidth)/2,0),this._createFramePorts(),this._markFramePortPositions();else{this.element.classList.remove("collapsed"),this._outputPortContainer.innerHTML="",this._inputPortContainer.innerHTML="",this._frameInPorts.forEach((function(e){e.dispose()})),this._frameOutPorts.forEach((function(e){e.dispose()})),this._controlledPorts.forEach((function(e){e.delegatedPort=null,e.refresh()})),this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._onNodeLinkDisposedObservers=[];for(var t=0,n=this._nodes;t<n.length;t++){n[t].isVisible=!0}this._moveFrame(-(this.width-this.CollapsedWidth)/2,0)}this.cleanAccumulation(),this._ownerCanvas._frameIsMoving=!1,this._isCollapsed?(this._headerCollapseElement.innerHTML=this.ExpandSVG,this._headerCollapseElement.title="Expand"):(this._headerCollapseElement.innerHTML=this.CollapseSVG,this._headerCollapseElement.title="Collapse"),this.onExpandStateChanged.notifyObservers(this)}},enumerable:!1,configurable:!0}),e.prototype._createInputPort=function(t,n){var r=nt.CreateFrameNodePortElement(t.connectionPoint,n,this._inputPortContainer,null,this._ownerCanvas.globalState,!0,e._FramePortCounter++,this.id);this._frameInPorts.push(r),t.delegatedPort=r,this._controlledPorts.push(t),t.exposedPortPosition=this._exposedInPorts.findIndex((function(e){return e===t})),t.exposedPortPosition<0&&(this._exposedInPorts.push(t),t.exposedPortPosition=this._exposedInPorts.length-1)},e.prototype._markFramePortPositions=function(){if(2==this._frameInPorts.length)this._frameInPorts[0].framePortPosition=Je.Top,this._frameInPorts[1].framePortPosition=Je.Bottom;else for(var e=0;e<this._frameInPorts.length;e++){var t=this._frameInPorts[e];0===e?t.framePortPosition=Je.Top:e===this._frameInPorts.length-1?t.framePortPosition=Je.Bottom:t.framePortPosition=Je.Middle}if(2==this._frameOutPorts.length)this._frameOutPorts[0].framePortPosition=Je.Top,this._frameOutPorts[1].framePortPosition=Je.Bottom;else for(e=0;e<this._frameOutPorts.length;e++){t=this._frameOutPorts[e];0===e?t.framePortPosition=Je.Top:e===this._frameInPorts.length-1?t.framePortPosition=Je.Bottom:t.framePortPosition=Je.Middle}},e.prototype._createFramePorts=function(){for(var e=0,t=this._nodes;e<t.length;e++){(a=t[e]).isVisible=!1}for(var n=0;n<this._exposedOutPorts.length;){if(null===(d=this._exposedOutPorts[n]).node||d.node.enclosingFrameId!=this.id){if(this.removePortFromExposedWithNode(d,this._exposedOutPorts))continue}else if(!this.createOutputPorts(d,d.node)&&this.removePortFromExposedWithNode(d,this._exposedOutPorts))continue;++n}for(n=0;n<this._exposedInPorts.length;){if((d=this._exposedInPorts[n])&&null!==d.node&&d.node.enclosingFrameId==this.id){if(!this.createInputPorts(d,d.node)&&this.removePortFromExposedWithNode(d,this._exposedInPorts))continue}else if(this.removePortFromExposedWithNode(d,this._exposedInPorts))continue;++n}for(var r=0,o=this._nodes;r<o.length;r++){for(var a=o[r],i=function(e){e.exposedPortPosition=s._exposedOutPorts.findIndex((function(t){return t===e})),e.exposedPortPosition<0&&s.createOutputPorts(e,a)&&(e.node.enclosingFrameId=s.id,s._exposedOutPorts.push(e),e.exposedPortPosition=s._exposedOutPorts.length-1)},s=this,l=0,c=a.outputPorts;l<c.length;l++){i(c[l])}for(var u=0,p=a.inputPorts;u<p.length;u++){var d;(d=p[u]).exposedPortPosition=this._exposedInPorts.findIndex((function(e){return e===d})),d.exposedPortPosition<0&&this.createInputPorts(d,a)}}},e.prototype.removePortFromExposedWithNode=function(e,t){var n=t.findIndex((function(t){return t===e}));return n>=0&&(t.splice(n,1),e&&(e.exposedPortPosition=-1),!0)},e.prototype.removePortFromExposedWithLink=function(e,t){var n=t.findIndex((function(t){return t===e.portA})),r=t.findIndex((function(t){return t===e.portB}));if(n>=0){if(!e.portA.exposedOnFrame)return t.splice(n,1),e.portA.exposedPortPosition=-1,!0}else if(r>=0&&e.portB&&!e.portB.exposedOnFrame)return t.splice(r,1),e.portB.exposedPortPosition=-1,!0;return!1},e.prototype.createInputPorts=function(e,t){var n=this;if(e.connectionPoint.isConnected){for(var r=!1,o=0,a=t.links;o<a.length;o++){var i=a[o];if(i.portB===e&&-1===this.nodes.indexOf(i.nodeA)){this._createInputPort(e,t),i.isVisible=!0,r=!0;var s=i.onDisposedObservable.add((function(e){n.removePortFromExposedWithLink(e,n._exposedInPorts)&&n.redrawFramePorts()}));this._onNodeLinkDisposedObservers.push(s)}}if(r)return!0}else if(e.exposedOnFrame)return this._createInputPort(e,t),!0;return!1},e.prototype.createOutputPorts=function(t,n){var r=this;if(t.connectionPoint.hasEndpoints){for(var o=!1,a=0,i=n.links;a<i.length;a++){var s=i[a];if(s.portA===t&&-1===this.nodes.indexOf(s.nodeB)){var l=void 0;if(o)-1===this.nodes.indexOf(s.nodeB)?(s.isVisible=!0,l=this.ports.filter((function(e){return e.connectionPoint===t.connectionPoint}))[0]):l=this.ports.filter((function(e){return e.connectionPoint===t.connectionPoint}))[0];else{o=!0,l=nt.CreateFrameNodePortElement(t.connectionPoint,s.nodeA,this._outputPortContainer,null,this._ownerCanvas.globalState,!1,e._FramePortCounter++,this.id),this._frameOutPorts.push(l),s.isVisible=!0;var c=s.onDisposedObservable.add((function(e){r.removePortFromExposedWithLink(e,r._exposedOutPorts)&&r.redrawFramePorts()}));this._onNodeLinkDisposedObservers.push(c)}t.delegatedPort=l,this._controlledPorts.push(t)}else if(t.exposedPortPosition>=0&&!o){l=nt.CreateFrameNodePortElement(t.connectionPoint,n,this._outputPortContainer,null,this._ownerCanvas.globalState,!1,e._FramePortCounter++,this.id);this._frameOutPorts.push(l),t.delegatedPort=l,this._controlledPorts.push(t),o=!0}}if(o)return!0}else if(t.exposedOnFrame){l=nt.CreateFrameNodePortElement(t.connectionPoint,n,this._outputPortContainer,null,this._ownerCanvas.globalState,!1,e._FramePortCounter++,this.id);return this._frameOutPorts.push(l),t.delegatedPort=l,this._controlledPorts.push(t),!0}return!1},e.prototype.redrawFramePorts=function(){this.isCollapsed&&(this._outputPortContainer.innerHTML="",this._inputPortContainer.innerHTML="",this.ports.forEach((function(e){e.dispose()})),this._controlledPorts.forEach((function(e){e.delegatedPort=null,e.refresh()})),this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._createFramePorts(),this._markFramePortPositions(),this.ports.forEach((function(e){return e.node._refreshLinks()})))},Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ports",{get:function(){return this._frameInPorts.concat(this._frameOutPorts)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._headerTextElement.innerHTML=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this._headerElement.style.background="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 1)",this._headerElement.style.borderColor="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 1)",this.element.style.background="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 0.7)"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._gridAlignedX=this._ownerCanvas.getGridPosition(e),this.element.style.left=this._gridAlignedX+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._gridAlignedY=this._ownerCanvas.getGridPosition(e),this.element.style.top=this._gridAlignedY+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){if(this._width!==e){var t=e>this._minFrameWidth?e:this._minFrameWidth;this._width=t;var n=this._ownerCanvas.getGridPositionCeil(t+this._gridAlignedX);this.element.style.width=n-this._gridAlignedX+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){if(this._height!==e){this._height=e;var t=this._ownerCanvas.getGridPositionCeil(e+this._gridAlignedY);this.element.style.height=t-this._gridAlignedY+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"comments",{get:function(){return this._comments},set:function(e){e&&!this._comments&&e.length>0?(this.element.style.gridTemplateRows="40px min-content 1fr",this._borderElement.style.gridRow="1 / span 3",this._portContainer.style.gridRow="3",this._commentsElement.classList.add("has-comments")):e||(this.element.style.gridTemplateRows="40px calc(100% - 40px)",this._borderElement.style.gridRow="1 / span 2",this._portContainer.style.gridRow="2",this._commentsElement.classList.remove("has-comments")),(""===e||e&&e.length>=0)&&(this._commentsElement.children[0].innerText=e),this.height=this._borderElement.offsetHeight,this._comments=e,this.updateMinHeightWithComments()},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this._nodes=[],this._ownerCanvas.globalState.onFrameCreatedObservable.notifyObservers(this)},e.prototype.addNode=function(e){-1===this.nodes.indexOf(e)&&this.nodes.push(e)},e.prototype.removeNode=function(e){var t=this.nodes.indexOf(e);t>-1&&(e.enclosingFrameId=-1,this.nodes.splice(t,1))},e.prototype.syncNode=function(e){this.isCollapsed||(e.isOverlappingFrame(this)?this.addNode(e):this.removeNode(e))},e.prototype.cleanAccumulation=function(){for(var e=0,t=this._nodes;e<t.length;e++){t[e].cleanAccumulation()}this.x=this._ownerCanvas.getGridPosition(this.x),this.y=this._ownerCanvas.getGridPosition(this.y)},e.prototype._onDown=function(e){e.stopPropagation(),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,this._headerTextElement.setPointerCapture(e.pointerId),this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this),this._ownerCanvas._frameIsMoving=!0,this.move(this._ownerCanvas.getGridPosition(this.x),this._ownerCanvas.getGridPosition(this.y))},e.prototype.move=function(e,t,n){void 0===n&&(n=!0);var r=this.x,o=this.y;this.x=e,this.y=t;for(var a=0,i=this._nodes;a<i.length;a++){var s=i[a];s.x+=this.x-r,s.y+=this.y-o,n&&s.cleanAccumulation(!0)}},e.prototype._onUp=function(e){e.stopPropagation(),this.cleanAccumulation(),this._mouseStartPointX=null,this._mouseStartPointY=null,this._headerTextElement.releasePointerCapture(e.pointerId),this._ownerCanvas._frameIsMoving=!1},e.prototype._moveFrame=function(e,t){this.x+=e,this.y+=t;for(var n=0,r=this._nodes;n<r.length;n++){var o=r[n];o.x+=e,o.y+=t}},e.prototype._onMove=function(e){if(null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&!e.ctrlKey&&!this._frameIsResizing){var t=(e.clientX-this._mouseStartPointX)/this._ownerCanvas.zoom,n=(e.clientY-this._mouseStartPointY)/this._ownerCanvas.zoom;this._moveFrame(t,n),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,e.stopPropagation()}},e.prototype.moveFramePortUp=function(e){var t,n,r;if(e.isInput){if(this._inputPortContainer.children.length<2)return;r=Array.from(this._inputPortContainer.childNodes);var o=this._frameInPorts.findIndex((function(t){return t===e}));t=[this._exposedInPorts[o],this._exposedInPorts[o-1]],this._exposedInPorts[o-1]=t[0],this._exposedInPorts[o]=t[1],this._movePortUp(r,e,this._frameInPorts)}else{if(this._outputPortContainer.children.length<2)return;r=Array.from(this._outputPortContainer.childNodes);o=this._frameOutPorts.findIndex((function(t){return t===e}));n=[this._exposedOutPorts[o],this._exposedOutPorts[o-1]],this._exposedOutPorts[o-1]=n[0],this._exposedOutPorts[o]=n[1],this._movePortUp(r,e,this._frameOutPorts)}this.ports.forEach((function(e){return e.node._refreshLinks()}))},e.prototype._movePortUp=function(e,t,n){var r,o,a=e.findIndex((function(e){return e.dataset.framePortId===""+t.framePortId}));if(0!==a){var i=e[a],s=e[a-1];null===(o=s.parentElement)||void 0===o||o.insertBefore(i,s);var l=n.findIndex((function(e){return e===t}));r=[n[l],n[l-1]],n[l-1]=r[0],n[l]=r[1],2==n.length?(n[1].framePortPosition=Je.Bottom,n[0].framePortPosition=Je.Top):1===a?(n[1].framePortPosition=Je.Middle,n[0].framePortPosition=Je.Top):l===e.length-1?(n[n.length-1].framePortPosition=Je.Bottom,n[n.length-2].framePortPosition=Je.Middle):t.framePortPosition=Je.Middle}},e.prototype.moveFramePortDown=function(e){var t,n,r;if(e.isInput){if(this._inputPortContainer.children.length<2)return;r=Array.from(this._inputPortContainer.childNodes);var o=this._frameInPorts.findIndex((function(t){return t===e}));t=[this._exposedInPorts[o+1],this._exposedInPorts[o]],this._exposedInPorts[o]=t[0],this._exposedInPorts[o+1]=t[1],this._movePortDown(r,e,this._frameInPorts)}else{if(this._outputPortContainer.children.length<2)return;r=Array.from(this._outputPortContainer.childNodes);o=this._frameOutPorts.findIndex((function(t){return t===e}));n=[this._exposedOutPorts[o+1],this._exposedOutPorts[o]],this._exposedOutPorts[o]=n[0],this._exposedOutPorts[o+1]=n[1],this._movePortDown(r,e,this._frameOutPorts)}this.ports.forEach((function(e){return e.node._refreshLinks()}))},e.prototype._movePortDown=function(e,t,n){var r,o,a=e.findIndex((function(e){return e.dataset.framePortId===""+t.framePortId}));if(a!==e.length-1){var i=e[a],s=e[a+1];null===(o=i.parentElement)||void 0===o||o.insertBefore(s,i);var l=n.findIndex((function(e){return e===t}));r=[n[l+1],n[l]],n[l]=r[0],n[l+1]=r[1],2==n.length?(n[0].framePortPosition=Je.Top,n[1].framePortPosition=Je.Bottom):l===e.length-2?(n[e.length-2].framePortPosition=Je.Middle,n[e.length-1].framePortPosition=Je.Bottom):0===l?(n[0].framePortPosition=Je.Top,n[1].framePortPosition=Je.Middle):t.framePortPosition=Je.Middle}},e.prototype._isResizingTop=function(){return this._resizingDirection===$e.Top||this._resizingDirection===$e.TopRight||this._resizingDirection===$e.TopLeft},e.prototype._isResizingRight=function(){return this._resizingDirection===$e.Right||this._resizingDirection===$e.TopRight||this._resizingDirection===$e.BottomRight},e.prototype._isResizingBottom=function(){return this._resizingDirection===$e.Bottom||this._resizingDirection===$e.BottomLeft||this._resizingDirection===$e.BottomRight},e.prototype._isResizingLeft=function(){return this._resizingDirection===$e.Left||this._resizingDirection===$e.TopLeft||this._resizingDirection===$e.BottomLeft},e.prototype._expandLeft=function(e){var t=parseFloat(this.element.style.width.replace("px","")),n=parseFloat(this.element.style.left.replace("px",""));this.element.style.width=t-e+"px",this.element.style.left=n+e+"px",this.updateMinHeightWithComments()},e.prototype._expandTop=function(e){var t=parseFloat(this.element.style.height.replace("px","")),n=parseFloat(this.element.style.top.replace("px",""));this.element.style.height=t-e+"px",this.element.style.top=n+e+"px"},e.prototype._expandRight=function(e,t){var n=parseFloat(this.element.style.width.replace("px",""));n+e>20&&(this._mouseStartPointX=t,this.element.style.width=n+e+"px"),this.updateMinHeightWithComments()},e.prototype._expandBottom=function(e){var t=parseFloat(this.element.style.height.replace("px",""));this.element.style.height=t+e+"px"},e.prototype.dispose=function(){var e;this._onSelectionChangedObserver&&this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onGraphNodeRemovalObserver&&this._ownerCanvas.globalState.onGraphNodeRemovalObservable.remove(this._onGraphNodeRemovalObserver),this._onExposePortOnFrameObserver&&this._ownerCanvas.globalState.onExposePortOnFrameObservable.remove(this._onExposePortOnFrameObserver),null===(e=this.element.parentElement)||void 0===e||e.removeChild(this.element),this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this),1),this.onExpandStateChanged.clear()},e.prototype.serializePortData=function(e){if(e.length>0)for(var t=0;t<e.length;++t)e[t].exposedPortPosition=t},e.prototype.serialize=function(e){return this.serializePortData(this._exposedInPorts),this.serializePortData(this._exposedOutPorts),{x:this._x,y:this._y,width:this._width,height:this._height,color:this._color.asArray(),name:this.name,isCollapsed:!e||this.isCollapsed,blocks:this.nodes.map((function(e){return e.block.uniqueId})),comments:this._comments}},e.prototype.export=function(){var e=this._ownerCanvas.globalState,t=S.Serialize(e.nodeMaterial,e,this);C.DownloadAsFile(e.hostDocument,t,this._name+".json")},e.Parse=function(t,n,r){var o=new e(null,n,!0),a=!!t.isCollapsed;if(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height,o.name=t.name,o.color=s.Color3.FromArray(t.color),o.comments=t.comments,t.blocks&&r)for(var i=function(){var e=r[u],t=n.nodes.filter((function(t){return t.block.uniqueId===e}));t.length&&(o.nodes.push(t[0]),t[0].enclosingFrameId=o.id)},l=0,c=t.blocks;l<c.length;l++){var u=c[l];i()}else o.refresh();for(var p=0,d=o.nodes;p<d.length;p++){for(var f=d[p],h=0,m=f.outputPorts;h<m.length;h++){(b=m[h]).exposedOnFrame&&-1!==b.exposedPortPosition&&(o._exposedOutPorts[b.exposedPortPosition]=b)}for(var g=0,v=f.inputPorts;g<v.length;g++){var b;(b=v[g]).exposedOnFrame&&-1!==b.exposedPortPosition&&(o._exposedInPorts[b.exposedPortPosition]=b)}}if(o.isCollapsed=a,a){n._frameIsMoving=!0,o._moveFrame(-(o.width-o.CollapsedWidth)/2,0);var y=t.x-o.x;o._moveFrame(y,0),o.cleanAccumulation();for(var x=0,w=o.nodes;x<w.length;x++){w[x].refresh()}n._frameIsMoving=!1}return o},e._FrameCounter=0,e._FramePortCounter=0,e}(),ot=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.onFrameExpandStateChangedObserver=this.props.frame.onExpandStateChanged.add((function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.onFrameExpandStateChangedObserver&&(this.props.frame.onExpandStateChanged.remove(this.onFrameExpandStateChangedObserver),this.onFrameExpandStateChangedObserver=null)},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(m,{title:"GENERAL"},o.createElement(fe,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.frame}),o.createElement(oe,{globalState:this.props.globalState,label:"Color",target:this.props.frame,propertyName:"color"}),o.createElement(fe,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.frame}),!this.props.frame.isCollapsed&&o.createElement(_,{label:"Collapse",onClick:function(){e.props.frame.isCollapsed=!0}}),this.props.frame.isCollapsed&&o.createElement(_,{label:"Expand",onClick:function(){e.props.frame.isCollapsed=!1}}),o.createElement(_,{label:"Export",onClick:function(){e.props.frame.export()}}))))},t}(o.Component),at=function(e){function t(t){var n=e.call(this,t)||this;n.state={port:n.props.frameNodePort};var r=n;return n._onSelectionChangedObserver=n.props.globalState.onSelectionChangedObservable.add((function(e){et(e)&&(e.port.onFramePortPositionChangedObservable.clear(),r._onFramePortPositionChangedObserver=e.port.onFramePortPositionChangedObservable.add((function(e){r.setState({port:e})})),r.setState({port:e.port}))})),n._onFramePortPositionChangedObserver=n.props.frameNodePort.onFramePortPositionChangedObservable.add((function(e){r.setState({port:e})})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.frameNodePort.onFramePortPositionChangedObservable.remove(this._onFramePortPositionChangedObserver),this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(m,{title:"GENERAL"},o.createElement(fe,{globalState:this.props.globalState,label:"Port Name",propertyName:"portName",target:this.props.frameNodePort}),this.props.frameNodePort.framePortPosition!==Je.Top&&o.createElement(_,{label:"Move Port Up",onClick:function(){e.props.frame.moveFramePortUp(e.props.frameNodePort)}}),this.props.frameNodePort.framePortPosition!==Je.Bottom&&o.createElement(_,{label:"Move Port Down",onClick:function(){e.props.frame.moveFramePortDown(e.props.frameNodePort)}}))))},t}(o.Component),it=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},t.prototype.toggleExposeOnFrame=function(e){this.props.nodePort.exposedOnFrame=e,this.props.globalState.onExposePortOnFrameObservable.notifyObservers(this.props.nodePort.node)},t.prototype.render=function(){var e=this,t=this.props.nodePort.hasLabel()?o.createElement(o.Fragment,null,this.props.nodePort.hasLabel()&&o.createElement(fe,{globalState:this.props.globalState,label:"Port Label",propertyName:"portName",target:this.props.nodePort}),-1!==this.props.nodePort.node.enclosingFrameId&&o.createElement(E,{label:"Expose Port on Frame",target:this.props.nodePort,isSelected:function(){return e.props.nodePort.exposedOnFrame},onSelect:function(t){return e.toggleExposeOnFrame(t)},propertyName:"exposedOnFrame",disabled:this.props.nodePort.disabled})):o.createElement(he,{label:"This node is a constant input node and cannot be exposed to the frame.",value:" "});return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(m,{title:"GENERAL"},t)))},t}(o.Component);n(321);var st=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:null},n._modeSelect=o.createRef(),n}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add((function(t){t instanceof Ze?e.setState({currentNode:t,currentFrame:null,currentFrameNodePort:null,currentNodePort:null}):t instanceof rt?e.setState({currentNode:null,currentFrame:t,currentFrameNodePort:null,currentNodePort:null}):et(t)?e.setState({currentNode:null,currentFrame:t.frame,currentFrameNodePort:t.port,currentNodePort:null}):t instanceof qe?e.setState({currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:t}):e.setState({currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:null})})),this._onBuiltObserver=this.props.globalState.onBuiltObservable.add((function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver)},t.prototype.processInputBlockUpdate=function(e){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.isConstant&&this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.renderInputBlock=function(e){var t=this;switch(e.type){case s.NodeMaterialBlockConnectionPointTypes.Float:var n=isNaN(e.min)||isNaN(e.max)||e.min===e.max;return o.createElement("div",{key:e.uniqueId},e.isBoolean&&o.createElement(E,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",onValueChanged:function(){t.processInputBlockUpdate(e)}}),!e.isBoolean&&n&&o.createElement(P,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}}),!e.isBoolean&&!n&&o.createElement(O,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",step:(e.max-e.min)/100,minimum:e.min,maximum:e.max,globalState:this.props.globalState,onChange:function(){return t.processInputBlockUpdate(e)}}));case s.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement(oe,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case s.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(we,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case s.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(Z,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case s.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(ie,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case s.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(le,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}})}return null},t.prototype.load=function(e){var t=this;s.Tools.ReadFile(e,(function(e){var n=new TextDecoder("utf-8");S.Deserialize(JSON.parse(n.decode(e)),t.props.globalState),t.changeMode(t.props.globalState.nodeMaterial.mode,!0,!1)||t.props.globalState.onResetRequiredObservable.notifyObservers(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null)}),void 0,!0)},t.prototype.loadFrame=function(e){var t=this;s.Tools.ReadFile(e,(function(e){var n=new TextDecoder("utf-8"),r=JSON.parse(n.decode(e));S.AddFrameToMaterial(r,t.props.globalState,t.props.globalState.nodeMaterial)}),void 0,!0)},t.prototype.save=function(){var e=S.Serialize(this.props.globalState.nodeMaterial,this.props.globalState);C.DownloadAsFile(this.props.globalState.hostDocument,e,"nodeMaterial.json")},t.prototype.customSave=function(){var e=this;this.props.globalState.onLogRequiredObservable.notifyObservers({message:"Saving your material to Babylon.js snippet server...",isError:!1}),this.props.globalState.customSave.action(S.Serialize(this.props.globalState.nodeMaterial,this.props.globalState)).then((function(){e.props.globalState.onLogRequiredObservable.notifyObservers({message:"Material saved successfully",isError:!1})})).catch((function(t){e.props.globalState.onLogRequiredObservable.notifyObservers({message:t,isError:!0})}))},t.prototype.saveToSnippetServer=function(){var e=this,t=this.props.globalState.nodeMaterial,n=new XMLHttpRequest,r=S.Serialize(t,this.props.globalState);n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var r=JSON.parse(n.responseText),a=t.snippetId;t.snippetId=r.id,r.version&&"0"!=r.version&&(t.snippetId+="#"+r.version),e.forceUpdate(),navigator.clipboard&&navigator.clipboard.writeText(t.snippetId);var i=window;i.Playground&&a&&i.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp(a,"g"),replace:t.snippetId}),e.props.globalState.hostDocument.defaultView.alert("NodeMaterial saved with ID: "+t.snippetId+" (please note that the id was also saved to your clipboard)")}else e.props.globalState.hostDocument.defaultView.alert("Unable to save your node material. It may be too large ("+(o.payload.length/1024).toFixed(2)+" KB) because of embedded textures. Please reduce texture sizes or point to a specific url instead of embedding them and try again.")},n.open("POST",s.NodeMaterial.SnippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),n.setRequestHeader("Content-Type","application/json");var o={payload:JSON.stringify({nodeMaterial:r}),name:"",description:"",tags:""};n.send(JSON.stringify(o))},t.prototype.loadFromSnippet=function(){var e=this,t=this.props.globalState.nodeMaterial,n=t.getScene(),r=window.prompt("Please enter the snippet ID to use");r&&(this.props.globalState.onSelectionChangedObservable.notifyObservers(null),s.NodeMaterial.ParseFromSnippetAsync(r,n,"",t).then((function(){t.build(),e.changeMode(e.props.globalState.nodeMaterial.mode,!0,!1)||e.props.globalState.onResetRequiredObservable.notifyObservers()})).catch((function(t){e.props.globalState.hostDocument.defaultView.alert("Unable to load your node material: "+t)})))},t.prototype.changeMode=function(e,t,n){var o,a;if(void 0===t&&(t=!1),void 0===n&&(n=!0),this.props.globalState.mode===e)return!1;if(!t&&!this.props.globalState.hostDocument.defaultView.confirm("Are your sure? You will lose your current changes (if any) if they are not saved!"))return null===(o=this._modeSelect.current)||void 0===o||o.setValue(this.props.globalState.mode),!1;if(t&&(null===(a=this._modeSelect.current)||void 0===a||a.setValue(e)),n)switch(e){case s.NodeMaterialModes.Material:this.props.globalState.nodeMaterial.setToDefault();break;case s.NodeMaterialModes.PostProcess:this.props.globalState.nodeMaterial.setToDefaultPostProcess();break;case s.NodeMaterialModes.Particle:this.props.globalState.nodeMaterial.setToDefaultParticle();break;case s.NodeMaterialModes.ProceduralTexture:this.props.globalState.nodeMaterial.setToDefaultProceduralTexture()}switch(e){case s.NodeMaterialModes.Material:this.props.globalState.previewType=r.Sphere;break;case s.NodeMaterialModes.Particle:this.props.globalState.previewType=r.Bubbles}return this.props.globalState.listOfCustomPreviewFiles=[],this.props.globalState.previewFile=void 0,s.DataStorage.WriteNumber("PreviewType",this.props.globalState.previewType),this.props.globalState.mode=e,this.props.globalState.onResetRequiredObservable.notifyObservers(),!0},t.prototype.render=function(){var e,t,n=this;if(this.state.currentNode)return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),(null===(e=this.state.currentNode)||void 0===e?void 0:e.renderProperties())||(null===(t=this.state.currentNodePort)||void 0===t?void 0:t.node.renderProperties()));if(this.state.currentFrameNodePort&&this.state.currentFrame)return o.createElement(at,{globalState:this.props.globalState,frame:this.state.currentFrame,frameNodePort:this.state.currentFrameNodePort});if(this.state.currentNodePort)return o.createElement(it,{globalState:this.props.globalState,nodePort:this.state.currentNodePort});if(this.state.currentFrame)return o.createElement(ot,{globalState:this.props.globalState,frame:this.state.currentFrame});var r=s.DataStorage.ReadNumber("GridSize",20),a=[{label:"Material",value:s.NodeMaterialModes.Material},{label:"Post Process",value:s.NodeMaterialModes.PostProcess},{label:"Particle",value:s.NodeMaterialModes.Particle},{label:"Procedural",value:s.NodeMaterialModes.ProceduralTexture}];return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(m,{title:"GENERAL"},o.createElement(ue,{ref:this._modeSelect,label:"Mode",target:this,getSelection:function(e){return n.props.globalState.mode},options:a,onSelect:function(e){return n.changeMode(e)}}),o.createElement(he,{label:"Version",value:s.Engine.Version}),o.createElement(he,{label:"Help",value:"doc.babylonjs.com",underline:!0,onLink:function(){return window.open("https://doc.babylonjs.com/how_to/node_material","_blank")}}),o.createElement(fe,{label:"Comment",multilines:!0,value:this.props.globalState.nodeMaterial.comment,target:this.props.globalState.nodeMaterial,propertyName:"comment",globalState:this.props.globalState}),o.createElement(_,{label:"Reset to default",onClick:function(){switch(n.props.globalState.mode){case s.NodeMaterialModes.Material:n.props.globalState.nodeMaterial.setToDefault();break;case s.NodeMaterialModes.PostProcess:n.props.globalState.nodeMaterial.setToDefaultPostProcess();break;case s.NodeMaterialModes.Particle:n.props.globalState.nodeMaterial.setToDefaultParticle();break;case s.NodeMaterialModes.ProceduralTexture:n.props.globalState.nodeMaterial.setToDefaultProceduralTexture()}n.props.globalState.onResetRequiredObservable.notifyObservers()}})),o.createElement(m,{title:"UI"},o.createElement(_,{label:"Zoom to fit",onClick:function(){n.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Reorganize",onClick:function(){n.props.globalState.onReOrganizedRequiredObservable.notifyObservers()}})),o.createElement(m,{title:"OPTIONS"},o.createElement(E,{label:"Embed textures when saving",isSelected:function(){return s.DataStorage.ReadBoolean("EmbedTextures",!0)},onSelect:function(e){s.DataStorage.WriteBoolean("EmbedTextures",e)}}),o.createElement(O,{label:"Grid size",minimum:0,maximum:100,step:5,decimalCount:0,globalState:this.props.globalState,directValue:r,onChange:function(e){s.DataStorage.WriteNumber("GridSize",e),n.props.globalState.onGridSizeChanged.notifyObservers(),n.forceUpdate()}}),o.createElement(E,{label:"Show grid",isSelected:function(){return s.DataStorage.ReadBoolean("ShowGrid",!0)},onSelect:function(e){s.DataStorage.WriteBoolean("ShowGrid",e),n.props.globalState.onGridSizeChanged.notifyObservers()}})),o.createElement(m,{title:"FILE"},o.createElement(k,{label:"Load",onClick:function(e){return n.load(e)},accept:".json"}),o.createElement(_,{label:"Save",onClick:function(){n.save()}}),o.createElement(_,{label:"Generate code",onClick:function(){C.DownloadAsFile(n.props.globalState.hostDocument,n.props.globalState.nodeMaterial.generateCode(),"code.txt")}}),o.createElement(_,{label:"Export shaders",onClick:function(){C.DownloadAsFile(n.props.globalState.hostDocument,n.props.globalState.nodeMaterial.compiledShaders,"shaders.txt")}}),this.props.globalState.customSave&&o.createElement(_,{label:this.props.globalState.customSave.label,onClick:function(){n.customSave()}}),o.createElement(k,{label:"Load Frame",uploadName:"frame-upload",onClick:function(e){return n.loadFrame(e)},accept:".json"})),!this.props.globalState.customSave&&o.createElement(m,{title:"SNIPPET"},this.props.globalState.nodeMaterial.snippetId&&o.createElement(he,{label:"Snippet ID",value:this.props.globalState.nodeMaterial.snippetId}),o.createElement(_,{label:"Load from snippet server",onClick:function(){return n.loadFromSnippet()}}),o.createElement(_,{label:"Save to snippet server",onClick:function(){n.saveToSnippetServer()}})),o.createElement(m,{title:"INPUTS"},this.props.globalState.nodeMaterial.getInputBlocks().map((function(e){return e.isUniform&&!e.isSystemValue&&e.name?n.renderInputBlock(e):null})))))},t}(o.Component),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return i.createPortal(this.props.children,this.props.globalState.hostElement)},t}(o.Component);n(323);var ct=function(e,t){this.message=e,this.isError=t},ut=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onLogRequiredObservable.add((function(t){var n=e.state.logs;n.push(t),e.setState({logs:n})}))},t.prototype.componentDidUpdate=function(){var e=i.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)},t.prototype.render=function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return o.createElement("div",{id:"log-console",ref:"log-console"},this.state.logs.map((function(e,a){return o.createElement("div",{key:a,className:"log"+(e.isError?" error":"")},t+":"+n+":"+r+": "+e.message)})))},t}(o.Component),pt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={message:"",isError:!1},n.props.globalState.onErrorMessageDialogRequiredObservable.add((function(e){n.setState({message:e,isError:!0})})),n}return u(t,e),t.prototype.render=function(){var e=this;return this.state.message?o.createElement("div",{className:"dialog-container"},o.createElement("div",{className:"dialog"},o.createElement("div",{className:"dialog-message"},this.state.message),o.createElement("div",{className:"dialog-buttons"},o.createElement("div",{className:"dialog-button-ok"+(this.state.isError?" error":""),onClick:function(){return e.setState({message:""})}},"OK")))):null},t}(o.Component),dt=function(){function e(e,t){var n=this;this._nodeMaterial=t.nodeMaterial,this._globalState=t,this._onBuildObserver=this._nodeMaterial.onBuildObservable.add((function(e){var t=e.serialize();n._updatePreview(t)})),this._onPreviewCommandActivatedObserver=t.onPreviewCommandActivated.add((function(e){e&&(n._currentType=-1),n._refreshPreviewMesh()})),this._onLightUpdatedObserver=t.onLightUpdated.add((function(){n._prepareLights()})),this._onUpdateRequiredObserver=t.onUpdateRequiredObservable.add((function(){var e=n._nodeMaterial.serialize();n._updatePreview(e)})),this._onPreviewBackgroundChangedObserver=t.onPreviewBackgroundChanged.add((function(){n._scene.clearColor=n._globalState.backgroundColor})),this._onAnimationCommandActivatedObserver=t.onAnimationCommandActivated.add((function(){n._handleAnimations()})),this._onBackFaceCullingChangedObserver=t.onBackFaceCullingChanged.add((function(){n._material.backFaceCulling=n._globalState.backFaceCulling})),this._onDepthPrePassChangedObserver=t.onDepthPrePassChanged.add((function(){n._material.needDepthPrePass=n._globalState.depthPrePass})),this._engine=new s.Engine(e,!0),this._scene=new s.Scene(this._engine),this._scene.clearColor=this._globalState.backgroundColor,this._scene.ambientColor=new s.Color3(1,1,1),this._camera=new s.ArcRotateCamera("Camera",0,.8,4,s.Vector3.Zero(),this._scene),this._camera.lowerRadiusLimit=3,this._camera.upperRadiusLimit=10,this._camera.wheelPrecision=20,this._camera.minZ=.1,this._camera.attachControl(!1),this._lightParent=new s.TransformNode("LightParent",this._scene),this._refreshPreviewMesh(),this._engine.runRenderLoop((function(){n._engine.resize(),n._scene.render()}));var r=void 0;this._scene.onPointerObservable.add((function(e){if(!n._globalState.controlCamera)if(e.type!==s.PointerEventTypes.POINTERUP){if(1===e.event.buttons){void 0===r&&(r=e.event.offsetX);var t=.01*(r-e.event.offsetX);n._lightParent.rotation.y+=t,r=e.event.offsetX}}else r=void 0}))}return e.prototype._handleAnimations=function(){if(this._scene.stopAllAnimations(),this._globalState.rotatePreview)for(var e=0,t=this._scene.rootNodes;e<t.length;e++){var n=t[e],r=n;"TransformNode"!==r.getClassName()&&"Mesh"!==r.getClassName()&&"GroundMesh"!==r.getClassName()||(r.rotationQuaternion&&(r.rotation=r.rotationQuaternion.toEulerAngles(),r.rotationQuaternion=null),s.Animation.CreateAndStartAnimation("turnTable",n,"rotation.y",60,1200,r.rotation.y,r.rotation.y+2*Math.PI,1))}},e.prototype._prepareLights=function(){for(var e=0,t=this._scene.lights.slice(0);e<t.length;e++){t[e].dispose()}if(this._globalState.hemisphericLight&&new s.HemisphericLight("Hemispheric light",new s.Vector3(0,1,0),this._scene),this._globalState.directionalLight0){var n=new s.DirectionalLight("Directional light #0",new s.Vector3(.841626576496605,-.2193391004130599,-.49351298337996535),this._scene);n.intensity=.9,n.diffuse=new s.Color3(.9294117647058824,.9725490196078431,.996078431372549),n.specular=new s.Color3(.9294117647058824,.9725490196078431,.996078431372549),n.parent=this._lightParent}if(this._globalState.directionalLight1){var r=new s.DirectionalLight("Directional light #1",new s.Vector3(-.9519937437504213,-.24389315636999764,-.1849974057546125),this._scene);r.intensity=1.2,r.specular=new s.Color3(.9803921568627451,.9529411764705882,.7725490196078432),r.diffuse=new s.Color3(.9803921568627451,.9529411764705882,.7725490196078432),r.parent=this._lightParent}},e.prototype._prepareScene=function(){var e=this;switch(this._camera.useFramingBehavior=this._globalState.mode===s.NodeMaterialModes.Material,this._globalState.mode){case s.NodeMaterialModes.Material:this._prepareLights();var t=this._camera.getBehaviorByName("Framing");setTimeout((function(){if(t.framingTime=0,t.elevationReturnTime=-1,e._scene.meshes.length){var n=e._scene.getWorldExtends();e._camera.lowerRadiusLimit=null,e._camera.upperRadiusLimit=null,t.zoomOnBoundingInfo(n.min,n.max)}e._camera.pinchPrecision=200/e._camera.radius,e._camera.upperRadiusLimit=5*e._camera.radius})),this._camera.wheelDeltaPercentage=.01,this._camera.pinchDeltaPercentage=.01,this._handleAnimations();break;case s.NodeMaterialModes.PostProcess:case s.NodeMaterialModes.ProceduralTexture:this._camera.radius=4,this._camera.upperRadiusLimit=10;break;case s.NodeMaterialModes.Particle:this._camera.radius=this._globalState.previewType===r.Explosion?50:this._globalState.previewType===r.DefaultParticleSystem?6:20,this._camera.upperRadiusLimit=5e3}var n=this._nodeMaterial.serialize();this._updatePreview(n)},e.prototype._refreshPreviewMesh=function(){var e=this;if(this._currentType!==this._globalState.previewType||this._currentType===r.Custom){if(this._currentType=this._globalState.previewType,this._meshes&&this._meshes.length)for(var t=0,n=this._meshes;t<n.length;t++){n[t].dispose()}this._meshes=[],this._layer&&(this._layer.dispose(),this._layer=null);for(var o=0,a=this._scene.lights.slice(0);o<a.length;o++){a[o].dispose()}if(this._engine.releaseEffects(),this._particleSystem&&(this._particleSystem.onBeforeDrawParticlesObservable.clear(),this._particleSystem.onDisposeObservable.clear(),this._particleSystem.stop(),this._particleSystem.dispose(),this._particleSystem=null),s.SceneLoader.ShowLoadingScreen=!1,this._globalState.onIsLoadingChanged.notifyObservers(!0),this._globalState.mode===s.NodeMaterialModes.Material)switch(this._globalState.previewType){case r.Box:return void s.SceneLoader.AppendAsync("https://models.babylonjs.com/","roundedCube.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareScene()}));case r.Sphere:this._meshes.push(s.Mesh.CreateSphere("dummy-sphere",32,2,this._scene));break;case r.Torus:this._meshes.push(s.Mesh.CreateTorus("dummy-torus",2,.5,32,this._scene));break;case r.Cylinder:return void s.SceneLoader.AppendAsync("https://models.babylonjs.com/","roundedCylinder.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareScene()}));case r.Plane:var i=s.Mesh.CreateGround("dummy-plane",2,2,128,this._scene);i.scaling.y=-1,i.rotation.x=Math.PI,this._meshes.push(i);break;case r.ShaderBall:return void s.SceneLoader.AppendAsync("https://models.babylonjs.com/","shaderBall.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareScene()}));case r.Custom:return void s.SceneLoader.AppendAsync("file:",this._globalState.previewFile,this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareScene()}))}else if(this._globalState.mode===s.NodeMaterialModes.ProceduralTexture)this._layer=new s.Layer("proceduralLayer",null,this._scene);else if(this._globalState.mode===s.NodeMaterialModes.Particle)switch(this._globalState.previewType){case r.DefaultParticleSystem:this._particleSystem=s.ParticleHelper.CreateDefault(new s.Vector3(0,0,0),500,this._scene),this._particleSystem.start();break;case r.Bubbles:this._particleSystem=new s.ParticleSystem("particles",4e3,this._scene),this._particleSystem.particleTexture=new s.Texture("https://assets.babylonjs.com/particles/textures/explosion/Flare.png",this._scene),this._particleSystem.minSize=.1,this._particleSystem.maxSize=1,this._particleSystem.minLifeTime=.5,this._particleSystem.maxLifeTime=5,this._particleSystem.minEmitPower=.5,this._particleSystem.maxEmitPower=3,this._particleSystem.createBoxEmitter(new s.Vector3(-1,1,-1),new s.Vector3(1,1,1),new s.Vector3(-.1,-.1,-.1),new s.Vector3(.1,.1,.1)),this._particleSystem.emitRate=100,this._particleSystem.blendMode=s.ParticleSystem.BLENDMODE_ONEONE,this._particleSystem.color1=new s.Color4(1,1,0,1),this._particleSystem.color2=new s.Color4(1,.5,0,1),this._particleSystem.gravity=new s.Vector3(0,-1,0),this._particleSystem.start();break;case r.Explosion:return void this._loadParticleSystem(this._globalState.previewType,1);case r.Fire:case r.Rain:case r.Smoke:return void this._loadParticleSystem(this._globalState.previewType);case r.Custom:return void s.FileTools.ReadFile(this._globalState.previewFile,(function(t){e._particleSystem=s.ParticleSystem.Parse(JSON.parse(t),e._scene,""),e._particleSystem.start(),e._prepareScene()}),void 0,!1,(function(e){console.log(e)}))}this._prepareScene()}},e.prototype._loadParticleSystem=function(e,t,n){var o=this;void 0===t&&(t=0),void 0===n&&(n=!0);var a="";switch(e){case r.Explosion:a="explosion";break;case r.Fire:a="fire";break;case r.Rain:a="rain";break;case r.Smoke:a="smoke"}s.ParticleHelper.CreateAsync(a,this._scene).then((function(r){for(var a=0;a<r.systems.length;++a)a==t?(o._particleSystem=r.systems[a],o._particleSystem.disposeOnStop=!0,o._particleSystem.onDisposeObservable.add((function(){o._loadParticleSystem(e,t,!1)})),o._particleSystem.start()):r.systems[a].dispose();if(n)o._prepareScene();else{var i=o._nodeMaterial.serialize();o._updatePreview(i)}}))},e.prototype._forceCompilationAsync=function(e,t){return e.forceCompilationAsync(t)},e.prototype._updatePreview=function(e){var t=this;try{var n=s.NodeMaterial.IgnoreTexturesAtLoadTime;s.NodeMaterial.IgnoreTexturesAtLoadTime=!1;var r=s.NodeMaterial.Parse(e,this._scene);switch(s.NodeMaterial.IgnoreTexturesAtLoadTime=n,r.backFaceCulling=this._globalState.backFaceCulling,r.needDepthPrePass=this._globalState.depthPrePass,this._postprocess&&(this._postprocess.dispose(this._camera),this._postprocess=null),this._proceduralTexture&&(this._proceduralTexture.dispose(),this._proceduralTexture=null),this._globalState.mode){case s.NodeMaterialModes.PostProcess:this._globalState.onIsLoadingChanged.notifyObservers(!1),this._postprocess=r.createPostProcess(this._camera,1,s.Constants.TEXTURE_NEAREST_SAMPLINGMODE,this._engine);var o=r.getBlockByPredicate((function(e){return e instanceof s.CurrentScreenBlock}));o&&this._postprocess&&this._postprocess.onApplyObservable.add((function(e){e.setTexture("textureSampler",o.texture)})),this._material&&this._material.dispose(),this._material=r;break;case s.NodeMaterialModes.ProceduralTexture:this._globalState.onIsLoadingChanged.notifyObservers(!1),this._proceduralTexture=r.createProceduralTexture(512,this._scene),this._material&&this._material.dispose(),this._layer&&(this._layer.texture=this._proceduralTexture);break;case s.NodeMaterialModes.Particle:this._globalState.onIsLoadingChanged.notifyObservers(!1),this._particleSystem.onBeforeDrawParticlesObservable.clear(),this._particleSystem.onBeforeDrawParticlesObservable.add((function(e){var t=r.getBlockByPredicate((function(e){return e instanceof s.ParticleTextureBlock}));t&&t.texture&&e&&e.setTexture("diffuseSampler",t.texture)})),r.createEffectForParticles(this._particleSystem),this._material&&this._material.dispose(),this._material=r;break;default:if(this._meshes.length){var a=this._meshes.map((function(e){return t._forceCompilationAsync(r,e)}));Promise.all(a).then((function(){for(var e=0,n=t._meshes;e<n.length;e++){n[e].material=r}t._material&&t._material.dispose(),t._material=r,t._globalState.onIsLoadingChanged.notifyObservers(!1)})).catch((function(e){t._globalState.onLogRequiredObservable.notifyObservers(new ct("Shader compilation error:\r\n"+e,!0)),t._globalState.onIsLoadingChanged.notifyObservers(!1)}))}else this._material=r}}catch(e){this._globalState.onIsLoadingChanged.notifyObservers(!1)}},e.prototype.dispose=function(){this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver),this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver),this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver),this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver),this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver),this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver),this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver),this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver),this._material&&this._material.dispose(),this._camera.dispose();for(var e=0,t=this._meshes;e<t.length;e++){t[e].dispose()}this._scene.dispose(),this._engine.dispose()},e}(),ft=n(325),ht=n(326),mt=n(327),gt=n(328),vt=function(e){function t(t){var n=e.call(this,t)||this;return n.colorInputRef=o.createRef(),n.filePickerRef=o.createRef(),n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},t.prototype.changeMeshType=function(e){this.props.globalState.previewType!==e&&(this.props.globalState.previewType=e,this.props.globalState.onPreviewCommandActivated.notifyObservers(!1),s.DataStorage.WriteNumber("PreviewType",e),this.forceUpdate())},t.prototype.useCustomMesh=function(e){var t=e.target.files;if(t&&t.length){var n=t[0];this.props.globalState.previewFile=n,this.props.globalState.previewType=r.Custom,this.props.globalState.onPreviewCommandActivated.notifyObservers(!1),this.props.globalState.listOfCustomPreviewFiles=[n],this.forceUpdate()}this.filePickerRef.current&&(this.filePickerRef.current.value="")},t.prototype.onPopUp=function(){this.props.togglePreviewAreaComponent()},t.prototype.changeAnimation=function(){this.props.globalState.rotatePreview=!this.props.globalState.rotatePreview,this.props.globalState.onAnimationCommandActivated.notifyObservers(),this.forceUpdate()},t.prototype.changeBackground=function(e){var t=s.Color3.FromHexString(e);s.DataStorage.WriteNumber("BackgroundColorR",t.r),s.DataStorage.WriteNumber("BackgroundColorG",t.g),s.DataStorage.WriteNumber("BackgroundColorB",t.b);var n=s.Color4.FromColor3(t,1);this.props.globalState.backgroundColor=n,this.props.globalState.onPreviewBackgroundChanged.notifyObservers()},t.prototype.changeBackgroundClick=function(){var e;null===(e=this.colorInputRef.current)||void 0===e||e.click()},t.prototype.render=function(){var e=this,t=[{label:"Cube",value:r.Box},{label:"Cylinder",value:r.Cylinder},{label:"Plane",value:r.Plane},{label:"Shader ball",value:r.ShaderBall},{label:"Sphere",value:r.Sphere},{label:"Load...",value:r.Custom+1}],n=[{label:"Default",value:r.DefaultParticleSystem},{label:"Bubbles",value:r.Bubbles},{label:"Explosion",value:r.Explosion},{label:"Fire",value:r.Fire},{label:"Rain",value:r.Rain},{label:"Smoke",value:r.Smoke},{label:"Load...",value:r.Custom+1}];this.props.globalState.listOfCustomPreviewFiles.length>0&&(t.splice(0,0,{label:"Custom",value:r.Custom}),n.splice(0,0,{label:"Custom",value:r.Custom}));var a=this.props.globalState.mode===s.NodeMaterialModes.Particle?n:t,i=this.props.globalState.mode===s.NodeMaterialModes.Particle?".json":".gltf, .glb, .babylon, .obj";return o.createElement("div",{id:"preview-mesh-bar"},(this.props.globalState.mode===s.NodeMaterialModes.Material||this.props.globalState.mode===s.NodeMaterialModes.Particle)&&o.createElement(o.Fragment,null,o.createElement(ue,{label:"",options:a,target:this.props.globalState,propertyName:"previewType",noDirectUpdate:!0,onSelect:function(t){var n;t!==r.Custom+1?e.changeMeshType(t):null===(n=e.filePickerRef.current)||void 0===n||n.click()}}),o.createElement("div",{style:{display:"none"},title:"Preview with a custom mesh"},o.createElement("input",{ref:this.filePickerRef,id:"file-picker",type:"file",onChange:function(t){return e.useCustomMesh(t)},accept:i}))),this.props.globalState.mode===s.NodeMaterialModes.Material&&o.createElement(o.Fragment,null,o.createElement("div",{title:"Turn-table animation",onClick:function(){return e.changeAnimation()},className:"button",id:"play-button"},this.props.globalState.rotatePreview?o.createElement("img",{src:mt,alt:""}):o.createElement("img",{src:gt,alt:""})),o.createElement("div",{id:"color-picker-button",title:"Background color",className:"button align",onClick:function(t){return e.changeBackgroundClick()}},o.createElement("img",{src:ht,alt:"",id:"color-picker-image"}),o.createElement("input",{ref:this.colorInputRef,id:"color-picker",type:"color",onChange:function(t){return e.changeBackground(t.target.value)}}))),o.createElement("div",{title:"Open preview in new window",id:"preview-new-window",onClick:function(){return e.onPopUp()},className:"button"},o.createElement("img",{src:ft,alt:""})))},t}(o.Component),bt=n(329),yt=n(330),xt=n(331),wt=n(332),_t=n(333),Ct=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n._onIsLoadingChangedObserver=n.props.globalState.onIsLoadingChanged.add((function(e){return n.setState({isLoading:e})})),n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onIsLoadingChanged.remove(this._onIsLoadingChangedObserver),this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},t.prototype.changeBackFaceCulling=function(e){this.props.globalState.backFaceCulling=e,s.DataStorage.WriteBoolean("BackFaceCulling",e),this.props.globalState.onBackFaceCullingChanged.notifyObservers(),this.forceUpdate()},t.prototype.changeDepthPrePass=function(e){this.props.globalState.depthPrePass=e,s.DataStorage.WriteBoolean("DepthPrePass",e),this.props.globalState.onDepthPrePassChanged.notifyObservers(),this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement("div",{id:"preview",style:{height:this.props.width+"px"}},o.createElement("canvas",{id:"preview-canvas"}),o.createElement("div",{className:"waitPanel"+(this.state.isLoading?"":" hidden")},"Please wait, loading...")),this.props.globalState.mode===s.NodeMaterialModes.Material&&o.createElement(o.Fragment,null,o.createElement("div",{id:"preview-config-bar"},o.createElement("div",{title:"Render without back face culling",onClick:function(){return e.changeBackFaceCulling(!e.props.globalState.backFaceCulling)},className:"button back-face"+(this.props.globalState.backFaceCulling?"":" selected")},o.createElement("img",{src:bt,alt:""})),o.createElement("div",{title:"Render with depth pre-pass",onClick:function(){return e.changeDepthPrePass(!e.props.globalState.depthPrePass)},className:"button depth-pass"+(this.props.globalState.depthPrePass?" selected":"")},o.createElement("img",{src:yt,alt:""})),o.createElement("div",{title:"Turn on/off hemispheric light",onClick:function(){e.props.globalState.hemisphericLight=!e.props.globalState.hemisphericLight,s.DataStorage.WriteBoolean("HemisphericLight",e.props.globalState.hemisphericLight),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button hemispheric-light"+(this.props.globalState.hemisphericLight?" selected":"")},o.createElement("img",{src:xt,alt:""})),o.createElement("div",{title:"Turn on/off direction light #1",onClick:function(){e.props.globalState.directionalLight1=!e.props.globalState.directionalLight1,s.DataStorage.WriteBoolean("DirectionalLight1",e.props.globalState.directionalLight1),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button direction-light-1"+(this.props.globalState.directionalLight1?" selected":"")},o.createElement("img",{src:wt,alt:""})),o.createElement("div",{title:"Turn on/off direction light #0",onClick:function(){e.props.globalState.directionalLight0=!e.props.globalState.directionalLight0,s.DataStorage.WriteBoolean("DirectionalLight0",e.props.globalState.directionalLight0),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button direction-light-0"+(this.props.globalState.directionalLight0?" selected":"")},o.createElement("img",{src:_t,alt:""})))))},t}(o.Component);n(334);var kt=function(e){function t(t){var n=e.call(this,t)||this;return n.NodeWidth=100,n._leftWidth=s.DataStorage.ReadNumber("LeftWidth",200),n._rightWidth=s.DataStorage.ReadNumber("RightWidth",300),n._blocks=new Array,n._copiedNodes=[],n._copiedFrame=null,n._mouseLocationX=0,n._mouseLocationY=0,n.handlePopUp=function(){n.setState({showPreviewPopUp:!0}),n.createPopUp(),n.props.globalState.hostWindow.addEventListener("beforeunload",n.handleClosingPopUp)},n.handleClosingPopUp=function(){n._previewManager.dispose(),n._popUpWindow.close(),n.setState({showPreviewPopUp:!1},(function(){return n.initiatePreviewArea()}))},n.initiatePreviewArea=function(e){void 0===e&&(e=n.props.globalState.hostDocument.getElementById("preview-canvas")),n._previewManager=new dt(e,n.props.globalState)},n.createPopUp=function(){var e=p({embedHostWidth:"100%"},{original:!0,popup:!0,overlay:!1,embedMode:!1,enableClose:!0,handleResize:!0,enablePopup:!0}),t=n.createPopupWindow("PREVIEW AREA","_PreviewHostWindow");if(t){t.addEventListener("beforeunload",n.handleClosingPopUp);var r=t.document.getElementById("node-editor-graph-root");n.createPreviewMeshControlHost(e,r),n.createPreviewHost(e,r),r&&(n.fixPopUpStyles(r.ownerDocument),n.initiatePreviewArea(r.ownerDocument.getElementById("preview-canvas")))}},n.createPopupWindow=function(e,t,r,o){void 0===r&&(r=500),void 0===o&&(o=500);var a={width:r,height:o,top:(n.props.globalState.hostWindow.innerHeight-r)/2+window.screenY,left:(n.props.globalState.hostWindow.innerWidth-o)/2+window.screenX},i=Object.keys(a).map((function(e){return e+"="+a[e]})).join(","),s=n.props.globalState.hostWindow.open("",e,i);if(!s)return null;var l=s.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 c=l.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",c.style.display="grid",c.style.gridTemplateRows="40px auto",c.id="node-editor-graph-root",c.className="right-panel",s.document.body.appendChild(c),n.copyStyles(n.props.globalState.hostWindow.document,l),n[t]=s,n._popUpWindow=s,s},n.copyStyles=function(e,t){for(var n=[],r=0;r<e.styleSheets.length;r++){var o=e.styleSheets[r];try{if(o.href){var a=e.createElement("link");a.rel="stylesheet",a.href=o.href,t.head.appendChild(a),n.push(a)}else if(o.cssRules){for(var i=e.createElement("style"),s=0,l=o.cssRules;s<l.length;s++){var c=l[s];i.appendChild(e.createTextNode(c.cssText))}t.head.appendChild(i),n.push(i)}}catch(e){console.log(e)}}},n.createPreviewMeshControlHost=function(e,t){if(t){var r=t.ownerDocument.createElement("div");r.id="PreviewMeshControl-host",r.style.width=e.embedHostWidth||"auto",t.appendChild(r);var a=o.createElement(vt,{globalState:n.props.globalState,togglePreviewAreaComponent:n.handlePopUp});i.render(a,r)}},n.createPreviewHost=function(e,t){if(t){var r=t.ownerDocument.createElement("div");r.id="PreviewAreaComponent-host",r.style.width=e.embedHostWidth||"auto",r.style.display="grid",r.style.gridRow="2",r.style.gridTemplateRows="auto 40px",t.appendChild(r),n._previewHost=r,e.overlay||(n._previewHost.style.position="relative")}if(n._previewHost){var a=o.createElement(Ct,{globalState:n.props.globalState,width:200});i.render(a,n._previewHost)}},n.fixPopUpStyles=function(e){var t=e.getElementById("preview");t&&(t.style.height="auto",t.style.gridRow="1");var n=e.getElementById("preview-config-bar");n&&(n.style.gridRow="2");var r=e.getElementById("preview-new-window");r&&(r.style.display="none");var o=e.getElementById("preview-mesh-bar");o&&(o.style.gridTemplateColumns="auto 1fr 40px 40px")},n.state={showPreviewPopUp:!1},n.props.globalState.onRebuildRequiredObservable.add((function(){n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onResetRequiredObservable.add((function(){n.build(),n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onImportFrameObservable.add((function(e){var t=e.editorData.frames[0];n.props.globalState.nodeMaterial.attachedBlocks.slice(-t.blocks.length).forEach((function(e){n.createNodeFromObject(e)})),n._graphCanvas.addFrame(t),n.reOrganize(n.props.globalState.nodeMaterial.editorData,!0)})),n.props.globalState.onZoomToFitRequiredObservable.add((function(){n.zoomToFit()})),n.props.globalState.onReOrganizedRequiredObservable.add((function(){n.reOrganize()})),n.props.globalState.onGetNodeFromBlock=function(e){return n._graphCanvas.findNodeFromBlock(e)},n.props.globalState.hostDocument.addEventListener("keydown",(function(e){if((46===e.keyCode||8===e.keyCode)&&!n.props.globalState.blockKeyboardEvents){for(var t=0,r=l=n._graphCanvas.selectedNodes;t<r.length;t++){var o=r[t];o.dispose();var a=o.block;n.props.globalState.nodeMaterial.removeBlock(a),(s=n._blocks.indexOf(a))>-1&&n._blocks.splice(s,1)}if(n._graphCanvas.selectedLink&&n._graphCanvas.selectedLink.dispose(),n._graphCanvas.selectedFrame){var i=n._graphCanvas.selectedFrame;if(i.isCollapsed){for(;i.nodes.length>0;){var s;a=i.nodes[0].block;n.props.globalState.nodeMaterial.removeBlock(a),(s=n._blocks.indexOf(a))>-1&&n._blocks.splice(s,1),i.nodes[0].dispose()}i.isCollapsed=!1}else i.nodes.forEach((function(e){e.enclosingFrameId=-1}));n._graphCanvas.selectedFrame.dispose()}return n.props.globalState.onSelectionChangedObservable.notifyObservers(null),void n.props.globalState.onRebuildRequiredObservable.notifyObservers()}if(e.ctrlKey&&!n.props.globalState.blockKeyboardEvents)if("c"===e.key){if(n._copiedNodes=[],n._copiedFrame=null,n._graphCanvas.selectedFrame)return void(n._copiedFrame=n._graphCanvas.selectedFrame);var l;if(!(l=n._graphCanvas.selectedNodes).length)return;if(!l[0].block)return;n._copiedNodes=l.slice(0)}else if("v"===e.key){var c=n.props.globalState.hostDocument.querySelector(".diagram-container"),u=n._graphCanvas.zoom,p=(n._mouseLocationY-c.offsetTop-n._graphCanvas.y-20)/u;if(n._copiedFrame){var d=new rt(null,n._graphCanvas,!0);n._graphCanvas.frames.push(d),d.width=n._copiedFrame.width,d.height=n._copiedFrame.height,d.width,d.name=n._copiedFrame.name,d.color=n._copiedFrame.color;var f=(n._mouseLocationX-c.offsetLeft-n._graphCanvas.x)/u;if(d.x=f-d.width/2,d.y=p,n._copiedFrame.nodes.length){f=d.x+n._copiedFrame.nodes[0].x-n._copiedFrame.x,p=d.y+n._copiedFrame.nodes[0].y-n._copiedFrame.y,n._graphCanvas._frameIsMoving=!0;var h=n.pasteSelection(n._copiedFrame.nodes,f,p);if(h)for(var m=0,g=h;m<g.length;m++){var v=g[m];d.syncNode(v)}n._graphCanvas._frameIsMoving=!1}return n._copiedFrame.isCollapsed&&(d.isCollapsed=!0),void n.props.globalState.onSelectionChangedObservable.notifyObservers(d)}if(!n._copiedNodes.length)return;var b=(n._mouseLocationX-c.offsetLeft-n._graphCanvas.x-n.NodeWidth)/u;n.pasteSelection(n._copiedNodes,b,p,!0)}}),!1),n}return u(t,e),t.prototype.createNodeFromObject=function(e,t){if(void 0===t&&(t=!0),-1!==this._blocks.indexOf(e))return this._graphCanvas.nodes.filter((function(t){return t.block===e}))[0];if(this._blocks.push(e),-1===this.props.globalState.nodeMaterial.attachedBlocks.indexOf(e)&&this.props.globalState.nodeMaterial.attachedBlocks.push(e),e.isFinalMerger&&this.props.globalState.nodeMaterial.addOutputNode(e),e.inputs.length)for(var n=0,r=e.inputs;n<r.length;n++){(s=r[n]).isConnected&&t&&this.createNodeFromObject(s.sourceBlock)}var o=this._graphCanvas.appendBlock(e);if(e.inputs.length&&t)for(var a=0,i=e.inputs;a<i.length;a++){var s;(s=i[a]).isConnected&&this._graphCanvas.connectPorts(s.connectedPoint,s)}return o},t.prototype.addValueNode=function(e){var t=Re.GetConnectionNodeTypeFromString(e),n=new s.InputBlock(e,void 0,t);return this.createNodeFromObject(n)},t.prototype.componentDidMount=function(){this.props.globalState.hostDocument&&(this._graphCanvas=this.refs.graphCanvas,this._previewManager=new dt(this.props.globalState.hostDocument.getElementById("preview-canvas"),this.props.globalState)),-1!==navigator.userAgent.indexOf("Mobile")&&((this.props.globalState.hostDocument||document).querySelector(".blocker").style.visibility="visible"),this.build()},t.prototype.componentWillUnmount=function(){this.props.globalState.hostDocument&&this.props.globalState.hostDocument.removeEventListener("keyup",this._onWidgetKeyUpPointer,!1),this._previewManager&&this._previewManager.dispose()},t.prototype.reconnectNewNodes=function(e,t,n,r){if(!r[e]){for(var o=t[e],a=o.block,i=n[e],s=function(){var e=i.block.inputs[c],o=a.inputs[c];if(!e.isConnected)return"continue";var s=e.connectedPoint.ownerBlock,u=n.filter((function(e){return e.block===s}));if(u.length>0){var p=u[0],d=n.indexOf(p);l.reconnectNewNodes(d,t,n,r);var f=s.outputs.indexOf(e.connectedPoint);t[d].block.outputs[f].connectTo(o)}else e._connectedPoint.connectTo(o);l._graphCanvas.connectPorts(o.connectedPoint,o)},l=this,c=0;c<i.block.inputs.length;c++)s();o.refresh(),r[e]=!0}},t.prototype.pasteSelection=function(e,t,n,r){void 0===r&&(r=!1);var o=null,a=[];e=e.slice(),this.props.globalState.onSelectionChangedObservable.notifyObservers(null);for(var i=0,s=e;i<s.length;i++){var l=s[i],c=l.block;if(c){var u=c.clone(this.props.globalState.nodeMaterial.getScene());if(!u)return;var p=this.createNodeFromObject(u,!1),d=0,f=0;o?(d=t+l.x-o.x,f=n+l.y-o.y):(o=l,d=t,f=n),p.x=d,p.y=f,p.cleanAccumulation(),a.push(p),r&&this.props.globalState.onSelectionChangedObservable.notifyObservers(p)}}for(var h=new Array(a.length),m=0;m<a.length;m++)this.reconnectNewNodes(m,a,e,h);return a},t.prototype.zoomToFit=function(){this._graphCanvas.zoomToFit()},t.prototype.buildMaterial=function(){if(this.props.globalState.nodeMaterial){try{this.props.globalState.nodeMaterial.options.emitComments=!0,this.props.globalState.nodeMaterial.build(!0),this.props.globalState.onLogRequiredObservable.notifyObservers(new ct("Node material build successful",!1))}catch(e){this.props.globalState.onLogRequiredObservable.notifyObservers(new ct(e,!0))}S.UpdateLocations(this.props.globalState.nodeMaterial,this.props.globalState),this.props.globalState.onBuiltObservable.notifyObservers()}},t.prototype.build=function(){var e=this.props.globalState.nodeMaterial.editorData;this._graphCanvas._isLoading=!0,e instanceof Array&&(e={locations:e}),this._blocks=[],this._graphCanvas.reset(),this.props.globalState.nodeMaterial&&this.loadGraph(),this.reOrganize(e)},t.prototype.loadGraph=function(){var e=this,t=this.props.globalState.nodeMaterial;t._vertexOutputNodes.forEach((function(t){e.createNodeFromObject(t,!0)})),t._fragmentOutputNodes.forEach((function(t){e.createNodeFromObject(t,!0)})),t.attachedBlocks.forEach((function(t){e.createNodeFromObject(t,!0)})),t.attachedBlocks.forEach((function(t){if(t.inputs.length)for(var n=0,r=t.inputs;n<r.length;n++){var o=r[n];o.isConnected&&e._graphCanvas.connectPorts(o.connectedPoint,o)}}))},t.prototype.showWaitScreen=function(){var e;null===(e=this.props.globalState.hostDocument.querySelector(".wait-screen"))||void 0===e||e.classList.remove("hidden")},t.prototype.hideWaitScreen=function(){var e;null===(e=this.props.globalState.hostDocument.querySelector(".wait-screen"))||void 0===e||e.classList.add("hidden")},t.prototype.reOrganize=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!1),this.showWaitScreen(),this._graphCanvas._isLoading=!0,setTimeout((function(){if(e&&e.locations){for(var r=0,o=e.locations;r<o.length;r++)for(var a=o[r],i=0,s=n._graphCanvas.nodes;i<s.length;i++){if((u=s[i]).block&&u.block.uniqueId===a.blockId){u.x=a.x,u.y=a.y,u.cleanAccumulation();break}}t||n._graphCanvas.processEditorData(e)}else n._graphCanvas.distributeGraph();n._graphCanvas._isLoading=!1;for(var l=0,c=n._graphCanvas.nodes;l<c.length;l++){var u;(u=c[l])._refreshLinks()}n.hideWaitScreen()}))},t.prototype.onPointerDown=function(e){this._startX=e.clientX,this._moveInProgress=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onPointerUp=function(e){this._moveInProgress=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.resizeColumns=function(e,t){if(void 0===t&&(t=!0),this._moveInProgress){var n=e.clientX-this._startX,r=e.currentTarget.ownerDocument.getElementById("node-editor-graph-root");t?(this._leftWidth+=n,this._leftWidth=Math.max(150,Math.min(400,this._leftWidth)),s.DataStorage.WriteNumber("LeftWidth",this._leftWidth)):(this._rightWidth-=n,this._rightWidth=Math.max(250,Math.min(500,this._rightWidth)),s.DataStorage.WriteNumber("RightWidth",this._rightWidth),r.ownerDocument.getElementById("preview").style.height=this._rightWidth+"px"),r.style.gridTemplateColumns=this.buildColumnLayout(),this._startX=e.clientX}},t.prototype.buildColumnLayout=function(){return this._leftWidth+"px 4px calc(100% - "+(this._leftWidth+8+this._rightWidth)+"px) 4px "+this._rightWidth+"px"},t.prototype.emitNewBlock=function(e){var t,n=this,r=e.dataTransfer.getData("babylonjs-material-node");if(r.indexOf("Custom")>-1){var o=localStorage.getItem(r);if(o){var a=JSON.parse(o),i=(e.clientX-e.currentTarget.offsetLeft-this._graphCanvas.x-this.NodeWidth)/this._graphCanvas.zoom,s=(e.clientY-e.currentTarget.offsetTop-this._graphCanvas.y-20)/this._graphCanvas.zoom,l=a.editorData.frames[0].x,c=a.editorData.frames[0].y;a.editorData.frames[0].x=i,a.editorData.frames[0].y=s;for(var u=0,p=a.editorData.locations;u<p.length;u++){var d=p[u];d.x+=i-l,d.y+=s-c}return S.AddFrameToMaterial(a,this.props.globalState,this.props.globalState.nodeMaterial),this._graphCanvas.frames[this._graphCanvas.frames.length-1].cleanAccumulation(),void this.forceUpdate()}}if(-1===r.indexOf("Block"))t=this.addValueNode(r);else{var f=Re.GetBlockFromString(r,this.props.globalState.nodeMaterial.getScene(),this.props.globalState.nodeMaterial);if(f.isUnique)for(var h=f.getClassName(),m=0,g=this._blocks;m<g.length;m++){var v=g[m];if(v!==f&&v.getClassName()===h)return void this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one "+h+" per graph")}f.autoConfigure(this.props.globalState.nodeMaterial),t=this.createNodeFromObject(f)}var b=e.clientX-e.currentTarget.offsetLeft-this._graphCanvas.x-this.NodeWidth,y=e.clientY-e.currentTarget.offsetTop-this._graphCanvas.y-20;t.x=b/this._graphCanvas.zoom,t.y=y/this._graphCanvas.zoom,t.cleanAccumulation(),this.props.globalState.onSelectionChangedObservable.notifyObservers(null),this.props.globalState.onSelectionChangedObservable.notifyObservers(t);var x=t.block;b-=this.NodeWidth+150,x.inputs.forEach((function(e){if(e.connectedPoint){var t=n._graphCanvas.nodes.filter((function(t){return t.block===e.connectedPoint.ownerBlock}))[0];0===t.x&&0===t.y&&(t.x=b/n._graphCanvas.zoom,t.y=y/n._graphCanvas.zoom,t.cleanAccumulation(),y+=80)}})),this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(lt,{globalState:this.props.globalState},o.createElement("div",{id:"node-editor-graph-root",style:{gridTemplateColumns:this.buildColumnLayout()},onMouseMove:function(t){e._mouseLocationX=t.pageX,e._mouseLocationY=t.pageY},onMouseDown:function(t){"INPUT"!==t.target.nodeName&&(e.props.globalState.blockKeyboardEvents=!1)}},o.createElement(w,{globalState:this.props.globalState}),o.createElement("div",{id:"leftGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t)}}),o.createElement("div",{className:"diagram-container",onDrop:function(t){e.emitNewBlock(t)},onDragOver:function(e){e.preventDefault()}},o.createElement(tt,{ref:"graphCanvas",globalState:this.props.globalState,onEmitNewBlock:function(t){return e.createNodeFromObject(t)}})),o.createElement("div",{id:"rightGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t,!1)}}),o.createElement("div",{className:"right-panel"},o.createElement(st,{globalState:this.props.globalState}),this.state.showPreviewPopUp?null:o.createElement(vt,{globalState:this.props.globalState,togglePreviewAreaComponent:this.handlePopUp}),this.state.showPreviewPopUp?null:o.createElement(Ct,{globalState:this.props.globalState,width:this._rightWidth})),o.createElement(ut,{globalState:this.props.globalState})),o.createElement(pt,{globalState:this.props.globalState}),o.createElement("div",{className:"blocker"},"Node Material Editor runs only on desktop"),o.createElement("div",{className:"wait-screen hidden"},"Processing...please wait"))},t}(o.Component),St=function(){function e(){}return e.CreatePopup=function(e,t,n,r){var o=this;void 0===n&&(n=300),void 0===r&&(r=800);var a={width:n,height:r,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-r)/2+window.screenX},i=Object.keys(a).map((function(e){return e+"="+a[e]})).join(","),s=window.open("",e,i);if(!s)return null;var l=s.document,c=l.createElement("link");c.rel="stylesheet",c.href="https://use.typekit.net/cta4xsb.css",l.head.appendChild(c),l.title=e,l.body.style.width="100%",l.body.style.height="100%",l.body.style.margin="0",l.body.style.padding="0";var u=l.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.margin="0",u.style.padding="0",s.document.body.appendChild(u),this._CopyStyles(window.document,l),setTimeout((function(){o._CopyStyles(window.document,l)}),0),this[t]=s,u},e._CopyStyles=function(e,t){for(var n=0;n<e.styleSheets.length;n++){var r=e.styleSheets[n];try{if(r.cssRules){for(var o=e.createElement("style"),a=0,i=r.cssRules;a<i.length;a++){var s=i[a];o.appendChild(e.createTextNode(s.cssText))}t.head.appendChild(o)}else if(r.href){var l=e.createElement("link");l.rel="stylesheet",l.href=r.href,t.head.appendChild(l)}}catch(e){console.log(e)}}},e}(),Et=function(){function e(){}return e.Show=function(e){this._CurrentState&&((c=St["node-editor"])&&c.close());var t=e.hostElement;t||(t=St.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800));var n=new l;n.nodeMaterial=e.nodeMaterial,n.mode=e.nodeMaterial.mode,n.hostElement=t,n.hostDocument=t.ownerDocument,n.customSave=e.customSave,n.hostWindow=t.ownerDocument.defaultView;var a=o.createElement(kt,{globalState:n});i.render(a,t),e.customLoadObservable&&e.customLoadObservable.add((function(t){S.Deserialize(t,n),n.mode=e.nodeMaterial.mode,n.onResetRequiredObservable.notifyObservers(),n.onBuiltObservable.notifyObservers()})),this._CurrentState=n;var c=St["node-editor"];n.nodeMaterial&&c&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce((function(){c&&c.close()})),window.onbeforeunload=function(){var e=St["node-editor"];e&&e.close()}),window.addEventListener("beforeunload",(function(){s.DataStorage.ReadNumber("PreviewType",r.Box)===r.Custom&&s.DataStorage.WriteNumber("PreviewType",n.mode===s.NodeMaterialModes.Material?r.Box:r.Bubbles)}))},e}()},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_copy_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_copy_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M5.50280381,4.62704038 L5.5,6.75 L5.5,17.2542087 C5.5,19.0491342 6.95507456,20.5042087 8.75,20.5042087 L17.3662868,20.5044622 C17.057338,21.3782241 16.2239751,22.0042087 15.2444057,22.0042087 L8.75,22.0042087 C6.12664744,22.0042087 4,19.8775613 4,17.2542087 L4,6.75 C4,5.76928848 4.62744523,4.93512464 5.50280381,4.62704038 Z M17.75,2 C18.9926407,2 20,3.00735931 20,4.25 L20,17.25 C20,18.4926407 18.9926407,19.5 17.75,19.5 L8.75,19.5 C7.50735931,19.5 6.5,18.4926407 6.5,17.25 L6.5,4.25 C6.5,3.00735931 7.50735931,2 8.75,2 L17.75,2 Z M17.75,3.5 L8.75,3.5 C8.33578644,3.5 8,3.83578644 8,4.25 L8,17.25 C8,17.6642136 8.33578644,18 8.75,18 L17.75,18 C18.1642136,18 18.5,17.6642136 18.5,17.25 L18.5,4.25 C18.5,3.83578644 18.1642136,3.5 17.75,3.5 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t,n){"use strict";var r=n(6);e.exports=o;function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function i(e,t){--e[t]||delete e[t]}function s(e,t,n,o){var a=""+t,i=""+n;if(!e&&a>i){var s=a;a=i,i=s}return a+""+i+""+(r.isUndefined(o)?"\0":o)}function l(e,t,n,r){var o=""+t,a=""+n;if(!e&&o>a){var i=o;o=a,a=i}var s={v:o,w:a};return r&&(s.name=r),s}function c(e,t){return s(e,t.v,t.w,t.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},o.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},o.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var a=n.parent(r);return void 0===a||t.hasNode(a)?(o[r]=a,a):a in o?o[a]:e(a)}(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},o.prototype.setEdge=function(){var e,t,n,o,i=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(e=c.v,t=c.w,n=c.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=c,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,u))return i&&(this._edgeLabels[u]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=i?o:this._defaultEdgeLabelFn(e,t,n);var p=l(this._isDirected,e,t,n);return e=p.v,t=p.w,Object.freeze(p),this._edgeObjs[u]=p,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][u]=p,this._out[e][u]=p,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[t],e),i(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},o.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15)(n(9),"Map");e.exports=r},function(e,t,n){var r=n(164),o=n(171),a=n(173),i=n(174),s=n(175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(77),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(56)(e))},function(e,t,n){var r=n(41),o=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(84),o=n(85),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(90);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(65),o=n(14);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(200)();e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(4),o=n(25),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(61),o=n(234);e.exports=function e(t,n,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];n>0&&a(u)?n>1?e(u,n-1,a,i,s):r(s,u):i||(s[s.length]=u)}return s}},function(e,t,n){var r=n(25);e.exports=function(e,t,n){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=i}return c}},function(e,t,n){"use strict";(function(e,r){
- /*!
- * Font Awesome Free 5.15.0 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */
- function o(e){return(o="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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return ke})),n.d(t,"b",(function(){return Ce}));var c=function(){},u={},p={},d={mark:c,measure:c};try{"undefined"!=typeof window&&(u=window),"undefined"!=typeof document&&(p=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var f=(u.navigator||{}).userAgent,h=void 0===f?"":f,m=u,g=p,v=d,b=(m.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),y=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),x=y.concat([11,12,13,14,15,16,17,18,19,20]),w={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_=(["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",w.GROUP,w.SWAP_OPACITY,w.PRIMARY,w.SECONDARY].concat(y.map((function(e){return"".concat(e,"x")}))).concat(x.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(g&&"function"==typeof g.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=l(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=g.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(_[r]=o)}))}var C=s({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},_);C.autoReplaceSvg||(C.observeMutations=!1);var k=s({},C);m.FontAwesomeConfig=k;var S=m||{};S.___FONT_AWESOME___||(S.___FONT_AWESOME___={}),S.___FONT_AWESOME___.styles||(S.___FONT_AWESOME___.styles={}),S.___FONT_AWESOME___.hooks||(S.___FONT_AWESOME___.hooks={}),S.___FONT_AWESOME___.shims||(S.___FONT_AWESOME___.shims=[]);var E=S.___FONT_AWESOME___,P=[];b&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",(function e(){g.removeEventListener("DOMContentLoaded",e),1,P.map((function(e){return e()}))})));var T,O=function(){},N=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,B=void 0===r?setTimeout:r,L=[];function M(){for(var e=0;e<L.length;e++)L[e][0](L[e][1]);L=[],T=!1}function R(e,t){L.push([e,t]),T||(T=!0,B(M,0))}function I(e){var t=e.owner,n=t._state,r=t._data,o=e[n],a=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){z(a,e)}}D(a,r)||("fulfilled"===n&&F(a,r),"rejected"===n&&z(a,r))}function D(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===o(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?A(e,r):F(e,r))}),(function(t){n||(n=!0,z(e,t))})),!0}}catch(t){return n||z(e,t),!0}return!1}function F(e,t){e!==t&&D(e,t)||A(e,t)}function A(e,t){"pending"===e._state&&(e._state="settled",e._data=t,R(U,e))}function z(e,t){"pending"===e._state&&(e._state="settled",e._data=t,R(V,e))}function j(e){e._then=e._then.forEach(I)}function U(e){e._state="fulfilled",j(e)}function V(t){t._state="rejected",j(t),!t._handled&&N&&e.process.emit("unhandledRejection",t._data,t)}function W(t){e.process.emit("rejectionHandled",t)}function H(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof H==!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 n(e){z(t,e)}try{e((function(e){F(t,e)}),n)}catch(e){n(e)}}(e,this)}H.prototype={constructor:H,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(O),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&N&&R(W,this)),"fulfilled"===this._state||"rejected"===this._state?R(I,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},H.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new H((function(t,n){var r=[],o=0;function a(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var i,s=0;s<e.length;s++)(i=e[s])&&"function"==typeof i.then?i.then(a(s),n):r[s]=i;o||t(r)}))},H.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new H((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},H.resolve=function(e){return e&&"object"===o(e)&&e.constructor===H?e:new H((function(t){t(e)}))},H.reject=function(e){return new H((function(t,n){n(e)}))};var Y={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function X(e){if(e&&b){var t=g.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=g.head.childNodes,r=null,o=n.length-1;o>-1;o--){var a=n[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}return g.head.insertBefore(t,r),e}}function G(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function q(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Z(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Q(e){return e.size!==Y.size||e.x!==Y.x||e.y!==Y.y||e.rotate!==Y.rotate||e.flipX||e.flipY}function K(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},a="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),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(a," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var $={x:0,y:0,width:"100%",height:"100%"};function J(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 ee(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,i=e.transform,l=e.symbol,c=e.title,u=e.maskId,p=e.titleId,d=e.extra,f=e.watchable,h=void 0!==f&&f,m=r.found?r:n,g=m.width,v=m.height,b="fak"===o,y=b?"":"fa-w-".concat(Math.ceil(g/v*16)),x=[k.replacementClass,a?"".concat(k.familyPrefix,"-").concat(a):"",y].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),w={children:[],attributes:s({},d.attributes,{"data-prefix":o,"data-icon":a,class:x,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(v)})},_=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/v*16*.0625,"em")}:{};h&&(w.attributes["data-fa-i2svg"]=""),c&&w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(p||G())},children:[c]});var C=s({},w,{prefix:o,iconName:a,main:n,mask:r,maskId:u,transform:i,symbol:l,styles:s({},_,d.styles)}),S=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,a=e.mask,i=e.maskId,l=e.transform,c=o.width,u=o.icon,p=a.width,d=a.icon,f=K({transform:l,containerWidth:p,iconWidth:c}),h={tag:"rect",attributes:s({},$,{fill:"white"})},m=u.children?{children:u.children.map(J)}:{},g={tag:"g",attributes:s({},f.inner),children:[J(s({tag:u.tag,attributes:s({},u.attributes,f.path)},m))]},v={tag:"g",attributes:s({},f.outer),children:[g]},b="mask-".concat(i||G()),y="clip-".concat(i||G()),x={tag:"mask",attributes:s({},$,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},x]};return n.push(w,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},$)}),{children:n,attributes:r}}(C):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,a=Z(e.styles);if(a.length>0&&(n.style=a),Q(o)){var i=K({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},i.outer),children:[{tag:"g",attributes:s({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,i.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(C),E=S.children,P=S.attributes;return C.children=E,C.attributes=P,l?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===a?"".concat(t,"-").concat(k.familyPrefix,"-").concat(n):a}),children:r}]}]}(C):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,i=e.transform;if(Q(i)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=Z(s({},a,{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}var te=function(){},ne=(k.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,a,i,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,o,a){return e.call(t,n,r,o,a)}}(t,r):t;for(void 0===n?(o=1,i=e[s[0]]):(o=0,i=n);o<l;o++)i=c(i,e[a=s[o]],a,e);return i});function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,a=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof E.hooks.addPack||o?E.styles[e]=s({},E.styles[e]||{},a):E.hooks.addPack(e,a),"fas"===e&&re("fa",t)}var oe=E.styles,ae=E.shims,ie=function(){var e=function(e){return ne(oe,(function(t,n,r){return t[r]=ne(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in oe;ne(ae,(function(e,n){var r=n[0],o=n[1],a=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:a},e}),{})};ie();E.styles;function se(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function le(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,a=void 0===o?[]:o;return"string"==typeof e?q(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(q(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(le).join(""),"</").concat(t,">")}var ce=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 n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t};function ue(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ue.prototype=Object.create(Error.prototype),ue.prototype.constructor=ue;var pe={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},fe={tag:"path",attributes:s({},pe,{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"})},he=s({},de,{attributeName:"opacity"});s({},pe,{cx:"256",cy:"364",r:"28"}),s({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},he,{values:"1;0;1;1;0;1;"}),s({},pe,{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"}),s({},he,{values:"1;0;0;0;0;1;"}),s({},pe,{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"}),s({},he,{values:"0;0;1;1;0;0;"}),E.styles;function me(e){var t=e[0],n=e[1],r=l(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(k.familyPrefix,"-").concat(w.GROUP)},children:[{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(w.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(w.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}E.styles;function ge(){var e="svg-inline--fa",t=k.familyPrefix,n=k.replacementClass,r='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}';if("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),a=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(i,".".concat(n))}return r}function ve(){k.autoAddCss&&!_e&&(X(ge()),_e=!0)}function be(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return le(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return se(we.definitions,n,r)||se(E.styles,n,r)}var xe,we=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,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=s({},e.definitions[t]||{},o[t]),re(t,o[t]),ie()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],o=r.prefix,a=r.iconName,i=r.icon;e[o]||(e[o]={}),e[o][a]=i})),e}}])&&a(t.prototype,n),r&&a(t,r),e}()),_e=!1,Ce={transform:function(e){return ce(e)}},ke=(xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Y:n,o=t.symbol,a=void 0!==o&&o,i=t.mask,l=void 0===i?null:i,c=t.maskId,u=void 0===c?null:c,p=t.title,d=void 0===p?null:p,f=t.titleId,h=void 0===f?null:f,m=t.classes,g=void 0===m?[]:m,v=t.attributes,b=void 0===v?{}:v,y=t.styles,x=void 0===y?{}:y;if(e){var w=e.prefix,_=e.iconName,C=e.icon;return be(s({type:"icon"},e),(function(){return ve(),k.autoA11y&&(d?b["aria-labelledby"]="".concat(k.replacementClass,"-title-").concat(h||G()):(b["aria-hidden"]="true",b.focusable="false")),ee({icons:{main:me(C),mask:l?me(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:_,transform:s({},Y,r),symbol:a,title:d,maskId:u,titleId:h,extra:{attributes:b,styles:x,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ye(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ye(r||{})),xe(n,s({},t,{mask:r}))})}).call(this,n(26),n(138).setImmediate)},function(e,t,n){e.exports={graphlib:n(8),layout:n(258),debug:n(317),util:{time:n(5).time,notime:n(5).notime},version:n(318)}},function(e,t,n){"use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_delete_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_delete_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12,1.75 C13.7330315,1.75 15.1492459,3.10645477 15.2448552,4.81557609 L15.25,5 L20.5,5 C20.9142136,5 21.25,5.33578644 21.25,5.75 C21.25,6.12969577 20.9678461,6.44349096 20.6017706,6.49315338 L20.5,6.5 L19.704,6.5 L18.4238627,19.5191927 C18.2911666,20.8682696 17.1984309,21.9099961 15.8626249,21.9944645 L15.6870698,22 L8.31293022,22 C6.95734302,22 5.81365352,21.0144851 5.59883106,19.6933629 L5.57613734,19.5191927 L4.295,6.5 L3.5,6.5 C3.12030423,6.5 2.80650904,6.21784612 2.75684662,5.85177056 L2.75,5.75 C2.75,5.37030423 3.03215388,5.05650904 3.39822944,5.00684662 L3.5,5 L8.75,5 C8.75,3.20507456 10.2050746,1.75 12,1.75 Z M18.197,6.5 L5.802,6.5 L7.06893346,19.3723603 C7.12767639,19.9695801 7.60033019,20.4342891 8.18584501,20.493596 L8.31293022,20.5 L15.6870698,20.5 C16.2871716,20.5 16.795916,20.0751057 16.9122531,19.4982083 L16.9310665,19.3723603 L18.197,6.5 Z M13.75,9.25 C14.1296958,9.25 14.443491,9.53215388 14.4931534,9.89822944 L14.5,10 L14.5,17 C14.5,17.4142136 14.1642136,17.75 13.75,17.75 C13.3703042,17.75 13.056509,17.4678461 13.0068466,17.1017706 L13,17 L13,10 C13,9.58578644 13.3357864,9.25 13.75,9.25 Z M10.25,9.25 C10.6296958,9.25 10.943491,9.53215388 10.9931534,9.89822944 L11,10 L11,17 C11,17.4142136 10.6642136,17.75 10.25,17.75 C9.87030423,17.75 9.55650904,17.4678461 9.50684662,17.1017706 L9.5,17 L9.5,10 C9.5,9.58578644 9.83578644,9.25 10.25,9.25 Z M12,3.25 C11.0818266,3.25 10.3288077,3.95711027 10.2558012,4.85647279 L10.25,5 L13.75,5 C13.75,4.03350169 12.9664983,3.25 12,3.25 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 63.1 (92452) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_add_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_add_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M11.7498476,3 C12.1295434,3 12.4433959,3.28201302 12.4931327,3.64807848 L12.5,3.74984765 L12.5012052,11 L19.7542949,11 C20.1685084,11 20.5042949,11.3357864 20.5042949,11.75 C20.5042949,12.1296958 20.222141,12.443491 19.8560654,12.4931534 L19.7542949,12.5 L12.5012052,12.5 L12.50325,19.7491118 C12.5033342,20.1633254 12.1676159,20.4992642 11.7534024,20.4992642 C11.3737066,20.4992642 11.0598541,20.2172511 11.0101173,19.8511857 L11.0032501,19.7494165 L11.0012052,12.5 L3.75220519,12.5 C3.33799163,12.5 3.00220519,12.1642136 3.00220519,11.75 C3.00220519,11.3703042 3.28435907,11.056509 3.65043463,11.0068466 L3.75220519,11 L11.0012052,11 L11,3.75015235 C10.9999159,3.3359388 11.3356341,3 11.7498476,3 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_remove_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_remove_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M3.7547787,12.4995322 L20.2466903,12.4995322 C20.6609039,12.4995322 20.9966903,12.1637458 20.9966903,11.7495322 C20.9966903,11.3353187 20.6609039,10.9995322 20.2466903,10.9995322 L3.7547787,10.9995322 C3.34056514,10.9995322 3.0047787,11.3353187 3.0047787,11.7495322 C3.0047787,12.1637458 3.34056514,12.4995322 3.7547787,12.4995322 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t,n){var r=n(32),o=n(55),a=n(37),i=n(176),s=n(182),l=n(82),c=n(83),u=n(185),p=n(186),d=n(87),f=n(187),h=n(24),m=n(191),g=n(192),v=n(92),b=n(4),y=n(23),x=n(196),w=n(7),_=n(198),C=n(14),k=n(17),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,E,P,T,O){var N,B=1&n,L=2&n,M=4&n;if(E&&(N=T?E(t,P,T,O):E(t)),void 0!==N)return N;if(!w(t))return t;var R=b(t);if(R){if(N=m(t),!B)return c(t,N)}else{var I=h(t),D="[object Function]"==I||"[object GeneratorFunction]"==I;if(y(t))return l(t,B);if("[object Object]"==I||"[object Arguments]"==I||D&&!T){if(N=L||D?{}:v(t),!B)return L?p(t,s(N,t)):u(t,i(N,t))}else{if(!S[I])return T?t:{};N=g(t,I,B)}}O||(O=new r);var F=O.get(t);if(F)return F;O.set(t,N),_(t)?t.forEach((function(r){N.add(e(r,n,E,r,t,O))})):x(t)&&t.forEach((function(r,o){N.set(o,e(r,n,E,o,t,O))}));var A=R?void 0:(M?L?f:d:L?k:C)(t);return o(A||t,(function(r,o){A&&(r=t[o=r]),a(N,o,e(r,n,E,o,t,O))})),N}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(26))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(15),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(177),o=n(29),a=n(4),i=n(23),s=n(39),l=n(30),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),p=!n&&!u&&i(e),d=!n&&!u&&!p&&l(e),f=n||u||p||d,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var r=n(9),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(56)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(61),o=n(42),a=n(60),i=n(85),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},function(e,t,n){var r=n(88),o=n(60),a=n(14);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(61),o=n(4);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t,n){var r=n(15)(n(9),"Set");e.exports=r},function(e,t,n){var r=n(9).Uint8Array;e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(93),o=n(42),a=n(41);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},function(e,t,n){var r=n(7),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){e.exports=n(95)},function(e,t,n){var r=n(55),o=n(43),a=n(96),i=n(4);e.exports=function(e,t){return(i(e)?r:o)(e,a(t))}},function(e,t,n){var r=n(18);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(84),o=n(202),a=n(12),i=n(4);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},function(e,t,n){var r=n(205),o=n(10);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},function(e,t,n){var r=n(100),o=n(208),a=n(101);e.exports=function(e,t,n,i,s,l){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],b=t[h];if(i)var y=c?i(b,v,h,t,e,l):i(v,b,h,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!a(g,t)&&(v===e||s(v,e,n,i,l)))return g.push(t)}))){m=!1;break}}else if(v!==b&&!s(v,b,n,i,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(54),o=n(206),a=n(207);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(7);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(218);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(219),o=n(106);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(45),o=n(29),a=n(4),i=n(39),s=n(57),l=n(31);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var d=l(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&s(u)&&i(d,u)&&(a(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(222),o=n(106);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(46),o=n(12),a=n(111),i=n(4);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},function(e,t,n){var r=n(43),o=n(11);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){var r=n(224),o=n(43),a=n(12),i=n(225),s=n(4);e.exports=function(e,t,n){var l=s(e)?r:i,c=arguments.length<3;return l(e,a(t,4),n,c,o)}},function(e,t,n){var r=n(235),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(l),r(e,this,c)}}},function(e,t,n){var r=n(236),o=n(237)(r);e.exports=o},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(11),o=n(10);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(246),o=n(14);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(6),o=n(119);e.exports=function(e,t,n,r){return function(e,t,n,r){var a,i,s={},l=new o,c=function(e){var t=e.v!==a?e.v:e.w,r=s[t],o=n(e),c=i.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=a,l.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},l.add(e,n)}));for(;l.size()>0&&(a=l.removeMin(),(i=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return s}(e,String(t),n||a,r||function(t){return e.outEdges(t)})};var a=r.constant(1)},function(e,t,n){var r=n(6);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,a=o.length;return n[e]=a,o.push({key:e,priority:t}),this._decrease(a),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],a=n[t];n[e]=a,n[t]=o,r[a.key]=e,r[o.key]=t}},function(e,t,n){var r=n(6);e.exports=function(e){var t=0,n=[],o={},a=[];return e.nodes().forEach((function(i){r.has(o,i)||function i(s){var l=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(l.lowlink=Math.min(l.lowlink,o[e].index)):(i(e),l.lowlink=Math.min(l.lowlink,o[e].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),o[c].onStack=!1,u.push(c)}while(s!==c);a.push(u)}}(i)})),a}},function(e,t,n){var r=n(6);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function i(s){if(r.has(n,s))throw new a;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),i),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new a;return o}function a(){}e.exports=o,o.CycleException=a,a.prototype=new Error},function(e,t,n){var r=n(6);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,a,i,s){r.has(a,n)||(a[n]=!0,o||s.push(n),r.each(i(n),(function(n){e(t,n,o,a,i,s)})),o&&s.push(n))}(e,t,"post"===n,i,o,a)})),a}},function(e,t,n){var r=n(265);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(68);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(38),o=n(21);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph,a=n(49).slack;function i(e,t){return r.forEach(e.nodes(),(function n(o){r.forEach(t.nodeEdges(o),(function(r){var i=r.v,s=o===i?r.w:i;e.hasNode(s)||a(t,r)||(e.setNode(s,{}),e.setEdge(o,s,{}),n(s))}))})),e.nodeCount()}function s(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return a(t,n)}))}function l(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new o({directed:!1}),c=e.nodes()[0],u=e.nodeCount();r.setNode(c,{});for(;i(r,e)<u;)t=s(r,e),n=r.hasNode(t.v)?a(e,t):-a(e,t),l(r,e,n);return r}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(50);n.d(t,"NodeEditor",(function(){return r.a}));var o=void 0!==e?e:"undefined"!=typeof window?window:void 0;void 0!==o&&(o.BABYLON=o.BABYLON||{},o.BABYLON.NodeEditor=r.a)}.call(this,n(26))},function(e,t,n){"use strict";
- /** @license React v16.13.1
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(72),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function x(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function w(){}function _(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=x.prototype;var C=_.prototype=new w;C.constructor=_,r(C,x.prototype),C.isPureReactComponent=!0;var k={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:k.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var O=/\/+/g,N=[];function B(e,t,n,r){if(N.length){var o=N.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case a:case i:l=!0}}if(l)return r(o,t,""===n?"."+R(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+R(s=t[c],c);l+=e(s,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+R(s,c++),r,o);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function R(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 I(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),M(e,D,t=B(t,a,r,o)),L(t)}var A={current:null};function z(){var e=A.current;if(null===e)throw Error(v(321));return e}var j={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,I,t=B(null,null,t,n)),L(t)},count:function(e){return M(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=c,t.PureComponent=_,t.StrictMode=l,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];o.children=c}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
- /** @license React v16.13.1
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(1),o=n(72),a=n(132);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));function s(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,p=null,d={onError:function(e){l=!0,c=e}};function f(e,t,n,r,o,a,i,u,p){l=!1,c=null,s.apply(d,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,a,s,d,h){if(f.apply(this,arguments),l){if(!l)throw Error(i(198));var m=c;l=!1,c=null,u||(u=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}var b=null,y={};function x(){if(b)for(var e in y){var t=y[e],n=b.indexOf(e);if(!(-1<n))throw Error(i(96,e));if(!_[n]){if(!t.extractEvents)throw Error(i(97,e));for(var r in _[n]=t,n=t.eventTypes){var o=void 0,a=n[r],s=t,l=r;if(C.hasOwnProperty(l))throw Error(i(99,l));C[l]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&w(c[o],s,l);o=!0}else a.registrationName?(w(a.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(i(98,r,e))}}}}function w(e,t,n){if(k[e])throw Error(i(100,e));k[e]=t,S[e]=t.eventTypes[n].dependencies}var _=[],C={},k={},S={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!y.hasOwnProperty(t)||y[t]!==r){if(y[t])throw Error(i(102,t));y[t]=r,n=!0}}n&&x()}var P=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),T=null,O=null,N=null;function B(e){if(e=m(e)){if("function"!=typeof T)throw Error(i(280));var t=e.stateNode;t&&(t=h(t),T(e.stateNode,e.type,t))}}function L(e){O?N?N.push(e):N=[e]:O=e}function M(){if(O){var e=O,t=N;if(N=O=null,B(e),t)for(e=0;e<t.length;e++)B(t[e])}}function R(e,t){return e(t)}function I(e,t,n,r,o){return e(t,n,r,o)}function D(){}var F=R,A=!1,z=!1;function j(){null===O&&null===N||(D(),M())}function U(e,t,n){if(z)return e(t,n);z=!0;try{return F(e,t,n)}finally{z=!1,j()}}var V=/^[: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]*$/,W=Object.prototype.hasOwnProperty,H={},Y={};function X(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new X(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new X(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new X(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new X(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){G[e]=new X(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new X(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new X(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new X(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new X(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"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(q,Z);G[t]=new X(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(q,Z);G[t]=new X(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,Z);G[t]=new X(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new X(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new X(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function K(e,t,n,r){var o=G.hasOwnProperty(t)?G[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(Y,e)||!W.call(H,e)&&(V.test(e)?Y[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var $=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ae=J?Symbol.for("react.provider"):60109,ie=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,pe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,fe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(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 ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ie:return"Context.Consumer";case ae:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ge(e.type);case fe:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,a=ge(e.type);n=null,r&&(n=ge(r.type)),r=a,a="",o?a=" (at "+o.fileName.replace($,"")+":"+o.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+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 n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&K(e,"checked",t,!1)}function Se(e,t){ke(e,t);var n=be(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Be(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Le(e,t){var n=be(t.value),r=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",Ie="http://www.w3.org/2000/svg";function De(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 Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ae,ze=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ie||"innerHTML"in e)e.innerHTML=t;else{for((Ae=Ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},We={},He={};function Ye(e){if(We[e])return We[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return We[e]=n[t];return e}P&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var Xe=Ye("animationend"),Ge=Ye("animationiteration"),qe=Ye("animationstart"),Ze=Ye("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ke=new("function"==typeof WeakMap?WeakMap:Map);function $e(e){var t=Ke.get(e);return void 0===t&&(t=new Map,Ke.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(i(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return tt(o),e;if(a===r)return tt(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?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}function rt(e,t){if(null==t)throw Error(i(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 ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(ot(e,it),at)throw Error(i(95));if(u)throw e=p,u=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!P)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var o=ut.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ft(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,i=e.eventSystemFlags;0===n&&(i|=64);for(var s=null,l=0;l<_.length;l++){var c=_[l];c&&(c=c.extractEvents(r,t,a,o,i))&&(s=rt(s,c))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var mt,gt,vt,bt=!1,yt=[],xt=null,wt=null,_t=null,Ct=new Map,kt=new Map,St=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Pt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Nt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=Tt(t,n,r,o,a),null!==t&&(null!==(t=Tn(t))&>(t)),e):(e.eventSystemFlags|=r,e)}function Bt(e){var t=Pn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Tn(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function Mt(e,t,n){Lt(e)&&n.delete(t)}function Rt(){for(bt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=Tn(e.blockedOn))&&mt(e);break}var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==xt&&Lt(xt)&&(xt=null),null!==wt&&Lt(wt)&&(wt=null),null!==_t&&Lt(_t)&&(_t=null),Ct.forEach(Mt),kt.forEach(Mt)}function It(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Rt)))}function Dt(e){function t(t){return It(t,e)}if(0<yt.length){It(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&It(xt,e),null!==wt&&It(wt,e),null!==_t&&It(_t,e),Ct.forEach(t),kt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Bt(n),null===n.blockedOn&&St.shift()}var Ft={},At=new Map,zt=new Map,jt=["abort","abort",Xe,"animationEnd",Ge,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],a="on"+(o[0].toUpperCase()+o.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},zt.set(r,t),At.set(r,a),Ft[o]=a}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(jt,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wt=0;Wt<Vt.length;Wt++)zt.set(Vt[Wt],0);var Ht=a.unstable_UserBlockingPriority,Yt=a.unstable_runWithPriority,Xt=!0;function Gt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=zt.get(t);switch(void 0===r?2:r){case 0:r=Zt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Kt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){A||D();var o=Kt,a=A;A=!0;try{I(o,e,t,n,r)}finally{(A=a)||j()}}function Qt(e,t,n,r){Yt(Ht,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){if(Xt)if(0<yt.length&&-1<Et.indexOf(e))e=Tt(null,e,t,n,r),yt.push(e);else{var o=$t(e,t,n,r);if(null===o)Ot(e,r);else if(-1<Et.indexOf(e))e=Tt(o,e,t,n,r),yt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return xt=Nt(xt,e,t,n,r,o),!0;case"dragenter":return wt=Nt(wt,e,t,n,r,o),!0;case"mouseover":return _t=Nt(_t,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Ct.set(a,Nt(Ct.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,kt.set(a,Nt(kt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Ot(e,r),e=dt(e,r,null,t);try{U(ft,e)}finally{pt(e)}}}}function $t(e,t,n,r){if(null!==(n=Pn(n=lt(r)))){var o=Je(n);if(null===o)n=null;else{var a=o.tag;if(13===a){if(null!==(n=et(o)))return n;n=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{U(ft,e)}finally{pt(e)}return null}var Jt={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},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Jt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var rn=o({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 on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62,""))}}function an(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}}var sn=Re;function ln(e,t){var n=$e(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function cn(){}function un(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 pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function fn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(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 mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bn(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 yn="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function _n(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+Cn,Sn="__reactEventHandlers$"+Cn,En="__reactContainere$"+Cn;function Pn(e){var t=e[kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[kn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_n(e);null!==e;){if(n=e[kn])return n;e=_n(e)}return t}n=(e=n).parentNode}return null}function Tn(e){return!(e=e[kn]||e[En])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function On(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Nn(e){return e[Sn]||null}function Bn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}function Mn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Bn(t);for(t=n.length;0<t--;)Mn(n[t],"captured",e);for(t=0;t<n.length;t++)Mn(n[t],"bubbled",e)}}function In(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){e&&e.dispatchConfig.registrationName&&In(e._targetInst,null,e)}function Fn(e){ot(e,Rn)}var An=null,zn=null,jn=null;function Un(){if(jn)return jn;var e,t,n=zn,r=n.length,o="value"in An?An.value:An.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return jn=o.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function Wn(){return!1}function Hn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:Wn,this.isPropagationStopped=Wn,this}function Yn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(i(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Yn,e.release=Xn}o(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:Wn,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=Wn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.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},Hn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return o(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Hn);var qn=Hn.extend({data:null}),Zn=Hn.extend({data:null}),Qn=[9,13,27,32],Kn=P&&"CompositionEvent"in window,$n=null;P&&"documentMode"in document&&($n=document.documentMode);var Jn=P&&"TextEvent"in window&&!$n,er=P&&(!Kn||$n&&8<$n&&11>=$n),tr=String.fromCharCode(32),nr={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(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ir=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(Kn)e:{switch(e){case"compositionstart":var a=nr.compositionStart;break e;case"compositionend":a=nr.compositionEnd;break e;case"compositionupdate":a=nr.compositionUpdate;break e}a=void 0}else ir?or(e,n)&&(a=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=nr.compositionStart);return a?(er&&"ko"!==n.locale&&(ir||a!==nr.compositionStart?a===nr.compositionEnd&&ir&&(o=Un()):(zn="value"in(An=r)?An.value:An.textContent,ir=!0)),a=qn.getPooled(a,t,n,r),o?a.data=o:null!==(o=ar(n))&&(a.data=o),Fn(a),o=a):o=null,(e=Jn?function(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ir)return"compositionend"===e||!Kn&&or(e,t)?(e=Un(),jn=zn=An=null,ir=!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 er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Zn.getPooled(nr.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={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 cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=Hn.getPooled(ur.change,e,t,n)).type="change",L(n),Fn(e),e}var dr=null,fr=null;function hr(e){st(e)}function mr(e){if(we(On(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function br(){dr&&(dr.detachEvent("onpropertychange",yr),fr=dr=null)}function yr(e){if("value"===e.propertyName&&mr(fr))if(e=pr(fr,e,lt(e)),A)st(e);else{A=!0;try{R(hr,e)}finally{A=!1,j()}}}function xr(e,t,n){"focus"===e?(br(),fr=n,(dr=t).attachEvent("onpropertychange",yr)):"blur"===e&&br()}function wr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(fr)}function _r(e,t){if("click"===e)return mr(t)}function Cr(e,t){if("input"===e||"change"===e)return mr(t)}P&&(vr=ct("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:ur,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var o=t?On(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=gr;else if(cr(o))if(vr)i=Cr;else{i=wr;var s=xr}else(a=o.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=_r);if(i&&(i=i(e,t)))return pr(i,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},Sr=Hn.extend({view:null,detail:null}),Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Tr(){return Pr}var Or=0,Nr=0,Br=!1,Lr=!1,Mr=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Tr,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=Or;return Or=e.screenX,Br?"mousemove"===e.type?e.screenX-t:0:(Br=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nr;return Nr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),Rr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ir={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Dr={eventTypes:Ir,extractEvents:function(e,t,n,r,o){var a="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(a&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!i&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,i)?(i=t,null!==(t=(t=n.relatedTarget||n.toElement)?Pn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):i=null;if(i===t)return null;if("mouseout"===e||"mouseover"===e)var s=Mr,l=Ir.mouseLeave,c=Ir.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Rr,l=Ir.pointerLeave,c=Ir.pointerEnter,u="pointer");if(e=null==i?a:On(i),a=null==t?a:On(t),(l=s.getPooled(l,i,n,r)).type=u+"leave",l.target=e,l.relatedTarget=a,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=a,n.relatedTarget=e,u=t,(r=i)&&u)e:{for(c=u,i=0,e=s=r;e;e=Bn(e))i++;for(e=0,t=c;t;t=Bn(t))e++;for(;0<i-e;)s=Bn(s),i--;for(;0<e-i;)c=Bn(c),e--;for(;i--;){if(s===c||s===c.alternate)break e;s=Bn(s),c=Bn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(i=r.alternate)||i!==c);)s.push(r),r=Bn(r);for(r=[];u&&u!==c&&(null===(i=u.alternate)||i!==c);)r.push(u),u=Bn(u);for(u=0;u<s.length;u++)In(s[u],"bubbled",l);for(u=r.length;0<u--;)In(r[u],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ar=Object.prototype.hasOwnProperty;function zr(e,t){if(Fr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ar.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var jr=P&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Wr=null,Hr=null,Yr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Vr||Vr!==un(n)?null:("selectionStart"in(n=Vr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&zr(Hr,n)?null:(Hr=n,(e=Hn.getPooled(Ur.select,Wr,e,t)).type="select",e.target=Vr,Fn(e),e))}var Gr={eventTypes:Ur,extractEvents:function(e,t,n,r,o,a){if(!(a=!(o=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=$e(o),a=S.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?On(t):window,e){case"focus":(cr(o)||"true"===o.contentEditable)&&(Vr=o,Wr=t,Hr=null);break;case"blur":Hr=Wr=Vr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(jr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},qr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=Sr.extend({relatedTarget:null});function Kr(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}var $r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jr={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"},eo=Sr.extend({key:function(e){if(e.key){var t=$r[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Jr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?Kr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=Mr.extend({dataTransfer:null}),no=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Tr}),ro=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Mr.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}),ao={eventTypes:Ft,extractEvents:function(e,t,n,r){var o=At.get(e);if(!o)return null;switch(e){case"keypress":if(0===Kr(n))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=no;break;case Xe:case Ge:case qe:e=qr;break;case Ze:e=ro;break;case"scroll":e=Sr;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=Zr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Rr;break;default:e=Hn}return Fn(t=e.getPooled(o,t,n,r)),t}};if(b)throw Error(i(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),h=Nn,m=Tn,g=On,E({SimpleEventPlugin:ao,EnterLeaveEventPlugin:Dr,ChangeEventPlugin:kr,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var io=[],so=-1;function lo(e){0>so||(e.current=io[so],io[so]=null,so--)}function co(e,t){so++,io[so]=e.current,e.current=t}var uo={},po={current:uo},fo={current:!1},ho=uo;function mo(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return null!=(e=e.childContextTypes)}function vo(){lo(fo),lo(po)}function bo(e,t,n){if(po.current!==uo)throw Error(i(168));co(po,t),co(fo,n)}function yo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,ge(t)||"Unknown",a));return o({},n,{},r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,ho=po.current,co(po,e),co(fo,fo.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=yo(e,t,ho),r.__reactInternalMemoizedMergedChildContext=e,lo(fo),lo(po),co(po,e)):lo(fo),co(fo,n)}var _o=a.unstable_runWithPriority,Co=a.unstable_scheduleCallback,ko=a.unstable_cancelCallback,So=a.unstable_requestPaint,Eo=a.unstable_now,Po=a.unstable_getCurrentPriorityLevel,To=a.unstable_ImmediatePriority,Oo=a.unstable_UserBlockingPriority,No=a.unstable_NormalPriority,Bo=a.unstable_LowPriority,Lo=a.unstable_IdlePriority,Mo={},Ro=a.unstable_shouldYield,Io=void 0!==So?So:function(){},Do=null,Fo=null,Ao=!1,zo=Eo(),jo=1e4>zo?Eo:function(){return Eo()-zo};function Uo(){switch(Po()){case To:return 99;case Oo:return 98;case No:return 97;case Bo:return 96;case Lo:return 95;default:throw Error(i(332))}}function Vo(e){switch(e){case 99:return To;case 98:return Oo;case 97:return No;case 96:return Bo;case 95:return Lo;default:throw Error(i(332))}}function Wo(e,t){return e=Vo(e),_o(e,t)}function Ho(e,t,n){return e=Vo(e),Co(e,t,n)}function Yo(e){return null===Do?(Do=[e],Fo=Co(To,Go)):Do.push(e),Mo}function Xo(){if(null!==Fo){var e=Fo;Fo=null,ko(e)}Go()}function Go(){if(!Ao&&null!==Do){Ao=!0;var e=0;try{var t=Do;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Do=null}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Co(To,Xo),t}finally{Ao=!1}}}function qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qo={current:null},Ko=null,$o=null,Jo=null;function ea(){Jo=$o=Ko=null}function ta(e){var t=Qo.current;lo(Qo),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ra(e,t){Ko=e,Jo=$o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ni=!0),e.firstContext=null)}function oa(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$o){if(null===Ko)throw Error(i(308));$o=t,Ko.dependencies={expirationTime:0,firstContext:t,responders:null}}else $o=$o.next=t;return e._currentValue}var aa=!1;function ia(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function la(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ca(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ua(e,t){var n=e.alternate;null!==n&&sa(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pa(e,t,n,r){var a=e.updateQueue;aa=!1;var i=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==i){var l=i.next;i.next=s.next,s.next=l}i=s,a.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==i){l=i.next;var c=a.baseState,u=0,p=null,d=null,f=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(d=f=m,p=c):f=f.next=m,s>u&&(u=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),al(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,c,s):g))break e;c=o({},c,s);break e;case 2:aa=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=a.effects)?a.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=a.shared.pending))break;h=i.next=s.next,s.next=l,a.baseQueue=i=s,a.shared.pending=null}}null===f?p=c:f.next=d,a.baseState=p,a.baseQueue=f,il(u),e.expirationTime=u,e.memoizedState=c}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(i(191,r));r.call(o)}}}var fa=Q.ReactCurrentBatchConfig,ha=(new r.Component).refs;function ma(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Xs(),o=fa.suspense;(o=la(r=Gs(r,e,o),o)).payload=t,null!=n&&(o.callback=n),ca(e,o),qs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Xs(),o=fa.suspense;(o=la(r=Gs(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),ca(e,o),qs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Xs(),r=fa.suspense;(r=la(n=Gs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ca(e,r),qs(e,n)}};function va(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!zr(n,r)||!zr(o,a))}function ba(e,t,n){var r=!1,o=uo,a=t.contextType;return"object"==typeof a&&null!==a?a=oa(a):(o=go(t)?ho:po.current,a=(r=null!=(r=t.contextTypes))?mo(e,o):uo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function xa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ha,ia(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=oa(a):(a=go(t)?ho:po.current,o.context=mo(e,a)),pa(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ma(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ga.enqueueReplaceState(o,o.state,null),pa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var wa=Array.isArray;function _a(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===ha&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ca(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(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 o(e,t){return(e=El(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ol(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_a(e,t,n),r.return=e,r):((r=Pl(n.type,n.key,n.props,null,e.mode,r)).ref=_a(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,a){return null===t||7!==t.tag?((t=Tl(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ol(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Pl(t.type,t.key,t.props,null,e.mode,n)).ref=_a(e,null,t),n.return=e,n;case te:return(t=Nl(t,e.mode,n)).return=e,t}if(wa(t)||me(t))return(t=Tl(t,e.mode,n,null)).return=e,t;Ca(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?p(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(wa(n)||me(n))return null!==o?null:p(e,t,n,r,null);Ca(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?p(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(wa(r)||me(r))return p(t,e=e.get(n)||null,r,o,null);Ca(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,p=i,m=i=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(o,p,s[m],l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(o,p),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,p=g}if(m===s.length)return n(o,p),c;if(null===p){for(;m<s.length;m++)null!==(p=d(o,s[m],l))&&(i=a(p,i,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(o,p);m<s.length;m++)null!==(g=h(p,o,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=me(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var p=u=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(o,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===p?u=y:p.sibling=y,p=y,m=v}if(b.done)return n(o,m),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=d(o,b.value,c))&&(s=a(b,s,g),null===p?u=b:p.sibling=b,p=b);return u}for(m=r(o,m);!b.done;g++,b=l.next())null!==(b=h(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===p?u=b:p.sibling=b,p=b);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,a,l){var c="object"==typeof a&&null!==a&&a.type===ne&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case ee:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(a.type===ne){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}break;default:if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=_a(e,c,a),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}a.type===ne?((r=Tl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Pl(a.type,a.key,a.props,null,e.mode,l)).ref=_a(e,r,a),l.return=e,e=l)}return s(e);case te:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Nl(a,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=Ol(a,e.mode,l)).return=e,e=r),s(e);if(wa(a))return m(e,r,a,l);if(me(a))return g(e,r,a,l);if(u&&Ca(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Sa=ka(!0),Ea=ka(!1),Pa={},Ta={current:Pa},Oa={current:Pa},Na={current:Pa};function Ba(e){if(e===Pa)throw Error(i(174));return e}function La(e,t){switch(co(Na,t),co(Oa,e),co(Ta,Pa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ta),co(Ta,t)}function Ma(){lo(Ta),lo(Oa),lo(Na)}function Ra(e){Ba(Na.current);var t=Ba(Ta.current),n=Fe(t,e.type);t!==n&&(co(Oa,e),co(Ta,n))}function Ia(e){Oa.current===e&&(lo(Ta),lo(Oa))}var Da={current:0};function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))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}function Aa(e,t){return{responder:e,props:t}}var za=Q.ReactCurrentDispatcher,ja=Q.ReactCurrentBatchConfig,Ua=0,Va=null,Wa=null,Ha=null,Ya=!1;function Xa(){throw Error(i(321))}function Ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function qa(e,t,n,r,o,a){if(Ua=a,Va=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,za.current=null===e||null===e.memoizedState?vi:bi,e=n(r,o),t.expirationTime===Ua){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(i(301));a+=1,Ha=Wa=null,t.updateQueue=null,za.current=yi,e=n(r,o)}while(t.expirationTime===Ua)}if(za.current=gi,t=null!==Wa&&null!==Wa.next,Ua=0,Ha=Wa=Va=null,Ya=!1,t)throw Error(i(300));return e}function Za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ha?Va.memoizedState=Ha=e:Ha=Ha.next=e,Ha}function Qa(){if(null===Wa){var e=Va.alternate;e=null!==e?e.memoizedState:null}else e=Wa.next;var t=null===Ha?Va.memoizedState:Ha.next;if(null!==t)Ha=t,Wa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Wa=e).memoizedState,baseState:Wa.baseState,baseQueue:Wa.baseQueue,queue:Wa.queue,next:null},null===Ha?Va.memoizedState=Ha=e:Ha=Ha.next=e}return Ha}function Ka(e,t){return"function"==typeof t?t(e):t}function $a(e){var t=Qa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=Wa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=a=null,c=o;do{var u=c.expirationTime;if(u<Ua){var p={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=p,a=r):l=l.next=p,u>Va.expirationTime&&(Va.expirationTime=u,il(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),al(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,Fr(r,t.memoizedState)||(Ni=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Ja(e){var t=Qa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);Fr(a,t.memoizedState)||(Ni=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ei(e){var t=Za();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e}).dispatch=mi.bind(null,Va,e),[t.memoizedState,e]}function ti(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Va.updateQueue)?(t={lastEffect:null},Va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ni(){return Qa().memoizedState}function ri(e,t,n,r){var o=Za();Va.effectTag|=e,o.memoizedState=ti(1|t,n,void 0,void 0===r?null:r)}function oi(e,t,n,r){var o=Qa();r=void 0===r?null:r;var a=void 0;if(null!==Wa){var i=Wa.memoizedState;if(a=i.destroy,null!==r&&Ga(r,i.deps))return void ti(t,n,a,r)}Va.effectTag|=e,o.memoizedState=ti(1|t,n,a,r)}function ai(e,t){return ri(516,4,e,t)}function ii(e,t){return oi(516,4,e,t)}function si(e,t){return oi(4,2,e,t)}function li(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 ci(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,2,li.bind(null,t,e),n)}function ui(){}function pi(e,t){return Za().memoizedState=[e,void 0===t?null:t],e}function di(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fi(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hi(e,t,n){var r=Uo();Wo(98>r?98:r,(function(){e(!0)})),Wo(97<r?97:r,(function(){var r=ja.suspense;ja.suspense=void 0===t?null:t;try{e(!1),n()}finally{ja.suspense=r}}))}function mi(e,t,n){var r=Xs(),o=fa.suspense;o={expirationTime:r=Gs(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Va||null!==a&&a===Va)Ya=!0,o.expirationTime=Ua,Va.expirationTime=Ua;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.eagerReducer=a,o.eagerState=s,Fr(s,i))return}catch(e){}qs(e,r)}}var gi={readContext:oa,useCallback:Xa,useContext:Xa,useEffect:Xa,useImperativeHandle:Xa,useLayoutEffect:Xa,useMemo:Xa,useReducer:Xa,useRef:Xa,useState:Xa,useDebugValue:Xa,useResponder:Xa,useDeferredValue:Xa,useTransition:Xa},vi={readContext:oa,useCallback:pi,useContext:oa,useEffect:ai,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ri(4,2,li.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=Za();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Za();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=mi.bind(null,Va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Za().memoizedState=e},useState:ei,useDebugValue:ui,useResponder:Aa,useDeferredValue:function(e,t){var n=ei(e),r=n[0],o=n[1];return ai((function(){var n=ja.suspense;ja.suspense=void 0===t?null:t;try{o(e)}finally{ja.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ei(!1),n=t[0];return t=t[1],[pi(hi.bind(null,t,e),[t,e]),n]}},bi={readContext:oa,useCallback:di,useContext:oa,useEffect:ii,useImperativeHandle:ci,useLayoutEffect:si,useMemo:fi,useReducer:$a,useRef:ni,useState:function(){return $a(Ka)},useDebugValue:ui,useResponder:Aa,useDeferredValue:function(e,t){var n=$a(Ka),r=n[0],o=n[1];return ii((function(){var n=ja.suspense;ja.suspense=void 0===t?null:t;try{o(e)}finally{ja.suspense=n}}),[e,t]),r},useTransition:function(e){var t=$a(Ka),n=t[0];return t=t[1],[di(hi.bind(null,t,e),[t,e]),n]}},yi={readContext:oa,useCallback:di,useContext:oa,useEffect:ii,useImperativeHandle:ci,useLayoutEffect:si,useMemo:fi,useReducer:Ja,useRef:ni,useState:function(){return Ja(Ka)},useDebugValue:ui,useResponder:Aa,useDeferredValue:function(e,t){var n=Ja(Ka),r=n[0],o=n[1];return ii((function(){var n=ja.suspense;ja.suspense=void 0===t?null:t;try{o(e)}finally{ja.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ja(Ka),n=t[0];return t=t[1],[di(hi.bind(null,t,e),[t,e]),n]}},xi=null,wi=null,_i=!1;function Ci(e,t){var n=kl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ki(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.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 Si(e){if(_i){var t=wi;if(t){var n=t;if(!ki(e,t)){if(!(t=wn(n.nextSibling))||!ki(e,t))return e.effectTag=-1025&e.effectTag|2,_i=!1,void(xi=e);Ci(xi,n)}xi=e,wi=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_i=!1,xi=e}}function Ei(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xi=e}function Pi(e){if(e!==xi)return!1;if(!_i)return Ei(e),_i=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!bn(t,e.memoizedProps))for(t=wi;t;)Ci(e,t),t=wn(t.nextSibling);if(Ei(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wi=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wi=null}}else wi=xi?wn(e.stateNode.nextSibling):null;return!0}function Ti(){wi=xi=null,_i=!1}var Oi=Q.ReactCurrentOwner,Ni=!1;function Bi(e,t,n,r){t.child=null===e?Ea(t,null,n,r):Sa(t,e.child,n,r)}function Li(e,t,n,r,o){n=n.render;var a=t.ref;return ra(t,o),r=qa(e,t,n,r,a,o),null===e||Ni?(t.effectTag|=1,Bi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qi(e,t,o))}function Mi(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Sl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pl(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ri(e,t,i,r,o,a))}return i=e.child,o<a&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:zr)(o,r)&&e.ref===t.ref)?qi(e,t,a):(t.effectTag|=1,(e=El(i,r)).ref=t.ref,e.return=t,t.child=e)}function Ri(e,t,n,r,o,a){return null!==e&&zr(e.memoizedProps,r)&&e.ref===t.ref&&(Ni=!1,o<a)?(t.expirationTime=e.expirationTime,qi(e,t,a)):Di(e,t,n,r,a)}function Ii(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Di(e,t,n,r,o){var a=go(n)?ho:po.current;return a=mo(t,a),ra(t,o),n=qa(e,t,n,r,a,o),null===e||Ni?(t.effectTag|=1,Bi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qi(e,t,o))}function Fi(e,t,n,r,o){if(go(n)){var a=!0;xo(t)}else a=!1;if(ra(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ba(t,n,r),xa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=oa(c):c=mo(t,c=go(n)?ho:po.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&ya(t,i,r,c),aa=!1;var d=t.memoizedState;i.state=d,pa(t,r,i,o),l=t.memoizedState,s!==r||d!==l||fo.current||aa?("function"==typeof u&&(ma(t,n,u,r),l=t.memoizedState),(s=aa||va(t,n,s,r,d,l,c))?(p||"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=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,sa(e,t),s=t.memoizedProps,i.props=t.type===t.elementType?s:Zo(t.type,s),l=i.context,"object"==typeof(c=n.contextType)&&null!==c?c=oa(c):c=mo(t,c=go(n)?ho:po.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&ya(t,i,r,c),aa=!1,l=t.memoizedState,i.state=l,pa(t,r,i,o),d=t.memoizedState,s!==r||l!==d||fo.current||aa?("function"==typeof u&&(ma(t,n,u,r),d=t.memoizedState),(u=aa||va(t,n,s,r,l,d,c))?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,d,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),i.props=r,i.state=d,i.context=c,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ai(e,t,n,r,a,o)}function Ai(e,t,n,r,o,a){Ii(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return o&&wo(t,n,!1),qi(e,t,a);r=t.stateNode,Oi.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,s,a)):Bi(e,t,s,a),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function zi(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),La(e,t.containerInfo)}var ji,Ui,Vi,Wi={dehydrated:null,retryTime:0};function Hi(e,t,n){var r,o=t.mode,a=t.pendingProps,i=Da.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&i)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),co(Da,1&i),null===e){if(void 0!==a.fallback&&Si(t),s){if(s=a.fallback,(a=Tl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Tl(s,o,n,null)).return=t,a.sibling=n,t.memoizedState=Wi,t.child=a,n}return o=a.children,t.memoizedState=null,t.child=Ea(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(a=a.fallback,(n=El(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=El(o,a)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Wi,t.child=n,o}return n=Sa(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=a.fallback,(a=Tl(null,o,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Tl(s,o,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=Wi,t.child=a,n}return t.memoizedState=null,t.child=Sa(t,e,a.children,n)}function Yi(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),na(e.return,t)}function Xi(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o,i.lastEffect=a)}function Gi(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Bi(e,t,r.children,n),0!=(2&(r=Da.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Yi(e,n);else if(19===e.tag)Yi(e,n);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}r&=1}if(co(Da,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xi(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xi(t,!0,n,null,a,t.lastEffect);break;case"together":Xi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function qi(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&il(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=El(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=El(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qi(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return go(t.type)&&vo(),null;case 3:return Ma(),lo(fo),lo(po),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Pi(t)||(t.effectTag|=4),null;case 5:Ia(t),n=Ba(Na.current);var a=t.type;if(null!==e&&null!=t.stateNode)Ui(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Ba(Ta.current),Pi(t)){r=t.stateNode,a=t.type;var s=t.memoizedProps;switch(r[kn]=t,r[Sn]=s,a){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Gt(Qe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":Ce(r,s),Gt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),ln(n,"onChange");break;case"textarea":Be(r,s),Gt("invalid",r),ln(n,"onChange")}for(var l in on(a,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):k.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(a){case"input":xe(r),Ee(r,s,!0);break;case"textarea":xe(r),Me(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=De(a)),e===sn?"script"===a?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(a,{is:r.is}):(e=l.createElement(a),"select"===a&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,a),e[kn]=t,e[Sn]=r,ji(e,t),t.stateNode=e,l=an(a,r),a){case"iframe":case"object":case"embed":Gt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Qe.length;c++)Gt(Qe[c],e);c=r;break;case"source":Gt("error",e),c=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=r;break;case"form":Gt("reset",e),Gt("submit",e),c=r;break;case"details":Gt("toggle",e),c=r;break;case"input":Ce(e,r),c=_e(e,r),Gt("invalid",e),ln(n,"onChange");break;case"option":c=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Be(e,r),c=Ne(e,r),Gt("invalid",e),ln(n,"onChange");break;default:c=r}on(a,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var p=u[s];"style"===s?nn(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&ze(e,p):"children"===s?"string"==typeof p?("textarea"!==a||""!==p)&&je(e,p):"number"==typeof p&&je(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=p&&ln(n,s):null!=p&&K(e,s,p,l))}switch(a){case"input":xe(e),Ee(e,r,!1);break;case"textarea":xe(e),Me(e);break;case"option":null!=r.value&&e.setAttribute("value",""+be(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}vn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Vi(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=Ba(Na.current),Ba(Ta.current),Pi(t)?(n=t.stateNode,r=t.memoizedProps,n[kn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kn]=t,t.stateNode=n)}return null;case 13:return lo(Da),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Pi(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=a,a.nextEffect=s):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Da.current)?Ps===xs&&(Ps=ws):(Ps!==xs&&Ps!==ws||(Ps=_s),0!==Ls&&null!==ks&&(Ml(ks,Es),Rl(ks,Ls)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ma(),null;case 10:return ta(t),null;case 17:return go(t.type)&&vo(),null;case 19:if(lo(Da),null===(r=t.memoizedState))return null;if(a=0!=(64&t.effectTag),null===(s=r.rendering)){if(a)Zi(r,!1);else if(Ps!==xs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Fa(s))){for(t.effectTag|=64,Zi(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=s,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,s=e.dependencies,a.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return co(Da,1&Da.current|2),t.child}s=s.sibling}}else{if(!a)if(null!==(e=Fa(s))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Zi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*jo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Zi(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=jo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=jo(),n.sibling=null,t=Da.current,co(Da,a?1&t|2:1&t),n):null}throw Error(i(156,t.tag))}function Ki(e){switch(e.tag){case 1:go(e.type)&&vo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ma(),lo(fo),lo(po),0!=(64&(t=e.effectTag)))throw Error(i(285));return e.effectTag=-4097&t|64,e;case 5:return Ia(e),null;case 13:return lo(Da),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Da),null;case 4:return Ma(),null;case 10:return ta(e),null;default:return null}}function $i(e,t){return{value:e,source:t,stack:ve(t)}}ji=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ui=function(e,t,n,r,a){var i=e.memoizedProps;if(i!==r){var s,l,c=t.stateNode;switch(Ba(Ta.current),e=null,n){case"input":i=_e(c,i),r=_e(c,r),e=[];break;case"option":i=Te(c,i),r=Te(c,r),e=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":i=Ne(c,i),r=Ne(c,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(s in on(n,r),n=null,i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if("style"===s)for(l in c=i[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=i?i[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=u&&ln(a,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Vi=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Ji="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(i(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void os(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))));case 19:case 17:case 20:case 21:return}throw Error(i(163))}function is(e,t,n){switch("function"==typeof _l&&_l(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){bl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){bl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(i(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function us(e,t,n){for(var r,o,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(i(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,c=a,u=n,p=c;;)if(is(l,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===c)break e;for(;null===p.sibling;){if(null===p.return||p.return===c)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}o?(l=r,c=a.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,o=!0,a.child.return=a,a=a.child;continue}}else if(is(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function ps(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),an(e,o),t=an(e,r),o=0;o<a.length;o+=2){var s=a[o],l=a[o+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?ze(n,l):"children"===s?je(n,l):K(n,s,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":Le(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Rs=jo()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,a.style.display=tn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(i(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ji),t.forEach((function(t){var r=xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=la(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ds||(Ds=!0,Fs=r),es(e,t)},n}function ms(e,t,n){(n=la(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return es(e,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===As?As=new Set([this]):As.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,vs=Math.ceil,bs=Q.ReactCurrentDispatcher,ys=Q.ReactCurrentOwner,xs=0,ws=3,_s=4,Cs=0,ks=null,Ss=null,Es=0,Ps=xs,Ts=null,Os=1073741823,Ns=1073741823,Bs=null,Ls=0,Ms=!1,Rs=0,Is=null,Ds=!1,Fs=null,As=null,zs=!1,js=null,Us=90,Vs=null,Ws=0,Hs=null,Ys=0;function Xs(){return 0!=(48&Cs)?1073741821-(jo()/10|0):0!==Ys?Ys:Ys=1073741821-(jo()/10|0)}function Gs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Uo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Cs))return Es;if(null!==n)e=qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=qo(e,150,100);break;case 97:case 96:e=qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(i(326))}return null!==ks&&e===Es&&--e,e}function qs(e,t){if(50<Ws)throw Ws=0,Hs=null,Error(i(185));if(null!==(e=Zs(e,t))){var n=Uo();1073741823===t?0!=(8&Cs)&&0==(48&Cs)?Js(e):(Ks(e),0===Cs&&Xo()):Ks(e),0==(4&Cs)||98!==n&&99!==n||(null===Vs?Vs=new Map([[e,t]]):(void 0===(n=Vs.get(e))||n>t)&&Vs.set(e,t))}}function Zs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ks===o&&(il(t),Ps===_s&&Ml(o,Es)),Rl(o,t)),o}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ll(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ks(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yo(Js.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Xs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Mo&&ko(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yo(Js.bind(null,e)):Ho(r,$s.bind(null,e),{timeout:10*(1073741821-t)-jo()}),e.callbackNode=t}}}function $s(e,t){if(Ys=0,t)return Il(e,t=Xs()),Ks(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&Cs))throw Error(i(327));if(ml(),e===ks&&n===Es||nl(e,n),null!==Ss){var r=Cs;Cs|=16;for(var o=ol();;)try{ll();break}catch(t){rl(e,t)}if(ea(),Cs=r,bs.current=o,1===Ps)throw t=Ts,nl(e,n),Ml(e,n),Ks(e),t;if(null===Ss)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ps,ks=null,r){case xs:case 1:throw Error(i(345));case 2:Il(e,2<n?2:n);break;case ws:if(Ml(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(o)),1073741823===Os&&10<(o=Rs+500-jo())){if(Ms){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(a=Qs(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=yn(dl.bind(null,e),o);break}dl(e);break;case _s:if(Ml(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(o)),Ms&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(o=Qs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-jo():1073741823===Os?r=0:(r=10*(1073741821-Os)-5e3,0>(r=(o=jo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=yn(dl.bind(null,e),r);break}dl(e);break;case 5:if(1073741823!==Os&&null!==Bs){a=Os;var s=Bs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(a=jo()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)))<=o?0:o+r-a),10<r){Ml(e,n),e.timeoutHandle=yn(dl.bind(null,e),r);break}}dl(e);break;default:throw Error(i(329))}if(Ks(e),e.callbackNode===t)return $s.bind(null,e)}}return null}function Js(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Cs))throw Error(i(327));if(ml(),e===ks&&t===Es||nl(e,t),null!==Ss){var n=Cs;Cs|=16;for(var r=ol();;)try{sl();break}catch(t){rl(e,t)}if(ea(),Cs=n,bs.current=r,1===Ps)throw n=Ts,nl(e,t),Ml(e,t),Ks(e),n;if(null!==Ss)throw Error(i(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ks=null,dl(e),Ks(e)}return null}function el(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&Xo()}}function tl(e,t){var n=Cs;Cs&=-2,Cs|=8;try{return e(t)}finally{0===(Cs=n)&&Xo()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Ss)for(n=Ss.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ma(),lo(fo),lo(po);break;case 5:Ia(r);break;case 4:Ma();break;case 13:case 19:lo(Da);break;case 10:ta(r)}n=n.return}ks=e,Ss=El(e.current,null),Es=t,Ps=xs,Ts=null,Ns=Os=1073741823,Bs=null,Ls=0,Ms=!1}function rl(e,t){for(;;){try{if(ea(),za.current=gi,Ya)for(var n=Va.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ua=0,Ha=Wa=Va=null,Ya=!1,null===Ss||null===Ss.return)return Ps=1,Ts=t,Ss=null;e:{var o=e,a=Ss.return,i=Ss,s=t;if(t=Es,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&i.mode)){var c=i.alternate;c?(i.updateQueue=c.updateQueue,i.memoizedState=c.memoizedState,i.expirationTime=c.expirationTime):(i.updateQueue=null,i.memoizedState=null)}var u=0!=(1&Da.current),p=a;do{var d;if(d=13===p.tag){var f=p.memoizedState;if(null!==f)d=null!==f.dehydrated;else{var h=p.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(d){var m=p.updateQueue;if(null===m){var g=new Set;g.add(l),p.updateQueue=g}else m.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var v=la(1073741823,null);v.tag=2,ca(i,v)}i.expirationTime=1073741823;break e}s=void 0,i=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fs,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(i)){s.add(i);var y=yl.bind(null,o,l,i);l.then(y,y)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ge(i.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."+ve(i))}5!==Ps&&(Ps=2),s=$i(s,i),p=a;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=t,ua(p,hs(p,l,t));break e;case 1:l=s;var x=p.type,w=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof x.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===As||!As.has(w)))){p.effectTag|=4096,p.expirationTime=t,ua(p,ms(p,l,t));break e}}p=p.return}while(null!==p)}Ss=ul(Ss)}catch(e){t=e;continue}break}}function ol(){var e=bs.current;return bs.current=gi,null===e?gi:e}function al(e,t){e<Os&&2<e&&(Os=e),null!==t&&e<Ns&&2<e&&(Ns=e,Bs=t)}function il(e){e>Ls&&(Ls=e)}function sl(){for(;null!==Ss;)Ss=cl(Ss)}function ll(){for(;null!==Ss&&!Ro();)Ss=cl(Ss)}function cl(e){var t=gs(e.alternate,e,Es);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),ys.current=null,t}function ul(e){Ss=e;do{var t=Ss.alternate;if(e=Ss.return,0==(2048&Ss.effectTag)){if(t=Qi(t,Ss,Es),1===Es||1!==Ss.childExpirationTime){for(var n=0,r=Ss.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}Ss.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ss.firstEffect),null!==Ss.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ss.firstEffect),e.lastEffect=Ss.lastEffect),1<Ss.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ss:e.firstEffect=Ss,e.lastEffect=Ss))}else{if(null!==(t=Ki(Ss)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ss.sibling))return t;Ss=e}while(null!==Ss);return Ps===xs&&(Ps=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=Uo();return Wo(99,fl.bind(null,e,t)),null}function fl(e,t){do{ml()}while(null!==js);if(0!=(48&Cs))throw Error(i(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=pl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ks&&(Ss=ks=null,Es=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var a=Cs;Cs|=32,ys.current=null,mn=Xt;var s=fn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,f=-1,h=-1,m=0,g=0,v=s,b=null;t:for(;;){for(var y;v!==l||0!==u&&3!==v.nodeType||(f=d+u),v!==p||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)b=v,v=y;for(;;){if(v===s)break t;if(b===l&&++m===u&&(f=d),b===p&&++g===c&&(h=d),null!==(y=v.nextSibling))break;b=(v=b).parentNode}v=y}l=-1===f||-1===h?null:{start:f,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Xt=!1,Is=o;do{try{hl()}catch(e){if(null===Is)throw Error(i(330));bl(Is,e),Is=Is.nextEffect}}while(null!==Is);Is=o;do{try{for(s=e,l=t;null!==Is;){var x=Is.effectTag;if(16&x&&je(Is.stateNode,""),128&x){var w=Is.alternate;if(null!==w){var _=w.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&x){case 2:cs(Is),Is.effectTag&=-3;break;case 6:cs(Is),Is.effectTag&=-3,ps(Is.alternate,Is);break;case 1024:Is.effectTag&=-1025;break;case 1028:Is.effectTag&=-1025,ps(Is.alternate,Is);break;case 4:ps(Is.alternate,Is);break;case 8:us(s,u=Is,l),ss(u)}Is=Is.nextEffect}}catch(e){if(null===Is)throw Error(i(330));bl(Is,e),Is=Is.nextEffect}}while(null!==Is);if(_=gn,w=fn(),x=_.focusedElem,l=_.selectionRange,w!==x&&x&&x.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(x.ownerDocument.documentElement,x)){null!==l&&hn(x)&&(w=l.start,void 0===(_=l.end)&&(_=w),"selectionStart"in x?(x.selectionStart=w,x.selectionEnd=Math.min(_,x.value.length)):(_=(w=x.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),u=x.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!_.extend&&s>l&&(u=l,l=s,s=u),u=dn(x,s),p=dn(x,l),u&&p&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==p.node||_.focusOffset!==p.offset)&&((w=w.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),s>l?(_.addRange(w),_.extend(p.node,p.offset)):(w.setEnd(p.node,p.offset),_.addRange(w))))),w=[];for(_=x;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<w.length;x++)(_=w[x]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Xt=!!mn,gn=mn=null,e.current=n,Is=o;do{try{for(x=e;null!==Is;){var C=Is.effectTag;if(36&C&&as(x,Is.alternate,Is),128&C){w=void 0;var k=Is.ref;if(null!==k){var S=Is.stateNode;switch(Is.tag){case 5:w=S;break;default:w=S}"function"==typeof k?k(w):k.current=w}}Is=Is.nextEffect}}catch(e){if(null===Is)throw Error(i(330));bl(Is,e),Is=Is.nextEffect}}while(null!==Is);Is=null,Io(),Cs=a}else e.current=n;if(zs)zs=!1,js=e,Us=t;else for(Is=o;null!==Is;)t=Is.nextEffect,Is.nextEffect=null,Is=t;if(0===(t=e.firstPendingTime)&&(As=null),1073741823===t?e===Hs?Ws++:(Ws=0,Hs=e):Ws=0,"function"==typeof wl&&wl(n.stateNode,r),Ks(e),Ds)throw Ds=!1,e=Fs,Fs=null,e;return 0!=(8&Cs)||Xo(),null}function hl(){for(;null!==Is;){var e=Is.effectTag;0!=(256&e)&&ns(Is.alternate,Is),0==(512&e)||zs||(zs=!0,Ho(97,(function(){return ml(),null}))),Is=Is.nextEffect}}function ml(){if(90!==Us){var e=97<Us?97:Us;return Us=90,Wo(e,gl)}}function gl(){if(null===js)return!1;var e=js;if(js=null,0!=(48&Cs))throw Error(i(331));var t=Cs;for(Cs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),os(5,n)}}catch(t){if(null===e)throw Error(i(330));bl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Cs=t,Xo(),!0}function vl(e,t,n){ca(e,t=hs(e,t=$i(n,t),1073741823)),null!==(e=Zs(e,1073741823))&&Ks(e)}function bl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===As||!As.has(r))){ca(n,e=ms(n,e=$i(t,e),1073741823)),null!==(n=Zs(n,1073741823))&&Ks(n);break}}n=n.return}}function yl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ks===e&&Es===n?Ps===_s||Ps===ws&&1073741823===Os&&jo()-Rs<500?nl(e,Es):Ms=!0:Ll(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ks(e)))}function xl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=Xs(),e,null)),null!==(e=Zs(e,t))&&Ks(e)}gs=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||fo.current)Ni=!0;else{if(r<n){switch(Ni=!1,t.tag){case 3:zi(t),Ti();break;case 5:if(Ra(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&xo(t);break;case 4:La(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,co(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Hi(e,t,n):(co(Da,1&Da.current),null!==(t=qi(e,t,n))?t.sibling:null);co(Da,1&Da.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Gi(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),co(Da,Da.current),!r)return null}return qi(e,t,n)}Ni=!1}}else Ni=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=mo(t,po.current),ra(t,n),o=qa(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var a=!0;xo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ia(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&ma(t,r,s,e),o.updater=ga,t.stateNode=o,o._reactInternalFiber=t,xa(t,r,e,n),t=Ai(null,t,r,!0,a,n)}else t.tag=0,Bi(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.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)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,a=t.tag=function(e){if("function"==typeof e)return Sl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(o),e=Zo(o,e),a){case 0:t=Di(null,t,o,e,n);break e;case 1:t=Fi(null,t,o,e,n);break e;case 11:t=Li(null,t,o,e,n);break e;case 14:t=Mi(null,t,o,Zo(o.type,e),r,n);break e}throw Error(i(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Di(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Fi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(zi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,sa(e,t),pa(t,r,null,n),(r=t.memoizedState.element)===o)Ti(),t=qi(e,t,n);else{if((o=t.stateNode.hydrate)&&(wi=wn(t.stateNode.containerInfo.firstChild),xi=t,o=_i=!0),o)for(n=Ea(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Bi(e,t,r,n),Ti();t=t.child}return t;case 5:return Ra(t),null===e&&Si(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,bn(r,o)?s=null:null!==a&&bn(r,a)&&(t.effectTag|=16),Ii(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Bi(e,t,s,n),t=t.child),t;case 6:return null===e&&Si(t),null;case 13:return Hi(e,t,n);case 4:return La(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):Bi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Li(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return Bi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value;var l=t.type._context;if(co(Qo,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0===(a=Fr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!fo.current){t=qi(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&a)){1===l.tag&&((u=la(n,null)).tag=2,ca(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),na(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Bi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(o=oa(o,a.unstable_observedBits)),t.effectTag|=1,Bi(e,t,r,n),t.child;case 14:return a=Zo(o=t.type,t.pendingProps),Mi(e,t,o,a=Zo(o.type,a),r,n);case 15:return Ri(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,xo(t)):e=!1,ra(t,n),ba(t,r,o),xa(t,r,o,n),Ai(null,t,r,!0,e,n);case 19:return Gi(e,t,n)}throw Error(i(156,t.tag))};var wl=null,_l=null;function Cl(e,t,n,r){this.tag=e,this.key=n,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=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kl(e,t,n,r){return new Cl(e,t,n,r)}function Sl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function El(e,t){var n=e.alternate;return null===n?((n=kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Sl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Tl(n.children,o,a,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=kl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=a,e;case ce:return(e=kl(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=a,e;case ue:return(e=kl(19,n,t,o)).elementType=ue,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ae:s=10;break e;case ie:s=9;break e;case le:s=11;break e;case pe:s=14;break e;case de:s=16,r=null;break e;case fe:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=kl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=a,t}function Tl(e,t,n,r){return(e=kl(7,e,r,t)).expirationTime=n,e}function Ol(e,t,n){return(e=kl(6,e,null,t)).expirationTime=n,e}function Nl(e,t,n){return(t=kl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n){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=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ll(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ml(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Rl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Il(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Dl(e,t,n,r){var o=t.current,a=Xs(),s=fa.suspense;a=Gs(a,o,s);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(go(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var c=n.type;if(go(c)){n=yo(n,c,l);break e}}n=l}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ca(o,t),qs(o,a),a}function Fl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Al(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function zl(e,t){Al(e,t),(e=e.alternate)&&Al(e,t)}function jl(e,t,n){var r=new Bl(e,t,n=null!=n&&!0===n.hydrate),o=kl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ia(o),e[En]=r.current,n&&0!==t&&function(e,t){var n=$e(t);Et.forEach((function(e){ht(e,t,n)})),Pt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ul(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vl(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Fl(i);s.call(e)}}Dl(t,i,e,o)}else{if(a=n._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 n;n=e.lastChild;)e.removeChild(n);return new jl(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Fl(i);l.call(e)}}tl((function(){Dl(t,i,e,o)}))}return Fl(i)}function Wl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ul(t))throw Error(i(200));return Wl(e,t,null,n)}jl.prototype.render=function(e){Dl(e,this._internalRoot,null,null)},jl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Dl(null,e,null,(function(){t[En]=null}))},mt=function(e){if(13===e.tag){var t=qo(Xs(),150,100);qs(e,t),zl(e,t)}},gt=function(e){13===e.tag&&(qs(e,3),zl(e,3))},vt=function(e){if(13===e.tag){var t=Xs();qs(e,t=Gs(t,e,null)),zl(e,t)}},T=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Nn(r);if(!o)throw Error(i(90));we(r),Se(r,o)}}}break;case"textarea":Le(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},R=el,I=function(e,t,n,r,o){var a=Cs;Cs|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Cs=a)&&Xo()}},D=function(){0==(49&Cs)&&(function(){if(null!==Vs){var e=Vs;Vs=null,e.forEach((function(e,t){Il(t,e),Ks(t)})),Xo()}}(),ml())},F=function(e,t){var n=Cs;Cs|=2;try{return e(t)}finally{0===(Cs=n)&&Xo()}};var Yl,Xl,Gl={Events:[Tn,On,Nn,E,C,Fn,function(e){ot(e,Dn)},L,M,Kt,st,ml,{current:!1}]};Xl=(Yl={findFiberByHostInstance:Pn,bundleType:0,version:"16.13.1",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 n=t.inject(e);wl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},_l=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},Yl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Xl?Xl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=Hl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Cs))throw Error(i(187));var n=Cs;Cs|=1;try{return Wo(99,e.bind(null,t))}finally{Cs=n,Xo()}},t.hydrate=function(e,t,n){if(!Ul(t))throw Error(i(200));return Vl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ul(t))throw Error(i(200));return Vl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ul(e))throw Error(i(40));return!!e._reactRootContainer&&(tl((function(){Vl(null,null,e,!1,(function(){e._reactRootContainer=null,e[En]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Hl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ul(n))throw Error(i(200));if(null==e||void 0===e._reactInternalFiber)throw Error(i(38));return Vl(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(133)},function(e,t,n){"use strict";
- /** @license React v0.19.1
- * scheduler.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r,o,a,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&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 g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=f.now();t.unstable_now=function(){return f.now()-v}}var b=!1,y=null,x=-1,w=5,_=0;i=function(){return t.unstable_now()>=_},s=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"):w=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,k=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+w;try{y(!0,e)?k.postMessage(null):(b=!1,y=null)}catch(e){throw k.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,k.postMessage(null))},o=function(e,n){x=h((function(){e(t.unstable_now())}),n)},a=function(){m(x),x=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],s=a+1,l=e[s];if(void 0!==i&&0>T(i,n))void 0!==l&&0>T(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],N=[],B=1,L=null,M=3,R=!1,I=!1,D=!1;function F(e){for(var t=E(N);null!==t;){if(null===t.callback)P(N);else{if(!(t.startTime<=e))break;P(N),t.sortIndex=t.expirationTime,S(O,t)}t=E(N)}}function A(e){if(D=!1,F(e),!I)if(null!==E(O))I=!0,r(z);else{var t=E(N);null!==t&&o(A,t.startTime-e)}}function z(e,n){I=!1,D&&(D=!1,a()),R=!0;var r=M;try{for(F(n),L=E(O);null!==L&&(!(L.expirationTime>n)||e&&!i());){var s=L.callback;if(null!==s){L.callback=null,M=L.priorityLevel;var l=s(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===E(O)&&P(O),F(n)}else P(O);L=E(O)}if(null!==L)var c=!0;else{var u=E(N);null!==u&&o(A,u.startTime-n),c=!1}return c}finally{L=null,M=r,R=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||R||(I=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return E(O)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,n,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?s+l:s,i="number"==typeof i.timeout?i.timeout:j(e)}else i=j(e),l=s;return e={id:B++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>s?(e.sortIndex=l,S(N,e),null===E(O)&&e===E(N)&&(D?a():D=!0,o(A,l-s))):(e.sortIndex=i,S(O,e),I||R||(I=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=E(O);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<L.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' width='17' height='17'%3E %3Cpath d='M4.21967 8.46967C4.51256 8.17678 4.98744 8.17678 5.28033 8.46967L12 15.1893L18.7197 8.46967C19.0126 8.17678 19.4874 8.17678 19.7803 8.46967C20.0732 8.76256 20.0732 9.23744 19.7803 9.53033L12.5303 16.7803C12.2374 17.0732 11.7626 17.0732 11.4697 16.7803L4.21967 9.53033C3.92678 9.23744 3.92678 8.76256 4.21967 8.46967Z' fill='white' /%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 63.1 (92452) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_add_circle_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-System-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_add_circle_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,3.5 C7.30557963,3.5 3.5,7.30557963 3.5,12 C3.5,16.6944204 7.30557963,20.5 12,20.5 C16.6944204,20.5 20.5,16.6944204 20.5,12 C20.5,7.30557963 16.6944204,3.5 12,3.5 Z M12,7 C12.4142136,7 12.75,7.33578644 12.75,7.75 L12.75,11.25 L16.25,11.25 C16.6642136,11.25 17,11.5857864 17,12 C17,12.4142136 16.6642136,12.75 16.25,12.75 L12.75,12.75 L12.75,16.25 C12.75,16.6642136 12.4142136,17 12,17 C11.5857864,17 11.25,16.6642136 11.25,16.25 L11.25,12.75 L7.75,12.75 C7.33578644,12.75 7,12.4142136 7,12 C7,11.5857864 7.33578644,11.25 7.75,11.25 L11.25,11.25 L11.25,7.75 C11.25,7.33578644 11.5857864,7 12,7 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t,n){var r=n(19),o=n(137);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,'#nodeList{background:#333333;height:100%;margin:0;padding:0;display:grid;width:100%;overflow:hidden}#nodeList .panes{overflow:hidden}#nodeList .panes .pane{color:white;overflow:hidden;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#nodeList .panes .pane .filter{display:flex;align-items:stretch}#nodeList .panes .pane .filter input{width:100%;margin:10px 10px 5px 10px;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}#nodeList .panes .pane .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#nodeList .panes .pane .filter input::placeholder{color:gray}#nodeList .panes .pane .list-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 32px)}#nodeList .panes .pane .list-container .underline{border-bottom:0.5px solid rgba(255,255,255,0.5)}#nodeList .panes .pane .list-container .draggableLine{height:30px;display:grid;align-items:center;justify-items:stretch;background:#222222;cursor:grab;text-align:center;margin:0;box-sizing:border-box}#nodeList .panes .pane .list-container .draggableLine:hover{background:#337ab7;color:white}#nodeList .panes .pane .list-container .nonDraggableLine{height:30px;display:grid;align-items:center;justify-items:stretch;background:#222222;text-align:center;margin:0;box-sizing:border-box}#nodeList .panes .pane .list-container .withButton{height:30px;position:relative}#nodeList .panes .pane .list-container .withButton .icon{position:absolute;right:4px;top:5px}#nodeList .panes .pane .list-container .withButton .icon:hover{cursor:pointer}#nodeList .panes .pane .list-container .withButton .icon .img{height:17px;width:17px}#nodeList .panes .pane .list-container .withButton .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch;padding-bottom:5px;position:absolute;right:0px;top:2px}#nodeList .panes .pane .list-container .withButton .buttonLine input[type="file"]{display:none}#nodeList .panes .pane .list-container .withButton .buttonLine .file-upload{background:transparent;border:transparent;padding:15px 200px;opacity:0.9;cursor:pointer;text-align:center}#nodeList .panes .pane .list-container .withButton .buttonLine .file-upload:hover{opacity:1.0}#nodeList .panes .pane .list-container .withButton .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:0.5 0.5}#nodeList .panes .pane .list-container .withButton .buttonLine button{background:transparent;border:transparent;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#nodeList .panes .pane .list-container .withButton .buttonLine button:hover{opacity:0.0}#nodeList .panes .pane .list-container .withButton .buttonLine button:active{background:transparent}#nodeList .panes .pane .list-container .withButton .buttonLine button:focus{border:transparent;outline:0px}#nodeList .panes .pane .list-container .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:1px solid rgba(255,255,255,0.3)}\n',""]),e.exports=t},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,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))},n(139),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,n(26))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,a,i,s,l=1,c={},u=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(i="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&h(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=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),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[l]=o,r(l),l++},d.clearImmediate=f}function f(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=c[e];if(t){u=!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(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(26),n(140))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(142);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={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:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(19),o=n(144);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,'.color-picker-container{width:320px;height:300px;background-color:white;display:grid;grid-template-columns:100%;grid-template-rows:50% 50px 60px 40px 1fr;font-family:"acumin-pro-condensed";font-weight:normal;font-size:14px}.color-picker-container .color-picker-saturation{grid-row:1;grid-column:1;display:grid;grid-template-columns:100%;grid-template-rows:100%;position:relative;cursor:pointer}.color-picker-container .color-picker-saturation .color-picker-saturation-white{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));background:linear-gradient(to right, #fff, rgba(255,255,255,0))}.color-picker-container .color-picker-saturation .color-picker-saturation-black{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to top, #000, rgba(0,0,0,0));background:linear-gradient(to top, #000, rgba(0,0,0,0))}.color-picker-container .color-picker-saturation .color-picker-saturation-cursor{pointer-events:none;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,0.3),0 0 1px 2px rgba(0,0,0,0.4);border-radius:50%;transform:translate(-2px, -2px);position:absolute}.color-picker-container .color-picker-hue{grid-row:2;grid-column:1;display:grid;margin:10px;grid-template-columns:24% 76%;grid-template-rows:100%}.color-picker-container .color-picker-hue .color-picker-hue-color{grid-row:1;grid-column:1;align-self:center;justify-self:center;width:30px;height:30px;border-radius:15px;border:1px solid black}.color-picker-container .color-picker-hue .color-picker-hue-slider{grid-row:1;grid-column:2;align-self:center;height:16px;position:relative;cursor:pointer;background:linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.color-picker-container .color-picker-hue .color-picker-hue-slider .color-picker-hue-cursor{pointer-events:none;width:8px;height:18px;transform:translate(-4px, -2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,0.37);position:absolute}.color-picker-container .color-picker-component{display:grid;margin:5px;grid-template-columns:100%;grid-template-rows:50% 50%}.color-picker-container .color-picker-component .color-picker-component-value{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-bottom:4px}.color-picker-container .color-picker-component .color-picker-component-value input{width:50px}.color-picker-container .color-picker-component .color-picker-component-label{justify-self:center;align-self:center;grid-row:2;grid-column:1;color:black}.color-picker-container .color-picker-rgb{grid-row:3;grid-column:1;display:grid;margin:10px;grid-template-columns:20% 6.66% 20% 6.66% 20% 6.66% 20%;grid-template-rows:100%}.color-picker-container .red{grid-row:1;grid-column:1}.color-picker-container .green{grid-row:1;grid-column:3}.color-picker-container .blue{grid-row:1;grid-column:5}.color-picker-container .alpha{grid-row:1;grid-column:7}.color-picker-container .alpha.grayed{opacity:0.5}.color-picker-container .color-picker-hex{grid-row:4;grid-column:1;display:grid;grid-template-columns:20% 80%;grid-template-rows:100%}.color-picker-container .color-picker-hex .color-picker-hex-label{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-left:10px;color:black}.color-picker-container .color-picker-hex .color-picker-hex-value{justify-self:left;align-self:center;grid-row:1;grid-column:2;margin-left:10px;margin-right:10px}.color-picker-container .color-picker-hex .color-picker-hex-value input{width:70px}\n',""]),e.exports=t},function(e,t,n){var r=n(146);e.exports={Graph:r.Graph,json:n(248),alg:n(249),version:r.version}},function(e,t,n){e.exports={Graph:n(52),version:n(247)}},function(e,t,n){var r=n(76);e.exports=function(e){return r(e,4)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(34),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(34);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(34);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(34);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(33);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(33),o=n(53),a=n(54);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(27),o=n(161),a=n(7),i=n(78),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?d:s).test(i(e))}},function(e,t,n){var r=n(22),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(162),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(9)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(165),o=n(33),a=n(53);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(166),o=n(167),a=n(168),i=n(169),s=n(170);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(35);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(35),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(35),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(35);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(36);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(36);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(28),o=n(14);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(16),o=n(10);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(16),o=n(57),a=n(10),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t,n){var r=n(81)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(28),o=n(17);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(41),a=n(184),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(28),o=n(60);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(28),o=n(86);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(88),o=n(86),a=n(17);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(15)(n(9),"DataView");e.exports=r},function(e,t,n){var r=n(15)(n(9),"Promise");e.exports=r},function(e,t,n){var r=n(15)(n(9),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(62),o=n(193),a=n(194),i=n(195),s=n(91);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Set]":return new l;case"[object Symbol]":return i(e)}}},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(22),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,n){var r=n(197),o=n(40),a=n(58),i=a&&a.isMap,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(24),o=n(10);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(199),o=n(40),a=n(58),i=a&&a.isSet,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(24),o=n(10);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}},function(e,t,n){var r=n(11);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==o(s[i],i,s););return n}}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},function(e,t,n){var r=n(204),o=n(212),a=n(103);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(32),o=n(98);e.exports=function(e,t,n,a){var i=n.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],p=e[u],d=c[1];if(l&&c[2]){if(void 0===p&&!(u in e))return!1}else{var f=new r;if(a)var h=a(p,d,u,e,t,f);if(!(void 0===h?o(d,p,3,a,f):h))return!1}}return!0}},function(e,t,n){var r=n(32),o=n(99),a=n(209),i=n(211),s=n(24),l=n(4),c=n(23),u=n(30),p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,m){var g=l(e),v=l(t),b=g?"[object Array]":s(e),y=v?"[object Array]":s(t),x=(b="[object Arguments]"==b?p:b)==p,w=(y="[object Arguments]"==y?p:y)==p,_=b==y;if(_&&c(e)){if(!c(t))return!1;g=!0,x=!1}if(_&&!x)return m||(m=new r),g||u(e)?o(e,t,n,f,h,m):a(e,t,b,n,f,h,m);if(!(1&n)){var C=x&&d.call(e,"__wrapped__"),k=w&&d.call(t,"__wrapped__");if(C||k){var S=C?e.value():e,E=k?t.value():t;return m||(m=new r),h(S,E,n,f,m)}}return!!_&&(m||(m=new r),i(e,t,n,f,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(22),o=n(90),a=n(21),i=n(99),s=n(210),l=n(66),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=i(f(e),f(t),r,c,p,d);return d.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(87),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var p=u;p--;){var d=c[p];if(!(l?d in t:o.call(t,d)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++p<u;){var v=e[d=c[p]],b=t[d];if(a)var y=l?a(b,v,d,t,e,s):a(v,b,d,e,t,s);if(!(void 0===y?v===b||i(v,b,n,a,s):y)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(102),o=n(14);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},function(e,t,n){var r=n(98),o=n(214),a=n(105),i=n(67),s=n(102),l=n(103),c=n(31);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},function(e,t,n){var r=n(44);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(216),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(217);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(54);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(22),o=n(46),a=n(4),i=n(25),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(107),o=n(221),a=n(67),i=n(31);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,t,n){var r=n(44);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(59),o=n(24),a=n(29),i=n(4),s=n(11),l=n(23),c=n(41),u=n(30),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t){e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},function(e,t){e.exports=function(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},function(e,t,n){var r=n(59),o=n(24),a=n(11),i=n(227),s=n(228);e.exports=function(e){if(null==e)return 0;if(a(e))return i(e)?s(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},function(e,t,n){var r=n(16),o=n(4),a=n(10);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(229),o=n(230),a=n(231);e.exports=function(e){return o(e)?a(e):r(e)}},function(e,t,n){var r=n(107)("length");e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[a,i,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[a+r+"?",r,i,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+u+c,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},function(e,t,n){var r=n(55),o=n(93),a=n(64),i=n(12),s=n(42),l=n(4),c=n(23),u=n(27),p=n(7),d=n(30);e.exports=function(e,t,n){var f=l(e),h=f||c(e)||d(e);if(t=i(t,4),null==n){var m=e&&e.constructor;n=h?f?new m:[]:p(e)&&u(m)?o(s(e)):{}}return(h?r:a)(e,(function(e,r,o){return t(n,e,r,o)})),n}},function(e,t,n){var r=n(68),o=n(47),a=n(238),i=n(116),s=o((function(e){return a(r(e,1,i,!0))}));e.exports=s},function(e,t,n){var r=n(22),o=n(29),a=n(4),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(63),o=n(79),a=n(18),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(100),o=n(239),a=n(243),i=n(101),s=n(244),l=n(66);e.exports=function(e,t,n){var c=-1,u=o,p=e.length,d=!0,f=[],h=f;if(n)d=!1,u=a;else if(p>=200){var m=t?null:s(e);if(m)return l(m);d=!1,u=i,h=new r}else h=t?[]:f;e:for(;++c<p;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,d&&v==v){for(var b=h.length;b--;)if(h[b]===v)continue e;t&&h.push(v),f.push(g)}else u(h,v,n)||(h!==f&&h.push(v),f.push(g))}return f}},function(e,t,n){var r=n(240);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(115),o=n(241),a=n(242);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(89),o=n(245),a=n(66),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(46);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports="2.1.8"},function(e,t,n){var r=n(6),o=n(52);function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),a={v:t};return r.isUndefined(n)||(a.value=n),r.isUndefined(o)||(a.parent=o),a}))}function i(e){return r.map(e.edges(),(function(t){var n=e.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(n)||(o.value=n),o}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:i(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new o(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(250),dijkstra:n(118),dijkstraAll:n(251),findCycles:n(252),floydWarshall:n(253),isAcyclic:n(254),postorder:n(255),preorder:n(256),prim:n(257),tarjan:n(120),topsort:n(121)}},function(e,t,n){var r=n(6);e.exports=function(e){var t,n={},o=[];function a(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),a),r.each(e.predecessors(o),a))}return r.each(e.nodes(),(function(e){t=[],a(e),t.length&&o.push(t)})),o}},function(e,t,n){var r=n(118),o=n(6);e.exports=function(e,t,n){return o.transform(e.nodes(),(function(o,a){o[a]=r(e,a,t,n)}),{})}},function(e,t,n){var r=n(6),o=n(120);e.exports=function(e){return r.filter(o(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(6);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,a=t(n);r[e][o]={distance:a,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var a=r[n];o.forEach((function(n){var r=a[e],o=t[n],i=a[n],s=r.distance+o.distance;s<i.distance&&(i.distance=s,i.predecessor=o.predecessor)}))}))})),r}(e,t||o,n||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(121);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},function(e,t,n){var r=n(122);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(122);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(6),o=n(52),a=n(119);e.exports=function(e,t){var n,i=new o,s={},l=new a;function c(e){var r=e.v===n?e.w:e.v,o=l.priority(r);if(void 0!==o){var a=t(e);a<o&&(s[r]=n,l.decrease(r,a))}}if(0===e.nodeCount())return i;r.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),i.setNode(e)})),l.decrease(e.nodes()[0],0);var u=!1;for(;l.size()>0;){if(n=l.removeMin(),r.has(s,n))i.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(c)}return i}},function(e,t,n){"use strict";var r=n(3),o=n(296),a=n(299),i=n(300),s=n(5).normalizeRanks,l=n(302),c=n(5).removeEmptyRanks,u=n(303),p=n(304),d=n(305),f=n(306),h=n(315),m=n(5),g=n(8).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?m.time:m.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new g({multigraph:!0,compound:!0}),n=E(e.graph());return t.setGraph(r.merge({},b,S(n,v),r.pick(n,y))),r.forEach(e.nodes(),(function(n){var o=E(e.node(n));t.setNode(n,r.defaults(S(o,x),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=E(e.edge(n));t.setEdge(n,r.merge({},C,S(o,_),r.pick(o,k)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){o.run(e)})),t(" nestingGraph.run",(function(){u.run(e)})),t(" rank",(function(){i(m.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};m.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){u.cleanup(e)})),t(" normalizeRanks",(function(){s(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){a.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){p(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=m.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var a=e.node(t);a.order=o+n,r.forEach(a.selfEdges,(function(t){m.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:a.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete a.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){h(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,a=r.y,i=n.x-o,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),a=e.node(n.borderBottom),i=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-i.x),n.height=Math.abs(a.y-o.y),n.x=i.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){a.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,a=0,i=e.graph(),s=i.marginx||0,l=i.marginy||0;function c(e){var r=e.x,i=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,i-l/2),a=Math.max(a,i+l/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=s,o-=l,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var a=e.edge(n);r.forEach(a.points,(function(e){e.x-=t,e.y-=o})),r.has(a,"x")&&(a.x-=t),r.has(a,"y")&&(a.y-=o)})),i.width=n-t+s,i.height=a-o+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),a=e.node(t.v),i=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=i,r=a),o.points.unshift(m.intersectRect(a,n)),o.points.push(m.intersectRect(i,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){o.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),a=t.edge(n);o.points=a.points,r.has(a,"x")&&(o.x=a.x,o.y=a.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function S(e,t){return r.mapValues(r.pick(e,t),Number)}function E(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(76);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(47),o=n(21),a=n(48),i=n(17),s=Object.prototype,l=s.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],p=i(u),d=-1,f=p.length;++d<f;){var h=p[d],m=e[h];(void 0===m||o(m,s[h])&&!l.call(e,h))&&(e[h]=u[h])}return e}));e.exports=c},function(e,t,n){var r=n(262)(n(263));e.exports=r},function(e,t,n){var r=n(12),o=n(11),a=n(14);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!o(t)){var l=r(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,i);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(115),o=n(12),a=n(264),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:a(n);return l<0&&(l=i(s+l,0)),r(e,o(t,3),l)}},function(e,t,n){var r=n(123);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(7),o=n(25),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(65),o=n(96),a=n(17);e.exports=function(e,t){return null==e?e:r(e,o(t),a)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(38),o=n(64),a=n(12);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},function(e,t,n){var r=n(69),o=n(270),a=n(18);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(272),o=n(276)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(32),o=n(125),a=n(65),i=n(273),s=n(7),l=n(17),c=n(126);e.exports=function e(t,n,u,p,d){t!==n&&a(n,(function(a,l){if(d||(d=new r),s(a))i(t,n,l,u,e,p,d);else{var f=p?p(c(t,l),a,l+"",t,n,d):void 0;void 0===f&&(f=a),o(t,l,f)}}),l)}},function(e,t,n){var r=n(125),o=n(82),a=n(91),i=n(83),s=n(92),l=n(29),c=n(4),u=n(116),p=n(23),d=n(27),f=n(7),h=n(274),m=n(30),g=n(126),v=n(275);e.exports=function(e,t,n,b,y,x,w){var _=g(e,n),C=g(t,n),k=w.get(C);if(k)r(e,n,k);else{var S=x?x(_,C,n+"",e,t,w):void 0,E=void 0===S;if(E){var P=c(C),T=!P&&p(C),O=!P&&!T&&m(C);S=C,P||T||O?c(_)?S=_:u(_)?S=i(_):T?(E=!1,S=o(C,!0)):O?(E=!1,S=a(C,!0)):S=[]:h(C)||l(C)?(S=_,l(_)?S=v(_):f(_)&&!d(_)||(S=s(C))):E=!1}E&&(w.set(C,S),y(S,C,b,x,w),w.delete(C)),r(e,n,S)}}},function(e,t,n){var r=n(16),o=n(42),a=n(10),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},function(e,t,n){var r=n(28),o=n(17);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(47),o=n(48);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t}))}},function(e,t,n){var r=n(69),o=n(127),a=n(18);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},function(e,t,n){var r=n(69),o=n(12),a=n(127);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),a):void 0}},function(e,t,n){var r=n(9);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(281),o=n(284)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(282),o=n(105);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r=n(44),o=n(283),a=n(45);e.exports=function(e,t,n){for(var i=-1,s=t.length,l={};++i<s;){var c=t[i],u=r(e,c);n(u,c)&&o(l,a(c,e),u)}return l}},function(e,t,n){var r=n(37),o=n(45),a=n(39),i=n(7),s=n(31);e.exports=function(e,t,n,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,p=u-1,d=e;null!=d&&++c<u;){var f=s(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=p){var m=d[f];void 0===(h=l?l(m,f,d):void 0)&&(h=i(m)?m:a(t[c+1])?[]:{})}r(d,f,h),d=d[f]}return e}},function(e,t,n){var r=n(124),o=n(113),a=n(114);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(286)();e.exports=r},function(e,t,n){var r=n(287),o=n(48),a=n(123);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,a){for(var i=-1,s=r(n((t-e)/(o||1)),0),l=Array(s);s--;)l[a?s:++i]=e,e+=o;return l}},function(e,t,n){var r=n(68),o=n(289),a=n(47),i=n(48),s=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(46),o=n(44),a=n(12),i=n(111),s=n(290),l=n(40),c=n(291),u=n(18),p=n(4);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return p(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=r(t,l(a));var f=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return s(f,(function(e,t){return c(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(292);e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,s=a.length,l=n.length;++o<s;){var c=r(a[o],i[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(25);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!i&&e>t||i&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e<t||u&&n&&a&&!o&&!i||l&&n&&a||!s&&a||!c)return-1}return 0}},function(e,t,n){var r=n(104),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(37),o=n(295);e.exports=function(e,t){return o(e||[],t||[],r)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=e.length,a=t.length,i={};++r<o;){var s=r<a?t[r]:void 0;n(i,e[r],s)}return i}},function(e,t,n){"use strict";var r=n(3),o=n(297);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?o(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},o={};function a(i){r.has(o,i)||(o[i]=!0,n[i]=!0,r.forEach(e.outEdges(i),(function(e){r.has(n,e.w)?t.push(e):a(e.w)})),delete n[i])}return r.forEach(e.nodes(),a),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},function(e,t,n){var r=n(3),o=n(8).Graph,a=n(298);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,i=0,s=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,o=t(e),a=r+o;n.setEdge(e.v,e.w,a),s=Math.max(s,n.node(e.v).out+=o),i=Math.max(i,n.node(e.w).in+=o)}));var c=r.range(s+i+3).map((function(){return new a})),u=i+1;return r.forEach(n.nodes(),(function(e){l(c,u,n.node(e))})),{graph:n,buckets:c,zeroIdx:u}}(e,t||i),c=function(e,t,n){var r,o=[],a=t[t.length-1],i=t[0];for(;e.nodeCount();){for(;r=i.dequeue();)s(e,t,n,r);for(;r=a.dequeue();)s(e,t,n,r);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){o=o.concat(s(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var i=r.constant(1);function s(e,t,n,o,a){var i=a?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),s=e.node(r.v);a&&i.push({v:r.v,w:r.w}),s.out-=o,l(t,n,s)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),a=r.w,i=e.node(a);i.in-=o,l(t,n,i)})),e.removeNode(o.v),i}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,o)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(3),o=n(5);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,a,i=t.v,s=e.node(i).rank,l=t.w,c=e.node(l).rank,u=t.name,p=e.edge(t),d=p.labelRank;if(c===s+1)return;for(e.removeEdge(t),a=0,++s;s<c;++a,++s)p.points=[],r={width:0,height:0,edgeLabel:p,edgeObj:t,rank:s},n=o.addDummyNode(e,"edge",r,"_d"),s===d&&(r.width=p.width,r.height=p.height,r.dummy="edge-label",r.labelpos=p.labelpos),e.setEdge(i,n,{weight:p.weight},u),0===a&&e.graph().dummyChains.push(n),i=n;e.setEdge(i,l,{weight:p.weight},u)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)}))}}},function(e,t,n){"use strict";var r=n(49).longestPath,o=n(128),a=n(301);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":s(e);break;case"tight-tree":!function(e){r(e),o(e)}(e);break;case"longest-path":i(e);break;default:s(e)}};var i=r;function s(e){a(e)}},function(e,t,n){"use strict";var r=n(3),o=n(128),a=n(49).slack,i=n(49).longestPath,s=n(8).alg.preorder,l=n(8).alg.postorder,c=n(5).simplify;function u(e){e=c(e),i(e);var t,n=o(e);for(f(n),p(n,e);t=m(n);)v(n,e,t,g(n,e,t))}function p(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=d(e,t,n)}(e,t,n)}))}function d(e,t,n){var o=e.node(n).parent,a=!0,i=t.edge(n,o),s=0;return i||(a=!1,i=t.edge(o,n)),s=i.weight,r.forEach(t.nodeEdges(n),(function(r){var i,l,c=r.v===n,u=c?r.w:r.v;if(u!==o){var p=c===a,d=t.edge(r).weight;if(s+=p?d:-d,i=n,l=u,e.hasEdge(i,l)){var f=e.edge(n,u).cutvalue;s+=p?-f:f}}})),s}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),h(e,{},1,t)}function h(e,t,n,o,a){var i=n,s=e.node(o);return t[o]=!0,r.forEach(e.neighbors(o),(function(a){r.has(t,a)||(n=h(e,t,n,a,o))})),s.low=i,s.lim=n++,a?s.parent=a:delete s.parent,n}function m(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function g(e,t,n){var o=n.v,i=n.w;t.hasEdge(o,i)||(o=n.w,i=n.v);var s=e.node(o),l=e.node(i),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var p=r.filter(t.edges(),(function(t){return u===b(e,e.node(t.v),c)&&u!==b(e,e.node(t.w),c)}));return r.minBy(p,(function(e){return a(t,e)}))}function v(e,t,n,o){var a=n.v,i=n.w;e.removeEdge(a,i),e.setEdge(o.v,o.w,{}),f(e),p(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=s(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),a=!1;o||(o=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?o.minlen:-o.minlen)}))}(e,t)}function b(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=u,u.initLowLimValues=f,u.initCutValues=p,u.calcCutValue=d,u.leaveEdge=m,u.enterEdge=g,u.exchangeEdges=v},function(e,t,n){var r=n(3);e.exports=function(e){var t=function(e){var t={},n=0;function o(a){var i=n;r.forEach(e.children(a),o),t[a]={low:i,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,a=function(e,t,n,r){var o,a,i=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),i.push(o)}while(o&&(t[o].low>l||c>t[o].lim));a=o,o=r;for(;(o=e.parent(o))!==a;)s.push(o);return{path:i.concat(s.reverse()),lca:a}}(e,t,o.v,o.w),i=a.path,s=a.lca,l=0,c=i[l],u=!0;n!==o.w;){if(r=e.node(n),u){for(;(c=i[l])!==s&&e.node(c).maxRank<r.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<i.length-1&&e.node(c=i[l+1]).minRank<=r.rank;)l++;c=i[l]}e.setParent(n,c),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(3),o=n(5);e.exports={run:function(e){var t=o.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.forEach(e.children(),(function(n){!function n(o,a){var i=e.children(o);i&&i.length&&r.forEach(i,(function(e){n(e,a+1)}));t[o]=a}(n,1)})),t}(e),a=r.max(r.values(n))-1,i=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=i}));var s=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(l){!function e(t,n,a,i,s,l,c){var u=t.children(c);if(!u.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:a}));var p=o.addBorderNode(t,"_bt"),d=o.addBorderNode(t,"_bb"),f=t.node(c);t.setParent(p,c),f.borderTop=p,t.setParent(d,c),f.borderBottom=d,r.forEach(u,(function(r){e(t,n,a,i,s,l,r);var o=t.node(r),u=o.borderTop?o.borderTop:r,f=o.borderBottom?o.borderBottom:r,h=o.borderTop?i:2*i,m=u!==f?1:s-l[c]+1;t.setEdge(p,u,{weight:h,minlen:m,nestingEdge:!0}),t.setEdge(f,d,{weight:h,minlen:m,nestingEdge:!0})})),t.parent(c)||t.setEdge(n,p,{weight:0,minlen:s+l[c]})}(e,t,i,s,a,n,l)})),e.graph().nodeRankFactor=i},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var r=n(3),o=n(5);function a(e,t,n,r,a,i){var s={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],c=o.addDummyNode(e,"border",s,n);a[t][i]=c,e.setParent(c,r),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var o=e.children(n),i=e.node(n);if(o.length&&r.forEach(o,t),r.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,l=i.maxRank+1;s<l;++s)a(e,"borderLeft","_bl",n,i,s),a(e,"borderRight","_br",n,i,s)}}))}},function(e,t,n){"use strict";var r=n(3);function o(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){a(e.edge(t))}))}function a(e){var t=e.width;e.width=e.height,e.height=t}function i(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||o(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){i(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,i),r.has(n,"y")&&i(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(e),o(e))}}},function(e,t,n){"use strict";var r=n(3),o=n(307),a=n(308),i=n(309),s=n(313),l=n(314),c=n(8).Graph,u=n(5);function p(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function d(e,t){var n=new c;r.forEach(e,(function(e){var o=e.graph().root,a=i(e,o,n,t);r.forEach(a.vs,(function(t,n){e.node(t).order=n})),l(e,n,a.vs)}))}function f(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=u.maxRank(e),n=p(e,r.range(1,t+1),"inEdges"),i=p(e,r.range(t-1,-1,-1),"outEdges"),s=o(e);f(e,s);for(var l,c=Number.POSITIVE_INFINITY,h=0,m=0;m<4;++h,++m){d(h%2?n:i,h%4>=2),s=u.buildLayerMatrix(e);var g=a(e,s);g<c&&(m=0,l=r.cloneDeep(s),c=g)}f(e,l)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),o=r.max(r.map(n,(function(t){return e.node(t).rank}))),a=r.map(r.range(o+1),(function(){return[]}));var i=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(i,(function n(o){if(r.has(t,o))return;t[o]=!0;var i=e.node(o);a[i.rank].push(o),r.forEach(e.successors(o),n)})),a}},function(e,t,n){"use strict";var r=n(3);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),a=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:o[t.w],weight:e.edge(t).weight}})),"pos")})),!0),i=1;i<n.length;)i<<=1;var s=2*i-1;i-=1;var l=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(a.forEach((function(e){var t=e.pos+i;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}},function(e,t,n){var r=n(3),o=n(310),a=n(311),i=n(312);e.exports=function e(t,n,s,l){var c=t.children(n),u=t.node(n),p=u?u.borderLeft:void 0,d=u?u.borderRight:void 0,f={};p&&(c=r.filter(c,(function(e){return e!==p&&e!==d})));var h=o(t,c);r.forEach(h,(function(n){if(t.children(n.v).length){var o=e(t,n.v,s,l);f[n.v]=o,r.has(o,"barycenter")&&(a=n,i=o,r.isUndefined(a.barycenter)?(a.barycenter=i.barycenter,a.weight=i.weight):(a.barycenter=(a.barycenter*a.weight+i.barycenter*i.weight)/(a.weight+i.weight),a.weight+=i.weight))}var a,i}));var m=a(h,s);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(m,f);var g=i(m,l);if(p&&(g.vs=r.flatten([p,g.vs,d],!0),t.predecessors(p).length)){var v=t.node(t.predecessors(p)[0]),b=t.node(t.predecessors(d)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+v.order+b.order)/(g.weight+2),g.weight+=2}return g}},function(e,t,n){var r=n(3);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var o=r.reduce(n,(function(t,n){var r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}return{v:t}}))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var o=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],o=n[e.w];r.isUndefined(t)||r.isUndefined(o)||(o.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,o(a))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(3),o=n(5);function a(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,(function(e){return r.has(e,"barycenter")})),i=n.lhs,s=r.sortBy(n.rhs,(function(e){return-e.i})),l=[],c=0,u=0,p=0;i.sort((d=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:d?t.i-e.i:e.i-t.i})),p=a(l,s,p),r.forEach(i,(function(e){p+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,u+=e.weight,p=a(l,s,p)}));var d;var f={vs:r.flatten(l,!0)};u&&(f.barycenter=c/u,f.weight=u);return f}},function(e,t,n){var r=n(3),o=n(8).Graph;e.exports=function(e,t,n){var a=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),i=new o({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var s=e.node(o),l=e.parent(o);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(i.setNode(o),i.setParent(o,l||a),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,a=i.edge(n,o),s=r.isUndefined(a)?0:a.weight;i.setEdge(n,o,{weight:e.edge(t).weight+s})})),r.has(s,"minRank")&&i.setNode(o,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))})),i}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var o,a={};r.forEach(n,(function(n){for(var r,i,s=e.parent(n);s;){if((r=e.parent(s))?(i=a[r],a[r]=s):(i=o,o=s),i&&i!==s)return void t.setEdge(i,s);s=r}}))}},function(e,t,n){"use strict";var r=n(3),o=n(5),a=n(316).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,a=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=a+o/2})),a+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(a(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph,a=n(5);function i(e,t){var n={};return r.reduce(t,(function(t,o){var a=0,i=0,s=t.length,c=r.last(o);return r.forEach(o,(function(t,u){var p=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=p?e.node(p).order:s;(p||t===c)&&(r.forEach(o.slice(i,u+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),i=o.order;!(i<a||d<i)||o.dummy&&e.node(t).dummy||l(n,r,t)}))})),i=u+1,a=d)})),o})),n}function s(e,t){var n={};function o(t,o,a,i,s){var c;r.forEach(r.range(o,a),(function(o){c=t[o],e.node(c).dummy&&r.forEach(e.predecessors(c),(function(t){var r=e.node(t);r.dummy&&(r.order<i||r.order>s)&&l(n,t,c)}))}))}return r.reduce(t,(function(t,n){var a,i=-1,s=0;return r.forEach(n,(function(r,l){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(a=e.node(c[0]).order,o(n,s,l,i,a),s=l,i=a)}o(n,s,n.length,a,t.length)})),n})),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function c(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function u(e,t,n,o){var a={},i={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){a[e]=e,i[e]=e,s[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var l=o(e);if(l.length)for(var u=((l=r.sortBy(l,(function(e){return s[e]}))).length-1)/2,p=Math.floor(u),d=Math.ceil(u);p<=d;++p){var f=l[p];i[e]===e&&t<s[f]&&!c(n,e,f)&&(i[f]=e,i[e]=a[e]=a[f],t=s[f])}}))})),{root:a,align:i}}function p(e,t,n,a,i){var s={},l=function(e,t,n,a){var i=new o,s=e.graph(),l=function(e,t,n){return function(o,a,i){var s,l=o.node(a),c=o.node(i),u=0;if(u+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?t:e)/2,u+=(c.dummy?t:e)/2,u+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(u+=n?s:-s),s=0,u}}(s.nodesep,s.edgesep,a);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(i.setNode(r),o){var a=n[o],s=i.edge(a,r);i.setEdge(a,r,Math.max(l(e,t,o),s||0))}o=t}))})),i}(e,t,n,i),c=i?"borderLeft":"borderRight";function u(e,t){for(var n=l.nodes(),r=n.pop(),o={};r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return u((function(e){s[e]=l.inEdges(e).reduce((function(e,t){return Math.max(e,s[t.v]+l.edge(t))}),0)}),l.predecessors.bind(l)),u((function(t){var n=l.outEdges(t).reduce((function(e,t){return Math.min(e,s[t.w]-l.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[t]=Math.max(s[t],n))}),l.successors.bind(l)),r.forEach(a,(function(e){s[e]=s[n[e]]})),s}function d(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var a=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+a,n),o=Math.min(t-a,o)})),n-o}))}function f(e,t){var n=r.values(t),o=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(i){var s,l=n+i,c=e[l];if(c!==t){var u=r.values(c);(s="l"===i?o-r.min(u):a-r.max(u))&&(e[l]=r.mapValues(c,(function(e){return e+s})))}}))}))}function h(e,t){return r.mapValues(e.ul,(function(n,o){if(t)return e[t.toLowerCase()][o];var a=r.sortBy(r.map(e,o));return(a[1]+a[2])/2}))}e.exports={positionX:function(e){var t,n=a.buildLayerMatrix(e),o=r.merge(i(e,n),s(e,n)),l={};r.forEach(["u","d"],(function(a){t="u"===a?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var i=("u"===a?e.predecessors:e.successors).bind(e),s=u(e,t,o,i),c=p(e,t,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),l[a+n]=c}))}));var c=d(e,l);return f(l,c),h(l,e.graph().align)},findType1Conflicts:i,findType2Conflicts:s,addConflict:l,hasConflict:c,verticalAlignment:u,horizontalCompaction:p,alignCoordinates:f,findSmallestWidthAlignment:d,balance:h}},function(e,t,n){var r=n(3),o=n(5),a=n(8).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var o="layer"+t;n.setNode(o,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.5"},function(e,t,n){var r=n(19),o=n(320);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,'#graph-canvas{width:100%;height:100%;margin:0;padding:0;font:14px "acumin-pro";user-select:none;overflow:hidden;cursor:move;background-image:linear-gradient(to right, #4F4E4F 1px, transparent 1px),linear-gradient(to bottom, #4F4E4F 1px, transparent 1px)}#graph-canvas #selection-container{pointer-events:none}#graph-canvas #selection-container .selection-box{z-index:10;position:absolute;background:rgba(72,72,196,0.5);border:blue solid 2px}#graph-canvas .port{border-radius:20px;width:20px;height:20px;align-self:center}#graph-canvas .port .img{width:100%}#graph-canvas .port img.selected{box-shadow:0 0 0 2px;border-radius:50%}#graph-canvas .port:hover,#graph-canvas .port.selected{filter:brightness(2)}#graph-canvas .portLine{height:24px;display:grid;grid-template-rows:100%}#graph-canvas .port-label{align-items:center}#graph-canvas .inputsContainer{grid-row:1;grid-column:1}#graph-canvas .inputsContainer .portLine{grid-template-columns:12px calc(100% - 15px)}#graph-canvas .inputsContainer .portLine .port-label{grid-row:1;grid-column:2}#graph-canvas .inputsContainer .portLine .port{grid-row:1;grid-column:1;transform:translateX(-12px)}#graph-canvas .outputsContainer{grid-row:1;grid-column:2}#graph-canvas .outputsContainer .portLine{grid-template-columns:calc(100% - 10px) 12px}#graph-canvas .outputsContainer .portLine .port-label{grid-row:1;grid-column:1;text-align:right}#graph-canvas .outputsContainer .portLine .port{grid-row:1;grid-column:2;transform:translateX(2px)}#graph-canvas #graph-container{width:100%;height:100%;left:0;top:0;transform-origin:left top;display:grid;grid-template-rows:100%;grid-template-columns:100%}#graph-canvas #graph-container #frame-container{overflow:visible;grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#graph-canvas #graph-container .frame-box{position:absolute;background:rgba(72,72,72,0.7);display:grid;grid-template-rows:40px calc(100% - 40px);grid-template-columns:100%;box-sizing:border-box}#graph-canvas #graph-container .frame-box.collapsed{height:auto !important;width:200px !important;z-index:3}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header{font-size:16px;grid-template-columns:calc(100% - 37px) 30px 7px}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-collapse{margin-top:-2px}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-close{display:none}#graph-canvas #graph-container .frame-box.collapsed .frame-comments.has-comments .frame-comment-span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#graph-canvas #graph-container .frame-box .frame-box-border{grid-row:1 / span 2;grid-column:1;width:100%;height:100%;border:transparent solid 4px;pointer-events:none;box-sizing:border-box}#graph-canvas #graph-container .frame-box .frame-box-header{grid-row:1;grid-column:1;background:#484848;color:white;font-size:24px;text-align:center;display:grid;grid-template-rows:100%;grid-template-columns:calc(100% - 74px) 30px 7px 30px 7px;align-content:center;overflow:hidden}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button{cursor:pointer;align-self:center;transform-origin:50% 50%;transform:scale(1);stroke:transparent;fill:white;display:grid}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button.down{transform:scale(0.9)}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-collapse{grid-column:2;grid-row:1}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-close{grid-column:4;grid-row:1}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-title{grid-column:1;grid-row:1;display:grid;height:100%;width:100%;align-self:stretch;align-items:center;margin-top:-2px}#graph-canvas #graph-container .frame-box .port-container{margin-top:6px;margin-bottom:6px;margin-left:4px;margin-right:4px;color:white;grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:50% 50%;z-index:2}#graph-canvas #graph-container .frame-box .frame-comments.has-comments{display:grid;grid-row:2;grid-column:1;padding:0 10px;font-style:italic;word-wrap:break-word}#graph-canvas #graph-container .frame-box.selected .frame-box-border{border-color:white}#graph-canvas #graph-container .frame-box .right-handle{grid-area:1 / 2 / 3 / 2;width:4px;background-color:transparent;cursor:ew-resize}#graph-canvas #graph-container .frame-box .right-handle::after{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px;cursor:ew-resize}#graph-canvas #graph-container .frame-box .right-handle.collapsed{cursor:pointer}#graph-canvas #graph-container .frame-box .top-right-corner-handle{background-color:transparent;height:4px;z-index:21;cursor:ne-resize;width:4px;margin-left:-6px}#graph-canvas #graph-container .frame-box .top-right-corner-handle::after{background-color:transparent;cursor:ne-resize;margin-left:unset;top:-4px;height:10px;width:10px}#graph-canvas #graph-container .frame-box .bottom-right-corner-handle{background-color:transparent;height:0px;z-index:21;cursor:nw-resize;grid-area:4 / 2 / 4 / 2;margin-left:-2px}#graph-canvas #graph-container .frame-box .bottom-right-corner-handle::after{background-color:transparent;height:10px;cursor:nw-resize;top:unset;bottom:-4px;width:10px}#graph-canvas #graph-container .frame-box .left-handle{grid-area:1 / 1 / 3 / 1;width:4px;background-color:transparent;cursor:ew-resize}#graph-canvas #graph-container .frame-box .left-handle::before{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px}#graph-canvas #graph-container .frame-box .top-left-corner-handle{background-color:transparent;height:4px;z-index:21;cursor:nw-resize;width:4px;margin-left:-4px}#graph-canvas #graph-container .frame-box .top-left-corner-handle::before{background-color:transparent;cursor:nw-resize;margin-left:unset;top:-4px;height:10px;width:10px}#graph-canvas #graph-container .frame-box .bottom-left-corner-handle{background-color:transparent;height:0px;z-index:21;cursor:sw-resize;grid-area:4 / 1 / 4 / 1}#graph-canvas #graph-container .frame-box .bottom-left-corner-handle::before{background-color:transparent;height:10px;cursor:sw-resize;top:unset;bottom:-4px;width:10px}#graph-canvas #graph-container .frame-box .top-handle{grid-area:1 / 1 / 1 / 1;background-color:transparent;height:4px;cursor:ns-resize}#graph-canvas #graph-container .frame-box .top-handle::before{content:"";width:100%;position:absolute;top:-4px;bottom:100%;right:0;left:0;margin-bottom:-8px;cursor:ns-resize;height:8px}#graph-canvas #graph-container .frame-box .bottom-handle{grid-area:3 / 1 / 3 / 1;background-color:transparent;height:4px;cursor:ns-resize}#graph-canvas #graph-container .frame-box .bottom-handle::after{content:"";width:100%;position:absolute;top:100%;bottom:0;right:0;left:0;margin-top:-8px;cursor:ns-resize;height:12px}#graph-canvas #graph-container .frame-box.collapsed .top-handle,#graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .right-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .left-handle,#graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle{cursor:default}#graph-canvas #graph-container .frame-box.collapsed .right-handle::after,#graph-canvas #graph-container .frame-box.collapsed .bottom-handle::after,#graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle::after,#graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle::after{cursor:default}#graph-canvas #graph-container .frame-box.collapsed .left-handle::before,#graph-canvas #graph-container .frame-box.collapsed .top-handle::before,#graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle::before,#graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle::before{cursor:default}#graph-canvas #graph-container #graph-svg-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}#graph-canvas #graph-container #graph-svg-container .link{stroke-width:4px}#graph-canvas #graph-container #graph-svg-container .link.selected{stroke:white !important;stroke-dasharray:10, 2}#graph-canvas #graph-container #graph-svg-container .link.hidden{display:none}#graph-canvas #graph-container #graph-svg-container .selection-link{pointer-events:all;stroke-width:16px;opacity:0;transition:opacity 75ms;stroke:transparent;cursor:pointer}#graph-canvas #graph-container #graph-svg-container .selection-link.hidden{display:none}#graph-canvas #graph-container #graph-svg-container .selection-link:hover,#graph-canvas #graph-container #graph-svg-container .selection-link.selected{stroke:white !important;opacity:0.4}#graph-canvas #graph-container #graph-canvas-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#graph-canvas #graph-container #graph-canvas-container .visual{z-index:4;width:200px;position:absolute;left:0;top:0;background:gray;border:4px solid black;border-radius:12px;display:grid;grid-template-rows:30px auto;grid-template-columns:100%;color:white}#graph-canvas #graph-container #graph-canvas-container .visual.hidden{display:none}#graph-canvas #graph-container #graph-canvas-container .visual .comments{position:absolute;top:-50px;width:200px;height:45px;overflow:hidden;font-style:italic;opacity:0.8;display:grid;align-items:flex-end;pointer-events:none}#graph-canvas #graph-container #graph-canvas-container .visual .selection-border{grid-row:1 / span 3;grid-column:1;margin:-4px;transition:border-color 100ms;border:4px solid black;border-radius:12px}#graph-canvas #graph-container #graph-canvas-container .visual.selected .selection-border{border-color:white}#graph-canvas #graph-container #graph-canvas-container .visual .header{grid-row:1;grid-column:1;border:4px solid black;border-top-right-radius:7px;border-top-left-radius:7px;font-size:16px;text-align:center;margin-top:-1px;margin-left:-1px;margin-right:-1px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:black;color:white}#graph-canvas #graph-container #graph-canvas-container .visual .header.constant{border-color:#464348;background:#464348}#graph-canvas #graph-container #graph-canvas-container .visual .header.inspector{border-color:#66491b;background:#66491b}#graph-canvas #graph-container #graph-canvas-container .visual .connections{grid-row:2;grid-column:1;display:grid;grid-template-columns:50% 50%}#graph-canvas #graph-container #graph-canvas-container .visual .content{min-height:20px;grid-row:3;grid-column:1}#graph-canvas #graph-container #graph-canvas-container .visual .content.input-block{grid-row:2;min-height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px 5px;display:grid;align-content:center}#graph-canvas #graph-container #graph-canvas-container .visual .content.input-block.small-font{font-size:17px}#graph-canvas #graph-container #graph-canvas-container .visual .content.output-block{min-height:0px;height:5px}#graph-canvas #graph-container #graph-canvas-container .visual .content.clamp-block{grid-row:2;height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}#graph-canvas #graph-container #graph-canvas-container .visual .content.gradient-block{grid-row:2;height:34px}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block{grid-row:3;height:140px;width:140px;overflow:hidden;border-bottom-left-radius:7px;border:black 4px solid;border-left:0px;border-bottom:0px}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img{width:100%;height:100%;pointer-events:none}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img.empty{display:none}#graph-canvas #graph-container #graph-canvas-container .visual .content.regular-texture-block{margin-top:-115px}#graph-canvas #graph-container #graph-canvas-container .visual .content.remap-block{height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}#graph-canvas #graph-container #graph-canvas-container .visual .content.trigonometry-block{grid-row:2;height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}\n',""]),e.exports=t},function(e,t,n){var r=n(19),o=n(322);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,'#propertyTab{color:white;background:#333333}#propertyTab #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#propertyTab #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#propertyTab #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#propertyTab .range{-webkit-appearance:none;width:120px;height:6px;background:#d3d3d3;border-radius:5px;outline:none;opacity:0.7;-webkit-transition:.2s;transition:opacity .2s}#propertyTab .range:hover{opacity:1}#propertyTab .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#propertyTab .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#propertyTab input[type="color"]{-webkit-appearance:none;border:1px solid rgba(255,255,255,0.5);padding:0;width:30px;height:20px}#propertyTab input[type="color"]::-webkit-color-swatch-wrapper{padding:0}#propertyTab input[type="color"]::-webkit-color-swatch{border:none}#propertyTab .sliderLine{padding-left:5px;height:30px;display:grid;grid-template-rows:100%;grid-template-columns:1fr 50px auto}#propertyTab .sliderLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .sliderLine .slider{grid-column:3;grid-row:1;margin-right:5px;width:90%;display:flex;align-items:center}#propertyTab .sliderLine .floatLine{grid-column:2;padding-left:5px}#propertyTab .sliderLine .floatLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .sliderLine .floatLine .short{grid-column:1;display:flex;align-items:center}#propertyTab .sliderLine .floatLine .short input{width:35px}#propertyTab .sliderLine .floatLine .short input::-webkit-outer-spin-button,#propertyTab .sliderLine .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#propertyTab .sliderLine .floatLine .short input[type=number]{-moz-appearance:textfield}#propertyTab .textInputLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr 120px auto}#propertyTab .textInputLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .textInputLine .value{display:flex;align-items:center;grid-column:2}#propertyTab .textInputLine .value input{width:calc(100% - 5px)}#propertyTab .textInputArea{padding-left:5px;height:50px;display:grid;grid-template-columns:1fr 120px}#propertyTab .textInputArea .label{grid-column:1;display:flex;align-items:center}#propertyTab .textInputArea .value{display:flex;align-items:center;grid-column:2}#propertyTab .textInputArea .value textarea{width:calc(150% - 5px);margin-left:-50%;height:40px}#propertyTab .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#propertyTab .paneContainer .paneList{border-left:3px solid transparent}#propertyTab .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,0.8)}#propertyTab .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#propertyTab .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;transition:opacity 250ms;pointer-events:none}#propertyTab .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#propertyTab .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#propertyTab .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#propertyTab .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#propertyTab .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#propertyTab .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#propertyTab .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#propertyTab .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#propertyTab .color-picker{height:calc(100% - 8px);margin:4px;width:calc(100% - 8px)}#propertyTab .color-picker .color-rect{height:calc(100% - 4px);border:2px white solid;cursor:pointer;min-height:18px}#propertyTab .color-picker .color-picker-cover{position:fixed;top:0px;right:0px;bottom:0px;left:0px}#propertyTab .color-picker .color-picker-float{z-index:2;position:absolute}#propertyTab .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:20px 30px 40px auto 20px 30px;padding-top:5px;padding-left:5px;padding-bottom:5px}#propertyTab .gradient-step .step{grid-row:1;grid-column:1}#propertyTab .gradient-step .color{grid-row:1;grid-column:2;cursor:pointer}#propertyTab .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:3;text-align:right;margin-right:5px}#propertyTab .gradient-step .step-slider{grid-row:1;grid-column:4;display:grid;justify-content:stretch;align-content:center;margin-right:-5px;padding-left:12px}#propertyTab .gradient-step .step-slider input{width:90%}#propertyTab .gradient-step .gradient-copy{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#propertyTab .gradient-step .gradient-copy .img{height:20px;width:20px}#propertyTab .gradient-step .gradient-copy .img:hover{cursor:pointer}#propertyTab .gradient-step .gradient-delete{grid-row:1;grid-column:6;display:grid;align-content:center;justify-content:center}#propertyTab .gradient-step .gradient-delete .img{height:20px;width:20px}#propertyTab .gradient-step .gradient-delete .img:hover{cursor:pointer}#propertyTab .floatLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr 120px}#propertyTab .floatLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .floatLine .value{grid-column:2;display:flex;align-items:center}#propertyTab .floatLine .value input{width:110px}#propertyTab .floatLine .short{grid-column:2;display:flex;align-items:center}#propertyTab .floatLine .short input{width:27px}#propertyTab .floatLine .short input::-webkit-outer-spin-button,#propertyTab .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#propertyTab .floatLine .short input[type=number]{-moz-appearance:textfield}#propertyTab .vector3Line{padding-left:5px;display:grid}#propertyTab .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:30px}#propertyTab .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:0.8}#propertyTab .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#propertyTab .vector3Line .secondLine .no-right-margin{margin-right:0}#propertyTab .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#propertyTab .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#propertyTab .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#propertyTab .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch;padding-bottom:5px}#propertyTab .buttonLine input[type="file"]{display:none}#propertyTab .buttonLine .file-upload{background:#222222;border:1px solid #337ab7;margin:5px 10px;color:white;padding:4px 5px;padding-top:0px;opacity:0.9;cursor:pointer;text-align:center}#propertyTab .buttonLine .file-upload:hover{opacity:1.0}#propertyTab .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:0.5 0.5}#propertyTab .buttonLine button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#propertyTab .buttonLine button:hover{opacity:1.0}#propertyTab .buttonLine button:active{background:#282828}#propertyTab .buttonLine button:focus{border:1px solid #337ab7;outline:0px}#propertyTab .checkBoxLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .checkBoxLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .checkBoxLine .checkBox{grid-column:2;display:flex;align-items:center}#propertyTab .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}#propertyTab .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}#propertyTab .checkBoxLine .checkBox .lbl:active:after{transform:scale(1.15, 0.85)}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label{background:#337ab7}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after{left:20px;background:#164975}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label.disabled{background:#164975;cursor:pointer}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label.disabled:after{left:20px;background:#555;cursor:pointer}#propertyTab .checkBoxLine .checkBox .cbx ~ label.disabled{background:#555;cursor:pointer}#propertyTab .checkBoxLine .checkBox .hidden{display:none}#propertyTab .listLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .listLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .listLine .options{grid-column:2;display:flex;align-items:center;margin-right:5px}#propertyTab .listLine .options select{width:115px}#propertyTab .color3Line{padding-left:5px;display:grid}#propertyTab .color3Line .firstLine{height:30px;display:grid;grid-template-columns:1fr auto 20px 20px}#propertyTab .color3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .color3Line .firstLine .color3{grid-column:2;width:50px;display:flex;align-items:center}#propertyTab .color3Line .firstLine .color3 input{margin-right:5px}#propertyTab .color3Line .firstLine .copy{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .color3Line .firstLine .copy img{height:100%;width:20px}#propertyTab .color3Line .firstLine .expand{grid-column:4;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .color3Line .firstLine .expand img{height:100%;width:20px}#propertyTab .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#propertyTab .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#propertyTab .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#propertyTab .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#propertyTab .textLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .textLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .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}#propertyTab .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}#propertyTab .textLine .value.check{color:green}#propertyTab .textLine .value.uncheck{color:red}\n',""]),e.exports=t},function(e,t,n){var r=n(19),o=n(324);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,"#log-console{background:#333333;height:120px;box-sizing:border-box;margin:0;padding:10px;width:100%;overflow:hidden;overflow-y:auto}#log-console .log{color:white;font-size:14px;font-family:'Courier New', Courier, monospace}#log-console .log.error{color:red}\n",""]),e.exports=t},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='27' height='27'%3E %3C!-- Generator: Sketch 64 (93537) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_window_new_20_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-System-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_window_new_20_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M14.5,3 C15.825472,3 16.9100378,4.03153766 16.9946823,5.33562452 L17,5.5 L17,12.5 C17,13.6248 16.2572,14.5761 15.2354,14.8901 C15.0566136,16.0311636 14.105895,16.9162833 12.934399,16.9943911 L12.7656,17 L6.5,17 C4.63143333,17 3.10487333,15.5357256 3.00517885,13.6920355 L3,13.5 L3,7.26562 C3,6.02104 3.90947,4.98887 5.10007,4.79744 C5.38765316,3.81341789 6.26401881,3.08064388 7.32204931,3.00623559 L7.5,3 L14.5,3 Z M5,5.85098 C4.46221538,6.04106 4.0651929,6.52910923 4.00729467,7.11674983 L4,7.26562 L4,13.5 C4,14.825472 5.03153766,15.9100378 6.33562452,15.9946823 L6.5,16 L12.7656,16 C13.3684615,16 13.8883314,15.6443456 14.12669,15.1313988 L14.1803,15 L7.5,15 C6.1745184,15 5.08996147,13.9684531 5.00531769,12.6643744 L5,12.5 L5,5.85098 Z M14.5,4 L7.5,4 C6.67157,4 6,4.67157 6,5.5 L6,12.5 C6,13.3284 6.67157,14 7.5,14 L14.5,14 C15.3284,14 16,13.3284 16,12.5 L16,5.5 C16,4.67157 15.3284,4 14.5,4 Z M13.4999975,6 C13.7454219,6 13.949598,6.17687704 13.9919405,6.41012499 L13.9999975,6.5 L13.9999975,10.4844 C13.9999975,10.7605 13.7761,10.9844 13.4999975,10.9844 C13.2545775,10.9844 13.050398,10.8074914 13.0080546,10.5742645 L12.9999975,10.4844 L12.9999975,7.70711 L8.85355,11.8536 C8.65829,12.0488 8.34171,12.0488 8.14645,11.8536 C7.97287667,11.68 7.95359074,11.410558 8.08859222,11.2156598 L8.14645,11.1464 L12.2929,7 L9.51562,7 C9.23948,7 9.01562,6.77614 9.01562,6.5 C9.01562,6.25454222 9.19249704,6.0503921 9.42574499,6.00805575 L9.51562,6 L13.4999975,6 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_color_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_color_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M3.83904058,5.85749561 C6.78004581,1.94188971 12.8686707,0.802505202 17.2029394,3.497377 C21.4827525,6.15839057 23.0567972,11.2744655 21.303866,16.0747407 C19.648689,20.6073231 15.2875295,22.403209 12.1442101,20.1231428 C10.9667425,19.2690444 10.5102901,18.1984035 10.2896576,16.4593132 L10.1842745,15.4713913 L10.1388589,15.073954 C10.0162342,14.1399065 9.82780748,13.7214296 9.43453605,13.5022264 C8.89894535,13.2036966 8.54231757,13.1967226 7.83905282,13.4692784 L7.48794193,13.6148779 L7.30920754,13.6928218 C6.29543196,14.1331038 5.62104161,14.2877923 4.76804588,14.1090543 L4.56779442,14.0618665 L4.40426138,14.0152691 C1.61529547,13.1510586 1.20220653,9.36813303 3.83904058,5.85749561 Z M4.8232597,12.5739125 L4.94616428,12.610372 L5.080113,12.6412161 C5.51918878,12.7281665 5.89444039,12.6556749 6.51713486,12.3993955 L7.11930681,12.1421347 C8.32144994,11.6492191 9.1045463,11.6010233 10.1648305,12.1920088 C11.0824191,12.7034581 11.4400583,13.4895978 11.62247,14.8516511 L11.6756637,15.310802 L11.729873,15.8425189 L11.7770095,16.2649431 C11.9490842,17.6262078 12.2619162,18.3554553 13.024955,18.90894 C15.3002886,20.5593963 18.5593937,19.2173263 19.8948725,15.5602143 C21.411142,11.4080201 20.0689941,7.04567303 16.4109117,4.77122636 C12.736718,2.48676231 7.51248742,3.46438986 5.03840796,6.75833849 C2.96361994,9.52067707 3.21809532,12.0378944 4.8232597,12.5739125 Z M16.0477462,10.5795744 C15.8690689,9.91274179 16.264797,9.2273206 16.9316297,9.04864333 C17.5984623,8.86996607 18.2838835,9.26569418 18.4625608,9.93252681 C18.641238,10.5993594 18.2455099,11.2847806 17.5786773,11.4634579 C16.9118447,11.6421352 16.2264235,11.2464071 16.0477462,10.5795744 Z M16.5423361,14.0682389 C16.3636589,13.4014063 16.759387,12.7159851 17.4262196,12.5373078 C18.0930522,12.3586306 18.7784734,12.7543587 18.9571507,13.4211913 C19.135828,14.0880239 18.7400999,14.7734451 18.0732672,14.9521224 C17.4064346,15.1307997 16.7210134,14.7350716 16.5423361,14.0682389 Z M14.0692386,7.57689062 C13.8905613,6.91005799 14.2862894,6.2246368 14.9531221,6.04595953 C15.6199547,5.86728227 16.3053759,6.26301038 16.4840531,6.92984301 C16.6627304,7.59667564 16.2670023,8.28209683 15.6001697,8.4607741 C14.933337,8.63945136 14.2479158,8.24372325 14.0692386,7.57689062 Z M14.0407569,16.5752747 C13.8620796,15.9084421 14.2578077,15.2230209 14.9246403,15.0443437 C15.591473,14.8656664 16.2768942,15.2613945 16.4555714,15.9282271 C16.6342487,16.5950598 16.2385206,17.280481 15.571688,17.4591582 C14.9048553,17.6378355 14.2194341,17.2421074 14.0407569,16.5752747 Z M10.5438339,6.60529725 C10.3651566,5.93846462 10.7608847,5.25304343 11.4277174,5.07436616 C12.09455,4.8956889 12.7799712,5.29141701 12.9586484,5.95824964 C13.1373257,6.62508227 12.7415976,7.31050346 12.074765,7.48918073 C11.4079323,7.66785799 10.7225111,7.27212988 10.5438339,6.60529725 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_pause_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_pause_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M8.25,2 C9.21649831,2 10,2.78350169 10,3.75 L10,20.25 C10,21.2164983 9.21649831,22 8.25,22 L4.75,22 C3.78350169,22 3,21.2164983 3,20.25 L3,3.75 C3,2.78350169 3.78350169,2 4.75,2 L8.25,2 Z M19.25,2 C20.2164983,2 21,2.78350169 21,3.75 L21,20.25 C21,21.2164983 20.2164983,22 19.25,22 L15.75,22 C14.7835017,22 14,21.2164983 14,20.25 L14,3.75 C14,2.78350169 14.7835017,2 15.75,2 L19.25,2 Z M8.25,3.5 L4.75,3.5 C4.61192881,3.5 4.5,3.61192881 4.5,3.75 L4.5,20.25 C4.5,20.3880712 4.61192881,20.5 4.75,20.5 L8.25,20.5 C8.38807119,20.5 8.5,20.3880712 8.5,20.25 L8.5,3.75 C8.5,3.61192881 8.38807119,3.5 8.25,3.5 Z M19.25,3.5 L15.75,3.5 C15.6119288,3.5 15.5,3.61192881 15.5,3.75 L15.5,20.25 C15.5,20.3880712 15.6119288,20.5 15.75,20.5 L19.25,20.5 C19.3880712,20.5 19.5,20.3880712 19.5,20.25 L19.5,3.75 C19.5,3.61192881 19.3880712,3.5 19.25,3.5 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_play_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_play_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M6.33994976,2.27500912 C5.25284495,1.67304649 3.88358525,2.06633193 3.28162262,3.15343674 C3.09690734,3.48702035 3,3.86207592 3,4.2433865 L3,19.7591388 C3,21.0017795 4.00735931,22.0091388 5.25,22.0091388 C5.63140051,22.0091388 6.00654154,21.9121858 6.34018202,21.7273876 L20.3484443,13.9684314 C21.4354781,13.3663405 21.8286019,11.9970344 21.226511,10.9100006 C21.0219396,10.540661 20.7175758,10.2363331 20.348212,10.0318053 L6.33994976,2.27500912 Z M19.9143452,11.6367887 C20.1150422,11.9991333 19.9840009,12.4555686 19.6216563,12.6562656 L5.61339401,20.4152217 C5.50218051,20.4768211 5.3771335,20.5091388 5.25,20.5091388 C4.83578644,20.5091388 4.5,20.1733524 4.5,19.7591388 L4.5,4.2433865 C4.5,4.11628298 4.53230245,3.99126445 4.59387421,3.88006992 C4.79452842,3.51770165 5.25094832,3.3866065 5.61331659,3.58726071 L19.6215789,11.3440569 C19.7447001,11.4122328 19.8461547,11.5136755 19.9143452,11.6367887 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8.62,11.2H3.92l3-3a.75.75,0,0,0,0-1.06.74.74,0,0,0-1.06,0L2.24,10.76a1.67,1.67,0,0,0,0,2.37l3.58,3.58a.75.75,0,0,0,1.06,0,.75.75,0,0,0,0-1.06l-3-3h4.7a.75.75,0,1,0,0-1.5Z' style='fill:white'/%3E%3Cpath d='M21.76,10.76,18.18,7.18a.74.74,0,0,0-1.06,0,.75.75,0,0,0,0,1.06l3,3h-4.7a.75.75,0,1,0,0,1.5h4.7l-3,3a.75.75,0,0,0,0,1.06.74.74,0,0,0,.53.22.73.73,0,0,0,.53-.22l3.58-3.58A1.67,1.67,0,0,0,21.76,10.76Z' style='fill:white'/%3E%3Cpath d='M12,3.64a.76.76,0,0,0-.75.75V19.61a.75.75,0,0,0,1.5,0V4.39A.75.75,0,0,0,12,3.64Z' style='fill:white'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M21.12,18,16.28,8.35a1.34,1.34,0,0,0-1.21-.76,1.36,1.36,0,0,0-1,.42h0l-.87-1.74A1.35,1.35,0,0,0,12,5.52a1.32,1.32,0,0,0-1,.42h0l-.87-1.75a1.36,1.36,0,0,0-1.22-.75,1.34,1.34,0,0,0-1.21.75L2.88,13.86a1.36,1.36,0,0,0,1.22,2H6l0,.11a1.36,1.36,0,0,0,1.21,2H9.07L9,18a1.35,1.35,0,0,0,1.21,2H19.9a1.35,1.35,0,0,0,1.22-2ZM6.75,14.33H4.32L8.93,5.11l1.22,2.43Zm3.07,2.08H7.39L12,7.19l1.22,2.43Zm.64,2.07,4.61-9.21,4.61,9.21Z' style='fill:white'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_lightbulb_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_lightbulb_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12.000008,2.00139734 C16.0040628,2.00139734 19.249992,5.24733208 19.249992,9.25139734 C19.249992,11.3474567 18.3493333,13.2711054 16.5869535,14.9933011 C16.5100054,15.0685004 16.450441,15.1590617 16.4118457,15.2586031 L16.380373,15.3609016 L15.2492957,20.256497 C15.0265913,21.2204195 14.2034707,21.9187611 13.2302558,21.9933796 L13.0570456,22 L10.9432689,22 C9.95374997,22 9.08791486,21.3549492 8.79629808,20.4232534 L8.75088874,20.2559339 L7.62132399,15.3611533 C7.58904306,15.2212595 7.51728321,15.0935695 7.41456824,14.9932517 C5.73516207,13.3530399 4.83779011,11.5301519 4.75613429,9.54965138 L4.750008,9.25139734 L4.75388322,9.01208292 C4.88014853,5.11879041 8.07602134,2.00139734 12.000008,2.00139734 Z M14.115008,18.4993973 L9.884008,18.4993973 L10.2124755,19.9186446 C10.2831529,20.2249131 10.5356676,20.4507962 10.8400612,20.4929101 L10.9432689,20.5 L13.0570456,20.5 C13.3712985,20.5 13.6481364,20.3048226 13.757662,20.0177756 L13.7877956,19.9188323 L14.115008,18.4993973 Z M12.000008,3.50139734 C8.89821922,3.50139734 6.37007083,5.95741111 6.25416008,9.03084139 L6.250008,9.25139734 L6.25672343,9.52840679 C6.33286953,11.0917695 7.05722352,12.5475342 8.46263227,13.9201432 C8.72676013,14.1781068 8.92266257,14.4964075 9.03423135,14.8463815 L9.08291336,15.0238752 L9.538008,16.9993973 L14.461008,16.9993973 L14.9188729,15.023237 C15.0019011,14.6638694 15.1717664,14.3313677 15.4124215,14.0542893 L15.5385739,13.9205009 C16.9431998,12.547902 17.6671738,11.0920338 17.7432801,9.5284475 L17.749992,9.25139734 L17.7458399,9.03084154 C17.6299293,5.9574132 15.1017833,3.50139734 12.000008,3.50139734 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7.13,13.61a.76.76,0,0,0,.06,1.06,1.6,1.6,0,0,1,.51.88l1,4.68A2.26,2.26,0,0,0,10.92,22h2.16a2.26,2.26,0,0,0,2.19-1.76l1-4.68a1.6,1.6,0,0,1,.51-.88,7.18,7.18,0,0,0,2.42-5,7.26,7.26,0,0,0-2-5.4A7.13,7.13,0,0,0,12,2,6.9,6.9,0,0,0,7.13,3.94a.75.75,0,1,0,1,1.1A5.35,5.35,0,0,1,12,3.51a5.67,5.67,0,0,1,4.16,1.8,5.8,5.8,0,0,1,1.58,4.28,5.7,5.7,0,0,1-1.93,3.95,3.18,3.18,0,0,0-1,1.69L14.45,17H9.55l-.38-1.77a3.16,3.16,0,0,0-1-1.68A.75.75,0,0,0,7.13,13.61Zm3.06,6.29-.3-1.4h4.23l-.31,1.4a.76.76,0,0,1-.73.59H10.92A.76.76,0,0,1,10.19,19.9Z' style='fill:white'/%3E%3Cpath d='M2.23,8.86,4.87,6.23a.75.75,0,0,1,1.06,0,.74.74,0,0,1,0,1.06L4.58,8.64h7.11a.75.75,0,0,1,0,1.5H4.58l1.35,1.35a.74.74,0,0,1,0,1.06.75.75,0,0,1-.53.22.74.74,0,0,1-.53-.22L2.23,9.92a.75.75,0,0,1,0-1.06Z' style='fill:white'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.81,13.55a3.16,3.16,0,0,0-1,1.68L14.45,17H9.55l-.38-1.77a3.18,3.18,0,0,0-1-1.69A5.7,5.7,0,0,1,6.26,9.59,5.8,5.8,0,0,1,7.84,5.31,5.67,5.67,0,0,1,12,3.51,5.35,5.35,0,0,1,15.85,5a.75.75,0,0,0,1-1.1A6.9,6.9,0,0,0,12,2,7.13,7.13,0,0,0,6.75,4.28a7.26,7.26,0,0,0-2,5.4,7.18,7.18,0,0,0,2.42,5,1.6,1.6,0,0,1,.51.88l1,4.68A2.26,2.26,0,0,0,10.92,22h2.16a2.26,2.26,0,0,0,2.19-1.76l1-4.68a1.6,1.6,0,0,1,.51-.88.76.76,0,0,0,.06-1.06A.75.75,0,0,0,15.81,13.55Zm-2.73,6.94H10.92a.76.76,0,0,1-.73-.59l-.31-1.4h4.23l-.3,1.4A.76.76,0,0,1,13.08,20.49Z' style='fill:white'/%3E%3Cpath d='M21.77,8.86,19.13,6.23a.75.75,0,0,0-1.06,0,.74.74,0,0,0,0,1.06l1.35,1.35H12.31a.75.75,0,0,0,0,1.5h7.11l-1.35,1.35a.74.74,0,0,0,0,1.06.75.75,0,0,0,.53.22.74.74,0,0,0,.53-.22l2.64-2.63a.75.75,0,0,0,0-1.06Z' style='fill:white'/%3E%3C/svg%3E"},function(e,t,n){var r=n(19),o=n(335);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},function(e,t,n){(t=n(20)(!1)).push([e.i,'#node-editor-graph-root{display:grid;grid-template-rows:calc(100% - 120px) 120px;height:100%;width:100%;background:#464646;font:14px "acumin-pro"}.wait-screen{display:grid;justify-content:center;align-content:center;height:100%;width:100%;background:#464646;opacity:0.95;color:white;font:24px "acumin-pro";position:absolute;top:0;left:0}.wait-screen.hidden{visibility:hidden}#nodeList{grid-row:1 / span 2;grid-column:1}#leftGrab{grid-row:1 / span 2;grid-column:2;cursor:ew-resize}#rightGrab{grid-row:1 / span 2;grid-column:4;cursor:ew-resize}.diagram-container{grid-row:1;grid-column:3;background:#5f5b60;width:100%;height:100%}.diagram-container .diagram{display:none;width:100%;height:100%}.right-panel{grid-row:1 / span 2;grid-column:5;display:grid;grid-template-rows:1fr 40px auto 40px;grid-template-columns:100%;height:100%;overflow-y:auto}.right-panel #propertyTab{grid-row:1;grid-column:1}.right-panel .button{display:grid;justify-content:center;align-content:center;height:auto;width:calc(100% / 7);cursor:pointer}.right-panel .button:hover{background:#337ab7;color:white;opacity:0.8}.right-panel .button.selected{background:#337ab7;color:white}.right-panel .button.align{justify-content:stretch;text-align:center}.right-panel #preview-mesh-bar{grid-row:2;grid-column:1;display:grid;grid-template-columns:auto 1fr 40px 40px 40px;align-items:center;font-size:18px;background-color:#555555}.right-panel #preview-mesh-bar #file-picker{display:none}.right-panel #preview-mesh-bar .listLine{grid-column:1;height:40px;display:grid;grid-template-columns:0px 1fr}.right-panel #preview-mesh-bar .listLine .label{grid-column:1;display:flex;align-items:center;font-size:14px}.right-panel #preview-mesh-bar .listLine .options{grid-column:2;display:flex;align-items:center;margin-left:5px}.right-panel #preview-mesh-bar .listLine .options select{width:115px}.right-panel #preview-mesh-bar .button{color:#ffffff;width:40px;height:40px;transform-origin:50% 50%}.right-panel #preview-mesh-bar .button:active{transform:scale(0.9)}.right-panel #preview-mesh-bar .button:hover{background:#3f3461}.right-panel #preview-mesh-bar .button.selected{background:#9379e6}.right-panel #preview-mesh-bar .button img{height:40px;width:100%}.right-panel #preview-mesh-bar #play-button{grid-column:3}.right-panel #preview-mesh-bar #color-picker-button{grid-column:4;display:grid;grid-template-columns:100%;grid-template-rows:100%}.right-panel #preview-mesh-bar #color-picker-button img{height:40px;width:30px}.right-panel #preview-mesh-bar #color-picker-button #color-picker-image{padding-left:5px;padding-bottom:38px}.right-panel #preview-mesh-bar #color-picker-button #color-picker{transform:scale(0);grid-column:1;grid-row:1}.right-panel #preview-mesh-bar #color-picker-button #color-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview-mesh-bar #preview-new-window{grid-column:5}.right-panel #preview-mesh-bar select{background-color:#a3a3a3;color:#333333}.right-panel #preview-config-bar{grid-row:4;grid-column:1;display:grid;grid-template-columns:40px 40px 40px 1fr 40px 40px;color:white;align-items:center;font-size:18px}.right-panel #preview-config-bar .button{width:40px;grid-row:1;height:40px;transform-origin:50% 50%}.right-panel #preview-config-bar .button:hover{background:#3f3461}.right-panel #preview-config-bar .button.selected{background:#9379e6}.right-panel #preview-config-bar .button:active{transform:scale(0.9)}.right-panel #preview-config-bar .button img{height:auto;width:100%}.right-panel #preview-config-bar .button.back-face{grid-column:6}.right-panel #preview-config-bar .button.depth-pass{grid-column:5 / 6}.right-panel #preview-config-bar .button.hemispheric-light{grid-column:3 / 4}.right-panel #preview-config-bar .button.direction-light-1{grid-column:2 / 3}.right-panel #preview-config-bar .button.direction-light-0{grid-column:1 / 2}.right-panel #preview{border-top:1px solid #555;grid-row:3;grid-column:1;width:100%;display:grid;outline:0 !important;user-select:none}.right-panel #preview #preview-canvas{width:100%;height:100%;outline:0 !important;grid-row:1;grid-column:1}.right-panel #preview .waitPanel{width:100%;height:100%;grid-row:1;grid-column:1;color:white;font-size:18px;align-content:center;justify-content:center;background:rgba(20,20,20,0.95);z-index:10;display:grid;transition:opacity 250ms}.right-panel #preview .waitPanel.hidden{opacity:0;pointer-events:none}.blocker{visibility:hidden;position:absolute;width:calc(100% - 40px);height:100%;top:0;left:0;background:rgba(20,20,20,0.95);font-family:"acumin-pro";color:white;font-size:24px;display:grid;align-content:center;justify-content:center;user-select:none;padding:20px;text-align:center}#log-console{grid-row:2;grid-column:3}.dialog-container{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0.6);display:grid;font-family:"acumin-pro";top:0}.dialog-container .dialog{align-self:center;justify-self:center;min-height:140px;max-width:400px;border-radius:10px;background:white;display:grid;grid-template-columns:100%;grid-template-rows:calc(100% - 50px) 50px}.dialog-container .dialog .dialog-message{grid-row:1;grid-column:1;margin-top:20px;padding:10px;font-size:18px;color:black}.dialog-container .dialog .dialog-buttons{grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:100%;color:white}.dialog-container .dialog .dialog-buttons .dialog-button-ok{cursor:pointer;justify-self:center;background:green;min-width:80px;justify-content:center;display:grid;align-content:center;align-self:center;height:35px;border-radius:10px}.dialog-container .dialog .dialog-buttons .dialog-button-ok:hover{opacity:0.8}.dialog-container .dialog .dialog-buttons .dialog-button-ok.error{background:red}\n',""]),e.exports=t}])}));
|