1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- !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=126)}([function(e,t,n){"use strict";e.exports=n(127)},function(t,n){t.exports=e},function(e,t,n){var r;window,r=function(e,t){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,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=45)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n){var r=e.call(this,n)||this;return r.className=t,r}return o(t,e),t.prototype.bem=function(e){return(this.props.baseClass||this.className)+e+" "},t.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")},t.prototype.getProps=function(){return i({},this.props.extraProps||{},{className:this.getClassName()})},t}(n(1).Component);t.BaseWidget=a},function(e,t){function n(e){for(var t=[[e.x,e.y]];e.parent;)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function r(e,t,n,r){var o,i,a,s,l,u,c=Math.abs,p=[];for(o=e<n?1:-1,i=t<r?1:-1,l=(a=c(n-e))-(s=c(r-t));p.push([e,t]),e!==n||t!==r;)(u=2*l)>-s&&(l-=s,e+=o),u<a&&(l+=a,t+=i);return p}t.backtrace=n,t.biBacktrace=function(e,t){var r=n(e),o=n(t);return r.concat(o.reverse())},t.pathLength=function(e){var t,n,r,o,i,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},t.interpolate=r,t.expandPath=function(e){var t,n,o,i,a,s,l=[],u=e.length;if(u<2)return l;for(a=0;a<u-1;++a)for(t=e[a],n=e[a+1],i=(o=r(t[0],t[1],n[0],n[1])).length,s=0;s<i-1;++s)l.push(o[s]);return l.push(e[u-1]),l},t.smoothenPath=function(e,t){var n,o,i,a,s,l,u,c,p,f=t.length,d=t[0][0],h=t[0][1],g=t[f-1][0],m=t[f-1][1];for(i=[[n=d,o=h]],a=2;a<f;++a){for(u=r(n,o,(l=t[a])[0],l[1]),p=!1,s=1;s<u.length;++s)if(c=u[s],!e.isWalkableAt(c[0],c[1])){p=!0;break}p&&(lastValidCoord=t[a-1],i.push(lastValidCoord),n=lastValidCoord[0],o=lastValidCoord[1])}return i.push([g,m]),i},t.compressPath=function(e){if(e.length<3)return e;var t,n,r,o,i,a,s=[],l=e[0][0],u=e[0][1],c=e[1][0],p=e[1][1],f=c-l,d=p-u;for(f/=i=Math.sqrt(f*f+d*d),d/=i,s.push([l,u]),a=2;a<e.length;a++)t=c,n=p,r=f,o=d,f=(c=e[a][0])-t,d=(p=e[a][1])-n,d/=i=Math.sqrt(f*f+d*d),(f/=i)===r&&d===o||s.push([t,n]);return s.push([c,p]),s}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){var r=e.call(this)||this;return r.x=n.x,r.y=n.y,r.parent=t,r}return o(t,e),t.prototype.getSelectedEntities=function(){return e.prototype.isSelected.call(this)&&!this.isConnectedToPort()?[this]:[]},t.prototype.isConnectedToPort=function(){return null!==this.parent.getPortForPoint(this)},t.prototype.getLink=function(){return this.getParent()},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y})},t.prototype.remove=function(){this.parent&&this.parent.removePoint(this),e.prototype.remove.call(this)},t.prototype.updateLocation=function(e){this.x=e.x,this.y=e.y},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PointModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),s=n(0),l=function(e){function t(t,n){var r=e.call(this,n)||this;return r.type=t,r.selected=!1,r}return o(t,e),t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(e){this.parent=e},t.prototype.getSelectedEntities=function(){return this.isSelected()?[this]:[]},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.type=t.type,this.selected=t.selected},t.prototype.serialize=function(){return s.merge(e.prototype.serialize.call(this),{type:this.type,selected:this.selected})},t.prototype.getType=function(){return this.type},t.prototype.getID=function(){return this.id},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){void 0===e&&(e=!0),this.selected=e,this.iterateListeners((function(t,n){t.selectionChanged&&t.selectionChanged(i({},n,{isSelected:e}))}))},t.prototype.remove=function(){this.iterateListeners((function(e,t){e.entityRemoved&&e.entityRemoved(t)}))},t}(a.BaseEntity);t.BaseModel=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),o=n(16),i=n(51),a=function(){function e(){}return e.UID=function(){return e.TESTING?(e.TESTING_UID++,""+e.TESTING_UID):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.closest=function(e,t){return document.body.closest?e.closest(t):r(e,t)},e.generateLinePath=function(e,t){return"M"+e.x+","+e.y+" L "+t.x+","+t.y},e.generateCurvePath=function(e,t,n){void 0===n&&(n=0);var r=Math.abs(e.x-t.x)>Math.abs(e.y-t.y),o=r?n:0,i=r?0:n;return"M"+e.x+","+e.y+" C "+(e.x+o)+","+(e.y+i)+"\n "+(t.x-o)+","+(t.y-i)+" "+t.x+","+t.y},e.generateDynamicPath=function(e){var t=i();return t=t.moveto(e[0][0]*o.ROUTING_SCALING_FACTOR,e[0][1]*o.ROUTING_SCALING_FACTOR),e.slice(1).forEach((function(e){t=t.lineto(e[0]*o.ROUTING_SCALING_FACTOR,e[1]*o.ROUTING_SCALING_FACTOR)})),t.print()},e.TESTING=!1,e.TESTING_UID=0,e}();t.Toolkit=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.type=e}return e.prototype.getType=function(){return this.type},e}();t.AbstractFactory=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,n)||this;return r.x=0,r.y=0,r.extras={},r.ports={},r}return o(t,e),t.prototype.setPosition=function(e,t){var n=this.x,r=this.y;a.forEach(this.ports,(function(o){a.forEach(o.getLinks(),(function(i){var a=i.getPointForPort(o);a.x=a.x+e-n,a.y=a.y+t-r}))})),this.x=e,this.y=t},t.prototype.getSelectedEntities=function(){var t=e.prototype.getSelectedEntities.call(this);return this.isSelected()&&a.forEach(this.ports,(function(e){t=t.concat(a.map(e.getLinks(),(function(t){return t.getPointForPort(e)})))})),t},t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y,this.extras=t.extras,a.forEach(t.ports,(function(e){var t=n.getPortFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addPort(t)}))},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:a.map(this.ports,(function(e){return e.serialize()}))})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.ports={},a.forEach(this.ports,(function(n){t.addPort(n.clone(e))}))},t.prototype.remove=function(){e.prototype.remove.call(this),a.forEach(this.ports,(function(e){a.forEach(e.getLinks(),(function(e){e.remove()}))}))},t.prototype.getPortFromID=function(e){for(var t in this.ports)if(this.ports[t].id===e)return this.ports[t];return null},t.prototype.getPort=function(e){return this.ports[e]},t.prototype.getPorts=function(){return this.ports},t.prototype.removePort=function(e){this.ports[e.name]&&(this.ports[e.name].setParent(null),delete this.ports[e.name])},t.prototype.addPort=function(e){return e.setParent(this),this.ports[e.name]=e,e},t.prototype.updateDimensions=function(e){var t=e.width,n=e.height;this.width=t,this.height=n},t}(i.BaseModel);t.NodeModel=s},function(e,t){e.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},octile:function(e,t){var n=Math.SQRT2-1;return e<t?n*e+t:n*t+e},chebyshev:function(e,t){return Math.max(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.mouseX=e,this.mouseY=t,this.ms=(new Date).getTime()};t.BaseAction=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n,r,o){var i=e.call(this,n,r)||this;return i.name=t,i.links={},i.maximumLinks=o,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.maximumLinks=t.maximumLinks},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:a.map(this.links,(function(e){return e.id})),maximumLinks:this.maximumLinks})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.links={},t.parentNode=this.getParent().clone(e)},t.prototype.getNode=function(){return this.getParent()},t.prototype.getName=function(){return this.name},t.prototype.getMaximumLinks=function(){return this.maximumLinks},t.prototype.setMaximumLinks=function(e){this.maximumLinks=e},t.prototype.removeLink=function(e){delete this.links[e.getID()]},t.prototype.addLink=function(e){this.links[e.getID()]=e},t.prototype.getLinks=function(){return this.links},t.prototype.createLinkModel=function(){if(a.isFinite(this.maximumLinks)){var e=a.size(this.links);if(1===this.maximumLinks&&e>=1)return a.values(this.links)[0];if(e>=this.maximumLinks)return null}return null},t.prototype.updateCoords=function(e){var t=e.x,n=e.y,r=e.width,o=e.height;this.x=t,this.y=n,this.width=r,this.height=o},t.prototype.canLinkToPort=function(e){return!0},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PortModel=s},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=n(0),a=function(){function e(e){this.listeners={},this.id=e||o.Toolkit.UID(),this.locked=!1}return e.prototype.getID=function(){return this.id},e.prototype.doClone=function(e,t){void 0===e&&(e={})},e.prototype.clone=function(e){if(void 0===e&&(e={}),e[this.id])return e[this.id];var t=i.clone(this);return t.id=o.Toolkit.UID(),t.clearListeners(),e[this.id]=t,this.doClone(e,t),t},e.prototype.clearListeners=function(){this.listeners={}},e.prototype.deSerialize=function(e,t){this.id=e.id},e.prototype.serialize=function(){return{id:this.id}},e.prototype.iterateListeners=function(e){var t={id:o.Toolkit.UID(),firing:!0,entity:this,stopPropagation:function(){t.firing=!1}};for(var n in this.listeners)if(this.listeners.hasOwnProperty(n)){if(!t.firing)return;e(this.listeners[n],t)}},e.prototype.removeListener=function(e){return!!this.listeners[e]&&(delete this.listeners[e],!0)},e.prototype.addListener=function(e){var t=o.Toolkit.UID();return this.listeners[t]=e,t},e.prototype.isLocked=function(){return this.locked},e.prototype.setLocked=function(e){void 0===e&&(e=!0),this.locked=e,this.iterateListeners((function(t,n){t.lockChanged&&t.lockChanged(r({},n,{locked:e}))}))},e}();t.BaseEntity=a},function(e,t,n){var r=n(15),o=n(4),i=n(10);function a(e){e=e||{},this.heuristic=e.heuristic||i.manhattan,this.trackJumpRecursion=e.trackJumpRecursion||!1}n(2),a.prototype.findPath=function(e,t,n,i,a){var s,l=this.openList=new r((function(e,t){return e.f-t.f})),u=this.startNode=a.getNodeAt(e,t),c=this.endNode=a.getNodeAt(n,i);for(this.grid=a,u.g=0,u.f=0,l.push(u),u.opened=!0;!l.empty();){if((s=l.pop()).closed=!0,s===c)return o.expandPath(o.backtrace(c));this._identifySuccessors(s)}return[]},a.prototype._identifySuccessors=function(e){var t,n,r,o,a,s,l,u,c,p,f=this.grid,d=this.heuristic,h=this.openList,g=this.endNode.x,m=this.endNode.y,v=e.x,y=e.y,b=Math.abs;for(Math.max,o=0,a=(t=this._findNeighbors(e)).length;o<a;++o)if(n=t[o],r=this._jump(n[0],n[1],v,y)){if(s=r[0],l=r[1],(p=f.getNodeAt(s,l)).closed)continue;u=i.octile(b(s-v),b(l-y)),c=e.g+u,(!p.opened||c<p.g)&&(p.g=c,p.h=p.h||d(b(s-g),b(l-m)),p.f=p.g+p.h,p.parent=e,p.opened?h.updateItem(p):(h.push(p),p.opened=!0))}},e.exports=a},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68);t.ROUTING_SCALING_FACTOR=5;var o=new r.JumpPointFinder({heuristic:r.Heuristic.manhattan,diagonalMovement:r.DiagonalMovement.Never}),i=function(){function e(e){this.instance=o,this.diagramEngine=e}return e.prototype.calculateDirectPath=function(e,n){var i=this.diagramEngine.getCanvasMatrix(),a=new r.Grid(i);return o.findPath(this.diagramEngine.translateRoutingX(Math.floor(e.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(e.y/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(n.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(n.y/t.ROUTING_SCALING_FACTOR)),a)},e.prototype.calculateLinkStartEndCoords=function(e,t){var n=t.findIndex((function(t){return 0===e[t[1]][t[0]]})),r=t.length-1-t.slice().reverse().findIndex((function(t){return 0===e[t[1]][t[0]]}));if(-1!==n&&-1!==r){var o=t.slice(0,n),i=t.slice(r);return{start:{x:t[n][0],y:t[n][1]},end:{x:t[r][0],y:t[r][1]},pathToStart:o,pathToEnd:i}}},e.prototype.calculateDynamicPath=function(e,t,n,i,a){var s=this,l=new r.Grid(e),u=o.findPath(t.x,t.y,n.x,n.y,l),c=i.concat(u,a).map((function(e){return[s.diagramEngine.translateRoutingX(e[0],!0),s.diagramEngine.translateRoutingY(e[1],!0)]}));return r.Util.compressPath(c)},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.offsetX=0,r.offsetY=0,r}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.offsetX=t.offsetX,this.offsetY=t.offsetY},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})},t}(i.BaseModel);t.LabelModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(0),s=function(e){function t(){var t=e.call(this,"default")||this;return t.offsetY=-23,t}return o(t,e),t.prototype.setLabel=function(e){this.label=e},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.label=t.label},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{label:this.label})},t}(i.LabelModel);t.DefaultLabelModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),s=n(0),l=n(18),u=n(17),c=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,t)||this;return n.color="rgba(255,255,255,0.5)",n.width=3,n.curvyness=50,n}return o(t,e),t.prototype.serialize=function(){return s.merge(e.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.color=t.color,this.width=t.width,this.curvyness=t.curvyness},t.prototype.addLabel=function(t){if(t instanceof u.LabelModel)return e.prototype.addLabel.call(this,t);var n=new l.DefaultLabelModel;return n.setLabel(t),e.prototype.addLabel.call(this,n)},t.prototype.setWidth=function(e){this.width=e,this.iterateListeners((function(t,n){t.widthChanged&&t.widthChanged(i({},n,{width:e}))}))},t.prototype.setColor=function(e){this.color=e,this.iterateListeners((function(t,n){t.colorChanged&&t.colorChanged(i({},n,{color:e}))}))},t}(a.LinkModel);t.DefaultLinkModel=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(12),s=n(19),l=function(e){function t(t,n,r,o){void 0===r&&(r=null);var i=e.call(this,n,"default",o)||this;return i.in=t,i.label=r||n,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.in=t.in,this.label=t.label},t.prototype.serialize=function(){return i.merge(e.prototype.serialize.call(this),{in:this.in,label:this.label})},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.canLinkToPort=function(e){return!(e instanceof t)||this.in!==e.in},t.prototype.createLinkModel=function(){return e.prototype.createLinkModel.call(this)||new s.DefaultLinkModel},t}(a.PortModel);t.DefaultPortModel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=n(5),l=n(0),u=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,n)||this;return r.points=[new s.PointModel(r,{x:0,y:0}),new s.PointModel(r,{x:0,y:0})],r.extras={},r.sourcePort=null,r.targetPort=null,r.labels=[],r}return o(t,e),t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.extras=t.extras,this.points=l.map(t.points||[],(function(e){var t=new s.PointModel(r,{x:e.x,y:e.y});return t.deSerialize(e,n),t})),l.forEach(t.labels||[],(function(e){var t=n.getLabelFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addLabel(t)})),t.target&&this.setTargetPort(this.getParent().getNode(t.target).getPortFromID(t.targetPort)),t.source&&this.setSourcePort(this.getParent().getNode(t.source).getPortFromID(t.sourcePort))},t.prototype.serialize=function(){return l.merge(e.prototype.serialize.call(this),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:l.map(this.points,(function(e){return e.serialize()})),extras:this.extras,labels:l.map(this.labels,(function(e){return e.serialize()}))})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.setPoints(l.map(this.getPoints(),(function(t){return t.clone(e)}))),this.sourcePort&&t.setSourcePort(this.sourcePort.clone(e)),this.targetPort&&t.setTargetPort(this.targetPort.clone(e))},t.prototype.remove=function(){this.sourcePort&&this.sourcePort.removeLink(this),this.targetPort&&this.targetPort.removeLink(this),e.prototype.remove.call(this)},t.prototype.isLastPoint=function(e){return this.getPointIndex(e)===this.points.length-1},t.prototype.getPointIndex=function(e){return this.points.indexOf(e)},t.prototype.getPointModel=function(e){for(var t=0;t<this.points.length;t++)if(this.points[t].id===e)return this.points[t];return null},t.prototype.getPortForPoint=function(e){return null!==this.sourcePort&&this.getFirstPoint().getID()===e.getID()?this.sourcePort:null!==this.targetPort&&this.getLastPoint().getID()===e.getID()?this.targetPort:null},t.prototype.getPointForPort=function(e){return null!==this.sourcePort&&this.sourcePort.getID()===e.getID()?this.getFirstPoint():null!==this.targetPort&&this.targetPort.getID()===e.getID()?this.getLastPoint():null},t.prototype.getFirstPoint=function(){return this.points[0]},t.prototype.getLastPoint=function(){return this.points[this.points.length-1]},t.prototype.setSourcePort=function(e){null!==e&&e.addLink(this),null!==this.sourcePort&&this.sourcePort.removeLink(this),this.sourcePort=e,this.iterateListeners((function(t,n){t.sourcePortChanged&&t.sourcePortChanged(i({},n,{port:e}))}))},t.prototype.getSourcePort=function(){return this.sourcePort},t.prototype.getTargetPort=function(){return this.targetPort},t.prototype.setTargetPort=function(e){null!==e&&e.addLink(this),null!==this.targetPort&&this.targetPort.removeLink(this),this.targetPort=e,this.iterateListeners((function(t,n){t.targetPortChanged&&t.targetPortChanged(i({},n,{port:e}))}))},t.prototype.point=function(e,t){return this.addPoint(this.generatePoint(e,t))},t.prototype.addLabel=function(e){e.setParent(this),this.labels.push(e)},t.prototype.getPoints=function(){return this.points},t.prototype.setPoints=function(e){var t=this;l.forEach(e,(function(e){e.setParent(t)})),this.points=e},t.prototype.removePoint=function(e){this.points.splice(this.getPointIndex(e),1)},t.prototype.removePointsBefore=function(e){this.points.splice(0,this.getPointIndex(e))},t.prototype.removePointsAfter=function(e){this.points.splice(this.getPointIndex(e)+1)},t.prototype.removeMiddlePoints=function(){this.points.length>2&&this.points.splice(0,this.points.length-2)},t.prototype.addPoint=function(e,t){return void 0===t&&(t=1),e.setParent(this),this.points.splice(t,0,e),e},t.prototype.generatePoint=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),new s.PointModel(this,{x:e,y:t})},t}(a.BaseModel);t.LinkModel=u},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,l,u,c,p,f,d,h,g=function(e,t){return e.f-t.f},m=new r(g),v=new r(g),y=a.getNodeAt(e,t),b=a.getNodeAt(n,i),w=this.heuristic,_=this.diagonalMovement,x=this.weight,k=Math.abs,E=Math.SQRT2;for(y.g=0,y.f=0,m.push(y),y.opened=1,b.g=0,b.f=0,v.push(b),b.opened=2;!m.empty()&&!v.empty();){for((s=m.pop()).closed=!0,c=0,p=(l=a.getNeighbors(s,_)).length;c<p;++c)if(!(u=l[c]).closed){if(2===u.opened)return o.biBacktrace(s,u);f=u.x,d=u.y,h=s.g+(f-s.x==0||d-s.y==0?1:E),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||x*w(k(f-n),k(d-i)),u.f=u.g+u.h,u.parent=s,u.opened?m.updateItem(u):(m.push(u),u.opened=1))}for((s=v.pop()).closed=!0,c=0,p=(l=a.getNeighbors(s,_)).length;c<p;++c)if(!(u=l[c]).closed){if(1===u.opened)return o.biBacktrace(u,s);f=u.x,d=u.y,h=s.g+(f-s.x==0||d-s.y==0?1:E),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||x*w(k(f-e),k(d-t)),u.f=u.g+u.h,u.parent=s,u.opened?v.updateItem(u):(v.push(u),u.opened=2))}}return[]},e.exports=s},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,l,u,c,p,f,d,h,g=new r((function(e,t){return e.f-t.f})),m=a.getNodeAt(e,t),v=a.getNodeAt(n,i),y=this.heuristic,b=this.diagonalMovement,w=this.weight,_=Math.abs,x=Math.SQRT2;for(m.g=0,m.f=0,g.push(m),m.opened=!0;!g.empty();){if((s=g.pop()).closed=!0,s===v)return o.backtrace(v);for(c=0,p=(l=a.getNeighbors(s,b)).length;c<p;++c)(u=l[c]).closed||(f=u.x,d=u.y,h=s.g+(f-s.x==0||d-s.y==0?1:x),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||w*y(_(f-n),_(d-i)),u.f=u.g+u.h,u.parent=s,u.opened?g.updateItem(u):(g.push(u),u.opened=!0)))}return[]},e.exports=s},function(e,t){e.exports=function(e,t,n){this.x=e,this.y=t,this.walkable=void 0===n||n}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){var n=e.call(this,"srd-node",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)},t.prototype.getClassName=function(){return"node "+e.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")},t.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)},t}(n(3).BaseWidget);t.NodeWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(25),u=function(e){function t(t){var n=e.call(this,"srd-node-layer",t)||this;return n.updateNodeDimensions=function(){if(!n.props.diagramEngine.nodesRendered){var e=n.props.diagramEngine.getDiagramModel();s.map(e.getNodes(),(function(e){e.updateDimensions(n.props.diagramEngine.getNodeDimensions(e))}))}},n.state={},n}return o(t,e),t.prototype.componentDidUpdate=function(){this.updateNodeDimensions(),this.props.diagramEngine.nodesRendered=!0},t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("div",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),s.map(t.getNodes(),(function(t){return a.createElement(l.NodeWidget,{diagramEngine:e.props.diagramEngine,key:t.id,node:t},e.props.diagramEngine.generateWidgetForNode(t))})))},t}(n(3).BaseWidget);t.NodeLayerWidget=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,"srd-link",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)},t.prototype.render=function(){return this.props.children},t}(n(3).BaseWidget);t.LinkWidget=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(27),l=n(0),u=function(e){function t(t){var n=e.call(this,"srd-link-layer",t)||this;return n.state={},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("svg",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&l.map(t.getLinks(),(function(t){if(e.props.diagramEngine.nodesRendered&&!e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]){if(null!==t.sourcePort)try{var n=e.props.diagramEngine.getPortCenter(t.sourcePort);t.points[0].updateLocation(n);var r=e.props.diagramEngine.getPortCoords(t.sourcePort);t.sourcePort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}if(null!==t.targetPort)try{n=e.props.diagramEngine.getPortCenter(t.targetPort),l.last(t.points).updateLocation(n),r=e.props.diagramEngine.getPortCoords(t.targetPort),t.targetPort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}}var o=e.props.diagramEngine.generateWidgetForLink(t);if(!o)throw new Error("no link generated for type: "+t.getType());return a.createElement(s.LinkWidget,{key:t.getID(),link:t,diagramEngine:e.props.diagramEngine},a.cloneElement(o,{pointAdded:e.props.pointAdded}))})))},t}(n(3).BaseWidget);t.LinkLayerWidget=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.mouseX2=t,r.mouseY2=n,r}return o(t,e),t.prototype.getBoxDimensions=function(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2<this.mouseX?this.mouseX:this.mouseX2,bottom:this.mouseY2<this.mouseY?this.mouseY:this.mouseY2}},t.prototype.containsElement=function(e,t,n){var r=n.getZoomLevel()/100,o=this.getBoxDimensions();return e*r+n.getOffsetX()>o.left&&e*r+n.getOffsetX()<o.right&&t*r+n.getOffsetY()>o.top&&t*r+n.getOffsetY()<o.bottom},t}(n(11).BaseAction);t.SelectingAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;o.moved=!1,r.enableRepaintEntities(r.getDiagramModel().getSelectedItems());var i=r.getDiagramModel().getSelectedItems();return i=i.filter((function(e){return!r.isModelLocked(e)})),o.selectionModels=i.map((function(e){return{model:e,initialX:e.x,initialY:e.y}})),o}return o(t,e),t}(n(11).BaseAction);t.MoveItemsAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.initialOffsetX=r.getOffsetX(),o.initialOffsetY=r.getOffsetY(),o}return o(t,e),t}(n(11).BaseAction);t.MoveCanvasAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractNodeFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){var n=e.call(this,"srd-port",t)||this;return n.state={selected:!1},n}return o(t,e),t.prototype.getClassName=function(){return"port "+e.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},t.prototype.render=function(){var e=this;return a.createElement("div",i({},this.getProps(),{onMouseEnter:function(){e.setState({selected:!0})},onMouseLeave:function(){e.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},t}(n(3).BaseWidget);t.PortWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(33),l=function(e){function t(t){return e.call(this,"srd-default-port",t)||this}return o(t,e),t.prototype.getClassName=function(){return e.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))},t.prototype.render=function(){var e=a.createElement(s.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name}),t=a.createElement("div",{className:"name"},this.props.model.label);return a.createElement("div",i({},this.getProps()),this.props.model.in?e:t,this.props.model.in?t:e)},t}(n(3).BaseWidget);t.DefaultPortLabel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(34),u=function(e){function t(t){var n=e.call(this,"srd-default-node",t)||this;return n.state={},n}return o(t,e),t.prototype.generatePort=function(e){return a.createElement(l.DefaultPortLabel,{model:e,key:e.id})},t.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{style:{background:this.props.node.color}}),a.createElement("div",{className:this.bem("__title")},a.createElement("div",{className:this.bem("__name")},this.props.node.name)),a.createElement("div",{className:this.bem("__ports")},a.createElement("div",{className:this.bem("__in")},s.map(this.props.node.getInPorts(),this.generatePort.bind(this))),a.createElement("div",{className:this.bem("__out")},s.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))},t}(n(3).BaseWidget);t.DefaultNodeWidget=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLinkFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(5),l=n(7),u=n(16),c=n(0),p=function(e){function t(t){var n=e.call(this,"srd-default-link",t)||this;return n.addPointToLink=function(e,t){if(!e.shiftKey&&!n.props.diagramEngine.isModelLocked(n.props.link)&&n.props.link.points.length-1<=n.props.diagramEngine.getMaxNumberPointsPerLink()){var r=new s.PointModel(n.props.link,n.props.diagramEngine.getRelativeMousePoint(e));r.setSelected(!0),n.forceUpdate(),n.props.link.addPoint(r,t),n.props.pointAdded(r,e)}},n.findPathAndRelativePositionToRenderLabel=function(e){for(var t=n.refPaths.map((function(e){return e.getTotalLength()})),r=t.reduce((function(e,t){return e+t}),0)*(e/(n.props.link.labels.length+1)),o=0;o<n.refPaths.length;){if(r-t[o]<0)return{path:n.refPaths[o],position:r};r-=t[o],o++}},n.calculateLabelPosition=function(e,t){if(n.refLabels[e.id]){var r=n.findPathAndRelativePositionToRenderLabel(t),o=r.path,i=r.position,a=n.refLabels[e.id].offsetWidth,s=n.refLabels[e.id].offsetHeight,l=o.getPointAtLength(i),u=l.x-a/2+e.offsetX,c=l.y-s/2+e.offsetY;n.refLabels[e.id].setAttribute("style","transform: translate("+u+"px, "+c+"px);")}},n.refLabels={},n.refPaths=[],n.state={selected:!1},t.diagramEngine.isSmartRoutingEnabled()&&(n.pathFinding=new u.default(n.props.diagramEngine)),n}return o(t,e),t.prototype.calculateAllLabelPosition=function(){var e=this;c.forEach(this.props.link.labels,(function(t,n){e.calculateLabelPosition(t,n+1)}))},t.prototype.componentDidUpdate=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.componentDidMount=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.generatePoint=function(e){var t=this,n=this.props.link.points[e].x,r=this.props.link.points[e].y;return a.createElement("g",{key:"point-"+this.props.link.points[e].id},a.createElement("circle",{cx:n,cy:r,r:5,className:"point "+this.bem("__point")+(this.props.link.points[e].isSelected()?this.bem("--point-selected"):"")}),a.createElement("circle",{onMouseLeave:function(){t.setState({selected:!1})},onMouseEnter:function(){t.setState({selected:!0})},"data-id":this.props.link.points[e].id,"data-linkid":this.props.link.id,cx:n,cy:r,r:15,opacity:0,className:"point "+this.bem("__point")}))},t.prototype.generateLabel=function(e){var t=this,n=this.props.diagramEngine.canvas;return a.createElement("foreignObject",{key:e.id,className:this.bem("__label"),width:n.offsetWidth,height:n.offsetHeight},a.createElement("div",{ref:function(n){return t.refLabels[e.id]=n}},this.props.diagramEngine.getFactoryForLabel(e).generateReactWidget(this.props.diagramEngine,e)))},t.prototype.generateLink=function(e,t,n){var r=this,o=this.props,s=a.cloneElement(o.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),e),{ref:function(e){return e&&r.refPaths.push(e)}}),l=a.cloneElement(s,i({},t,{strokeLinecap:"round",onMouseLeave:function(){r.setState({selected:!1})},onMouseEnter:function(){r.setState({selected:!0})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:function(){r.props.diagramEngine.isModelLocked(r.props.link)||(event.preventDefault(),r.props.link.remove())}}));return a.createElement("g",{key:"link-"+n},s,l)},t.prototype.isSmartRoutingApplicable=function(){var e=this.props,t=e.diagramEngine,n=e.link;return!!t.isSmartRoutingEnabled()&&2===n.points.length&&null!==n.sourcePort&&null!==n.targetPort},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;if(!t.nodesRendered)return null;var n=this.props.link.points,r=[];if(this.isSmartRoutingApplicable()){var o=this.pathFinding.calculateDirectPath(c.first(n),c.last(n)),s=t.getRoutingMatrix(),u=this.pathFinding.calculateLinkStartEndCoords(s,o);if(u){var p=u.start,f=u.end,d=u.pathToStart,h=u.pathToEnd,g=this.pathFinding.calculateDynamicPath(s,p,f,d,h);r.push(this.generateLink(l.Toolkit.generateDynamicPath(g),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0"))}}if(0===r.length)if(2===n.length){var m=Math.abs(n[0].x-n[1].x)>Math.abs(n[0].y-n[1].y)?"x":"y";Math.abs(n[0][m]-n[1][m]);var v=n[0],y=n[1];v[m]>y[m]&&(v=n[1],y=n[0]),r.push(this.generateLink(l.Toolkit.generateCurvePath(v,y,this.props.link.curvyness),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0")),null===this.props.link.targetPort&&r.push(this.generatePoint(1))}else{for(var b=function(t){r.push(w.generateLink(l.Toolkit.generateLinePath(n[t],n[t+1]),{"data-linkid":w.props.link.id,"data-point":t,onMouseDown:function(n){e.addPointToLink(n,t+1)}},t))},w=this,_=0;_<n.length-1;_++)b(_);for(var x=1;x<n.length-1;x++)r.push(this.generatePoint(x));null===this.props.link.targetPort&&r.push(this.generatePoint(n.length-1))}return this.refPaths=[],a.createElement("g",i({},this.getProps()),r,c.map(this.props.link.labels,(function(t){return e.generateLabel(t)})))},t.defaultProps={color:"black",width:3,link:null,engine:null,smooth:!1,diagramEngine:null},t}(n(3).BaseWidget);t.DefaultLinkWidget=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=n(0),s=n(9),l=n(7),u=function(e){function t(t,n){void 0===t&&(t="Untitled"),void 0===n&&(n="rgb(0,192,255)");var r=e.call(this,"default")||this;return r.name=t,r.color=n,r}return o(t,e),t.prototype.addInPort=function(e){return this.addPort(new i.DefaultPortModel(!0,l.Toolkit.UID(),e))},t.prototype.addOutPort=function(e){return this.addPort(new i.DefaultPortModel(!1,l.Toolkit.UID(),e))},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.color=t.color},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,color:this.color})},t.prototype.getInPorts=function(){return a.filter(this.ports,(function(e){return e.in}))},t.prototype.getOutPorts=function(){return a.filter(this.ports,(function(e){return!e.in}))},t}(s.NodeModel);t.DefaultNodeModel=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){return e.call(this,"srd-default-label",t)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",i({},this.getProps()),this.props.model.label)},t}(n(3).BaseWidget);t.DefaultLabelWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLabelFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(40),s=n(18),l=n(39),u=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(l.DefaultLabelWidget,{model:t})},t.prototype.getNewInstance=function(e){return new s.DefaultLabelModel},t}(a.AbstractLabelFactory);t.DefaultLabelFactory=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractPortFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.getNewInstance=function(e){return new i.DefaultPortModel(!0,"unknown")},t}(n(42).AbstractPortFactory);t.DefaultPortFactory=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),s=n(0),l=n(21),u=n(9),c=n(12),p=n(5),f=function(e){function t(){var t=e.call(this)||this;return t.links={},t.nodes={},t.offsetX=0,t.offsetY=0,t.zoom=100,t.rendered=!1,t.gridSize=0,t}return o(t,e),t.prototype.setGridSize=function(e){void 0===e&&(e=0),this.gridSize=e,this.iterateListeners((function(t,n){t.gridUpdated&&t.gridUpdated(i({},n,{size:e}))}))},t.prototype.getGridPosition=function(e){return 0===this.gridSize?e:this.gridSize*Math.floor((e+this.gridSize/2)/this.gridSize)},t.prototype.deSerializeDiagram=function(e,t){var n=this;this.deSerialize(e,t),this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.zoom=e.zoom,this.gridSize=e.gridSize,s.forEach(e.nodes,(function(e){var r=t.getNodeFactory(e.type).getNewInstance(e);r.setParent(n),r.deSerialize(e,t),n.addNode(r)})),s.forEach(e.links,(function(e){var r=t.getLinkFactory(e.type).getNewInstance();r.setParent(n),r.deSerialize(e,t),n.addLink(r)}))},t.prototype.serializeDiagram=function(){return s.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:s.map(this.links,(function(e){return e.serialize()})),nodes:s.map(this.nodes,(function(e){return e.serialize()}))})},t.prototype.clearSelection=function(e){void 0===e&&(e=null),s.forEach(this.getSelectedItems(),(function(t){e&&e.getID()===t.getID()||t.setSelected(!1)}))},t.prototype.getSelectedItems=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Array.isArray(e)||(e=[e]);var n=[];return n=(n=(n=n.concat(s.flatMap(this.nodes,(function(e){return e.getSelectedEntities()})))).concat(s.flatMap(this.links,(function(e){return e.getSelectedEntities()})))).concat(s.flatMap(this.links,(function(e){return s.flatMap(e.points,(function(e){return e.getSelectedEntities()}))}))),n=s.uniq(n),e.length>0&&(n=s.filter(s.uniq(n),(function(t){return!!(s.includes(e,"node")&&t instanceof u.NodeModel||s.includes(e,"link")&&t instanceof l.LinkModel||s.includes(e,"port")&&t instanceof c.PortModel||s.includes(e,"point")&&t instanceof p.PointModel)}))),n},t.prototype.setZoomLevel=function(e){this.zoom=e,this.iterateListeners((function(t,n){t.zoomUpdated&&t.zoomUpdated(i({},n,{zoom:e}))}))},t.prototype.setOffset=function(e,t){this.offsetX=e,this.offsetY=t,this.iterateListeners((function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t}))}))},t.prototype.setOffsetX=function(e){var t=this;this.offsetX=e,this.iterateListeners((function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t.offsetY}))}))},t.prototype.setOffsetY=function(e){var t=this;this.offsetY=e,this.iterateListeners((function(e,n){e.offsetUpdated&&e.offsetUpdated(i({},n,{offsetX:t.offsetX,offsetY:t.offsetY}))}))},t.prototype.getOffsetY=function(){return this.offsetY},t.prototype.getOffsetX=function(){return this.offsetX},t.prototype.getZoomLevel=function(){return this.zoom},t.prototype.getNode=function(e){return e instanceof u.NodeModel?e:this.nodes[e]?this.nodes[e]:null},t.prototype.getLink=function(e){return e instanceof l.LinkModel?e:this.links[e]?this.links[e]:null},t.prototype.addAll=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s.forEach(t,(function(t){t instanceof l.LinkModel?e.addLink(t):t instanceof u.NodeModel&&e.addNode(t)})),t},t.prototype.addLink=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeLink(e)}}),this.links[e.getID()]=e,this.iterateListeners((function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!0}))})),e},t.prototype.addNode=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeNode(e)}}),this.nodes[e.getID()]=e,this.iterateListeners((function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!0}))})),e},t.prototype.removeLink=function(e){e=this.getLink(e),delete this.links[e.getID()],this.iterateListeners((function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!1}))}))},t.prototype.removeNode=function(e){e=this.getNode(e),delete this.nodes[e.getID()],this.iterateListeners((function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!1}))}))},t.prototype.getLinks=function(){return this.links},t.prototype.getNodes=function(){return this.nodes},t}(a.BaseEntity);t.DiagramModel=f},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(7)),r(n(13)),r(n(49)),r(n(38)),r(n(20)),r(n(19)),r(n(18)),r(n(48)),r(n(47)),r(n(43)),r(n(41)),r(n(37)),r(n(39)),r(n(35)),r(n(34)),r(n(8)),r(n(40)),r(n(36)),r(n(32)),r(n(42)),r(n(16)),r(n(11)),r(n(31)),r(n(30)),r(n(29)),r(n(6)),r(n(44)),r(n(21)),r(n(9)),r(n(5)),r(n(12)),r(n(17)),r(n(46)),r(n(27)),r(n(25)),r(n(33)),r(n(3)),r(n(28)),r(n(26))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(28),u=n(26),c=n(7),p=n(31),f=n(30),d=n(29),h=n(9),g=n(5),m=n(12),v=function(e){function t(t){var n=e.call(this,"srd-diagram",t)||this;return n.onKeyUpPointer=null,n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.state={action:null,wasMoved:!1,renderedNodes:!1,windowListener:null,diagramEngineListener:null,document:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){this.props.diagramEngine.removeListener(this.state.diagramEngineListener),this.props.diagramEngine.setCanvas(null),window.removeEventListener("keyup",this.onKeyUpPointer),window.removeEventListener("mouseUp",this.onMouseUp),window.removeEventListener("mouseMove",this.onMouseMove)},t.prototype.componentWillReceiveProps=function(e){var t=this;if(this.props.diagramEngine!==e.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var n=e.diagramEngine.addListener({repaintCanvas:function(){return t.forceUpdate()}});this.setState({diagramEngineListener:n})}},t.prototype.componentWillUpdate=function(e){this.props.diagramEngine.diagramModel.id!==e.diagramEngine.diagramModel.id&&(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0),e.diagramEngine.diagramModel.rendered||(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0)},t.prototype.componentDidUpdate=function(){this.state.renderedNodes||this.setState({renderedNodes:!0})},t.prototype.componentDidMount=function(){var e=this;this.onKeyUpPointer=this.onKeyUp.bind(this),this.setState({document:document,renderedNodes:!0,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){e.forceUpdate()}})}),window.addEventListener("keyup",this.onKeyUpPointer,!1),window.focus()},t.prototype.getMouseElement=function(e){var t=e.target,n=this.props.diagramEngine.diagramModel,r=c.Toolkit.closest(t,".port[data-name]");if(r){var o=c.Toolkit.closest(t,".node[data-nodeid]");return{model:n.getNode(o.getAttribute("data-nodeid")).getPort(r.getAttribute("data-name")),element:r}}return(r=c.Toolkit.closest(t,".point[data-id]"))?{model:n.getLink(r.getAttribute("data-linkid")).getPointModel(r.getAttribute("data-id")),element:r}:(r=c.Toolkit.closest(t,"[data-linkid]"))?{model:n.getLink(r.getAttribute("data-linkid")),element:r}:(r=c.Toolkit.closest(t,".node[data-nodeid]"))?{model:n.getNode(r.getAttribute("data-nodeid")),element:r}:null},t.prototype.fireAction=function(){this.state.action&&this.props.actionStillFiring&&this.props.actionStillFiring(this.state.action)},t.prototype.stopFiringAction=function(e){this.props.actionStoppedFiring&&!e&&this.props.actionStoppedFiring(this.state.action),this.setState({action:null})},t.prototype.startFiringAction=function(e){var t=!0;this.props.actionStartedFiring&&(t=this.props.actionStartedFiring(e)),t&&this.setState({action:e})},t.prototype.onMouseMove=function(e){var t=this,n=this.props.diagramEngine,r=n.getDiagramModel();if(this.state.action instanceof d.SelectingAction){var o=n.getRelativePoint(e.clientX,e.clientY);return s.forEach(r.getNodes(),(function(e){t.state.action.containsElement(e.x,e.y,r)&&e.setSelected(!0)})),s.forEach(r.getLinks(),(function(e){var n=!0;s.forEach(e.points,(function(e){t.state.action.containsElement(e.x,e.y,r)?e.setSelected(!0):n=!1})),n&&e.setSelected(!0)})),this.state.action.mouseX2=o.x,this.state.action.mouseY2=o.y,this.fireAction(),void this.setState({action:this.state.action})}if(this.state.action instanceof f.MoveItemsAction){var i=e.clientX-this.state.action.mouseX,a=e.clientY-this.state.action.mouseY,l=r.getZoomLevel()/100;s.forEach(this.state.action.selectionModels,(function(e){e.model instanceof h.NodeModel||e.model instanceof g.PointModel&&!e.model.isConnectedToPort()?(e.model.x=r.getGridPosition(e.initialX+i/l),e.model.y=r.getGridPosition(e.initialY+a/l),e.model instanceof h.NodeModel&&s.forEach(e.model.getPorts(),(function(e){var n=t.props.diagramEngine.getPortCoords(e);e.updateCoords(n)})),n.isSmartRoutingEnabled()&&n.calculateRoutingMatrix()):e.model instanceof g.PointModel&&(e.model.x=e.initialX+r.getGridPosition(i/l),e.model.y=e.initialY+r.getGridPosition(a/l))})),n.isSmartRoutingEnabled()&&n.calculateCanvasMatrix(),this.fireAction(),this.state.wasMoved?this.forceUpdate():this.setState({wasMoved:!0})}else this.state.action instanceof p.MoveCanvasAction&&this.props.allowCanvasTranslation&&(r.setOffset(this.state.action.initialOffsetX+(e.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(e.clientY-this.state.action.mouseY)),this.fireAction(),this.forceUpdate())},t.prototype.onKeyUp=function(e){var t=this;-1!==this.props.deleteKeys.indexOf(e.keyCode)&&(s.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),(function(e){t.props.diagramEngine.isModelLocked(e)||e.remove()})),this.forceUpdate())},t.prototype.onMouseUp=function(e){var t=this,n=this.props.diagramEngine;if(this.state.action instanceof f.MoveItemsAction){var r=this.getMouseElement(e);s.forEach(this.state.action.selectionModels,(function(e){if(e.model instanceof g.PointModel&&r&&r.model instanceof m.PortModel&&!n.isModelLocked(r.model)){var o=e.model.getLink();if(null!==o.getTargetPort())if(o.getTargetPort()!==r.model&&o.getSourcePort()!==r.model){var i=o.getTargetPort(),a=o.clone({});a.setSourcePort(r.model),a.setTargetPort(i),o.setTargetPort(r.model),i.removeLink(o),a.removePointsBefore(a.getPoints()[o.getPointIndex(e.model)]),o.removePointsAfter(e.model),n.getDiagramModel().addLink(a)}else o.getTargetPort()===r.model?o.removePointsAfter(e.model):o.getSourcePort()===r.model&&o.removePointsBefore(e.model);else o.setTargetPort(r.model);delete t.props.diagramEngine.linksThatHaveInitiallyRendered[o.getID()]}})),!this.props.allowLooseLinks&&this.state.wasMoved&&s.forEach(this.state.action.selectionModels,(function(e){if(e.model instanceof g.PointModel){var t=e.model.getLink();null!==t.getSourcePort()&&null!==t.getTargetPort()||t.remove()}})),s.forEach(this.state.action.selectionModels,(function(e){if(e.model instanceof g.PointModel){var t=e.model.getLink(),n=t.getSourcePort(),r=t.getTargetPort();null!==n&&null!==r&&(n.canLinkToPort(r)?s.some(s.values(r.getLinks()),(function(e){return e!==t&&(e.getSourcePort()===n||e.getTargetPort()===n)}))&&t.remove():t.remove())}})),n.clearRepaintEntities(),this.stopFiringAction(!this.state.wasMoved)}else n.clearRepaintEntities(),this.stopFiringAction();this.state.document.removeEventListener("mousemove",this.onMouseMove),this.state.document.removeEventListener("mouseup",this.onMouseUp)},t.prototype.drawSelectionBox=function(){var e=this.state.action.getBoxDimensions();return a.createElement("div",{className:this.bem("__selector"),style:{top:e.top,left:e.left,width:e.width,height:e.height}})},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;t.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink),t.setSmartRoutingStatus(this.props.smartRouting);var n=t.getDiagramModel();return a.createElement("div",i({},this.getProps(),{ref:function(t){t&&e.props.diagramEngine.setCanvas(t)},onWheel:function(r){if(e.props.allowCanvasZoom){r.preventDefault(),r.stopPropagation();var o=n.getZoomLevel()/100,i=e.props.inverseZoom?-r.deltaY:r.deltaY;r.ctrlKey&&i%1!=0?i/=3:i/=60,n.getZoomLevel()+i>10&&n.setZoomLevel(n.getZoomLevel()+i);var a=n.getZoomLevel()/100,s=r.currentTarget.getBoundingClientRect(),l=s.width,u=s.height,c=l*a-l*o,p=u*a-u*o,f=r.clientX-s.left,d=r.clientY-s.top,h=(f-n.getOffsetX())/o/l,g=(d-n.getOffsetY())/o/u;n.setOffset(n.getOffsetX()-c*h,n.getOffsetY()-p*g),t.enableRepaintEntities([]),e.forceUpdate()}},onMouseDown:function(r){e.setState(i({},e.state,{wasMoved:!1})),t.clearRepaintEntities();var o=e.getMouseElement(r);if(null===o)if(r.shiftKey){var a=t.getRelativePoint(r.clientX,r.clientY);e.startFiringAction(new d.SelectingAction(a.x,a.y))}else n.clearSelection(),e.startFiringAction(new p.MoveCanvasAction(r.clientX,r.clientY,n));else if(o.model instanceof m.PortModel)if(e.props.diagramEngine.isModelLocked(o.model))n.clearSelection();else{a=t.getRelativeMousePoint(r);var s=o.model,l=s.createLinkModel();l.setSourcePort(s),l&&(l.removeMiddlePoints(),l.getSourcePort()!==s&&l.setSourcePort(s),l.setTargetPort(null),l.getFirstPoint().updateLocation(a),l.getLastPoint().updateLocation(a),n.clearSelection(),l.getLastPoint().setSelected(!0),n.addLink(l),e.startFiringAction(new f.MoveItemsAction(r.clientX,r.clientY,t)))}else r.shiftKey||o.model.isSelected()||n.clearSelection(),o.model.setSelected(!0),e.startFiringAction(new f.MoveItemsAction(r.clientX,r.clientY,t));e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp)}}),this.state.renderedNodes&&a.createElement(l.LinkLayerWidget,{diagramEngine:t,pointAdded:function(r,o){e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp),o.stopPropagation(),n.clearSelection(r),e.setState({action:new f.MoveItemsAction(o.clientX,o.clientY,t)})}}),a.createElement(u.NodeLayerWidget,{diagramEngine:t}),this.state.action instanceof d.SelectingAction&&this.drawSelectionBox())},t.defaultProps={diagramEngine:null,allowLooseLinks:!0,allowCanvasTranslation:!0,allowCanvasZoom:!0,inverseZoom:!1,maxNumberPointsPerLink:1/0,smartRouting:!1,deleteKeys:[46,8]},t}(n(3).BaseWidget);t.DiagramWidget=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),a=n(1),s=n(35),l=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return a.createElement(s.DefaultNodeWidget,{node:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new i.DefaultNodeModel},t}(n(32).AbstractNodeFactory);t.DefaultNodeFactory=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(37),s=n(36),l=n(19),u=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(a.DefaultLinkWidget,{link:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new l.DefaultLinkModel},t.prototype.generateLinkSegment=function(e,t,n,r){return i.createElement("path",{className:n?t.bem("--path-selected"):"",strokeWidth:e.width,stroke:e.color,d:r})},t}(s.AbstractLinkFactory);t.DefaultLinkFactory=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),a=n(44),s=n(0),l=n(9),u=n(5),c=n(45),p=n(16),f=n(43),d=n(41),h=n(7),g=function(e){function t(){var t=e.call(this)||this;return t.canvasMatrix=[],t.routingMatrix=[],t.hAdjustmentFactor=0,t.vAdjustmentFactor=0,t.calculateMatrixDimensions=function(){var e=s.values(t.diagramModel.nodes).map((function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}})),n=s.values(t.diagramModel.links),r=s.flatMap(n.map((function(e){return[e.sourcePort,e.targetPort]}))).filter((function(e){return null!==e})).map((function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}})),o=s.flatMap(n.map((function(e){return e.points}))).map((function(e){return{x:e.x,width:0,y:e.y,height:0}})),i=t.canvas,a=Math.floor(Math.min(s.minBy(s.concat(e,r,o),(function(e){return e.x})).x,0)/p.ROUTING_SCALING_FACTOR)*p.ROUTING_SCALING_FACTOR,l=s.maxBy(s.concat(e,r,o),(function(e){return e.x+e.width})),u=Math.max(l.x+l.width,i.offsetWidth),c=Math.floor(Math.min(s.minBy(s.concat(e,r,o),(function(e){return e.y})).y,0)/p.ROUTING_SCALING_FACTOR)*p.ROUTING_SCALING_FACTOR,f=s.maxBy(s.concat(e,r,o),(function(e){return e.y+e.height})),d=Math.max(f.y+f.height,i.offsetHeight);return{width:Math.ceil(Math.abs(a)+u),hAdjustmentFactor:Math.abs(a)/p.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(c)+d),vAdjustmentFactor:Math.abs(c)/p.ROUTING_SCALING_FACTOR+1}},t.markNodes=function(e){s.values(t.diagramModel.nodes).forEach((function(n){for(var r=Math.floor(n.x/p.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/p.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/p.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/p.ROUTING_SCALING_FACTOR),s=r-1;s<=o+1;s++)for(var l=i-1;l<a+1;l++)t.markMatrixPoint(e,t.translateRoutingX(s),t.translateRoutingY(l))}))},t.markPorts=function(e){s.flatMap(s.values(t.diagramModel.links).map((function(e){return[].concat(e.sourcePort,e.targetPort)}))).filter((function(e){return null!==e})).forEach((function(n){for(var r=Math.floor(n.x/p.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/p.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/p.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/p.ROUTING_SCALING_FACTOR),s=r-1;s<=o+1;s++)for(var l=i-1;l<a+1;l++)t.markMatrixPoint(e,t.translateRoutingX(s),t.translateRoutingY(l))}))},t.markMatrixPoint=function(e,t,n){void 0!==e[n]&&void 0!==e[n][t]&&(e[n][t]=1)},t.diagramModel=new a.DiagramModel,t.nodeFactories={},t.linkFactories={},t.portFactories={},t.labelFactories={},t.canvas=null,t.paintableWidgets=null,t.linksThatHaveInitiallyRendered={},h.Toolkit.TESTING&&(h.Toolkit.TESTING_UID=0,window&&(window.diagram_instance=t)),t}return o(t,e),t.prototype.installDefaultFactories=function(){this.registerNodeFactory(new c.DefaultNodeFactory),this.registerLinkFactory(new c.DefaultLinkFactory),this.registerPortFactory(new f.DefaultPortFactory),this.registerLabelFactory(new d.DefaultLabelFactory)},t.prototype.repaintCanvas=function(){this.iterateListeners((function(e){e.repaintCanvas&&e.repaintCanvas()}))},t.prototype.clearRepaintEntities=function(){this.paintableWidgets=null},t.prototype.enableRepaintEntities=function(e){var t=this;this.paintableWidgets={},e.forEach((function(e){e instanceof l.NodeModel&&s.forEach(e.getPorts(),(function(e){s.forEach(e.getLinks(),(function(e){t.paintableWidgets[e.getID()]=!0}))})),e instanceof u.PointModel&&(t.paintableWidgets[e.getLink().getID()]=!0),t.paintableWidgets[e.getID()]=!0}))},t.prototype.isModelLocked=function(e){return!!this.diagramModel.isLocked()||e.isLocked()},t.prototype.recalculatePortsVisually=function(){this.nodesRendered=!1,this.linksThatHaveInitiallyRendered={}},t.prototype.canEntityRepaint=function(e){return null===this.paintableWidgets||void 0!==this.paintableWidgets[e.getID()]},t.prototype.setCanvas=function(e){this.canvas=e},t.prototype.setDiagramModel=function(e){this.diagramModel=e,this.recalculatePortsVisually()},t.prototype.getDiagramModel=function(){return this.diagramModel},
- //!-------------- FACTORIES ------------
- t.prototype.getNodeFactories=function(){return this.nodeFactories},t.prototype.getLinkFactories=function(){return this.linkFactories},t.prototype.getLabelFactories=function(){return this.labelFactories},t.prototype.registerLabelFactory=function(e){this.labelFactories[e.getType()]=e,this.iterateListeners((function(e){e.labelFactoriesUpdated&&e.labelFactoriesUpdated()}))},t.prototype.registerPortFactory=function(e){this.portFactories[e.getType()]=e,this.iterateListeners((function(e){e.portFactoriesUpdated&&e.portFactoriesUpdated()}))},t.prototype.registerNodeFactory=function(e){this.nodeFactories[e.getType()]=e,this.iterateListeners((function(e){e.nodeFactoriesUpdated&&e.nodeFactoriesUpdated()}))},t.prototype.registerLinkFactory=function(e){this.linkFactories[e.getType()]=e,this.iterateListeners((function(e){e.linkFactoriesUpdated&&e.linkFactoriesUpdated()}))},t.prototype.getPortFactory=function(e){if(this.portFactories[e])return this.portFactories[e];throw new Error("cannot find factory for port of type: ["+e+"]")},t.prototype.getNodeFactory=function(e){if(this.nodeFactories[e])return this.nodeFactories[e];throw new Error("cannot find factory for node of type: ["+e+"]")},t.prototype.getLinkFactory=function(e){if(this.linkFactories[e])return this.linkFactories[e];throw new Error("cannot find factory for link of type: ["+e+"]")},t.prototype.getLabelFactory=function(e){if(this.labelFactories[e])return this.labelFactories[e];throw new Error("cannot find factory for label of type: ["+e+"]")},t.prototype.getFactoryForNode=function(e){return this.getNodeFactory(e.getType())},t.prototype.getFactoryForLink=function(e){return this.getLinkFactory(e.getType())},t.prototype.getFactoryForLabel=function(e){return this.getLabelFactory(e.getType())},t.prototype.generateWidgetForLink=function(e){var t=this.getFactoryForLink(e);if(!t)throw new Error("Cannot find link factory for link: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.generateWidgetForNode=function(e){var t=this.getFactoryForNode(e);if(!t)throw new Error("Cannot find widget factory for node: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.getRelativeMousePoint=function(e){var t=this.getRelativePoint(e.clientX,e.clientY);return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getRelativePoint=function(e,t){var n=this.canvas.getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getNodeElement=function(e){var t=this.canvas.querySelector('.node[data-nodeid="'+e.getID()+'"]');if(null===t)throw new Error("Cannot find Node element with nodeID: ["+e.getID()+"]");return t},t.prototype.getNodePortElement=function(e){var t=this.canvas.querySelector('.port[data-name="'+e.getName()+'"][data-nodeid="'+e.getParent().getID()+'"]');if(null===t)throw new Error("Cannot find Node Port element with nodeID: ["+e.getParent().getID()+"] and name: ["+e.getName()+"]");return t},t.prototype.getPortCenter=function(e){var t=this.getNodePortElement(e),n=t.getBoundingClientRect(),r=this.getRelativePoint(n.left,n.top);return{x:t.offsetWidth/2+(r.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:t.offsetHeight/2+(r.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getPortCoords=function(e){var t=this.getNodePortElement(e).getBoundingClientRect(),n=this.canvas.getBoundingClientRect();return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-n.left,y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-n.top,width:t.width,height:t.height}},t.prototype.getNodeDimensions=function(e){if(!this.canvas)return{width:0,height:0};var t=this.getNodeElement(e).getBoundingClientRect();return{width:t.width,height:t.height}},t.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink},t.prototype.setMaxNumberPointsPerLink=function(e){this.maxNumberPointsPerLink=e},t.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting},t.prototype.setSmartRoutingStatus=function(e){this.smartRouting=e},t.prototype.getCanvasMatrix=function(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix},t.prototype.calculateCanvasMatrix=function(){var e=this.calculateMatrixDimensions(),t=e.width,n=e.hAdjustmentFactor,r=e.height,o=e.vAdjustmentFactor;this.hAdjustmentFactor=n,this.vAdjustmentFactor=o;var i=Math.ceil(t/p.ROUTING_SCALING_FACTOR),a=Math.ceil(r/p.ROUTING_SCALING_FACTOR);this.canvasMatrix=s.range(0,a).map((function(){return new Array(i).fill(0)}))},t.prototype.getRoutingMatrix=function(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix},t.prototype.calculateRoutingMatrix=function(){var e=s.cloneDeep(this.getCanvasMatrix());this.markNodes(e),this.markPorts(e),this.routingMatrix=e},t.prototype.translateRoutingX=function(e,t){return void 0===t&&(t=!1),e+this.hAdjustmentFactor*(t?-1:1)},t.prototype.translateRoutingY=function(e,t){return void 0===t&&(t=!1),e+this.vAdjustmentFactor*(t?-1:1)},t.prototype.zoomToFit=function(){var e=this.canvas.clientWidth/this.canvas.scrollWidth,t=this.canvas.clientHeight/this.canvas.scrollHeight,n=e<t?e:t;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*n),this.diagramModel.setOffset(0,0),this.repaintCanvas()},t}(i.BaseEntity);t.DiagramEngine=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(e){return e*e},i=function(e,t){var n=r(e,2),i=n[0],a=n[1],s=r(t,2),l=s[0],u=s[1];return Math.sqrt(o(i-l)+o(a-u))};t.default={distPointToPoint:i,distPointToParabol:function(e,t){var n=i(e,t);return 0==n?1/0:o(n)/(2*Math.abs(e[1]-t[1]))},circumCenter:function(e,t,n){var r=(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1]);return 0==r?[1/0,1/0]:[(((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[1]-n[1])-((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[1]-n[1]))/r,(((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[0]-n[0])-((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[0]-n[0]))/r]},parabolsCrossX:function(e,t,n){if(e[1]===t[1])return[(e[0]+t[0])/2,(e[0]+t[0])/2];var r=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n+Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]),o=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n-Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]);return r<o?[r,o]:[o,r]},doHalflinesCross:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?1e-10:arguments[2],r=t.ps[0]-e.ps[0],o=t.ps[1]-e.ps[1];if(e.m==1/0)return e.hp*(t.m*r-o)<=n&&t.vec[0]*r<=n;if(t.m==1/0)return t.hp*(e.m*r-o)>=-n&&e.vec[0]*r>=-n;var i=t.vec[0]*e.vec[1]-t.vec[1]*e.vec[0];if(0===i)return!1;var a=(o*t.vec[0]-r*t.vec[1])/i,s=(o*e.vec[0]-r*e.vec[1])/i;return a>=-n&&s>=n||a>=n&&s>=-n},matrixTransform:function(e,t){return e.map((function(e){return{x:e.x*t[0]+e.y*t[2]+t[4],y:e.x*t[1]+e.y*t[3]+t[5]}}))},transformEllipse:function(e,t,n,r){var o=Math.PI/180,i=Math.cos(n*o),a=Math.sin(n*o),s=[e*(r[0]*i+r[2]*a),e*(r[1]*i+r[3]*a),t*(-r[0]*a+r[2]*i),t*(-r[1]*a+r[3]*i)],l=s[0]*s[0]+s[2]*s[2],u=s[1]*s[1]+s[3]*s[3],c=((s[0]-s[3])*(s[0]-s[3])+(s[2]+s[1])*(s[2]+s[1]))*((s[0]+s[3])*(s[0]+s[3])+(s[2]-s[1])*(s[2]-s[1])),p=(l+u)/2;if(c<1e-10*p)return{rx:Math.sqrt(p),ry:Math.sqrt(p),ax:0,isDegenerate:!1};var f=s[0]*s[1]+s[2]*s[3],d=p+(c=Math.sqrt(c))/2,h=p-c/2,g=void 0,m=void 0,v=void 0;return(g=Math.abs(f)<1e-10&&Math.abs(d-u)<1e-10?90:180*Math.atan(Math.abs(f)>Math.abs(d-u)?(d-l)/f:f/(d-u))/Math.PI)>=0?(m=Math.sqrt(d),v=Math.sqrt(h)):(g+=90,m=Math.sqrt(h),v=Math.sqrt(d)),{rx:m,ry:v,ax:g,isDegenerate:m<1e-10*v||v<1e-10*m}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(50),i=function e(t){var n=t||[],i=function(e){return e.command+" "+e.params.map((function(e){return t=6,function(e,t){for(var n=e.length;"0"===e.charAt(n-1);)n-=1;return"."===e.charAt(n-1)&&(n-=1),e.substr(0,n)}(e.toFixed(t));var t})).join(" ")},a=function(e,t){var n=e.command,r=e.params;switch(n){case"M":case"L":return[r[0],r[1]];case"H":return[r[0],t[1]];case"V":return[t[0],r[0]];case"Z":return null;case"C":return[r[4],r[5]];case"S":case"Q":return[r[2],r[3]];case"T":return[r[0],r[1]];case"A":return[r[5],r[6]]}},s=function(e,t,n){var r=e.params,i={V:function(e,t,n){var i=[{x:n[0],y:r[1]}],a=(0,o.matrixTransform)(i,t);return a[0].x===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].x?{command:"V",params:[a[0].y]}:{command:"L",params:[a[0].x,a[0].y]}},H:function(e,t,n){var i=[{x:r[0],y:n[1]}],a=(0,o.matrixTransform)(i,t);return a[0].y===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].y?{command:"H",params:[a[0].x]}:{command:"L",params:[a[0].x,a[0].y]}},A:function(e,t,n){var i=(0,o.transformEllipse)(r[0],r[1],r[2],t),a=r[4];t[0]*t[3]-t[1]*t[2]<0&&(a=a?"0":"1");var s=[{x:r[5],y:r[6]}],l=(0,o.matrixTransform)(s,t);return i.isDegenerate?{command:"L",params:[l[0].x,l[0].y]}:{command:"A",params:[i.rx,i.ry,i.ax,r[3],a,l[0].x,l[0].y]}},C:function(e,t,n){var i=[{x:r[0],y:r[1]},{x:r[2],y:r[3]},{x:r[4],y:r[5]}],a=(0,o.matrixTransform)(i,t);return{command:"C",params:[a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y]}},Z:function(e,t,n){return{command:"Z",params:[]}},default:function(e,t,n){var i=[{x:r[0],y:r[1]}],a=(0,o.matrixTransform)(i,t),s=e.params.slice(0,e.params.length);return s.splice(0,2,a[0].x,a[0].y),{command:e.command,params:s}}};return i[e.command]?i[e.command](e,t,n):i.default(e,t,n)},l=function(e,t){return function(n){var r="object"==typeof n?e.map((function(e){return n[e]})):arguments;return t.apply(null,r)}},u=function(t){return e((o=t,(i=(r=n).slice(0,r.length)).push(o),i));var r,o,i};return{moveto:l(["x","y"],(function(e,t){return u({command:"M",params:[e,t]})})),lineto:l(["x","y"],(function(e,t){return u({command:"L",params:[e,t]})})),hlineto:l(["x"],(function(e){return u({command:"H",params:[e]})})),vlineto:l(["y"],(function(e){return u({command:"V",params:[e]})})),closepath:function(){return u({command:"Z",params:[]})},curveto:l(["x1","y1","x2","y2","x","y"],(function(e,t,n,r,o,i){return u({command:"C",params:[e,t,n,r,o,i]})})),smoothcurveto:l(["x2","y2","x","y"],(function(e,t,n,r){return u({command:"S",params:[e,t,n,r]})})),qcurveto:l(["x1","y1","x","y"],(function(e,t,n,r){return u({command:"Q",params:[e,t,n,r]})})),smoothqcurveto:l(["x","y"],(function(e,t){return u({command:"T",params:[e,t]})})),arc:l(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],(function(e,t,n,r,o,i,a){return u({command:"A",params:[e,t,n,r,o,i,a]})})),translate:l(["dx","dy"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(0===t&&0===t)return e(n);var o,i,l,u=(o=[0,0],i=[1,0,0,1,t,r],l=n.map((function(e){var t=s(e,i,o);return o=a(e,o),t})),{v:e(l)});return"object"==typeof u?u.v:void 0})),rotate:l(["angle","rx","ry"],(function(t){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(0===t)return e(n);var i=function(){var i=void 0,l=void 0,u=n;0!==r&&0!==o&&(i=[0,0],l=[1,0,0,1,-r,-o],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t})));var c=t*Math.PI/180,p=Math.cos(c),f=Math.sin(c);return i=[0,0],l=[p,f,-f,p,0,0],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t})),0!==r&&0!==o&&(i=[0,0],l=[1,0,0,1,r,o],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t}))),{v:e(u)}}();return"object"==typeof i?i.v:void 0})),scale:l(["sx","sy"],(function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){if(1===t&&1===r)return e(n);var o,i,l,u=(o=[0,0],i=[t,0,0,r,0,0],l=n.map((function(e){var t=s(e,i,o);return o=a(e,o),t})),{v:e(l)});return"object"==typeof u?u.v:void 0}()})),shearX:l(["angle"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,l=(r=[0,0],o=[1,0,Math.tan(t*Math.PI/180),1,0,0],i=n.map((function(e){var t=s(e,o,r);return r=a(e,r),t})),{v:e(i)});return"object"==typeof l?l.v:void 0})),shearY:l(["angle"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,l=(r=[0,0],o=[1,Math.tan(t*Math.PI/180),0,1,0,0],i=n.map((function(e){var t=s(e,o,r);return r=a(e,r),t})),{v:e(i)});return"object"==typeof l?l.v:void 0})),print:function(){return n.map(i).join(" ")},toString:function(){return(void 0).print()},points:function(){var e=[],t=[0,0],r=!0,o=!1,i=void 0;try{for(var s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value,c=a(u,t);t=c,c&&e.push(c)}}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return e},instructions:function(){return n.slice(0,n.length)},connect:function(t){var o,i,a,s,l,u,c,p=this.points(),f=p[p.length-1],d=t.points()[0],h=void 0;return"Z"!==n[n.length-1].command?(h=t.instructions().slice(1),o=d,i=r(f,2),a=i[0],s=i[1],l=r(o,2),u=l[0],c=l[1],(a!==u||s!==c)&&h.unshift({command:"L",params:d})):h=t.instructions(),e(this.instructions().concat(h))}}};t.default=function(){return i()},e.exports=t.default},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return o.isWalkableAt(e+i,t)||o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,p=e.x,f=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(f-n)/Math.max(Math.abs(f-n),1),0!==r&&0!==i?(d.isWalkableAt(p,f+i)&&h.push([p,f+i]),d.isWalkableAt(p+r,f)&&h.push([p+r,f]),(d.isWalkableAt(p,f+i)||d.isWalkableAt(p+r,f))&&h.push([p+r,f+i]),!d.isWalkableAt(p-r,f)&&d.isWalkableAt(p,f+i)&&h.push([p-r,f+i]),!d.isWalkableAt(p,f-i)&&d.isWalkableAt(p+r,f)&&h.push([p+r,f-i])):0===r?d.isWalkableAt(p,f+i)&&(h.push([p,f+i]),d.isWalkableAt(p+1,f)||h.push([p+1,f+i]),d.isWalkableAt(p-1,f)||h.push([p-1,f+i])):d.isWalkableAt(p+r,f)&&(h.push([p+r,f]),d.isWalkableAt(p,f+1)||h.push([p+r,f+1]),d.isWalkableAt(p,f-1)||h.push([p+r,f-1]));else for(l=0,u=(a=d.getNeighbors(e,o.IfAtMostOneObstacle)).length;l<u;++l)s=a[l],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else if(0!==a&&(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a)))return[e,t];return o.isWalkableAt(e+i,t)&&o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c,p=e.parent,f=e.x,d=e.y,h=this.grid,g=[];if(p){if(t=p.x,n=p.y,r=(f-t)/Math.max(Math.abs(f-t),1),i=(d-n)/Math.max(Math.abs(d-n),1),0!==r&&0!==i)h.isWalkableAt(f,d+i)&&g.push([f,d+i]),h.isWalkableAt(f+r,d)&&g.push([f+r,d]),h.isWalkableAt(f,d+i)&&h.isWalkableAt(f+r,d)&&g.push([f+r,d+i]);else if(0!==r){c=h.isWalkableAt(f+r,d);var m=h.isWalkableAt(f,d+1),v=h.isWalkableAt(f,d-1);c&&(g.push([f+r,d]),m&&g.push([f+r,d+1]),v&&g.push([f+r,d-1])),m&&g.push([f,d+1]),v&&g.push([f,d-1])}else if(0!==i){c=h.isWalkableAt(f,d+i);var y=h.isWalkableAt(f+1,d),b=h.isWalkableAt(f-1,d);c&&(g.push([f,d+i]),y&&g.push([f+1,d+i]),b&&g.push([f-1,d+i])),y&&g.push([f+1,d]),b&&g.push([f-1,d])}}else for(l=0,u=(a=h.getNeighbors(e,o.OnlyWhenNoObstacles)).length;l<u;++l)s=a[l],g.push([s.x,s.y]);return g},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,p=e.x,f=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(f-n)/Math.max(Math.abs(f-n),1),0!==r&&0!==i?(d.isWalkableAt(p,f+i)&&h.push([p,f+i]),d.isWalkableAt(p+r,f)&&h.push([p+r,f]),d.isWalkableAt(p+r,f+i)&&h.push([p+r,f+i]),d.isWalkableAt(p-r,f)||h.push([p-r,f+i]),d.isWalkableAt(p,f-i)||h.push([p+r,f-i])):0===r?(d.isWalkableAt(p,f+i)&&h.push([p,f+i]),d.isWalkableAt(p+1,f)||h.push([p+1,f+i]),d.isWalkableAt(p-1,f)||h.push([p-1,f+i])):(d.isWalkableAt(p+r,f)&&h.push([p+r,f]),d.isWalkableAt(p,f+1)||h.push([p+r,f+1]),d.isWalkableAt(p,f-1)||h.push([p+r,f-1]));else for(l=0,u=(a=d.getNeighbors(e,o.Always)).length;l<u;++l)s=a[l],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a))return[e,t];if(this._jump(e+1,t,e,t)||this._jump(e-1,t,e,t))return[e,t]}return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,p=e.x,f=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(f-n)/Math.max(Math.abs(f-n),1),0!==r?(d.isWalkableAt(p,f-1)&&h.push([p,f-1]),d.isWalkableAt(p,f+1)&&h.push([p,f+1]),d.isWalkableAt(p+r,f)&&h.push([p+r,f])):0!==i&&(d.isWalkableAt(p-1,f)&&h.push([p-1,f]),d.isWalkableAt(p+1,f)&&h.push([p+1,f]),d.isWalkableAt(p,f+i)&&h.push([p,f+i]));else for(l=0,u=(a=d.getNeighbors(e,o.Never)).length;l<u;++l)s=a[l],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(2),o=n(55),i=n(54),a=n(53),s=n(52);e.exports=function(e){return(e=e||{}).diagonalMovement===r.Never?new o(e):e.diagonalMovement===r.Always?new i(e):e.diagonalMovement===r.OnlyWhenNoObstacles?new a(e):new s(e)}},function(e,t,n){n(4);var r=n(10),o=n(24),i=n(2);function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||r.manhattan,this.weight=e.weight||1,this.trackRecursion=e.trackRecursion||!1,this.timeLimit=e.timeLimit||1/0,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=i.OnlyWhenNoObstacles:this.diagonalMovement=i.IfAtMostOneObstacle:this.diagonalMovement=i.Never),this.diagonalMovement===i.Never?this.heuristic=e.heuristic||r.manhattan:this.heuristic=e.heuristic||r.octile}a.prototype.findPath=function(e,t,n,r,i){var a,s,l,u=(new Date).getTime(),c=function(e,t){return this.heuristic(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}.bind(this),p=function(e,t,n,r,a){if(this.timeLimit>0&&(new Date).getTime()-u>1e3*this.timeLimit)return 1/0;var s,l,f,h,g=t+c(e,d)*this.weight;if(g>n)return g;if(e==d)return r[a]=[e.x,e.y],e;var m,v,y=i.getNeighbors(e,this.diagonalMovement);for(f=0,s=1/0;h=y[f];++f){if(this.trackRecursion&&(h.retainCount=h.retainCount+1||1,!0!==h.tested&&(h.tested=!0)),(l=p(h,t+(v=h,(m=e).x===v.x||m.y===v.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[e.x,e.y],l;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),l<s&&(s=l)}return s}.bind(this),f=i.getNodeAt(e,t),d=i.getNodeAt(n,r),h=c(f,d);for(a=0;;++a){if((l=p(f,0,h,s=[],0))===1/0)return[];if(l instanceof o)return s;h=l}return[]},e.exports=a},function(e,t,n){var r=n(22);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,l,u,c,p=i.getNodeAt(e,t),f=i.getNodeAt(n,o),d=[],h=[],g=this.diagonalMovement;for(d.push(p),p.opened=!0,p.by=0,h.push(f),f.opened=!0,f.by=1;d.length&&h.length;){for((l=d.shift()).closed=!0,u=0,c=(a=i.getNeighbors(l,g)).length;u<c;++u)if(!(s=a[u]).closed)if(s.opened){if(1===s.by)return r.biBacktrace(l,s)}else d.push(s),s.parent=l,s.opened=!0,s.by=0;for((l=h.shift()).closed=!0,u=0,c=(a=i.getNeighbors(l,g)).length;u<c;++u)if(!(s=a[u]).closed)if(s.opened){if(0===s.by)return r.biBacktrace(s,l)}else h.push(s),s.parent=l,s.opened=!0,s.by=1}return[]},e.exports=i},function(e,t,n){var r=n(22);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(23);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,l,u,c,p=[],f=this.diagonalMovement,d=i.getNodeAt(e,t),h=i.getNodeAt(n,o);for(p.push(d),d.opened=!0;p.length;){if((l=p.shift()).closed=!0,l===h)return r.backtrace(h);for(u=0,c=(a=i.getNeighbors(l,f)).length;u<c;++u)(s=a[u]).closed||s.opened||(p.push(s),s.opened=!0,s.parent=l)}return[]},e.exports=i},function(e,t,n){var r=n(23);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(24),o=n(2);function i(e,t,n){var r;"object"!=typeof e?r=e:(t=e.length,r=e[0].length,n=e),this.width=r,this.height=t,this.nodes=this._buildNodes(r,t,n)}i.prototype._buildNodes=function(e,t,n){var o,i,a=new Array(t);for(o=0;o<t;++o)for(a[o]=new Array(e),i=0;i<e;++i)a[o][i]=new r(i,o);if(void 0===n)return a;if(n.length!==t||n[0].length!==e)throw new Error("Matrix size does not fit");for(o=0;o<t;++o)for(i=0;i<e;++i)n[o][i]&&(a[o][i].walkable=!1);return a},i.prototype.getNodeAt=function(e,t){return this.nodes[t][e]},i.prototype.isWalkableAt=function(e,t){return this.isInside(e,t)&&this.nodes[t][e].walkable},i.prototype.isInside=function(e,t){return e>=0&&e<this.width&&t>=0&&t<this.height},i.prototype.setWalkableAt=function(e,t,n){this.nodes[t][e].walkable=n},i.prototype.getNeighbors=function(e,t){var n=e.x,r=e.y,i=[],a=!1,s=!1,l=!1,u=!1,c=!1,p=!1,f=!1,d=!1,h=this.nodes;if(this.isWalkableAt(n,r-1)&&(i.push(h[r-1][n]),a=!0),this.isWalkableAt(n+1,r)&&(i.push(h[r][n+1]),l=!0),this.isWalkableAt(n,r+1)&&(i.push(h[r+1][n]),c=!0),this.isWalkableAt(n-1,r)&&(i.push(h[r][n-1]),f=!0),t===o.Never)return i;if(t===o.OnlyWhenNoObstacles)s=f&&a,u=a&&l,p=l&&c,d=c&&f;else if(t===o.IfAtMostOneObstacle)s=f||a,u=a||l,p=l||c,d=c||f;else{if(t!==o.Always)throw new Error("Incorrect value of diagonalMovement");s=!0,u=!0,p=!0,d=!0}return s&&this.isWalkableAt(n-1,r-1)&&i.push(h[r-1][n-1]),u&&this.isWalkableAt(n+1,r-1)&&i.push(h[r-1][n+1]),p&&this.isWalkableAt(n+1,r+1)&&i.push(h[r+1][n+1]),d&&this.isWalkableAt(n-1,r+1)&&i.push(h[r+1][n-1]),i},i.prototype.clone=function(){var e,t,n=this.width,o=this.height,a=this.nodes,s=new i(n,o),l=new Array(o);for(e=0;e<o;++e)for(l[e]=new Array(n),t=0;t<n;++t)l[e][t]=new r(t,e,a[e][t].walkable);return s.nodes=l,s},e.exports=i},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,n){(function(e){(function(){var t,n,r,o,i,a,s,l,u,c,p,f,d,h,g;r=Math.floor,c=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},u=function(e,t,o,i,a){var s;if(null==o&&(o=0),null==a&&(a=n),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);o<i;)a(t,e[s=r((o+i)/2)])<0?i=s:o=s+1;return[].splice.apply(e,[o,o-o].concat(t)),t},a=function(e,t,r){return null==r&&(r=n),e.push(t),h(e,0,e.length-1,r)},i=function(e,t){var r,o;return null==t&&(t=n),r=e.pop(),e.length?(o=e[0],e[0]=r,g(e,0,t)):o=r,o},l=function(e,t,r){var o;return null==r&&(r=n),o=e[0],e[0]=t,g(e,0,r),o},s=function(e,t,r){var o;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],g(e,0,r)),t},o=function(e,t){var o,i,a,s,l,u;for(null==t&&(t=n),l=[],i=0,a=(s=function(){u=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)u.push(t);return u}.apply(this).reverse()).length;i<a;i++)o=s[i],l.push(g(e,o,t));return l},d=function(e,t,r){var o;if(null==r&&(r=n),-1!==(o=e.indexOf(t)))return h(e,0,o,r),g(e,o,r)},p=function(e,t,r){var i,a,l,u,c;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(o(a,r),l=0,u=(c=e.slice(t)).length;l<u;l++)i=c[l],s(a,i,r);return a.sort(r).reverse()},f=function(e,t,r){var a,s,l,p,f,d,h,g,m;if(null==r&&(r=n),10*t<=e.length){if(!(l=e.slice(0,t).sort(r)).length)return l;for(s=l[l.length-1],p=0,d=(h=e.slice(t)).length;p<d;p++)r(a=h[p],s)<0&&(u(l,a,0,null,r),l.pop(),s=l[l.length-1]);return l}for(o(e,r),m=[],f=0,g=c(t,e.length);0<=g?f<g:f>g;0<=g?++f:--f)m.push(i(e,r));return m},h=function(e,t,r,o){var i,a,s;for(null==o&&(o=n),i=e[r];r>t&&o(i,a=e[s=r-1>>1])<0;)e[r]=a,r=s;return e[r]=i},g=function(e,t,r){var o,i,a,s,l;for(null==r&&(r=n),i=e.length,l=t,a=e[t],o=2*t+1;o<i;)(s=o+1)<i&&!(r(e[o],e[s])<0)&&(o=s),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,h(e,l,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=i,e.replace=l,e.pushpop=s,e.heapify=o,e.updateItem=d,e.nlargest=p,e.nsmallest=f,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return s(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return o(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return d(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(null!=e?e.exports:void 0)?e.exports=t:window.Heap=t}).call(this)}).call(this,n(65)(e))},function(e,t,n){e.exports={Heap:n(15),Node:n(24),Grid:n(64),Util:n(4),DiagonalMovement:n(2),Heuristic:n(10),AStarFinder:n(23),BestFirstFinder:n(63),BreadthFirstFinder:n(62),DijkstraFinder:n(61),BiAStarFinder:n(22),BiBestFirstFinder:n(60),BiBreadthFirstFinder:n(59),BiDijkstraFinder:n(58),IDAStarFinder:n(57),JumpPointFinder:n(56)}},function(e,t,n){e.exports=n(67)},function(e,t){var n=Element.prototype,r=n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;e.exports=function(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),o=0;o<n.length;++o)if(n[o]==e)return!0;return!1}},function(e,t,n){var r=n(69);e.exports=function(e,t,n){for(var o=n?e:e.parentNode;o&&o!==document;){if(r(o,t))return o;o=o.parentNode}}}])},e.exports=r(n(131),n(0))},function(e,t,n){e.exports=n(135)()},function(e,t,n){var r;try{r={cloneDeep:n(258),constant:n(62),defaults:n(259),each:n(91),filter:n(94),find:n(260),flatten:n(121),forEach:n(92),forIn:n(265),has:n(105),isUndefined:n(106),last:n(266),map:n(107),mapValues:n(267),max:n(268),merge:n(270),min:n(276),minBy:n(277),now:n(278),pick:n(279),range:n(284),reduce:n(109),sortBy:n(287),uniqueId:n(292),values:n(114),zipObject:n(293)}}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(4),o=n(9).Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(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:i,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,i=e.y,a=t.x-o,s=t.y-i,l=e.width/2,u=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][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,i=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%i!=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 i(e,"border",o,t)},maxRank:a,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(146),constant:n(62),each:n(91),filter:n(94),has:n(105),isArray:n(5),isEmpty:n(222),isFunction:n(28),isUndefined:n(106),keys:n(14),map:n(107),reduce:n(109),size:n(225),transform:n(231),union:n(232),values:n(114)}}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(144)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(74),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(28),o=n(56);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(202),o=n(212),i=n(17),a=n(5),s=n(219);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(77),o=n(58),i=n(12);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(157),o=n(162);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(158),i=n(159),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return 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){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=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){return document.querySelector(e)},l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=s.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,c=0,p=[],f=n(139);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(b(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function g(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=p[p.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=u||(u=v(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),g(e,t),t}(t),r=E.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=k.bind(null,n),o=function(){m(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){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&d(h(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var w,_=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function k(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(10).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(10),o=n(178),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l}).call(this,n(33)(e))},function(e,t,n){var r=n(77),o=n(182),i=n(12);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(187),o=n(53),i=n(188),a=n(86),s=n(189),l=n(16),u=n(75),c=u(r),p=u(o),f=u(i),d=u(a),h=u(s),g=l;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||i&&"[object Promise]"!=g(i.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(16),o=n(11),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},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(128)},function(e,t,n){var r=n(16),o=n(8),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},function(e,t,n){var r=n(39),o=n(40);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},function(e,t,n){var r=n(177),o=n(11),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(179),o=n(42),i=n(57),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(26),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},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,n){var r=n(35),o=n(152),i=n(153),a=n(154),s=n(155),l=n(156);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(147),o=n(148),i=n(149),a=n(150),s=n(151);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=i,l.prototype.has=a,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(171);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(40),o=n(21),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(76);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=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.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(78)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(63),o=n(200)(r);e.exports=o},function(e,t,n){var r=n(5),o=n(67),i=n(214),a=n(101);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(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(17),o=n(110),i=n(111);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(21),o=n(12),i=n(41),a=n(8);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(4);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))},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";var r,o=n(0),i=n.n(o),a=n(27),s=n(1);!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.Custom=6]="Custom"}(r||(r={}));var l=function(){function e(){}return e.ReadBoolean=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?"true"===localStorage.getItem(e):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreBoolean=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t?"true":"false")}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e.ReadNumber=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?parseFloat(localStorage.getItem(e)):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreNumber=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t.toString())}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e}(),u=function(){this.onSelectionChangedObservable=new s.Observable,this.onRebuildRequiredObservable=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.blockKeyboardEvents=!1,this.previewMeshType=l.ReadNumber("PreviewMeshType",r.Box),this.backFaceCulling=l.ReadBoolean("BackFaceCulling",!0),this.depthPrePass=l.ReadBoolean("DepthPrePass",!1),this.hemisphericLight=l.ReadBoolean("HemisphericLight",!0),this.directionalLight0=l.ReadBoolean("DirectionalLight0",!1),this.directionalLight1=l.ReadBoolean("DirectionalLight1",!1),this.controlCamera=l.ReadBoolean("ControlCamera",!0);var e=l.ReadNumber("BackgroundColorR",.37),t=l.ReadNumber("BackgroundColorG",.37),n=l.ReadNumber("BackgroundColorB",.37);this.backgroundColor=new s.Color4(e,t,n,1)},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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return(f=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)};var d=n(2),h=function(e){function t(t){var n=e.call(this,"srd-port",t)||this;return n.state={selected:!1},n}return p(t,e),t.prototype.getClassName=function(){return"port "+e.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},t.prototype.render=function(){var e=this;return o.createElement("div",f({style:this.props.style},this.getProps(),{onMouseEnter:function(){e.setState({selected:!0})},onMouseLeave:function(){e.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},t}(d.BaseWidget),g=function(){function e(){}return e.GetBlockFromString=function(e,t,n){switch(e){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");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"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 i=new s.TrigonometryBlock("Sin");return i.operation=s.TrigonometryBlockOperations.Sin,i;case"AbsBlock":var a=new s.TrigonometryBlock("Abs");return a.operation=s.TrigonometryBlockOperations.Abs,a;case"SqrtBlock":var l=new s.TrigonometryBlock("Sqrt");return l.operation=s.TrigonometryBlockOperations.Sqrt,l;case"ArcCosBlock":var u=new s.TrigonometryBlock("ArcCos");return u.operation=s.TrigonometryBlockOperations.ArcCos,u;case"ArcSinBlock":var c=new s.TrigonometryBlock("ArcSin");return c.operation=s.TrigonometryBlockOperations.ArcSin,c;case"TanBlock":var p=new s.TrigonometryBlock("Tan");return p.operation=s.TrigonometryBlockOperations.Tan,p;case"ArcTanBlock":var f=new s.TrigonometryBlock("ArcTan");return f.operation=s.TrigonometryBlockOperations.ArcTan,f;case"FractBlock":var d=new s.TrigonometryBlock("Fract");return d.operation=s.TrigonometryBlockOperations.Fract,d;case"SignBlock":var h=new s.TrigonometryBlock("Sign");return h.operation=s.TrigonometryBlockOperations.Sign,h;case"LogBlock":var g=new s.TrigonometryBlock("Log");return g.operation=s.TrigonometryBlockOperations.Log,g;case"ExpBlock":var m=new s.TrigonometryBlock("Exp");return m.operation=s.TrigonometryBlockOperations.Exp,m;case"Exp2Block":var v=new s.TrigonometryBlock("Exp2");return v.operation=s.TrigonometryBlockOperations.Exp2,v;case"DegreesToRadiansBlock":var y=new s.TrigonometryBlock("Degrees to radians");return y.operation=s.TrigonometryBlockOperations.Radians,y;case"RadiansToDegreesBlock":var b=new s.TrigonometryBlock("Radians to degrees");return b.operation=s.TrigonometryBlockOperations.Degrees,b;case"RoundBlock":var w=new s.TrigonometryBlock("Round");return w.operation=s.TrigonometryBlockOperations.Round,w;case"CeilingBlock":var _=new s.TrigonometryBlock("Ceiling");return _.operation=s.TrigonometryBlockOperations.Ceiling,_;case"FloorBlock":var x=new s.TrigonometryBlock("Floor");return x.operation=s.TrigonometryBlockOperations.Floor,x;case"SawToothWaveBlock":var k=new s.WaveBlock("SawTooth wave");return k.kind=s.WaveBlockKind.SawTooth,k;case"SquareWaveBlock":var E=new s.WaveBlock("Square wave");return E.kind=s.WaveBlockKind.Square,E;case"TriangleWaveBlock":var C=new s.WaveBlock("Triangle wave");return C.kind=s.WaveBlockKind.Triangle,C;case"WorldMatrixBlock":return(G=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World),G;case"WorldViewMatrixBlock":var S=new s.InputBlock("World x View");return S.setAsSystemValue(s.NodeMaterialSystemValues.WorldView),S;case"WorldViewProjectionMatrixBlock":var N=new s.InputBlock("World x View x Projection");return N.setAsSystemValue(s.NodeMaterialSystemValues.WorldViewProjection),N;case"ViewMatrixBlock":var P=new s.InputBlock("View");return P.setAsSystemValue(s.NodeMaterialSystemValues.View),P;case"ViewProjectionMatrixBlock":var T=new s.InputBlock("View x Projection");return T.setAsSystemValue(s.NodeMaterialSystemValues.ViewProjection),T;case"ProjectionMatrixBlock":var M=new s.InputBlock("Projection");return M.setAsSystemValue(s.NodeMaterialSystemValues.Projection),M;case"CameraPositionBlock":var O=new s.InputBlock("Camera position");return O.setAsSystemValue(s.NodeMaterialSystemValues.CameraPosition),O;case"FogColorBlock":var L=new s.InputBlock("Fog color");return L.setAsSystemValue(s.NodeMaterialSystemValues.FogColor),L;case"PositionBlock":var A=new s.InputBlock("position");return A.setAsAttribute("position"),A;case"UVBlock":var B=new s.InputBlock("uv");return B.setAsAttribute("uv"),B;case"ColorBlock":var j=new s.InputBlock("color");return j.setAsAttribute("color"),j;case"NormalBlock":var I=new s.InputBlock("normal");return I.setAsAttribute("normal"),I;case"TangentBlock":var R=new s.InputBlock("tangent");return R.setAsAttribute("tangent"),R;case"MatrixIndicesBlock":var D=new s.InputBlock("matricesIndices");return D.setAsAttribute("matricesIndices"),D;case"MatrixWeightsBlock":var F=new s.InputBlock("matricesWeights");return F.setAsAttribute("matricesWeights"),F;case"TimeBlock":var z=new s.InputBlock("Time",void 0,s.NodeMaterialBlockConnectionPointTypes.Float);return z.animationType=s.AnimatedInputBlockTypes.Time,z;case"DeltaTimeBlock":var U=new s.InputBlock("Delta time");return U.setAsSystemValue(s.NodeMaterialSystemValues.DeltaTime),U;case"WorldPositionBlock":var W=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"position"===e.name}));W||(W=new s.InputBlock("position")).setAsAttribute("position"),(G=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===s.NodeMaterialSystemValues.World})))||(G=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World);var V=new s.TransformBlock("World position");return W.connectTo(V),G.connectTo(V),V;case"WorldNormalBlock":var G,Y=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"normal"===e.name}));Y||(Y=new s.InputBlock("normal")).setAsAttribute("normal"),(G=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===s.NodeMaterialSystemValues.World})))||(G=new s.InputBlock("World")).setAsSystemValue(s.NodeMaterialSystemValues.World);V=new s.TransformBlock("World normal");return Y.connectTo(V),G.connectTo(V),V}return null},e.GetColorFromConnectionNodeType=function(e){var t="Red";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"}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}(),m=function(){function e(){}return e._GetPortTypeIndicator=function(e){switch(e.type){case s.NodeMaterialBlockConnectionPointTypes.Float:case s.NodeMaterialBlockConnectionPointTypes.Int:return o.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+"});case s.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4="});case s.NodeMaterialBlockConnectionPointTypes.Vector3:case s.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4="});case s.NodeMaterialBlockConnectionPointTypes.Vector4:case s.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4="});case s.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg=="})}return null},e._GetPortStyle=function(e){return{background:g.GetColorFromConnectionNodeType(e)}},e.GenerateOutputPorts=function(e,t){if(!e)return new Array;var n=[];for(var r in e.ports){var i=e.ports[r];if("output"===i.position){var a=this._GetPortTypeIndicator(i.connection),s=this._GetPortStyle(i.connection.type);n.push(o.createElement("div",{key:r,title:i.name,className:"output-port"},!t&&o.createElement("div",{className:"output-port-label"},i.connection.name),o.createElement("div",{className:"output-port-plug"},o.createElement(h,{key:r,name:i.name,node:e,style:s}),o.createElement("div",{className:"output-port-type"},a))))}}return n},e.GenerateInputPorts=function(e,t,n){if(void 0===n&&(n=!1),!e)return new Array;var r=[];for(var i in e.ports){var a=e.ports[i];if("input"===a.position){var s=this._GetPortTypeIndicator(a.connection),l=this._GetPortStyle(a.connection.type);t&&-1===t.indexOf(a.name)||r.push(o.createElement("div",{key:i,title:a.name,className:"input-port"},o.createElement("div",{className:"input-port-plug"},o.createElement(h,{key:i,name:a.name,node:e,style:l}),o.createElement("div",{className:"input-port-type"},s)),!n&&o.createElement("div",{className:"input-port-label"},a.connection.name)))}}return r},e}(),v=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e="";this.props.node&&this.props.node.block&&(e=this.props.node.block.name);var t=m.GenerateOutputPorts(this.props.node,!1),n=m.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock"+(0===t.length?" output":"")},o.createElement("div",{className:"header"},e),o.createElement("div",{className:"inputs"},n),o.createElement("div",{className:"outputs"},t))},t}(o.Component),y=function(e){function t(){return e.call(this,"advanced")||this}return p(t,e),t}(d.DefaultLinkModel),b=function(e){function t(n,r){void 0===r&&(r="input");var o=e.call(this,n,"generic")||this;return o.connection=null,o.position=r,t.idCounter++,o}return p(t,e),t.prototype.canLinkToPort=function(e){return!this.connection||!e.connection||this.connection.canConnectTo(e.connection)},t.prototype.syncWithNodeMaterialConnectionPoint=function(e){this.connection=e,this.name=e.name},t.prototype.getNodeModel=function(){return this.parent},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.createLinkModel=function(){return new y},t.SortInputOutput=function(e,t){return e&&t?"output"==e.position&&"input"==t.position?{input:t,output:e}:"output"==t.position&&"input"==e.position?{input:e,output:t}:null:null},t.idCounter=0,t}(d.PortModel),w=function(e){function t(t){var n=e.call(this,t)||this;return n.block=null,n}return p(t,e),t.prototype.prepare=function(e,t,n,r){var o=this;this.block=e.nodeMaterialBlock||null,e.nodeMaterialBlock&&(e.nodeMaterialBlock._outputs.forEach((function(e){var t=new b(e.name,"output");t.syncWithNodeMaterialConnectionPoint(e),o.addPort(t)})),e.nodeMaterialBlock._inputs.forEach((function(e){var i=new b(e.name,"input");if(i.connection=e,o.addPort(i),e.connectedPoint){var a=t.filter((function(t){return t.block===e._connectedPoint._ownerBlock})),s=(0==a.length?r.createNodeFromObject({nodeMaterialBlock:e.connectedPoint._ownerBlock}):a[0]).ports[e.connectedPoint.name].link(i);r._toAdd?r._toAdd.push(s):n.addAll(s)}})))},t.prototype.renderProperties=function(e){return null},t}(d.NodeModel),_=function(e){function t(t){return e.call(this,t)||this}return p(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),x=n(70),k=n(3),E=n.n(k);function C(e){return(C="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 S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(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){S(e,t,n[t])}))}return e}function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function T(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 M(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var O=!1;try{O=!0}catch(e){}function L(e){return null===e?null:"object"===C(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 A(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?S({},e,t):{}}function B(e){var t=e.icon,n=e.mask,r=e.symbol,o=e.className,i=e.title,a=L(t),s=A("classes",[].concat(T(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,s=e.listItem,l=e.flip,u=e.size,c=e.rotation,p=e.pull,f=(S(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":s,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(u),void 0!==u),S(t,"fa-rotate-".concat(c),void 0!==c),S(t,"fa-pull-".concat(p),void 0!==p),S(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(f).map((function(e){return f[e]?e:null})).filter((function(e){return e}))}(e)),T(o.split(" ")))),l=A("transform","string"==typeof e.transform?x.b.transform(e.transform):e.transform),u=A("mask",L(n)),c=Object(x.a)(a,N({},s,l,u,{symbol:r,title:i}));if(!c)return function(){var e;!O&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",a),null;var p=c.abstract,f={};return Object.keys(e).forEach((function(t){B.defaultProps.hasOwnProperty(t)||(f[t]=e[t])})),j(p[0],f)}B.displayName="FontAwesomeIcon",B.propTypes={border:E.a.bool,className:E.a.string,mask:E.a.oneOfType([E.a.object,E.a.array,E.a.string]),fixedWidth:E.a.bool,inverse:E.a.bool,flip:E.a.oneOf(["horizontal","vertical","both"]),icon:E.a.oneOfType([E.a.object,E.a.array,E.a.string]),listItem:E.a.bool,pull:E.a.oneOf(["right","left"]),pulse:E.a.bool,rotation:E.a.oneOf([90,180,270]),size:E.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:E.a.bool,symbol:E.a.oneOfType([E.a.bool,E.a.string]),title:E.a.string,transform:E.a.oneOfType([E.a.string,E.a.object]),swapOpacity:E.a.bool},B.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 j=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)})),i=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=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=M(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[M(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=P(r,["style"]);return i.attrs.style=N({},i.attrs.style,s),t.apply(void 0,[n.tag,N({},i.attrs,l)].concat(T(o)))}.bind(null,i.a.createElement),I={prefix:"fas",iconName:"check-double",icon:[512,512,[],"f560","M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"]},R={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},D={prefix:"fas",iconName:"circle",icon:[512,512,[],"f111","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]},F={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"]},z={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},U={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]},W={prefix:"fas",iconName:"dot-circle",icon:[512,512,[],"f192","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"]},V={prefix:"fas",iconName:"hockey-puck",icon:[512,512,[],"f453","M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"]},G={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"]},Y={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:"palette",icon:[512,512,[],"f53f","M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},X={prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},H={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={prefix:"fas",iconName:"ring",icon:[512,512,[],"f70b","M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"]},$={prefix:"fas",iconName:"square-full",icon:[512,512,[],"f45c","M512 512H0V0h512v512z"]},Q={prefix:"fas",iconName:"stop",icon:[448,512,[],"f04d","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]},K={prefix:"fas",iconName:"sun",icon:[512,512,[],"f185","M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"]},J={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"]},ee=function(e){function t(t){var n=e.call(this,t)||this,r=l.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n}return p(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;l.StoreBoolean(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(B,{icon:R})))},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),te=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 p(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.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:"textInputLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},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),ne=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:!0===r.props.target[r.props.propertyName]},r}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return!((n=e.isSelected?e.isSelected():!0===e.target[e.propertyName])===t.isSelected&&!this._localChange)&&(t.isSelected=n,this._localChange=!1,!0)},t.prototype.onChange=function(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target[this.props.propertyName]=!this.state.isSelected),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected})},t.prototype.render=function(){var e=this;return 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()}}),o.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(o.Component),re=function(e){function t(){var t=e.call(this,"generic")||this;return t.vector2=null,t.vector3=null,t.vector4=null,t.matrix=null,t}return p(t,e),t.prototype.prepare=function(t,n,r,o){e.prototype.prepare.call(this,t,n,r,o)},t.prototype.renderProperties=function(e){var t=this;return o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(te,{globalState:e,label:"Name",propertyName:"name",target:this.block,onChange:function(){return e.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:this.block.getClassName()})),"TransformBlock"===this.block.getClassName()&&o.createElement(ee,{title:"PROPERTIES"},o.createElement(ne,{label:"Transform as direction",onSelect:function(n){var r=t.block;r.complementW=n?0:1,e.onRebuildRequiredObservable.notifyObservers()},isSelected:function(){return 0===t.block.complementW}})),"PerturbNormalBlock"===this.block.getClassName()&&o.createElement(ee,{title:"PROPERTIES"},o.createElement(ne,{label:"Invert X axis",target:this.block,propertyName:"invertX",onValueChanged:function(){return e.onRebuildRequiredObservable.notifyObservers()}}),o.createElement(ne,{label:"Invert Y axis",target:this.block,propertyName:"invertY",onValueChanged:function(){return e.onRebuildRequiredObservable.notifyObservers()}})))},t}(w),oe=function(e){function t(t){var n=e.call(this,"generic")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(v,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new re},t}(d.AbstractNodeFactory),ie=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"draggableLine",draggable:!0,onDragStart:function(t){t.dataTransfer.setData("babylonjs-material-node",e.props.data)}},this.props.data.replace("Block",""))},t}(o.Component);
- /*!
- * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */n(137);var ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={filter:""},n}return p(t,e),t.prototype.filterContent=function(e){this.setState({filter:e})},t.prototype.render=function(){var e=this,t={Animation:["BonesBlock","MorphTargetsBlock"],Basic_Math:["AddBlock","DivideBlock","MultiplyBlock","ScaleBlock","SubtractBlock","OneMinusBlock","MaxBlock","MinBlock","LengthBlock","DistanceBlock","NegateBlock","RandomNumberBlock","ReciprocalBlock"],Color_Management:["ReplaceColorBlock","PosterizeBlock","GradientBlock"],Conversion_Blocks:["ColorMergerBlock","ColorSplitterBlock","VectorMergerBlock","VectorSplitterBlock"],Inputs:["Float","Vector2","Vector3","Vector4","Color3","Color4","TextureBlock","ReflectionTextureBlock","TimeBlock","DeltaTimeBlock","FrontFacingBlock"],Interpolation:["LerpBlock","SmoothStepBlock","NLerpBlock"],Matrices:["Matrix","WorldMatrixBlock","WorldViewMatrixBlock","WorldViewProjectionMatrixBlock","ViewMatrixBlock","ViewProjectionMatrixBlock","ProjectionMatrixBlock"],Mesh_Attributes:["InstancesBlock","PositionBlock","UVBlock","ColorBlock","NormalBlock","TangentBlock","MatrixIndicesBlock","MatrixWeightsBlock","WorldPositionBlock","WorldNormalBlock"],Output_Blocks:["VertexOutputBlock","FragmentOutputBlock","DiscardBlock"],Range:["ClampBlock","RemapBlock","NormalizeBlock"],Round:["StepBlock","RoundBlock","CeilingBlock","FloorBlock"],Scene_Attributes:["FogBlock","CameraPositionBlock","FogColorBlock","ImageProcessingBlock","LightBlock","LightInformationBlock","ViewDirectionBlock","PerturbNormalBlock"],Trigonometry:["CosBlock","SinBlock","AbsBlock","ExpBlock","Exp2Block","SqrtBlock","PowBlock","LogBlock","ArcCosBlock","ArcSinBlock","TanBlock","ArcTanBlock","FractBlock","SignBlock","ArcTan2Block","DegreesToRadiansBlock","RadiansToDegreesBlock","SawToothWaveBlock","TriangleWaveBlock","SquareWaveBlock"],Vector_Math:["CrossBlock","DotBlock","TransformBlock","FresnelBlock"]},n=[];for(var r in t){var i=t[r].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(e,t){return o.createElement(ie,{key:e,data:e})}));i.length&&n.push(o.createElement(ee,{key:r+" blocks",title:r.replace("_"," "),closed:!1},i))}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",onChange:function(t){return e.filterContent(t.target.value)}})),o.createElement("div",{className:"list-container"},n))))},t}(o.Component),se=function(e){function t(t){return e.call(this,t)||this}return p(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),le=function(){function e(){}return e._SaveAs=function(e,t,n){var r=this;if("download"in HTMLAnchorElement.prototype){var o=window.URL||window.webkitURL,i=n.createElement("a");return i.download=t,i.rel="noopener",i.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(i.href)}),4e4),void setTimeout((function(){r._Click(i,n)}),0)}var a=open("","_blank");a&&(a.document.title=a.document.body.innerText="downloading...");var s="application/octet-stream"===e.type,l=/constructor/i.test(window.HTMLElement)||window.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},c.readAsDataURL(e)}else{var p=(o=window.URL||window.webkitURL).createObjectURL(e);a?a.location.href=p:location.href=p,a=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}(),ue=function(e){function t(t){return e.call(this,t)||this}return p(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:"file-upload",className:"file-upload"},this.props.label),o.createElement("input",{ref:"upload",id:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(o.Component),ce=function(){function e(){}return e.Serialize=function(e,t){var n=s.Texture.SerializeBuffers;s.Texture.SerializeBuffers=l.ReadBoolean("EmbedTextures",!0);for(var r=e.serialize(),o=0,i=e.attachedBlocks;o<i.length;o++){var a=i[o],u=t.onGetNodeFromBlock(a);r.locations||(r.locations=[]),r.locations.push({blockId:a.uniqueId,x:u?u.x:0,y:u?u.y:0})}return s.Texture.SerializeBuffers=n,JSON.stringify(r,void 0,2)},e.Deserialize=function(e,t){if(t.onIsLoadingChanged.notifyObservers(!0),t.nodeMaterial.loadFromSerialization(e,""),e.locations&&e.map)for(var n=e.map,r=0,o=e.locations;r<o.length;r++){var i=o[r];i.blockId=n[i.blockId]}t.onResetRequiredObservable.notifyObservers(e.locations)},e}();n(140);var pe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null},n}return p(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add((function(t){e.setState({currentNode:t})}))},t.prototype.load=function(e){var t=this;s.Tools.ReadFile(e,(function(e){var n=new TextDecoder("utf-8");ce.Deserialize(JSON.parse(n.decode(e)),t.props.globalState)}),void 0,!0)},t.prototype.save=function(){var e=ce.Serialize(this.props.globalState.nodeMaterial,this.props.globalState);le.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(ce.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.render=function(){var e=this;return this.state.currentNode?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")),this.state.currentNode.renderProperties(this.props.globalState)):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(ee,{title:"GENERAL"},o.createElement(se,{label:"Reset to default",onClick:function(){e.props.globalState.nodeMaterial.setToDefault(),e.props.globalState.onResetRequiredObservable.notifyObservers(null)}})),o.createElement(ee,{title:"UI"},o.createElement(se,{label:"Zoom to fit",onClick:function(){e.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}),o.createElement(se,{label:"Reorganize",onClick:function(){e.props.globalState.onReOrganizedRequiredObservable.notifyObservers()}})),o.createElement(ee,{title:"OPTIONS"},o.createElement(ne,{label:"Embed textures when saving",isSelected:function(){return l.ReadBoolean("EmbedTextures",!0)},onSelect:function(e){l.StoreBoolean("EmbedTextures",e)}})),o.createElement(ee,{title:"FILE"},o.createElement(ue,{label:"Load",onClick:function(t){return e.load(t)},accept:".json"}),o.createElement(se,{label:"Save",onClick:function(){e.save()}}),this.props.globalState.customSave&&o.createElement(se,{label:this.props.globalState.customSave.label,onClick:function(){e.customSave()}}),o.createElement(se,{label:"Generate code",onClick:function(){le.DownloadAsFile(e.props.globalState.hostDocument,e.props.globalState.nodeMaterial.generateCode(),"code.txt")}}),o.createElement(se,{label:"Export shaders",onClick:function(){le.DownloadAsFile(e.props.globalState.hostDocument,e.props.globalState.nodeMaterial.compiledShaders,"shaders.txt")}}))))},t}(o.Component),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){return a.createPortal(this.props.children,this.props.globalState.hostElement)},t}(o.Component),de=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}return p(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(){var e=this,t=this.props.texture;!t.isReady()&&t._texture&&t._texture.onLoadedObservable.addOnce((function(){e.updatePreview()}));var n,r=t.getScene(),o=r.getEngine(),i=t.getSize(),a=i.width/i.height,l=this.props.width,u=l/a|1;if(t.isCube){var c=new s.PassCubePostProcess("pass",1,null,s.Texture.NEAREST_SAMPLINGMODE,o,!1,s.Constants.TEXTURETYPE_UNSIGNED_INT);c.face=this.state.face,n=c}else n=new s.PassPostProcess("pass",1,null,s.Texture.NEAREST_SAMPLINGMODE,o,!1,s.Constants.TEXTURETYPE_UNSIGNED_INT);if(!n.getEffect().isReady())return n.dispose(),void setTimeout((function(){return e.updatePreview()}),250);var p=this.refs.canvas;this.props.globalState&&(this.props.globalState.blockMutationUpdates=!0);var f=new s.RenderTargetTexture("temp",{width:l,height:u},r,!1);n.onApply=function(e){e.setTexture("textureSampler",t)};var d=f.getInternalTexture();if(d){r.postProcessManager.directRender([n],d);var h=4*l,g=u/2,m=o.readPixels(0,0,l,u);if(!(t.isCube||this.state.displayRed&&this.state.displayGreen&&this.state.displayBlue))for(var v=0;v<l*u*4;v+=4)if(this.state.displayRed||(m[v]=0),this.state.displayGreen||(m[v+1]=0),this.state.displayBlue||(m[v+2]=0),this.state.displayAlpha){var y=m[v+2];m[v]=y,m[v+1]=y,m[v+2]=y,m[v+2]=0}if(t.invertY||t.isCube)for(v=0;v<g;v++)for(var b=0;b<h;b++){var w=b+v*h,_=b+(u-v-1)*h,x=m[w];m[w]=m[_],m[_]=x}p.width=l,p.height=u;var k=p.getContext("2d");if(k){var E=k.createImageData(l,u);E.data.set(m),k.putImageData(E,0,0)}o.unBindFramebuffer(d)}f.dispose(),n.dispose(),p.style.height=u+"px",this.props.globalState&&(this.props.globalState.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:"canvas",className:"preview"}))},t}(o.Component),he=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!1),t=m.GenerateInputPorts(this.props.node,["uv"]);return o.createElement("div",{className:"diagramBlock texture-block"},o.createElement("div",{className:"header"},this.props.node.block.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e),this.props.node&&this.props.node.texture&&o.createElement(de,{ref:"textureView",width:140,height:140,texture:this.props.node.texture,hideChannelSelect:!0}))},t}(o.Component),ge=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 p(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=n,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,t=void 0!==this.props.decimalCount?this.props.decimalCount:2;return o.createElement("div",{className:"sliderLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"slider"},this.state.value?this.prepareDataToRead(this.state.value).toFixed(t):"0"," ",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),me=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName];return n.state={value:r?n.props.isInteger?r.toFixed(0):r.toFixed(n.props.digits||2):"0"},n._store=r,n}return p(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(/(.+\...).+/,"$1"),t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t))},t.prototype.render=function(){var e=this;return o.createElement("div",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:"value"},o.createElement("input",{type:"number",step:this.props.step||"0.01",className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}}))))},t}(o.Component),ve=function(e){function t(){return e.call(this,"reflectiontexture")||this}return p(t,e),Object.defineProperty(t.prototype,"texture",{get:function(){return this._block.texture},set:function(e){this._block.texture=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(be,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(w),ye=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n._getValue(t)},n}return p(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.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=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(t){return e.updateValue(t.target.value)},value:this.state.value},this.props.options.map((function(e){return o.createElement("option",{key:e.label,value:e.value},e.label)})))))},t}(o.Component),be=function(e){function t(t){var n=e.call(this,t)||this,r=n.props.node.texture;return n.state={isEmbedded:!r||"data"===r.name.substring(0,4),loadAsCubeTexture:r&&r.isCube},n}return p(t,e),t.prototype.UNSAFE_componentWillUpdate=function(e,t){if(e.node!==this.props.node){var n=e.node.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.props.node.texture;e&&(e.dispose(),e=null,this.props.node.texture=null),this.updateAfterTextureLoad()},t.prototype._prepareTexture=function(){var e=this.props.node.texture;e&&e.isCube!==this.state.loadAsCubeTexture&&(e.dispose(),e=null),e||(this.state.loadAsCubeTexture?(this.props.node.texture=new s.CubeTexture("",this.props.globalState.nodeMaterial.getScene()),(e=this.props.node.texture).coordinatesMode=s.Texture.CUBIC_MODE):(this.props.node.texture=new s.Texture(null,this.props.globalState.nodeMaterial.getScene(),!1,this.props.node instanceof ve),(e=this.props.node.texture).coordinatesMode=s.Texture.EQUIRECTANGULAR_MODE))},t.prototype.replaceTexture=function(e){var t=this;if(this.props.node){this._prepareTexture();var n=this.props.node.texture;s.Tools.ReadFile(e,(function(r){var o=new Blob([r],{type:"octet/stream"}),i=new FileReader;i.readAsDataURL(o),i.onloadend=function(){var r=i.result,o=void 0;e.name.toLowerCase().indexOf(".dds")>0?o=".dds":e.name.toLowerCase().indexOf(".env")>0&&(o=".env"),n.updateURL(r,o,(function(){return t.updateAfterTextureLoad()}))}}),void 0,!0)}},t.prototype.replaceTextureWithUrl=function(e){var t=this;this._prepareTexture();var n=this.props.node.texture;if(n.isCube||this.props.node instanceof ve){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()}))}else n.updateURL(e,null,(function(){return t.updateAfterTextureLoad()}))},t.prototype.render=function(){var e=this,t="",n=this.props.node.texture;n&&n.name&&"data"!==n.name.substring(0,4)&&(t=n.name),t=t.replace(/\?nocache=\d+/,"");var r=this.props.node instanceof ve,i=[{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(ee,{title:"GENERAL"},o.createElement(_,{label:"Type",value:this.props.node.block.getClassName()}),o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(ne,{label:"Auto select UV",propertyName:"autoSelectUV",target:this.props.node.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&r&&o.createElement(ye,{label:"Reflection mode",options:i,target:n,propertyName:"coordinatesMode",onSelect:function(t){n.coordinatesMode=t,e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ne,{label:"Gamma space",propertyName:"gammaSpace",target:n,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ne,{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&&o.createElement(ne,{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&&o.createElement(me,{label:"Offset U",target:n,propertyName:"uOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(me,{label:"Offset V",target:n,propertyName:"vOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(me,{label:"Scale U",target:n,propertyName:"uScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(me,{label:"Scale V",target:n,propertyName:"vScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ge,{label:"Rotation U",target:n,propertyName:"uAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ge,{label:"Rotation V",target:n,propertyName:"vAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ge,{label:"Rotation W",target:n,propertyName:"wAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(ee,{title:"SOURCE"},o.createElement(ne,{label:"Embed static texture",isSelected:function(){return e.state.isEmbedded},onSelect:function(t){e.setState({isEmbedded:t}),e.props.node.texture=null,e.updateAfterTextureLoad()}}),r&&o.createElement(ne,{label:"Load as cube texture",isSelected:function(){return e.state.loadAsCubeTexture},onSelect:function(t){return e.setState({loadAsCubeTexture:t})}}),this.state.isEmbedded&&o.createElement(ue,{label:"Upload",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),!this.state.isEmbedded&&o.createElement(te,{label:"Link",globalState:this.props.globalState,value:t,onChange:function(t){return e.replaceTextureWithUrl(t)}}),!this.state.isEmbedded&&t&&o.createElement(se,{label:"Refresh",onClick:function(){return e.replaceTextureWithUrl(t+"?nocache="+e._generateRandomForCache())}}),n&&o.createElement(se,{label:"Remove",onClick:function(){return e.removeTexture()}})))},t}(o.Component),we=function(e){function t(){return e.call(this,"texture")||this}return p(t,e),Object.defineProperty(t.prototype,"texture",{get:function(){return this._block.texture},set:function(e){this._block.texture=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(be,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(w),_e=function(e){function t(t){var n=e.call(this,"texture")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(he,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new we},t}(d.AbstractNodeFactory),xe=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 p(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",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),ke=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 p(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(B,{icon:Y}):o.createElement(B,{icon:H});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"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(xe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(xe,{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),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(ke,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Ce=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 p(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(B,{icon:Y}):o.createElement(B,{icon:H});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"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(xe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(xe,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(xe,{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 p(t,e),t.prototype.render=function(){var e=this;return o.createElement(Ce,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Ne=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 p(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.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?o.createElement(B,{icon:Y}):o.createElement(B,{icon:H}),n="Color3"===this.state.color.getClassName()?this.state.color:new s.Color3(this.state.color.r,this.state.color.g,this.state.color.b);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("input",{type:"color",value:n.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement(B,{icon:z})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(xe,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(xe,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(xe,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(o.Component),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(Ne,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(me,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Me=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 p(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(B,{icon:Y}):o.createElement(B,{icon:H});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"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(xe,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(xe,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(xe,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),o.createElement(xe,{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),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(Me,{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;n._localChange=!1;var r=n.props.target[n.props.propertyName].clone(),o=0;if(n.props.mode){var i=new s.Quaternion;r.decompose(void 0,i);var a=i.toEulerAngles();switch(n.props.mode){case 1:o=a.x;break;case 2:o=a.y;break;case 3:o=a.z}}return n.state={value:r,mode:n.props.mode||0,angle:o},n}return p(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(ye,{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(Me,{label:"Row #0",value:this.state.value.getRow(0),onChange:function(t){return e.updateRow(t,0)}}),o.createElement(Me,{label:"Row #1",value:this.state.value.getRow(1),onChange:function(t){return e.updateRow(t,1)}}),o.createElement(Me,{label:"Row #2",value:this.state.value.getRow(2),onChange:function(t){return e.updateRow(t,2)}}),o.createElement(Me,{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(ge,{label:"Angle",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,directValue:this.state.angle,onChange:function(t){return e.updateBasedOnMode(t)}})))},t}(o.Component),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(Le,{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),Be=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.renderValue=function(e){var t=this,n=this.props.inputNode.inputBlock;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(me,{label:"Min",target:n,propertyName:"min",onChange:function(){t.forceUpdate()}}),o.createElement(me,{label:"Max",target:n,propertyName:"max",onChange:function(){t.forceUpdate()}}),r&&o.createElement(Te,{globalState:e,inputBlock:n}),!r&&o.createElement(ge,{label:"Value",target:n,propertyName:"value",step:(n.max-n.min)/100,minimum:n.min,maximum:n.max,onChange:function(){t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}));case s.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(Ee,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Color3:case s.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(Pe,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(Se,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(Oe,{globalState:e,inputBlock:n});case s.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement(Ae,{globalState:e,inputBlock:n})}return null},t.prototype.setDefaultValue=function(){this.props.inputNode.inputBlock.setDefaultValue()},t.prototype.render=function(){var e=this,t=this.props.inputNode.inputBlock,n=[],r=[],i=[];switch(t.type){case s.NodeMaterialBlockConnectionPointTypes.Float:i=[{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 a=[{label:"User-defined",value:0}];return r.length>0&&a.push({label:"Mesh attribute",value:1}),n.length>0&&a.push({label:"System value",value:2}),o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},!t.isAttribute&&o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:t,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:le.GetBaseType(t.type)})),o.createElement(ee,{title:"PROPERTIES"},t.isUniform&&!t.isSystemValue&&t.animationType===s.AnimatedInputBlockTypes.None&&o.createElement(ne,{label:"Visible in the Inspector",target:t,propertyName:"visibleInInspector"}),t.isUniform&&!t.isSystemValue&&t.animationType===s.AnimatedInputBlockTypes.None&&o.createElement(ne,{label:"IsConstant",target:t,propertyName:"isConstant",onValueChanged:function(){e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(ye,{label:"Mode",options:a,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.onRebuildRequiredObservable.notifyObservers()}}),t.isAttribute&&o.createElement(ye,{label:"Attribute",valuesAreStrings:!0,options:r,target:t,propertyName:"name",onSelect:function(n){t.setAsAttribute(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&i.length>0&&o.createElement(ye,{label:"Animation type",options:i,target:t,propertyName:"animationType",onSelect:function(t){e.forceUpdate(),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(ye,{label:"System value",options:n,target:t,propertyName:"systemValue",onSelect:function(n){t.setAsSystemValue(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),je=function(e){function t(){return e.call(this,"input")||this}return p(t,e),Object.defineProperty(t.prototype,"inputBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(Be,{globalState:e,inputNode:this})},t}(w),Ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.renderValue=function(e){return""!==e?o.createElement("div",{className:"value-text"},e):null},t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!0),t=this.props.node.inputBlock,n="",r=t.name+" ("+le.GetBaseType(t.output.type)+")",i="";if(t)if(t.isAttribute)n="mesh."+t.name,r=le.GetBaseType(t.output.type);else if(t.isSystemValue)switch(t.systemValue){case s.NodeMaterialSystemValues.World:n="World";break;case s.NodeMaterialSystemValues.WorldView:n="World x View";break;case s.NodeMaterialSystemValues.WorldViewProjection:n="World x View x Projection";break;case s.NodeMaterialSystemValues.View:n="View";break;case s.NodeMaterialSystemValues.ViewProjection:n="View x Projection";break;case s.NodeMaterialSystemValues.Projection:n="Projection";break;case s.NodeMaterialSystemValues.CameraPosition:n="Camera position";break;case s.NodeMaterialSystemValues.FogColor:n="Fog color";break;case s.NodeMaterialSystemValues.DeltaTime:n="Delta time"}else{if(!t||!t.isUniform)return null;switch(t.type){case s.NodeMaterialBlockConnectionPointTypes.Float:n=t.animationType!==s.AnimatedInputBlockTypes.None?s.AnimatedInputBlockTypes[t.animationType]:t.value.toFixed(2);break;case s.NodeMaterialBlockConnectionPointTypes.Vector2:var a=t.value;n="("+a.x.toFixed(2)+", "+a.y.toFixed(2)+")";break;case s.NodeMaterialBlockConnectionPointTypes.Vector3:var l=t.value;n="("+l.x.toFixed(2)+", "+l.y.toFixed(2)+", "+l.z.toFixed(2)+")";break;case s.NodeMaterialBlockConnectionPointTypes.Vector4:var u=t.value;n="("+u.x.toFixed(2)+", "+u.y.toFixed(2)+", "+u.z.toFixed(2)+", "+u.w.toFixed(2)+")";break;case s.NodeMaterialBlockConnectionPointTypes.Color3:case s.NodeMaterialBlockConnectionPointTypes.Color4:i=t.value.toHexString()}}else r="Not connected input";return o.createElement("div",{className:"diagramBlock input"+(t?" "+s.NodeMaterialBlockConnectionPointTypes[t.type]:"")+(t&&t.isConstant?" constant":""),style:{background:i}},o.createElement("div",{className:"header"},r),o.createElement("div",{className:"outputs"},e),o.createElement("div",{className:"value"},this.renderValue(n)))},t}(o.Component),Re=function(e){function t(t){var n=e.call(this,"input")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(Ie,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new je},t}(d.AbstractNodeFactory);n(142);var De=function(e,t){this.message=e,this.isError=t},Fe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return p(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=a.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,i){return o.createElement("div",{key:i,className:"log"+(e.isError?" error":"")},t+":"+n+":"+r+": "+e.message)})))},t}(o.Component),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}}));return n.splice(0,0,{label:"All",value:""}),o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(_,{label:"Type",value:"LightBlock"}),o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(ye,{label:"Light",defaultIfNull:0,noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:this.props.node.light,propertyName:"name",onSelect:function(n){e.props.node.light=""===n?null:t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Ue=function(e){function t(){return e.call(this,"light")||this}return p(t,e),Object.defineProperty(t.prototype,"light",{get:function(){return this._block.light},set:function(e){this._block.light=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(ze,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(w),We=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!1),t=m.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock"},o.createElement("div",{className:"header"},this.props.node.block.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e))},t}(o.Component),Ve=function(e){function t(t){var n=e.call(this,"light")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(We,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new Ue},t}(d.AbstractNodeFactory),Ge=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 p(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),Ye=function(e){function t(){var t=e.call(this)||this;return t.type="advanced",t}return p(t,e),t.prototype.getNewInstance=function(e){return new y},t.prototype.generateLinkSegment=function(e,t,n,r){var i=(e.getTargetPort()||e.getSourcePort()).connection.type,a=g.GetColorFromConnectionNodeType(i);return o.createElement("path",{className:n?t.bem("--path-selected"):"",strokeWidth:3,stroke:a,d:r})},t}(d.DefaultLinkFactory),qe=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.remapNode.remapBlock;return o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:t,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:t.getClassName()})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(ke,{label:"From",propertyName:"sourceRange",target:t,onChange:function(){return e.forceRebuild()}}),o.createElement(ke,{label:"To",propertyName:"targetRange",target:t,onChange:function(){return e.forceRebuild()}})))},t}(o.Component),Xe=function(e){function t(){return e.call(this,"remap")||this}return p(t,e),Object.defineProperty(t.prototype,"remapBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(qe,{globalState:e,remapNode:this})},t}(w),He=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.renderValue=function(e){return e?o.createElement("div",{className:"value-text"},e):null},t.prototype.extractInputValue=function(e){var t=e.connectedPoint.ownerBlock;if(t.isInput){var n=t;if(n.isUniform&&!n.isSystemValue)return n.value}return"?"},t.prototype.render=function(){var e=m.GenerateInputPorts(this.props.node,void 0,!1),t=m.GenerateOutputPorts(this.props.node,!1),n=this.props.node.block,r=n.sourceMin.isConnected?this.extractInputValue(n.sourceMin):n.sourceRange.x,i=n.sourceMax.isConnected?this.extractInputValue(n.sourceMax):n.sourceRange.y,a=n.targetMin.isConnected?this.extractInputValue(n.targetMin):n.targetRange.x,s=n.targetMax.isConnected?this.extractInputValue(n.targetMax):n.targetRange.y;return o.createElement("div",{className:"diagramBlock remap"},o.createElement("div",{className:"header"},n.name),o.createElement("div",{className:"inputs"},e),o.createElement("div",{className:"outputs"},t),o.createElement("div",{className:"value"},"["+r+", "+i+"] -> ["+a+", "+s+"]"))},t}(o.Component),Ze=function(e){function t(t){var n=e.call(this,"remap")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(He,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new Xe},t}(d.AbstractNodeFactory),$e=n(71),Qe=function(){function e(){}return e.DistributeGraph=function(e){var t=this._MapElements(e),n=this._MapEdges(e),r=new $e.graphlib.Graph;return r.setGraph({}),r.setDefaultEdgeLabel((function(){return{}})),r.graph().rankdir="LR",t.forEach((function(e){r.setNode(e.id,e.metadata)})),n.forEach((function(e){e.from&&e.to&&r.setEdge(e.from.id,e.to.id)})),$e.layout(r),r.nodes().map((function(e){return r.node(e)}))},e._MapElements=function(e){var t=[];for(var n in e.nodes){var r=e.nodes[n],o={width:200|r.width,height:100|r.height};t.push({id:r.id,metadata:f(f({},o),{id:r.id})})}return t},e._MapEdges=function(e){var t=[];for(var n in e.links){var r=e.links[n];t.push({from:r.sourcePort.parent,to:r.targetPort.parent})}return t},e}(),Ke=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(){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._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(e,!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._prepareMeshes=function(){this._prepareLights(),this._camera.useFramingBehavior=!0;var e=this._camera.getBehaviorByName("Framing");if(e.framingTime=0,e.elevationReturnTime=-1,this._scene.meshes.length){var t=this._scene.getWorldExtends();this._camera.lowerRadiusLimit=null,this._camera.upperRadiusLimit=null,e.zoomOnBoundingInfo(t.min,t.max)}this._camera.pinchPrecision=200/this._camera.radius,this._camera.upperRadiusLimit=5*this._camera.radius,this._camera.wheelDeltaPercentage=.01,this._camera.pinchDeltaPercentage=.01,this._handleAnimations();var n=this._nodeMaterial.serialize();this._updatePreview(n)},e.prototype._refreshPreviewMesh=function(){var e=this;if(this._currentType!==this._globalState.previewMeshType||this._currentType===r.Custom){if(this._currentType=this._globalState.previewMeshType,this._meshes&&this._meshes.length)for(var t=0,n=this._meshes;t<n.length;t++){n[t].dispose()}this._meshes=[];for(var o=0,i=this._scene.lights.slice(0);o<i.length;o++){i[o].dispose()}switch(this._engine.releaseEffects(),s.SceneLoader.ShowLoadingScreen=!1,this._globalState.onIsLoadingChanged.notifyObservers(!0),this._globalState.previewMeshType){case r.Box: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._prepareMeshes()}));break;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._prepareMeshes()}));case r.Plane:this._meshes.push(s.Mesh.CreateGround("dummy-plane",2,2,128,this._scene));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._prepareMeshes()}));case r.Custom:return void s.SceneLoader.AppendAsync("file:",this._globalState.previewMeshFile,this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareMeshes()}))}this._prepareMeshes()}},e.prototype._forceCompilationAsync=function(e,t){return e.forceCompilationAsync(t)},e.prototype._updatePreview=function(e){var t=this;try{var n=s.NodeMaterial.Parse(e,this._scene);if(n.backFaceCulling=this._globalState.backFaceCulling,n.needDepthPrePass=this._globalState.depthPrePass,this._meshes.length){var r=this._meshes.map((function(e){return t._forceCompilationAsync(n,e)}));Promise.all(r).then((function(){for(var e=0,r=t._meshes;e<r.length;e++){r[e].material=n}t._material&&t._material.dispose(),t._material=n,t._globalState.onIsLoadingChanged.notifyObservers(!1)})).catch((function(e){t._globalState.onLogRequiredObservable.notifyObservers(new De("Shader compilation error:\r\n"+e,!0)),t._globalState.onIsLoadingChanged.notifyObservers(!1)}))}else this._material=n}catch(e){}},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}(),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.changeMeshType=function(e){this.props.globalState.previewMeshType!==e&&(this.props.globalState.previewMeshType=e,this.props.globalState.onPreviewCommandActivated.notifyObservers(),l.StoreNumber("PreviewMeshType",e),this.forceUpdate())},t.prototype.useCustomMesh=function(e){var t=e.target.files;if(t&&t.length){var n=t[0];this.props.globalState.previewMeshFile=n,this.props.globalState.previewMeshType=r.Custom,this.props.globalState.onPreviewCommandActivated.notifyObservers(),this.forceUpdate()}document.getElementById("file-picker").value=""},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"preview-mesh-bar"},o.createElement("div",{title:"Preview with a cube",onClick:function(){return e.changeMeshType(r.Box)},className:"button"+(this.props.globalState.previewMeshType===r.Box?" selected":"")},o.createElement(B,{icon:U})),o.createElement("div",{title:"Preview with a sphere",onClick:function(){return e.changeMeshType(r.Sphere)},className:"button"+(this.props.globalState.previewMeshType===r.Sphere?" selected":"")},o.createElement(B,{icon:D})),o.createElement("div",{title:"Preview with a torus",onClick:function(){return e.changeMeshType(r.Torus)},className:"button"+(this.props.globalState.previewMeshType===r.Torus?" selected":"")},o.createElement(B,{icon:Z})),o.createElement("div",{title:"Preview with a cylinder",onClick:function(){return e.changeMeshType(r.Cylinder)},className:"button"+(this.props.globalState.previewMeshType===r.Cylinder?" selected":"")},o.createElement(B,{icon:V})),o.createElement("div",{title:"Preview with a plane",onClick:function(){return e.changeMeshType(r.Plane)},className:"button"+(this.props.globalState.previewMeshType===r.Plane?" selected":"")},o.createElement(B,{icon:$})),o.createElement("div",{title:"Preview with a shader ball",onClick:function(){return e.changeMeshType(r.ShaderBall)},className:"button"+(this.props.globalState.previewMeshType===r.ShaderBall?" selected":"")},o.createElement(B,{icon:W})),o.createElement("div",{className:"button align",title:"Preview with a custom mesh"},o.createElement("label",{htmlFor:"file-picker",id:"file-picker-label"},o.createElement(B,{icon:H})),o.createElement("input",{ref:"file-picker",id:"file-picker",type:"file",onChange:function(t){return e.useCustomMesh(t)},accept:".gltf, .glb, .babylon, .obj"})))},t}(o.Component),et=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this,t=this.props.trigonometryNode.trigonometryBlock,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(ee,{title:"GENERAL"},o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:t,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:t.getClassName()})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(ye,{label:"Operation",options:n,target:t,propertyName:"operation",onSelect:function(t){e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),tt=function(e){function t(){return e.call(this,"trigonometry")||this}return p(t,e),Object.defineProperty(t.prototype,"trigonometryBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(et,{globalState:e,trigonometryNode:this})},t}(w),nt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!1),t=m.GenerateInputPorts(this.props.node),n=this.props.node.trigonometryBlock;return o.createElement("div",{className:"diagramBlock trigonometry"},o.createElement("div",{className:"header"},n.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e),o.createElement("div",{className:"value"},o.createElement("div",{className:"value-text"},s.TrigonometryBlockOperations[n.operation])))},t}(o.Component),rt=function(e){function t(t){var n=e.call(this,"trigonometry")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(nt,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new tt},t}(d.AbstractNodeFactory),ot=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.renderValue=function(e){return e?o.createElement("div",{className:"value-text"},e):null},t.prototype.render=function(){var e=m.GenerateInputPorts(this.props.node,void 0,!0),t=m.GenerateOutputPorts(this.props.node,!0),n=this.props.node.block;return o.createElement("div",{className:"diagramBlock remap"},o.createElement("div",{className:"header"},n.name),o.createElement("div",{className:"inputs"},e),o.createElement("div",{className:"outputs"},t),o.createElement("div",{className:"value"},"["+n.minimum+", "+n.maximum+"]"))},t}(o.Component),it=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.remapNode.clampBlock;return o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:t,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:t.getClassName()})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(me,{label:"Minimum",propertyName:"minimum",target:t,onChange:function(){return e.forceRebuild()}}),o.createElement(me,{label:"Maximum",propertyName:"maximum",target:t,onChange:function(){return e.forceRebuild()}})))},t}(o.Component),at=function(e){function t(){return e.call(this,"clamp")||this}return p(t,e),Object.defineProperty(t.prototype,"clampBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(it,{globalState:e,remapNode:this})},t}(w),st=function(e){function t(t){var n=e.call(this,"clamp")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(ot,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new at},t}(d.AbstractNodeFactory),lt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!1),t=m.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock"},o.createElement("div",{className:"header"},this.props.node.block.name+" ("+(this.props.node.light?this.props.node.light.name:"No light")+")"),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e))},t}(o.Component),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}}));return o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(_,{label:"Type",value:"LightInformationBlock"}),o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(ee,{title:"PROPERTIES"},o.createElement(ye,{label:"Light",noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:this.props.node.light,propertyName:"name",onSelect:function(n){e.props.node.light=t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),ct=function(e){function t(){return e.call(this,"light-information")||this}return p(t,e),Object.defineProperty(t.prototype,"light",{get:function(){return this._block.light},set:function(e){this._block.light=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(ut,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(w),pt=function(e){function t(t){var n=e.call(this,"light-information")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(lt,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new ct},t}(d.AbstractNodeFactory),ft=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n.props.globalState.onIsLoadingChanged.add((function(e){return n.setState({isLoading:e})})),n}return p(t,e),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);l.StoreNumber("BackgroundColorR",t.r),l.StoreNumber("BackgroundColorG",t.g),l.StoreNumber("BackgroundColorB",t.b),this.props.globalState.backgroundColor=s.Color4.FromColor3(t,1),this.props.globalState.onPreviewBackgroundChanged.notifyObservers()},t.prototype.changeBackFaceCulling=function(e){this.props.globalState.backFaceCulling=e,l.StoreBoolean("BackFaceCulling",e),this.props.globalState.onBackFaceCullingChanged.notifyObservers(),this.forceUpdate()},t.prototype.changeDepthPrePass=function(e){this.props.globalState.depthPrePass=e,l.StoreBoolean("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...")),o.createElement("div",{id:"preview-config-bar"},o.createElement("div",{title:"Turn-table animation",onClick:function(){return e.changeAnimation()},className:"button"},o.createElement(B,{icon:this.props.globalState.rotatePreview?Q:X})),o.createElement("div",{title:"Background color",className:"button align"},o.createElement("label",{htmlFor:"color-picker",id:"color-picker-label"},o.createElement(B,{icon:q})),o.createElement("input",{ref:"color-picker",id:"color-picker",type:"color",onChange:function(t){return e.changeBackground(t.target.value)}})),o.createElement("div",{title:"Render without back face culling",onClick:function(){return e.changeBackFaceCulling(!e.props.globalState.backFaceCulling)},className:"button"+(this.props.globalState.backFaceCulling?"":" selected")},o.createElement(B,{icon:I})),o.createElement("div",{title:"Render with depth pre-pass",onClick:function(){return e.changeDepthPrePass(!e.props.globalState.depthPrePass)},className:"button"+(this.props.globalState.depthPrePass?" selected":"")},o.createElement(B,{icon:F})),o.createElement("div",{title:"Turn on/off hemispheric light",onClick:function(){e.props.globalState.hemisphericLight=!e.props.globalState.hemisphericLight,l.StoreBoolean("HemisphericLight",e.props.globalState.hemisphericLight),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.hemisphericLight?" selected":"")},o.createElement(B,{icon:K})),o.createElement("div",{title:"Turn on/off direction light #0",onClick:function(){e.props.globalState.directionalLight0=!e.props.globalState.directionalLight0,l.StoreBoolean("DirectionalLight0",e.props.globalState.directionalLight0),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.directionalLight0?" selected":"")},o.createElement(B,{icon:G})),o.createElement("div",{title:"Turn on/off direction light #1",onClick:function(){e.props.globalState.directionalLight1=!e.props.globalState.directionalLight1,l.StoreBoolean("DirectionalLight1",e.props.globalState.directionalLight1),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.directionalLight1?" selected":"")},o.createElement(B,{icon:G}))))},t}(o.Component),dt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={gradient:t.step.step},n}return p(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.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("input",{type:"color",value:t.color.toHexString(),onChange:function(t){return e.updateColor(t.target.value)}}),o.createElement("div",{className:"step-value"},t.step.toFixed(2)),o.createElement("div",{className:"step-slider"},o.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.step,onChange:function(t){return e.updateStep(parseFloat(t.target.value))}})),o.createElement("div",{className:"gradient-delete",onClick:function(){return e.props.onDelete()}},o.createElement(B,{icon:J})))},t}(o.Component),ht=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.deleteStep=function(e){var t=this.props.gradientNode.gradientBlock,n=t.colorSteps.indexOf(e);n>-1&&(t.colorSteps.splice(n,1),this.forceRebuild(),this.forceUpdate())},t.prototype.addNewStep=function(){var e=this.props.gradientNode.gradientBlock,t=new s.GradientBlockColorStep(1,s.Color3.White());e.colorSteps.push(t),this.forceRebuild(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.gradientNode.gradientBlock;return o.createElement("div",null,o.createElement(ee,{title:"GENERAL"},o.createElement(te,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:t,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:t.getClassName()})),o.createElement(ee,{title:"STEPS"},o.createElement(se,{label:"Add new step",onClick:function(){return e.addNewStep()}}),t.colorSteps.map((function(t,n){return o.createElement(dt,{globalState:e.props.globalState,onUpdateStep:function(){return e.forceRebuild()},key:t.step,lineIndex:n,step:t,onDelete:function(){return e.deleteStep(t)}})}))))},t}(o.Component),gt=function(e){function t(){return e.call(this,"gradient")||this}return p(t,e),Object.defineProperty(t.prototype,"gradientBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(ht,{globalState:e,gradientNode:this})},t}(w),mt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.renderValue=function(e){return e?o.createElement("div",{className:"value-text"},e):null},t.prototype.render=function(){var e=m.GenerateInputPorts(this.props.node,void 0,!0),t=m.GenerateOutputPorts(this.props.node,!0),n=this.props.node.block,r=n.colorSteps.map((function(e){return"rgb("+255*e.color.r+", "+255*e.color.g+", "+255*e.color.b+") "+100*e.step+"%"})),i={background:r.length?"linear-gradient(90deg, "+r.join(", ")+")":"black"};return o.createElement("div",{className:"diagramBlock gradient",style:i},o.createElement("div",{className:"header"},n.name),o.createElement("div",{className:"inputs"},e),o.createElement("div",{className:"outputs"},t),o.createElement("div",{className:"value"}))},t}(o.Component),vt=function(e){function t(t){var n=e.call(this,"gradient")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(mt,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new gt},t}(d.AbstractNodeFactory),yt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return p(t,e),t.prototype.render=function(){var e=m.GenerateOutputPorts(this.props.node,!1),t=m.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock texture-block"},o.createElement("div",{className:"header"},this.props.node.block.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e),this.props.node&&this.props.node.texture&&o.createElement(de,{ref:"textureView",width:140,height:140,texture:this.props.node.texture,hideChannelSelect:!0}))},t}(o.Component),bt=function(e){function t(t){var n=e.call(this,"reflectiontexture")||this;return n._globalState=t,n}return p(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(yt,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new ve},t}(d.AbstractNodeFactory);n(318),n(320),n(322);var wt=function(e){function t(t){var n=e.call(this,t)||this;return n.NodeWidth=100,n._leftWidth=l.ReadNumber("LeftWidth",200),n._rightWidth=l.ReadNumber("RightWidth",300),n._nodes=new Array,n._blocks=new Array,n._copiedNodes=[],n._mouseLocationX=0,n._mouseLocationY=0,n._toAdd=[],n._engine=new d.DiagramEngine,n._engine.installDefaultFactories(),n._engine.registerNodeFactory(new oe(n.props.globalState)),n._engine.registerNodeFactory(new _e(n.props.globalState)),n._engine.registerNodeFactory(new Ve(n.props.globalState)),n._engine.registerNodeFactory(new Re(n.props.globalState)),n._engine.registerNodeFactory(new Ze(n.props.globalState)),n._engine.registerNodeFactory(new rt(n.props.globalState)),n._engine.registerNodeFactory(new st(n.props.globalState)),n._engine.registerNodeFactory(new pt(n.props.globalState)),n._engine.registerNodeFactory(new vt(n.props.globalState)),n._engine.registerNodeFactory(new bt(n.props.globalState)),n._engine.registerLinkFactory(new Ye),n.props.globalState.onRebuildRequiredObservable.add((function(){n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onResetRequiredObservable.add((function(e){n.build(!1,e),n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onUpdateRequiredObservable.add((function(){n._engine.repaintCanvas()})),n.props.globalState.onZoomToFitRequiredObservable.add((function(){n.zoomToFit()})),n.props.globalState.onReOrganizedRequiredObservable.add((function(){n.reOrganize()})),n.props.globalState.onGetNodeFromBlock=function(e){return n._nodes.filter((function(t){return t.block===e}))[0]},n.props.globalState.hostDocument.addEventListener("keydown",(function(e){if(e.ctrlKey)if("c"===e.key){var t=n._engine.diagramModel.getSelectedItems();if(!t.length)return;if(!t[0].block)return;n._copiedNodes=t.map((function(e){return e}))}else if("v"===e.key){if(!n._copiedNodes.length)return;for(var r=n.props.globalState.hostDocument.querySelector(".diagram-container"),o=n._engine.diagramModel.getZoomLevel()/100,i=(n._mouseLocationX-r.offsetLeft-n._engine.diagramModel.getOffsetX()-n.NodeWidth)/o,a=(n._mouseLocationY-r.offsetTop-n._engine.diagramModel.getOffsetY()-20)/o,s=null,l=0,u=n._copiedNodes;l<u.length;l++){var c=u[l],p=c.block;if(p){var f=p.clone(n.props.globalState.nodeMaterial.getScene());if(!f)return;var d=n.createNodeFromObject({nodeMaterialBlock:f}),h=0,g=0;s?(h=i+c.x-s.x,g=a+c.y-s.y):(s=c,h=i,g=a),d.setPosition(h,g)}}n._engine.repaintCanvas()}}),!1),n.build(!0),n}return p(t,e),t.prototype.createNodeFromObject=function(e){return-1!==this._blocks.indexOf(e.nodeMaterialBlock)?this._nodes.filter((function(t){return t.block===e.nodeMaterialBlock}))[0]:(this._blocks.push(e.nodeMaterialBlock),-1===this.props.globalState.nodeMaterial.attachedBlocks.indexOf(e.nodeMaterialBlock)&&this.props.globalState.nodeMaterial.attachedBlocks.push(e.nodeMaterialBlock),t=e.nodeMaterialBlock instanceof s.TextureBlock?new we:e.nodeMaterialBlock instanceof s.ReflectionTextureBlock?new ve:e.nodeMaterialBlock instanceof s.LightBlock?new Ue:e.nodeMaterialBlock instanceof s.InputBlock?new je:e.nodeMaterialBlock instanceof s.TrigonometryBlock?new tt:e.nodeMaterialBlock instanceof s.RemapBlock?new Xe:e.nodeMaterialBlock instanceof s.ClampBlock?new at:e.nodeMaterialBlock instanceof s.LightInformationBlock?new ct:e.nodeMaterialBlock instanceof s.GradientBlock?new gt:new re,e.nodeMaterialBlock.isFinalMerger&&this.props.globalState.nodeMaterial.addOutputNode(e.nodeMaterialBlock),this._nodes.push(t),this._model.addAll(t),e.nodeMaterialBlock&&t.prepare(e,this._nodes,this._model,this),t);var t},t.prototype.addValueNode=function(e){var t=g.GetConnectionNodeTypeFromString(e),n=new s.InputBlock(e,void 0,t);return this.createNodeFromObject({type:e,nodeMaterialBlock:n})},t.prototype.onWidgetKeyUp=function(e){var t=this.refs.test;t&&!this.props.globalState.blockKeyboardEvents&&t.onKeyUp(e)},t.prototype.componentDidMount=function(){this.props.globalState.hostDocument&&(this.refs.test.setState({document:this.props.globalState.hostDocument}),this._onWidgetKeyUpPointer=this.onWidgetKeyUp.bind(this),this.props.globalState.hostDocument.addEventListener("keyup",this._onWidgetKeyUpPointer,!1),this._previewManager=new Ke(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")},t.prototype.componentWillUnmount=function(){this.props.globalState.hostDocument&&this.props.globalState.hostDocument.removeEventListener("keyup",this._onWidgetKeyUpPointer,!1),this._previewManager&&this._previewManager.dispose()},t.prototype.zoomToFit=function(e){var t=this;void 0===e&&(e=0);var n=this._engine.canvas.clientWidth/this._engine.canvas.scrollWidth,r=this._engine.canvas.clientHeight/this._engine.canvas.scrollHeight,o=n<r?n:r;1!==o&&(this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel()*o),this._engine.diagramModel.setOffset(0,0),this._engine.repaintCanvas(),++e<4&&setTimeout((function(){return t.zoomToFit(e)}),1))},t.prototype.buildMaterial=function(){if(this.props.globalState.nodeMaterial)try{this.props.globalState.nodeMaterial.build(!0),this.props.globalState.onLogRequiredObservable.notifyObservers(new De("Node material build successful",!1))}catch(e){this.props.globalState.onLogRequiredObservable.notifyObservers(new De(e,!0))}},t.prototype.applyFragmentOutputConstraints=function(e){var t=e.parent;for(var n in t.getPorts()){var r=t.getPorts()[n];if(("rgba"!==e.name||"a"!==n&&"rgb"!==n)&&("a"!==e.name&&"rgb"!==e.name||"rgba"!==n));else for(var o in r.links){r.links[o].remove()}}},t.prototype.build=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),this._model=new d.DiagramModel,this._nodes=[],this._blocks=[],this._model.addListener({nodesUpdated:function(e){if(!e.isCreated){var t=e.node.block;if(t){var r=n.props.globalState.nodeMaterial.attachedBlocks.indexOf(t);r>-1&&n.props.globalState.nodeMaterial.attachedBlocks.splice(r,1),t.isFinalMerger&&n.props.globalState.nodeMaterial.removeOutputNode(t);var o=n._blocks.indexOf(t);o>-1&&n._blocks.splice(o,1)}n.props.globalState.onSelectionChangedObservable.notifyObservers(null)}},linksUpdated:function(e){if(e.isCreated)e.link.addListener({sourcePortChanged:function(){},targetPortChanged:function(t){var r=b.SortInputOutput(e.link.sourcePort,e.link.targetPort);if(r){if(r.output.connection&&r.input.connection){var o="FragmentOutputBlock"===r.input.connection.ownerBlock.getClassName();for(var i in r.input.links){var a=r.input.links[i],s=a.getSourcePort().connection,l=a.getTargetPort().connection;s!==r.output.connection&&l!==r.output.connection&&a.remove()}r.output.connection.canConnectTo(r.input.connection)?(o&&n.applyFragmentOutputConstraints(r.input),r.output.connection.connectTo(r.input.connection)):(t.entity.remove(),n.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Cannot connect two different connection types")),n.forceUpdate()}n.props.globalState.nodeMaterial&&n.buildMaterial()}}});else{n.props.globalState.onSelectionChangedObservable.notifyObservers(null);var t=e.link.sourcePort,r=b.SortInputOutput(t,e.link.targetPort);if(r)r.input.connection&&r.output.connection&&r.input.connection.connectedPoint&&(r.output.connection.disconnectFrom(r.input.connection),r.input.syncWithNodeMaterialConnectionPoint(r.input.connection),r.output.syncWithNodeMaterialConnectionPoint(r.output.connection),n.props.globalState.onRebuildRequiredObservable.notifyObservers());else if(!e.link.targetPort&&e.link.sourcePort&&"input"===e.link.sourcePort.position&&!e.link.sourcePort.connection.isConnected){var o=e.link.sourcePort;if(o.connection.type==s.NodeMaterialBlockConnectionPointTypes.AutoDetect)return;var i=n.addValueNode(g.GetStringFromConnectionNodeType(o.connection.type)),a=i.ports.output.link(o);i.x=e.link.points[1].x-n.NodeWidth,i.y=e.link.points[1].y,setTimeout((function(){n._model.addLink(a),o.syncWithNodeMaterialConnectionPoint(o.connection),i.ports.output.syncWithNodeMaterialConnectionPoint(i.ports.output.connection),"FragmentOutputBlock"===o.parent.block.getClassName()&&n.applyFragmentOutputConstraints(o),n.forceUpdate()}),1),i.ports.output.connection.connectTo(o.connection),n.props.globalState.onRebuildRequiredObservable.notifyObservers()}n.forceUpdate()}}}),this.props.globalState.nodeMaterial){var r=this.props.globalState.nodeMaterial;r._vertexOutputNodes.forEach((function(e){n.createNodeFromObject({nodeMaterialBlock:e})})),r._fragmentOutputNodes.forEach((function(e){n.createNodeFromObject({nodeMaterialBlock:e})})),r.attachedBlocks.forEach((function(e){n.createNodeFromObject({nodeMaterialBlock:e})}))}setTimeout((function(){var e;n._toAdd&&(e=n._model).addAll.apply(e,n._toAdd),n._toAdd=null,n._engine.setDiagramModel(n._model),n.forceUpdate(),n.reOrganize(t)}),e?500:1)},t.prototype.reOrganize=function(e){var t=this;if(void 0===e&&(e=null),e)for(var n=0,r=e;n<r.length;n++)for(var o=r[n],i=0,a=this._nodes;i<a.length;i++){var s=a[i];if(s.block&&s.block.uniqueId===o.blockId){s.setPosition(o.x,o.y);break}}else Qe.DistributeGraph(this._model).forEach((function(e){for(var n in t._model.nodes){var r=t._model.nodes[n];if(r.id===e.id)return void r.setPosition(e.x-e.width/2,e.y-e.height/2)}}));this._engine.repaintCanvas()},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)),l.StoreNumber("LeftWidth",this._leftWidth)):(this._rightWidth-=n,this._rightWidth=Math.max(250,Math.min(500,this._rightWidth)),l.StoreNumber("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=this,n=e.dataTransfer.getData("babylonjs-material-node"),r=null;-1===n.indexOf("Block")?r=this.addValueNode(n):(s=g.GetBlockFromString(n,this.props.globalState.nodeMaterial.getScene(),this.props.globalState.nodeMaterial))&&(this._toAdd=[],s.autoConfigure(this.props.globalState.nodeMaterial),r=this.createNodeFromObject({nodeMaterialBlock:s}));if(r){var o=this._engine.diagramModel.getZoomLevel()/100,i=(e.clientX-e.currentTarget.offsetLeft-this._engine.diagramModel.getOffsetX()-this.NodeWidth)/o,a=(e.clientY-e.currentTarget.offsetTop-this._engine.diagramModel.getOffsetY()-20)/o;r.setPosition(i,a);var s=r.block;i-=this.NodeWidth+150,s._inputs.forEach((function(e){if(e.connectedPoint){var n=t._nodes.filter((function(t){return t.block===e._connectedPoint._ownerBlock}))[0];0===n.x&&0===n.y&&(n.setPosition(i,a),a+=80)}})),this._engine.repaintCanvas(),setTimeout((function(){var e;(e=t._model).addAll.apply(e,t._toAdd),t._toAdd=null,t._model.clearSelection(),r.setSelected(!0),t._engine.repaintCanvas()}),150)}this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(fe,{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(ae,{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(d.DiagramWidget,{className:"diagram",deleteKeys:[46],ref:"test",allowLooseLinks:!1,inverseZoom:!0,diagramEngine:this._engine,maxNumberPointsPerLink:0})),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(pe,{globalState:this.props.globalState}),o.createElement(Je,{globalState:this.props.globalState}),o.createElement(ft,{globalState:this.props.globalState,width:this._rightWidth})),o.createElement(Fe,{globalState:this.props.globalState})),o.createElement(Ge,{globalState:this.props.globalState}),o.createElement("div",{className:"blocker"},"Node Material Editor runs only on desktop"))},t}(o.Component),_t=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 i={width:n,height:r,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-r)/2+window.screenX},a=Object.keys(i).map((function(e){return e+"="+i[e]})).join(","),s=window.open("",e,a);if(!s)return null;var l=s.document,u=l.createElement("link");u.rel="stylesheet",u.href="https://use.typekit.net/cta4xsb.css",l.head.appendChild(u),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",s.document.body.appendChild(c),this._CopyStyles(window.document,l),setTimeout((function(){o._CopyStyles(window.document,l)}),0),this[t]=s,c},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"),i=0,a=r.cssRules;i<a.length;i++){var s=a[i];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}(),xt=function(){function e(){}return e.Show=function(e){this._CurrentState&&((i=_t["node-editor"])&&i.close());var t=e.hostElement;t||(t=_t.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800));var n=new u;n.nodeMaterial=e.nodeMaterial,n.hostElement=t,n.hostDocument=t.ownerDocument,n.customSave=e.customSave;var r=o.createElement(wt,{globalState:n});a.render(r,t),e.customLoadObservable&&e.customLoadObservable.add((function(e){ce.Deserialize(e,n)})),this._CurrentState=n;var i=_t["node-editor"];n.nodeMaterial&&i&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce((function(){i&&i.close()})),window.onbeforeunload=function(){var e=_t["node-editor"];e&&e.close()})},e}();n.d(t,"a",(function(){return xt}))},function(e,t,n){"use strict";var r=n(7);e.exports=s;var o="\0",i="\0",a="";function s(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[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(e,t){e[t]?e[t]++:e[t]=1}function u(e,t){--e[t]||delete e[t]}function c(e,t,n,i){var s=""+t,l=""+n;if(!e&&s>l){var u=s;s=l,l=u}return s+a+l+a+(r.isUndefined(i)?o:i)}function p(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function f(e,t){return c(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},s.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},s.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]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.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},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;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},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.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 i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))})),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.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},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=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[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var u=p(this._isDirected,e,t,n);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[s]=u,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][s]=u,this._out[e][s]=u,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(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],u(this._preds[t],e),u(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.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}},s.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}},s.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(10),"Map");e.exports=r},function(e,t,n){var r=n(163),o=n(170),i=n(172),a=n(173),s=n(174);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=i,l.prototype.has=a,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){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(74),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(33)(e))},function(e,t,n){var r=n(43),o=n(180),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(81),o=n(82),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.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(87);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(64),o=n(14);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(199)();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(46),o=n(32);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(5),o=n(26),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(60),o=n(233);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(26);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},function(e,t,n){"use strict";(function(e,r){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 i(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 a(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){a(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,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return Ae})),n.d(t,"b",(function(){return Le}));var u=function(){},c={},p={},f={mark:u,measure:u};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(p=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(f=performance)}catch(e){}var d=(c.navigator||{}).userAgent,h=void 0===d?"":d,g=c,m=p,v=f,y=(g.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),b=(~h.indexOf("MSIE")||h.indexOf("Trident/"),"fa"),w="svg-inline--fa",_="data-fa-i2svg",x=(function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),k=x.concat([11,12,13,14,15,16,17,18,19,20]),E={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},C=(["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",E.GROUP,E.SWAP_OPACITY,E.PRIMARY,E.SECONDARY].concat(x.map((function(e){return"".concat(e,"x")}))).concat(k.map((function(e){return"w-".concat(e)}))),g.FontAwesomeConfig||{});if(m&&"function"==typeof m.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=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(C[r]=o)}))}var S=s({},{familyPrefix:b,replacementClass:w,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},C);S.autoReplaceSvg||(S.observeMutations=!1);var N=s({},S);g.FontAwesomeConfig=N;var P=g||{};P.___FONT_AWESOME___||(P.___FONT_AWESOME___={}),P.___FONT_AWESOME___.styles||(P.___FONT_AWESOME___.styles={}),P.___FONT_AWESOME___.hooks||(P.___FONT_AWESOME___.hooks={}),P.___FONT_AWESOME___.shims||(P.___FONT_AWESOME___.shims=[]);var T=P.___FONT_AWESOME___,M=[];y&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),1,M.map((function(e){return e()}))})));var O,L="pending",A="settled",B="fulfilled",j="rejected",I=function(){},R=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,D=void 0===r?setTimeout:r,F=[];function z(){for(var e=0;e<F.length;e++)F[e][0](F[e][1]);F=[],O=!1}function U(e,t){F.push([e,t]),O||(O=!0,D(z,0))}function W(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n=B;try{r=o(r)}catch(e){q(i,e)}}V(i,r)||(n===B&&G(i,r),n===j&&q(i,r))}function V(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?Y(e,r):G(e,r))}),(function(t){n||(n=!0,q(e,t))})),!0}}catch(t){return n||q(e,t),!0}return!1}function G(e,t){e!==t&&V(e,t)||Y(e,t)}function Y(e,t){e._state===L&&(e._state=A,e._data=t,U(H,e))}function q(e,t){e._state===L&&(e._state=A,e._data=t,U(Z,e))}function X(e){e._then=e._then.forEach(W)}function H(e){e._state=B,X(e)}function Z(t){t._state=j,X(t),!t._handled&&R&&e.process.emit("unhandledRejection",t._data,t)}function $(t){e.process.emit("rejectionHandled",t)}function Q(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof Q==!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){q(t,e)}try{e((function(e){G(t,e)}),n)}catch(e){n(e)}}(e,this)}Q.prototype={constructor:Q,_state:L,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(I),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===j&&R&&U($,this)),this._state===B||this._state===j?U(W,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},Q.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Q((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var a,s=0;s<e.length;s++)(a=e[s])&&"function"==typeof a.then?a.then(i(s),n):r[s]=a;o||t(r)}))},Q.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Q((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)}))},Q.resolve=function(e){return e&&"object"===o(e)&&e.constructor===Q?e:new Q((function(t){t(e)}))},Q.reject=function(e){return new Q((function(t,n){n(e)}))};"function"==typeof Promise&&Promise;var K={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function J(e){if(e&&y){var t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=m.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return m.head.insertBefore(t,r),e}}var ee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function te(){for(var e=12,t="";e-- >0;)t+=ee[62*Math.random()|0];return t}function ne(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function re(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function oe(e){return e.size!==K.size||e.x!==K.x||e.y!==K.y||e.rotate!==K.rotate||e.flipX||e.flipY}function ie(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ae={x:0,y:0,width:"100%",height:"100%"};function se(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 le(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,l=e.symbol,u=e.title,c=e.extra,p=e.watchable,f=void 0!==p&&p,d=r.found?r:n,h=d.width,g=d.height,m="fa-w-".concat(Math.ceil(h/g*16)),v=[N.replacementClass,i?"".concat(N.familyPrefix,"-").concat(i):"",m].filter((function(e){return-1===c.classes.indexOf(e)})).concat(c.classes).join(" "),y={children:[],attributes:s({},c.attributes,{"data-prefix":o,"data-icon":i,class:v,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(g)})};f&&(y.attributes[_]=""),u&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(te())},children:[u]});var b=s({},y,{prefix:o,iconName:i,main:n,mask:r,transform:a,symbol:l,styles:c.styles}),w=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.transform,l=o.width,u=o.icon,c=i.width,p=i.icon,f=ie({transform:a,containerWidth:c,iconWidth:l}),d={tag:"rect",attributes:s({},ae,{fill:"white"})},h=u.children?{children:u.children.map(se)}:{},g={tag:"g",attributes:s({},f.inner),children:[se(s({tag:u.tag,attributes:s({},u.attributes,f.path)},h))]},m={tag:"g",attributes:s({},f.outer),children:[g]},v="mask-".concat(te()),y="clip-".concat(te()),b={tag:"mask",attributes:s({},ae,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=p,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},ae)}),{children:n,attributes:r}}(b):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=re(e.styles);if(i.length>0&&(n.style=i),oe(o)){var a=ie({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(b),x=w.children,k=w.attributes;return b.children=x,b.attributes=k,l?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===i?"".concat(t,"-").concat(N.familyPrefix,"-").concat(n):i}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(oe(a)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=re(s({},i,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}var ue=function(){},ce=(N.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<l;o++)a=u(a,e[i=s[o]],i,e);return a});function pe(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=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 T.hooks.addPack||r?T.styles[e]=s({},T.styles[e]||{},o):T.hooks.addPack(e,o),"fas"===e&&pe("fa",t)}var fe=T.styles,de=T.shims,he=function(){var e=function(e){return ce(fe,(function(t,n,r){return t[r]=ce(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 fe;ce(de,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e}),{})};he();T.styles;function ge(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function me(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?ne(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ne(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(me).join(""),"</").concat(t,">")}var ve=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 ye(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ye.prototype=Object.create(Error.prototype),ye.prototype.constructor=ye;var be={fill:"currentColor"},we={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},_e={tag:"path",attributes:s({},be,{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"})},xe=s({},we,{attributeName:"opacity"});s({},be,{cx:"256",cy:"364",r:"28"}),s({},we,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},xe,{values:"1;0;1;1;0;1;"}),s({},be,{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({},xe,{values:"1;0;0;0;0;1;"}),s({},be,{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({},xe,{values:"0;0;1;1;0;0;"}),T.styles;function ke(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(N.familyPrefix,"-").concat(E.GROUP)},children:[{tag:"path",attributes:{class:"".concat(N.familyPrefix,"-").concat(E.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(N.familyPrefix,"-").concat(E.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}T.styles;var Ee='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';function Ce(){var e=b,t=w,n=N.familyPrefix,r=N.replacementClass,o=Ee;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}function Se(){N.autoAddCss&&!Oe&&(J(Ce()),Oe=!0)}function Ne(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return me(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Pe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ge(Me.definitions,n,r)||ge(T.styles,n,r)}var Te,Me=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]),pe(t,o[t]),he()}))}},{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,i=r.iconName,a=r.icon;e[o]||(e[o]={}),e[o][i]=a})),e}}])&&i(t.prototype,n),r&&i(t,r),e}()),Oe=!1,Le={transform:function(e){return ve(e)}},Ae=(Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?K:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,l=void 0===a?null:a,u=t.title,c=void 0===u?null:u,p=t.classes,f=void 0===p?[]:p,d=t.attributes,h=void 0===d?{}:d,g=t.styles,m=void 0===g?{}:g;if(e){var v=e.prefix,y=e.iconName,b=e.icon;return Ne(s({type:"icon"},e),(function(){return Se(),N.autoA11y&&(c?h["aria-labelledby"]="".concat(N.replacementClass,"-title-").concat(te()):(h["aria-hidden"]="true",h.focusable="false")),le({icons:{main:ke(b),mask:l?ke(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:y,transform:s({},K,r),symbol:i,title:c,extra:{attributes:h,styles:m,classes:f}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Pe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Pe(r||{})),Te(n,s({},t,{mask:r}))})}).call(this,n(18),n(132).setImmediate)},function(e,t,n){e.exports={graphlib:n(9),layout:n(257),debug:n(316),util:{time:n(6).time,notime:n(6).notime},version:n(317)}},function(e,t,n){"use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(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=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){var r=n(34),o=n(55),i=n(39),a=n(175),s=n(181),l=n(79),u=n(80),c=n(184),p=n(185),f=n(84),d=n(186),h=n(25),g=n(190),m=n(191),v=n(89),y=n(5),b=n(23),w=n(195),_=n(8),x=n(197),k=n(14),E=1,C=2,S=4,N="[object Arguments]",P="[object Function]",T="[object GeneratorFunction]",M="[object Object]",O={};O[N]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[M]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[P]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,L,A,B,j){var I,R=n&E,D=n&C,F=n&S;if(L&&(I=B?L(t,A,B,j):L(t)),void 0!==I)return I;if(!_(t))return t;var z=y(t);if(z){if(I=g(t),!R)return u(t,I)}else{var U=h(t),W=U==P||U==T;if(b(t))return l(t,R);if(U==M||U==N||W&&!B){if(I=D||W?{}:v(t),!R)return D?p(t,s(I,t)):c(t,a(I,t))}else{if(!O[U])return B?t:{};I=m(t,U,R)}}j||(j=new r);var V=j.get(t);if(V)return V;j.set(t,I),x(t)?t.forEach((function(r){I.add(e(r,n,L,r,t,j))})):w(t)&&t.forEach((function(r,o){I.set(o,e(r,n,L,o,t,j))}));var G=F?D?d:f:D?keysIn:k,Y=z?void 0:G(t);return o(Y||t,(function(r,o){Y&&(r=t[o=r]),i(I,o,e(r,n,L,o,t,j))})),I}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(18))},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(176),o=n(30),i=n(5),a=n(23),s=n(41),l=n(31),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),p=!n&&!c&&a(e),f=!n&&!c&&!p&&l(e),d=n||c||p||f,h=d?r(e.length,String):[],g=h.length;for(var m in e)!t&&!u.call(e,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);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(10),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.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(33)(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,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(60),o=n(44),i=n(59),a=n(82),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(85),o=n(59),i=n(14);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(60),o=n(5);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(15)(n(10),"Set");e.exports=r},function(e,t,n){var r=n(10).Uint8Array;e.exports=r},function(e,t,n){var r=n(61);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(90),o=n(44),i=n(43);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(8),o=Object.create,i=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=i},function(e,t,n){e.exports=n(92)},function(e,t,n){var r=n(55),o=n(45),i=n(93),a=n(5);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},function(e,t,n){var r=n(17);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(81),o=n(201),i=n(13),a=n(5);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(204),o=n(11);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(97),o=n(207),i=n(98),a=1,s=2;e.exports=function(e,t,n,l,u,c){var p=n&a,f=e.length,d=t.length;if(f!=d&&!(p&&d>f))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var g=-1,m=!0,v=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++g<f;){var y=e[g],b=t[g];if(l)var w=p?l(b,y,g,t,e,c):l(y,b,g,e,t,c);if(void 0!==w){if(w)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(y===e||u(y,e,n,l,c)))return v.push(t)}))){m=!1;break}}else if(y!==b&&!u(y,b,n,l,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(54),o=n(205),i=n(206);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(8);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(217);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(218),o=n(103);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(46),o=n(30),i=n(5),a=n(41),s=n(56),l=n(32);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,p=!1;++u<c;){var f=l(t[u]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++u!=c?p:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(i(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(221),o=n(103);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(47),o=n(13),i=n(108),a=n(5);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(45),o=n(12);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t,n){var r=n(223),o=n(45),i=n(13),a=n(224),s=n(5);e.exports=function(e,t,n){var l=s(e)?r:a,u=arguments.length<3;return l(e,i(t,4),n,u,o)}},function(e,t,n){var r=n(234),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},function(e,t,n){var r=n(235),o=n(236)(r);e.exports=o},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(12),o=n(11);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(245),o=n(14);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(7),o=n(116);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},l=new o,u=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),u=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);u<r.distance&&(r.distance=u,r.predecessor=i,l.decrease(t,u))};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&&(i=l.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(u);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(7);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,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!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],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(7);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(s){var l=o[s]={onStack:!0,lowlink:t,index:t++};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)):(a(e),l.lowlink=Math.min(l.lowlink,o[e].lowlink))}));if(l.lowlink===l.index){var u,c=[];do{u=n.pop(),o[u].onStack=!1,c.push(u)}while(s!==u);i.push(c)}}(a)})),i}},function(e,t,n){var r=n(7);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(7);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,s)})),o&&s.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){var r=n(264),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i: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(40),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(4),o=n(9).Graph,i=n(50).slack;function a(e,t){return r.forEach(e.nodes(),(function n(o){r.forEach(t.nodeEdges(o),(function(r){var a=r.v,s=o===a?r.w:a;e.hasNode(s)||i(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 i(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}),u=e.nodes()[0],c=e.nodeCount();r.setNode(u,{});for(;a(r,e)<c;)t=s(r,e),n=r.hasNode(t.v)?i(e,t):-i(e,t),l(r,e,n);return r}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(51);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(18))},function(e,t,n){"use strict";
- /** @license React v16.9.0
- * 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,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder");var v="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function _(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function x(){}function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw y(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=_.prototype;var E=k.prototype=new x;E.constructor=k,r(E,_.prototype),E.isPureReactComponent=!0;var C={current:null},S={suspense:null},N={current:null},P=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r=void 0,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:N.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var L=/\/+/g,A=[];function B(e,t,n,r){if(A.length){var o=A.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 j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function I(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 i:case a: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 u=0;u<t.length;u++){var c=n+R(s=t[u],u);l+=e(s,c,r,o)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+R(s,u++),r,o);else if("object"===s)throw r=""+t,y(Error(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 D(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:i,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(L,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(L,"$&/")+"/"),I(e,F,t=B(t,i,r,o)),j(t)}function U(){var e=C.current;if(null===e)throw y(Error(321));return e}var W={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,D,t=B(null,null,t,n)),j(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!O(e))throw y(Error(143));return e}},createRef:function(){return{current:null}},Component:_,PureComponent:k,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:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:s,Profiler:u,StrictMode:l,Suspense:d,unstable_SuspenseList:h,createElement:M,cloneElement:function(e,t,n){if(null==e)throw y(Error(267),e);var o=void 0,a=r({},e.props),s=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=N.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)P.call(t,o)&&!T.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){c=Array(o);for(var p=0;p<o;p++)c[p]=arguments[p+2];a.children=c}return{$$typeof:i,type:e.type,key:s,ref:l,props:a,_owner:u}},createFactory:function(e){var t=M.bind(null,e);return t.type=e,t},isValidElement:O,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=S.suspense;S.suspense=void 0===t?null:t;try{e()}finally{S.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentBatchConfig:S,ReactCurrentOwner:N,IsSomeRendererActing:{current:!1},assign:r}},V={default:W},G=V&&W||V;e.exports=G.default||G},function(e,t,n){"use strict";
- /** @license React v16.9.0
- * 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(0),o=n(72),i=n(129);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!r)throw a(Error(227));var s=null,l={};function u(){if(s)for(var e in l){var t=l[e],n=s.indexOf(e);if(!(-1<n))throw a(Error(96),e);if(!p[n]){if(!t.extractEvents)throw a(Error(97),e);for(var r in p[n]=t,n=t.eventTypes){var o=void 0,i=n[r],u=t,d=r;if(f.hasOwnProperty(d))throw a(Error(99),d);f[d]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&c(h[o],u,d);o=!0}else i.registrationName?(c(i.registrationName,u,d),o=!0):o=!1;if(!o)throw a(Error(98),r,e)}}}}function c(e,t,n){if(d[e])throw a(Error(100),e);d[e]=t,h[e]=t.eventTypes[n].dependencies}var p=[],f={},d={},h={};function g(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var m=!1,v=null,y=!1,b=null,w={onError:function(e){m=!0,v=e}};function _(e,t,n,r,o,i,a,s,l){m=!1,v=null,g.apply(w,arguments)}var x=null,k=null,E=null;function C(e,t,n){var r=e.type||"unknown-event";e.currentTarget=E(n),function(e,t,n,r,o,i,s,l,u){if(_.apply(this,arguments),m){if(!m)throw a(Error(198));var c=v;m=!1,v=null,y||(y=!0,b=c)}}(r,t,void 0,e),e.currentTarget=null}function S(e,t){if(null==t)throw a(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function N(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var P=null;function T(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)C(e,t[r],n[r]);else t&&C(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function M(e){if(null!==e&&(P=S(P,e)),e=P,P=null,e){if(N(e,T),P)throw a(Error(95));if(y)throw e=b,y=!1,b=null,e}}var O={injectEventPluginOrder:function(e){if(s)throw a(Error(101));s=Array.prototype.slice.call(e),u()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!l.hasOwnProperty(t)||l[t]!==r){if(l[t])throw a(Error(102),t);l[t]=r,n=!0}}n&&u()}};function L(e,t){var n=e.stateNode;if(!n)return null;var r=x(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":(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 a(Error(231),t,typeof n);return n}var A=Math.random().toString(36).slice(2),B="__reactInternalInstance$"+A,j="__reactEventHandlers$"+A;function I(e){if(e[B])return e[B];for(;!e[B];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[B]).tag||6===e.tag?e:null}function R(e){return!(e=e[B])||5!==e.tag&&6!==e.tag?null:e}function D(e){if(5===e.tag||6===e.tag)return e.stateNode;throw a(Error(33))}function F(e){return e[j]||null}function z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=L(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=z(t);for(t=n.length;0<t--;)U(n[t],"captured",e);for(t=0;t<n.length;t++)U(n[t],"bubbled",e)}}function V(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=L(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function G(e){e&&e.dispatchConfig.registrationName&&V(e._targetInst,null,e)}function Y(e){N(e,W)}var q=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function X(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var H={animationend:X("Animation","AnimationEnd"),animationiteration:X("Animation","AnimationIteration"),animationstart:X("Animation","AnimationStart"),transitionend:X("Transition","TransitionEnd")},Z={},$={};function Q(e){if(Z[e])return Z[e];if(!H[e])return e;var t,n=H[e];for(t in n)if(n.hasOwnProperty(t)&&t in $)return Z[e]=n[t];return e}q&&($=document.createElement("div").style,"AnimationEvent"in window||(delete H.animationend.animation,delete H.animationiteration.animation,delete H.animationstart.animation),"TransitionEvent"in window||delete H.transitionend.transition);var K=Q("animationend"),J=Q("animationiteration"),ee=Q("animationstart"),te=Q("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),re=null,oe=null,ie=null;function ae(){if(ie)return ie;var e,t,n=oe,r=n.length,o="value"in re?re.value:re.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ie=o.slice(e,1<t?1-t:void 0)}function se(){return!0}function le(){return!1}function ue(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)?se:le,this.isPropagationStopped=le,this}function ce(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 pe(e){if(!(e instanceof this))throw a(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=pe}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=se)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=se)},persist:function(){this.isPersistent=se},isPersistent:le,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=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.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},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var de=ue.extend({data:null}),he=ue.extend({data:null}),ge=[9,13,27,32],me=q&&"CompositionEvent"in window,ve=null;q&&"documentMode"in document&&(ve=document.documentMode);var ye=q&&"TextEvent"in window&&!ve,be=q&&(!me||ve&&8<ve&&11>=ve),we=String.fromCharCode(32),_e={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(" ")}},xe=!1;function ke(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var Se={eventTypes:_e,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":o=_e.compositionStart;break e;case"compositionend":o=_e.compositionEnd;break e;case"compositionupdate":o=_e.compositionUpdate;break e}o=void 0}else Ce?ke(e,n)&&(o=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=_e.compositionStart);return o?(be&&"ko"!==n.locale&&(Ce||o!==_e.compositionStart?o===_e.compositionEnd&&Ce&&(i=ae()):(oe="value"in(re=r)?re.value:re.textContent,Ce=!0)),o=de.getPooled(o,t,n,r),i?o.data=i:null!==(i=Ee(n))&&(o.data=i),Y(o),i=o):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(xe=!0,we);case"textInput":return(e=t.data)===we&&xe?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!me&&ke(e,t)?(e=ae(),ie=oe=re=null,Ce=!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 be&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=he.getPooled(_e.beforeInput,t,n,r)).data=e,Y(t)):t=null,null===i?t:null===t?i:[i,t]}},Ne=null,Pe=null,Te=null;function Me(e){if(e=k(e)){if("function"!=typeof Ne)throw a(Error(280));var t=x(e.stateNode);Ne(e.stateNode,e.type,t)}}function Oe(e){Pe?Te?Te.push(e):Te=[e]:Pe=e}function Le(){if(Pe){var e=Pe,t=Te;if(Te=Pe=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Ae(e,t){return e(t)}function Be(e,t,n,r){return e(t,n,r)}function je(){}var Ie=Ae,Re=!1;function De(){null===Pe&&null===Te||(je(),Le())}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function Ue(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function We(e){if(!q)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ge(e){e._valueTracker||(e._valueTracker=function(e){var t=Ve(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 Ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var qe=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe.hasOwnProperty("ReactCurrentDispatcher")||(qe.ReactCurrentDispatcher={current:null}),qe.hasOwnProperty("ReactCurrentBatchConfig")||(qe.ReactCurrentBatchConfig={suspense:null});var Xe=/^(.*)[\\\/]/,He="function"==typeof Symbol&&Symbol.for,Ze=He?Symbol.for("react.element"):60103,$e=He?Symbol.for("react.portal"):60106,Qe=He?Symbol.for("react.fragment"):60107,Ke=He?Symbol.for("react.strict_mode"):60108,Je=He?Symbol.for("react.profiler"):60114,et=He?Symbol.for("react.provider"):60109,tt=He?Symbol.for("react.context"):60110,nt=He?Symbol.for("react.concurrent_mode"):60111,rt=He?Symbol.for("react.forward_ref"):60112,ot=He?Symbol.for("react.suspense"):60113,it=He?Symbol.for("react.suspense_list"):60120,at=He?Symbol.for("react.memo"):60115,st=He?Symbol.for("react.lazy"):60116;He&&Symbol.for("react.fundamental"),He&&Symbol.for("react.responder");var lt="function"==typeof Symbol&&Symbol.iterator;function ut(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=lt&&e[lt]||e["@@iterator"])?e:null}function ct(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 Qe:return"Fragment";case $e:return"Portal";case Je:return"Profiler";case Ke:return"StrictMode";case ot:return"Suspense";case it:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case at:return ct(e.type);case st:if(e=1===e._status?e._result:null)return ct(e)}return null}function pt(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,i=ct(e.type);n=null,r&&(n=ct(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Xe,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ft=/^[: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]*$/,dt=Object.prototype.hasOwnProperty,ht={},gt={};function mt(e,t,n,r,o,i){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=i}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){vt[e]=new mt(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];vt[t]=new mt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){vt[e]=new mt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){vt[e]=new mt(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){vt[e]=new mt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){vt[e]=new mt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){vt[e]=new mt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){vt[e]=new mt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){vt[e]=new mt(e,5,!1,e.toLowerCase(),null,!1)}));var yt=/[\-:]([a-z])/g;function bt(e){return e[1].toUpperCase()}function wt(e,t,n,r){var o=vt.hasOwnProperty(t)?vt[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!!dt.call(gt,e)||!dt.call(ht,e)&&(ft.test(e)?gt[e]=!0:(ht[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))))}function _t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function xt(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 kt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=_t(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 Et(e,t){null!=(t=t.checked)&&wt(e,"checked",t,!1)}function Ct(e,t){Et(e,t);var n=_t(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")?Nt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nt(e,t.type,_t(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function St(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Nt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"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(yt,bt);vt[t]=new mt(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(yt,bt);vt[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(yt,bt);vt[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!1)})),vt.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!0)}));var Pt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Tt(e,t,n){return(e=ue.getPooled(Pt.change,e,t,n)).type="change",Oe(n),Y(e),e}var Mt=null,Ot=null;function Lt(e){M(e)}function At(e){if(Ye(D(e)))return e}function Bt(e,t){if("change"===e)return t}var jt=!1;function It(){Mt&&(Mt.detachEvent("onpropertychange",Rt),Ot=Mt=null)}function Rt(e){if("value"===e.propertyName&&At(Ot))if(e=Tt(Ot,e,Ue(e)),Re)M(e);else{Re=!0;try{Ae(Lt,e)}finally{Re=!1,De()}}}function Dt(e,t,n){"focus"===e?(It(),Ot=n,(Mt=t).attachEvent("onpropertychange",Rt)):"blur"===e&&It()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return At(Ot)}function zt(e,t){if("click"===e)return At(t)}function Ut(e,t){if("input"===e||"change"===e)return At(t)}q&&(jt=We("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:Pt,_isInputEventSupported:jt,extractEvents:function(e,t,n,r){var o=t?D(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=Bt:ze(o)?jt?i=Ut:(i=Ft,a=Dt):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=zt),i&&(i=i(e,t)))return Tt(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Nt(o,"number",o.value)}},Vt=ue.extend({view:null,detail:null}),Gt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gt[e])&&!!t[e]}function qt(){return Yt}var Xt=0,Ht=0,Zt=!1,$t=!1,Qt=Vt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:qt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Xt;return Xt=e.screenX,Zt?"mousemove"===e.type?e.screenX-t:0:(Zt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ht;return Ht=e.screenY,$t?"mousemove"===e.type?e.screenY-t:0:($t=!0,0)}}),Kt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},en={eventTypes:Jt,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?I(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Qt,s=Jt.mouseLeave,l=Jt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Kt,s=Jt.pointerLeave,l=Jt.pointerEnter,u="pointer");var c=null==i?o:D(i);if(o=null==t?o:D(t),(e=a.getPooled(s,i,n,r)).type=u+"leave",e.target=c,e.relatedTarget=o,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=c,r=t,i&&r)e:{for(o=r,u=0,a=t=i;a;a=z(a))u++;for(a=0,l=o;l;l=z(l))a++;for(;0<u-a;)t=z(t),u--;for(;0<a-u;)o=z(o),a--;for(;u--;){if(t===o||t===o.alternate)break e;t=z(t),o=z(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(u=i.alternate)||u!==o);)t.push(i),i=z(i);for(i=[];r&&r!==o&&(null===(u=r.alternate)||u!==o);)i.push(r),r=z(r);for(r=0;r<t.length;r++)V(t[r],"bubbled",e);for(r=i.length;0<r--;)V(i[r],"captured",n);return[e,n]}};function tn(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var nn=Object.prototype.hasOwnProperty;function rn(e,t){if(tn(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(!nn.call(t,n[r])||!tn(e[n[r]],t[n[r]]))return!1;return!0}function on(e,t){return{responder:e,props:t}}function an(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sn(e){if(2!==an(e))throw a(Error(188))}function ln(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=an(e)))throw a(Error(188));return 1===t?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return sn(o),e;if(i===r)return sn(o),t;i=i.sibling}throw a(Error(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw a(Error(189))}}if(n.alternate!==r)throw a(Error(190))}if(3!==n.tag)throw a(Error(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}new Map,new Map,new Set,new Map;var un=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cn=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pn=Vt.extend({relatedTarget:null});function fn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var dn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},gn=Vt.extend({key:function(e){if(e.key){var t=dn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:qt,charCode:function(e){return"keypress"===e.type?fn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),mn=Qt.extend({dataTransfer:null}),vn=Vt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:qt}),yn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),bn=Qt.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}),wn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[K,"animationEnd",2],[J,"animationIteration",2],[ee,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[te,"transitionEnd",2],["waiting","waiting",2]],_n={},xn={},kn=0;kn<wn.length;kn++){var En=wn[kn],Cn=En[0],Sn=En[1],Nn=En[2],Pn="on"+(Sn[0].toUpperCase()+Sn.slice(1)),Tn={phasedRegistrationNames:{bubbled:Pn,captured:Pn+"Capture"},dependencies:[Cn],eventPriority:Nn};_n[Sn]=Tn,xn[Cn]=Tn}var Mn={eventTypes:_n,getEventPriority:function(e){return void 0!==(e=xn[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=xn[e];if(!o)return null;switch(e){case"keypress":if(0===fn(n))return null;case"keydown":case"keyup":e=gn;break;case"blur":case"focus":e=pn;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=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vn;break;case K:case J:case ee:e=un;break;case te:e=yn;break;case"scroll":e=Vt;break;case"wheel":e=bn;break;case"copy":case"cut":case"paste":e=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Kt;break;default:e=ue}return Y(t=e.getPooled(o,t,n,r)),t}},On=Mn.getEventPriority,Ln=[];function An(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=I(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Ue(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<p.length;s++){var l=p[s];l&&(l=l.extractEvents(r,t,i,o))&&(a=S(a,l))}M(a)}}var Bn=!0;function jn(e,t){In(t,e,!1)}function In(e,t,n){switch(On(t)){case 0:var r=Rn.bind(null,t,1);break;case 1:r=Dn.bind(null,t,1);break;default:r=Fn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Rn(e,t,n){Re||je();var r=Fn,o=Re;Re=!0;try{Be(r,e,t,n)}finally{(Re=o)||De()}}function Dn(e,t,n){Fn(e,t,n)}function Fn(e,t,n){if(Bn){if(null===(t=I(t=Ue(n)))||"number"!=typeof t.tag||2===an(t)||(t=null),Ln.length){var r=Ln.pop();r.topLevelType=e,r.nativeEvent=n,r.targetInst=t,e=r}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,Re)An(n);else{Re=!0;try{Ie(An,n,void 0)}finally{Re=!1,De()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ln.length&&Ln.push(e)}}}var zn=new("function"==typeof WeakMap?WeakMap:Map);function Un(e){var t=zn.get(e);return void 0===t&&(t=new Set,zn.set(e,t)),t}function Wn(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 Vn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,r=Vn(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=Vn(r)}}function Yn(){for(var e=window,t=Wn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Wn((e=t.contentWindow).document)}return t}function qn(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 Xn=q&&"documentMode"in document&&11>=document.documentMode,Hn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zn=null,$n=null,Qn=null,Kn=!1;function Jn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kn||null==Zn||Zn!==Wn(n)?null:("selectionStart"in(n=Zn)&&qn(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},Qn&&rn(Qn,n)?null:(Qn=n,(e=ue.getPooled(Hn.select,$n,e,t)).type="select",e.target=Zn,Y(e),e))}var er={eventTypes:Hn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Un(i),o=h.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?D(t):window,e){case"focus":(ze(i)||"true"===i.contentEditable)&&(Zn=i,$n=t,Qn=null);break;case"blur":Qn=$n=Zn=null;break;case"mousedown":Kn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kn=!1,Jn(n,r);case"selectionchange":if(Xn)break;case"keydown":case"keyup":return Jn(n,r)}return null}};function tr(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 nr(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=""+_t(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 rr(e,t){if(null!=t.dangerouslySetInnerHTML)throw a(Error(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function or(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw a(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw a(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:_t(n)}}function ir(e,t){var n=_t(t.value),r=_t(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 ar(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}O.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=F,k=R,E=D,O.injectEventPluginsByName({SimpleEventPlugin:Mn,EnterLeaveEventPlugin:en,ChangeEventPlugin:Wt,SelectEventPlugin:er,BeforeInputEventPlugin:Se});var sr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lr(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 ur(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var cr=void 0,pr=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!==sr.svg||"innerHTML"in e)e.innerHTML=t;else{for((cr=cr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var dr={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},hr=["Webkit","ms","Moz","O"];function gr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function mr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=gr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(dr).forEach((function(e){hr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]}))}));var vr=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 yr(e,t){if(t){if(vr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw a(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw a(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw a(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw a(Error(62),"")}}function br(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function wr(e,t){var n=Un(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.has(o)){switch(o){case"scroll":In(e,"scroll",!0);break;case"focus":case"blur":In(e,"focus",!0),In(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":We(o)&&In(e,o,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(o)&&jn(o,e)}n.add(o)}}}function _r(){}var xr=null,kr=null;function Er(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Cr(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 Sr="function"==typeof setTimeout?setTimeout:void 0,Nr="function"==typeof clearTimeout?clearTimeout:void 0;function Pr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Tr=[],Mr=-1;function Or(e){0>Mr||(e.current=Tr[Mr],Tr[Mr]=null,Mr--)}function Lr(e,t){Tr[++Mr]=e.current,e.current=t}var Ar={},Br={current:Ar},jr={current:!1},Ir=Ar;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Dr(e){return null!=(e=e.childContextTypes)}function Fr(e){Or(jr),Or(Br)}function zr(e){Or(jr),Or(Br)}function Ur(e,t,n){if(Br.current!==Ar)throw a(Error(168));Lr(Br,t),Lr(jr,n)}function Wr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw a(Error(108),ct(t)||"Unknown",i);return o({},n,r)}function Vr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ar,Ir=Br.current,Lr(Br,t),Lr(jr,jr.current),!0}function Gr(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=Wr(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=t,Or(jr),Or(Br),Lr(Br,t)):Or(jr),Lr(jr,n)}var Yr=i.unstable_runWithPriority,qr=i.unstable_scheduleCallback,Xr=i.unstable_cancelCallback,Hr=i.unstable_shouldYield,Zr=i.unstable_requestPaint,$r=i.unstable_now,Qr=i.unstable_getCurrentPriorityLevel,Kr=i.unstable_ImmediatePriority,Jr=i.unstable_UserBlockingPriority,eo=i.unstable_NormalPriority,to=i.unstable_LowPriority,no=i.unstable_IdlePriority,ro={},oo=void 0!==Zr?Zr:function(){},io=null,ao=null,so=!1,lo=$r(),uo=1e4>lo?$r:function(){return $r()-lo};function co(){switch(Qr()){case Kr:return 99;case Jr:return 98;case eo:return 97;case to:return 96;case no:return 95;default:throw a(Error(332))}}function po(e){switch(e){case 99:return Kr;case 98:return Jr;case 97:return eo;case 96:return to;case 95:return no;default:throw a(Error(332))}}function fo(e,t){return e=po(e),Yr(e,t)}function ho(e,t,n){return e=po(e),qr(e,t,n)}function go(e){return null===io?(io=[e],ao=qr(Kr,vo)):io.push(e),ro}function mo(){null!==ao&&Xr(ao),vo()}function vo(){if(!so&&null!==io){so=!0;var e=0;try{var t=io;fo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),io=null}catch(t){throw null!==io&&(io=io.slice(e+1)),qr(Kr,mo),t}finally{so=!1}}}function yo(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function bo(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 wo={current:null},_o=null,xo=null,ko=null;function Eo(){ko=xo=_o=null}function Co(e,t){var n=e.type._context;Lr(wo,n._currentValue),n._currentValue=t}function So(e){var t=wo.current;Or(wo),e.type._context._currentValue=t}function No(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 Po(e,t){_o=e,ko=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(pa=!0),e.firstContext=null)}function To(e,t){if(ko!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ko=e,t=1073741823),t={context:e,observedBits:t,next:null},null===xo){if(null===_o)throw a(Error(308));xo=t,_o.dependencies={expirationTime:0,firstContext:t,responders:null}}else xo=xo.next=t;return e._currentValue}var Mo=!1;function Oo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Lo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ao(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Bo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function jo(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Oo(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Oo(e.memoizedState),o=n.updateQueue=Oo(n.memoizedState)):r=e.updateQueue=Lo(o):null===o&&(o=n.updateQueue=Lo(r));null===o||r===o?Bo(r,t):null===r.lastUpdate||null===o.lastUpdate?(Bo(r,t),Bo(o,t)):(Bo(r,t),o.lastUpdate=t)}function Io(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Oo(e.memoizedState):Ro(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Ro(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Lo(t)),t}function Do(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:Mo=!0}return r}function Fo(e,t,n,r,o){Mo=!1;for(var i=(t=Ro(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=i;null!==l;){var c=l.expirationTime;c<o?(null===a&&(a=l,i=u),s<c&&(s=c)):(Ws(c,l.suspenseConfig),u=Do(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var p=l.expirationTime;p<o?(null===c&&(c=l,null===a&&(i=u)),s<p&&(s=p)):(u=Do(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function zo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Uo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Uo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Uo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw a(Error(191),n);n.call(r)}e=e.nextEffect}}var Wo=qe.ReactCurrentBatchConfig,Vo=(new r.Component).refs;function Go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ts(),o=Wo.suspense;(o=Ao(r=Ms(r,e,o),o)).payload=t,null!=n&&(o.callback=n),jo(e,o),Ls(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ts(),o=Wo.suspense;(o=Ao(r=Ms(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),jo(e,o),Ls(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ts(),r=Wo.suspense;(r=Ao(n=Ms(n,e,r),r)).tag=2,null!=t&&(r.callback=t),jo(e,r),Ls(e,n)}};function qo(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!rn(n,r)||!rn(o,i))}function Xo(e,t,n){var r=!1,o=Ar,i=t.contextType;return"object"==typeof i&&null!==i?i=To(i):(o=Dr(t)?Ir:Br.current,i=(r=null!=(r=t.contextTypes))?Rr(e,o):Ar),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ho(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&&Yo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Vo;var i=t.contextType;"object"==typeof i&&null!==i?o.context=To(i):(i=Dr(t)?Ir:Br.current,o.context=Rr(e,i)),null!==(i=e.updateQueue)&&(Fo(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Go(e,t,i,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&&Yo.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(Fo(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var $o=Array.isArray;function Qo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;if(n){if(1!==n.tag)throw a(Error(309));r=n.stateNode}if(!r)throw a(Error(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===Vo&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw a(Error(284));if(!n._owner)throw a(Error(290),e)}return e}function Ko(e,t){if("textarea"!==e.type)throw a(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Jo(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,n){return(e=il(e,t)).index=0,e.sibling=null,e}function i(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=ll(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Qo(e,t,n),r.return=e,r):((r=al(n.type,n.key,n.props,null,e.mode,r)).ref=Qo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ul(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=sl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ll(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ze:return(n=al(t.type,t.key,t.props,null,e.mode,n)).ref=Qo(e,null,t),n.return=e,n;case $e:return(t=ul(t,e.mode,n)).return=e,t}if($o(t)||ut(t))return(t=sl(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function d(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 Ze:return n.key===o?n.type===Qe?p(e,t,n.props.children,r,o):u(e,t,n,r):null;case $e:return n.key===o?c(e,t,n,r):null}if($o(n)||ut(n))return null!==o?null:p(e,t,n,r,null);Ko(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 Ze:return e=e.get(null===r.key?n:r.key)||null,r.type===Qe?p(t,e,r.props.children,o,r.key):u(t,e,r,o);case $e:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if($o(r)||ut(r))return p(t,e=e.get(n)||null,r,o,null);Ko(t,r)}return null}function g(o,a,s,l){for(var u=null,c=null,p=a,g=a=0,m=null;null!==p&&g<s.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=d(o,p,s[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(o,p),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,p=m}if(g===s.length)return n(o,p),u;if(null===p){for(;g<s.length;g++)null!==(p=f(o,s[g],l))&&(a=i(p,a,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(o,p);g<s.length;g++)null!==(m=h(p,o,g,s[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(o,e)})),u}function m(o,s,l,u){var c=ut(l);if("function"!=typeof c)throw a(Error(150));if(null==(l=c.call(l)))throw a(Error(151));for(var p=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=d(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,m),null===p?c=b:p.sibling=b,p=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(s=i(y,s,m),null===p?c=y:p.sibling=y,p=y);return c}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=i(y,s,m),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,l){var u="object"==typeof i&&null!==i&&i.type===Qe&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Ze:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag?i.type===Qe:u.elementType===i.type){n(e,u.sibling),(r=o(u,i.type===Qe?i.props.children:i.props)).ref=Qo(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Qe?((r=sl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=al(i.type,i.key,i.props,null,e.mode,l)).ref=Qo(e,r,i),l.return=e,e=l)}return s(e);case $e:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ul(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=ll(i,e.mode,l)).return=e,e=r),s(e);if($o(i))return g(e,r,i,l);if(ut(i))return m(e,r,i,l);if(c&&Ko(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var ei=Jo(!0),ti=Jo(!1),ni={},ri={current:ni},oi={current:ni},ii={current:ni};function ai(e){if(e===ni)throw a(Error(174));return e}function si(e,t){Lr(ii,t),Lr(oi,e),Lr(ri,ni);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ur(null,"");break;default:t=ur(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Or(ri),Lr(ri,t)}function li(e){Or(ri),Or(oi),Or(ii)}function ui(e){ai(ii.current);var t=ai(ri.current),n=ur(t,e.type);t!==n&&(Lr(oi,e),Lr(ri,n))}function ci(e){oi.current===e&&(Or(ri),Or(oi))}var pi=1,fi=1,di=2,hi={current:0};function gi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mi=0,vi=2,yi=4,bi=8,wi=16,_i=32,xi=64,ki=128,Ei=qe.ReactCurrentDispatcher,Ci=0,Si=null,Ni=null,Pi=null,Ti=null,Mi=null,Oi=null,Li=0,Ai=null,Bi=0,ji=!1,Ii=null,Ri=0;function Di(){throw a(Error(321))}function Fi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function zi(e,t,n,r,o,i){if(Ci=i,Si=t,Pi=null!==e?e.memoizedState:null,Ei.current=null===Pi?Ji:ea,t=n(r,o),ji){do{ji=!1,Ri+=1,Pi=null!==e?e.memoizedState:null,Oi=Ti,Ai=Mi=Ni=null,Ei.current=ea,t=n(r,o)}while(ji);Ii=null,Ri=0}if(Ei.current=Ki,(e=Si).memoizedState=Ti,e.expirationTime=Li,e.updateQueue=Ai,e.effectTag|=Bi,e=null!==Ni&&null!==Ni.next,Ci=0,Oi=Mi=Ti=Pi=Ni=Si=null,Li=0,Ai=null,Bi=0,e)throw a(Error(300));return t}function Ui(){Ei.current=Ki,Ci=0,Oi=Mi=Ti=Pi=Ni=Si=null,Li=0,Ai=null,Bi=0,ji=!1,Ii=null,Ri=0}function Wi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Mi?Ti=Mi=e:Mi=Mi.next=e,Mi}function Vi(){if(null!==Oi)Oi=(Mi=Oi).next,Pi=null!==(Ni=Pi)?Ni.next:null;else{if(null===Pi)throw a(Error(310));var e={memoizedState:(Ni=Pi).memoizedState,baseState:Ni.baseState,queue:Ni.queue,baseUpdate:Ni.baseUpdate,next:null};Mi=null===Mi?Ti=e:Mi.next=e,Pi=Ni.next}return Mi}function Gi(e,t){return"function"==typeof t?t(e):t}function Yi(e){var t=Vi(),n=t.queue;if(null===n)throw a(Error(311));if(n.lastRenderedReducer=e,0<Ri){var r=n.dispatch;if(null!==Ii){var o=Ii.get(n);if(void 0!==o){Ii.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return tn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var s=t.baseUpdate;if(i=t.baseState,null!==s?(null!==r&&(r.next=null),r=s.next):r=null!==r?r.next:null,null!==r){var l=o=null,u=r,c=!1;do{var p=u.expirationTime;p<Ci?(c||(c=!0,l=s,o=i),p>Li&&(Li=p)):(Ws(p,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),s=u,u=u.next}while(null!==u&&u!==r);c||(l=s,o=i),tn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function qi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Ai?(Ai={lastEffect:null}).lastEffect=e.next=e:null===(t=Ai.lastEffect)?Ai.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Ai.lastEffect=e),e}function Xi(e,t,n,r){var o=Wi();Bi|=e,o.memoizedState=qi(t,n,void 0,void 0===r?null:r)}function Hi(e,t,n,r){var o=Vi();r=void 0===r?null:r;var i=void 0;if(null!==Ni){var a=Ni.memoizedState;if(i=a.destroy,null!==r&&Fi(r,a.deps))return void qi(mi,n,i,r)}Bi|=e,o.memoizedState=qi(t,n,i,r)}function Zi(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 $i(){}function Qi(e,t,n){if(!(25>Ri))throw a(Error(301));var r=e.alternate;if(e===Si||null!==r&&r===Si)if(ji=!0,e={expirationTime:Ci,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Ii&&(Ii=new Map),void 0===(n=Ii.get(t)))Ii.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Ts(),i=Wo.suspense;i={expirationTime:o=Ms(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var s=t.last;if(null===s)i.next=i;else{var l=s.next;null!==l&&(i.next=l),s.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=r(u,n);if(i.eagerReducer=r,i.eagerState=c,tn(c,u))return}catch(e){}Ls(e,o)}}var Ki={readContext:To,useCallback:Di,useContext:Di,useEffect:Di,useImperativeHandle:Di,useLayoutEffect:Di,useMemo:Di,useReducer:Di,useRef:Di,useState:Di,useDebugValue:Di,useResponder:Di},Ji={readContext:To,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:function(e,t){return Xi(516,ki|xi,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Xi(4,yi|_i,Zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4,yi|_i,e,t)},useMemo:function(e,t){var n=Wi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Qi.bind(null,Si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Wi().memoizedState=e},useState:function(e){var t=Wi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=Qi.bind(null,Si,e),[t.memoizedState,e]},useDebugValue:$i,useResponder:on},ea={readContext:To,useCallback:function(e,t){var n=Vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:To,useEffect:function(e,t){return Hi(516,ki|xi,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Hi(4,yi|_i,Zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4,yi|_i,e,t)},useMemo:function(e,t){var n=Vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Yi,useRef:function(){return Vi().memoizedState},useState:function(e){return Yi(Gi)},useDebugValue:$i,useResponder:on},ta=null,na=null,ra=!1;function oa(e,t){var n=rl(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 ia(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 aa(e){if(ra){var t=na;if(t){var n=t;if(!ia(e,t)){if(!(t=Pr(n.nextSibling))||!ia(e,t))return e.effectTag|=2,ra=!1,void(ta=e);oa(ta,n)}ta=e,na=Pr(t.firstChild)}else e.effectTag|=2,ra=!1,ta=e}}function sa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ta=e}function la(e){if(e!==ta)return!1;if(!ra)return sa(e),ra=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Cr(t,e.memoizedProps))for(t=na;t;)oa(e,t),t=Pr(t.nextSibling);return sa(e),na=ta?Pr(e.stateNode.nextSibling):null,!0}function ua(){na=ta=null,ra=!1}var ca=qe.ReactCurrentOwner,pa=!1;function fa(e,t,n,r){t.child=null===e?ti(t,null,n,r):ei(t,e.child,n,r)}function da(e,t,n,r,o){n=n.render;var i=t.ref;return Po(t,o),r=zi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ca(e,t,o))}function ha(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||ol(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=al(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ga(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:rn)(o,r)&&e.ref===t.ref)?Ca(e,t,i):(t.effectTag|=1,(e=il(a,r)).ref=t.ref,e.return=t,t.child=e)}function ga(e,t,n,r,o,i){return null!==e&&rn(e.memoizedProps,r)&&e.ref===t.ref&&(pa=!1,o<i)?Ca(e,t,i):va(e,t,n,r,i)}function ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function va(e,t,n,r,o){var i=Dr(n)?Ir:Br.current;return i=Rr(t,i),Po(t,o),n=zi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ca(e,t,o))}function ya(e,t,n,r,o){if(Dr(n)){var i=!0;Vr(t)}else i=!1;if(Po(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Xo(t,n,r),Zo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=To(u):u=Rr(t,u=Dr(n)?Ir:Br.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Ho(t,a,r,u),Mo=!1;var f=t.memoizedState;l=a.state=f;var d=t.updateQueue;null!==d&&(Fo(t,d,r,a,o),l=t.memoizedState),s!==r||f!==l||jr.current||Mo?("function"==typeof c&&(Go(t,n,c,r),l=t.memoizedState),(s=Mo||qo(t,n,s,r,f,l,u))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:bo(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=To(u):u=Rr(t,u=Dr(n)?Ir:Br.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Ho(t,a,r,u),Mo=!1,l=t.memoizedState,f=a.state=l,null!==(d=t.updateQueue)&&(Fo(t,d,r,a,o),f=t.memoizedState),s!==r||l!==f||jr.current||Mo?("function"==typeof c&&(Go(t,n,c,r),f=t.memoizedState),(c=Mo||qo(t,n,s,r,l,f,u))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return ba(e,t,n,r,i,o)}function ba(e,t,n,r,o,i){ma(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Gr(t,n,!1),Ca(e,t,i);r=t.stateNode,ca.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ei(t,e.child,null,i),t.child=ei(t,null,s,i)):fa(e,t,s,i),t.memoizedState=r.state,o&&Gr(t,n,!0),t.child}function wa(e){var t=e.stateNode;t.pendingContext?Ur(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ur(0,t.context,!1),si(e,t.containerInfo)}var _a={};function xa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=hi.current,s=null,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(a&di)&&(null===e||null!==e.memoizedState)),r?(s=_a,l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=fi),Lr(hi,a&=pi),null===e)if(l){if(i=i.fallback,(e=sl(null,o,0,null)).return=t,0==(2&t.mode))for(l=null!==t.memoizedState?t.child.child:t.child,e.child=l;null!==l;)l.return=e,l=l.sibling;(n=sl(i,o,n,null)).return=t,e.sibling=n,o=e}else o=n=ti(t,null,i.children,n);else{if(null!==e.memoizedState)if(o=(a=e.child).sibling,l){if(i=i.fallback,(n=il(a,a.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;(i=il(o,i,o.expirationTime)).return=t,n.sibling=i,o=n,n.childExpirationTime=0,n=i}else o=n=ei(t,a.child,i.children,n);else if(a=e.child,l){if(l=i.fallback,(i=sl(null,o,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(n=sl(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,o=i,i.childExpirationTime=0}else n=o=ei(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=s,t.child=o,n}function ka(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function Ea(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(fa(e,t,r.children,n),0!=((r=hi.current)&di))r=r&pi|di,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),No(e.return,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&=pi}if(Lr(hi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(r=n.alternate)&&null===gi(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ka(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===gi(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}ka(t,!0,n,null,i);break;case"together":ka(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ca(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw a(Error(153));if(null!==t.child){for(n=il(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=il(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Sa(e){e.effectTag|=4}var Na=void 0,Pa=void 0,Ta=void 0,Ma=void 0;function Oa(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 La(e){switch(e.tag){case 1:Dr(e.type)&&Fr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(li(),zr(),0!=(64&(t=e.effectTag)))throw a(Error(285));return e.effectTag=-2049&t|64,e;case 5:return ci(e),null;case 13:return Or(hi),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Or(hi),null;case 4:return li(),null;case 10:return So(e),null;default:return null}}function Aa(e,t){return{value:e,source:t,stack:pt(t)}}Na=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);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}},Pa=function(){},Ta=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s=t.stateNode;switch(ai(ri.current),e=null,n){case"input":a=xt(s,a),r=xt(s,r),e=[];break;case"option":a=tr(s,a),r=tr(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=rr(s,a),r=rr(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=_r)}yr(n,r),s=n=void 0;var l=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(s in u)u.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(d.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(u=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(l||(l={}),l[s]=c[s])}else l||(e||(e=[]),e.push(n,l)),l=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(d.hasOwnProperty(n)?(null!=c&&wr(i,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}l&&(e=e||[]).push("style",l),i=e,(t.updateQueue=i)&&Sa(t)}},Ma=function(e,t,n,r){n!==r&&Sa(t)};var Ba="function"==typeof WeakSet?WeakSet:Set;function ja(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=pt(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function Ia(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){$s(e,t)}else t.current=null}function Ra(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==mi){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==mi&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function Da(e,t){switch("function"==typeof tl&&tl(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var r=n.next;fo(97<t?97:t,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(e){$s(o,e)}}t=t.next}while(t!==r)}))}break;case 1:Ia(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){$s(e,t)}}(e,t);break;case 5:Ia(e);break;case 4:Wa(e,t)}}function Fa(e,t){for(var n=e;;)if(Da(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function za(e){return 5===e.tag||3===e.tag||4===e.tag}function Ua(e){e:{for(var t=e.return;null!==t;){if(za(t)){var n=t;break e}t=t.return}throw a(Error(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 a(Error(161))}16&n.effectTag&&(fr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||za(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}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i||20===o.tag){var s=i?o.stateNode:o.stateNode.instance;if(n)if(r){var l=s;s=n,8===(i=t).nodeType?i.parentNode.insertBefore(l,s):i.insertBefore(l,s)}else t.insertBefore(s,n);else r?(8===(l=t).nodeType?(i=l.parentNode).insertBefore(s,l):(i=l).appendChild(s),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=_r)):t.appendChild(s)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Wa(e,t){for(var n=e,r=!1,o=void 0,i=void 0;;){if(!r){r=n.return;e:for(;;){if(null===r)throw a(Error(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(5===n.tag||6===n.tag)if(Fa(n,t),i){var s=o,l=n.stateNode;8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)}else o.removeChild(n.stateNode);else if(20===n.tag)l=n.stateNode.instance,Fa(n,t),i?8===(s=o).nodeType?s.parentNode.removeChild(l):s.removeChild(l):o.removeChild(l);else if(4===n.tag){if(null!==n.child){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Da(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Va(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Ra(yi,bi,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[j]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Et(n,r),br(e,o),t=br(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?mr(n,l):"dangerouslySetInnerHTML"===s?pr(n,l):"children"===s?fr(n,l):wt(n,s,l,t)}switch(e){case"input":Ct(n,r);break;case"textarea":ir(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?nr(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?nr(n,!!r.multiple,r.defaultValue,!0):nr(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw a(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,gs=uo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=gr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Ga(t);break;case 19:Ga(t);break;case 17:case 20:break;default:throw a(Error(163))}}function Ga(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ba),t.forEach((function(t){var r=Ks.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Ya="function"==typeof WeakMap?WeakMap:Map;function qa(e,t,n){(n=Ao(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ys||(ys=!0,bs=r),ja(e,t)},n}function Xa(e,t,n){(n=Ao(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ja(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ws?ws=new Set([this]):ws.add(this),ja(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Ha=Math.ceil,Za=qe.ReactCurrentDispatcher,$a=qe.ReactCurrentOwner,Qa=0,Ka=8,Ja=16,es=32,ts=0,ns=1,rs=2,os=3,is=4,as=Qa,ss=null,ls=null,us=0,cs=ts,ps=1073741823,fs=1073741823,ds=null,hs=!1,gs=0,ms=500,vs=null,ys=!1,bs=null,ws=null,_s=!1,xs=null,ks=90,Es=0,Cs=null,Ss=0,Ns=null,Ps=0;function Ts(){return(as&(Ja|es))!==Qa?1073741821-(uo()/10|0):0!==Ps?Ps:Ps=1073741821-(uo()/10|0)}function Ms(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=co();if(0==(4&t))return 99===r?1073741823:1073741822;if((as&Ja)!==Qa)return us;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(r){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw a(Error(326))}return null!==ss&&e===us&&--e,e}var Os=0;function Ls(e,t){if(50<Ss)throw Ss=0,Ns=null,a(Error(185));if(null!==(e=As(e,t))){e.pingTime=0;var n=co();if(1073741823===t)if((as&Ka)!==Qa&&(as&(Ja|es))===Qa)for(var r=Us(e,1073741823,!0);null!==r;)r=r(!0);else Bs(e,99,1073741823),as===Qa&&mo();else Bs(e,n,t);(4&as)===Qa||98!==n&&99!==n||(null===Cs?Cs=new Map([[e,t]]):(void 0===(n=Cs.get(e))||n>t)&&Cs.set(e,t))}}function As(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&&(t>o.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t<e)&&(o.lastPendingTime=t),o}function Bs(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==ro&&Xr(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=go(js.bind(null,e,Us.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-uo()}),e.callbackNode=ho(t,js.bind(null,e,Us.bind(null,e,n)),r))}}function js(e,t,n){var r=e.callbackNode,o=null;try{return null!==(o=t(n))?js.bind(null,e,o):null}finally{null===o&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Is(){(as&(1|Ja|es))===Qa&&(function(){if(null!==Cs){var e=Cs;Cs=null,e.forEach((function(e,t){go(Us.bind(null,t,e))})),mo()}}(),Xs())}function Rs(e,t){var n=as;as|=1;try{return e(t)}finally{(as=n)===Qa&&mo()}}function Ds(e,t,n,r){var o=as;as|=4;try{return fo(98,e.bind(null,t,n,r))}finally{(as=o)===Qa&&mo()}}function Fs(e,t){var n=as;as&=-2,as|=Ka;try{return e(t)}finally{(as=n)===Qa&&mo()}}function zs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Nr(n)),null!==ls)for(n=ls.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&Fr();break;case 3:li(),zr();break;case 5:ci(r);break;case 4:li();break;case 13:case 19:Or(hi);break;case 10:So(r)}n=n.return}ss=e,ls=il(e.current,null),us=t,cs=ts,fs=ps=1073741823,ds=null,hs=!1}function Us(e,t,n){if((as&(Ja|es))!==Qa)throw a(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Ys.bind(null,e);if(Xs(),e!==ss||t!==us)zs(e,t);else if(cs===os)if(hs)zs(e,t);else{var r=e.lastPendingTime;if(r<t)return Us.bind(null,e,r)}if(null!==ls){r=as,as|=Ja;var o=Za.current;if(null===o&&(o=Ki),Za.current=Ki,n){if(1073741823!==t){var i=Ts();if(i<t)return as=r,Eo(),Za.current=o,Us.bind(null,e,i)}}else Ps=0;for(;;)try{if(n)for(;null!==ls;)ls=Vs(ls);else for(;null!==ls&&!Hr();)ls=Vs(ls);break}catch(n){if(Eo(),Ui(),null===(i=ls)||null===i.return)throw zs(e,t),as=r,n;e:{var s=e,l=i.return,u=i,c=n,p=us;if(u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var f=c,d=0!=(hi.current&fi);c=l;do{var h;if((h=13===c.tag)&&(null!==c.memoizedState?h=!1:h=void 0!==(h=c.memoizedProps).fallback&&(!0!==h.unstable_avoidThisFallback||!d)),h){if(null===(l=c.updateQueue)?((l=new Set).add(f),c.updateQueue=l):l.add(f),0==(2&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((p=Ao(1073741823,null)).tag=2,jo(u,p))),u.expirationTime=1073741823;break e}u=s,s=p,null===(d=u.pingCache)?(d=u.pingCache=new Ya,l=new Set,d.set(f,l)):void 0===(l=d.get(f))&&(l=new Set,d.set(f,l)),l.has(s)||(l.add(s),u=Qs.bind(null,u,f,s),f.then(u,u)),c.effectTag|=2048,c.expirationTime=p;break e}c=c.return}while(null!==c);c=Error((ct(u.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."+pt(u))}cs!==is&&(cs=ns),c=Aa(c,u),u=l;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=p,Io(u,p=qa(u,c,p));break e;case 1:if(f=c,s=u.type,l=u.stateNode,0==(64&u.effectTag)&&("function"==typeof s.getDerivedStateFromError||null!==l&&"function"==typeof l.componentDidCatch&&(null===ws||!ws.has(l)))){u.effectTag|=2048,u.expirationTime=p,Io(u,p=Xa(u,f,p));break e}}u=u.return}while(null!==u)}ls=Gs(i)}if(as=r,Eo(),Za.current=o,null!==ls)return Us.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ho(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(ss=null,cs){case ts:throw a(Error(328));case ns:return(r=e.lastPendingTime)<t?Us.bind(null,e,r):n?Ys.bind(null,e):(zs(e,t),go(Us.bind(null,e,t)),null);case rs:return 1073741823===ps&&!n&&10<(n=gs+ms-uo())?hs?(zs(e,t),Us.bind(null,e,t)):(r=e.lastPendingTime)<t?Us.bind(null,e,r):(e.timeoutHandle=Sr(Ys.bind(null,e),n),null):Ys.bind(null,e);case os:if(!n){if(hs)return zs(e,t),Us.bind(null,e,t);if((n=e.lastPendingTime)<t)return Us.bind(null,e,n);if(1073741823!==fs?n=10*(1073741821-fs)-uo():1073741823===ps?n=0:(n=10*(1073741821-ps)-5e3,0>(n=(r=uo())-n)&&(n=0),(t=10*(1073741821-t)-r)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ha(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Sr(Ys.bind(null,e),n),null}return Ys.bind(null,e);case is:return!n&&1073741823!==ps&&null!==ds&&(r=ps,0>=(t=0|(o=ds).busyMinDurationMs)?t=0:(n=0|o.busyDelayMs,t=(r=uo()-(10*(1073741821-r)-(0|o.timeoutMs||5e3)))<=n?0:n+t-r),10<t)?(e.timeoutHandle=Sr(Ys.bind(null,e),t),null):Ys.bind(null,e);default:throw a(Error(329))}}function Ws(e,t){e<ps&&1<e&&(ps=e),null!==t&&e<fs&&1<e&&(fs=e,ds=t)}function Vs(e){var t=Js(e.alternate,e,us);return e.memoizedProps=e.pendingProps,null===t&&(t=Gs(e)),$a.current=null,t}function Gs(e){ls=e;do{var t=ls.alternate;if(e=ls.return,0==(1024&ls.effectTag)){e:{var n=t,r=us,i=(t=ls).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Dr(t.type)&&Fr();break;case 3:li(),zr(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==n&&null!==n.child||(la(t),t.effectTag&=-3),Pa(t);break;case 5:ci(t),r=ai(ii.current);var s=t.type;if(null!==n&&null!=t.stateNode)Ta(n,t,s,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var l=ai(ri.current);if(la(t)){i=void 0,s=(n=t).stateNode;var u=n.type,c=n.memoizedProps;switch(s[B]=n,s[j]=c,u){case"iframe":case"object":case"embed":jn("load",s);break;case"video":case"audio":for(var p=0;p<ne.length;p++)jn(ne[p],s);break;case"source":jn("error",s);break;case"img":case"image":case"link":jn("error",s),jn("load",s);break;case"form":jn("reset",s),jn("submit",s);break;case"details":jn("toggle",s);break;case"input":kt(s,c),jn("invalid",s),wr(r,"onChange");break;case"select":s._wrapperState={wasMultiple:!!c.multiple},jn("invalid",s),wr(r,"onChange");break;case"textarea":or(s,c),jn("invalid",s),wr(r,"onChange")}for(i in yr(u,c),p=null,c)c.hasOwnProperty(i)&&(l=c[i],"children"===i?"string"==typeof l?s.textContent!==l&&(p=["children",l]):"number"==typeof l&&s.textContent!==""+l&&(p=["children",""+l]):d.hasOwnProperty(i)&&null!=l&&wr(r,i));switch(u){case"input":Ge(s),St(s,c,!0);break;case"textarea":Ge(s),ar(s);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(s.onclick=_r)}r=p,n.updateQueue=r,null!==r&&Sa(t)}else{c=s,n=i,u=t,p=9===r.nodeType?r:r.ownerDocument,l===sr.html&&(l=lr(c)),l===sr.html?"script"===c?((c=p.createElement("div")).innerHTML="<script><\/script>",p=c.removeChild(c.firstChild)):"string"==typeof n.is?p=p.createElement(c,{is:n.is}):(p=p.createElement(c),"select"===c&&(c=p,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):p=p.createElementNS(l,c),(c=p)[B]=u,c[j]=n,Na(n=c,t,!1,!1),u=n;var f=r,h=br(s,i);switch(s){case"iframe":case"object":case"embed":jn("load",u),r=i;break;case"video":case"audio":for(r=0;r<ne.length;r++)jn(ne[r],u);r=i;break;case"source":jn("error",u),r=i;break;case"img":case"image":case"link":jn("error",u),jn("load",u),r=i;break;case"form":jn("reset",u),jn("submit",u),r=i;break;case"details":jn("toggle",u),r=i;break;case"input":kt(u,i),r=xt(u,i),jn("invalid",u),wr(f,"onChange");break;case"option":r=tr(u,i);break;case"select":u._wrapperState={wasMultiple:!!i.multiple},r=o({},i,{value:void 0}),jn("invalid",u),wr(f,"onChange");break;case"textarea":or(u,i),r=rr(u,i),jn("invalid",u),wr(f,"onChange");break;default:r=i}yr(s,r),c=void 0,p=s,l=u;var g=r;for(c in g)if(g.hasOwnProperty(c)){var m=g[c];"style"===c?mr(l,m):"dangerouslySetInnerHTML"===c?null!=(m=m?m.__html:void 0)&&pr(l,m):"children"===c?"string"==typeof m?("textarea"!==p||""!==m)&&fr(l,m):"number"==typeof m&&fr(l,""+m):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(d.hasOwnProperty(c)?null!=m&&wr(f,c):null!=m&&wt(l,c,m,h))}switch(s){case"input":Ge(u),St(u,i,!1);break;case"textarea":Ge(u),ar(u);break;case"option":null!=i.value&&u.setAttribute("value",""+_t(i.value));break;case"select":r=u,u=i,r.multiple=!!u.multiple,null!=(c=u.value)?nr(r,!!u.multiple,c,!1):null!=u.defaultValue&&nr(r,!!u.multiple,u.defaultValue,!0);break;default:"function"==typeof r.onClick&&(u.onclick=_r)}Er(s,i)&&Sa(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw a(Error(166));break;case 6:if(n&&null!=t.stateNode)Ma(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw a(Error(166));n=ai(ii.current),ai(ri.current),la(t)?(r=t.stateNode,n=t.memoizedProps,r[B]=t,r.nodeValue!==n&&Sa(t)):(r=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[B]=t,r.stateNode=n)}break;case 11:break;case 13:if(Or(hi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}r=null!==i,i=!1,null===n?la(t):(i=null!==(s=n.memoizedState),r||null===s||null!==(s=n.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=s,s.nextEffect=u):(t.firstEffect=t.lastEffect=s,s.nextEffect=null),s.effectTag=8)),r&&!i&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(hi.current&fi)?cs===ts&&(cs=rs):cs!==ts&&cs!==rs||(cs=os)),(r||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:li(),Pa(t);break;case 10:So(t);break;case 9:case 14:break;case 17:Dr(t.type)&&Fr();break;case 18:break;case 19:if(Or(hi),null===(i=t.memoizedState))break;if(s=0!=(64&t.effectTag),null===(u=i.rendering)){if(s)Oa(i,!1);else if(cs!==ts||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(u=gi(n))){for(t.effectTag|=64,Oa(i,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)s=r,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(u=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=u.childExpirationTime,i.expirationTime=u.expirationTime,i.child=u.child,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,s=u.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),n=n.sibling;Lr(hi,hi.current&pi|di),t=t.child;break e}n=n.sibling}}else{if(!s)if(null!==(n=gi(u))){if(t.effectTag|=64,s=!0,Oa(i,!0),null===i.tail&&"hidden"===i.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else uo()>i.tailExpiration&&1<r&&(t.effectTag|=64,s=!0,Oa(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=i.last)?r.sibling=u:t.child=u,i.last=u)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=uo()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,n=hi.current,Lr(hi,n=s?n&pi|di:n&pi),t=r;break e}break;case 20:break;default:throw a(Error(156))}t=null}if(r=ls,1===us||1!==r.childExpirationTime){for(n=0,i=r.child;null!==i;)(s=i.expirationTime)>n&&(n=s),(u=i.childExpirationTime)>n&&(n=u),i=i.sibling;r.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ls.firstEffect),null!==ls.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ls.firstEffect),e.lastEffect=ls.lastEffect),1<ls.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ls:e.firstEffect=ls,e.lastEffect=ls))}else{if(null!==(t=La(ls)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=ls.sibling))return t;ls=e}while(null!==ls);return cs===ts&&(cs=is),null}function Ys(e){var t=co();return fo(99,qs.bind(null,e,t)),null!==xs&&ho(97,(function(){return Xs(),null})),null}function qs(e,t){if(Xs(),(as&(Ja|es))!==Qa)throw a(Error(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw a(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var o=n.expirationTime,i=n.childExpirationTime;if(o=i>o?i:o,e.firstPendingTime=o,o<e.lastPendingTime&&(e.lastPendingTime=o),e===ss&&(ls=ss=null,us=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){i=as,as|=es,$a.current=null,xr=Bn;var s=Yn();if(qn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var f=0,d=-1,h=-1,g=0,m=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==c&&3!==v.nodeType||(d=f+c),v!==p||0!==u&&3!==v.nodeType||(h=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++g===c&&(d=f),y===p&&++m===u&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===d||-1===h?null:{start:d,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;kr={focusedElem:s,selectionRange:l},Bn=!1,vs=o;do{try{for(;null!==vs;){if(0!=(256&vs.effectTag)){var w=vs.alternate;switch((s=vs).tag){case 0:case 11:case 15:Ra(vi,mi,s);break;case 1:if(256&s.effectTag&&null!==w){var _=w.memoizedProps,x=w.memoizedState,k=s.stateNode,E=k.getSnapshotBeforeUpdate(s.elementType===s.type?_:bo(s.type,_),x);k.__reactInternalSnapshotBeforeUpdate=E}break;case 3:case 5:case 6:case 4:case 17:break;default:throw a(Error(163))}}vs=vs.nextEffect}}catch(e){if(null===vs)throw a(Error(330));$s(vs,e),vs=vs.nextEffect}}while(null!==vs);vs=o;do{try{for(w=t;null!==vs;){var C=vs.effectTag;if(16&C&&fr(vs.stateNode,""),128&C){var S=vs.alternate;if(null!==S){var N=S.ref;null!==N&&("function"==typeof N?N(null):N.current=null)}}switch(14&C){case 2:Ua(vs),vs.effectTag&=-3;break;case 6:Ua(vs),vs.effectTag&=-3,Va(vs.alternate,vs);break;case 4:Va(vs.alternate,vs);break;case 8:Wa(_=vs,w),_.return=null,_.child=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null;var P=_.alternate;null!==P&&(P.return=null,P.child=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null)}vs=vs.nextEffect}}catch(e){if(null===vs)throw a(Error(330));$s(vs,e),vs=vs.nextEffect}}while(null!==vs);if(N=kr,S=Yn(),C=N.focusedElem,w=N.selectionRange,S!==C&&C&&C.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))))}(C.ownerDocument.documentElement,C)){null!==w&&qn(C)&&(S=w.start,void 0===(N=w.end)&&(N=S),"selectionStart"in C?(C.selectionStart=S,C.selectionEnd=Math.min(N,C.value.length)):(N=(S=C.ownerDocument||document)&&S.defaultView||window).getSelection&&(N=N.getSelection(),_=C.textContent.length,P=Math.min(w.start,_),w=void 0===w.end?P:Math.min(w.end,_),!N.extend&&P>w&&(_=w,w=P,P=_),_=Gn(C,P),x=Gn(C,w),_&&x&&(1!==N.rangeCount||N.anchorNode!==_.node||N.anchorOffset!==_.offset||N.focusNode!==x.node||N.focusOffset!==x.offset)&&((S=S.createRange()).setStart(_.node,_.offset),N.removeAllRanges(),P>w?(N.addRange(S),N.extend(x.node,x.offset)):(S.setEnd(x.node,x.offset),N.addRange(S))))),S=[];for(N=C;N=N.parentNode;)1===N.nodeType&&S.push({element:N,left:N.scrollLeft,top:N.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<S.length;C++)(N=S[C]).element.scrollLeft=N.left,N.element.scrollTop=N.top}kr=null,Bn=!!xr,xr=null,e.current=n,vs=o;do{try{for(C=r;null!==vs;){var T=vs.effectTag;if(36&T){var M=vs.alternate;switch(N=C,(S=vs).tag){case 0:case 11:case 15:Ra(wi,_i,S);break;case 1:var O=S.stateNode;if(4&S.effectTag)if(null===M)O.componentDidMount();else{var L=S.elementType===S.type?M.memoizedProps:bo(S.type,M.memoizedProps);O.componentDidUpdate(L,M.memoizedState,O.__reactInternalSnapshotBeforeUpdate)}var A=S.updateQueue;null!==A&&zo(0,A,O);break;case 3:var B=S.updateQueue;if(null!==B){if(P=null,null!==S.child)switch(S.child.tag){case 5:P=S.child.stateNode;break;case 1:P=S.child.stateNode}zo(0,B,P)}break;case 5:var j=S.stateNode;null===M&&4&S.effectTag&&(N=j,Er(S.type,S.memoizedProps)&&N.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw a(Error(163))}}if(128&T){var I=vs.ref;if(null!==I){var R=vs.stateNode;switch(vs.tag){case 5:var D=R;break;default:D=R}"function"==typeof I?I(D):I.current=D}}512&T&&(_s=!0),vs=vs.nextEffect}}catch(e){if(null===vs)throw a(Error(330));$s(vs,e),vs=vs.nextEffect}}while(null!==vs);vs=null,oo(),as=i}else e.current=n;if(_s)_s=!1,xs=e,Es=r,ks=t;else for(vs=o;null!==vs;)t=vs.nextEffect,vs.nextEffect=null,vs=t;if(0!==(t=e.firstPendingTime)?Bs(e,T=yo(T=Ts(),t),t):ws=null,"function"==typeof el&&el(n.stateNode,r),1073741823===t?e===Ns?Ss++:(Ss=0,Ns=e):Ss=0,ys)throw ys=!1,e=bs,bs=null,e;return(as&Ka)!==Qa?null:(mo(),null)}function Xs(){if(null===xs)return!1;var e=xs,t=Es,n=ks;return xs=null,Es=0,ks=90,fo(97<n?97:n,Hs.bind(null,e,t))}function Hs(e){if((as&(Ja|es))!==Qa)throw a(Error(331));var t=as;for(as|=es,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Ra(ki,mi,n),Ra(mi,xi,n)}}catch(t){if(null===e)throw a(Error(330));$s(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return as=t,mo(),!0}function Zs(e,t,n){jo(e,t=qa(e,t=Aa(n,t),1073741823)),null!==(e=As(e,1073741823))&&Bs(e,99,1073741823)}function $s(e,t){if(3===e.tag)Zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ws||!ws.has(r))){jo(n,e=Xa(n,e=Aa(t,e),1073741823)),null!==(n=As(n,1073741823))&&Bs(n,99,1073741823);break}}n=n.return}}function Qs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ss===e&&us===n?cs===os||cs===rs&&1073741823===ps&&uo()-gs<ms?zs(e,us):hs=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),Bs(e,t=yo(t=Ts(),n),n)))}function Ks(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=yo(n=Ts(),t=Ms(n,e,null)),null!==(e=As(e,t))&&Bs(e,n,t)}var Js=void 0;Js=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||jr.current)pa=!0;else if(r<n){switch(pa=!1,t.tag){case 3:wa(t),ua();break;case 5:if(ui(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Dr(t.type)&&Vr(t);break;case 4:si(t,t.stateNode.containerInfo);break;case 10:Co(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?xa(e,t,n):(Lr(hi,hi.current&pi),null!==(t=Ca(e,t,n))?t.sibling:null);Lr(hi,hi.current&pi);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ea(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),Lr(hi,hi.current),!r)return null}return Ca(e,t,n)}}else pa=!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=Rr(t,Br.current),Po(t,n),o=zi(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,Ui(),Dr(r)){var i=!0;Vr(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&Go(t,r,s,e),o.updater=Yo,t.stateNode=o,o._reactInternalFiber=t,Zo(t,r,e,n),t=ba(null,t,r,!0,i,n)}else t.tag=0,fa(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=o,i=t.tag=function(e){if("function"==typeof e)return ol(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===at)return 14}return 2}(o),e=bo(o,e),i){case 0:t=va(null,t,o,e,n);break;case 1:t=ya(null,t,o,e,n);break;case 11:t=da(null,t,o,e,n);break;case 14:t=ha(null,t,o,bo(o.type,e),r,n);break;default:throw a(Error(306),o,"")}return t;case 0:return r=t.type,o=t.pendingProps,va(e,t,r,o=t.elementType===r?o:bo(r,o),n);case 1:return r=t.type,o=t.pendingProps,ya(e,t,r,o=t.elementType===r?o:bo(r,o),n);case 3:if(wa(t),null===(r=t.updateQueue))throw a(Error(282));return o=null!==(o=t.memoizedState)?o.element:null,Fo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(ua(),t=Ca(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(na=Pr(t.stateNode.containerInfo.firstChild),ta=t,o=ra=!0),o?(t.effectTag|=2,t.child=ti(t,null,r,n)):(fa(e,t,r,n),ua()),t=t.child),t;case 5:return ui(t),null===e&&aa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Cr(r,o)?s=null:null!==i&&Cr(r,i)&&(t.effectTag|=16),ma(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(fa(e,t,s,n),t=t.child),t;case 6:return null===e&&aa(t),null;case 13:return xa(e,t,n);case 4:return si(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ei(t,null,r,n):fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,da(e,t,r,o=t.elementType===r?o:bo(r,o),n);case 7:return fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,Co(t,i=o.value),null!==s){var l=s.value;if(0===(i=tn(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!jr.current){t=Ca(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=Ao(n,null)).tag=2,jo(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),No(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.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}}fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,Po(t,n),r=r(o=To(o,i.unstable_observedBits)),t.effectTag|=1,fa(e,t,r,n),t.child;case 14:return i=bo(o=t.type,t.pendingProps),ha(e,t,o,i=bo(o.type,i),r,n);case 15:return ga(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Dr(r)?(e=!0,Vr(t)):e=!1,Po(t,n),Xo(t,r,o),Zo(t,r,o,n),ba(null,t,r,!0,e,n);case 19:return Ea(e,t,n)}throw a(Error(156))};var el=null,tl=null;function nl(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 rl(e,t,n,r){return new nl(e,t,n,r)}function ol(e){return!(!(e=e.prototype)||!e.isReactComponent)}function il(e,t){var n=e.alternate;return null===n?((n=rl(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 al(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)ol(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Qe:return sl(n.children,o,i,t);case nt:s=8,o|=7;break;case Ke:s=8,o|=1;break;case Je:return(e=rl(12,n,t,8|o)).elementType=Je,e.type=Je,e.expirationTime=i,e;case ot:return(e=rl(13,n,t,o)).type=ot,e.elementType=ot,e.expirationTime=i,e;case it:return(e=rl(19,n,t,o)).elementType=it,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:s=10;break e;case tt:s=9;break e;case rt:s=11;break e;case at:s=14;break e;case st:s=16,r=null;break e}throw a(Error(130),null==e?e:typeof e,"")}return(t=rl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function sl(e,t,n,r){return(e=rl(7,e,r,t)).expirationTime=n,e}function ll(e,t,n){return(e=rl(6,e,null,t)).expirationTime=n,e}function ul(e,t,n){return(t=rl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cl(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=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function pl(e,t,n){return e=new cl(e,t,n),t=rl(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function fl(e,t,n,r,o,i){var s=t.current;e:if(n){t:{if(2!==an(n=n._reactInternalFiber)||1!==n.tag)throw a(Error(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Dr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw a(Error(171))}if(1===n.tag){var u=n.type;if(Dr(u)){n=Wr(n,u,l);break e}}n=l}else n=Ar;return null===t.context?t.context=n:t.pendingContext=n,t=i,(o=Ao(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),jo(s,o),Ls(s,r),r}function dl(e,t,n,r){var o=t.current,i=Ts(),a=Wo.suspense;return fl(e,t,n,o=Ms(i,o,a),a,r)}function hl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function gl(e){var t=1073741821-25*(1+((1073741821-Ts()+500)/25|0));t<=Os&&--t,this._expirationTime=Os=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function ml(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function vl(e,t,n){this._internalRoot=pl(e,t,n)}function yl(e,t){this._internalRoot=pl(e,2,t)}function bl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function wl(e,t,n,r,o){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=hl(a);s.call(e)}}dl(t,a,e,o)}else{if(i=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 vl(e,0,t)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=hl(a);l.call(e)}}Fs((function(){dl(t,a,e,o)}))}return hl(a)}function _l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!bl(t))throw a(Error(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$e,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ne=function(e,t,n){switch(t){case"input":if(Ct(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=F(r);if(!o)throw a(Error(90));Ye(r),Ct(r,o)}}}break;case"textarea":ir(e,n);break;case"select":null!=(t=n.value)&&nr(e,!!n.multiple,t,!1)}},gl.prototype.render=function(e){if(!this._defer)throw a(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new ml;return fl(e,t,null,n,null,r._onCommit),r},gl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},gl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw a(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;if(null===r)throw a(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(as&(Ja|es))!==Qa)throw a(Error(253));go(Us.bind(null,e,t)),mo(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},gl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},ml.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ml.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)throw a(Error(191),n);n()}}},yl.prototype.render=vl.prototype.render=function(e,t){var n=this._internalRoot,r=new ml;return null!==(t=void 0===t?null:t)&&r.then(t),dl(e,n,null,r._onCommit),r},yl.prototype.unmount=vl.prototype.unmount=function(e){var t=this._internalRoot,n=new ml;return null!==(e=void 0===e?null:e)&&n.then(e),dl(null,t,null,n._onCommit),n},yl.prototype.createBatch=function(){var e=new gl(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ae=Rs,Be=Ds,je=Is,Ie=function(e,t){var n=as;as|=2;try{return e(t)}finally{(as=n)===Qa&&mo()}};var xl,kl,El={createPortal:_l,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw a(Error(188));throw a(Error(268),Object.keys(e))}e=null===(e=ln(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!bl(t))throw a(Error(200));return wl(null,e,t,!0,n)},render:function(e,t,n){if(!bl(t))throw a(Error(200));return wl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!bl(n))throw a(Error(200));if(null==e||void 0===e._reactInternalFiber)throw a(Error(38));return wl(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!bl(e))throw a(Error(40));return!!e._reactRootContainer&&(Fs((function(){wl(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return _l.apply(void 0,arguments)},unstable_batchedUpdates:Rs,unstable_interactiveUpdates:function(e,t,n,r){return Is(),Ds(e,t,n,r)},unstable_discreteUpdates:Ds,unstable_flushDiscreteUpdates:Is,flushSync:function(e,t){if((as&(Ja|es))!==Qa)throw a(Error(187));var n=as;as|=1;try{return fo(99,e.bind(null,t))}finally{as=n,mo()}},unstable_createRoot:function(e,t){if(!bl(e))throw a(Error(299),"unstable_createRoot");return new yl(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!bl(e))throw a(Error(299),"unstable_createRoot");return new vl(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=as;as|=1;try{fo(99,e)}finally{(as=t)===Qa&&mo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,D,F,O.injectEventPluginsByName,f,Y,function(e){N(e,G)},Oe,Le,Fn,M,Xs,{current:!1}]}};kl=(xl={findFiberByHostInstance:I,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);el=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},tl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},xl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ln(e))?null:e.stateNode},findFiberByHostInstance:function(e){return kl?kl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Cl={default:El},Sl=Cl&&El||Cl;e.exports=Sl.default||Sl},function(e,t,n){"use strict";e.exports=n(130)},function(e,t,n){"use strict";
- /** @license React v0.15.0
- * 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.
- */Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0,i=void 0,a=void 0,s=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}};t.unstable_now=function(){return Date.now()},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},o=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,f=window.Date,d=window.setTimeout,h=window.clearTimeout,g=window.requestAnimationFrame,m=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof g&&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 m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"==typeof p&&"function"==typeof p.now?function(){return p.now()}:function(){return f.now()};var v=!1,y=null,b=-1,w=-1,_=33.33,x=-1,k=-1,E=0,C=!1;a=function(){return t.unstable_now()>=E},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"):0<e?(_=Math.floor(1e3/e),C=!0):(_=33.33,C=!1)};var S=function(){if(null!==y){var e=t.unstable_now(),n=0<E-e;try{y(n,e)||(y=null)}catch(e){throw P.postMessage(null),e}}},N=new MessageChannel,P=N.port2;N.port1.onmessage=S;var T=function(e){if(null===y)k=x=-1,v=!1;else{v=!0,g((function(e){h(b),T(e)}));var n=function(){E=t.unstable_now()+_/2,S(),b=d(n,3*_)};if(b=d(n,3*_),-1!==x&&.1<e-x){var r=e-x;!C&&-1!==k&&r<_&&k<_&&(8.33>(_=r<k?k:r)&&(_=8.33)),k=r}x=e,E=e+_,P.postMessage(null)}};r=function(e){y=e,v||(v=!0,g((function(e){T(e)})))},o=function(e,n){w=d((function(){e(t.unstable_now())}),n)},i=function(){h(w),w=-1}}var M=null,O=null,L=null,A=3,B=!1,j=!1,I=!1;function R(e,t){var n=e.next;if(n===e)M=null;else{e===M&&(M=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null,n=e.callback,r=A;var o=L;A=e.priorityLevel,L=e;try{var i=e.expirationTime<=t;switch(A){case 1:var a=n(i);break;case 2:case 3:case 4:a=n(i);break;case 5:a=n(i)}}catch(e){throw e}finally{A=r,L=o}if("function"==typeof a)if(t=e.expirationTime,e.callback=a,null===M)M=e.next=e.previous=e;else{a=null,i=M;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==M);null===a?a=M:a===M&&(M=e),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}}function D(e){if(null!==O&&O.startTime<=e)do{var t=O,n=t.next;if(t===n)O=null;else{O=n;var r=t.previous;r.next=n,n.previous=r}t.next=t.previous=null,W(t,t.expirationTime)}while(null!==O&&O.startTime<=e)}function F(e){I=!1,D(e),j||(null!==M?(j=!0,r(z)):null!==O&&o(F,O.startTime-e))}function z(e,n){j=!1,I&&(I=!1,i()),D(n),B=!0;try{if(e){if(null!==M)do{R(M,n),D(n=t.unstable_now())}while(null!==M&&!a())}else for(;null!==M&&M.expirationTime<=n;)R(M,n),D(n=t.unstable_now());return null!==M||(null!==O&&o(F,O.startTime-n),!1)}finally{B=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function W(e,t){if(null===M)M=e.next=e.previous=e;else{var n=null,r=M;do{if(t<r.expirationTime){n=r;break}r=r.next}while(r!==M);null===n?n=M:n===M&&(M=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var V=s;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),l=s;if(e={callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,next:null,previous:null},l>s){if(a=l,null===O)O=e.next=e.previous=e;else{n=null;var u=O;do{if(a<u.startTime){n=u;break}u=u.next}while(u!==O);null===n?n=O:n===O&&(O=e),(a=n.previous).next=n.previous=e,e.next=n,e.previous=a}null===M&&O===e&&(I?i():I=!0,o(F,l-s))}else W(e,a),j||B||(j=!0,r(z));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===M?M=null:e===O&&(O=null);else{e===M?M=t:e===O&&(O=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_shouldYield=function(){var e=t.unstable_now();return D(e),null!==L&&null!==M&&M.startTime<=e&&M.expirationTime<L.expirationTime||a()},t.unstable_requestPaint=V,t.unstable_continueExecution=function(){j||B||(j=!0,r(z))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return M}},function(e,t,n){(function(e,r){var o;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,d=2,h=4,g=1,m=2,v=1,y=2,b=4,w=8,_=16,x=32,k=64,E=128,C=256,S=512,N=30,P="...",T=800,M=16,O=1,L=2,A=1/0,B=9007199254740991,j=17976931348623157e292,I=NaN,R=4294967295,D=R-1,F=R>>>1,z=[["ary",E],["bind",v],["bindKey",y],["curry",w],["curryRight",_],["flip",S],["partial",x],["partialRight",k],["rearg",C]],U="[object Arguments]",W="[object Array]",V="[object AsyncFunction]",G="[object Boolean]",Y="[object Date]",q="[object DOMException]",X="[object Error]",H="[object Function]",Z="[object GeneratorFunction]",$="[object Map]",Q="[object Number]",K="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",pe="[object Float64Array]",fe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",ge="[object Uint8Array]",me="[object Uint8ClampedArray]",ve="[object Uint16Array]",ye="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Ee=RegExp(xe.source),Ce=RegExp(ke.source),Se=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Le.source),Be=/^\s+|\s+$/g,je=/^\s+/,Ie=/\s+$/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ke+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+it+"|"+at+")",dt="(?:"+pt+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",gt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,ut,ct].join("|")+")"+gt,vt="(?:"+[lt+nt+"?",nt,ut,ct,et].join("|")+")",yt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+vt+gt,"g"),_t=RegExp([pt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,pt,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,pt+ft,"$"].join("|")+")",pt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ke+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ct=-1,St={};St[ce]=St[pe]=St[fe]=St[de]=St[he]=St[ge]=St[me]=St[ve]=St[ye]=!0,St[U]=St[W]=St[le]=St[G]=St[ue]=St[Y]=St[X]=St[H]=St[$]=St[Q]=St[J]=St[te]=St[ne]=St[re]=St[ae]=!1;var Nt={};Nt[U]=Nt[W]=Nt[le]=Nt[ue]=Nt[G]=Nt[Y]=Nt[ce]=Nt[pe]=Nt[fe]=Nt[de]=Nt[he]=Nt[$]=Nt[Q]=Nt[J]=Nt[te]=Nt[ne]=Nt[re]=Nt[oe]=Nt[ge]=Nt[me]=Nt[ve]=Nt[ye]=!0,Nt[X]=Nt[H]=Nt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Mt=parseInt,Ot="object"==typeof e&&e&&e.Object===Object&&e,Lt="object"==typeof self&&self&&self.Object===Object&&self,At=Ot||Lt||Function("return this")(),Bt=t&&!t.nodeType&&t,jt=Bt&&"object"==typeof r&&r&&!r.nodeType&&r,It=jt&&jt.exports===Bt,Rt=It&&Ot.process,Dt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}(),Ft=Dt&&Dt.isArrayBuffer,zt=Dt&&Dt.isDate,Ut=Dt&&Dt.isMap,Wt=Dt&&Dt.isRegExp,Vt=Dt&&Dt.isSet,Gt=Dt&&Dt.isTypedArray;function Yt(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 qt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ht(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Qt(e,t){return!!(null==e?0:e.length)&&ln(e,t,0)>-1}function Kt(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 Jt(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 en(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function tn(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function nn(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var on=fn("length");function an(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function sn(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function ln(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):sn(e,cn,n)}function un(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function cn(e){return e!=e}function pn(e,t){var n=null==e?0:e.length;return n?gn(e,t)/n:I}function fn(e){return function(t){return null==t?i:t[e]}}function dn(e){return function(t){return null==e?i:e[t]}}function hn(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function gn(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function mn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function vn(e){return function(t){return e(t)}}function yn(e,t){return Jt(t,(function(t){return e[t]}))}function bn(e,t){return e.has(t)}function wn(e,t){for(var n=-1,r=e.length;++n<r&&ln(t,e[n],0)>-1;);return n}function _n(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var xn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+Pt[e]}function Cn(e){return xt.test(e)}function Sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Nn(e,t){return function(n){return e(t(n))}}function Pn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==p||(e[n]=p,i[o++]=n)}return i}function Tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Mn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function On(e){return Cn(e)?function(e){var t=wt.lastIndex=0;for(;wt.test(e);)++t;return t}(e):on(e)}function Ln(e){return Cn(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.split("")}(e)}var An=dn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Bn=function e(t){var n,r=(t=null==t?At:Bn.defaults(At.Object(),t,Bn.pick(At,Et))).Array,o=t.Date,Ke=t.Error,Je=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Je.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ut=at.toString,ct=st.hasOwnProperty,pt=0,ft=(n=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=st.toString,ht=ut.call(tt),gt=At._,mt=nt("^"+ut.call(ct).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=It?t.Buffer:i,wt=t.Symbol,xt=t.Uint8Array,Pt=vt?vt.allocUnsafe:i,Ot=Nn(tt.getPrototypeOf,tt),Lt=tt.create,Bt=st.propertyIsEnumerable,jt=it.splice,Rt=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,dn=function(){try{var e=Fi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),jn=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,In=o&&o.now!==At.Date.now&&o.now,Rn=t.setTimeout!==At.setTimeout&&t.setTimeout,Dn=et.ceil,Fn=et.floor,zn=tt.getOwnPropertySymbols,Un=vt?vt.isBuffer:i,Wn=t.isFinite,Vn=it.join,Gn=Nn(tt.keys,tt),Yn=et.max,qn=et.min,Xn=o.now,Hn=t.parseInt,Zn=et.random,$n=it.reverse,Qn=Fi(t,"DataView"),Kn=Fi(t,"Map"),Jn=Fi(t,"Promise"),er=Fi(t,"Set"),tr=Fi(t,"WeakMap"),nr=Fi(tt,"create"),rr=tr&&new tr,or={},ir=pa(Qn),ar=pa(Kn),sr=pa(Jn),lr=pa(er),ur=pa(tr),cr=wt?wt.prototype:i,pr=cr?cr.valueOf:i,fr=cr?cr.toString:i;function dr(e){if(Ps(e)&&!vs(e)&&!(e instanceof vr)){if(e instanceof mr)return e;if(ct.call(e,"__wrapped__"))return fa(e)}return new mr(e)}var hr=function(){function e(){}return function(t){if(!Ns(t))return{};if(Lt)return Lt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function gr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function yr(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])}}function br(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])}}function wr(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])}}function _r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wr;++t<n;)this.add(e[t])}function xr(e){var t=this.__data__=new br(e);this.size=t.size}function kr(e,t){var n=vs(e),r=!n&&ms(e),o=!n&&!r&&_s(e),i=!n&&!r&&!o&&Is(e),a=n||r||o||i,s=a?mn(e.length,rt):[],l=s.length;for(var u in e)!t&&!ct.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qi(u,l))||s.push(u);return s}function Er(e){var t=e.length;return t?e[xo(0,t-1)]:i}function Cr(e,t){return la(ri(e),Br(t,0,e.length))}function Sr(e){return la(ri(e))}function Nr(e,t,n){(n===i||ds(e[t],n))&&(n!==i||t in e)||Lr(e,t,n)}function Pr(e,t,n){var r=e[t];ct.call(e,t)&&ds(r,n)&&(n!==i||t in e)||Lr(e,t,n)}function Tr(e,t){for(var n=e.length;n--;)if(ds(e[n][0],t))return n;return-1}function Mr(e,t,n,r){return Fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Or(e,t){return e&&oi(t,ol(t),e)}function Lr(e,t,n){"__proto__"==t&&dn?dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ar(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Js(e,t[n]);return a}function Br(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function jr(e,t,n,r,o,a){var s,l=t&f,u=t&d,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ns(e))return e;var p=vs(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ri(e,s)}else{var g=Wi(e),m=g==H||g==Z;if(_s(e))return Qo(e,l);if(g==J||g==U||m&&!o){if(s=u||m?{}:Gi(e),!l)return u?function(e,t){return oi(e,Ui(e),t)}(e,function(e,t){return e&&oi(t,il(t),e)}(s,e)):function(e,t){return oi(e,zi(e),t)}(e,Or(s,e))}else{if(!Nt[g])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case le:return Ko(e);case G:case Y:return new r(+e);case ue:return function(e,t){var n=t?Ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case pe:case fe:case de:case he:case ge:case me:case ve:case ye:return Jo(e,n);case $:return new r;case Q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,pr?tt(pr.call(o)):{}}var o}(e,g,l)}}a||(a=new xr);var v=a.get(e);if(v)return v;a.set(e,s),As(e)?e.forEach((function(r){s.add(jr(r,t,n,r,e,a))})):Ts(e)&&e.forEach((function(r,o){s.set(o,jr(r,t,n,o,e,a))}));var y=p?i:(c?u?Li:Oi:u?il:ol)(e);return Xt(y||e,(function(r,o){y&&(r=e[o=r]),Pr(s,o,jr(r,t,n,o,e,a))})),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new ot(l);return oa((function(){e.apply(i,n)}),t)}function Dr(e,t,n,r){var o=-1,i=Qt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=Jt(t,vn(n))),r?(i=Kt,s=!1):t.length>=a&&(i=bn,s=!1,t=new _r(t));e:for(;++o<l;){var p=e[o],f=null==n?p:n(p);if(p=r||0!==p?p:0,s&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(p)}else i(t,f,r)||u.push(p)}return u}dr.templateSettings={escape:Se,evaluate:Ne,interpolate:Pe,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,mr.prototype=hr(gr.prototype),mr.prototype.constructor=mr,vr.prototype=hr(gr.prototype),vr.prototype.constructor=vr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yr.prototype.get=function(e){var t=this.__data__;if(nr){var n=t[e];return n===u?i:n}return ct.call(t,e)?t[e]:i},yr.prototype.has=function(e){var t=this.__data__;return nr?t[e]!==i:ct.call(t,e)},yr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nr&&t===i?u:t,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(e){var t=this.__data__,n=Tr(t,e);return!(n<0)&&(n==t.length-1?t.pop():jt.call(t,n,1),--this.size,!0)},br.prototype.get=function(e){var t=this.__data__,n=Tr(t,e);return n<0?i:t[n][1]},br.prototype.has=function(e){return Tr(this.__data__,e)>-1},br.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Kn||br),string:new yr}},wr.prototype.delete=function(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ri(this,e).get(e)},wr.prototype.has=function(e){return Ri(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ri(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},_r.prototype.add=_r.prototype.push=function(e){return this.__data__.set(e,u),this},_r.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.clear=function(){this.__data__=new br,this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xr.prototype.get=function(e){return this.__data__.get(e)},xr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Kn||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wr(r)}return n.set(e,t),this.size=n.size,this};var Fr=si(Xr),zr=si(Hr,!0);function Ur(e,t){var n=!0;return Fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Wr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!js(s):n(s,l)))var l=s,u=a}return u}function Vr(e,t){var n=[];return Fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Gr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=li(),qr=li(!0);function Xr(e,t){return e&&Yr(e,t,ol)}function Hr(e,t){return e&&qr(e,t,ol)}function Zr(e,t){return $t(t,(function(t){return Es(e[t])}))}function $r(e,t){for(var n=0,r=(t=Xo(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:i}function Qr(e,t,n){var r=t(e);return vs(e)?r:en(r,n(e))}function Kr(e){return null==e?e===i?ie:K:on&&on in tt(e)?function(e){var t=ct.call(e,on),n=e[on];try{e[on]=i;var r=!0}catch(e){}var o=dt.call(e);r&&(t?e[on]=n:delete e[on]);return o}(e):function(e){return dt.call(e)}(e)}function Jr(e,t){return e>t}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Kt:Qt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,p=[];l--;){var f=e[l];l&&t&&(f=Jt(f,vn(t))),c=qn(f.length,c),u[l]=!n&&(t||a>=120&&f.length>=120)?new _r(l&&f):i}f=e[0];var d=-1,h=u[0];e:for(;++d<a&&p.length<c;){var g=f[d],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?bn(h,m):o(p,m,n))){for(l=s;--l;){var v=u[l];if(!(v?bn(v,m):o(e[l],m,n)))continue e}h&&h.push(m),p.push(g)}}return p}function ro(e,t,n){var r=null==(e=ta(e,t=Xo(t,e)))?e:e[ca(ka(t))];return null==r?i:Yt(r,e,n)}function oo(e){return Ps(e)&&Kr(e)==U}function io(e,t,n,r,o){return e===t||(null==e||null==t||!Ps(e)&&!Ps(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=vs(e),l=vs(t),u=s?W:Wi(e),c=l?W:Wi(t),p=(u=u==U?J:u)==J,f=(c=c==U?J:c)==J,d=u==c;if(d&&_s(e)){if(!_s(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new xr),s||Is(e)?Ti(e,t,n,r,o,a):function(e,t,n,r,o,i,a){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case le:return!(e.byteLength!=t.byteLength||!i(new xt(e),new xt(t)));case G:case Y:case Q:return ds(+e,+t);case X:return e.name==t.name&&e.message==t.message;case te:case re:return e==t+"";case $:var s=Sn;case ne:var l=r&g;if(s||(s=Tn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=m,a.set(e,t);var c=Ti(s(e),s(t),r,o,i,a);return a.delete(e),c;case oe:if(pr)return pr.call(e)==pr.call(t)}return!1}(e,t,u,n,r,o,a);if(!(n&g)){var h=p&&ct.call(e,"__wrapped__"),v=f&&ct.call(t,"__wrapped__");if(h||v){var y=h?e.value():e,b=v?t.value():t;return a||(a=new xr),o(y,b,n,r,a)}}if(!d)return!1;return a||(a=new xr),function(e,t,n,r,o,a){var s=n&g,l=Oi(e),u=l.length,c=Oi(t).length;if(u!=c&&!s)return!1;var p=u;for(;p--;){var f=l[p];if(!(s?f in t:ct.call(t,f)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);var m=s;for(;++p<u;){f=l[p];var v=e[f],y=t[f];if(r)var b=s?r(y,v,f,t,e,a):r(v,y,f,e,t,a);if(!(b===i?v===y||o(v,y,n,r,a):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a)}(e,t,n,r,io,o))}function ao(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=tt(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],p=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new xr;if(r)var d=r(c,p,u,e,t,f);if(!(d===i?io(p,c,g|m,r,f):d))return!1}}return!0}function so(e){return!(!Ns(e)||(t=e,ft&&ft in t))&&(Es(e)?mt:qe).test(pa(e));var t}function lo(e){return"function"==typeof e?e:null==e?Ml:"object"==typeof e?vs(e)?go(e[0],e[1]):ho(e):Fl(e)}function uo(e){if(!Qi(e))return Gn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function co(e){if(!Ns(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Qi(e),n=[];for(var r in e)("constructor"!=r||!t&&ct.call(e,r))&&n.push(r);return n}function po(e,t){return e<t}function fo(e,t){var n=-1,o=bs(e)?r(e.length):[];return Fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function ho(e){var t=Di(e);return 1==t.length&&t[0][2]?Ji(t[0][0],t[0][1]):function(n){return n===e||ao(n,e,t)}}function go(e,t){return Hi(e)&&Ki(t)?Ji(ca(e),t):function(n){var r=Js(n,e);return r===i&&r===t?el(n,e):io(t,r,g|m)}}function mo(e,t,n,r,o){e!==t&&Yr(t,(function(a,s){if(o||(o=new xr),Ns(a))!function(e,t,n,r,o,a,s){var l=na(e,n),u=na(t,n),c=s.get(u);if(c)return void Nr(e,n,c);var p=a?a(l,u,n+"",e,t,s):i,f=p===i;if(f){var d=vs(u),h=!d&&_s(u),g=!d&&!h&&Is(u);p=u,d||h||g?vs(l)?p=l:ws(l)?p=ri(l):h?(f=!1,p=Qo(u,!0)):g?(f=!1,p=Jo(u,!0)):p=[]:Os(u)||ms(u)?(p=l,ms(l)?p=Gs(l):Ns(l)&&!Es(l)||(p=Gi(u))):f=!1}f&&(s.set(u,p),o(p,u,r,a,s),s.delete(u));Nr(e,n,p)}(e,t,s,n,mo,r,o);else{var l=r?r(na(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Nr(e,s,l)}}),il)}function vo(e,t){var n=e.length;if(n)return qi(t+=t<0?n:0,n)?e[t]:i}function yo(e,t,n){var r=-1;return t=Jt(t.length?t:[Ml],vn(Ii())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(fo(e,(function(e,n,o){return{criteria:Jt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=ei(o[r],i[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=$r(e,a);n(s,a)&&No(i,Xo(a,e),s)}return i}function wo(e,t,n,r){var o=r?un:ln,i=-1,a=t.length,s=e;for(e===t&&(t=ri(t)),n&&(s=Jt(e,vn(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&jt.call(s,l,1),jt.call(e,l,1);return e}function _o(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;qi(o)?jt.call(e,o,1):Fo(e,o)}}return e}function xo(e,t){return e+Fn(Zn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>B)return n;do{t%2&&(n+=e),(t=Fn(t/2))&&(e+=e)}while(t);return n}function Eo(e,t){return ia(ea(e,t,Ml),e+"")}function Co(e){return Er(dl(e))}function So(e,t){var n=dl(e);return la(n,Br(t,0,n.length))}function No(e,t,n,r){if(!Ns(e))return e;for(var o=-1,a=(t=Xo(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=ca(t[o]),c=n;if(o!=s){var p=l[u];(c=r?r(p,u,l):i)===i&&(c=Ns(p)?p:qi(t[o+1])?[]:{})}Pr(l,u,c),l=l[u]}return e}var Po=rr?function(e,t){return rr.set(e,t),e}:Ml,To=dn?function(e,t){return dn(e,"toString",{configurable:!0,enumerable:!1,value:Nl(t),writable:!0})}:Ml;function Mo(e){return la(dl(e))}function Oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Lo(e,t){var n;return Fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=F){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!js(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Bo(e,t,Ml,n)}function Bo(e,t,n,r){t=n(t);for(var o=0,a=null==e?0:e.length,s=t!=t,l=null===t,u=js(t),c=t===i;o<a;){var p=Fn((o+a)/2),f=n(e[p]),d=f!==i,h=null===f,g=f==f,m=js(f);if(s)var v=r||g;else v=c?g&&(r||d):l?g&&d&&(r||!h):u?g&&d&&!h&&(r||!m):!h&&!m&&(r?f<=t:f<t);v?o=p+1:a=p}return qn(a,D)}function jo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ds(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function Io(e){return"number"==typeof e?e:js(e)?I:+e}function Ro(e){if("string"==typeof e)return e;if(vs(e))return Jt(e,Ro)+"";if(js(e))return fr?fr.call(e):"";var t=e+"";return"0"==t&&1/e==-A?"-0":t}function Do(e,t,n){var r=-1,o=Qt,i=e.length,s=!0,l=[],u=l;if(n)s=!1,o=Kt;else if(i>=a){var c=t?null:ki(e);if(c)return Tn(c);s=!1,o=bn,u=new _r}else u=t?[]:l;e:for(;++r<i;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,s&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),l.push(p)}else o(u,f,n)||(u!==l&&u.push(f),l.push(p))}return l}function Fo(e,t){return null==(e=ta(e,t=Xo(t,e)))||delete e[ca(ka(t))]}function zo(e,t,n,r){return No(e,t,n($r(e,t)),r)}function Uo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Oo(e,r?0:i,r?i+1:o):Oo(e,r?i+1:0,r?o:i)}function Wo(e,t){var n=e;return n instanceof vr&&(n=n.value()),tn(t,(function(e,t){return t.func.apply(t.thisArg,en([e],t.args))}),n)}function Vo(e,t,n){var o=e.length;if(o<2)return o?Do(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=Dr(a[i]||s,e[l],t,n));return Do(Gr(a,1),t,n)}function Go(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function Yo(e){return ws(e)?e:[]}function qo(e){return"function"==typeof e?e:Ml}function Xo(e,t){return vs(e)?e:Hi(e,t)?[e]:ua(Ys(e))}var Ho=Eo;function Zo(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Oo(e,t,n)}var $o=jn||function(e){return At.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Pt?Pt(n):new e.constructor(n);return e.copy(r),r}function Ko(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Jo(e,t){var n=t?Ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=js(e),s=t!==i,l=null===t,u=t==t,c=js(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function ti(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=t.length,c=Yn(a-s,0),p=r(u+c),f=!o;++l<u;)p[l]=t[l];for(;++i<s;)(f||i<a)&&(p[n[i]]=e[i]);for(;c--;)p[l++]=e[i++];return p}function ni(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,p=Yn(a-l,0),f=r(p+c),d=!o;++i<p;)f[i]=e[i];for(var h=i;++u<c;)f[h+u]=t[u];for(;++s<l;)(d||i<a)&&(f[h+n[s]]=e[i++]);return f}function ri(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?Lr(n,l,u):Pr(n,l,u)}return n}function ii(e,t){return function(n,r){var o=vs(n)?qt:Mr,i=t?t():{};return o(n,e,Ii(r,2),i)}}function ai(e){return Eo((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Xi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function si(e,t){return function(n,r){if(null==n)return n;if(!bs(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=tt(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function li(e){return function(t,n,r){for(var o=-1,i=tt(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function ui(e){return function(t){var n=Cn(t=Ys(t))?Ln(t):i,r=n?n[0]:t.charAt(0),o=n?Zo(n,1).join(""):t.slice(1);return r[e]()+o}}function ci(e){return function(t){return tn(El(ml(t).replace(yt,"")),e,"")}}function pi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=hr(e.prototype),r=e.apply(n,t);return Ns(r)?r:n}}function fi(e){return function(t,n,r){var o=tt(t);if(!bs(t)){var a=Ii(n,3);t=ol(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function di(e){return Mi((function(t){var n=t.length,r=n,o=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(l);if(o&&!s&&"wrapper"==Bi(a))var s=new mr([],!0)}for(r=s?r:n;++r<n;){var u=Bi(a=t[r]),c="wrapper"==u?Ai(a):i;s=c&&Zi(c[0])&&c[1]==(E|w|x|C)&&!c[4].length&&1==c[9]?s[Bi(c[0])].apply(s,c[3]):1==a.length&&Zi(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&vs(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function hi(e,t,n,o,a,s,l,u,c,p){var f=t&E,d=t&v,h=t&y,g=t&(w|_),m=t&S,b=h?i:pi(e);return function v(){for(var y=arguments.length,w=r(y),_=y;_--;)w[_]=arguments[_];if(g)var x=ji(v),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(o&&(w=ti(w,o,a,g)),s&&(w=ni(w,s,l,g)),y-=k,g&&y<p){var E=Pn(w,x);return _i(e,t,hi,v.placeholder,n,w,E,u,c,p-y)}var C=d?n:this,S=h?C[e]:e;return y=w.length,u?w=function(e,t){var n=e.length,r=qn(t.length,n),o=ri(e);for(;r--;){var a=t[r];e[r]=qi(a,n)?o[a]:i}return e}(w,u):m&&y>1&&w.reverse(),f&&c<y&&(w.length=c),this&&this!==At&&this instanceof v&&(S=b||pi(S)),S.apply(C,w)}}function gi(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function mi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Ro(n),r=Ro(r)):(n=Io(n),r=Io(r)),o=e(n,r)}return o}}function vi(e){return Mi((function(t){return t=Jt(t,vn(Ii())),Eo((function(n){var r=this;return e(t,(function(e){return Yt(e,r,n)}))}))}))}function yi(e,t){var n=(t=t===i?" ":Ro(t)).length;if(n<2)return n?ko(t,e):t;var r=ko(t,Dn(e/On(t)));return Cn(t)?Zo(Ln(r),0,e).join(""):r.slice(0,e)}function bi(e){return function(t,n,o){return o&&"number"!=typeof o&&Xi(t,n,o)&&(n=o=i),t=zs(t),n===i?(n=t,t=0):n=zs(n),function(e,t,n,o){for(var i=-1,a=Yn(Dn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:zs(o),e)}}function wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Vs(t),n=Vs(n)),e(t,n)}}function _i(e,t,n,r,o,a,s,l,u,c){var p=t&w;t|=p?x:k,(t&=~(p?k:x))&b||(t&=~(v|y));var f=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,l,u,c],d=n.apply(i,f);return Zi(e)&&ra(d,f),d.placeholder=r,aa(d,e,t)}function xi(e){var t=et[e];return function(e,n){if(e=Vs(e),(n=null==n?0:qn(Us(n),292))&&Wn(e)){var r=(Ys(e)+"e").split("e");return+((r=(Ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ki=er&&1/Tn(new er([,-0]))[1]==A?function(e){return new er(e)}:jl;function Ei(e){return function(t){var n=Wi(t);return n==$?Sn(t):n==ne?Mn(t):function(e,t){return Jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ci(e,t,n,o,a,s,u,c){var f=t&y;if(!f&&"function"!=typeof e)throw new ot(l);var d=o?o.length:0;if(d||(t&=~(x|k),o=a=i),u=u===i?u:Yn(Us(u),0),c=c===i?c:Us(c),d-=a?a.length:0,t&k){var h=o,g=a;o=a=i}var m=f?i:Ai(e),S=[e,t,n,o,a,h,g,s,u,c];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<(v|y|E),a=r==E&&n==w||r==E&&n==C&&e[7].length<=t[8]||r==(E|C)&&t[7].length<=t[8]&&n==w;if(!i&&!a)return e;r&v&&(e[2]=t[2],o|=n&v?0:b);var s=t[3];if(s){var l=e[3];e[3]=l?ti(l,s,t[4]):s,e[4]=l?Pn(e[3],p):t[4]}(s=t[5])&&(l=e[5],e[5]=l?ni(l,s,t[6]):s,e[6]=l?Pn(e[5],p):t[6]);(s=t[7])&&(e[7]=s);r&E&&(e[8]=null==e[8]?t[8]:qn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,m),e=S[0],t=S[1],n=S[2],o=S[3],a=S[4],!(c=S[9]=S[9]===i?f?0:e.length:Yn(S[9]-d,0))&&t&(w|_)&&(t&=~(w|_)),t&&t!=v)N=t==w||t==_?function(e,t,n){var o=pi(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=ji(a);u--;)l[u]=arguments[u];var p=s<3&&l[0]!==c&&l[s-1]!==c?[]:Pn(l,c);return(s-=p.length)<n?_i(e,t,hi,a.placeholder,i,l,p,i,i,n-s):Yt(this&&this!==At&&this instanceof a?o:e,this,l)}}(e,t,c):t!=x&&t!=(v|x)||a.length?hi.apply(i,S):function(e,t,n,o){var i=t&v,a=pi(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,p=r(c+l),f=this&&this!==At&&this instanceof t?a:e;++u<c;)p[u]=o[u];for(;l--;)p[u++]=arguments[++s];return Yt(f,i?n:this,p)}}(e,t,n,o);else var N=function(e,t,n){var r=t&v,o=pi(e);return function t(){return(this&&this!==At&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return aa((m?Po:ra)(N,S),e,t)}function Si(e,t,n,r){return e===i||ds(e,st[n])&&!ct.call(r,n)?t:e}function Ni(e,t,n,r,o,a){return Ns(e)&&Ns(t)&&(a.set(t,e),mo(e,t,i,Ni,a),a.delete(t)),e}function Pi(e){return Os(e)?i:e}function Ti(e,t,n,r,o,a){var s=n&g,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var p=-1,f=!0,d=n&m?new _r:i;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],v=t[p];if(r)var y=s?r(v,h,p,t,e,a):r(h,v,p,e,t,a);if(y!==i){if(y)continue;f=!1;break}if(d){if(!rn(t,(function(e,t){if(!bn(d,t)&&(h===e||o(h,e,n,r,a)))return d.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Mi(e){return ia(ea(e,i,ya),e+"")}function Oi(e){return Qr(e,ol,zi)}function Li(e){return Qr(e,il,Ui)}var Ai=rr?function(e){return rr.get(e)}:jl;function Bi(e){for(var t=e.name+"",n=or[t],r=ct.call(or,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ji(e){return(ct.call(dr,"placeholder")?dr:e).placeholder}function Ii(){var e=dr.iteratee||Ol;return e=e===Ol?lo:e,arguments.length?e(arguments[0],arguments[1]):e}function Ri(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Di(e){for(var t=ol(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ki(o)]}return t}function Fi(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return so(n)?n:i}var zi=zn?function(e){return null==e?[]:(e=tt(e),$t(zn(e),(function(t){return Bt.call(e,t)})))}:Wl,Ui=zn?function(e){for(var t=[];e;)en(t,zi(e)),e=Ot(e);return t}:Wl,Wi=Kr;function Vi(e,t,n){for(var r=-1,o=(t=Xo(t,e)).length,i=!1;++r<o;){var a=ca(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ss(o)&&qi(a,o)&&(vs(e)||ms(e))}function Gi(e){return"function"!=typeof e.constructor||Qi(e)?{}:hr(Ot(e))}function Yi(e){return vs(e)||ms(e)||!!(Rt&&e&&e[Rt])}function qi(e,t){var n=typeof e;return!!(t=null==t?B:t)&&("number"==n||"symbol"!=n&&He.test(e))&&e>-1&&e%1==0&&e<t}function Xi(e,t,n){if(!Ns(n))return!1;var r=typeof t;return!!("number"==r?bs(n)&&qi(t,n.length):"string"==r&&t in n)&&ds(n[t],e)}function Hi(e,t){if(vs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!js(e))||(Me.test(e)||!Te.test(e)||null!=t&&e in tt(t))}function Zi(e){var t=Bi(e),n=dr[t];if("function"!=typeof n||!(t in vr.prototype))return!1;if(e===n)return!0;var r=Ai(n);return!!r&&e===r[0]}(Qn&&Wi(new Qn(new ArrayBuffer(1)))!=ue||Kn&&Wi(new Kn)!=$||Jn&&"[object Promise]"!=Wi(Jn.resolve())||er&&Wi(new er)!=ne||tr&&Wi(new tr)!=ae)&&(Wi=function(e){var t=Kr(e),n=t==J?e.constructor:i,r=n?pa(n):"";if(r)switch(r){case ir:return ue;case ar:return $;case sr:return"[object Promise]";case lr:return ne;case ur:return ae}return t});var $i=lt?Es:Vl;function Qi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Ki(e){return e==e&&!Ns(e)}function Ji(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in tt(n)))}}function ea(e,t,n){return t=Yn(t===i?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),Yt(e,this,l)}}function ta(e,t){return t.length<2?e:$r(e,Oo(t,0,-1))}function na(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ra=sa(Po),oa=Rn||function(e,t){return At.setTimeout(e,t)},ia=sa(To);function aa(e,t,n){var r=t+"";return ia(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(z,(function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(Fe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Xn(),o=M-(r-n);if(n=r,o>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(i,arguments)}}function la(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=xo(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ua=function(e){var t=ss(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Oe,(function(e,n,r,o){t.push(r?o.replace(Ue,"$1"):n||e)})),t}));function ca(e){if("string"==typeof e||js(e))return e;var t=e+"";return"0"==t&&1/e==-A?"-0":t}function pa(e){if(null!=e){try{return ut.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fa(e){if(e instanceof vr)return e.clone();var t=new mr(e.__wrapped__,e.__chain__);return t.__actions__=ri(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var da=Eo((function(e,t){return ws(e)?Dr(e,Gr(t,1,ws,!0)):[]})),ha=Eo((function(e,t){var n=ka(t);return ws(n)&&(n=i),ws(e)?Dr(e,Gr(t,1,ws,!0),Ii(n,2)):[]})),ga=Eo((function(e,t){var n=ka(t);return ws(n)&&(n=i),ws(e)?Dr(e,Gr(t,1,ws,!0),i,n):[]}));function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Us(n);return o<0&&(o=Yn(r+o,0)),sn(e,Ii(t,3),o)}function va(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Us(n),o=n<0?Yn(r+o,0):qn(o,r-1)),sn(e,Ii(t,3),o,!0)}function ya(e){return(null==e?0:e.length)?Gr(e,1):[]}function ba(e){return e&&e.length?e[0]:i}var wa=Eo((function(e){var t=Jt(e,Yo);return t.length&&t[0]===e[0]?no(t):[]})),_a=Eo((function(e){var t=ka(e),n=Jt(e,Yo);return t===ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?no(n,Ii(t,2)):[]})),xa=Eo((function(e){var t=ka(e),n=Jt(e,Yo);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?no(n,i,t):[]}));function ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ea=Eo(Ca);function Ca(e,t){return e&&e.length&&t&&t.length?wo(e,t):e}var Sa=Mi((function(e,t){var n=null==e?0:e.length,r=Ar(e,t);return _o(e,Jt(t,(function(e){return qi(e,n)?+e:e})).sort(ei)),r}));function Na(e){return null==e?e:$n.call(e)}var Pa=Eo((function(e){return Do(Gr(e,1,ws,!0))})),Ta=Eo((function(e){var t=ka(e);return ws(t)&&(t=i),Do(Gr(e,1,ws,!0),Ii(t,2))})),Ma=Eo((function(e){var t=ka(e);return t="function"==typeof t?t:i,Do(Gr(e,1,ws,!0),i,t)}));function Oa(e){if(!e||!e.length)return[];var t=0;return e=$t(e,(function(e){if(ws(e))return t=Yn(e.length,t),!0})),mn(t,(function(t){return Jt(e,fn(t))}))}function La(e,t){if(!e||!e.length)return[];var n=Oa(e);return null==t?n:Jt(n,(function(e){return Yt(t,i,e)}))}var Aa=Eo((function(e,t){return ws(e)?Dr(e,t):[]})),Ba=Eo((function(e){return Vo($t(e,ws))})),ja=Eo((function(e){var t=ka(e);return ws(t)&&(t=i),Vo($t(e,ws),Ii(t,2))})),Ia=Eo((function(e){var t=ka(e);return t="function"==typeof t?t:i,Vo($t(e,ws),i,t)})),Ra=Eo(Oa);var Da=Eo((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,La(e,n)}));function Fa(e){var t=dr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ua=Mi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof vr&&qi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:i}),new mr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var Wa=ii((function(e,t,n){ct.call(e,n)?++e[n]:Lr(e,n,1)}));var Va=fi(ma),Ga=fi(va);function Ya(e,t){return(vs(e)?Xt:Fr)(e,Ii(t,3))}function qa(e,t){return(vs(e)?Ht:zr)(e,Ii(t,3))}var Xa=ii((function(e,t,n){ct.call(e,n)?e[n].push(t):Lr(e,n,[t])}));var Ha=Eo((function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return Fr(e,(function(e){a[++o]=i?Yt(t,e,n):ro(e,t,n)})),a})),Za=ii((function(e,t,n){Lr(e,n,t)}));function $a(e,t){return(vs(e)?Jt:fo)(e,Ii(t,3))}var Qa=ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ka=Eo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xi(e,t[0],t[1])?t=[]:n>2&&Xi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Gr(t,1),[])})),Ja=In||function(){return At.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ci(e,E,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Eo((function(e,t,n){var r=v;if(n.length){var o=Pn(n,ji(ns));r|=x}return Ci(e,r,t,n,o)})),rs=Eo((function(e,t,n){var r=v|y;if(n.length){var o=Pn(n,ji(rs));r|=x}return Ci(t,r,e,n,o)}));function os(e,t,n){var r,o,a,s,u,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new ot(l);function g(t){var n=r,a=o;return r=o=i,p=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=a}function v(){var e=Ja();if(m(e))return y(e);u=oa(v,function(e){var n=t-(e-c);return d?qn(n,a-(e-p)):n}(e))}function y(e){return u=i,h&&r?g(e):(r=o=i,s)}function b(){var e=Ja(),n=m(e);if(r=arguments,o=this,c=e,n){if(u===i)return function(e){return p=e,u=oa(v,t),f?g(e):s}(c);if(d)return $o(u),u=oa(v,t),g(c)}return u===i&&(u=oa(v,t)),s}return t=Vs(t)||0,Ns(n)&&(f=!!n.leading,a=(d="maxWait"in n)?Yn(Vs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==i&&$o(u),p=0,r=c=o=u=i},b.flush=function(){return u===i?s:y(Ja())},b}var is=Eo((function(e,t){return Rr(e,1,t)})),as=Eo((function(e,t,n){return Rr(e,Vs(t)||0,n)}));function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||wr),n}function ls(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var us=Ho((function(e,t){var n=(t=1==t.length&&vs(t[0])?Jt(t[0],vn(Ii())):Jt(Gr(t,1),vn(Ii()))).length;return Eo((function(r){for(var o=-1,i=qn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Yt(e,this,r)}))})),cs=Eo((function(e,t){var n=Pn(t,ji(cs));return Ci(e,x,i,t,n)})),ps=Eo((function(e,t){var n=Pn(t,ji(ps));return Ci(e,k,i,t,n)})),fs=Mi((function(e,t){return Ci(e,C,i,i,i,t)}));function ds(e,t){return e===t||e!=e&&t!=t}var hs=wi(Jr),gs=wi((function(e,t){return e>=t})),ms=oo(function(){return arguments}())?oo:function(e){return Ps(e)&&ct.call(e,"callee")&&!Bt.call(e,"callee")},vs=r.isArray,ys=Ft?vn(Ft):function(e){return Ps(e)&&Kr(e)==le};function bs(e){return null!=e&&Ss(e.length)&&!Es(e)}function ws(e){return Ps(e)&&bs(e)}var _s=Un||Vl,xs=zt?vn(zt):function(e){return Ps(e)&&Kr(e)==Y};function ks(e){if(!Ps(e))return!1;var t=Kr(e);return t==X||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Os(e)}function Es(e){if(!Ns(e))return!1;var t=Kr(e);return t==H||t==Z||t==V||t==ee}function Cs(e){return"number"==typeof e&&e==Us(e)}function Ss(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=B}function Ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ps(e){return null!=e&&"object"==typeof e}var Ts=Ut?vn(Ut):function(e){return Ps(e)&&Wi(e)==$};function Ms(e){return"number"==typeof e||Ps(e)&&Kr(e)==Q}function Os(e){if(!Ps(e)||Kr(e)!=J)return!1;var t=Ot(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ht}var Ls=Wt?vn(Wt):function(e){return Ps(e)&&Kr(e)==te};var As=Vt?vn(Vt):function(e){return Ps(e)&&Wi(e)==ne};function Bs(e){return"string"==typeof e||!vs(e)&&Ps(e)&&Kr(e)==re}function js(e){return"symbol"==typeof e||Ps(e)&&Kr(e)==oe}var Is=Gt?vn(Gt):function(e){return Ps(e)&&Ss(e.length)&&!!St[Kr(e)]};var Rs=wi(po),Ds=wi((function(e,t){return e<=t}));function Fs(e){if(!e)return[];if(bs(e))return Bs(e)?Ln(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=Wi(e);return(t==$?Sn:t==ne?Tn:dl)(e)}function zs(e){return e?(e=Vs(e))===A||e===-A?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Us(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Ws(e){return e?Br(Us(e),0,R):0}function Vs(e){if("number"==typeof e)return e;if(js(e))return I;if(Ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Be,"");var n=Ye.test(e);return n||Xe.test(e)?Mt(e.slice(2),n?2:8):Ge.test(e)?I:+e}function Gs(e){return oi(e,il(e))}function Ys(e){return null==e?"":Ro(e)}var qs=ai((function(e,t){if(Qi(t)||bs(t))oi(t,ol(t),e);else for(var n in t)ct.call(t,n)&&Pr(e,n,t[n])})),Xs=ai((function(e,t){oi(t,il(t),e)})),Hs=ai((function(e,t,n,r){oi(t,il(t),e,r)})),Zs=ai((function(e,t,n,r){oi(t,ol(t),e,r)})),$s=Mi(Ar);var Qs=Eo((function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Xi(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=il(a),l=-1,u=s.length;++l<u;){var c=s[l],p=e[c];(p===i||ds(p,st[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e})),Ks=Eo((function(e){return e.push(i,Ni),Yt(sl,i,e)}));function Js(e,t,n){var r=null==e?i:$r(e,t);return r===i?n:r}function el(e,t){return null!=e&&Vi(e,t,to)}var tl=gi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n}),Nl(Ml)),nl=gi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ct.call(e,t)?e[t].push(n):e[t]=[n]}),Ii),rl=Eo(ro);function ol(e){return bs(e)?kr(e):uo(e)}function il(e){return bs(e)?kr(e,!0):co(e)}var al=ai((function(e,t,n){mo(e,t,n)})),sl=ai((function(e,t,n,r){mo(e,t,n,r)})),ll=Mi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Jt(t,(function(t){return t=Xo(t,e),r||(r=t.length>1),t})),oi(e,Li(e),n),r&&(n=jr(n,f|d|h,Pi));for(var o=t.length;o--;)Fo(n,t[o]);return n}));var ul=Mi((function(e,t){return null==e?{}:function(e,t){return bo(e,t,(function(t,n){return el(e,n)}))}(e,t)}));function cl(e,t){if(null==e)return{};var n=Jt(Li(e),(function(e){return[e]}));return t=Ii(t),bo(e,n,(function(e,n){return t(e,n[0])}))}var pl=Ei(ol),fl=Ei(il);function dl(e){return null==e?[]:yn(e,ol(e))}var hl=ci((function(e,t,n){return t=t.toLowerCase(),e+(n?gl(t):t)}));function gl(e){return kl(Ys(e).toLowerCase())}function ml(e){return(e=Ys(e))&&e.replace(Ze,xn).replace(bt,"")}var vl=ci((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),yl=ci((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),bl=ui("toLowerCase");var wl=ci((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var _l=ci((function(e,t,n){return e+(n?" ":"")+kl(t)}));var xl=ci((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),kl=ui("toUpperCase");function El(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Cl=Eo((function(e,t){try{return Yt(e,i,t)}catch(e){return ks(e)?e:new Ke(e)}})),Sl=Mi((function(e,t){return Xt(t,(function(t){t=ca(t),Lr(e,t,ns(e[t],e))})),e}));function Nl(e){return function(){return e}}var Pl=di(),Tl=di(!0);function Ml(e){return e}function Ol(e){return lo("function"==typeof e?e:jr(e,f))}var Ll=Eo((function(e,t){return function(n){return ro(n,e,t)}})),Al=Eo((function(e,t){return function(n){return ro(e,n,t)}}));function Bl(e,t,n){var r=ol(t),o=Zr(t,r);null!=n||Ns(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Zr(t,ol(t)));var i=!(Ns(n)&&"chain"in n&&!n.chain),a=Es(e);return Xt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})})),e}function jl(){}var Il=vi(Jt),Rl=vi(Zt),Dl=vi(rn);function Fl(e){return Hi(e)?fn(ca(e)):function(e){return function(t){return $r(t,e)}}(e)}var zl=bi(),Ul=bi(!0);function Wl(){return[]}function Vl(){return!1}var Gl=mi((function(e,t){return e+t}),0),Yl=xi("ceil"),ql=mi((function(e,t){return e/t}),1),Xl=xi("floor");var Hl,Zl=mi((function(e,t){return e*t}),1),$l=xi("round"),Ql=mi((function(e,t){return e-t}),0);return dr.after=function(e,t){if("function"!=typeof t)throw new ot(l);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=es,dr.assign=qs,dr.assignIn=Xs,dr.assignInWith=Hs,dr.assignWith=Zs,dr.at=$s,dr.before=ts,dr.bind=ns,dr.bindAll=Sl,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vs(e)?e:[e]},dr.chain=Fa,dr.chunk=function(e,t,n){t=(n?Xi(e,t,n):t===i)?1:Yn(Us(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(Dn(o/t));a<o;)l[s++]=Oo(e,a,a+=t);return l},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return en(vs(n)?ri(n):[n],Gr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Ii();return e=t?Jt(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],Eo((function(n){for(var r=-1;++r<t;){var o=e[r];if(Yt(o[0],this,n))return Yt(o[1],this,n)}}))},dr.conforms=function(e){return function(e){var t=ol(e);return function(n){return Ir(n,e,t)}}(jr(e,f))},dr.constant=Nl,dr.countBy=Wa,dr.create=function(e,t){var n=hr(e);return null==t?n:Or(n,t)},dr.curry=function e(t,n,r){var o=Ci(t,w,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.curryRight=function e(t,n,r){var o=Ci(t,_,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.debounce=os,dr.defaults=Qs,dr.defaultsDeep=Ks,dr.defer=is,dr.delay=as,dr.difference=da,dr.differenceBy=ha,dr.differenceWith=ga,dr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Oo(e,(t=n||t===i?1:Us(t))<0?0:t,r):[]},dr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Oo(e,0,(t=r-(t=n||t===i?1:Us(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?Uo(e,Ii(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?Uo(e,Ii(t,3),!0):[]},dr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Xi(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Us(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Us(r))<0&&(r+=o),r=n>r?0:Ws(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},dr.filter=function(e,t){return(vs(e)?$t:Vr)(e,Ii(t,3))},dr.flatMap=function(e,t){return Gr($a(e,t),1)},dr.flatMapDeep=function(e,t){return Gr($a(e,t),A)},dr.flatMapDepth=function(e,t,n){return n=n===i?1:Us(n),Gr($a(e,t),n)},dr.flatten=ya,dr.flattenDeep=function(e){return(null==e?0:e.length)?Gr(e,A):[]},dr.flattenDepth=function(e,t){return(null==e?0:e.length)?Gr(e,t=t===i?1:Us(t)):[]},dr.flip=function(e){return Ci(e,S)},dr.flow=Pl,dr.flowRight=Tl,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},dr.functions=function(e){return null==e?[]:Zr(e,ol(e))},dr.functionsIn=function(e){return null==e?[]:Zr(e,il(e))},dr.groupBy=Xa,dr.initial=function(e){return(null==e?0:e.length)?Oo(e,0,-1):[]},dr.intersection=wa,dr.intersectionBy=_a,dr.intersectionWith=xa,dr.invert=tl,dr.invertBy=nl,dr.invokeMap=Ha,dr.iteratee=Ol,dr.keyBy=Za,dr.keys=ol,dr.keysIn=il,dr.map=$a,dr.mapKeys=function(e,t){var n={};return t=Ii(t,3),Xr(e,(function(e,r,o){Lr(n,t(e,r,o),e)})),n},dr.mapValues=function(e,t){var n={};return t=Ii(t,3),Xr(e,(function(e,r,o){Lr(n,r,t(e,r,o))})),n},dr.matches=function(e){return ho(jr(e,f))},dr.matchesProperty=function(e,t){return go(e,jr(t,f))},dr.memoize=ss,dr.merge=al,dr.mergeWith=sl,dr.method=Ll,dr.methodOf=Al,dr.mixin=Bl,dr.negate=ls,dr.nthArg=function(e){return e=Us(e),Eo((function(t){return vo(t,e)}))},dr.omit=ll,dr.omitBy=function(e,t){return cl(e,ls(Ii(t)))},dr.once=function(e){return ts(2,e)},dr.orderBy=function(e,t,n,r){return null==e?[]:(vs(t)||(t=null==t?[]:[t]),vs(n=r?i:n)||(n=null==n?[]:[n]),yo(e,t,n))},dr.over=Il,dr.overArgs=us,dr.overEvery=Rl,dr.overSome=Dl,dr.partial=cs,dr.partialRight=ps,dr.partition=Qa,dr.pick=ul,dr.pickBy=cl,dr.property=Fl,dr.propertyOf=function(e){return function(t){return null==e?i:$r(e,t)}},dr.pull=Ea,dr.pullAll=Ca,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?wo(e,t,Ii(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?wo(e,t,i,n):e},dr.pullAt=Sa,dr.range=zl,dr.rangeRight=Ul,dr.rearg=fs,dr.reject=function(e,t){return(vs(e)?$t:Vr)(e,ls(Ii(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return _o(e,o),n},dr.rest=function(e,t){if("function"!=typeof e)throw new ot(l);return Eo(e,t=t===i?t:Us(t))},dr.reverse=Na,dr.sampleSize=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Us(t),(vs(e)?Cr:So)(e,t)},dr.set=function(e,t,n){return null==e?e:No(e,t,n)},dr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:No(e,t,n,r)},dr.shuffle=function(e){return(vs(e)?Sr:Mo)(e)},dr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Xi(e,t,n)?(t=0,n=r):(t=null==t?0:Us(t),n=n===i?r:Us(n)),Oo(e,t,n)):[]},dr.sortBy=Ka,dr.sortedUniq=function(e){return e&&e.length?jo(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?jo(e,Ii(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&Xi(e,t,n)&&(t=n=i),(n=n===i?R:n>>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Ls(t))&&!(t=Ro(t))&&Cn(e)?Zo(Ln(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:Yn(Us(t),0),Eo((function(n){var r=n[t],o=Zo(n,0,t);return r&&en(o,r),Yt(e,this,o)}))},dr.tail=function(e){var t=null==e?0:e.length;return t?Oo(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Oo(e,0,(t=n||t===i?1:Us(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Oo(e,(t=r-(t=n||t===i?1:Us(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Uo(e,Ii(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Uo(e,Ii(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(l);return Ns(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=za,dr.toArray=Fs,dr.toPairs=pl,dr.toPairsIn=fl,dr.toPath=function(e){return vs(e)?Jt(e,ca):js(e)?[e]:ri(ua(Ys(e)))},dr.toPlainObject=Gs,dr.transform=function(e,t,n){var r=vs(e),o=r||_s(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ns(e)&&Es(i)?hr(Ot(e)):{}}return(o?Xt:Xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},dr.unary=function(e){return es(e,1)},dr.union=Pa,dr.unionBy=Ta,dr.unionWith=Ma,dr.uniq=function(e){return e&&e.length?Do(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},dr.unset=function(e,t){return null==e||Fo(e,t)},dr.unzip=Oa,dr.unzipWith=La,dr.update=function(e,t,n){return null==e?e:zo(e,t,qo(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,qo(n),r)},dr.values=dl,dr.valuesIn=function(e){return null==e?[]:yn(e,il(e))},dr.without=Aa,dr.words=El,dr.wrap=function(e,t){return cs(qo(t),e)},dr.xor=Ba,dr.xorBy=ja,dr.xorWith=Ia,dr.zip=Ra,dr.zipObject=function(e,t){return Go(e||[],t||[],Pr)},dr.zipObjectDeep=function(e,t){return Go(e||[],t||[],No)},dr.zipWith=Da,dr.entries=pl,dr.entriesIn=fl,dr.extend=Xs,dr.extendWith=Hs,Bl(dr,dr),dr.add=Gl,dr.attempt=Cl,dr.camelCase=hl,dr.capitalize=gl,dr.ceil=Yl,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vs(n))==n?n:0),t!==i&&(t=(t=Vs(t))==t?t:0),Br(Vs(e),t,n)},dr.clone=function(e){return jr(e,h)},dr.cloneDeep=function(e){return jr(e,f|h)},dr.cloneDeepWith=function(e,t){return jr(e,f|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return jr(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Ir(e,t,ol(t))},dr.deburr=ml,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=ql,dr.endsWith=function(e,t,n){e=Ys(e),t=Ro(t);var r=e.length,o=n=n===i?r:Br(Us(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=ds,dr.escape=function(e){return(e=Ys(e))&&Ce.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=Ys(e))&&Ae.test(e)?e.replace(Le,"\\$&"):e},dr.every=function(e,t,n){var r=vs(e)?Zt:Ur;return n&&Xi(e,t,n)&&(t=i),r(e,Ii(t,3))},dr.find=Va,dr.findIndex=ma,dr.findKey=function(e,t){return an(e,Ii(t,3),Xr)},dr.findLast=Ga,dr.findLastIndex=va,dr.findLastKey=function(e,t){return an(e,Ii(t,3),Hr)},dr.floor=Xl,dr.forEach=Ya,dr.forEachRight=qa,dr.forIn=function(e,t){return null==e?e:Yr(e,Ii(t,3),il)},dr.forInRight=function(e,t){return null==e?e:qr(e,Ii(t,3),il)},dr.forOwn=function(e,t){return e&&Xr(e,Ii(t,3))},dr.forOwnRight=function(e,t){return e&&Hr(e,Ii(t,3))},dr.get=Js,dr.gt=hs,dr.gte=gs,dr.has=function(e,t){return null!=e&&Vi(e,t,eo)},dr.hasIn=el,dr.head=ba,dr.identity=Ml,dr.includes=function(e,t,n,r){e=bs(e)?e:dl(e),n=n&&!r?Us(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),Bs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Us(n);return o<0&&(o=Yn(r+o,0)),ln(e,t,o)},dr.inRange=function(e,t,n){return t=zs(t),n===i?(n=t,t=0):n=zs(n),function(e,t,n){return e>=qn(t,n)&&e<Yn(t,n)}(e=Vs(e),t,n)},dr.invoke=rl,dr.isArguments=ms,dr.isArray=vs,dr.isArrayBuffer=ys,dr.isArrayLike=bs,dr.isArrayLikeObject=ws,dr.isBoolean=function(e){return!0===e||!1===e||Ps(e)&&Kr(e)==G},dr.isBuffer=_s,dr.isDate=xs,dr.isElement=function(e){return Ps(e)&&1===e.nodeType&&!Os(e)},dr.isEmpty=function(e){if(null==e)return!0;if(bs(e)&&(vs(e)||"string"==typeof e||"function"==typeof e.splice||_s(e)||Is(e)||ms(e)))return!e.length;var t=Wi(e);if(t==$||t==ne)return!e.size;if(Qi(e))return!uo(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return io(e,t)},dr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?io(e,t,i,n):!!r},dr.isError=ks,dr.isFinite=function(e){return"number"==typeof e&&Wn(e)},dr.isFunction=Es,dr.isInteger=Cs,dr.isLength=Ss,dr.isMap=Ts,dr.isMatch=function(e,t){return e===t||ao(e,t,Di(t))},dr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,ao(e,t,Di(t),n)},dr.isNaN=function(e){return Ms(e)&&e!=+e},dr.isNative=function(e){if($i(e))throw new Ke(s);return so(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Ms,dr.isObject=Ns,dr.isObjectLike=Ps,dr.isPlainObject=Os,dr.isRegExp=Ls,dr.isSafeInteger=function(e){return Cs(e)&&e>=-B&&e<=B},dr.isSet=As,dr.isString=Bs,dr.isSymbol=js,dr.isTypedArray=Is,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Ps(e)&&Wi(e)==ae},dr.isWeakSet=function(e){return Ps(e)&&Kr(e)==se},dr.join=function(e,t){return null==e?"":Vn.call(e,t)},dr.kebabCase=vl,dr.last=ka,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Us(n))<0?Yn(r+o,0):qn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},dr.lowerCase=yl,dr.lowerFirst=bl,dr.lt=Rs,dr.lte=Ds,dr.max=function(e){return e&&e.length?Wr(e,Ml,Jr):i},dr.maxBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),Jr):i},dr.mean=function(e){return pn(e,Ml)},dr.meanBy=function(e,t){return pn(e,Ii(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Ml,po):i},dr.minBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),po):i},dr.stubArray=Wl,dr.stubFalse=Vl,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Zl,dr.nth=function(e,t){return e&&e.length?vo(e,Us(t)):i},dr.noConflict=function(){return At._===this&&(At._=gt),this},dr.noop=jl,dr.now=Ja,dr.pad=function(e,t,n){e=Ys(e);var r=(t=Us(t))?On(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Fn(o),n)+e+yi(Dn(o),n)},dr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Us(t))?On(e):0;return t&&r<t?e+yi(t-r,n):e},dr.padStart=function(e,t,n){e=Ys(e);var r=(t=Us(t))?On(e):0;return t&&r<t?yi(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Hn(Ys(e).replace(je,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Xi(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=zs(e),t===i?(t=e,e=0):t=zs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Zn();return qn(e+o*(t-e+Tt("1e-"+((o+"").length-1))),t)}return xo(e,t)},dr.reduce=function(e,t,n){var r=vs(e)?tn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Fr)},dr.reduceRight=function(e,t,n){var r=vs(e)?nn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,zr)},dr.repeat=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Us(t),ko(Ys(e),t)},dr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=Xo(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[ca(t[r])];a===i&&(r=o,a=n),e=Es(a)?a.call(e):a}return e},dr.round=$l,dr.runInContext=e,dr.sample=function(e){return(vs(e)?Er:Co)(e)},dr.size=function(e){if(null==e)return 0;if(bs(e))return Bs(e)?On(e):e.length;var t=Wi(e);return t==$||t==ne?e.size:uo(e).length},dr.snakeCase=wl,dr.some=function(e,t,n){var r=vs(e)?rn:Lo;return n&&Xi(e,t,n)&&(t=i),r(e,Ii(t,3))},dr.sortedIndex=function(e,t){return Ao(e,t)},dr.sortedIndexBy=function(e,t,n){return Bo(e,t,Ii(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ao(e,t);if(r<n&&ds(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ao(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return Bo(e,t,Ii(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ao(e,t,!0)-1;if(ds(e[n],t))return n}return-1},dr.startCase=_l,dr.startsWith=function(e,t,n){return e=Ys(e),n=null==n?0:Br(Us(n),0,e.length),t=Ro(t),e.slice(n,n+t.length)==t},dr.subtract=Ql,dr.sum=function(e){return e&&e.length?gn(e,Ml):0},dr.sumBy=function(e,t){return e&&e.length?gn(e,Ii(t,2)):0},dr.template=function(e,t,n){var r=dr.templateSettings;n&&Xi(e,t,n)&&(t=i),e=Ys(e),t=Hs({},t,r,Si);var o,a,s=Hs({},t.imports,r.imports,Si),l=ol(s),u=yn(s,l),c=0,p=t.interpolate||$e,f="__p += '",d=nt((t.escape||$e).source+"|"+p.source+"|"+(p===Pe?We:$e).source+"|"+(t.evaluate||$e).source+"|$","g"),h="//# sourceURL="+(ct.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ct+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(Qe,En),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=ct.call(t,"variable")&&t.variable;g||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(be,""):f).replace(we,"$1").replace(_e,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Cl((function(){return Je(l,h+"return "+f).apply(i,u)}));if(m.source=f,ks(m))throw m;return m},dr.times=function(e,t){if((e=Us(e))<1||e>B)return[];var n=R,r=qn(e,R);t=Ii(t),e-=R;for(var o=mn(r,t);++n<e;)t(n);return o},dr.toFinite=zs,dr.toInteger=Us,dr.toLength=Ws,dr.toLower=function(e){return Ys(e).toLowerCase()},dr.toNumber=Vs,dr.toSafeInteger=function(e){return e?Br(Us(e),-B,B):0===e?e:0},dr.toString=Ys,dr.toUpper=function(e){return Ys(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(Be,"");if(!e||!(t=Ro(t)))return e;var r=Ln(e),o=Ln(t);return Zo(r,wn(r,o),_n(r,o)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Ro(t)))return e;var r=Ln(e);return Zo(r,0,_n(r,Ln(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(je,"");if(!e||!(t=Ro(t)))return e;var r=Ln(e);return Zo(r,wn(r,Ln(t))).join("")},dr.truncate=function(e,t){var n=N,r=P;if(Ns(t)){var o="separator"in t?t.separator:o;n="length"in t?Us(t.length):n,r="omission"in t?Ro(t.omission):r}var a=(e=Ys(e)).length;if(Cn(e)){var s=Ln(e);a=s.length}if(n>=a)return e;var l=n-On(r);if(l<1)return r;var u=s?Zo(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),Ls(o)){if(e.slice(l).search(o)){var c,p=u;for(o.global||(o=nt(o.source,Ys(Ve.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(Ro(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},dr.unescape=function(e){return(e=Ys(e))&&Ee.test(e)?e.replace(xe,An):e},dr.uniqueId=function(e){var t=++pt;return Ys(e)+t},dr.upperCase=xl,dr.upperFirst=kl,dr.each=Ya,dr.eachRight=qa,dr.first=ba,Bl(dr,(Hl={},Xr(dr,(function(e,t){ct.call(dr.prototype,t)||(Hl[t]=e)})),Hl),{chain:!1}),dr.VERSION="4.17.15",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){dr[e].placeholder=dr})),Xt(["drop","take"],(function(e,t){vr.prototype[e]=function(n){n=n===i?1:Yn(Us(n),0);var r=this.__filtered__&&!t?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,R),type:e+(r.__dir__<0?"Right":"")}),r},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==O||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}})),Xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}})),vr.prototype.compact=function(){return this.filter(Ml)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=Eo((function(e,t){return"function"==typeof e?new vr(this):this.map((function(n){return ro(n,e,t)}))})),vr.prototype.reject=function(e){return this.filter(ls(Ii(e)))},vr.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new vr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(R)},Xr(vr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=dr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof vr,u=s[0],c=l||vs(t),p=function(e){var t=o.apply(dr,en([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=a&&!f,g=l&&!d;if(!a&&c){t=g?t:new vr(this);var m=e.apply(t,s);return m.__actions__.push({func:za,args:[p],thisArg:i}),new mr(m,f)}return h&&g?e.apply(this,s):(m=this.thru(p),h?r?m.value()[0]:m.value():m)})})),Xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(vs(o)?o:[],e)}return this[n]((function(n){return t.apply(vs(n)?n:[],e)}))}})),Xr(vr.prototype,(function(e,t){var n=dr[t];if(n){var r=n.name+"";ct.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}})),or[hi(i,y).name]=[{name:"wrapper",func:i}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=qn(t,e+a);break;case"takeRight":e=Yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,p=c.length,f=0,d=qn(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return Wo(e,this.__actions__);var h=[];e:for(;l--&&f<d;){for(var g=-1,m=e[u+=t];++g<p;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(b==L)m=w;else if(!w){if(b==O)continue e;break e}}h[f++]=m}return h},dr.prototype.at=Ua,dr.prototype.chain=function(){return Fa(this)},dr.prototype.commit=function(){return new mr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=Fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof gr;){var r=fa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Na],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Na)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Dt&&(dr.prototype[Dt]=function(){return this}),dr}();At._=Bn,(o=function(){return Bn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(18),n(33)(e))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.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(133),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(18))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,l=1,u={},c=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f: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?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.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)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.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 u[l]=o,r(l),l++},f.clearImmediate=d}function d(e){delete u[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(18),n(134))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!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:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,p=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!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 g(){}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];u.push(new h(e,t)),1!==u.length||c||s(d)},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=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,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(136);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==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:i,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(138);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!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 .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch}#nodeList .panes .pane .list-container .buttonLine button{background:#222222;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#nodeList .panes .pane .list-container .buttonLine button:hover{opacity:1.0}#nodeList .panes .pane .list-container .buttonLine button:active{background:#282828}#nodeList .panes .pane .list-container .buttonLine button:focus{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",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r=n(141);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!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-columns:1fr auto}#propertyTab .sliderLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .sliderLine .slider{grid-column:2;margin-right:5px;display:flex;align-items:center}#propertyTab .textInputLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr 120px}#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 .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 .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:30px 30px 40px auto 20px 5px;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}#propertyTab .gradient-step .step-slider input{width:unset}#propertyTab .gradient-step .gradient-delete{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#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 .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 .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;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 .expand{grid-column:4;display:grid;align-items:center;justify-items:center;cursor:pointer}#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',""])},function(e,t,n){var r=n(143);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!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",""])},function(e,t,n){var r=n(145);e.exports={Graph:r.Graph,json:n(247),alg:n(248),version:r.version}},function(e,t,n){e.exports={Graph:n(52),version:n(246)}},function(e,t,n){var r=n(73),o=4;e.exports=function(e){return r(e,o)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(36),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(36);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(36);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(36);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(35);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(35),o=n(53),i=n(54),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(28),o=n(160),i=n(8),a=n(75),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(22),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.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(161),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(10)["__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(164),o=n(35),i=n(53);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(165),o=n(166),i=n(167),a=n(168),s=n(169);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=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(37);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(37),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(37),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(37),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(38);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(38);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(38);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(38);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(29),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(11),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(16),o=n(56),i=n(11),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(78)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(29),o=n(24);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(8),o=n(43),i=n(183),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.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(29),o=n(59);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(29),o=n(83);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(85),o=n(83),i=n(24);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(15)(n(10),"DataView");e.exports=r},function(e,t,n){var r=n(15)(n(10),"Promise");e.exports=r},function(e,t,n){var r=n(15)(n(10),"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(61),o=n(192),i=n(193),a=n(194),s=n(88),l="[object Boolean]",u="[object Date]",c="[object Map]",p="[object Number]",f="[object RegExp]",d="[object Set]",h="[object String]",g="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",C="[object Uint16Array]",S="[object Uint32Array]";e.exports=function(e,t,n){var N=e.constructor;switch(t){case m:return r(e);case l:case u:return new N(+e);case v:return o(e,n);case y:case b:case w:case _:case x:case k:case E:case C:case S:return s(e,n);case c:return new N;case p:case h:return new N(e);case f:return i(e);case d:return new N;case g:return a(e)}}},function(e,t,n){var r=n(61);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,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(196),o=n(42),i=n(57),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(25),o=n(11),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(198),o=n(42),i=n(57),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(25),o=n(11),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},function(e,t,n){var r=n(12);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){var r=n(45);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(203),o=n(211),i=n(100);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(34),o=n(95),i=1,a=2;e.exports=function(e,t,n,s){var l=n.length,u=l,c=!s;if(null==e)return!u;for(e=Object(e);l--;){var p=n[l];if(c&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++l<u;){var f=(p=n[l])[0],d=e[f],h=p[1];if(c&&p[2]){if(void 0===d&&!(f in e))return!1}else{var g=new r;if(s)var m=s(d,h,f,e,t,g);if(!(void 0===m?o(h,d,i|a,s,g):m))return!1}}return!0}},function(e,t,n){var r=n(34),o=n(96),i=n(208),a=n(210),s=n(25),l=n(5),u=n(23),c=n(31),p=1,f="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,y){var b=l(e),w=l(t),_=b?d:s(e),x=w?d:s(t),k=(_=_==f?h:_)==h,E=(x=x==f?h:x)==h,C=_==x;if(C&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(C&&!k)return y||(y=new r),b||c(e)?o(e,t,n,m,v,y):i(e,t,_,n,m,v,y);if(!(n&p)){var S=k&&g.call(e,"__wrapped__"),N=E&&g.call(t,"__wrapped__");if(S||N){var P=S?e.value():e,T=N?t.value():t;return y||(y=new r),v(P,T,n,m,y)}}return!!C&&(y||(y=new r),a(e,t,n,m,v,y))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),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(87),i=n(21),a=n(96),s=n(209),l=n(65),u=1,c=2,p="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",m="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;e.exports=function(e,t,n,r,x,E,C){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!E(new o(e),new o(t)));case p:case f:case g:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case h:var S=s;case v:var N=r&u;if(S||(S=l),e.size!=t.size&&!N)return!1;var P=C.get(e);if(P)return P==t;r|=c,C.set(e,t);var T=a(S(e),S(t),r,x,E,C);return C.delete(e),T;case b:if(k)return k.call(e)==k.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(84),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var u=n&o,c=r(e),p=c.length;if(p!=r(t).length&&!u)return!1;for(var f=p;f--;){var d=c[f];if(!(u?d in t:i.call(t,d)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var g=!0;l.set(e,t),l.set(t,e);for(var m=u;++f<p;){var v=e[d=c[f]],y=t[d];if(a)var b=u?a(y,v,d,t,e,l):a(v,y,d,e,t,l);if(!(void 0===b?v===y||s(v,y,n,a,l):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return l.delete(e),l.delete(t),g}},function(e,t,n){var r=n(99),o=n(14);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(95),o=n(213),i=n(102),a=n(67),s=n(99),l=n(100),u=n(32),c=1,p=2;e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,c|p)}}},function(e,t,n){var r=n(66);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(215),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=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(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(216),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(54),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(22),o=n(47),i=n(5),a=n(26),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(104),o=n(220),i=n(67),a=n(32);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(66);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(58),o=n(25),i=n(30),a=n(5),s=n(12),l=n(23),u=n(43),c=n(31),p="[object Map]",f="[object Set]",d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var t=o(e);if(t==p||t==f)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)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,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},function(e,t,n){var r=n(58),o=n(25),i=n(12),a=n(226),s=n(227),l="[object Map]",u="[object Set]";e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?s(e):e.length;var t=o(e);return t==l||t==u?e.size:r(e).length}},function(e,t,n){var r=n(16),o=n(5),i=n(11),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){var r=n(228),o=n(229),i=n(230);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(104)("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]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+c+u,"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(90),i=n(63),a=n(13),s=n(44),l=n(5),u=n(23),c=n(28),p=n(8),f=n(31);e.exports=function(e,t,n){var d=l(e),h=d||u(e)||f(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=h?d?new g:[]:p(e)&&c(g)?o(s(e)):{}}return(h?r:i)(e,(function(e,r,o){return t(n,e,r,o)})),n}},function(e,t,n){var r=n(68),o=n(48),i=n(237),a=n(113),s=o((function(e){return i(r(e,1,a,!0))}));e.exports=s},function(e,t,n){var r=n(22),o=n(30),i=n(5),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},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(62),o=n(76),i=n(17),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(97),o=n(238),i=n(242),a=n(98),s=n(243),l=n(65),u=200;e.exports=function(e,t,n){var c=-1,p=o,f=e.length,d=!0,h=[],g=h;if(n)d=!1,p=i;else if(f>=u){var m=t?null:s(e);if(m)return l(m);d=!1,p=a,g=new r}else g=t?[]:h;e:for(;++c<f;){var v=e[c],y=t?t(v):v;if(v=n||0!==v?v:0,d&&y==y){for(var b=g.length;b--;)if(g[b]===y)continue e;t&&g.push(y),h.push(v)}else p(g,y,n)||(g!==h&&g.push(y),h.push(v))}return h}},function(e,t,n){var r=n(239);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(112),o=n(240),i=n(241);e.exports=function(e,t,n){return t==t?i(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(86),o=n(244),i=n(65),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(47);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports="2.1.7"},function(e,t,n){var r=n(7),o=n(52);function i(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),i={v:t};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}))}function a(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:i(e),edges:a(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(249),dijkstra:n(115),dijkstraAll:n(250),findCycles:n(251),floydWarshall:n(252),isAcyclic:n(253),postorder:n(254),preorder:n(255),prim:n(256),tarjan:n(117),topsort:n(118)}},function(e,t,n){var r=n(7);e.exports=function(e){var t,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}return r.each(e.nodes(),(function(e){t=[],i(e),t.length&&o.push(t)})),o}},function(e,t,n){var r=n(115),o=n(7);e.exports=function(e,t,n){return o.transform(e.nodes(),(function(o,i){o[i]=r(e,i,t,n)}),{})}},function(e,t,n){var r=n(7),o=n(117);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(7);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,i=t(n);r[e][o]={distance:i,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.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(118);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(119);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(119);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(7),o=n(52),i=n(116);e.exports=function(e,t){var n,a=new o,s={},l=new i;function u(e){var r=e.v===n?e.w:e.v,o=l.priority(r);if(void 0!==o){var i=t(e);i<o&&(s[r]=n,l.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),l.decrease(e.nodes()[0],0);var c=!1;for(;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(u)}return a}},function(e,t,n){"use strict";var r=n(4),o=n(295),i=n(298),a=n(299),s=n(6).normalizeRanks,l=n(301),u=n(6).removeEmptyRanks,c=n(302),p=n(303),f=n(304),d=n(305),h=n(314),g=n(6),m=n(9).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=S(e.graph());return t.setGraph(r.merge({},y,C(n,v),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var o=S(e.node(n));t.setNode(n,r.defaults(C(o,w),_)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=S(e.edge(n));t.setEdge(n,r.merge({},k,C(o,x),r.pick(o,E)))})),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(){c.run(e)})),t(" rank",(function(){a(g.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};g.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){u(e)})),t(" nestingGraph.cleanup",(function(){c.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(){i.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){p(e)})),t(" order",(function(){d(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){f.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,i=r.y,a=n.x-o,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+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),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.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(){i.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(){f.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(e){var r=e.x,a=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,a-l/2),i=Math.max(i,a+l/2)}r.forEach(e.nodes(),(function(t){u(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&u(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 i=e.edge(n);r.forEach(i.points,(function(e){e.x-=t,e.y-=o})),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)})),a.width=n-t+s,a.height=i-o+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(g.intersectRect(i,n)),o.points.push(g.intersectRect(a,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),i=t.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function C(e,t){return r.mapValues(r.pick(e,t),Number)}function S(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(73),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){var r=n(48),o=n(21),i=n(49),a=n(24),s=Object.prototype,l=s.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],p=a(c),f=-1,d=p.length;++f<d;){var h=p[f],g=e[h];(void 0===g||o(g,s[h])&&!l.call(e,h))&&(e[h]=c[h])}return e}));e.exports=u},function(e,t,n){var r=n(261)(n(262));e.exports=r},function(e,t,n){var r=n(13),o=n(12),i=n(14);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},function(e,t,n){var r=n(112),o=n(13),i=n(263),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t,n){var r=n(120);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(8),o=n(26),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;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=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var r=n(64),o=n(93),i=n(24);e.exports=function(e,t){return null==e?e:r(e,o(t),i)}},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(40),o=n(63),i=n(13);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(69),o=n(269),i=n(17);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(271),o=n(275)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(34),o=n(122),i=n(64),a=n(272),s=n(8),l=n(24),u=n(123);e.exports=function e(t,n,c,p,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,c,e,p,f);else{var d=p?p(u(t,l),i,l+"",t,n,f):void 0;void 0===d&&(d=i),o(t,l,d)}}),l)}},function(e,t,n){var r=n(122),o=n(79),i=n(88),a=n(80),s=n(89),l=n(30),u=n(5),c=n(113),p=n(23),f=n(28),d=n(8),h=n(273),g=n(31),m=n(123),v=n(274);e.exports=function(e,t,n,y,b,w,_){var x=m(e,n),k=m(t,n),E=_.get(k);if(E)r(e,n,E);else{var C=w?w(x,k,n+"",e,t,_):void 0,S=void 0===C;if(S){var N=u(k),P=!N&&p(k),T=!N&&!P&&g(k);C=k,N||P||T?u(x)?C=x:c(x)?C=a(x):P?(S=!1,C=o(k,!0)):T?(S=!1,C=i(k,!0)):C=[]:h(k)||l(k)?(C=x,l(x)?C=v(x):d(x)&&!f(x)||(C=s(k))):S=!1}S&&(_.set(k,C),b(C,k,y,w,_),_.delete(k)),r(e,n,C)}}},function(e,t,n){var r=n(16),o=n(44),i=n(11),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,p=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)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&&u.call(n)==p}},function(e,t,n){var r=n(29),o=n(24);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(48),o=n(49);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){var r=n(69),o=n(124),i=n(17);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(69),o=n(13),i=n(124);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},function(e,t,n){var r=n(10);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(280),o=n(283)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(281),o=n(102);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r=n(66),o=n(282),i=n(46);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&o(l,i(u,e),c)}return l}},function(e,t,n){var r=n(39),o=n(46),i=n(41),a=n(8),s=n(32);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,p=c-1,f=e;null!=f&&++u<c;){var d=s(t[u]),h=n;if(u!=p){var g=f[d];void 0===(h=l?l(g,d,f):void 0)&&(h=a(g)?g:i(t[u+1])?[]:{})}r(f,d,h),f=f[d]}return e}},function(e,t,n){var r=n(121),o=n(110),i=n(111);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(285)();e.exports=r},function(e,t,n){var r=n(286),o=n(49),i=n(120);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,s=r(n((t-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},function(e,t,n){var r=n(68),o=n(288),i=n(48),a=n(49),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(47),o=n(13),i=n(108),a=n(289),s=n(42),l=n(290),u=n(17);e.exports=function(e,t,n){var c=-1;t=r(t.length?t:[u],s(o));var p=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++c,value:e}}));return a(p,(function(e,t){return l(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(291);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var u=r(i[o],a[o]);if(u)return o>=l?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(26);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!c&&e<t||c&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}},function(e,t,n){var r=n(101),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(39),o=n(294);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,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}},function(e,t,n){"use strict";var r=n(4),o=n(296);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={};return r.forEach(e.nodes(),(function i(a){if(r.has(o,a))return;o[a]=!0;n[a]=!0;r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):i(e.w)}));delete n[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(4),o=n(9).Graph,i=n(297);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,a=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),i=r+o;n.setEdge(e.v,e.w,i),s=Math.max(s,n.node(e.v).out+=o),a=Math.max(a,n.node(e.w).in+=o)}));var u=r.range(s+a+3).map((function(){return new i})),c=a+1;return r.forEach(n.nodes(),(function(e){l(u,c,n.node(e))})),{graph:n,buckets:u,zeroIdx:c}}(e,t||a),u=function(e,t,n){var r,o=[],i=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=i.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(u,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function s(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),s=e.node(r.v);i&&a.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),i=r.w,a=e.node(i);a.in-=o,l(t,n,a)})),e.removeNode(o.v),a}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(4),o=n(6);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,i,a=t.v,s=e.node(a).rank,l=t.w,u=e.node(l).rank,c=t.name,p=e.edge(t),f=p.labelRank;if(u===s+1)return;for(e.removeEdge(t),i=0,++s;s<u;++i,++s)p.points=[],r={width:0,height:0,edgeLabel:p,edgeObj:t,rank:s},n=o.addDummyNode(e,"edge",r,"_d"),s===f&&(r.width=p.width,r.height=p.height,r.dummy="edge-label",r.labelpos=p.labelpos),e.setEdge(a,n,{weight:p.weight},c),0===i&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,l,{weight:p.weight},c)}(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(50).longestPath,o=n(125),i=n(300);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":a(e);break;default:s(e)}};var a=r;function s(e){i(e)}},function(e,t,n){"use strict";var r=n(4),o=n(125),i=n(50).slack,a=n(50).longestPath,s=n(9).alg.preorder,l=n(9).alg.postorder,u=n(6).simplify;function c(e){e=u(e),a(e);var t,n=o(e);for(d(n),p(n,e);t=h(n);)m(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=f(e,t,n)}(e,t,n)}))}function f(e,t,n){var o=e.node(n).parent,i=!0,a=t.edge(n,o),s=0;return a||(i=!1,a=t.edge(o,n)),s=a.weight,r.forEach(t.nodeEdges(n),(function(r){var a,l,u=r.v===n,c=u?r.w:r.v;if(c!==o){var p=u===i,f=t.edge(r).weight;if(s+=p?f:-f,a=n,l=c,e.hasEdge(a,l)){var d=e.edge(n,c).cutvalue;s+=p?-d:d}}})),s}function d(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,o,i,a){var s=o,l=t.node(i);n[i]=!0;r.forEach(t.neighbors(i),(function(a){r.has(n,a)||(o=e(t,n,o,a,i))}));l.low=s;l.lim=o++;a?l.parent=a:delete l.parent;return o}(e,{},1,t)}function h(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function g(e,t,n){var o=n.v,a=n.w;t.hasEdge(o,a)||(o=n.w,a=n.v);var s=e.node(o),l=e.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var p=r.filter(t.edges(),(function(t){return c===v(e,e.node(t.v),u)&&c!==v(e,e.node(t.w),u)}));return r.minBy(p,(function(e){return i(t,e)}))}function m(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),d(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),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,t)}function v(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=d,c.initCutValues=p,c.calcCutValue=f,c.leaveEdge=h,c.enterEdge=g,c.exchangeEdges=m},function(e,t,n){var r=n(4);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function o(i){var a=n;r.forEach(e.children(i),o);t[i]={low:a,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],s=[],l=Math.min(t[n].low,t[r].low),u=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>l||u>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,s=i.lca,l=0,u=a[l],c=!0;n!==o.w;){if(r=e.node(n),c){for(;(u=a[l])!==s&&e.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&e.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}e.setParent(n,u),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(4),o=n(6);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,i){var a=e.children(o);a&&a.length&&r.forEach(a,(function(e){n(e,i+1)}));t[o]=i}(n,1)})),t}(e),i=r.max(r.values(n))-1,a=2*i+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=a}));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,i,a,s,l,u){var c=t.children(u);if(!c.length)return void(u!==n&&t.setEdge(n,u,{weight:0,minlen:i}));var p=o.addBorderNode(t,"_bt"),f=o.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(p,u);d.borderTop=p;t.setParent(f,u);d.borderBottom=f;r.forEach(c,(function(r){e(t,n,i,a,s,l,r);var o=t.node(r),c=o.borderTop?o.borderTop:r,d=o.borderBottom?o.borderBottom:r,h=o.borderTop?a:2*a,g=c!==d?1:s-l[u]+1;t.setEdge(p,c,{weight:h,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:h,minlen:g,nestingEdge:!0})}));t.parent(u)||t.setEdge(n,p,{weight:0,minlen:s+l[u]})}(e,t,a,s,i,n,l)})),e.graph().nodeRankFactor=a},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(4),o=n(6);function i(e,t,n,r,i,a){var s={width:0,height:0,rank:a,borderType:t},l=i[t][a-1],u=o.addDummyNode(e,"border",s,n);i[t][a]=u,e.setParent(u,r),l&&e.setEdge(l,u,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var o=e.children(n),a=e.node(n);if(o.length&&r.forEach(o,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)i(e,"borderLeft","_bl",n,a,s),i(e,"borderRight","_br",n,a,s)}}))}},function(e,t,n){"use strict";var r=n(4);function o(e){r.forEach(e.nodes(),(function(t){i(e.node(t))})),r.forEach(e.edges(),(function(t){i(e.edge(t))}))}function i(e){var t=e.width;e.width=e.height,e.height=t}function a(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){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(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(4),o=n(306),i=n(307),a=n(308),s=n(312),l=n(313),u=n(9).Graph,c=n(6);function p(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function f(e,t){var n=new u;r.forEach(e,(function(e){var o=e.graph().root,i=a(e,o,n,t);r.forEach(i.vs,(function(t,n){e.node(t).order=n})),l(e,n,i.vs)}))}function d(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=c.maxRank(e),n=p(e,r.range(1,t+1),"inEdges"),a=p(e,r.range(t-1,-1,-1),"outEdges"),s=o(e);d(e,s);for(var l,u=Number.POSITIVE_INFINITY,h=0,g=0;g<4;++h,++g){f(h%2?n:a,h%4>=2),s=c.buildLayerMatrix(e);var m=i(e,s);m<u&&(g=0,l=r.cloneDeep(s),u=m)}d(e,l)}},function(e,t,n){"use strict";var r=n(4);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}))),i=r.map(r.range(o+1),(function(){return[]}));var a=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(a,(function n(o){if(r.has(t,o))return;t[o]=!0;var a=e.node(o);i[a.rank].push(o);r.forEach(e.successors(o),n)})),i}},function(e,t,n){"use strict";var r=n(4);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),i=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),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),u=0;return r.forEach(i.forEach((function(e){var t=e.pos+a;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;u+=e.weight*n}))),u}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(4),o=n(309),i=n(310),a=n(311);e.exports=function e(t,n,s,l){var u=t.children(n),c=t.node(n),p=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,d={};p&&(u=r.filter(u,(function(e){return e!==p&&e!==f})));var h=o(t,u);r.forEach(h,(function(n){if(t.children(n.v).length){var o=e(t,n.v,s,l);d[n.v]=o,r.has(o,"barycenter")&&(i=n,a=o,r.isUndefined(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight))}var i,a}));var g=i(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)}))}(g,d);var m=a(g,l);if(p&&(m.vs=r.flatten([p,m.vs,f],!0),t.predecessors(p).length)){var v=t.node(t.predecessors(p)[0]),y=t.node(t.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var r=n(4);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(4);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 i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}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(4),o=n(6);function i(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")})),a=n.lhs,s=r.sortBy(n.rhs,(function(e){return-e.i})),l=[],u=0,c=0,p=0;a.sort((f=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:f?t.i-e.i:e.i-t.i})),p=i(l,s,p),r.forEach(a,(function(e){p+=e.vs.length,l.push(e.vs),u+=e.barycenter*e.weight,c+=e.weight,p=i(l,s,p)}));var f;var d={vs:r.flatten(l,!0)};c&&(d.barycenter=u/c,d.weight=c);return d}},function(e,t,n){var r=n(4),o=n(9).Graph;e.exports=function(e,t,n){var i=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new o({compound:!0}).setGraph({root:i}).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)&&(a.setNode(o),a.setParent(o,l||i),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,i=a.edge(n,o),s=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:e.edge(t).weight+s})})),r.has(s,"minRank")&&a.setNode(o,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))})),a}},function(e,t,n){var r=n(4);e.exports=function(e,t,n){var o,i={};r.forEach(n,(function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=i[r],i[r]=s):(a=o,o=s),a&&a!==s)return void t.setEdge(a,s);s=r}}))}},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(315).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=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=i+o/2})),i+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(i(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(4),o=n(9).Graph,i=n(6);function a(e,t){var n={};return r.reduce(t,(function(t,o){var i=0,a=0,s=t.length,u=r.last(o);return r.forEach(o,(function(t,c){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),f=p?e.node(p).order:s;(p||t===u)&&(r.forEach(o.slice(a,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),a=o.order;!(a<i||f<a)||o.dummy&&e.node(t).dummy||l(n,r,t)}))})),a=c+1,i=f)})),o})),n}function s(e,t){var n={};function o(t,o,i,a,s){var u;r.forEach(r.range(o,i),(function(o){u=t[o],e.node(u).dummy&&r.forEach(e.predecessors(u),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&l(n,t,u)}))}))}return r.reduce(t,(function(t,n){var i,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===e.node(r).dummy){var u=e.predecessors(r);u.length&&(i=e.node(u[0]).order,o(n,s,l,a,i),s=l,a=i)}o(n,s,n.length,i,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 u(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function c(e,t,n,o){var i={},a={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){i[e]=e,a[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 c=((l=r.sortBy(l,(function(e){return s[e]}))).length-1)/2,p=Math.floor(c),f=Math.ceil(c);p<=f;++p){var d=l[p];a[e]===e&&t<s[d]&&!u(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=s[d])}}))})),{root:i,align:a}}function p(e,t,n,i,a){var s={},l=function(e,t,n,i){var a=new o,s=e.graph(),l=function(e,t,n){return function(o,i,a){var s,l=o.node(i),u=o.node(a),c=0;if(c+=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&&(c+=n?s:-s),s=0,c+=(l.dummy?t:e)/2,c+=(u.dummy?t:e)/2,c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,i);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),o){var i=n[o],s=a.edge(i,r);a.setEdge(i,r,Math.max(l(e,t,o),s||0))}o=t}))})),a}(e,t,n,a),u=a?"borderLeft":"borderRight";function c(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 c((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)),c((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!==u&&(s[t]=Math.max(s[t],n))}),l.successors.bind(l)),r.forEach(i,(function(e){s[e]=s[n[e]]})),s}function f(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 i=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+i,n),o=Math.min(t-i,o)})),n-o}))}function d(e,t){var n=r.values(t),o=r.min(n),i=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,u=e[l];if(u!==t){var c=r.values(u);(s="l"===a?o-r.min(c):i-r.max(c))&&(e[l]=r.mapValues(u,(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 i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2}))}e.exports={positionX:function(e){var t,n=i.buildLayerMatrix(e),o=r.merge(a(e,n),s(e,n)),l={};r.forEach(["u","d"],(function(i){t="u"===i?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 a=("u"===i?e.predecessors:e.successors).bind(e),s=c(e,t,o,a),u=p(e,t,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,(function(e){return-e}))),l[i+n]=u}))}));var u=f(e,l);return d(l,u),h(l,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:p,alignCoordinates:d,findSmallestWidthAlignment:f,balance:h}},function(e,t,n){var r=n(4),o=n(6),i=n(9).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new i({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.4"},function(e,t,n){var r=n(319);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!1)).push([e.i,".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n",""])},function(e,t,n){var r=n(321);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!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"}#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{width:100%;height:100%}.right-panel{grid-row:1 / span 2;grid-column:5;display:grid;grid-template-rows:1fr 30px auto 30px;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:30px;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:flex;color:white;align-items:center;font-size:18px}.right-panel #preview-mesh-bar #file-picker{display:none}.right-panel #preview-mesh-bar #file-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview-config-bar{grid-row:4;grid-column:1;display:flex;flex-direction:row-reverse;color:white;align-items:center;font-size:18px}.right-panel #preview-config-bar .button{width:60px}.right-panel #preview-config-bar #color-picker{display:none}.right-panel #preview-config-bar #color-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview{border-top:1px solid #555;grid-row:3;grid-column:1;width:100%;display:grid;outline:0 !important}.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',""])},function(e,t,n){var r=n(323);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(20)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(19)(!1)).push([e.i,".srd-node{width:200px}.srd-node--selected .diagramBlock{border-color:#fff !important}.srd-default-link--path-selected{animation:0s !important;stroke:#ffffff !important}.srd-port{grid-column:1;grid-row:1;background:#2796B2;border-radius:20px;transform:scale(1);width:20px;height:20px}.srd-port.connected{background:#CAB422}.srd-port:hover{background:#DDDDDD !important}.diagramBlock{background:gray;width:100%;border:4px solid black;border-radius:12px;display:grid;grid-template-rows:30px auto;grid-template-columns:50% 50%;color:white}.diagramBlock.input{background:#40866E;color:white}.diagramBlock.input .value{grid-row:2}.diagramBlock.input .outputs{transform:translateY(5px)}.diagramBlock.input.Float{background:#cb9e27}.diagramBlock.input.Vector2{background:#16bcb1}.diagramBlock.input.Vector3{background:#b786cb}.diagramBlock.input.Color3{background:#b786cb}.diagramBlock.input.Vector4{background:#be5126}.diagramBlock.input.Color4{background:#be5126}.diagramBlock.input.Matrix{background:#591990}.diagramBlock.trigonometry{background:#405c86;color:white}.diagramBlock.trigonometry .value{grid-row:2}.diagramBlock.remap{color:white;background:#4086BB}.diagramBlock.remap .value{grid-row:3}.diagramBlock.remap .outputs,.diagramBlock.remap .inputs{transform:translateY(5px)}.diagramBlock.gradient{height:70px}.diagramBlock.gradient .outputs,.diagramBlock.gradient .inputs{transform:translateY(5px)}.diagramBlock.attribute{background:#40866E}.diagramBlock.constant{background:#646464 !important}.diagramBlock.output{background:#6a2c83;color:white}.diagramBlock.output .inputs{color:white}.diagramBlock .header{grid-row:1;grid-column:1 / span 2;border:4px solid black;border-top-right-radius:7px;border-top-left-radius:7px;font-size:16px;text-align:center;margin-top:-1px;transform:scaleX(1.001);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:black;color:white}.diagramBlock .value{grid-row:3;grid-column:1 / span 2;height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}.diagramBlock .value .value-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.diagramBlock .inputs{grid-row:2;grid-column:1;padding-bottom:8px}.diagramBlock .inputs .input-port{display:grid;grid-template-columns:12px calc(100% - 12px);grid-template-rows:100%}.diagramBlock .inputs .input-port .input-port-plug{grid-column:1;grid-row:1;display:grid;align-content:center;margin-left:-11px;position:relative}.diagramBlock .inputs .input-port .input-port-plug:hover .input-port-connection{background:greenyellow !important}.diagramBlock .inputs .input-port .input-port-plug .input-port-type{width:15px;pointer-events:none;grid-column:1;grid-row:1;display:grid;align-items:center;justify-items:center;transform:scale(1)}.diagramBlock .inputs .input-port .input-port-plug .input-port-type img{width:20px}.diagramBlock .inputs .input-port .input-port-label{grid-column:2;grid-row:1;margin-bottom:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.diagramBlock .outputs{grid-row:2;grid-column:2;padding-bottom:8px}.diagramBlock .outputs .output-port{display:grid;grid-template-columns:calc(100% - 12px) 12px;grid-template-rows:100%}.diagramBlock .outputs .output-port .output-port-plug{grid-column:2;grid-row:1;display:grid;align-content:center;position:relative;margin-left:4px}.diagramBlock .outputs .output-port .output-port-plug:hover .output-port-connection{background:greenyellow !important}.diagramBlock .outputs .output-port .output-port-plug .output-port-type{pointer-events:none;grid-column:1;grid-row:1;display:grid;align-items:center;justify-items:center;transform:scale(1)}.diagramBlock .outputs .output-port .output-port-plug .output-port-type img{width:20px}.diagramBlock .outputs .output-port .output-port-label{text-align:right;grid-column:1;grid-row:1;margin-bottom:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.diagramBlock.texture-block{display:grid;grid-template-rows:30px auto 1fr;grid-template-columns:calc(100% - 60px) 60px;background:#323232;color:white}.diagramBlock.texture-block .inputs{grid-column:1;grid-row:2}.diagramBlock.texture-block .outputs{grid-column:2;grid-row:2 / span 2}.diagramBlock.texture-block .textureLine{height:140px;grid-column:1;grid-row:3;overflow:hidden;border-bottom-left-radius:7px;border:black 4px solid;border-left:0px;border-bottom:0px}.diagramBlock.texture-block .textureLine canvas{width:100%;height:100%}\n",""])}])}));
|