1234567891011121314151617181920212223242526272829303132333435363738394041 |
- !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=12)}([function(e,t,n){"use strict";e.exports=n(13)},function(t,n){t.exports=e},function(e,t,n){e.exports=n(19)()},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,l,s,u,c=Math.abs,p=[];for(o=e<n?1:-1,i=t<r?1:-1,s=(a=c(n-e))-(l=c(r-t));p.push([e,t]),e!==n||t!==r;)(u=2*s)>-l&&(s-=l,e+=o),u<a&&(s+=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,l,s=[],u=e.length;if(u<2)return s;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,l=0;l<i-1;++l)s.push(o[l]);return s.push(e[u-1]),s},t.smoothenPath=function(e,t){var n,o,i,a,l,s,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,(s=t[a])[0],s[1]),p=!1,l=1;l<u.length;++l)if(c=u[l],!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,l=[],s=e[0][0],u=e[0][1],c=e[1][0],p=e[1][1],f=c-s,d=p-u;for(f/=i=Math.sqrt(f*f+d*d),d/=i,l.push([s,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||l.push([t,n]);return l.push([c,p]),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(6),a=n(0),l=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=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(13),l=n(0),s=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 l.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=s},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),l=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=l},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(){return 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),l=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=l},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);n(2);function a(e){e=e||{},this.heuristic=e.heuristic||i.manhattan,this.trackJumpRecursion=e.trackJumpRecursion||!1}a.prototype.findPath=function(e,t,n,i,a){var l,s=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,s.push(u),u.opened=!0;!s.empty();){if((l=s.pop()).closed=!0,l===c)return o.expandPath(o.backtrace(c));this._identifySuccessors(l)}return[]},a.prototype._identifySuccessors=function(e){var t,n,r,o,a,l,s,u,c,p,f=this.grid,d=this.heuristic,h=this.openList,g=this.endNode.x,m=this.endNode.y,y=e.x,v=e.y,b=Math.abs;Math.max;for(o=0,a=(t=this._findNeighbors(e)).length;o<a;++o)if(n=t[o],r=this._jump(n[0],n[1],y,v)){if(l=r[0],s=r[1],(p=f.getNodeAt(l,s)).closed)continue;u=i.octile(b(l-y),b(s-v)),c=e.g+u,(!p.opened||c<p.g)&&(p.g=c,p.h=p.h||d(b(l-g),b(s-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 l=this,s=new r.Grid(e),u=o.findPath(t.x,t.y,n.x,n.y,s),c=i.concat(u,a).map(function(e){return[l.diagramEngine.translateRoutingX(e[0],!0),l.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),l=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=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(17),a=n(0),l=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=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(21),l=n(0),s=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 l.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 s.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),l=n(19),s=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 l.DefaultLinkModel},t}(a.PortModel);t.DefaultPortModel=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(6),l=n(5),s=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 l.PointModel(r,{x:0,y:0}),new l.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=s.map(t.points||[],function(e){var t=new l.PointModel(r,{x:e.x,y:e.y});return t.deSerialize(e,n),t}),s.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 s.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:s.map(this.points,function(e){return e.serialize()}),extras:this.extras,labels:s.map(this.labels,function(e){return e.serialize()})})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.setPoints(s.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;s.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 l.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 l(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}l.prototype.findPath=function(e,t,n,i,a){var l,s,u,c,p,f,d,h,g=function(e,t){return e.f-t.f},m=new r(g),y=new r(g),v=a.getNodeAt(e,t),b=a.getNodeAt(n,i),_=this.heuristic,x=this.diagonalMovement,w=this.weight,k=Math.abs,P=Math.SQRT2;for(v.g=0,v.f=0,m.push(v),v.opened=1,b.g=0,b.f=0,y.push(b),b.opened=2;!m.empty()&&!y.empty();){for((l=m.pop()).closed=!0,c=0,p=(s=a.getNeighbors(l,x)).length;c<p;++c)if(!(u=s[c]).closed){if(2===u.opened)return o.biBacktrace(l,u);f=u.x,d=u.y,h=l.g+(f-l.x==0||d-l.y==0?1:P),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||w*_(k(f-n),k(d-i)),u.f=u.g+u.h,u.parent=l,u.opened?m.updateItem(u):(m.push(u),u.opened=1))}for((l=y.pop()).closed=!0,c=0,p=(s=a.getNeighbors(l,x)).length;c<p;++c)if(!(u=s[c]).closed){if(1===u.opened)return o.biBacktrace(u,l);f=u.x,d=u.y,h=l.g+(f-l.x==0||d-l.y==0?1:P),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||w*_(k(f-e),k(d-t)),u.f=u.g+u.h,u.parent=l,u.opened?y.updateItem(u):(y.push(u),u.opened=2))}}return[]},e.exports=l},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function l(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}l.prototype.findPath=function(e,t,n,i,a){var l,s,u,c,p,f,d,h,g=new r(function(e,t){return e.f-t.f}),m=a.getNodeAt(e,t),y=a.getNodeAt(n,i),v=this.heuristic,b=this.diagonalMovement,_=this.weight,x=Math.abs,w=Math.SQRT2;for(m.g=0,m.f=0,g.push(m),m.opened=!0;!g.empty();){if((l=g.pop()).closed=!0,l===y)return o.backtrace(y);for(c=0,p=(s=a.getNeighbors(l,b)).length;c<p;++c)(u=s[c]).closed||(f=u.x,d=u.y,h=l.g+(f-l.x==0||d-l.y==0?1:w),(!u.opened||h<u.g)&&(u.g=h,u.h=u.h||_*v(x(f-n),x(d-i)),u.f=u.g+u.h,u.parent=l,u.opened?g.updateItem(u):(g.push(u),u.opened=!0)))}return[]},e.exports=l},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),l=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=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),l=n(0),s=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();l.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+")"}}),l.map(t.getNodes(),function(t){return a.createElement(s.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),l=n(27),s=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&&s.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);s.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(l.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),l=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=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),l=n(33),s=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(l.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=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),l=n(0),s=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(s.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")},l.map(this.props.node.getInPorts(),this.generatePort.bind(this))),a.createElement("div",{className:this.bem("__out")},l.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),l=n(5),s=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 l.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,l=n.refLabels[e.id].offsetHeight,s=o.getPointAtLength(i),u=s.x-a/2+e.offsetX,c=s.y-l/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,l=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)}}),s=a.cloneElement(l,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},l,s)},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)),l=t.getRoutingMatrix(),u=this.pathFinding.calculateLinkStartEndCoords(l,o);if(u){var p=u.start,f=u.end,d=u.pathToStart,h=u.pathToEnd,g=this.pathFinding.calculateDynamicPath(l,p,f,d,h);r.push(this.generateLink(s.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])<50&&5;var y=n[0],v=n[1];y[m]>v[m]&&(y=n[1],v=n[0]),r.push(this.generateLink(s.Toolkit.generateCurvePath(y,v,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(_.generateLink(s.Toolkit.generateLinePath(n[t],n[t+1]),{"data-linkid":_.props.link.id,"data-point":t,onMouseDown:function(n){e.addPointToLink(n,t+1)}},t))},_=this,x=0;x<n.length-1;x++)b(x);for(var w=1;w<n.length-1;w++)r.push(this.generatePoint(w));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),l=n(9),s=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,s.Toolkit.UID(),e))},t.prototype.addOutPort=function(e){return this.addPort(new i.DefaultPortModel(!1,s.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}(l.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),l=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=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=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),l=n(18),s=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(s.DefaultLabelWidget,{model:t})},t.prototype.getNewInstance=function(e){return new l.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),l=n(0),s=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,l.forEach(e.nodes,function(e){var r=t.getNodeFactory(e.type).getNewInstance(e);r.setParent(n),r.deSerialize(e,t),n.addNode(r)}),l.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 l.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:l.map(this.links,function(e){return e.serialize()}),nodes:l.map(this.nodes,function(e){return e.serialize()})})},t.prototype.clearSelection=function(e){void 0===e&&(e=null),l.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(l.flatMap(this.nodes,function(e){return e.getSelectedEntities()}))).concat(l.flatMap(this.links,function(e){return e.getSelectedEntities()}))).concat(l.flatMap(this.links,function(e){return l.flatMap(e.points,function(e){return e.getSelectedEntities()})})),n=l.uniq(n),e.length>0&&(n=l.filter(l.uniq(n),function(t){return!!(l.includes(e,"node")&&t instanceof u.NodeModel)||(!!(l.includes(e,"link")&&t instanceof s.LinkModel)||(!!(l.includes(e,"port")&&t instanceof c.PortModel)||!!(l.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 s.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 l.forEach(t,function(t){t instanceof s.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),l=n(0),s=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),y=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 l.forEach(r.getNodes(),function(e){t.state.action.containsElement(e.x,e.y,r)&&e.setSelected(!0)}),l.forEach(r.getLinks(),function(e){var n=!0;l.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,s=r.getZoomLevel()/100;l.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/s),e.model.y=r.getGridPosition(e.initialY+a/s),e.model instanceof h.NodeModel&&l.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/s),e.model.y=e.initialY+r.getGridPosition(a/s))}),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)&&(l.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);l.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&&l.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()}}),l.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)?l.some(l.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,l=r.currentTarget.getBoundingClientRect(),s=l.width,u=l.height,c=s*a-s*o,p=u*a-u*o,f=r.clientX-l.left,d=r.clientY-l.top,h=(f-n.getOffsetX())/o/s,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 l=o.model,s=l.createLinkModel();s.setSourcePort(l),s&&(s.removeMiddlePoints(),s.getSourcePort()!==l&&s.setSourcePort(l),s.setTargetPort(null),s.getFirstPoint().updateLocation(a),s.getLastPoint().updateLocation(a),n.clearSelection(),s.getLastPoint().setSelected(!0),n.addLink(s),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(s.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=y},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),l=n(35),s=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return a.createElement(l.DefaultNodeWidget,{node:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new i.DefaultNodeModel},t}(n(32).AbstractNodeFactory);t.DefaultNodeFactory=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(1),a=n(37),l=n(36),s=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 s.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}(l.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),l=n(0),s=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=l.values(t.diagramModel.nodes).map(function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}}),n=l.values(t.diagramModel.links),r=l.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=l.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(l.minBy(l.concat(e,r,o),function(e){return e.x}).x,0)/p.ROUTING_SCALING_FACTOR)*p.ROUTING_SCALING_FACTOR,s=l.maxBy(l.concat(e,r,o),function(e){return e.x+e.width}),u=Math.max(s.x+s.width,i.offsetWidth),c=Math.floor(Math.min(l.minBy(l.concat(e,r,o),function(e){return e.y}).y,0)/p.ROUTING_SCALING_FACTOR)*p.ROUTING_SCALING_FACTOR,f=l.maxBy(l.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){l.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),l=r-1;l<=o+1;l++)for(var s=i-1;s<a+1;s++)t.markMatrixPoint(e,t.translateRoutingX(l),t.translateRoutingY(s))})},t.markPorts=function(e){l.flatMap(l.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),l=r-1;l<=o+1;l++)for(var s=i-1;s<a+1;s++)t.markMatrixPoint(e,t.translateRoutingX(l),t.translateRoutingY(s))})},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 s.NodeModel&&l.forEach(e.getPorts(),function(e){l.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=l.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=l.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(){return 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,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.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],l=r(t,2),s=l[0],u=l[1];return Math.sqrt(o(i-s)+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,l=(o*e.vec[0]-r*e.vec[1])/i;return a>=-n&&l>=n||a>=n&&l>=-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),l=[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)],s=l[0]*l[0]+l[2]*l[2],u=l[1]*l[1]+l[3]*l[3],c=((l[0]-l[3])*(l[0]-l[3])+(l[2]+l[1])*(l[2]+l[1]))*((l[0]+l[3])*(l[0]+l[3])+(l[2]-l[1])*(l[2]-l[1])),p=(s+u)/2;if(c<1e-10*p)return{rx:Math.sqrt(p),ry:Math.sqrt(p),ax:0,isDegenerate:!1};var f=l[0]*l[1]+l[2]*l[3],d=p+(c=Math.sqrt(c))/2,h=p-c/2,g=void 0,m=void 0,y=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-s)/f:f/(d-u))/Math.PI)>=0?(m=Math.sqrt(d),y=Math.sqrt(h)):(g+=90,m=Math.sqrt(h),y=Math.sqrt(d)),{rx:m,ry:y,ax:g,isDegenerate:m<1e-10*y||y<1e-10*m}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return 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,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.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]]}},l=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 l=[{x:r[5],y:r[6]}],s=(0,o.matrixTransform)(l,t);return i.isDegenerate?{command:"L",params:[s[0].x,s[0].y]}:{command:"A",params:[i.rx,i.ry,i.ax,r[3],a,s[0].x,s[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),l=e.params.slice(0,e.params.length);return l.splice(0,2,a[0].x,a[0].y),{command:e.command,params:l}}};return i[e.command]?i[e.command](e,t,n):i.default(e,t,n)},s=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:s(["x","y"],function(e,t){return u({command:"M",params:[e,t]})}),lineto:s(["x","y"],function(e,t){return u({command:"L",params:[e,t]})}),hlineto:s(["x"],function(e){return u({command:"H",params:[e]})}),vlineto:s(["y"],function(e){return u({command:"V",params:[e]})}),closepath:function(){return u({command:"Z",params:[]})},curveto:s(["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:s(["x2","y2","x","y"],function(e,t,n,r){return u({command:"S",params:[e,t,n,r]})}),qcurveto:s(["x1","y1","x","y"],function(e,t,n,r){return u({command:"Q",params:[e,t,n,r]})}),smoothqcurveto:s(["x","y"],function(e,t){return u({command:"T",params:[e,t]})}),arc:s(["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:s(["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,s,u=(o=[0,0],i=[1,0,0,1,t,r],s=n.map(function(e){var t=l(e,i,o);return o=a(e,o),t}),{v:e(s)});return"object"==typeof u?u.v:void 0}),rotate:s(["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,s=void 0,u=n;0!==r&&0!==o&&(i=[0,0],s=[1,0,0,1,-r,-o],u=u.map(function(e){var t=l(e,s,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],s=[p,f,-f,p,0,0],u=u.map(function(e){var t=l(e,s,i);return i=a(e,i),t}),0!==r&&0!==o&&(i=[0,0],s=[1,0,0,1,r,o],u=u.map(function(e){var t=l(e,s,i);return i=a(e,i),t})),{v:e(u)}}();return"object"==typeof i?i.v:void 0}),scale:s(["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,s,u=(o=[0,0],i=[t,0,0,r,0,0],s=n.map(function(e){var t=l(e,i,o);return o=a(e,o),t}),{v:e(s)});return"object"==typeof u?u.v:void 0}()}),shearX:s(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,s=(r=[0,0],o=[1,0,Math.tan(t*Math.PI/180),1,0,0],i=n.map(function(e){var t=l(e,o,r);return r=a(e,r),t}),{v:e(i)});return"object"==typeof s?s.v:void 0}),shearY:s(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,s=(r=[0,0],o=[1,Math.tan(t*Math.PI/180),0,1,0,0],i=n.map(function(e){var t=l(e,o,r);return r=a(e,r),t}),{v:e(i)});return"object"==typeof s?s.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 l,s=n[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var u=l.value,c=a(u,t);t=c,c&&e.push(c)}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return e},instructions:function(){return n.slice(0,n.length)},connect:function(t){var o,i,a,l,s,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],l=i[1],s=r(o,2),u=s[0],c=s[1],(a!==u||l!==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,l,s,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(s=0,u=(a=d.getNeighbors(e,o.IfAtMostOneObstacle)).length;s<u;++s)l=a[s],h.push([l.x,l.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,l,s,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),y=h.isWalkableAt(f,d-1);c&&(g.push([f+r,d]),m&&g.push([f+r,d+1]),y&&g.push([f+r,d-1])),m&&g.push([f,d+1]),y&&g.push([f,d-1])}else if(0!==i){c=h.isWalkableAt(f,d+i);var v=h.isWalkableAt(f+1,d),b=h.isWalkableAt(f-1,d);c&&(g.push([f,d+i]),v&&g.push([f+1,d+i]),b&&g.push([f-1,d+i])),v&&g.push([f+1,d]),b&&g.push([f-1,d])}}else for(s=0,u=(a=h.getNeighbors(e,o.OnlyWhenNoObstacles)).length;s<u;++s)l=a[s],g.push([l.x,l.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,l,s,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(s=0,u=(a=d.getNeighbors(e,o.Always)).length;s<u;++s)l=a[s],h.push([l.x,l.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,l,s,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(s=0,u=(a=d.getNeighbors(e,o.Never)).length;s<u;++s)l=a[s],h.push([l.x,l.y]);return h},e.exports=i},function(e,t,n){var r=n(2),o=n(55),i=n(54),a=n(53),l=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 l(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,l,s,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(0,this.timeLimit>0&&(new Date).getTime()-u>1e3*this.timeLimit)return 1/0;var l,s,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,y,v=i.getNeighbors(e,this.diagonalMovement);for(f=0,l=1/0;h=v[f];++f){if(this.trackRecursion&&(h.retainCount=h.retainCount+1||1,!0!==h.tested&&(h.tested=!0)),(s=p(h,t+(y=h,(m=e).x===y.x||m.y===y.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[e.x,e.y],s;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),s<l&&(l=s)}return l}.bind(this),f=i.getNodeAt(e,t),d=i.getNodeAt(n,r),h=c(f,d);for(a=0;;++a){if((s=p(f,0,h,l=[],0))===1/0)return[];if(s instanceof o)return l;h=s}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,l,s,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((s=d.shift()).closed=!0,u=0,c=(a=i.getNeighbors(s,g)).length;u<c;++u)if(!(l=a[u]).closed)if(l.opened){if(1===l.by)return r.biBacktrace(s,l)}else d.push(l),l.parent=s,l.opened=!0,l.by=0;for((s=h.shift()).closed=!0,u=0,c=(a=i.getNeighbors(s,g)).length;u<c;++u)if(!(l=a[u]).closed)if(l.opened){if(0===l.by)return r.biBacktrace(l,s)}else h.push(l),l.parent=s,l.opened=!0,l.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,l,s,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((s=p.shift()).closed=!0,s===h)return r.backtrace(h);for(u=0,c=(a=i.getNeighbors(s,f)).length;u<c;++u)(l=a[u]).closed||l.opened||(p.push(l),l.opened=!0,l.parent=s)}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,l=!1,s=!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]),s=!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)l=f&&a,u=a&&s,p=s&&c,d=c&&f;else if(t===o.IfAtMostOneObstacle)l=f||a,u=a||s,p=s||c,d=c||f;else{if(t!==o.Always)throw new Error("Incorrect value of diagonalMovement");l=!0,u=!0,p=!0,d=!0}return l&&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,l=new i(n,o),s=new Array(o);for(e=0;e<o;++e)for(s[e]=new Array(n),t=0;t<n;++t)s[e][t]=new r(t,e,a[e][t].walkable);return l.nodes=s,l},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,l,s,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 l;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[l=r((o+i)/2)])<0?i=l:o=l+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},s=function(e,t,r){var o;return null==r&&(r=n),o=e[0],e[0]=t,g(e,0,r),o},l=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,l,s,u;for(null==t&&(t=n),s=[],i=0,a=(l=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=l[i],s.push(g(e,o,t));return s},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,s,u,c;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(o(a,r),s=0,u=(c=e.slice(t)).length;s<u;s++)i=c[s],l(a,i,r);return a.sort(r).reverse()},f=function(e,t,r){var a,l,s,p,f,d,h,g,m;if(null==r&&(r=n),10*t<=e.length){if(!(s=e.slice(0,t).sort(r)).length)return s;for(l=s[s.length-1],p=0,d=(h=e.slice(t)).length;p<d;p++)r(a=h[p],l)<0&&(u(s,a,0,null,r),s.pop(),l=s[s.length-1]);return s}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,l;for(null==o&&(o=n),i=e[r];r>t&&o(i,a=e[l=r-1>>1])<0;)e[r]=a,r=l;return e[r]=i},g=function(e,t,r){var o,i,a,l,s;for(null==r&&(r=n),i=e.length,s=t,a=e[t],o=2*t+1;o<i;)(l=o+1)<i&&!(r(e[o],e[l])<0)&&(o=l),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,h(e,s,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=i,e.replace=s,e.pushpop=l,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 s(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return l(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(17),n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return b});var r=n(10),o=n(2),i=n.n(o),a=n(0),l=n.n(a),s="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};var u,c=(function(e){var t,n,r,o,i,a,l,u,c,p,f,d,h,g,m;t=s,n=function(e,t,r){if(!u(t)||p(t)||f(t)||d(t)||l(t))return t;var o,i=0,a=0;if(c(t))for(o=[],a=t.length;i<a;i++)o.push(n(e,t[i],r));else for(var s in o={},t)Object.prototype.hasOwnProperty.call(t,s)&&(o[e(s,r)]=n(e,t[s],r));return o},r=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},a=Object.prototype.toString,l=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},c=function(e){return"[object Array]"==a.call(e)},p=function(e){return"[object Date]"==a.call(e)},f=function(e){return"[object RegExp]"==a.call(e)},d=function(e){return"[object Boolean]"==a.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},m={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(g(r,t),e)},decamelizeKeys:function(e,t){return n(g(i,t),e,t)},pascalizeKeys:function(e,t){return n(g(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}(u={exports:{}},u.exports),u.exports),p="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},f=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},g=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};var m=!1;try{m=!0}catch(e){}function y(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?f({},e,t):{}}function v(e){return null===e?null:"object"===(void 0===e?"undefined":p(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 b(e){var t=e.icon,n=e.mask,o=e.symbol,i=e.className,a=e.title,l=v(t),s=y("classes",[].concat(g(function(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-inverse":e.inverse,"fa-border":e.border,"fa-li":e.listItem,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},f(t,"fa-"+e.size,null!==e.size),f(t,"fa-rotate-"+e.rotation,null!==e.rotation),f(t,"fa-pull-"+e.pull,null!==e.pull),t);return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}(e)),g(i.split(" ")))),u=y("transform","string"==typeof e.transform?r.b.transform(e.transform):e.transform),c=y("mask",v(n)),p=Object(r.a)(l,d({},s,u,c,{symbol:o,title:a}));if(!p)return function(){var e;!m&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,x={};return Object.keys(e).forEach(function(t){b.defaultProps.hasOwnProperty(t)||(x[t]=e[t])}),_(h[0],x)}b.displayName="FontAwesomeIcon",b.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object])},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};var _=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(e.bind(null,t)),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=c.camelize(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[c.camelize(t)]=r}return e},{attrs:{}}),a=r.style,l=void 0===a?{}:a,s=h(r,["style"]);return i.attrs.style=d({},i.attrs.style,l),t.apply(void 0,[n.tag,d({},i.attrs,s)].concat(g(o)))}.bind(null,l.a.createElement)}).call(this,n(8))},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}),l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.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]}}(),s=null,u=0,c=[],p=n(23);function f(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(v(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(v(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function d(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],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function h(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=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.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 g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function m(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),y(t,e.attrs),h(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(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=u++;n=s||(s=m(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),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){g(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=d(e,t);return f(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&f(d(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete i[l.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.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(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(14)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0),o=n(7),i=n(1),a=function(){return function(){this.onSelectionChangedObservable=new i.Observable,this.onRebuildRequiredObservable=new i.Observable,this.onResetRequiredObservable=new i.Observable,this.onUpdateRequiredObservable=new i.Observable,this.onZoomToFitRequiredObservable=new i.Observable,this.onLogRequiredObservable=new i.Observable}}(),l=function(e,t){return(l=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 s(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=n(3),c=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 s(t,e),t.prototype.render=function(){var e="",t=new Array,n=new Array;if(this.props.node)for(var o in this.props.node.block&&(e=this.props.node.block.name),this.props.node.ports){var i=this.props.node.ports[o];"input"===i.position?t.push(r.createElement("div",{key:o,className:"input-port"},r.createElement("div",{className:"input-port-plug"},r.createElement(u.PortWidget,{key:o,name:i.name,node:this.props.node})),r.createElement("div",{className:"input-port-label"},i.name))):n.push(r.createElement("div",{key:o,className:"output-port"},r.createElement("div",{className:"output-port-label"},i.name),r.createElement("div",{className:"output-port-plug"},r.createElement(u.PortWidget,{key:o,name:i.name,node:this.props.node}))))}return r.createElement("div",{className:"diagramBlock"+(0===n.length?" output":"")},r.createElement("div",{className:"header"},e),r.createElement("div",{className:"inputs"},t),r.createElement("div",{className:"outputs"},n))},t}(r.Component),p=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 s(t,e),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 u.DefaultLinkModel},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}(u.PortModel),f=function(e){function t(t){var n=e.call(this,t)||this;return n.block=null,n}return s(t,e),t.prototype.prepare=function(e,t,n,r,o){var a=this;this.block=e.nodeMaterialBlock||null,e.nodeMaterialBlock&&(e.nodeMaterialBlock._outputs.forEach(function(e){var t=new p(e.name,"output");t.syncWithNodeMaterialConnectionPoint(e),a.addPort(t)}),e.nodeMaterialBlock._inputs.forEach(function(l){if(!(o.length>0&&-1===o.indexOf(l.name))){var s=new p(l.name,"input");if(s.connection=l,a.addPort(s),l.connectedPoint){var u=t.filter(function(e){return e.block===l._connectedPoint._ownerBlock}),c=(0==u.length?r.createNodeFromObject({column:e.column+1,nodeMaterialBlock:l.connectedPoint._ownerBlock}):u[0]).ports[l.connectedPoint.name].link(s);r._toAdd?r._toAdd.push(c):n.addAll(c)}else{var f="";l.type==i.NodeMaterialBlockConnectionPointTypes.Texture?f="Texture":l.type==i.NodeMaterialBlockConnectionPointTypes.Matrix?f="Matrix":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3?f="Vector3":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector2?f="Vector2":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3OrVector4OrColor4?f="Vector4":l.type&i.NodeMaterialBlockConnectionPointTypes.Float&&(f="Float");var d=r.addValueNode(f,e.column+1,l);if(d){var h=d.getPorts();for(var g in h){c=h[g].link(s);r._toAdd?r._toAdd.push(c):n.addAll(c)}}}}}))},t.prototype.renderProperties=function(e){return null},t}(u.NodeModel),d=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?r.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):r.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 r.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},r.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(r.Component),h=n(4),g={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"]},m={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"]},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"]},v={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"]},b=function(e){function t(n){var r,o=e.call(this,n)||this;try{r=t._InMemoryStorage&&void 0!==t._InMemoryStorage[o.props.title]?t._InMemoryStorage[o.props.title]:"undefined"!=typeof Storage&&null!==localStorage.getItem(o.props.title)?"true"===localStorage.getItem(o.props.title):!o.props.closed}catch(e){t._InMemoryStorage={},t._InMemoryStorage[o.props.title]=!o.props.closed,r=!o.props.closed}return o.state={isExpanded:r},o}return s(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;try{t._InMemoryStorage?t._InMemoryStorage[this.props.title]=e:"undefined"!=typeof Storage&&localStorage.setItem(this.props.title,e?"true":"false")}catch(n){t._InMemoryStorage={},t._InMemoryStorage[this.props.title]=e}this.setState({isExpanded:e})},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return r.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},r.createElement("div",{className:"title"},this.props.title),r.createElement("div",{className:t},r.createElement(h.a,{icon:g})))},t.prototype.render=function(){return this.state.isExpanded?r.createElement("div",{className:"paneContainer"},r.createElement("div",{className:"paneContainer-content"},this.renderHeader(),r.createElement("div",{className:"paneList"},this.props.children))):r.createElement("div",{className:"paneContainer"},r.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(r.Component),_=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value||n.props.target[n.props.propertyName]||""},n}return s(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=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){this._localChange=!0;var t=this.props.value||this.props.target[this.props.propertyName];this.setState({value:e}),this.raiseOnPropertyChanged(e,t),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return r.createElement("div",{className:"textInputLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"value"},r.createElement("input",{value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}})))},t}(r.Component),x=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 s(t,e),t.prototype.prepare=function(t,n,r,o,i){e.prototype.prepare.call(this,t,n,r,o,i)},t.prototype.renderProperties=function(e){return r.createElement(b,{title:"GENERAL"},r.createElement(_,{label:"Name",propertyName:"name",target:this.block,onChange:function(){return e.onUpdateRequiredObservable.notifyObservers()}}),r.createElement(d,{label:"Type",value:this.block.getClassName()}))},t}(f),w=function(e){function t(t){var n=e.call(this,"generic")||this;return n._globalState=t,n}return s(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(c,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new x},t}(u.AbstractNodeFactory),k=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",{className:"buttonLine"},r.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(r.Component);n(21);var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=this,t={Vertex:[i.BonesBlock,i.InstancesBlock,i.MorphTargetsBlock],Fragment:[i.AlphaTestBlock,,i.ImageProcessingBlock,i.RGBAMergerBlock,i.RGBASplitterBlock,i.TextureBlock],Outputs:[i.VertexOutputBlock,i.FragmentOutputBlock],Dual:[i.FogBlock],Math:[i.AddBlock,i.ClampBlock,i.MatrixMultiplicationBlock,i.MultiplyBlock,i.ScaleBlock,i.Vector2TransformBlock,i.Vector3TransformBlock,i.Vector4TransformBlock],Inputs:["Vector2","Vector3","Vector4","Color3","Color4","Matrix"]},n=[];for(var o in t){var a=t[o].map(function(t){var n="string"==typeof t?t:t.prototype.getClassName().replace("Block",""),o="string"==typeof t?function(){e.props.onAddValueNode(t),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}:function(){e.props.onAddNodeFromClass(t)};return r.createElement(k,{key:n,label:n,onClick:o})});n.push(r.createElement(b,{key:o+" blocks",title:o+" blocks",closed:!1},a))}return r.createElement("div",{id:"nodeList",style:{borderRightStyle:"solid",borderColor:"grey",borderWidth:"1px"}},r.createElement("div",{className:"panes"},r.createElement("div",{className:"pane"},n)))},t}(r.Component);n(24);var C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null},n}return s(t,e),t.prototype.componentWillMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add(function(t){e.setState({currentNode:t})})},t.prototype.render=function(){var e=this;return this.state.currentNode?r.createElement("div",{id:"propertyTab"},r.createElement("div",{id:"header"},r.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),r.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),this.state.currentNode.renderProperties(this.props.globalState)):r.createElement("div",{id:"propertyTab"},r.createElement("div",{id:"header"},r.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),r.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),r.createElement("div",null,r.createElement(b,{title:"PROPERTIES"}),r.createElement(b,{title:"GENERAL"},r.createElement(k,{label:"Reset to default",onClick:function(){e.props.globalState.nodeMaterial.setToDefault(),e.props.globalState.onResetRequiredObservable.notifyObservers()}})),r.createElement(b,{title:"UI"},r.createElement(k,{label:"Zoom to fit",onClick:function(){e.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}))))},t}(r.Component),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return o.createPortal(this.props.children,this.props.globalState.hostElement)},t}(r.Component),O=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 s(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(),a=t.getSize(),l=a.width/a.height,s=this.props.width,u=s/l|1;if(t.isCube){var c=new i.PassCubePostProcess("pass",1,null,i.Texture.NEAREST_SAMPLINGMODE,o,!1,i.Constants.TEXTURETYPE_UNSIGNED_INT);c.face=this.state.face,n=c}else n=new i.PassPostProcess("pass",1,null,i.Texture.NEAREST_SAMPLINGMODE,o,!1,i.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 i.RenderTargetTexture("temp",{width:s,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*s,g=u/2,m=o.readPixels(0,0,s,u);if(!(t.isCube||this.state.displayRed&&this.state.displayGreen&&this.state.displayBlue))for(var y=0;y<s*u*4;y+=4)if(this.state.displayRed||(m[y]=0),this.state.displayGreen||(m[y+1]=0),this.state.displayBlue||(m[y+2]=0),this.state.displayAlpha){var v=m[y+2];m[y]=v,m[y+1]=v,m[y+2]=v,m[y+2]=0}if(t.invertY||t.isCube)for(y=0;y<g;y++)for(var b=0;b<h;b++){var _=b+y*h,x=b+(u-y-1)*h,w=m[_];m[_]=m[x],m[x]=w}p.width=s,p.height=u;var k=p.getContext("2d");if(k){var P=k.createImageData(s,u);P.data.set(m),k.putImageData(P,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 r.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&r.createElement("div",{className:"control3D"},r.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),r.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),r.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),r.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),r.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),r.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&&r.createElement("div",{className:"control"},r.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"),r.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"),r.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"),r.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"),r.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")),r.createElement("canvas",{ref:"canvas",className:"preview"}))},t}(r.Component),S=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 s(t,e),t.prototype.render=function(){var e=new Array,t=new Array;if(this.props.node)for(var n in this.props.node.ports){var o=this.props.node.ports[n];"output"===o.position?t.push(r.createElement("div",{key:n,className:"output-port"},r.createElement("div",{className:"output-port-label"},o.name),r.createElement("div",{className:"output-port-plug"},r.createElement(u.PortWidget,{key:n,name:o.name,node:this.props.node})))):"uv"===o.name&&e.push(r.createElement("div",{key:n,className:"input-port"},r.createElement("div",{className:"input-port-plug"},r.createElement(u.PortWidget,{key:n,name:o.name,node:this.props.node})),r.createElement("div",{className:"input-port-label"},o.name)))}return r.createElement("div",{className:"diagramBlock"},r.createElement("div",{className:"header"},this.props.node.block.name),r.createElement("div",{className:"inputs"},e),r.createElement("div",{className:"outputs"},t),this.props.node&&this.props.node.texture&&r.createElement(O,{ref:"textureView",width:200,height:180,texture:this.props.node.texture,hideChannelSelect:!0}))},t}(r.Component),T=function(e){function t(t){return e.call(this,t)||this}return s(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 r.createElement("div",{className:"buttonLine"},r.createElement("label",{htmlFor:"file-upload",className:"file-upload"},this.props.label),r.createElement("input",{ref:"upload",id:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(r.Component),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.replaceTexture=function(e){var t=this;if(this.props.node){var n=this.props.node.texture;n||(this.props.node.texture=new i.Texture(null,i.Engine.LastCreatedScene),n=this.props.node.texture),i.Tools.ReadFile(e,function(r){var o=new Blob([r],{type:"octet/stream"}),i=URL.createObjectURL(o);if(n.isCube){var a=void 0;e.name.toLowerCase().indexOf(".dds")>0?a=".dds":e.name.toLowerCase().indexOf(".env")>0&&(a=".env"),n.updateURL(i,a,function(){return t.props.globalState.onUpdateRequiredObservable.notifyObservers()})}else n.updateURL(i,null,function(){return t.props.globalState.onUpdateRequiredObservable.notifyObservers()});t.props.globalState.onUpdateRequiredObservable.notifyObservers(),t.props.globalState.onRebuildRequiredObservable.notifyObservers()},void 0,!0)}},t.prototype.render=function(){var e=this;return r.createElement("div",null,r.createElement(b,{title:"GENERAL"},r.createElement(_,{label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),r.createElement(d,{label:"Type",value:"Texture"})),r.createElement(b,{title:"PROPERTIES"},r.createElement(T,{label:"Replace texture",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"})))},t}(r.Component),M=function(e){function t(){return e.call(this,"texture")||this}return s(t,e),Object.defineProperty(t.prototype,"texture",{get:function(){return this._block.texture.value},set:function(e){this._block.texture.value=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return r.createElement(N,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o,i){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o,i)},t}(f),L=function(e){function t(t){var n=e.call(this,"texture")||this;return n._globalState=t,n}return s(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(S,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new M},t}(u.AbstractNodeFactory),A=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 s(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 r.createElement("div",{className:"numeric"},this.props.label&&r.createElement("div",{className:"numeric-label"},this.props.label+": "),r.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}(r.Component),j=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 s(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?r.createElement(h.a,{icon:y}):r.createElement(h.a,{icon:v});return r.createElement("div",{className:"vector3Line"},r.createElement("div",{className:"firstLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),r.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(A,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),r.createElement(A,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(r.Component),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return r.createElement(j,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),R=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 s(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?r.createElement(h.a,{icon:y}):r.createElement(h.a,{icon:v});return r.createElement("div",{className:"vector3Line"},r.createElement("div",{className:"firstLine"},r.createElement("div",{className:"label"},this.props.label),r.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)),r.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(A,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),r.createElement(A,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),r.createElement(A,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})))},t.defaultProps={step:.001},t}(r.Component),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return r.createElement(R,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),D=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 s(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return!((n=this.props.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 r.createElement("div",{className:"checkBoxLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"checkBox"},r.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),r.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(r.Component),W=(function(){}(),function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:t.target[t.propertyName]},n}return s(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.target[e.propertyName];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 r.createElement("div",{className:"listLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"options"},r.createElement("select",{onChange:function(t){return e.updateValue(t.target.value)},value:this.state.value},this.props.options.map(function(e){return r.createElement("option",{key:e.label,value:e.value},e.label)}))))},t}(r.Component)),z=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 s(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=i.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.props.target[this.props.propertyName]=t,this.setState({color:t})},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].x=e,this.state.color.r=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].g=e,this.state.color.g=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].b=e,this.state.color.b=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?r.createElement(h.a,{icon:y}):r.createElement(h.a,{icon:v}),n="Color3"===this.state.color.getClassName()?this.state.color:new i.Color3(this.state.color.r,this.state.color.g,this.state.color.b);return r.createElement("div",{className:"color3Line"},r.createElement("div",{className:"firstLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"color3"},r.createElement("input",{type:"color",value:n.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),r.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},r.createElement(h.a,{icon:m})),r.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(A,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),r.createElement(A,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),r.createElement(A,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(r.Component),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return r.createElement(z,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),B=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||3):"0"},n._store=r,n}return s(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||3):"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)||(t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.raiseOnPropertyChanged(t,this._store),this.props.target[this.props.propertyName]=t,this._store=t))},t.prototype.render=function(){var e=this;return r.createElement("div",null,r.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"value"},r.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}(r.Component),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return r.createElement(B,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),Y=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.renderValue=function(e){var t=this.props.inputNode.connection;switch(t.type){case i.NodeMaterialBlockConnectionPointTypes.Float:return r.createElement(V,{globalState:e,connection:t});case i.NodeMaterialBlockConnectionPointTypes.Vector2:return r.createElement(I,{globalState:e,connection:t});case i.NodeMaterialBlockConnectionPointTypes.Vector3:case i.NodeMaterialBlockConnectionPointTypes.Color3:case i.NodeMaterialBlockConnectionPointTypes.Color3OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Color4:return r.createElement(U,{globalState:e,connection:t});case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:return r.createElement(F,{globalState:e,connection:t})}return null},t.prototype.setDefaultValue=function(){var e=this.props.inputNode.connection;switch(e.type){case i.NodeMaterialBlockConnectionPointTypes.Float:e.value=0;break;case i.NodeMaterialBlockConnectionPointTypes.Vector2:e.value=i.Vector2.Zero();break;case i.NodeMaterialBlockConnectionPointTypes.Vector3:case i.NodeMaterialBlockConnectionPointTypes.Color3:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:e.value=i.Vector3.Zero();break;case i.NodeMaterialBlockConnectionPointTypes.Matrix:e.value=i.Matrix.Identity()}},t.prototype.render=function(){var e=this,t=this.props.inputNode.connection,n=[{label:"World",value:i.NodeMaterialWellKnownValues.World},{label:"WorldxView",value:i.NodeMaterialWellKnownValues.WorldView},{label:"WorldxViewxProjection",value:i.NodeMaterialWellKnownValues.WorldViewProjection},{label:"View",value:i.NodeMaterialWellKnownValues.View},{label:"ViewxProjection",value:i.NodeMaterialWellKnownValues.ViewProjection},{label:"Projection",value:i.NodeMaterialWellKnownValues.Projection},{label:"Automatic",value:i.NodeMaterialWellKnownValues.Automatic}];return r.createElement("div",null,r.createElement(b,{title:"GENERAL"},r.createElement(d,{label:"Type",value:function(e){switch(e){case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:case i.NodeMaterialBlockConnectionPointTypes.Vector4OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrVector4:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3OrVector4OrColor4:return"Vector";case i.NodeMaterialBlockConnectionPointTypes.Color3:case i.NodeMaterialBlockConnectionPointTypes.Color3OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Color4:return"Color";default:return i.NodeMaterialBlockConnectionPointTypes[e]}}(t.type)})),r.createElement(b,{title:"PROPERTIES"},r.createElement(D,{label:"Is mesh attribute",onSelect:function(n){n?t.isAttribute=!0:t.isUniform=!0,e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isAttribute}}),t.isAttribute&&r.createElement(W,{label:"Attribute",valuesAreStrings:!0,options:[{label:"position",value:"position"},{label:"normal",value:"normal"},{label:"tangent",value:"tangent"},{label:"color",value:"color"},{label:"uv",value:"uv"},{label:"uv2",value:"uv2"}],target:t,propertyName:"name",onSelect:function(n){t.setAsAttribute(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&r.createElement(D,{label:"Is well known value",onSelect:function(n){n?t.setAsWellKnownValue(i.NodeMaterialWellKnownValues.World):(t.setAsWellKnownValue(null),e.setDefaultValue()),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isWellKnownValue}}),t.isUniform&&!t.isWellKnownValue&&this.renderValue(this.props.globalState),t.isUniform&&t.isWellKnownValue&&r.createElement(W,{label:"Well known value",options:n,target:t,propertyName:"wellKnownValue",onSelect:function(n){t.setAsWellKnownValue(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(r.Component),X=function(e){function t(){return e.call(this,"input")||this}return s(t,e),t.prototype.renderProperties=function(e){return this.connection?r.createElement(Y,{globalState:e,inputNode:this}):null},t}(f),G=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 s(t,e),t.prototype.render=function(){var e,t=new Array;if(this.props.node)for(var n in this.props.node.ports){e=this.props.node.ports[n],t.push(r.createElement("div",{key:n,className:"output-port"},r.createElement("div",{className:"output-port-label"}),r.createElement("div",{className:"output-port-plug"},r.createElement(u.PortWidget,{key:n,name:e.name,node:this.props.node}))));break}var o=this.props.node.connection,a="",l=e.name;if(o){if(o.isAttribute)a="mesh."+o.name;else if(o.isWellKnownValue)switch(o.wellKnownValue){case i.NodeMaterialWellKnownValues.World:a="World";break;case i.NodeMaterialWellKnownValues.WorldView:a="World x View";break;case i.NodeMaterialWellKnownValues.WorldViewProjection:a="World x View x Projection";break;case i.NodeMaterialWellKnownValues.View:a="View";break;case i.NodeMaterialWellKnownValues.ViewProjection:a="View x Projection";break;case i.NodeMaterialWellKnownValues.Projection:a="Projection";break;case i.NodeMaterialWellKnownValues.Automatic:a="Automatic"}}else l="Not connected input";return r.createElement("div",{className:"diagramBlock input"+(o&&o.isAttribute?" attribute":"")},r.createElement("div",{className:"header"},l),r.createElement("div",{className:"outputs"},t),r.createElement("div",{className:"value"},a))},t}(r.Component),q=function(e){function t(t){var n=e.call(this,"input")||this;return n._globalState=t,n}return s(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(G,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new X},t}(u.AbstractNodeFactory);n(26);var H=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return s(t,e),t.prototype.componentWillMount=function(){var e=this;this.props.globalState.onLogRequiredObservable.add(function(t){var n=e.state.logs;n.push.apply(n,t.split("\r\n")),e.setState({logs:n})})},t.prototype.componentDidUpdate=function(){var e=o.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)},t.prototype.render=function(){return r.createElement("div",{id:"log-console",ref:"log-console"},this.state.logs.map(function(e,t){return r.createElement("div",{key:t,className:"log"},e)}))},t}(r.Component);n(28),n(30),n(32);var K=function(e){function t(t){var n=e.call(this,t)||this;return n._nodes=new Array,n._toAdd=[],n._rowPos=new Array,n._engine=new u.DiagramEngine,n._engine.installDefaultFactories(),n._engine.registerNodeFactory(new w(n.props.globalState)),n._engine.registerNodeFactory(new L(n.props.globalState)),n._engine.registerNodeFactory(new q(n.props.globalState)),n.props.globalState.onRebuildRequiredObservable.add(function(){n.props.globalState.nodeMaterial&&n.buildMaterial(),n.forceUpdate()}),n.props.globalState.onResetRequiredObservable.add(function(){n._rowPos=[],n.build(),n.props.globalState.nodeMaterial&&n.buildMaterial()}),n.props.globalState.onUpdateRequiredObservable.add(function(){n.forceUpdate()}),n.props.globalState.onZoomToFitRequiredObservable.add(function(){n._engine.zoomToFit()}),n.build(),n}return s(t,e),t.prototype.createNodeFromObject=function(e){var t;null==this._rowPos[e.column]?this._rowPos[e.column]=0:this._rowPos[e.column]++;var n=[];return e.nodeMaterialBlock?(e.nodeMaterialBlock instanceof i.TextureBlock?(t=new M,n.push("uv")):t=new x,e.nodeMaterialBlock.isFinalMerger&&this.props.globalState.nodeMaterial.addOutputNode(e.nodeMaterialBlock)):(t=new X).connection=e.connection,this._nodes.push(t),t.setPosition(1600-300*e.column,210*this._rowPos[e.column]),this._model.addAll(t),e.nodeMaterialBlock&&t.prepare(e,this._nodes,this._model,this,n),t},t.prototype.componentDidMount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;e.setState({document:this.props.globalState.hostDocument}),this.props.globalState.hostDocument.addEventListener("keyup",e.onKeyUpPointer,!1)}},t.prototype.componentWillUnmount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;this.props.globalState.hostDocument.removeEventListener("keyup",e.onKeyUpPointer,!1)}},t.prototype.buildMaterial=function(){if(this.props.globalState.nodeMaterial)try{this.props.globalState.nodeMaterial.build(!0),this.props.globalState.onLogRequiredObservable.notifyObservers("Node material build successful")}catch(e){this.props.globalState.onLogRequiredObservable.notifyObservers(e)}},t.prototype.build=function(){var e=this;if(this._model=new u.DiagramModel,this._model.addListener({nodesUpdated:function(t){if(!t.isCreated){var n=t.node.block;n&&n.isFinalMerger&&e.props.globalState.nodeMaterial.removeOutputNode(n)}},linksUpdated:function(t){if(!t.isCreated){e.props.globalState.onSelectionChangedObservable.notifyObservers(null);var n=p.SortInputOutput(t.link.sourcePort,t.link.targetPort);if(n&&n.input.connection){var r=n.input.connection.ownerBlock;r.isFinalMerger&&e.props.globalState.nodeMaterial.removeOutputNode(r),n.output.connection?(n.output.connection.disconnectFrom(n.input.connection),n.input.syncWithNodeMaterialConnectionPoint(n.input.connection),n.output.syncWithNodeMaterialConnectionPoint(n.output.connection)):n.input.connection.value&&(n.input.connection.value=null)}}t.link.addListener({sourcePortChanged:function(){console.log("port change")},targetPortChanged:function(){var n=p.SortInputOutput(t.link.sourcePort,t.link.targetPort);if(n){if(n.output.connection&&n.input.connection)n.output.connection.connectTo(n.input.connection);else if(n.input.connection&&!n.output.connection){var r=n.output.name;n.output.syncWithNodeMaterialConnectionPoint(n.input.connection),n.output.name=r,n.output.getNode().connection=n.output.connection,n.input.connection.value=n.output.defaultValue}e.props.globalState.nodeMaterial&&e.buildMaterial()}}})}}),this.props.globalState.nodeMaterial){var t=this.props.globalState.nodeMaterial;t._vertexOutputNodes.forEach(function(t){e.createNodeFromObject({column:0,nodeMaterialBlock:t})}),t._fragmentOutputNodes.forEach(function(t){e.createNodeFromObject({column:0,nodeMaterialBlock:t})})}setTimeout(function(){var t;e._toAdd&&(t=e._model).addAll.apply(t,e._toAdd),e._toAdd=null,e._engine.setDiagramModel(e._model),e.forceUpdate()},550)},t.prototype.addNodeFromClass=function(e){var t=this,n=new e(e.prototype.getClassName()),r=this.createNodeFromObject({column:0,nodeMaterialBlock:n}),o=this.refs.test;return this.forceUpdate(),setTimeout(function(){o.startFiringAction(new u.MoveCanvasAction(1,0,t._model))},500),r},t.prototype.addValueNode=function(e,t,n){void 0===t&&(t=0);var r=this.createNodeFromObject({column:t,type:e,connection:n}),o=new p(e,"output");if(r.addPort(o),!n)switch(e){case"Vector2":o.defaultValue=i.Vector2.Zero();break;case"Vector3":o.defaultValue=i.Vector3.Zero();break;case"Vector4":o.defaultValue=i.Vector4.Zero();break;case"Matrix":o.defaultValue=i.Matrix.Identity();break;case"Color3":o.defaultValue=i.Color3.White();break;case"Color4":o.defaultValue=new i.Color4(1,1,1,1)}return r},t.prototype.render=function(){var e=this;return r.createElement(E,{globalState:this.props.globalState},r.createElement("div",{id:"node-editor-graph-root"},r.createElement(P,{globalState:this.props.globalState,onAddValueNode:function(t){return e.addValueNode(t)},onAddNodeFromClass:function(t){return e.addNodeFromClass(t)}}),r.createElement(u.DiagramWidget,{deleteKeys:[46],ref:"test",inverseZoom:!0,className:"diagram-container",diagramEngine:this._engine,maxNumberPointsPerLink:0}),r.createElement(C,{globalState:this.props.globalState}),r.createElement(H,{globalState:this.props.globalState})))},t}(r.Component),$=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(","),l=window.open("",e,a);if(!l)return null;var s=l.document,u=s.createElement("link");u.rel="stylesheet",u.href="https://use.typekit.net/cta4xsb.css",s.head.appendChild(u),s.title=e,s.body.style.width="100%",s.body.style.height="100%",s.body.style.margin="0",s.body.style.padding="0";var c=s.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",l.document.body.appendChild(c),this._CopyStyles(window.document,s),setTimeout(function(){o._CopyStyles(window.document,s)},0),this[t]=l,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 l=a[i];o.appendChild(e.createTextNode(l.cssText))}t.head.appendChild(o)}else if(r.href){var s=e.createElement("link");s.rel="stylesheet",s.href=r.href,t.head.appendChild(s)}}catch(e){console.log(e)}}},e}(),Z=function(){function e(){}return e.Show=function(e){var t=$.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800),n=new a;n.nodeMaterial=e.nodeMaterial,n.hostElement=t,n.hostDocument=t.ownerDocument;var i=r.createElement(K,{globalState:n});o.render(i,t);var l=$["node-editor"];n.nodeMaterial&&l&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce(function(){l&&l.close()}),window.onbeforeunload=function(e){var t=$["node-editor"];t&&t.close()})},e}();n.d(t,"a",function(){return Z})},function(e,t,n){"use strict";function r(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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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){o(e,t,n[t])})}return e}function a(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,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.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 le}),n.d(t,"b",function(){return ae});var l=function(){},s={},u={},c={mark:l,measure:l};try{"undefined"!=typeof window&&(s=window),"undefined"!=typeof document&&(u=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(c=performance)}catch(e){}var p=(s.navigator||{}).userAgent,f=void 0===p?"":p,d=s,h=u,g=c,m=(d.document,!!h.documentElement&&!!h.head&&"function"==typeof h.addEventListener&&"function"==typeof h.createElement),y=(~f.indexOf("MSIE")||f.indexOf("Trident/"),"fa"),v="svg-inline--fa",b="data-fa-i2svg",_=(function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),x=_.concat([11,12,13,14,15,16,17,18,19,20]),w=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(_.map(function(e){return"".concat(e,"x")})).concat(x.map(function(e){return"w-".concat(e)})),d.FontAwesomeConfig||{});if(h&&"function"==typeof h.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-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=a(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=h.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(w[r]=o)})}var k=i({familyPrefix:y,replacementClass:v,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},w);k.autoReplaceSvg||(k.observeMutations=!1);var P=i({},k);d.FontAwesomeConfig=P;var C=d||{};C.___FONT_AWESOME___||(C.___FONT_AWESOME___={}),C.___FONT_AWESOME___.styles||(C.___FONT_AWESOME___.styles={}),C.___FONT_AWESOME___.hooks||(C.___FONT_AWESOME___.hooks={}),C.___FONT_AWESOME___.shims||(C.___FONT_AWESOME___.shims=[]);var E=C.___FONT_AWESOME___,O=[];m&&((h.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(h.readyState)||h.addEventListener("DOMContentLoaded",function e(){h.removeEventListener("DOMContentLoaded",e),1,O.map(function(e){return e()})}));var S={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function T(e){if(e&&m){var t=h.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=h.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 h.head.insertBefore(t,r),e}}var N="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function M(){for(var e=12,t="";e-- >0;)t+=N[62*Math.random()|0];return t}function L(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function A(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function j(e){return e.size!==S.size||e.x!==S.x||e.y!==S.y||e.rotate!==S.rotate||e.flipX||e.flipY}function I(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),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var R={x:0,y:0,width:"100%",height:"100%"};function F(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,l=e.transform,s=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)),y=[P.replacementClass,a?"".concat(P.familyPrefix,"-").concat(a):"",m].filter(function(e){return-1===c.classes.indexOf(e)}).concat(c.classes).join(" "),v={children:[],attributes:i({},c.attributes,{"data-prefix":o,"data-icon":a,class:y,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(g)})};f&&(v.attributes[b]=""),u&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(M())},children:[u]});var _=i({},v,{prefix:o,iconName:a,main:n,mask:r,transform:l,symbol:s,styles:c.styles}),x=r.found&&n.found?function(e){var t=e.children,n=e.attributes,r=e.main,o=e.mask,a=e.transform,l=r.width,s=r.icon,u=o.width,c=o.icon,p=I({transform:a,containerWidth:u,iconWidth:l}),f={tag:"rect",attributes:i({},R,{fill:"white"})},d={tag:"g",attributes:i({},p.inner),children:[{tag:"path",attributes:i({},s.attributes,p.path,{fill:"black"})}]},h={tag:"g",attributes:i({},p.outer),children:[d]},g="mask-".concat(M()),m="clip-".concat(M()),y={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:[c]},{tag:"mask",attributes:i({},R,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,h]}]};return t.push(y,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(g,")")},R)}),{children:t,attributes:n}}(_):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,a=A(e.styles);if(a.length>0&&(n.style=a),j(o)){var l=I({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:i({},l.outer),children:[{tag:"g",attributes:i({},l.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:i({},r.icon.attributes,l.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(_),w=x.children,k=x.attributes;return _.children=w,_.attributes=k,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i({},o,{id:!0===a?"".concat(t,"-").concat(P.familyPrefix,"-").concat(n):a}),children:r}]}]}(_):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,l=e.transform;if(j(l)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=A(i({},a,{"transform-origin":"".concat(s.x+l.x/16,"em ").concat(s.y+l.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(_)}var D=function(){},W=(P.measurePerformance&&g&&g.mark&&g.measure,function(e,t,n,r){var o,i,a,l=Object.keys(e),s=l.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[l[0]]):(o=0,a=n);o<s;o++)a=u(a,e[i=l[o]],i,e);return a}),z=E.styles,U=E.shims,B=function(){var e=function(e){return W(z,function(t,n,r){return t[r]=W(n,e,{}),t},{})};e(function(e,t,n){return 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 z;W(U,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},{})};B();E.styles;function V(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function Y(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?L(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(L(e[n]),'" ')},"").trim()}(r),">").concat(i.map(Y).join(""),"</").concat(t,">")}var X=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 G(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}G.prototype=Object.create(Error.prototype),G.prototype.constructor=G;var q={fill:"currentColor"},H={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},K={tag:"path",attributes:i({},q,{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"})},$=i({},H,{attributeName:"opacity"});i({},q,{cx:"256",cy:"364",r:"28"}),i({},H,{attributeName:"r",values:"28;14;28;28;14;28;"}),i({},$,{values:"1;0;1;1;0;1;"}),i({},q,{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"}),i({},$,{values:"1;0;0;0;0;1;"}),i({},q,{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"}),i({},$,{values:"0;0;1;1;0;0;"}),E.styles;var Z='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-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 -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}';function Q(){var e=y,t=v,n=P.familyPrefix,r=P.replacementClass,o=Z;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,".".concat(r))}return o}function J(e){return{found:!0,width:e[0],height:e[1],icon:{tag:"path",attributes:{fill:"currentColor",d:e.slice(4)[0]}}}}function ee(){P.autoAddCss&&!ie&&(T(Q()),ie=!0)}function te(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Y(e)})}}),Object.defineProperty(e,"node",{get:function(){if(m){var t=h.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ne(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return V(oe.definitions,n,r)||V(E.styles,n,r)}var re,oe=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,o;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]=i({},e.definitions[t]||{},o[t]),function e(t,n){var r=Object.keys(n).reduce(function(e,t){var r=n[t];return r.icon?e[r.iconName]=r.icon:e[t]=r,e},{});"function"==typeof E.hooks.addPack?E.hooks.addPack(t,r):E.styles[t]=i({},E.styles[t]||{},r),"fas"===t&&e("fa",n)}(t,o[t]),B()})}},{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}}])&&r(t.prototype,n),o&&r(t,o),e}()),ie=!1,ae={transform:function(e){return X(e)}},le=(re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?S:n,o=t.symbol,a=void 0!==o&&o,l=t.mask,s=void 0===l?null:l,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 y=e.prefix,v=e.iconName,b=e.icon;return te(i({type:"icon"},e),function(){return ee(),P.autoA11y&&(c?h["aria-labelledby"]="".concat(P.replacementClass,"-title-").concat(M()):h["aria-hidden"]="true"),F({icons:{main:J(b),mask:s?J(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:v,transform:i({},S,r),symbol:a,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:ne(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ne(r||{})),re(n,i({},t,{mask:r}))})},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;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,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(9);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(8))},function(e,t,n){"use strict";
- /** @license React v16.6.1
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(11),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,s=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.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(e=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function x(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=x.prototype;var P=k.prototype=new w;P.constructor=k,r(P,x.prototype),P.isPureReactComponent=!0;var C={current:null,currentDispatcher:null},E=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:C.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g,M=[];function L(e,t,n,r){if(M.length){var o=M.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 A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return r(o,t,""===n?"."+I(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+I(l=t[u],u);s+=e(l,c,r,o)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=y&&t[y]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(l=t.next()).done;)s+=e(l=l.value,c=n+I(l,u++),r,o);else"object"===l&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return s}(e,"",t,n)}function I(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 R(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)?D(e,r,n,function(e){return e}):null!=e&&(T(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(N,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),j(e,F,t=L(t,i,r,o)),A(t)}var W={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,R,t=L(null,null,t,n)),A(t)},count:function(e){return j(e,function(){return null},null)},toArray:function(e){var t=[];return D(e,t,null,function(e){return e}),t},only:function(e){return T(e)||v("143"),e}},createRef:function(){return{current:null}},Component:x,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:d,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}},Fragment:l,StrictMode:s,Suspense:h,createElement:S,cloneElement:function(e,t,n){null==e&&v("267",e);var o=void 0,a=r({},e.props),l=e.key,s=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,u=C.current),void 0!==t.key&&(l=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)E.call(t,o)&&!O.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:l,ref:s,props:a,_owner:u}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:r}};W.unstable_ConcurrentMode=f,W.unstable_Profiler=u;var z={default:W},U=z&&W||z;e.exports=U.default||U},function(e,t,n){"use strict";
- /** @license React v16.6.1
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(0),o=n(11),i=n(15);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(e=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var l=!1,s=null,u=!1,c=null,p={onError:function(e){l=!0,s=e}};function f(e,t,n,r,o,i,a,u,c){l=!1,s=null,function(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(p,arguments)}var d=null,h={};function g(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!y[n])for(var r in t.extractEvents||a("97",e),y[n]=t,n=t.eventTypes){var o=void 0,i=n[r],l=t,s=r;v.hasOwnProperty(s)&&a("99",s),v[s]=i;var u=i.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&m(u[o],l,s);o=!0}else i.registrationName?(m(i.registrationName,l,s),o=!0):o=!1;o||a("98",r,e)}}}function m(e,t,n){b[e]&&a("100",e),b[e]=t,_[e]=t.eventTypes[n].dependencies}var y=[],v={},b={},_={},x=null,w=null,k=null;function P(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,o,i,p,d,h){if(f.apply(this,arguments),l){if(l){var g=s;l=!1,s=null}else a("198"),g=void 0;u||(u=!0,c=g)}}(r,t,void 0,e),e.currentTarget=null}function C(e,t){return null==t&&a("30"),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 E(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function S(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)P(e,t[r],n[r]);else t&&P(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var T={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),g()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&g()}};function N(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}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function M(e){if(null!==e&&(O=C(O,e)),e=O,O=null,e&&(E(e,S),O&&a("95"),u))throw e=c,u=!1,c=null,e}var L=Math.random().toString(36).slice(2),A="__reactInternalInstance$"+L,j="__reactEventHandlers$"+L;function I(e){if(e[A])return e[A];for(;!e[A];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[A]).tag||6===e.tag?e:null}function R(e){return!(e=e[A])||5!==e.tag&&6!==e.tag?null:e}function F(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function D(e){return e[j]||null}function W(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=N(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=W(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function B(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=N(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&B(e._targetInst,null,e)}function Y(e){E(e,U)}var X=!("undefined"==typeof window||!window.document||!window.document.createElement);function G(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},H={},K={};function $(e){if(H[e])return H[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in K)return H[e]=n[t];return e}X&&(K=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var Z=$("animationend"),Q=$("animationiteration"),J=$("animationstart"),ee=$("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.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 oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function le(){return!1}function se(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)?ae:le,this.isPropagationStopped=le,this}function ue(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 ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=ue,e.release=ce}o(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},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}}),se.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},se.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,pe(n),n},pe(se);var fe=se.extend({data:null}),de=se.extend({data:null}),he=[9,13,27,32],ge=X&&"CompositionEvent"in window,me=null;X&&"documentMode"in document&&(me=document.documentMode);var ye=X&&"TextEvent"in window&&!me,ve=X&&(!ge||me&&8<me&&11>=me),be=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 we(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pe=!1;var Ce={eventTypes:_e,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ge)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 Pe?we(e,n)&&(o=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=_e.compositionStart);return o?(ve&&"ko"!==n.locale&&(Pe||o!==_e.compositionStart?o===_e.compositionEnd&&Pe&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Pe=!0)),o=fe.getPooled(o,t,n,r),i?o.data=i:null!==(i=ke(n))&&(o.data=i),Y(o),i=o):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(Pe)return"compositionend"===e||!ge&&we(e,t)?(e=ie(),oe=re=ne=null,Pe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ve&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(_e.beforeInput,t,n,r)).data=e,Y(t)):t=null,null===i?t:null===t?i:[i,t]}},Ee=null,Oe=null,Se=null;function Te(e){if(e=w(e)){"function"!=typeof Ee&&a("280");var t=x(e.stateNode);Ee(e.stateNode,e.type,t)}}function Ne(e){Oe?Se?Se.push(e):Se=[e]:Oe=e}function Me(){if(Oe){var e=Oe,t=Se;if(Se=Oe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Le(e,t){return e(t)}function Ae(e,t,n){return e(t,n)}function je(){}var Ie=!1;function Re(e,t){if(Ie)return e(t);Ie=!0;try{return Le(e,t)}finally{Ie=!1,(null!==Oe||null!==Se)&&(je(),Me())}}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 De(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function We(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ze(e){if(!X)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 Ue(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Be(e){e._valueTracker||(e._valueTracker=function(e){var t=Ue(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 Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ue(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ye=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xe=/^(.*)[\\\/]/,Ge="function"==typeof Symbol&&Symbol.for,qe=Ge?Symbol.for("react.element"):60103,He=Ge?Symbol.for("react.portal"):60106,Ke=Ge?Symbol.for("react.fragment"):60107,$e=Ge?Symbol.for("react.strict_mode"):60108,Ze=Ge?Symbol.for("react.profiler"):60114,Qe=Ge?Symbol.for("react.provider"):60109,Je=Ge?Symbol.for("react.context"):60110,et=Ge?Symbol.for("react.concurrent_mode"):60111,tt=Ge?Symbol.for("react.forward_ref"):60112,nt=Ge?Symbol.for("react.suspense"):60113,rt=Ge?Symbol.for("react.memo"):60115,ot=Ge?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function lt(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 et:return"ConcurrentMode";case Ke:return"Fragment";case He:return"Portal";case Ze:return"Profiler";case $e:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Je:return"Context.Consumer";case Qe:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return lt(e.type);case ot:if(e=1===e._status?e._result:null)return lt(e)}return null}function st(e){var t="";do{e:switch(e.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=e._debugOwner,r=e._debugSource,o=lt(e.type),i=null;n&&(i=lt(n.type)),n=o,o="",r?o=" (at "+r.fileName.replace(Xe,"")+":"+r.lineNumber+")":i&&(o=" (created by "+i+")"),i="\n in "+(n||"Unknown")+o;break e;default:i=""}t+=i,e=e.return}while(e);return t}var ut=/^[: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]*$/,ct=Object.prototype.hasOwnProperty,pt={},ft={};function dt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var gt=/[\-:]([a-z])/g;function mt(e){return e[1].toUpperCase()}function yt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[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!!ct.call(ft,e)||!ct.call(pt,e)&&(ut.test(e)?ft[e]=!0:(pt[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 vt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(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 _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=vt(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 xt(e,t){null!=(t=t.checked)&&yt(e,"checked",t,!1)}function wt(e,t){xt(e,t);var n=vt(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")?Pt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pt(e,t.type,vt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(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 Pt(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(gt,mt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ht.tabIndex=new dt("tabIndex",1,!1,"tabindex",null);var Ct={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Et(e,t,n){return(e=se.getPooled(Ct.change,e,t,n)).type="change",Ne(n),Y(e),e}var Ot=null,St=null;function Tt(e){M(e)}function Nt(e){if(Ve(F(e)))return e}function Mt(e,t){if("change"===e)return t}var Lt=!1;function At(){Ot&&(Ot.detachEvent("onpropertychange",jt),St=Ot=null)}function jt(e){"value"===e.propertyName&&Nt(St)&&Re(Tt,e=Et(St,e,We(e)))}function It(e,t,n){"focus"===e?(At(),St=n,(Ot=t).attachEvent("onpropertychange",jt)):"blur"===e&&At()}function Rt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Nt(St)}function Ft(e,t){if("click"===e)return Nt(t)}function Dt(e,t){if("input"===e||"change"===e)return Nt(t)}X&&(Lt=ze("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:Ct,_isInputEventSupported:Lt,extractEvents:function(e,t,n,r){var o=t?F(t):window,i=void 0,a=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?i=Mt:De(o)?Lt?i=Dt:(i=Rt,a=It):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Ft),i&&(i=i(e,t)))return Et(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pt(o,"number",o.value)}},zt=se.extend({view:null,detail:null}),Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ut[e])&&!!t[e]}function Vt(){return Bt}var Yt=0,Xt=0,Gt=!1,qt=!1,Ht=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,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=Yt;return Yt=e.screenX,Gt?"mousemove"===e.type?e.screenX-t:0:(Gt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xt;return Xt=e.screenY,qt?"mousemove"===e.type?e.screenY-t:0:(qt=!0,0)}}),Kt=Ht.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$t={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Zt={eventTypes:$t,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,l=void 0,s=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Ht,l=$t.mouseLeave,s=$t.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Kt,l=$t.pointerLeave,s=$t.pointerEnter,u="pointer");var c=null==i?o:F(i);if(o=null==t?o:F(t),(e=a.getPooled(l,i,n,r)).type=u+"leave",e.target=c,e.relatedTarget=o,(n=a.getPooled(s,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=W(a))u++;for(a=0,s=o;s;s=W(s))a++;for(;0<u-a;)t=W(t),u--;for(;0<a-u;)o=W(o),a--;for(;u--;){if(t===o||t===o.alternate)break e;t=W(t),o=W(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(u=i.alternate)||u!==o);)t.push(i),i=W(i);for(i=[];r&&r!==o&&(null===(u=r.alternate)||u!==o);)i.push(r),r=W(r);for(r=0;r<t.length;r++)B(t[r],"bubbled",e);for(r=i.length;0<r--;)B(i[r],"captured",n);return[e,n]}},Qt=Object.prototype.hasOwnProperty;function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(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(!Qt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(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 nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var l=o.child;l;){if(l===n)return nn(o),e;if(l===r)return nn(o),t;l=l.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{l=!1;for(var s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}l||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),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}var on=se.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=se.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=zt.extend({relatedTarget:null});function sn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={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"},pn=zt.extend({key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=sn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?sn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?sn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),fn=Ht.extend({dataTransfer:null}),dn=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),hn=se.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),gn=Ht.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}),mn=[["abort","abort"],[Z,"animationEnd"],[Q,"animationIteration"],[J,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],yn={},vn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},yn[e]=t,vn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),mn.forEach(function(e){bn(e,!1)});var _n={eventTypes:yn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=vn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=vn[e];if(!o)return null;switch(e){case"keypress":if(0===sn(n))return null;case"keydown":case"keyup":e=pn;break;case"blur":case"focus":e=ln;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=Ht;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case Z:case Q:case J:e=on;break;case ee:e=hn;break;case"scroll":e=zt;break;case"wheel":e=gn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Kt;break;default:e=se}return Y(t=e.getPooled(o,t,n,r)),t}},xn=_n.isInteractiveTopLevelEventType,wn=[];function kn(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=We(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,l=0;l<y.length;l++){var s=y[l];s&&(s=s.extractEvents(r,t,i,o))&&(a=C(a,s))}M(a)}}var Pn=!0;function Cn(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!1)}function En(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!0)}function On(e,t){Ae(Sn,e,t)}function Sn(e,t){if(Pn){var n=We(t);if(null===(n=I(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),wn.length){var r=wn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Re(kn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>wn.length&&wn.push(e)}}}var Tn={},Nn=0,Mn="_reactListenersID"+(""+Math.random()).slice(2);function Ln(e){return Object.prototype.hasOwnProperty.call(e,Mn)||(e[Mn]=Nn++,Tn[e[Mn]]={}),Tn[e[Mn]]}function An(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 jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n,r=jn(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=jn(r)}}function Rn(){for(var e=window,t=An();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=An(e.document)}return t}function Fn(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 Dn=X&&"documentMode"in document&&11>=document.documentMode,Wn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Un=null,Bn=null,Vn=!1;function Yn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vn||null==zn||zn!==An(n)?null:("selectionStart"in(n=zn)&&Fn(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},Bn&&en(Bn,n)?null:(Bn=n,(e=se.getPooled(Wn.select,Un,e,t)).type="select",e.target=zn,Y(e),e))}var Xn={eventTypes:Wn,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=Ln(i),o=_.onSelect;for(var a=0;a<o.length;a++){var l=o[a];if(!i.hasOwnProperty(l)||!i[l]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?F(t):window,e){case"focus":(De(i)||"true"===i.contentEditable)&&(zn=i,Un=t,Bn=null);break;case"blur":Bn=Un=zn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Yn(n,r);case"selectionchange":if(Dn)break;case"keydown":case"keyup":return Yn(n,r)}return null}};function Gn(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 qn(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=""+vt(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 Hn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:vt(n)}}function $n(e,t){var n=vt(t.value),r=vt(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 Zn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}T.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=D,w=R,k=F,T.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Zt,ChangeEventPlugin:Wt,SelectEventPlugin:Xn,BeforeInputEventPlugin:Ce});var Qn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jn(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 er(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tr,nr=void 0,rr=(tr=function(e,t){if(e.namespaceURI!==Qn.svg||"innerHTML"in e)e.innerHTML=t;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return tr(e,t)})}:tr);function or(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 ir={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},ar=["Webkit","ms","Moz","O"];function lr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function sr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ir).forEach(function(e){ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});var ur=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 cr(e,t){t&&(ur[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function pr(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 fr(e,t){var n=Ln(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":En("scroll",e);break;case"focus":case"blur":En("focus",e),En("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ze(o)&&En(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&Cn(o,e)}n[o]=!0}}}function dr(){}var hr=null,gr=null;function mr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yr(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 vr="function"==typeof setTimeout?setTimeout:void 0,br="function"==typeof clearTimeout?clearTimeout:void 0;function _r(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function xr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var wr=[],kr=-1;function Pr(e){0>kr||(e.current=wr[kr],wr[kr]=null,kr--)}function Cr(e,t){wr[++kr]=e.current,e.current=t}var Er={},Or={current:Er},Sr={current:!1},Tr=Er;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Er;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 Mr(e){return null!=(e=e.childContextTypes)}function Lr(e){Pr(Sr),Pr(Or)}function Ar(e){Pr(Sr),Pr(Or)}function jr(e,t,n){Or.current!==Er&&a("168"),Cr(Or,t),Cr(Sr,n)}function Ir(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",lt(t)||"Unknown",i);return o({},n,r)}function Rr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Er,Tr=Or.current,Cr(Or,t),Cr(Sr,Sr.current),!0}function Fr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Ir(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=t,Pr(Sr),Pr(Or),Cr(Or,t)):Pr(Sr),Cr(Sr,n)}var Dr=null,Wr=null;function zr(e){return function(t){try{return e(t)}catch(e){}}}function Ur(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.firstContextDependency=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 Br(e,t,n,r){return new Ur(e,t,n,r)}function Vr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yr(e,t){var n=e.alternate;return null===n?((n=Br(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,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xr(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Vr(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Ke:return Gr(n.children,o,i,t);case et:return qr(n,3|o,i,t);case $e:return qr(n,2|o,i,t);case Ze:return(e=Br(12,n,t,4|o)).elementType=Ze,e.type=Ze,e.expirationTime=i,e;case nt:return(e=Br(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Qe:l=10;break e;case Je:l=9;break e;case tt:l=11;break e;case rt:l=14;break e;case ot:l=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=Br(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Gr(e,t,n,r){return(e=Br(7,e,r,t)).expirationTime=n,e}function qr(e,t,n,r){return e=Br(8,e,r,t),t=0==(1&t)?$e:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Hr(e,t,n){return(e=Br(6,e,null,t)).expirationTime=n,e}function Kr(e,t,n){return(t=Br(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $r(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),Jr(t,e)}function Zr(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),Jr(t,e)}function Qr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function Jr(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}var eo=!1;function to(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function no(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ro(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function oo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function io(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=to(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=to(e.memoizedState),o=n.updateQueue=to(n.memoizedState)):r=e.updateQueue=no(o):null===o&&(o=n.updateQueue=no(r));null===o||r===o?oo(r,t):null===r.lastUpdate||null===o.lastUpdate?(oo(r,t),oo(o,t)):(oo(r,t),o.lastUpdate=t)}function ao(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=to(e.memoizedState):lo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function lo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=no(t)),t}function so(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:eo=!0}return r}function uo(e,t,n,r,o){eo=!1;for(var i=(t=lo(e,t)).baseState,a=null,l=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;c<o?(null===a&&(a=s,i=u),l<c&&(l=c)):(u=so(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p<o?(null===c&&(c=s,null===a&&(i=u)),l<p&&(l=p)):(u=so(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===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=l,e.memoizedState=u}function co(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),po(t.firstEffect,n),t.firstEffect=t.lastEffect=null,po(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function po(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function fo(e,t){return{value:e,source:t,stack:st(t)}}var ho={current:null},go=null,mo=null,yo=null;function vo(e,t){var n=e.type._context;Cr(ho,n._currentValue),n._currentValue=t}function bo(e){var t=ho.current;Pr(ho),e.type._context._currentValue=t}function _o(e){go=e,yo=mo=null,e.firstContextDependency=null}function xo(e,t){return yo!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(yo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===mo?(null===go&&a("293"),go.firstContextDependency=mo=t):mo=mo.next=t),e._currentValue}var wo={},ko={current:wo},Po={current:wo},Co={current:wo};function Eo(e){return e===wo&&a("174"),e}function Oo(e,t){Cr(Co,t),Cr(Po,e),Cr(ko,wo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:er(null,"");break;default:t=er(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Pr(ko),Cr(ko,t)}function So(e){Pr(ko),Pr(Po),Pr(Co)}function To(e){Eo(Co.current);var t=Eo(ko.current),n=er(t,e.type);t!==n&&(Cr(Po,e),Cr(ko,n))}function No(e){Po.current===e&&(Pr(ko),Pr(Po))}function Mo(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 Lo=Ye.ReactCurrentOwner,Ao=(new r.Component).refs;function jo(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 Io={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Pa(),o=ro(r=$i(r,e));o.payload=t,null!=n&&(o.callback=n),Xi(),io(e,o),Ji(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Pa(),o=ro(r=$i(r,e));o.tag=1,o.payload=t,null!=n&&(o.callback=n),Xi(),io(e,o),Ji(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Pa(),r=ro(n=$i(n,e));r.tag=2,null!=t&&(r.callback=t),Xi(),io(e,r),Ji(e,n)}};function Ro(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function Fo(e,t,n){var r=!1,o=Er,i=t.contextType;return"object"==typeof i&&null!==i?i=Lo.currentDispatcher.readContext(i):(o=Mr(t)?Tr:Or.current,i=(r=null!=(r=t.contextTypes))?Nr(e,o):Er),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Io,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Do(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&&Io.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ao;var i=t.contextType;"object"==typeof i&&null!==i?o.context=Lo.currentDispatcher.readContext(i):(i=Mr(t)?Tr:Or.current,o.context=Nr(e,i)),null!==(i=e.updateQueue)&&(uo(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(jo(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&&Io.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(uo(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var zo=Array.isArray;function Uo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("289"),r=n.stateNode),r||a("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===Ao&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function Bo(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Vo(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=Yr(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 l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Hr(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=Uo(e,t,n),r.return=e,r):((r=Xr(n.type,n.key,n.props,null,e.mode,r)).ref=Uo(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=Kr(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=Gr(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=Hr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qe:return(n=Xr(t.type,t.key,t.props,null,e.mode,n)).ref=Uo(e,null,t),n.return=e,n;case He:return(t=Kr(t,e.mode,n)).return=e,t}if(zo(t)||at(t))return(t=Gr(t,e.mode,n,null)).return=e,t;Bo(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:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case qe:return n.key===o?n.type===Ke?p(e,t,n.props.children,r,o):u(e,t,n,r):null;case He:return n.key===o?c(e,t,n,r):null}if(zo(n)||at(n))return null!==o?null:p(e,t,n,r,null);Bo(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case qe:return e=e.get(null===r.key?n:r.key)||null,r.type===Ke?p(t,e,r.props.children,o,r.key):u(t,e,r,o);case He:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(zo(r)||at(r))return p(t,e=e.get(n)||null,r,o,null);Bo(t,r)}return null}function g(o,a,l,s){for(var u=null,c=null,p=a,g=a=0,m=null;null!==p&&g<l.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var y=d(o,p,l[g],s);if(null===y){null===p&&(p=m);break}e&&p&&null===y.alternate&&t(o,p),a=i(y,a,g),null===c?u=y:c.sibling=y,c=y,p=m}if(g===l.length)return n(o,p),u;if(null===p){for(;g<l.length;g++)(p=f(o,l[g],s))&&(a=i(p,a,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(o,p);g<l.length;g++)(m=h(p,o,g,l[g],s))&&(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,l,s,u){var c=at(s);"function"!=typeof c&&a("150"),null==(s=c.call(s))&&a("151");for(var p=c=null,g=l,m=l=0,y=null,v=s.next();null!==g&&!v.done;m++,v=s.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=d(o,g,v.value,u);if(null===b){g||(g=y);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===p?c=b:p.sibling=b,p=b,g=y}if(v.done)return n(o,g),c;if(null===g){for(;!v.done;m++,v=s.next())null!==(v=f(o,v.value,u))&&(l=i(v,l,m),null===p?c=v:p.sibling=v,p=v);return c}for(g=r(o,g);!v.done;m++,v=s.next())null!==(v=h(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),l=i(v,l,m),null===p?c=v:p.sibling=v,p=v);return e&&g.forEach(function(e){return t(o,e)}),c}return function(e,r,i,s){var u="object"==typeof i&&null!==i&&i.type===Ke&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case qe:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag?i.type===Ke:u.elementType===i.type){n(e,u.sibling),(r=o(u,i.type===Ke?i.props.children:i.props)).ref=Uo(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Ke?((r=Gr(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Xr(i.type,i.key,i.props,null,e.mode,s)).ref=Uo(e,r,i),s.return=e,e=s)}return l(e);case He: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=Kr(i,e.mode,s)).return=e,e=r}return l(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=Hr(i,e.mode,s)).return=e,e=r),l(e);if(zo(i))return g(e,r,i,s);if(at(i))return m(e,r,i,s);if(c&&Bo(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:a("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var Yo=Vo(!0),Xo=Vo(!1),Go=null,qo=null,Ho=!1;function Ko(e,t){var n=Br(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 $o(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);default:return!1}}function Zo(e){if(Ho){var t=qo;if(t){var n=t;if(!$o(e,t)){if(!(t=_r(n))||!$o(e,t))return e.effectTag|=2,Ho=!1,void(Go=e);Ko(Go,n)}Go=e,qo=xr(t)}else e.effectTag|=2,Ho=!1,Go=e}}function Qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Go=e}function Jo(e){if(e!==Go)return!1;if(!Ho)return Qo(e),Ho=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yr(t,e.memoizedProps))for(t=qo;t;)Ko(e,t),t=_r(t);return Qo(e),qo=Go?_r(e.stateNode):null,!0}function ei(){qo=Go=null,Ho=!1}var ti=Ye.ReactCurrentOwner;function ni(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Yo(t,e.child,n,r)}function ri(e,t,n,r,o){n=n.render;var i=t.ref;return _o(t),r=n(r,i),t.effectTag|=1,ni(e,t,r,o),t.child}function oi(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Vr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Xr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ii(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?fi(e,t,i):(t.effectTag|=1,(e=Yr(a,r)).ref=t.ref,e.return=t,t.child=e)}function ii(e,t,n,r,o,i){return null!==e&&o<i&&en(e.memoizedProps,r)&&e.ref===t.ref?fi(e,t,i):li(e,t,n,r,i)}function ai(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function li(e,t,n,r,o){var i=Mr(n)?Tr:Or.current;return i=Nr(t,i),_o(t),n=n(r,i),t.effectTag|=1,ni(e,t,n,o),t.child}function si(e,t,n,r,o){if(Mr(n)){var i=!0;Rr(t)}else i=!1;if(_o(t),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Fo(t,n,r),Wo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Lo.currentDispatcher.readContext(u):u=Nr(t,u=Mr(n)?Tr:Or.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Do(t,a,r,u),eo=!1;var f=t.memoizedState;s=a.state=f;var d=t.updateQueue;null!==d&&(uo(t,d,r,a,o),s=t.memoizedState),l!==r||f!==s||Sr.current||eo?("function"==typeof c&&(jo(t,n,c,r),s=t.memoizedState),(l=eo||Ro(t,n,l,r,f,s,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=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:Mo(t.type,l),s=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Lo.currentDispatcher.readContext(u):u=Nr(t,u=Mr(n)?Tr:Or.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Do(t,a,r,u),eo=!1,s=t.memoizedState,f=a.state=s,null!==(d=t.updateQueue)&&(uo(t,d,r,a,o),f=t.memoizedState),l!==r||s!==f||Sr.current||eo?("function"==typeof c&&(jo(t,n,c,r),f=t.memoizedState),(c=eo||Ro(t,n,l,r,s,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||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===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||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return ui(e,t,n,r,i,o)}function ui(e,t,n,r,o,i){ai(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Fr(t,n,!1),fi(e,t,i);r=t.stateNode,ti.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Yo(t,e.child,null,i),t.child=Yo(t,null,l,i)):ni(e,t,l,i),t.memoizedState=r.state,o&&Fr(t,n,!0),t.child}function ci(e){var t=e.stateNode;t.pendingContext?jr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jr(0,t.context,!1),Oo(e,t.containerInfo)}function pi(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=o.fallback,o=Gr(null,r,0,null),0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),r=Gr(a,r,n,null),o.sibling=r,(n=o).return=r.return=t):n=r=Xo(t,null,o.children,n):null!==e.memoizedState?(e=(r=e.child).sibling,a?(n=o.fallback,o=Yr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Yr(e,n,e.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=Yo(t,r.child,o.children,n)):(e=e.child,a?(a=o.fallback,(o=Gr(null,r,0,null)).child=e,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=Gr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=Yo(t,e,o.children,n)),t.memoizedState=i,t.child=n,r}function fi(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Yr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function di(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Sr.current&&r<n){switch(t.tag){case 3:ci(t),ei();break;case 5:To(t);break;case 1:Mr(t.type)&&Rr(t);break;case 4:Oo(t,t.stateNode.containerInfo);break;case 10:vo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?pi(e,t,n):null!==(t=fi(e,t,n))?t.sibling:null}return fi(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Nr(t,Or.current);if(_o(t),o=r(e,o),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Mr(r)){var i=!0;Rr(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&jo(t,r,l,e),o.updater=Io,t.stateNode=o,o._reactInternalFiber=t,Wo(t,r,e,n),t=ui(null,t,r,!0,i,n)}else t.tag=0,ni(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),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw 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._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return Vr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=Mo(e,i),l=void 0,o){case 0:l=li(null,t,e,i,n);break;case 1:l=si(null,t,e,i,n);break;case 11:l=ri(null,t,e,i,n);break;case 14:l=oi(null,t,e,Mo(e.type,i),r,n);break;default:a("283",e)}return l;case 0:return r=t.type,o=t.pendingProps,li(e,t,r,o=t.elementType===r?o:Mo(r,o),n);case 1:return r=t.type,o=t.pendingProps,si(e,t,r,o=t.elementType===r?o:Mo(r,o),n);case 3:return ci(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,uo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(ei(),t=fi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(qo=xr(t.stateNode.containerInfo),Go=t,o=Ho=!0),o?(t.effectTag|=2,t.child=Xo(t,null,r,n)):(ni(e,t,r,n),ei()),t=t.child),t;case 5:return To(t),null===e&&Zo(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,yr(r,o)?l=null:null!==i&&yr(r,i)&&(t.effectTag|=16),ai(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=1,t=null):(ni(e,t,l,n),t=t.child),t;case 6:return null===e&&Zo(t),null;case 13:return pi(e,t,n);case 4:return Oo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):ni(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ri(e,t,r,o=t.elementType===r?o:Mo(r,o),n);case 7:return ni(e,t,t.pendingProps,n),t.child;case 8:case 12:return ni(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,vo(t,i=o.value),null!==l){var s=l.value;if(0===(i=s===i&&(0!==s||1/s==1/i)||s!=s&&i!=i?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!Sr.current){t=fi(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){if(null!==(s=l.firstContextDependency))do{if(s.context===r&&0!=(s.observedBits&i)){if(1===l.tag){var u=ro(n);u.tag=2,io(l,u)}l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n);for(var c=l.return;null!==c;){if(u=c.alternate,c.childExpirationTime<n)c.childExpirationTime=n,null!==u&&u.childExpirationTime<n&&(u.childExpirationTime=n);else{if(!(null!==u&&u.childExpirationTime<n))break;u.childExpirationTime=n}c=c.return}}u=l.child,s=s.next}while(null!==s);else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}}ni(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,_o(t),r=r(o=xo(o,i.unstable_observedBits)),t.effectTag|=1,ni(e,t,r,n),t.child;case 14:return oi(e,t,o=t.type,i=Mo(o.type,t.pendingProps),r,n);case 15:return ii(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Mr(r)?(e=!0,Rr(t)):e=!1,_o(t),Fo(t,r,o),Wo(t,r,o,n),ui(null,t,r,!0,e,n);default:a("156")}}function hi(e){e.effectTag|=4}var gi=void 0,mi=void 0,yi=void 0,vi=void 0;function bi(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=st(n)),null!==n&<(n.type),t=t.value,null!==e&&1===e.tag&<(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function _i(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ki(e,t)}else t.current=null}function xi(e){switch("function"==typeof Wr&&Wr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(null!==r){var o=e;try{r()}catch(e){Ki(o,e)}}n=n.next}while(n!==t)}break;case 1:if(_i(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ki(e,t)}break;case 5:_i(e);break;case 4:Pi(e)}}function wi(e){return 5===e.tag||3===e.tag||4===e.tag}function ki(e){e:{for(var t=e.return;null!==t;){if(wi(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==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;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,l=o.stateNode,s=n;8===i.nodeType?i.parentNode.insertBefore(l,s):i.insertBefore(l,s)}else t.insertBefore(o.stateNode,n);else r?(l=t,s=o.stateNode,8===l.nodeType?(i=l.parentNode).insertBefore(s,l):(i=l).appendChild(s),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=dr)):t.appendChild(o.stateNode);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 Pi(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,l=i;;)if(xi(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===i)break;for(;null===l.sibling;){if(null===l.return||l.return===i)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(i=r,l=t.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,o=!0):xi(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ci(e,t){switch(t.tag){case 0:case 11:case 14:case 15: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&&xt(n,r),pr(e,o),t=pr(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?sr(n,s):"dangerouslySetInnerHTML"===l?rr(n,s):"children"===l?or(n,s):yt(n,l,s,t)}switch(e){case"input":wt(n,r);break;case"textarea":$n(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?qn(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?qn(n,!!r.multiple,r.defaultValue,!0):qn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(e=t,null===(n=t.memoizedState)?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Pa())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,e.style.display=lr("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){(e=t.child.sibling).return=t,t=e;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break e;for(;null===t.sibling;){if(null===t.return||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}break;case 17:break;default:a("163")}}function Ei(e,t,n){(n=ro(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ja(r),bi(e,t)},n}function Oi(e,t,n){(n=ro(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vi?Vi=new Set([this]):Vi.add(this));var n=t.value,o=t.stack;bi(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Si(e){switch(e.tag){case 1:Mr(e.type)&&Lr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return So(),Ar(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return No(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 4:return So(),null;case 10:return bo(e),null;default:return null}}gi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},mi=function(){},yi=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l=t.stateNode;switch(Eo(ko.current),e=null,n){case"input":a=bt(l,a),r=bt(l,r),e=[];break;case"option":a=Gn(l,a),r=Gn(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Hn(l,a),r=Hn(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=dr)}cr(n,r),l=n=void 0;var s=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(l in u)u.hasOwnProperty(l)&&(s||(s={}),s[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.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(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(s||(s={}),s[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(s||(s={}),s[l]=c[l])}else s||(e||(e=[]),e.push(n,s)),s=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&&(b.hasOwnProperty(n)?(null!=c&&fr(i,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&hi(t)}},vi=function(e,t,n,r){n!==r&&hi(t)};var Ti={readContext:xo},Ni=Ye.ReactCurrentOwner,Mi=1073741822,Li=0,Ai=!1,ji=null,Ii=null,Ri=0,Fi=-1,Di=!1,Wi=null,zi=!1,Ui=null,Bi=null,Vi=null;function Yi(){if(null!==ji)for(var e=ji.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Lr();break;case 3:So(),Ar();break;case 5:No(t);break;case 4:So();break;case 10:bo(t)}e=e.return}Ii=null,Ri=0,Fi=-1,Di=!1,ji=null}function Xi(){null!==Bi&&(i.unstable_cancelCallback(Ui),Bi())}function Gi(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){ji=e;e:{var i=t,l=Ri,s=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Mr(t.type)&&Lr();break;case 3:So(),Ar(),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==i&&null!==i.child||(Jo(t),t.effectTag&=-3),mi(t);break;case 5:No(t);var u=Eo(Co.current);if(l=t.type,null!==i&&null!=t.stateNode)yi(i,t,l,s,u),i.ref!==t.ref&&(t.effectTag|=128);else if(s){var c=Eo(ko.current);if(Jo(t)){i=(s=t).stateNode;var p=s.type,f=s.memoizedProps,d=u;switch(i[A]=s,i[j]=f,l=void 0,u=p){case"iframe":case"object":Cn("load",i);break;case"video":case"audio":for(p=0;p<te.length;p++)Cn(te[p],i);break;case"source":Cn("error",i);break;case"img":case"image":case"link":Cn("error",i),Cn("load",i);break;case"form":Cn("reset",i),Cn("submit",i);break;case"details":Cn("toggle",i);break;case"input":_t(i,f),Cn("invalid",i),fr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!f.multiple},Cn("invalid",i),fr(d,"onChange");break;case"textarea":Kn(i,f),Cn("invalid",i),fr(d,"onChange")}for(l in cr(u,f),p=null,f)f.hasOwnProperty(l)&&(c=f[l],"children"===l?"string"==typeof c?i.textContent!==c&&(p=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(p=["children",""+c]):b.hasOwnProperty(l)&&null!=c&&fr(d,l));switch(u){case"input":Be(i),kt(i,f,!0);break;case"textarea":Be(i),Zn(i);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(i.onclick=dr)}l=p,s.updateQueue=l,(s=null!==l)&&hi(t)}else{f=t,i=l,d=s,p=9===u.nodeType?u:u.ownerDocument,c===Qn.html&&(c=Jn(i)),c===Qn.html?"script"===i?((i=p.createElement("div")).innerHTML="<script><\/script>",p=i.removeChild(i.firstChild)):"string"==typeof d.is?p=p.createElement(i,{is:d.is}):(p=p.createElement(i),"select"===i&&d.multiple&&(p.multiple=!0)):p=p.createElementNS(c,i),(i=p)[A]=f,i[j]=s,gi(i,t,!1,!1),d=i;var h=u,g=pr(p=l,f=s);switch(p){case"iframe":case"object":Cn("load",d),u=f;break;case"video":case"audio":for(u=0;u<te.length;u++)Cn(te[u],d);u=f;break;case"source":Cn("error",d),u=f;break;case"img":case"image":case"link":Cn("error",d),Cn("load",d),u=f;break;case"form":Cn("reset",d),Cn("submit",d),u=f;break;case"details":Cn("toggle",d),u=f;break;case"input":_t(d,f),u=bt(d,f),Cn("invalid",d),fr(h,"onChange");break;case"option":u=Gn(d,f);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},u=o({},f,{value:void 0}),Cn("invalid",d),fr(h,"onChange");break;case"textarea":Kn(d,f),u=Hn(d,f),Cn("invalid",d),fr(h,"onChange");break;default:u=f}cr(p,u),c=void 0;var m=p,y=d,v=u;for(c in v)if(v.hasOwnProperty(c)){var _=v[c];"style"===c?sr(y,_):"dangerouslySetInnerHTML"===c?null!=(_=_?_.__html:void 0)&&rr(y,_):"children"===c?"string"==typeof _?("textarea"!==m||""!==_)&&or(y,_):"number"==typeof _&&or(y,""+_):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=_&&fr(h,c):null!=_&&yt(y,c,_,g))}switch(p){case"input":Be(d),kt(d,f,!1);break;case"textarea":Be(d),Zn(d);break;case"option":null!=f.value&&d.setAttribute("value",""+vt(f.value));break;case"select":(u=d).multiple=!!f.multiple,null!=(d=f.value)?qn(u,!!f.multiple,d,!1):null!=f.defaultValue&&qn(u,!!f.multiple,f.defaultValue,!0);break;default:"function"==typeof u.onClick&&(d.onclick=dr)}(s=mr(l,s))&&hi(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?vi(i,t,i.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&a("166")),i=Eo(Co.current),Eo(ko.current),Jo(t)?(l=(s=t).stateNode,i=s.memoizedProps,l[A]=s,(s=l.nodeValue!==i)&&hi(t)):(l=t,(s=(9===i.nodeType?i:i.ownerDocument).createTextNode(s))[A]=t,l.stateNode=s));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=l,ji=t;break e}s=null!==s,l=null!==i&&null!==i.memoizedState,null!==i&&!s&&l&&(null!==(i=i.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(s!==l||0==(1&t.effectTag)&&s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:So(),mi(t);break;case 10:bo(t);break;case 9:case 14:break;case 17:Mr(t.type)&&Lr();break;default:a("156")}ji=null}if(t=e,1===Ri||1!==t.childExpirationTime){for(s=0,l=t.child;null!==l;)(i=l.expirationTime)>s&&(s=i),(u=l.childExpirationTime)>s&&(s=u),l=l.sibling;t.childExpirationTime=s}if(null!==ji)return ji;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Si(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function qi(e){var t=di(e.alternate,e,Ri);return e.memoizedProps=e.pendingProps,null===t&&(t=Gi(e)),Ni.current=null,t}function Hi(e,t){Ai&&a("243"),Xi(),Ai=!0,Ni.currentDispatcher=Ti;var n=e.nextExpirationTimeToWorkOn;n===Ri&&e===Ii&&null!==ji||(Yi(),Ri=n,ji=Yr((Ii=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==ji&&!Sa();)ji=qi(ji);else for(;null!==ji;)ji=qi(ji)}catch(t){if(yo=mo=go=null,null===ji)r=!0,ja(t);else{null===ji&&a("271");var o=ji,i=o.return;if(null!==i){e:{var l=e,s=i,u=o,c=t;if(i=Ri,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var p=c;c=s;var f=-1,d=-1;do{if(13===c.tag){var h=c.alternate;if(null!==h&&null!==(h=h.memoizedState)){d=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=c.pendingProps.maxDuration)&&(0>=h?f=0:(-1===f||h<f)&&(f=h))}c=c.return}while(null!==c);c=s;do{if((h=13===c.tag)&&(h=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),h){if(s=Zi.bind(null,l,c,u,0==(1&c.mode)?1073741823:i),p.then(s,s),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&null===u.alternate&&(u.tag=17),u.expirationTime=i;break e}-1===f?l=1073741823:(-1===d&&(d=10*(1073741822-Qr(l,i))-5e3),l=d+f),0<=l&&Fi<l&&(Fi=l),c.effectTag|=2048,c.expirationTime=i;break e}c=c.return}while(null!==c);c=Error((lt(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."+st(u))}Di=!0,c=fo(c,u),l=s;do{switch(l.tag){case 3:u=c,l.effectTag|=2048,l.expirationTime=i,ao(l,i=Ei(l,u,i));break e;case 1:if(u=c,s=l.type,p=l.stateNode,0==(64&l.effectTag)&&("function"==typeof s.getDerivedStateFromError||null!==p&&"function"==typeof p.componentDidCatch&&(null===Vi||!Vi.has(p)))){l.effectTag|=2048,l.expirationTime=i,ao(l,i=Oi(l,u,i));break e}}l=l.return}while(null!==l)}ji=Gi(o);continue}r=!0,ja(t)}}break}if(Ai=!1,yo=mo=go=Ni.currentDispatcher=null,r)Ii=null,e.finishedWork=null;else if(null!==ji)e.finishedWork=null;else{if(null===(r=e.current.alternate)&&a("281"),Ii=null,Di){if(o=e.latestPendingTime,i=e.latestSuspendedTime,l=e.latestPingedTime,0!==o&&o<n||0!==i&&i<n||0!==l&&l<n)return Zr(e,n),void ka(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ka(e,r,n,t,-1)}t&&-1!==Fi?(Zr(e,n),(t=10*(1073741822-Qr(e,n)))<Fi&&(Fi=t),t=10*(1073741822-Pa()),t=Fi-t,ka(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Ki(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vi||!Vi.has(r)))return io(n,e=Oi(n,e=fo(t,e),1073741823)),void Ji(n,1073741823);break;case 3:return io(n,e=Ei(n,e=fo(t,e),1073741823)),void Ji(n,1073741823)}n=n.return}3===e.tag&&(io(e,n=Ei(e,n=fo(t,e),1073741823)),Ji(e,1073741823))}function $i(e,t){return 0!==Li?e=Li:Ai?e=zi?1073741823:Ri:1&t.mode?(e=da?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Ii&&e===Ri&&--e):e=1073741823,da&&(0===sa||e<sa)&&(sa=e),e}function Zi(e,t,n,r){var o=e.earliestSuspendedTime,i=e.latestSuspendedTime;if(0!==o&&r<=o&&r>=i){i=o=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>i)&&(e.latestPingedTime=i),Jr(i,e)}else $r(e,o=$i(o=Pa(),t));0!=(1&t.mode)&&e===Ii&&Ri===r&&(Ii=null),Qi(t,o),0==(1&t.mode)&&(Qi(n,o),1===n.tag&&null!==n.stateNode&&((t=ro(o)).tag=2,io(n,t))),0!==(n=e.expirationTime)&&Ca(e,n)}function Qi(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 o}function Ji(e,t){null!==(e=Qi(e,t))&&(!Ai&&0!==Ri&&t>Ri&&Yi(),$r(e,t),Ai&&!zi&&Ii===e||Ca(e,e.expirationTime),ba>va&&(ba=0,a("185")))}function ea(e,t,n,r,o){var i=Li;Li=1073741823;try{return e(t,n,r,o)}finally{Li=i}}var ta=null,na=null,ra=0,oa=void 0,ia=!1,aa=null,la=0,sa=0,ua=!1,ca=null,pa=!1,fa=!1,da=!1,ha=null,ga=i.unstable_now(),ma=1073741822-(ga/10|0),ya=ma,va=50,ba=0,_a=null;function xa(){ma=1073741822-((i.unstable_now()-ga)/10|0)}function wa(e,t){if(0!==ra){if(t<ra)return;null!==oa&&i.unstable_cancelCallback(oa)}ra=t,e=i.unstable_now()-ga,oa=i.unstable_scheduleCallback(Ta,{timeout:10*(1073741822-t)-e})}function ka(e,t,n,r,o){e.expirationTime=r,0!==o||Sa()?0<o&&(e.timeoutHandle=vr(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,xa(),ya=ma,Ma(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Pa(){return ia?ya:(Ea(),0!==la&&1!==la||(xa(),ya=ma),ya)}function Ca(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===na?(ta=na=e,e.nextScheduledRoot=e):(na=na.nextScheduledRoot=e).nextScheduledRoot=ta):t>e.expirationTime&&(e.expirationTime=t),ia||(pa?fa&&(aa=e,la=1073741823,La(e,1073741823,!1)):1073741823===t?Na(1073741823,!1):wa(e,t))}function Ea(){var e=0,t=null;if(null!==na)for(var n=na,r=ta;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===na)&&a("244"),r===r.nextScheduledRoot){ta=na=r.nextScheduledRoot=null;break}if(r===ta)ta=o=r.nextScheduledRoot,na.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===na){(na=n).nextScheduledRoot=ta,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===na)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}aa=t,la=e}var Oa=!1;function Sa(){return!!Oa||!!i.unstable_shouldYield()&&(Oa=!0)}function Ta(){try{if(!Sa()&&null!==ta){xa();var e=ta;do{var t=e.expirationTime;0!==t&&ma<=t&&(e.nextExpirationTimeToWorkOn=ma),e=e.nextScheduledRoot}while(e!==ta)}Na(0,!0)}finally{Oa=!1}}function Na(e,t){if(Ea(),t)for(xa(),ya=ma;null!==aa&&0!==la&&e<=la&&!(Oa&&ma>la);)La(aa,la,ma>la),Ea(),xa(),ya=ma;else for(;null!==aa&&0!==la&&e<=la;)La(aa,la,!1),Ea();if(t&&(ra=0,oa=null),0!==la&&wa(aa,la),ba=0,_a=null,null!==ha)for(e=ha,ha=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ua||(ua=!0,ca=e)}}if(ua)throw e=ca,ca=null,ua=!1,e}function Ma(e,t){ia&&a("253"),aa=e,la=t,La(e,t,!1),Na(1073741823,!1)}function La(e,t,n){if(ia&&a("245"),ia=!0,n){var r=e.finishedWork;null!==r?Aa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Hi(e,n),null!==(r=e.finishedWork)&&(Sa()?e.finishedWork=r:Aa(e,r,t)))}else null!==(r=e.finishedWork)?Aa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Hi(e,n),null!==(r=e.finishedWork)&&Aa(e,r,t));ia=!1}function Aa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===ha?ha=[r]:ha.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===_a?ba++:(_a=e,ba=0),zi=Ai=!0,e.current===t&&a("177"),0===(n=e.pendingCommitExpirationTime)&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var o=t.childExpirationTime;if(r=o>r?o:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(o=e.latestPendingTime)&&(o>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),0===(o=e.earliestSuspendedTime)?$r(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,$r(e,r)):r>o&&$r(e,r)),Jr(0,e),Ni.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,hr=Pn,Fn(o=Rn())){if("selectionStart"in o)var i={start:o.selectionStart,end:o.selectionEnd};else e:{var l=(i=(i=o.ownerDocument)&&i.defaultView||window).getSelection&&i.getSelection();if(l&&0!==l.rangeCount){i=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{i.nodeType,u.nodeType}catch(e){i=null;break e}var c=0,p=-1,f=-1,d=0,h=0,g=o,m=null;t:for(;;){for(var y;g!==i||0!==s&&3!==g.nodeType||(p=c+s),g!==u||0!==l&&3!==g.nodeType||(f=c+l),3===g.nodeType&&(c+=g.nodeValue.length),null!==(y=g.firstChild);)m=g,g=y;for(;;){if(g===o)break t;if(m===i&&++d===s&&(p=c),m===u&&++h===l&&(f=c),null!==(y=g.nextSibling))break;m=(g=m).parentNode}g=y}i=-1===p||-1===f?null:{start:p,end:f}}else i=null}i=i||{start:0,end:0}}else i=null;for(gr={focusedElem:o,selectionRange:i},Pn=!1,Wi=r;null!==Wi;){o=!1,i=void 0;try{for(;null!==Wi;){if(256&Wi.effectTag)e:{var v=Wi.alternate;switch((s=Wi).tag){case 0:case 11:case 15:break e;case 1:if(256&s.effectTag&&null!==v){var b=v.memoizedProps,_=v.memoizedState,x=s.stateNode,w=x.getSnapshotBeforeUpdate(s.elementType===s.type?b:Mo(s.type,b),_);x.__reactInternalSnapshotBeforeUpdate=w}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Wi=Wi.nextEffect}}catch(e){o=!0,i=e}o&&(null===Wi&&a("178"),Ki(Wi,i),null!==Wi&&(Wi=Wi.nextEffect))}for(Wi=r;null!==Wi;){v=!1,b=void 0;try{for(;null!==Wi;){var k=Wi.effectTag;if(16&k&&or(Wi.stateNode,""),128&k){var P=Wi.alternate;if(null!==P){var C=P.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(14&k){case 2:ki(Wi),Wi.effectTag&=-3;break;case 6:ki(Wi),Wi.effectTag&=-3,Ci(Wi.alternate,Wi);break;case 4:Ci(Wi.alternate,Wi);break;case 8:Pi(_=Wi),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}Wi=Wi.nextEffect}}catch(e){v=!0,b=e}v&&(null===Wi&&a("178"),Ki(Wi,b),null!==Wi&&(Wi=Wi.nextEffect))}if(C=gr,P=Rn(),k=C.focusedElem,b=C.selectionRange,P!==k&&k&&k.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))))}(k.ownerDocument.documentElement,k)){null!==b&&Fn(k)&&(P=b.start,void 0===(C=b.end)&&(C=P),"selectionStart"in k?(k.selectionStart=P,k.selectionEnd=Math.min(C,k.value.length)):(C=(P=k.ownerDocument||document)&&P.defaultView||window).getSelection&&(C=C.getSelection(),_=k.textContent.length,v=Math.min(b.start,_),b=void 0===b.end?v:Math.min(b.end,_),!C.extend&&v>b&&(_=b,b=v,v=_),_=In(k,v),x=In(k,b),_&&x&&(1!==C.rangeCount||C.anchorNode!==_.node||C.anchorOffset!==_.offset||C.focusNode!==x.node||C.focusOffset!==x.offset)&&((P=P.createRange()).setStart(_.node,_.offset),C.removeAllRanges(),v>b?(C.addRange(P),C.extend(x.node,x.offset)):(P.setEnd(x.node,x.offset),C.addRange(P))))),P=[];for(C=k;C=C.parentNode;)1===C.nodeType&&P.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<P.length;k++)(C=P[k]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(gr=null,Pn=!!hr,hr=null,e.current=t,Wi=r;null!==Wi;){r=!1,k=void 0;try{for(P=n;null!==Wi;){var E=Wi.effectTag;if(36&E){var O=Wi.alternate;switch(v=P,(C=Wi).tag){case 0:case 11:case 15:break;case 1:var S=C.stateNode;if(4&C.effectTag)if(null===O)S.componentDidMount();else{var T=C.elementType===C.type?O.memoizedProps:Mo(C.type,O.memoizedProps);S.componentDidUpdate(T,O.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var N=C.updateQueue;null!==N&&co(0,N,S);break;case 3:var M=C.updateQueue;if(null!==M){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}co(0,M,b)}break;case 5:var L=C.stateNode;null===O&&4&C.effectTag&&mr(C.type,C.memoizedProps)&&L.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&E){var A=Wi.ref;if(null!==A){var j=Wi.stateNode;switch(Wi.tag){case 5:var I=j;break;default:I=j}"function"==typeof A?A(I):A.current=I}}Wi=Wi.nextEffect}}catch(e){r=!0,k=e}r&&(null===Wi&&a("178"),Ki(Wi,k),null!==Wi&&(Wi=Wi.nextEffect))}Ai=zi=!1,"function"==typeof Dr&&Dr(t.stateNode),E=t.expirationTime,0===(t=(t=t.childExpirationTime)>E?t:E)&&(Vi=null),e.expirationTime=t,e.finishedWork=null}function ja(e){null===aa&&a("246"),aa.expirationTime=0,ua||(ua=!0,ca=e)}function Ia(e,t){var n=pa;pa=!0;try{return e(t)}finally{(pa=n)||ia||Na(1073741823,!1)}}function Ra(e,t){if(pa&&!fa){fa=!0;try{return e(t)}finally{fa=!1}}return e(t)}function Fa(e,t,n){if(da)return e(t,n);pa||ia||0===sa||(Na(sa,!1),sa=0);var r=da,o=pa;pa=da=!0;try{return e(t,n)}finally{da=r,(pa=o)||ia||Na(1073741823,!1)}}function Da(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Mr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);a("171"),l=void 0}if(1===n.tag){var s=n.type;if(Mr(s)){n=Ir(n,s,l);break e}}n=l}else n=Er;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=ro(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Xi(),io(i,o),Ji(i,r),r}function Wa(e,t,n,r){var o=t.current;return Da(e,t,n,o=$i(Pa(),o),r)}function za(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ua(e){var t=1073741822-25*(1+((1073741822-Pa()+500)/25|0));t>=Mi&&(t=Mi-1),this._expirationTime=Mi=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ba(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Va(e,t,n){e={current:t=Br(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ya(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xa(e,t,n,r,o){Ya(n)||a("200");var i=n._reactRootContainer;if(i){if("function"==typeof o){var l=o;o=function(){var e=za(i._internalRoot);l.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,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 Va(e,!1,t)}(n,r),"function"==typeof o){var s=o;o=function(){var e=za(i._internalRoot);s.call(e)}}Ra(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return za(i._internalRoot)}function Ga(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ya(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:He,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ee=function(e,t,n){switch(t){case"input":if(wt(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=D(r);o||a("90"),Ve(r),wt(r,o)}}}break;case"textarea":$n(e,n);break;case"select":null!=(t=n.value)&&qn(e,!!n.multiple,t,!1)}},Ua.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Ba;return Da(e,t,null,n,r._onCommit),r},Ua.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ua.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),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;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ma(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ua.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])()}},Ba.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ba.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];"function"!=typeof n&&a("191",n),n()}}},Va.prototype.render=function(e,t){var n=this._internalRoot,r=new Ba;return null!==(t=void 0===t?null:t)&&r.then(t),Wa(e,n,null,r._onCommit),r},Va.prototype.unmount=function(e){var t=this._internalRoot,n=new Ba;return null!==(e=void 0===e?null:e)&&n.then(e),Wa(null,t,null,n._onCommit),n},Va.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Ba;return null!==(n=void 0===n?null:n)&&o.then(n),Wa(t,r,e,o._onCommit),o},Va.prototype.createBatch=function(){var e=new Ua(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},Le=Ia,Ae=Fa,je=function(){ia||0===sa||(Na(sa,!1),sa=0)};var qa={createPortal:Ga,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Xa(null,e,t,!0,n)},render:function(e,t,n){return Xa(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&a("38"),Xa(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ya(e)||a("40"),!!e._reactRootContainer&&(Ra(function(){Xa(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ga.apply(void 0,arguments)},unstable_batchedUpdates:Ia,unstable_interactiveUpdates:Fa,flushSync:function(e,t){ia&&a("187");var n=pa;pa=!0;try{return ea(e,t)}finally{pa=n,Na(1073741823,!1)}},unstable_flushControlled:function(e){var t=pa;pa=!0;try{ea(e)}finally{(pa=t)||ia||Na(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,F,D,T.injectEventPluginsByName,v,Y,function(e){E(e,V)},Ne,Me,Sn,M]},unstable_createRoot:function(e,t){return Ya(e)||a("299","unstable_createRoot"),new Va(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.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);Dr=zr(function(e){return t.onCommitFiberRoot(n,e)}),Wr=zr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(o({},e,{findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:I,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var Ha={default:qa},Ka=Ha&&qa||Ha;e.exports=Ka.default||Ka},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";(function(e){
- /** @license React v0.11.3
- * 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 n=null,r=!1,o=3,i=-1,a=-1,l=!1,s=!1;function u(){if(!l){var e=n.expirationTime;s?k():s=!0,w(f,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,l=a;o=e,a=t;try{var s=r()}finally{o=i,a=l}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=s.next=s.previous=s;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,u()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function p(){if(-1===i&&null!==n&&1===n.priorityLevel){l=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?u():s=!1}}}function f(e){l=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!P())}finally{l=!1,r=o,null!==n?u():s=!1,p()}}var d,h,g=Date,m="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,v="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){d=v(function(t){y(h),e(t)}),h=m(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return g.now()};var w,k,P,C=null;if("undefined"!=typeof window?C=window:void 0!==e&&(C=e),C&&C._schedMock){var E=C._schedMock;w=E[0],k=E[1],P=E[2],t.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,S=function(e){if(null!==O)try{O(e)}finally{O=null}};w=function(e){null!==O?setTimeout(w,0,e):(O=e,setTimeout(S,0,!1))},k=function(){O=null},P=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof v&&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 b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var T=null,N=!1,M=-1,L=!1,A=!1,j=0,I=33,R=33;P=function(){return j<=t.unstable_now()};var F=new MessageChannel,D=F.port2;F.port1.onmessage=function(){N=!1;var e=T,n=M;T=null,M=-1;var r=t.unstable_now(),o=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return L||(L=!0,_(W)),T=e,void(M=n);o=!0}if(null!==e){A=!0;try{e(o)}finally{A=!1}}};var W=function(e){if(null!==T){_(W);var t=e-j+R;t<R&&I<R?(8>t&&(t=8),R=t<I?I:t):I=t,j=e+R,N||(N=!0,D.postMessage(void 0))}else L=!1};w=function(e,t){T=e,M=t,A||0>t?D.postMessage(void 0):L||(L=!0,_(W))},k=function(){T=null,N=!1,M=-1}}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,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,p()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{a=null;var l=n;do{if(l.expirationTime>r){a=l;break}l=l.next}while(l!==n);null===a?a=n:a===n&&(n=e,u()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,p()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||P())}}).call(this,n(8))},function(e,t,n){(function(e,r){var o;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright JS Foundation and other contributors <https://js.foundation/>
- * 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,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,d=2,h=4,g=1,m=2,y=1,v=2,b=4,_=8,x=16,w=32,k=64,P=128,C=256,E=512,O=30,S="...",T=800,N=16,M=1,L=2,A=1/0,j=9007199254740991,I=1.7976931348623157e308,R=NaN,F=4294967295,D=F-1,W=F>>>1,z=[["ary",P],["bind",y],["bindKey",v],["curry",_],["curryRight",x],["flip",E],["partial",w],["partialRight",k],["rearg",C]],U="[object Arguments]",B="[object Array]",V="[object AsyncFunction]",Y="[object Boolean]",X="[object Date]",G="[object DOMException]",q="[object Error]",H="[object Function]",K="[object GeneratorFunction]",$="[object Map]",Z="[object Number]",Q="[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]",le="[object WeakSet]",se="[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]",ye="[object Uint16Array]",ve="[object Uint32Array]",be=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Pe=RegExp(we.source),Ce=RegExp(ke.source),Ee=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Le.source),je=/^\s+|\s+$/g,Ie=/^\s+/,Re=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Qe="\\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="["+Qe+"]",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]",lt="\\ud83c[\\udffb-\\udfff]",st="[^\\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+"|"+lt+")"+"?",gt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[st,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,ut,ct].join("|")+")"+gt,yt="(?:"+[st+nt+"?",nt,ut,ct,et].join("|")+")",vt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(lt+"(?="+lt+")|"+yt+gt,"g"),xt=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"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\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 ]/,Pt=["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,Et={};Et[ce]=Et[pe]=Et[fe]=Et[de]=Et[he]=Et[ge]=Et[me]=Et[ye]=Et[ve]=!0,Et[U]=Et[B]=Et[se]=Et[Y]=Et[ue]=Et[X]=Et[q]=Et[H]=Et[$]=Et[Z]=Et[J]=Et[te]=Et[ne]=Et[re]=Et[ae]=!1;var Ot={};Ot[U]=Ot[B]=Ot[se]=Ot[ue]=Ot[Y]=Ot[X]=Ot[ce]=Ot[pe]=Ot[fe]=Ot[de]=Ot[he]=Ot[$]=Ot[Z]=Ot[J]=Ot[te]=Ot[ne]=Ot[re]=Ot[oe]=Ot[ge]=Ot[me]=Ot[ye]=Ot[ve]=!0,Ot[q]=Ot[H]=Ot[ae]=!1;var St={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Nt=parseInt,Mt="object"==typeof e&&e&&e.Object===Object&&e,Lt="object"==typeof self&&self&&self.Object===Object&&self,At=Mt||Lt||Function("return this")(),jt=t&&!t.nodeType&&t,It=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=It&&It.exports===jt,Ft=Rt&&Mt.process,Dt=function(){try{var e=It&&It.require&&It.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Wt=Dt&&Dt.isArrayBuffer,zt=Dt&&Dt.isDate,Ut=Dt&&Dt.isMap,Bt=Dt&&Dt.isRegExp,Vt=Dt&&Dt.isSet,Yt=Dt&&Dt.isTypedArray;function Xt(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 Gt(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 qt(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 Kt(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 Zt(e,t){return!!(null==e?0:e.length)&&sn(e,t,0)>-1}function Qt(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 ln(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 sn(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):ln(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:R}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 yn(e){return function(t){return e(t)}}function vn(e,t){return Jt(t,function(t){return e[t]})}function bn(e,t){return e.has(t)}function _n(e,t){for(var n=-1,r=e.length;++n<r&&sn(t,e[n],0)>-1;);return n}function xn(e,t){for(var n=e.length;n--&&sn(t,e[n],0)>-1;);return n}var wn=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 Pn(e){return"\\"+St[e]}function Cn(e){return wt.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function On(e,t){return function(n){return e(t(n))}}function Sn(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 Nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Mn(e){return Cn(e)?function(e){var t=_t.lastIndex=0;for(;_t.test(e);)++t;return t}(e):on(e)}function Ln(e){return Cn(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.split("")}(e)}var An=dn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var jn=function e(t){var n,r=(t=null==t?At:jn.defaults(At.Object(),t,jn.pick(At,Pt))).Array,o=t.Date,Qe=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,lt=tt.prototype,st=t["__core-js_shared__"],ut=at.toString,ct=lt.hasOwnProperty,pt=0,ft=(n=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=lt.toString,ht=ut.call(tt),gt=At._,mt=nt("^"+ut.call(ct).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Rt?t.Buffer:i,_t=t.Symbol,wt=t.Uint8Array,St=yt?yt.allocUnsafe:i,Mt=On(tt.getPrototypeOf,tt),Lt=tt.create,jt=lt.propertyIsEnumerable,It=it.splice,Ft=_t?_t.isConcatSpreadable:i,Dt=_t?_t.iterator:i,on=_t?_t.toStringTag:i,dn=function(){try{var e=Wi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),In=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,Rn=o&&o.now!==At.Date.now&&o.now,Fn=t.setTimeout!==At.setTimeout&&t.setTimeout,Dn=et.ceil,Wn=et.floor,zn=tt.getOwnPropertySymbols,Un=yt?yt.isBuffer:i,Bn=t.isFinite,Vn=it.join,Yn=On(tt.keys,tt),Xn=et.max,Gn=et.min,qn=o.now,Hn=t.parseInt,Kn=et.random,$n=it.reverse,Zn=Wi(t,"DataView"),Qn=Wi(t,"Map"),Jn=Wi(t,"Promise"),er=Wi(t,"Set"),tr=Wi(t,"WeakMap"),nr=Wi(tt,"create"),rr=tr&&new tr,or={},ir=pa(Zn),ar=pa(Qn),lr=pa(Jn),sr=pa(er),ur=pa(tr),cr=_t?_t.prototype:i,pr=cr?cr.valueOf:i,fr=cr?cr.toString:i;function dr(e){if(Sl(e)&&!yl(e)&&!(e instanceof yr)){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(!Ol(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 yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function vr(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 _r(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 xr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _r;++t<n;)this.add(e[t])}function wr(e){var t=this.__data__=new br(e);this.size=t.size}function kr(e,t){var n=yl(e),r=!n&&ml(e),o=!n&&!r&&xl(e),i=!n&&!r&&!o&&Rl(e),a=n||r||o||i,l=a?mn(e.length,rt):[],s=l.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)||Gi(u,s))||l.push(u);return l}function Pr(e){var t=e.length;return t?e[wo(0,t-1)]:i}function Cr(e,t){return sa(ri(e),jr(t,0,e.length))}function Er(e){return sa(ri(e))}function Or(e,t,n){(n===i||dl(e[t],n))&&(n!==i||t in e)||Lr(e,t,n)}function Sr(e,t,n){var r=e[t];ct.call(e,t)&&dl(r,n)&&(n!==i||t in e)||Lr(e,t,n)}function Tr(e,t){for(var n=e.length;n--;)if(dl(e[n][0],t))return n;return-1}function Nr(e,t,n,r){return Wr(e,function(e,o,i){t(r,e,n(e),i)}),r}function Mr(e,t){return e&&oi(t,os(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),l=null==e;++n<o;)a[n]=l?i:Jl(e,t[n]);return a}function jr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ir(e,t,n,r,o,a){var l,s=t&f,u=t&d,c=t&h;if(n&&(l=o?n(e,r,o,a):n(e)),l!==i)return l;if(!Ol(e))return e;var p=yl(e);if(p){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return ri(e,l)}else{var g=Bi(e),m=g==H||g==K;if(xl(e))return Zo(e,s);if(g==J||g==U||m&&!o){if(l=u||m?{}:Yi(e),!s)return u?function(e,t){return oi(e,Ui(e),t)}(e,function(e,t){return e&&oi(t,is(t),e)}(l,e)):function(e,t){return oi(e,zi(e),t)}(e,Mr(l,e))}else{if(!Ot[g])return o?e:{};l=function(e,t,n){var r,o,i,a=e.constructor;switch(t){case se:return Qo(e);case Y:case X:return new a(+e);case ue:return function(e,t){var n=t?Qo(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 ye:case ve:return Jo(e,n);case $:return new a;case Z:case re:return new a(e);case te:return(i=new(o=e).constructor(o.source,Ve.exec(o))).lastIndex=o.lastIndex,i;case ne:return new a;case oe:return r=e,pr?tt(pr.call(r)):{}}}(e,g,s)}}a||(a=new wr);var y=a.get(e);if(y)return y;if(a.set(e,l),Al(e))return e.forEach(function(r){l.add(Ir(r,t,n,r,e,a))}),l;if(Tl(e))return e.forEach(function(r,o){l.set(o,Ir(r,t,n,o,e,a))}),l;var v=p?i:(c?u?Li:Mi:u?is:os)(e);return qt(v||e,function(r,o){v&&(r=e[o=r]),Sr(l,o,Ir(r,t,n,o,e,a))}),l}function Rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],l=e[o];if(l===i&&!(o in e)||!a(l))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new ot(s);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Zt,l=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Jt(t,yn(n))),r?(i=Qt,l=!1):t.length>=a&&(i=bn,l=!1,t=new xr(t));e:for(;++o<s;){var p=e[o],f=null==n?p:n(p);if(p=r||0!==p?p:0,l&&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:Ee,evaluate:Oe,interpolate:Se,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,mr.prototype=hr(gr.prototype),mr.prototype.constructor=mr,yr.prototype=hr(gr.prototype),yr.prototype.constructor=yr,vr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},vr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vr.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},vr.prototype.has=function(e){var t=this.__data__;return nr?t[e]!==i:ct.call(t,e)},vr.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():It.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},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new vr,map:new(Qn||br),string:new vr}},_r.prototype.delete=function(e){var t=Fi(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return Fi(this,e).get(e)},_r.prototype.has=function(e){return Fi(this,e).has(e)},_r.prototype.set=function(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,u),this},xr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Qn||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _r(r)}return n.set(e,t),this.size=n.size,this};var Wr=li(qr),zr=li(Hr,!0);function Ur(e,t){var n=!0;return Wr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Br(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],l=t(a);if(null!=l&&(s===i?l==l&&!Il(l):n(l,s)))var s=l,u=a}return u}function Vr(e,t){var n=[];return Wr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Xi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?Yr(l,t-1,n,r,o):en(o,l):r||(o[o.length]=l)}return o}var Xr=si(),Gr=si(!0);function qr(e,t){return e&&Xr(e,t,os)}function Hr(e,t){return e&&Gr(e,t,os)}function Kr(e,t){return $t(t,function(t){return Pl(e[t])})}function $r(e,t){for(var n=0,r=(t=qo(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:i}function Zr(e,t,n){var r=t(e);return yl(e)?r:en(r,n(e))}function Qr(e){return null==e?e===i?ie:Q: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);return r&&(t?e[on]=n:delete e[on]),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?Qt:Zt,a=e[0].length,l=e.length,s=l,u=r(l),c=1/0,p=[];s--;){var f=e[s];s&&t&&(f=Jt(f,yn(t))),c=Gn(f.length,c),u[s]=!n&&(t||a>=120&&f.length>=120)?new xr(s&&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(s=l;--s;){var y=u[s];if(!(y?bn(y,m):o(e[s],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=qo(t,e)))?e:e[ca(ka(t))];return null==r?i:Xt(r,e,n)}function oo(e){return Sl(e)&&Qr(e)==U}function io(e,t,n,r,o){return e===t||(null==e||null==t||!Sl(e)&&!Sl(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var l=yl(e),s=yl(t),u=l?B:Bi(e),c=s?B:Bi(t),p=(u=u==U?J:u)==J,f=(c=c==U?J:c)==J,d=u==c;if(d&&xl(e)){if(!xl(t))return!1;l=!0,p=!1}if(d&&!p)return a||(a=new wr),l||Rl(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 se:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case Y:case X:case Z:return dl(+e,+t);case q:return e.name==t.name&&e.message==t.message;case te:case re:return e==t+"";case $:var l=En;case ne:var s=r&g;if(l||(l=Tn),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=m,a.set(e,t);var c=Ti(l(e),l(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__"),y=f&&ct.call(t,"__wrapped__");if(h||y){var v=h?e.value():e,b=y?t.value():t;return a||(a=new wr),o(v,b,n,r,a)}}return!!d&&(a||(a=new wr),function(e,t,n,r,o,a){var l=n&g,s=Mi(e),u=s.length,c=Mi(t).length;if(u!=c&&!l)return!1;for(var p=u;p--;){var f=s[p];if(!(l?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);for(var m=l;++p<u;){f=s[p];var y=e[f],v=t[f];if(r)var b=l?r(v,y,f,t,e,a):r(y,v,f,e,t,a);if(!(b===i?y===v||o(y,v,n,r,a):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(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,l=!r;if(null==e)return!a;for(e=tt(e);o--;){var s=n[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=n[o])[0],c=e[u],p=s[1];if(l&&s[2]){if(c===i&&!(u in e))return!1}else{var f=new wr;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 lo(e){return!(!Ol(e)||(t=e,ft&&ft in t))&&(Pl(e)?mt:Ge).test(pa(e));var t}function so(e){return"function"==typeof e?e:null==e?Ns:"object"==typeof e?yl(e)?go(e[0],e[1]):ho(e):Ws(e)}function uo(e){if(!Zi(e))return Yn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function co(e){if(!Ol(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Zi(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=bl(e)?r(e.length):[];return Wr(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)&&Qi(t)?Ji(ca(e),t):function(n){var r=Jl(n,e);return r===i&&r===t?es(n,e):io(t,r,g|m)}}function mo(e,t,n,r,o){e!==t&&Xr(t,function(a,l){if(Ol(a))o||(o=new wr),function(e,t,n,r,o,a,l){var s=na(e,n),u=na(t,n),c=l.get(u);if(c)Or(e,n,c);else{var p=a?a(s,u,n+"",e,t,l):i,f=p===i;if(f){var d=yl(u),h=!d&&xl(u),g=!d&&!h&&Rl(u);p=u,d||h||g?yl(s)?p=s:_l(s)?p=ri(s):h?(f=!1,p=Zo(u,!0)):g?(f=!1,p=Jo(u,!0)):p=[]:Ml(u)||ml(u)?(p=s,ml(s)?p=Yl(s):Ol(s)&&!Pl(s)||(p=Yi(u))):f=!1}f&&(l.set(u,p),o(p,u,r,a,l),l.delete(u)),Or(e,n,p)}}(e,t,l,n,mo,r,o);else{var s=r?r(na(e,l),a,l+"",e,t,o):i;s===i&&(s=a),Or(e,l,s)}},is)}function yo(e,t){var n=e.length;if(n)return Gi(t+=t<0?n:0,n)?e[t]:i}function vo(e,t,n){var r=-1;return t=Jt(t.length?t:[Ns],yn(Ri())),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){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=ei(o[r],i[r]);if(s){if(r>=l)return s;var u=n[r];return s*("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],l=$r(e,a);n(l,a)&&Oo(i,qo(a,e),l)}return i}function _o(e,t,n,r){var o=r?un:sn,i=-1,a=t.length,l=e;for(e===t&&(t=ri(t)),n&&(l=Jt(e,yn(n)));++i<a;)for(var s=0,u=t[i],c=n?n(u):u;(s=o(l,c,s,r))>-1;)l!==e&&It.call(l,s,1),It.call(e,s,1);return e}function xo(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;Gi(o)?It.call(e,o,1):Wo(e,o)}}return e}function wo(e,t){return e+Wn(Kn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Wn(t/2))&&(e+=e)}while(t);return n}function Po(e,t){return ia(ea(e,t,Ns),e+"")}function Co(e){return Pr(ds(e))}function Eo(e,t){var n=ds(e);return sa(n,jr(t,0,n.length))}function Oo(e,t,n,r){if(!Ol(e))return e;for(var o=-1,a=(t=qo(t,e)).length,l=a-1,s=e;null!=s&&++o<a;){var u=ca(t[o]),c=n;if(o!=l){var p=s[u];(c=r?r(p,u,s):i)===i&&(c=Ol(p)?p:Gi(t[o+1])?[]:{})}Sr(s,u,c),s=s[u]}return e}var So=rr?function(e,t){return rr.set(e,t),e}:Ns,To=dn?function(e,t){return dn(e,"toString",{configurable:!0,enumerable:!1,value:Os(t),writable:!0})}:Ns;function No(e){return sa(ds(e))}function Mo(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 Wr(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<=W){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Il(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return jo(e,t,Ns,n)}function jo(e,t,n,r){t=n(t);for(var o=0,a=null==e?0:e.length,l=t!=t,s=null===t,u=Il(t),c=t===i;o<a;){var p=Wn((o+a)/2),f=n(e[p]),d=f!==i,h=null===f,g=f==f,m=Il(f);if(l)var y=r||g;else y=c?g&&(r||d):s?g&&d&&(r||!h):u?g&&d&&!h&&(r||!m):!h&&!m&&(r?f<=t:f<t);y?o=p+1:a=p}return Gn(a,D)}function Io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!dl(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function Ro(e){return"number"==typeof e?e:Il(e)?R:+e}function Fo(e){if("string"==typeof e)return e;if(yl(e))return Jt(e,Fo)+"";if(Il(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=Zt,i=e.length,l=!0,s=[],u=s;if(n)l=!1,o=Qt;else if(i>=a){var c=t?null:ki(e);if(c)return Tn(c);l=!1,o=bn,u=new xr}else u=t?[]:s;e:for(;++r<i;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,l&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(p)}else o(u,f,n)||(u!==s&&u.push(f),s.push(p))}return s}function Wo(e,t){return null==(e=ta(e,t=qo(t,e)))||delete e[ca(ka(t))]}function zo(e,t,n,r){return Oo(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?Mo(e,r?0:i,r?i+1:o):Mo(e,r?i+1:0,r?o:i)}function Bo(e,t){var n=e;return n instanceof yr&&(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 l=e[i],s=-1;++s<o;)s!=i&&(a[i]=Dr(a[i]||l,e[s],t,n));return Do(Yr(a,1),t,n)}function Yo(e,t,n){for(var r=-1,o=e.length,a=t.length,l={};++r<o;){var s=r<a?t[r]:i;n(l,e[r],s)}return l}function Xo(e){return _l(e)?e:[]}function Go(e){return"function"==typeof e?e:Ns}function qo(e,t){return yl(e)?e:Hi(e,t)?[e]:ua(Xl(e))}var Ho=Po;function Ko(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Mo(e,t,n)}var $o=In||function(e){return At.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Qo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Jo(e,t){var n=t?Qo(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=Il(e),l=t!==i,s=null===t,u=t==t,c=Il(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||r&&l&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||s&&n&&o||!l&&o||!u)return-1}return 0}function ti(e,t,n,o){for(var i=-1,a=e.length,l=n.length,s=-1,u=t.length,c=Xn(a-l,0),p=r(u+c),f=!o;++s<u;)p[s]=t[s];for(;++i<l;)(f||i<a)&&(p[n[i]]=e[i]);for(;c--;)p[s++]=e[i++];return p}function ni(e,t,n,o){for(var i=-1,a=e.length,l=-1,s=n.length,u=-1,c=t.length,p=Xn(a-s,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(;++l<s;)(d||i<a)&&(f[h+n[l]]=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,l=t.length;++a<l;){var s=t[a],u=r?r(n[s],e[s],s,n,e):i;u===i&&(u=e[s]),o?Lr(n,s,u):Sr(n,s,u)}return n}function ii(e,t){return function(n,r){var o=yl(n)?Gt:Nr,i=t?t():{};return o(n,e,Ri(r,2),i)}}function ai(e){return Po(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,l=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,l&&qi(n[0],n[1],l)&&(a=o<3?i:a,o=1),t=tt(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}function li(e,t){return function(n,r){if(null==n)return n;if(!bl(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 si(e){return function(t,n,r){for(var o=-1,i=tt(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function ui(e){return function(t){var n=Cn(t=Xl(t))?Ln(t):i,r=n?n[0]:t.charAt(0),o=n?Ko(n,1).join(""):t.slice(1);return r[e]()+o}}function ci(e){return function(t){return tn(Ps(ms(t).replace(vt,"")),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 Ol(r)?r:n}}function fi(e){return function(t,n,r){var o=tt(t);if(!bl(t)){var a=Ri(n,3);t=os(t),n=function(e){return a(o[e],e,o)}}var l=e(t,n,r);return l>-1?o[a?t[l]:l]:i}}function di(e){return Ni(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(s);if(o&&!l&&"wrapper"==ji(a))var l=new mr([],!0)}for(r=l?r:n;++r<n;){var u=ji(a=t[r]),c="wrapper"==u?Ai(a):i;l=c&&Ki(c[0])&&c[1]==(P|_|w|C)&&!c[4].length&&1==c[9]?l[ji(c[0])].apply(l,c[3]):1==a.length&&Ki(a)?l[u]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&yl(r))return l.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,l,s,u,c,p){var f=t&P,d=t&y,h=t&v,g=t&(_|x),m=t&E,b=h?i:pi(e);return function y(){for(var v=arguments.length,_=r(v),x=v;x--;)_[x]=arguments[x];if(g)var w=Ii(y),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,w);if(o&&(_=ti(_,o,a,g)),l&&(_=ni(_,l,s,g)),v-=k,g&&v<p){var P=Sn(_,w);return xi(e,t,hi,y.placeholder,n,_,P,u,c,p-v)}var C=d?n:this,E=h?C[e]:e;return v=_.length,u?_=function(e,t){for(var n=e.length,r=Gn(t.length,n),o=ri(e);r--;){var a=t[r];e[r]=Gi(a,n)?o[a]:i}return e}(_,u):m&&v>1&&_.reverse(),f&&c<v&&(_.length=c),this&&this!==At&&this instanceof y&&(E=b||pi(E)),E.apply(C,_)}}function gi(e,t){return function(n,r){return function(e,t,n,r){return qr(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=Fo(n),r=Fo(r)):(n=Ro(n),r=Ro(r)),o=e(n,r)}return o}}function yi(e){return Ni(function(t){return t=Jt(t,yn(Ri())),Po(function(n){var r=this;return e(t,function(e){return Xt(e,r,n)})})})}function vi(e,t){var n=(t=t===i?" ":Fo(t)).length;if(n<2)return n?ko(t,e):t;var r=ko(t,Dn(e/Mn(t)));return Cn(t)?Ko(Ln(r),0,e).join(""):r.slice(0,e)}function bi(e){return function(t,n,o){return o&&"number"!=typeof o&&qi(t,n,o)&&(n=o=i),t=zl(t),n===i?(n=t,t=0):n=zl(n),function(e,t,n,o){for(var i=-1,a=Xn(Dn((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,o=o===i?t<n?1:-1:zl(o),e)}}function _i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Vl(t),n=Vl(n)),e(t,n)}}function xi(e,t,n,r,o,a,l,s,u,c){var p=t&_;t|=p?w:k,(t&=~(p?k:w))&b||(t&=~(y|v));var f=[e,t,o,p?a:i,p?l:i,p?i:a,p?i:l,s,u,c],d=n.apply(i,f);return Ki(e)&&ra(d,f),d.placeholder=r,aa(d,e,t)}function wi(e){var t=et[e];return function(e,n){if(e=Vl(e),n=null==n?0:Gn(Ul(n),292)){var r=(Xl(e)+"e").split("e");return+((r=(Xl(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)}:Is;function Pi(e){return function(t){var n=Bi(t);return n==$?En(t):n==ne?Nn(t):function(e,t){return Jt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ci(e,t,n,o,a,l,u,c){var f=t&v;if(!f&&"function"!=typeof e)throw new ot(s);var d=o?o.length:0;if(d||(t&=~(w|k),o=a=i),u=u===i?u:Xn(Ul(u),0),c=c===i?c:Ul(c),d-=a?a.length:0,t&k){var h=o,g=a;o=a=i}var m=f?i:Ai(e),E=[e,t,n,o,a,h,g,l,u,c];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<(y|v|P),a=r==P&&n==_||r==P&&n==C&&e[7].length<=t[8]||r==(P|C)&&t[7].length<=t[8]&&n==_;if(!i&&!a)return e;r&y&&(e[2]=t[2],o|=n&y?0:b);var l=t[3];if(l){var s=e[3];e[3]=s?ti(s,l,t[4]):l,e[4]=s?Sn(e[3],p):t[4]}(l=t[5])&&(s=e[5],e[5]=s?ni(s,l,t[6]):l,e[6]=s?Sn(e[5],p):t[6]),(l=t[7])&&(e[7]=l),r&P&&(e[8]=null==e[8]?t[8]:Gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(E,m),e=E[0],t=E[1],n=E[2],o=E[3],a=E[4],!(c=E[9]=E[9]===i?f?0:e.length:Xn(E[9]-d,0))&&t&(_|x)&&(t&=~(_|x)),t&&t!=y)O=t==_||t==x?function(e,t,n){var o=pi(e);return function a(){for(var l=arguments.length,s=r(l),u=l,c=Ii(a);u--;)s[u]=arguments[u];var p=l<3&&s[0]!==c&&s[l-1]!==c?[]:Sn(s,c);return(l-=p.length)<n?xi(e,t,hi,a.placeholder,i,s,p,i,i,n-l):Xt(this&&this!==At&&this instanceof a?o:e,this,s)}}(e,t,c):t!=w&&t!=(y|w)||a.length?hi.apply(i,E):function(e,t,n,o){var i=t&y,a=pi(e);return function t(){for(var l=-1,s=arguments.length,u=-1,c=o.length,p=r(c+s),f=this&&this!==At&&this instanceof t?a:e;++u<c;)p[u]=o[u];for(;s--;)p[u++]=arguments[++l];return Xt(f,i?n:this,p)}}(e,t,n,o);else var O=function(e,t,n){var r=t&y,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?So:ra)(O,E),e,t)}function Ei(e,t,n,r){return e===i||dl(e,lt[n])&&!ct.call(r,n)?t:e}function Oi(e,t,n,r,o,a){return Ol(e)&&Ol(t)&&(a.set(t,e),mo(e,t,i,Oi,a),a.delete(t)),e}function Si(e){return Ml(e)?i:e}function Ti(e,t,n,r,o,a){var l=n&g,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var p=-1,f=!0,d=n&m?new xr:i;for(a.set(e,t),a.set(t,e);++p<s;){var h=e[p],y=t[p];if(r)var v=l?r(y,h,p,t,e,a):r(h,y,p,e,t,a);if(v!==i){if(v)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!==y&&!o(h,y,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Ni(e){return ia(ea(e,i,va),e+"")}function Mi(e){return Zr(e,os,zi)}function Li(e){return Zr(e,is,Ui)}var Ai=rr?function(e){return rr.get(e)}:Is;function ji(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 Ii(e){return(ct.call(dr,"placeholder")?dr:e).placeholder}function Ri(){var e=dr.iteratee||Ms;return e=e===Ms?so:e,arguments.length?e(arguments[0],arguments[1]):e}function Fi(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=os(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Qi(o)]}return t}function Wi(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return lo(n)?n:i}var zi=zn?function(e){return null==e?[]:(e=tt(e),$t(zn(e),function(t){return jt.call(e,t)}))}:Bs,Ui=zn?function(e){for(var t=[];e;)en(t,zi(e)),e=Mt(e);return t}:Bs,Bi=Qr;function Vi(e,t,n){for(var r=-1,o=(t=qo(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)&&El(o)&&Gi(a,o)&&(yl(e)||ml(e))}function Yi(e){return"function"!=typeof e.constructor||Zi(e)?{}:hr(Mt(e))}function Xi(e){return yl(e)||ml(e)||!!(Ft&&e&&e[Ft])}function Gi(e,t){var n=typeof e;return!!(t=null==t?j:t)&&("number"==n||"symbol"!=n&&He.test(e))&&e>-1&&e%1==0&&e<t}function qi(e,t,n){if(!Ol(n))return!1;var r=typeof t;return!!("number"==r?bl(n)&&Gi(t,n.length):"string"==r&&t in n)&&dl(n[t],e)}function Hi(e,t){if(yl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Il(e))||Ne.test(e)||!Te.test(e)||null!=t&&e in tt(t)}function Ki(e){var t=ji(e),n=dr[t];if("function"!=typeof n||!(t in yr.prototype))return!1;if(e===n)return!0;var r=Ai(n);return!!r&&e===r[0]}(Zn&&Bi(new Zn(new ArrayBuffer(1)))!=ue||Qn&&Bi(new Qn)!=$||Jn&&"[object Promise]"!=Bi(Jn.resolve())||er&&Bi(new er)!=ne||tr&&Bi(new tr)!=ae)&&(Bi=function(e){var t=Qr(e),n=t==J?e.constructor:i,r=n?pa(n):"";if(r)switch(r){case ir:return ue;case ar:return $;case lr:return"[object Promise]";case sr:return ne;case ur:return ae}return t});var $i=st?Pl:Vs;function Zi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lt)}function Qi(e){return e==e&&!Ol(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=Xn(t===i?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Xn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(l),Xt(e,this,s)}}function ta(e,t){return t.length<2?e:$r(e,Mo(t,0,-1))}function na(e,t){if("__proto__"!=t)return e[t]}var ra=la(So),oa=Fn||function(e,t){return At.setTimeout(e,t)},ia=la(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(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return qt(z,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(We):[]}(r),n)))}function la(e){var t=0,n=0;return function(){var r=qn(),o=N-(r-n);if(n=r,o>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=wo(n,o),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var ua=function(e){var t=ll(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(Me,function(e,n,r,o){t.push(r?o.replace(Ue,"$1"):n||e)}),t});function ca(e){if("string"==typeof e||Il(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 yr)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=Po(function(e,t){return _l(e)?Dr(e,Yr(t,1,_l,!0)):[]}),ha=Po(function(e,t){var n=ka(t);return _l(n)&&(n=i),_l(e)?Dr(e,Yr(t,1,_l,!0),Ri(n,2)):[]}),ga=Po(function(e,t){var n=ka(t);return _l(n)&&(n=i),_l(e)?Dr(e,Yr(t,1,_l,!0),i,n):[]});function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Xn(r+o,0)),ln(e,Ri(t,3),o)}function ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Ul(n),o=n<0?Xn(r+o,0):Gn(o,r-1)),ln(e,Ri(t,3),o,!0)}function va(e){return null!=e&&e.length?Yr(e,1):[]}function ba(e){return e&&e.length?e[0]:i}var _a=Po(function(e){var t=Jt(e,Xo);return t.length&&t[0]===e[0]?no(t):[]}),xa=Po(function(e){var t=ka(e),n=Jt(e,Xo);return t===ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?no(n,Ri(t,2)):[]}),wa=Po(function(e){var t=ka(e),n=Jt(e,Xo);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 Pa=Po(Ca);function Ca(e,t){return e&&e.length&&t&&t.length?_o(e,t):e}var Ea=Ni(function(e,t){var n=null==e?0:e.length,r=Ar(e,t);return xo(e,Jt(t,function(e){return Gi(e,n)?+e:e}).sort(ei)),r});function Oa(e){return null==e?e:$n.call(e)}var Sa=Po(function(e){return Do(Yr(e,1,_l,!0))}),Ta=Po(function(e){var t=ka(e);return _l(t)&&(t=i),Do(Yr(e,1,_l,!0),Ri(t,2))}),Na=Po(function(e){var t=ka(e);return t="function"==typeof t?t:i,Do(Yr(e,1,_l,!0),i,t)});function Ma(e){if(!e||!e.length)return[];var t=0;return e=$t(e,function(e){if(_l(e))return t=Xn(e.length,t),!0}),mn(t,function(t){return Jt(e,fn(t))})}function La(e,t){if(!e||!e.length)return[];var n=Ma(e);return null==t?n:Jt(n,function(e){return Xt(t,i,e)})}var Aa=Po(function(e,t){return _l(e)?Dr(e,t):[]}),ja=Po(function(e){return Vo($t(e,_l))}),Ia=Po(function(e){var t=ka(e);return _l(t)&&(t=i),Vo($t(e,_l),Ri(t,2))}),Ra=Po(function(e){var t=ka(e);return t="function"==typeof t?t:i,Vo($t(e,_l),i,t)}),Fa=Po(Ma);var Da=Po(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 Wa(e){var t=dr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ua=Ni(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 yr&&Gi(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 Ba=ii(function(e,t,n){ct.call(e,n)?++e[n]:Lr(e,n,1)});var Va=fi(ma),Ya=fi(ya);function Xa(e,t){return(yl(e)?qt:Wr)(e,Ri(t,3))}function Ga(e,t){return(yl(e)?Ht:zr)(e,Ri(t,3))}var qa=ii(function(e,t,n){ct.call(e,n)?e[n].push(t):Lr(e,n,[t])});var Ha=Po(function(e,t,n){var o=-1,i="function"==typeof t,a=bl(e)?r(e.length):[];return Wr(e,function(e){a[++o]=i?Xt(t,e,n):ro(e,t,n)}),a}),Ka=ii(function(e,t,n){Lr(e,n,t)});function $a(e,t){return(yl(e)?Jt:fo)(e,Ri(t,3))}var Za=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Qa=Po(function(e,t){if(null==e)return[];var n=t.length;return n>1&&qi(e,t[0],t[1])?t=[]:n>2&&qi(t[0],t[1],t[2])&&(t=[t[0]]),vo(e,Yr(t,1),[])}),Ja=Rn||function(){return At.Date.now()};function el(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ci(e,P,i,i,i,i,t)}function tl(e,t){var n;if("function"!=typeof t)throw new ot(s);return e=Ul(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var nl=Po(function(e,t,n){var r=y;if(n.length){var o=Sn(n,Ii(nl));r|=w}return Ci(e,r,t,n,o)}),rl=Po(function(e,t,n){var r=y|v;if(n.length){var o=Sn(n,Ii(rl));r|=w}return Ci(t,r,e,n,o)});function ol(e,t,n){var r,o,a,l,u,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new ot(s);function g(t){var n=r,a=o;return r=o=i,p=t,l=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=a}function y(){var e=Ja();if(m(e))return v(e);u=oa(y,function(e){var n=t-(e-c);return d?Gn(n,a-(e-p)):n}(e))}function v(e){return u=i,h&&r?g(e):(r=o=i,l)}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(y,t),f?g(e):l}(c);if(d)return u=oa(y,t),g(c)}return u===i&&(u=oa(y,t)),l}return t=Vl(t)||0,Ol(n)&&(f=!!n.leading,a=(d="maxWait"in n)?Xn(Vl(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?l:v(Ja())},b}var il=Po(function(e,t){return Fr(e,1,t)}),al=Po(function(e,t,n){return Fr(e,Vl(t)||0,n)});function ll(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(s);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(ll.Cache||_r),n}function sl(e){if("function"!=typeof e)throw new ot(s);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)}}ll.Cache=_r;var ul=Ho(function(e,t){var n=(t=1==t.length&&yl(t[0])?Jt(t[0],yn(Ri())):Jt(Yr(t,1),yn(Ri()))).length;return Po(function(r){for(var o=-1,i=Gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Xt(e,this,r)})}),cl=Po(function(e,t){var n=Sn(t,Ii(cl));return Ci(e,w,i,t,n)}),pl=Po(function(e,t){var n=Sn(t,Ii(pl));return Ci(e,k,i,t,n)}),fl=Ni(function(e,t){return Ci(e,C,i,i,i,t)});function dl(e,t){return e===t||e!=e&&t!=t}var hl=_i(Jr),gl=_i(function(e,t){return e>=t}),ml=oo(function(){return arguments}())?oo:function(e){return Sl(e)&&ct.call(e,"callee")&&!jt.call(e,"callee")},yl=r.isArray,vl=Wt?yn(Wt):function(e){return Sl(e)&&Qr(e)==se};function bl(e){return null!=e&&El(e.length)&&!Pl(e)}function _l(e){return Sl(e)&&bl(e)}var xl=Un||Vs,wl=zt?yn(zt):function(e){return Sl(e)&&Qr(e)==X};function kl(e){if(!Sl(e))return!1;var t=Qr(e);return t==q||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Ml(e)}function Pl(e){if(!Ol(e))return!1;var t=Qr(e);return t==H||t==K||t==V||t==ee}function Cl(e){return"number"==typeof e&&e==Ul(e)}function El(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Ol(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sl(e){return null!=e&&"object"==typeof e}var Tl=Ut?yn(Ut):function(e){return Sl(e)&&Bi(e)==$};function Nl(e){return"number"==typeof e||Sl(e)&&Qr(e)==Z}function Ml(e){if(!Sl(e)||Qr(e)!=J)return!1;var t=Mt(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 Ll=Bt?yn(Bt):function(e){return Sl(e)&&Qr(e)==te};var Al=Vt?yn(Vt):function(e){return Sl(e)&&Bi(e)==ne};function jl(e){return"string"==typeof e||!yl(e)&&Sl(e)&&Qr(e)==re}function Il(e){return"symbol"==typeof e||Sl(e)&&Qr(e)==oe}var Rl=Yt?yn(Yt):function(e){return Sl(e)&&El(e.length)&&!!Et[Qr(e)]};var Fl=_i(po),Dl=_i(function(e,t){return e<=t});function Wl(e){if(!e)return[];if(bl(e))return jl(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=Bi(e);return(t==$?En:t==ne?Tn:ds)(e)}function zl(e){return e?(e=Vl(e))===A||e===-A?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Ul(e){var t=zl(e),n=t%1;return t==t?n?t-n:t:0}function Bl(e){return e?jr(Ul(e),0,F):0}function Vl(e){if("number"==typeof e)return e;if(Il(e))return R;if(Ol(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ol(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Xe.test(e);return n||qe.test(e)?Nt(e.slice(2),n?2:8):Ye.test(e)?R:+e}function Yl(e){return oi(e,is(e))}function Xl(e){return null==e?"":Fo(e)}var Gl=ai(function(e,t){if(Zi(t)||bl(t))oi(t,os(t),e);else for(var n in t)ct.call(t,n)&&Sr(e,n,t[n])}),ql=ai(function(e,t){oi(t,is(t),e)}),Hl=ai(function(e,t,n,r){oi(t,is(t),e,r)}),Kl=ai(function(e,t,n,r){oi(t,os(t),e,r)}),$l=Ni(Ar);var Zl=Po(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&qi(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],l=is(a),s=-1,u=l.length;++s<u;){var c=l[s],p=e[c];(p===i||dl(p,lt[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e}),Ql=Po(function(e){return e.push(i,Oi),Xt(ls,i,e)});function Jl(e,t,n){var r=null==e?i:$r(e,t);return r===i?n:r}function es(e,t){return null!=e&&Vi(e,t,to)}var ts=gi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n},Os(Ns)),ns=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]},Ri),rs=Po(ro);function os(e){return bl(e)?kr(e):uo(e)}function is(e){return bl(e)?kr(e,!0):co(e)}var as=ai(function(e,t,n){mo(e,t,n)}),ls=ai(function(e,t,n,r){mo(e,t,n,r)}),ss=Ni(function(e,t){var n={};if(null==e)return n;var r=!1;t=Jt(t,function(t){return t=qo(t,e),r||(r=t.length>1),t}),oi(e,Li(e),n),r&&(n=Ir(n,f|d|h,Si));for(var o=t.length;o--;)Wo(n,t[o]);return n});var us=Ni(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return es(e,n)})}(e,t)});function cs(e,t){if(null==e)return{};var n=Jt(Li(e),function(e){return[e]});return t=Ri(t),bo(e,n,function(e,n){return t(e,n[0])})}var ps=Pi(os),fs=Pi(is);function ds(e){return null==e?[]:vn(e,os(e))}var hs=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?gs(t):t)});function gs(e){return ks(Xl(e).toLowerCase())}function ms(e){return(e=Xl(e))&&e.replace(Ke,wn).replace(bt,"")}var ys=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),vs=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bs=ui("toLowerCase");var _s=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xs=ci(function(e,t,n){return e+(n?" ":"")+ks(t)});var ws=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=ui("toUpperCase");function Ps(e,t,n){return e=Xl(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Cs=Po(function(e,t){try{return Xt(e,i,t)}catch(e){return kl(e)?e:new Qe(e)}}),Es=Ni(function(e,t){return qt(t,function(t){t=ca(t),Lr(e,t,nl(e[t],e))}),e});function Os(e){return function(){return e}}var Ss=di(),Ts=di(!0);function Ns(e){return e}function Ms(e){return so("function"==typeof e?e:Ir(e,f))}var Ls=Po(function(e,t){return function(n){return ro(n,e,t)}}),As=Po(function(e,t){return function(n){return ro(e,n,t)}});function js(e,t,n){var r=os(t),o=Kr(t,r);null!=n||Ol(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Kr(t,os(t)));var i=!(Ol(n)&&"chain"in n&&!n.chain),a=Pl(e);return qt(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__);return(n.__actions__=ri(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Is(){}var Rs=yi(Jt),Fs=yi(Kt),Ds=yi(rn);function Ws(e){return Hi(e)?fn(ca(e)):function(e){return function(t){return $r(t,e)}}(e)}var zs=bi(),Us=bi(!0);function Bs(){return[]}function Vs(){return!1}var Ys=mi(function(e,t){return e+t},0),Xs=wi("ceil"),Gs=mi(function(e,t){return e/t},1),qs=wi("floor");var Hs,Ks=mi(function(e,t){return e*t},1),$s=wi("round"),Zs=mi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new ot(s);return e=Ul(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=el,dr.assign=Gl,dr.assignIn=ql,dr.assignInWith=Hl,dr.assignWith=Kl,dr.at=$l,dr.before=tl,dr.bind=nl,dr.bindAll=Es,dr.bindKey=rl,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return yl(e)?e:[e]},dr.chain=Wa,dr.chunk=function(e,t,n){t=(n?qi(e,t,n):t===i)?1:Xn(Ul(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,l=0,s=r(Dn(o/t));a<o;)s[l++]=Mo(e,a,a+=t);return s},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(yl(n)?ri(n):[n],Yr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Ri();return e=t?Jt(e,function(e){if("function"!=typeof e[1])throw new ot(s);return[n(e[0]),e[1]]}):[],Po(function(n){for(var r=-1;++r<t;){var o=e[r];if(Xt(o[0],this,n))return Xt(o[1],this,n)}})},dr.conforms=function(e){return function(e){var t=os(e);return function(n){return Rr(n,e,t)}}(Ir(e,f))},dr.constant=Os,dr.countBy=Ba,dr.create=function(e,t){var n=hr(e);return null==t?n:Mr(n,t)},dr.curry=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.curryRight=function e(t,n,r){var o=Ci(t,x,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.debounce=ol,dr.defaults=Zl,dr.defaultsDeep=Ql,dr.defer=il,dr.delay=al,dr.difference=da,dr.differenceBy=ha,dr.differenceWith=ga,dr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Mo(e,(t=n||t===i?1:Ul(t))<0?0:t,r):[]},dr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Mo(e,0,(t=r-(t=n||t===i?1:Ul(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0):[]},dr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&qi(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Ul(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Ul(r))<0&&(r+=o),r=n>r?0:Bl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},dr.filter=function(e,t){return(yl(e)?$t:Vr)(e,Ri(t,3))},dr.flatMap=function(e,t){return Yr($a(e,t),1)},dr.flatMapDeep=function(e,t){return Yr($a(e,t),A)},dr.flatMapDepth=function(e,t,n){return n=n===i?1:Ul(n),Yr($a(e,t),n)},dr.flatten=va,dr.flattenDeep=function(e){return null!=e&&e.length?Yr(e,A):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Yr(e,t=t===i?1:Ul(t)):[]},dr.flip=function(e){return Ci(e,E)},dr.flow=Ss,dr.flowRight=Ts,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?[]:Kr(e,os(e))},dr.functionsIn=function(e){return null==e?[]:Kr(e,is(e))},dr.groupBy=qa,dr.initial=function(e){return null!=e&&e.length?Mo(e,0,-1):[]},dr.intersection=_a,dr.intersectionBy=xa,dr.intersectionWith=wa,dr.invert=ts,dr.invertBy=ns,dr.invokeMap=Ha,dr.iteratee=Ms,dr.keyBy=Ka,dr.keys=os,dr.keysIn=is,dr.map=$a,dr.mapKeys=function(e,t){var n={};return t=Ri(t,3),qr(e,function(e,r,o){Lr(n,t(e,r,o),e)}),n},dr.mapValues=function(e,t){var n={};return t=Ri(t,3),qr(e,function(e,r,o){Lr(n,r,t(e,r,o))}),n},dr.matches=function(e){return ho(Ir(e,f))},dr.matchesProperty=function(e,t){return go(e,Ir(t,f))},dr.memoize=ll,dr.merge=as,dr.mergeWith=ls,dr.method=Ls,dr.methodOf=As,dr.mixin=js,dr.negate=sl,dr.nthArg=function(e){return e=Ul(e),Po(function(t){return yo(t,e)})},dr.omit=ss,dr.omitBy=function(e,t){return cs(e,sl(Ri(t)))},dr.once=function(e){return tl(2,e)},dr.orderBy=function(e,t,n,r){return null==e?[]:(yl(t)||(t=null==t?[]:[t]),yl(n=r?i:n)||(n=null==n?[]:[n]),vo(e,t,n))},dr.over=Rs,dr.overArgs=ul,dr.overEvery=Fs,dr.overSome=Ds,dr.partial=cl,dr.partialRight=pl,dr.partition=Za,dr.pick=us,dr.pickBy=cs,dr.property=Ws,dr.propertyOf=function(e){return function(t){return null==e?i:$r(e,t)}},dr.pull=Pa,dr.pullAll=Ca,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,Ri(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,i,n):e},dr.pullAt=Ea,dr.range=zs,dr.rangeRight=Us,dr.rearg=fl,dr.reject=function(e,t){return(yl(e)?$t:Vr)(e,sl(Ri(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ri(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return xo(e,o),n},dr.rest=function(e,t){if("function"!=typeof e)throw new ot(s);return Po(e,t=t===i?t:Ul(t))},dr.reverse=Oa,dr.sampleSize=function(e,t,n){return t=(n?qi(e,t,n):t===i)?1:Ul(t),(yl(e)?Cr:Eo)(e,t)},dr.set=function(e,t,n){return null==e?e:Oo(e,t,n)},dr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oo(e,t,n,r)},dr.shuffle=function(e){return(yl(e)?Er:No)(e)},dr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&qi(e,t,n)?(t=0,n=r):(t=null==t?0:Ul(t),n=n===i?r:Ul(n)),Mo(e,t,n)):[]},dr.sortBy=Qa,dr.sortedUniq=function(e){return e&&e.length?Io(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Io(e,Ri(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&qi(e,t,n)&&(t=n=i),(n=n===i?F:n>>>0)?(e=Xl(e))&&("string"==typeof t||null!=t&&!Ll(t))&&!(t=Fo(t))&&Cn(e)?Ko(Ln(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new ot(s);return t=null==t?0:Xn(Ul(t),0),Po(function(n){var r=n[t],o=Ko(n,0,t);return r&&en(o,r),Xt(e,this,o)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Mo(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Mo(e,0,(t=n||t===i?1:Ul(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Mo(e,(t=r-(t=n||t===i?1:Ul(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Uo(e,Ri(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(s);return Ol(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ol(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=za,dr.toArray=Wl,dr.toPairs=ps,dr.toPairsIn=fs,dr.toPath=function(e){return yl(e)?Jt(e,ca):Il(e)?[e]:ri(ua(Xl(e)))},dr.toPlainObject=Yl,dr.transform=function(e,t,n){var r=yl(e),o=r||xl(e)||Rl(e);if(t=Ri(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ol(e)&&Pl(i)?hr(Mt(e)):{}}return(o?qt:qr)(e,function(e,r,o){return t(n,e,r,o)}),n},dr.unary=function(e){return el(e,1)},dr.union=Sa,dr.unionBy=Ta,dr.unionWith=Na,dr.uniq=function(e){return e&&e.length?Do(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Do(e,Ri(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||Wo(e,t)},dr.unzip=Ma,dr.unzipWith=La,dr.update=function(e,t,n){return null==e?e:zo(e,t,Go(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,Go(n),r)},dr.values=ds,dr.valuesIn=function(e){return null==e?[]:vn(e,is(e))},dr.without=Aa,dr.words=Ps,dr.wrap=function(e,t){return cl(Go(t),e)},dr.xor=ja,dr.xorBy=Ia,dr.xorWith=Ra,dr.zip=Fa,dr.zipObject=function(e,t){return Yo(e||[],t||[],Sr)},dr.zipObjectDeep=function(e,t){return Yo(e||[],t||[],Oo)},dr.zipWith=Da,dr.entries=ps,dr.entriesIn=fs,dr.extend=ql,dr.extendWith=Hl,js(dr,dr),dr.add=Ys,dr.attempt=Cs,dr.camelCase=hs,dr.capitalize=gs,dr.ceil=Xs,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vl(n))==n?n:0),t!==i&&(t=(t=Vl(t))==t?t:0),jr(Vl(e),t,n)},dr.clone=function(e){return Ir(e,h)},dr.cloneDeep=function(e){return Ir(e,f|h)},dr.cloneDeepWith=function(e,t){return Ir(e,f|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Rr(e,t,os(t))},dr.deburr=ms,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Gs,dr.endsWith=function(e,t,n){e=Xl(e),t=Fo(t);var r=e.length,o=n=n===i?r:jr(Ul(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=dl,dr.escape=function(e){return(e=Xl(e))&&Ce.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=Xl(e))&&Ae.test(e)?e.replace(Le,"\\$&"):e},dr.every=function(e,t,n){var r=yl(e)?Kt:Ur;return n&&qi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.find=Va,dr.findIndex=ma,dr.findKey=function(e,t){return an(e,Ri(t,3),qr)},dr.findLast=Ya,dr.findLastIndex=ya,dr.findLastKey=function(e,t){return an(e,Ri(t,3),Hr)},dr.floor=qs,dr.forEach=Xa,dr.forEachRight=Ga,dr.forIn=function(e,t){return null==e?e:Xr(e,Ri(t,3),is)},dr.forInRight=function(e,t){return null==e?e:Gr(e,Ri(t,3),is)},dr.forOwn=function(e,t){return e&&qr(e,Ri(t,3))},dr.forOwnRight=function(e,t){return e&&Hr(e,Ri(t,3))},dr.get=Jl,dr.gt=hl,dr.gte=gl,dr.has=function(e,t){return null!=e&&Vi(e,t,eo)},dr.hasIn=es,dr.head=ba,dr.identity=Ns,dr.includes=function(e,t,n,r){e=bl(e)?e:ds(e),n=n&&!r?Ul(n):0;var o=e.length;return n<0&&(n=Xn(o+n,0)),jl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&sn(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:Ul(n);return o<0&&(o=Xn(r+o,0)),sn(e,t,o)},dr.inRange=function(e,t,n){return t=zl(t),n===i?(n=t,t=0):n=zl(n),function(e,t,n){return e>=Gn(t,n)&&e<Xn(t,n)}(e=Vl(e),t,n)},dr.invoke=rs,dr.isArguments=ml,dr.isArray=yl,dr.isArrayBuffer=vl,dr.isArrayLike=bl,dr.isArrayLikeObject=_l,dr.isBoolean=function(e){return!0===e||!1===e||Sl(e)&&Qr(e)==Y},dr.isBuffer=xl,dr.isDate=wl,dr.isElement=function(e){return Sl(e)&&1===e.nodeType&&!Ml(e)},dr.isEmpty=function(e){if(null==e)return!0;if(bl(e)&&(yl(e)||"string"==typeof e||"function"==typeof e.splice||xl(e)||Rl(e)||ml(e)))return!e.length;var t=Bi(e);if(t==$||t==ne)return!e.size;if(Zi(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=kl,dr.isFinite=function(e){return"number"==typeof e&&Bn(e)},dr.isFunction=Pl,dr.isInteger=Cl,dr.isLength=El,dr.isMap=Tl,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 Nl(e)&&e!=+e},dr.isNative=function(e){if($i(e))throw new Qe(l);return lo(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Nl,dr.isObject=Ol,dr.isObjectLike=Sl,dr.isPlainObject=Ml,dr.isRegExp=Ll,dr.isSafeInteger=function(e){return Cl(e)&&e>=-j&&e<=j},dr.isSet=Al,dr.isString=jl,dr.isSymbol=Il,dr.isTypedArray=Rl,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Sl(e)&&Bi(e)==ae},dr.isWeakSet=function(e){return Sl(e)&&Qr(e)==le},dr.join=function(e,t){return null==e?"":Vn.call(e,t)},dr.kebabCase=ys,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=Ul(n))<0?Xn(r+o,0):Gn(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):ln(e,cn,o,!0)},dr.lowerCase=vs,dr.lowerFirst=bs,dr.lt=Fl,dr.lte=Dl,dr.max=function(e){return e&&e.length?Br(e,Ns,Jr):i},dr.maxBy=function(e,t){return e&&e.length?Br(e,Ri(t,2),Jr):i},dr.mean=function(e){return pn(e,Ns)},dr.meanBy=function(e,t){return pn(e,Ri(t,2))},dr.min=function(e){return e&&e.length?Br(e,Ns,po):i},dr.minBy=function(e,t){return e&&e.length?Br(e,Ri(t,2),po):i},dr.stubArray=Bs,dr.stubFalse=Vs,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Ks,dr.nth=function(e,t){return e&&e.length?yo(e,Ul(t)):i},dr.noConflict=function(){return At._===this&&(At._=gt),this},dr.noop=Is,dr.now=Ja,dr.pad=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Mn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return vi(Wn(o),n)+e+vi(Dn(o),n)},dr.padEnd=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Mn(e):0;return t&&r<t?e+vi(t-r,n):e},dr.padStart=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Mn(e):0;return t&&r<t?vi(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Hn(Xl(e).replace(Ie,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&qi(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=zl(e),t===i?(t=e,e=0):t=zl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Kn();return Gn(e+o*(t-e+Tt("1e-"+((o+"").length-1))),t)}return wo(e,t)},dr.reduce=function(e,t,n){var r=yl(e)?tn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,Wr)},dr.reduceRight=function(e,t,n){var r=yl(e)?nn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,zr)},dr.repeat=function(e,t,n){return t=(n?qi(e,t,n):t===i)?1:Ul(t),ko(Xl(e),t)},dr.replace=function(){var e=arguments,t=Xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=qo(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=Pl(a)?a.call(e):a}return e},dr.round=$s,dr.runInContext=e,dr.sample=function(e){return(yl(e)?Pr:Co)(e)},dr.size=function(e){if(null==e)return 0;if(bl(e))return jl(e)?Mn(e):e.length;var t=Bi(e);return t==$||t==ne?e.size:uo(e).length},dr.snakeCase=_s,dr.some=function(e,t,n){var r=yl(e)?rn:Lo;return n&&qi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.sortedIndex=function(e,t){return Ao(e,t)},dr.sortedIndexBy=function(e,t,n){return jo(e,t,Ri(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ao(e,t);if(r<n&&dl(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ao(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return jo(e,t,Ri(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ao(e,t,!0)-1;if(dl(e[n],t))return n}return-1},dr.startCase=xs,dr.startsWith=function(e,t,n){return e=Xl(e),n=null==n?0:jr(Ul(n),0,e.length),t=Fo(t),e.slice(n,n+t.length)==t},dr.subtract=Zs,dr.sum=function(e){return e&&e.length?gn(e,Ns):0},dr.sumBy=function(e,t){return e&&e.length?gn(e,Ri(t,2)):0},dr.template=function(e,t,n){var r=dr.templateSettings;n&&qi(e,t,n)&&(t=i),e=Xl(e),t=Hl({},t,r,Ei);var o,a,l=Hl({},t.imports,r.imports,Ei),s=os(l),u=vn(l,s),c=0,p=t.interpolate||$e,f="__p += '",d=nt((t.escape||$e).source+"|"+p.source+"|"+(p===Se?Be:$e).source+"|"+(t.evaluate||$e).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Ct+"]")+"\n";e.replace(d,function(t,n,r,i,l,s){return r||(r=i),f+=e.slice(c,s).replace(Ze,Pn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t}),f+="';\n";var g=t.variable;g||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(be,""):f).replace(_e,"$1").replace(xe,"$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=Cs(function(){return Je(s,h+"return "+f).apply(i,u)});if(m.source=f,kl(m))throw m;return m},dr.times=function(e,t){if((e=Ul(e))<1||e>j)return[];var n=F,r=Gn(e,F);t=Ri(t),e-=F;for(var o=mn(r,t);++n<e;)t(n);return o},dr.toFinite=zl,dr.toInteger=Ul,dr.toLength=Bl,dr.toLower=function(e){return Xl(e).toLowerCase()},dr.toNumber=Vl,dr.toSafeInteger=function(e){return e?jr(Ul(e),-j,j):0===e?e:0},dr.toString=Xl,dr.toUpper=function(e){return Xl(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(je,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e),o=Ln(t);return Ko(r,_n(r,o),xn(r,o)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(Re,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e);return Ko(r,0,xn(r,Ln(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e);return Ko(r,_n(r,Ln(t))).join("")},dr.truncate=function(e,t){var n=O,r=S;if(Ol(t)){var o="separator"in t?t.separator:o;n="length"in t?Ul(t.length):n,r="omission"in t?Fo(t.omission):r}var a=(e=Xl(e)).length;if(Cn(e)){var l=Ln(e);a=l.length}if(n>=a)return e;var s=n-Mn(r);if(s<1)return r;var u=l?Ko(l,0,s).join(""):e.slice(0,s);if(o===i)return u+r;if(l&&(s+=u.length-s),Ll(o)){if(e.slice(s).search(o)){var c,p=u;for(o.global||(o=nt(o.source,Xl(Ve.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;u=u.slice(0,f===i?s:f)}}else if(e.indexOf(Fo(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},dr.unescape=function(e){return(e=Xl(e))&&Pe.test(e)?e.replace(we,An):e},dr.uniqueId=function(e){var t=++pt;return Xl(e)+t},dr.upperCase=ws,dr.upperFirst=ks,dr.each=Xa,dr.eachRight=Ga,dr.first=ba,js(dr,(Hs={},qr(dr,function(e,t){ct.call(dr.prototype,t)||(Hs[t]=e)}),Hs),{chain:!1}),dr.VERSION="4.17.11",qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),qt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Xn(Ul(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),qt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==M||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ri(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),qt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),qt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Ns)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Po(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(sl(Ri(e)))},yr.prototype.slice=function(e,t){e=Ul(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ul(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(F)},qr(yr.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__,l=r?[1]:arguments,s=t instanceof yr,u=l[0],c=s||yl(t),p=function(e){var t=o.apply(dr,en([e],l));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=a&&!f,g=s&&!d;if(!a&&c){t=g?t:new yr(this);var m=e.apply(t,l);return m.__actions__.push({func:za,args:[p],thisArg:i}),new mr(m,f)}return h&&g?e.apply(this,l):(m=this.thru(p),h?r?m.value()[0]:m.value():m)})}),qt(["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(yl(o)?o:[],e)}return this[n](function(n){return t.apply(yl(n)?n:[],e)})}}),qr(yr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[hi(i,v).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(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},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=yl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++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=Gn(t,e+a);break;case"takeRight":e=Xn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,u=r?l:a-1,c=this.__iteratees__,p=c.length,f=0,d=Gn(s,this.__takeCount__);if(!n||!r&&o==s&&d==s)return Bo(e,this.__actions__);var h=[];e:for(;s--&&f<d;){for(var g=-1,m=e[u+=t];++g<p;){var y=c[g],v=y.iteratee,b=y.type,_=v(m);if(b==L)m=_;else if(!_){if(b==M)continue e;break e}}h[f++]=m}return h},dr.prototype.at=Ua,dr.prototype.chain=function(){return Wa(this)},dr.prototype.commit=function(){return new mr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=Wl(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 yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Oa],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Oa)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Bo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Dt&&(dr.prototype[Dt]=function(){return this}),dr}();At._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(8),n(18)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(20);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,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(22);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,"#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 200px;\n overflow: hidden; }\n #nodeList .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .pane .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #nodeList .pane .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #nodeList .pane .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #nodeList .pane .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var 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(25);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 50px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: 110px; }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #propertyTab .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #propertyTab .buttonLine input[type="file"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: \'\';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n',""])},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,"#log-console {\n background: #333333;\n height: 100px;\n margin: 0;\n padding: 10px;\n width: calc(100% - 20px);\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n",""])},function(e,t,n){var r=n(29);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!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(31);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n grid-template-columns: 200px calc(100% - 500px) 300px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px "acumin-pro"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 2;\n background: #222222; }\n\n#propertyTab {\n grid-row: 1 / span 2;\n grid-column: 3; }\n\n#log-console {\n grid-row: 2;\n grid-column: 2; }\n',""])},function(e,t,n){var r=n(33);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".diagramBlock {\n background: white;\n width: 200px;\n border: 4px solid black; }\n .diagramBlock.input {\n background: green;\n color: white; }\n .diagramBlock.attribute {\n background: orange; }\n .diagramBlock.output {\n background: blue;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n margin: 10px;\n font-size: 16px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .value {\n height: 34px;\n text-align: center;\n font-size: 20px;\n font-weight: bold; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 4px calc(100% - 4px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -11px; }\n .diagramBlock .inputs .input-port .input-port-plug .srd-port {\n background: grey; }\n .diagramBlock .inputs .input-port .input-port-label {\n margin-left: 10px;\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 4px) 4px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center; }\n .diagramBlock .outputs .output-port .output-port-plug .srd-port {\n background: grey; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n margin-right: 10px;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px; }\n",""])}])});
|