react-complaint-image 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +14 -14
- package/dist/react-complaint-image.js +6 -6
- package/dist/react-complaint-image.js.map +1 -1
- package/lib/ComplaintImageFactory.js +5 -5
- package/lib/MultipleComplaintImageFactory.js +24 -21
- package/package.json +121 -121
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactComplaintImage=t(require("react")):e.ReactComplaintImage=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=138)}([function(t,n){t.exports=e},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(142)()},function(e,t,n){"use strict";var r=Array.isArray;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=t.stripDiacritics=t.scrollIntoViewIfNeeded=t.preventInputBlur=t.pluralize=t.isShown=t.getTruncatedOptions=t.getStringLabelKey=t.getOptionLabel=t.getMenuItemId=t.getMatchBounds=t.getInputText=t.getHintText=t.getDisplayName=t.getAccessibilityStatus=t.defaultFilterBy=t.addCustomOption=void 0;var i=n(161),o=r(i),a=n(162),s=r(a),l=n(244),u=r(l),c=n(245),f=r(c),d=n(246),h=r(d),p=n(250),v=r(p),g=n(99),m=r(g),y=n(251),b=r(y),_=n(54),x=r(_),w=n(101),S=r(w),C=n(252),T=r(C),k=n(253),P=r(k),O=n(254),E=r(O),N=n(255),
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactComplaintImage=t(require("react")):e.ReactComplaintImage=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=138)}([function(t,n){t.exports=e},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(142)()},function(e,t,n){"use strict";var r=Array.isArray;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=t.stripDiacritics=t.scrollIntoViewIfNeeded=t.preventInputBlur=t.pluralize=t.isShown=t.getTruncatedOptions=t.getStringLabelKey=t.getOptionLabel=t.getMenuItemId=t.getMatchBounds=t.getInputText=t.getHintText=t.getDisplayName=t.getAccessibilityStatus=t.defaultFilterBy=t.addCustomOption=void 0;var i=n(161),o=r(i),a=n(162),s=r(a),l=n(244),u=r(l),c=n(245),f=r(c),d=n(246),h=r(d),p=n(250),v=r(p),g=n(99),m=r(g),y=n(251),b=r(y),_=n(54),x=r(_),w=n(101),S=r(w),C=n(252),T=r(C),k=n(253),P=r(k),O=n(254),E=r(O),N=n(255),M=r(N),K=n(256),F=r(K),I=n(53),R=r(I),A=n(9),D=r(A);t.addCustomOption=o.default,t.defaultFilterBy=s.default,t.getAccessibilityStatus=u.default,t.getDisplayName=f.default,t.getHintText=h.default,t.getInputText=v.default,t.getMatchBounds=m.default,t.getMenuItemId=b.default,t.getOptionLabel=x.default,t.getStringLabelKey=S.default,t.getTruncatedOptions=T.default,t.isShown=P.default,t.pluralize=E.default,t.preventInputBlur=M.default,t.scrollIntoViewIfNeeded=F.default,t.stripDiacritics=R.default,t.warn=D.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(82),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t,n){"use strict";var r,i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/*!
|
2
2
|
Copyright (c) 2017 Jed Watson.
|
3
3
|
Licensed under the MIT License (MIT), see
|
4
4
|
http://jedwatson.github.io/classnames
|
@@ -19,7 +19,7 @@ var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.pr
|
|
19
19
|
*
|
20
20
|
* @license
|
21
21
|
*/
|
22
|
-
!function(){var a=Math.PI/180,s={version:"2.5.1",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/comment/.test(function(){}),enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){var e=s.DD;return!!e&&e.isDragging},isDragReady:function(){var e=s.DD;return!!e&&!!e.node},_addId:function(e,t){t&&(this.ids[t]=e)},_removeId:function(e){void 0!==e&&delete this.ids[e]},_addName:function(e,t){t&&(this.names[t]||(this.names[t]=[]),this.names[t].push(e))},_removeName:function(e,t){if(e){var n=this.names[e];if(n){for(var r=0;r<n.length;r++){n[r]._id===t&&n.splice(r,1)}0===n.length&&delete this.names[e]}}},getAngle:function(e){return this.angleDeg?e*a:e},_detectIE:function(e){var t=e.indexOf("msie ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)},_parseUA:function(e){var t=e.toLowerCase(),n=/(chrome)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r=!!e.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),i=!!e.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:s._detectIE(t),mobile:r,ieMobile:i}},UA:void 0},l=void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{};s.UA=s._parseUA(l.navigator&&l.navigator.userAgent||""),l.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),l.Konva=s,s.global=l,s.window=l,s.document=l.document,"object"===o(t)?e.exports=s:void 0!==(i=function(){return s}.call(t,n,t,e))&&(e.exports=i)}(),function(){Konva.Collection=function(){var e=[].slice.call(arguments),t=e.length,n=0;for(this.length=t;n<t;n++)this[n]=e[n];return this},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(e){for(var t=0;t<this.length;t++)e(this[t],t)},Konva.Collection.prototype.toArray=function(){var e,t=[],n=this.length;for(e=0;e<n;e++)t.push(this[e]);return t},Konva.Collection.toCollection=function(e){var t,n=new Konva.Collection,r=e.length;for(t=0;t<r;t++)n.push(e[t]);return n},Konva.Collection._mapMethod=function(e){Konva.Collection.prototype[e]=function(){var t,n=this.length,r=[].slice.call(arguments);for(t=0;t<n;t++)this[t][e].apply(this[t],r);return this}},Konva.Collection.mapMethods=function(e){var t=e.prototype;for(var n in t)Konva.Collection._mapMethod(n)},Konva.Transform=function(e){this.m=e&&e.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){return new Konva.Transform(this.m)},point:function(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}},translate:function(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this},scale:function(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,a=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this},multiply:function(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],a=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},invert:function(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},getMatrix:function(){return this.m},setAbsolutePosition:function(e,t){var n=this.m[0],r=this.m[1],i=this.m[2],o=this.m[3],a=this.m[4],s=this.m[5],l=(n*(t-s)-r*(e-a))/(n*o-r*i),u=(e-a-i*l)/n;return this.translate(u,l)}};var e=Math.PI/180,t=180/Math.PI,n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},r=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;Konva.Util={_isElement:function(e){return!(!e||1!=e.nodeType)},_isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isObject:function(e){return!!e&&e.constructor===Object},_isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},_isNumber:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)&&isFinite(e)},_isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},_isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},isObject:function(e){return e instanceof Object},isValidSelector:function(e){if("string"!=typeof e)return!1;var t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign:function(e){return 0===e?0:e>0?1:-1},createCanvasElement:function(){var e=Konva.isBrowser?Konva.document.createElement("canvas"):new Konva._nodeCanvas;try{e.style=e.style||{}}catch(e){}return e},_isInDocument:function(e){for(;e=e.parentNode;)if(e==Konva.document)return!0;return!1},_simplifyArray:function(e){var t,n,r=[],i=e.length,o=Konva.Util;for(t=0;t<i;t++)n=e[t],o._isNumber(n)?n=Math.round(1e3*n)/1e3:o._isString(n)||(n=n.toString()),r.push(n);return r},_getImage:function(e,t){var n,r;if(e)if(this._isElement(e))t(e);else if(this._isString(e))n=new Konva.window.Image,n.onload=function(){t(n)},n.src=e;else if(e.data){r=Konva.Util.createCanvasElement(),r.width=e.width,r.height=e.height;var i=r.getContext("2d");i.putImageData(e,0,0),this._getImage(r.toDataURL(),t)}else t(null);else t(null)},_getRGBAString:function(e){return["rgba(",e.red||0,",",e.green||0,",",e.blue||0,",",e.alpha||1,")"].join("")},_rgbToHex:function(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb:function(e){e=e.replace("#","");var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor:function(){for(var e=(16777215*Math.random()<<0).toString(16);e.length<6;)e="0"+e;return"#"+e},get:function(e,t){return void 0===e?t:e},getRGB:function(e){var t;return e in n?(t=n[e],{r:t[0],g:t[1],b:t[2]}):"#"===e[0]?this._hexToRgb(e.substring(1)):"rgb("===e.substr(0,4)?(t=r.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(e){return e=e||"black",Konva.Util._namedColorToRBA(e)||Konva.Util._hex3ColorToRGBA(e)||Konva.Util._hex6ColorToRGBA(e)||Konva.Util._rgbColorToRGBA(e)||Konva.Util._rgbaColorToRGBA(e)},_namedColorToRBA:function(e){var t=n[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA:function(e){if(0===e.indexOf("rgb(")){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA:function(e){if(0===e.indexOf("rgba(")){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex6ColorToRGBA:function(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_merge:function(e,t){var n=this._clone(t);for(var r in e)this._isObject(e[r])?n[r]=this._merge(e[r],n[r]):n[r]=e[r];return n},trimRight:function(e){return e.replace(/\s+$/,"")},trimLeft:function(e){return e.replace(/^\s+/,"")},haveIntersection:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject:function(e){var t={};for(var n in e)this._isObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray:function(e){return e.slice(0)},_degToRad:function(t){return t*e},_radToDeg:function(e){return e*t},_capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw:function(e){throw new Error("Konva error: "+e)},error:function(e){console.error("Konva error: "+e)},warn:function(e){Konva.global.console&&console.warn&&Konva.showWarnings&&console.warn("Konva warning: "+e)},extend:function(e,t){function n(){this.constructor=e}n.prototype=t.prototype;var r=e.prototype;e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.__super__=t.prototype,e.super=t},addMethods:function(e,t){var n;for(n in t)e.prototype[n]=t[n]},_getControlPoints:function(e,t,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=a*s/(s+l),c=a*l/(s+l);return[n-u*(i-e),r-u*(o-t),n+c*(i-e),r+c*(o-t)]},_expandPoints:function(e,t){var n,r,i=e.length,o=[];for(n=2;n<i-2;n+=2)r=Konva.Util._getControlPoints(e[n-2],e[n-1],e[n],e[n+1],e[n+2],e[n+3],t),o.push(r[0]),o.push(r[1]),o.push(e[n]),o.push(e[n+1]),o.push(r[2]),o.push(r[3]);return o},_removeLastLetter:function(e){return e.substring(0,e.length-1)},each:function(e,t){for(var n in e)t(n,e[n])},_inRange:function(e,t,n){return t<=e&&e<n},_getProjectionToSegment:function(e,t,n,r,i,o){var a,s,l,u=(e-n)*(e-n)+(t-r)*(t-r);if(0==u)a=e,s=t,l=(i-n)*(i-n)+(o-r)*(o-r);else{var c=((i-e)*(n-e)+(o-t)*(r-t))/u;c<0?(a=e,s=t,l=(e-i)*(e-i)+(t-o)*(t-o)):c>1?(a=n,s=r,l=(n-i)*(n-i)+(r-o)*(r-o)):(a=e+c*(n-e),s=t+c*(r-t),l=(a-i)*(a-i)+(s-o)*(s-o))}return[a,s,l]},_getProjectionToLine:function(e,t,n){var r=Konva.Util.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(o,a){if(n||a!==t.length-1){var s=t[(a+1)%t.length],l=Konva.Util._getProjectionToSegment(o.x,o.y,s.x,s.y,e.x,e.y),u=l[0],c=l[1],f=l[2];f<i&&(r.x=u,r.y=c,i=f)}}),r},_prepareArrayForTween:function(e,t,n){var r,i=[],o=[];if(e.length>t.length){var a=t;t=e,e=a}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)o.push({x:t[r],y:t[r+1]});var s=[];return o.forEach(function(e){var t=Konva.Util._getProjectionToLine(e,i,n);s.push(t.x),s.push(t.y)}),s},_prepareToStringify:function(e){var t;e.visitedByCircularReferenceRemoval=!0;for(var n in e)if(e.hasOwnProperty(n)&&e[n]&&"object"==o(e[n]))if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||Konva.Util._isElement(e[n])){if(!t.configurable)return null;delete e[n]}else if(null===Konva.Util._prepareToStringify(e[n])){if(!t.configurable)return null;delete e[n]}return delete e.visitedByCircularReferenceRemoval,e}}}(),function(){function e(){if(t)return t;var e=Konva.Util.createCanvasElement(),n=e.getContext("2d");return t=function(){return(Konva.window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)}()}var t;Konva.Canvas=function(e){this.init(e)},Konva.Canvas.prototype={init:function(t){var n=t||{},r=n.pixelRatio||Konva.pixelRatio||e();this.pixelRatio=r,this._canvas=Konva.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0},getContext:function(){return this.context},getPixelRatio:function(){return this.pixelRatio},setPixelRatio:function(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)},setWidth:function(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)},setHeight:function(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)},getWidth:function(){return this.width},getHeight:function(){return this.height},setSize:function(e,t){this.setWidth(e),this.setHeight(t)},toDataURL:function(e,t){try{return this._canvas.toDataURL(e,t)}catch(e){try{return this._canvas.toDataURL()}catch(e){return Konva.Util.warn("Unable to get data URL. "+e.message),""}}}},Konva.SceneCanvas=function(e){var t=e||{},n=t.width||0,r=t.height||0;Konva.Canvas.call(this,t),this.context=new Konva.SceneContext(this),this.setSize(n,r)},Konva.Util.extend(Konva.SceneCanvas,Konva.Canvas),Konva.HitCanvas=function(e){var t=e||{},n=t.width||0,r=t.height||0;Konva.Canvas.call(this,t),this.context=new Konva.HitContext(this),this.setSize(n,r),this.hitCanvas=!0},Konva.Util.extend(Konva.HitCanvas,Konva.Canvas)}(),function(){var e=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],t=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation"];Konva.Context=function(e){this.init(e)},Konva.Context.prototype={init:function(e){this.canvas=e,this._context=e._canvas.getContext("2d"),Konva.enableTrace&&(this.traceArr=[],this._enableTrace())},fillShape:function(e){e.getFillEnabled()&&this._fill(e)},strokeShape:function(e){e.getStrokeEnabled()&&this._stroke(e)},fillStrokeShape:function(e){e.getFillEnabled()&&this._fill(e),e.getStrokeEnabled()&&this._stroke(e)},getTrace:function(e){var t,n,r,i,o=this.traceArr,a=o.length,s="";for(t=0;t<a;t++)n=o[t],r=n.method,r?(i=n.args,s+=r,e?s+="()":Konva.Util._isArray(i[0])?s+="(["+i.join(",")+"])":s+="("+i.join(",")+")"):(s+=n.property,e||(s+="="+n.val)),s+=";";return s},clearTrace:function(){this.traceArr=[]},_trace:function(e){var t,n=this.traceArr;n.push(e),(t=n.length)>=Konva.traceArrMax&&n.shift()},reset:function(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)},getCanvas:function(){return this.canvas},clear:function(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)},_applyLineCap:function(e){var t=e.getLineCap();t&&this.setAttr("lineCap",t)},_applyOpacity:function(e){var t=e.getAbsoluteOpacity();1!==t&&this.setAttr("globalAlpha",t)},_applyLineJoin:function(e){var t=e.getLineJoin();t&&this.setAttr("lineJoin",t)},setAttr:function(e,t){this._context[e]=t},arc:function(){var e=arguments;this._context.arc(e[0],e[1],e[2],e[3],e[4],e[5])},beginPath:function(){this._context.beginPath()},bezierCurveTo:function(){var e=arguments;this._context.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])},clearRect:function(){var e=arguments;this._context.clearRect(e[0],e[1],e[2],e[3])},clip:function(){this._context.clip()},closePath:function(){this._context.closePath()},createImageData:function(){var e=arguments;return 2===e.length?this._context.createImageData(e[0],e[1]):1===e.length?this._context.createImageData(e[0]):void 0},createLinearGradient:function(){var e=arguments;return this._context.createLinearGradient(e[0],e[1],e[2],e[3])},createPattern:function(){var e=arguments;return this._context.createPattern(e[0],e[1])},createRadialGradient:function(){var e=arguments;return this._context.createRadialGradient(e[0],e[1],e[2],e[3],e[4],e[5])},drawImage:function(){var e=arguments,t=this._context;3===e.length?t.drawImage(e[0],e[1],e[2]):5===e.length?t.drawImage(e[0],e[1],e[2],e[3],e[4]):9===e.length&&t.drawImage(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},isPointInPath:function(e,t){return this._context.isPointInPath(e,t)},fill:function(){this._context.fill()},fillRect:function(e,t,n,r){this._context.fillRect(e,t,n,r)},strokeRect:function(e,t,n,r){this._context.strokeRect(e,t,n,r)},fillText:function(){var e=arguments;this._context.fillText(e[0],e[1],e[2])},measureText:function(e){return this._context.measureText(e)},getImageData:function(){var e=arguments;return this._context.getImageData(e[0],e[1],e[2],e[3])},lineTo:function(){var e=arguments;this._context.lineTo(e[0],e[1])},moveTo:function(){var e=arguments;this._context.moveTo(e[0],e[1])},rect:function(){var e=arguments;this._context.rect(e[0],e[1],e[2],e[3])},putImageData:function(){var e=arguments;this._context.putImageData(e[0],e[1],e[2])},quadraticCurveTo:function(){var e=arguments;this._context.quadraticCurveTo(e[0],e[1],e[2],e[3])},restore:function(){this._context.restore()},rotate:function(){var e=arguments;this._context.rotate(e[0])},save:function(){this._context.save()},scale:function(){var e=arguments;this._context.scale(e[0],e[1])},setLineDash:function(){var e=arguments,t=this._context;this._context.setLineDash?t.setLineDash(e[0]):"mozDash"in t?t.mozDash=e[0]:"webkitLineDash"in t&&(t.webkitLineDash=e[0])},getLineDash:function(){return this._context.getLineDash()},setTransform:function(){var e=arguments;this._context.setTransform(e[0],e[1],e[2],e[3],e[4],e[5])},stroke:function(){this._context.stroke()},strokeText:function(){var e=arguments;this._context.strokeText(e[0],e[1],e[2])},transform:function(){var e=arguments;this._context.transform(e[0],e[1],e[2],e[3],e[4],e[5])},translate:function(){var e=arguments;this._context.translate(e[0],e[1])},_enableTrace:function(){var t,n,r=this,i=e.length,o=Konva.Util._simplifyArray,a=this.setAttr;for(t=0;t<i;t++)!function(e){var t,i=r[e];r[e]=function(){return n=o(Array.prototype.slice.call(arguments,0)),t=i.apply(r,arguments),r._trace({method:e,args:n}),t}}(e[t]);r.setAttr=function(){a.apply(r,arguments);var e=arguments[0],t=arguments[1];"shadowOffsetX"!==e&&"shadowOffsetY"!==e&&"shadowBlur"!==e||(t/=this.canvas.getPixelRatio()),r._trace({property:e,val:t})}}},t.forEach(function(e){Object.defineProperty(Konva.Context.prototype,e,{get:function(){return this._context[e]},set:function(t){this._context[e]=t}})}),Konva.SceneContext=function(e){Konva.Context.call(this,e)},Konva.SceneContext.prototype={_fillColor:function(e){var t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)},_fillPattern:function(e){var t=e.getFillPatternX(),n=e.getFillPatternY(),r=e.getFillPatternScale(),i=Konva.getAngle(e.getFillPatternRotation()),o=e.getFillPatternOffset();(t||n)&&this.translate(t||0,n||0),i&&this.rotate(i),r&&this.scale(r.x,r.y),o&&this.translate(-1*o.x,-1*o.y),this.setAttr("fillStyle",this.createPattern(e.getFillPatternImage(),e.getFillPatternRepeat()||"repeat")),this.fill()},_fillLinearGradient:function(e){var t=e.getFillLinearGradientStartPoint(),n=e.getFillLinearGradientEndPoint(),r=e.getFillLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("fillStyle",i),e._fillFunc(this)}},_fillRadialGradient:function(e){for(var t=e.getFillRadialGradientStartPoint(),n=e.getFillRadialGradientEndPoint(),r=e.getFillRadialGradientStartRadius(),i=e.getFillRadialGradientEndRadius(),o=e.getFillRadialGradientColorStops(),a=this.createRadialGradient(t.x,t.y,r,n.x,n.y,i),s=0;s<o.length;s+=2)a.addColorStop(o[s],o[s+1]);this.setAttr("fillStyle",a),this.fill()},_fill:function(e){var t=e.fill(),n=e.getFillPriority();if(t&&"color"===n)return void this._fillColor(e);var r=e.getFillPatternImage();if(r&&"pattern"===n)return void this._fillPattern(e);var i=e.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)return void this._fillLinearGradient(e);var o=e.getFillRadialGradientColorStops();if(o&&"radial-gradient"===n)return void this._fillRadialGradient(e);t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):o&&this._fillRadialGradient(e)},_strokeLinearGradient:function(e){var t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}},_stroke:function(e){var t=e.dash(),n=e.getStrokeScaleEnabled()||e instanceof Konva.Text;if(e.hasStroke()){n||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),n||this.restore()}},_applyShadow:function(e){var t=Konva.Util,n=t.get(e.getShadowRGBA(),"black"),r=t.get(e.getShadowBlur(),5),i=t.get(e.getShadowOffset(),{x:0,y:0}),o=e.getAbsoluteScale(),a=this.canvas.getPixelRatio(),s=o.x*a,l=o.y*a;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*Math.min(Math.abs(s),Math.abs(l))),this.setAttr("shadowOffsetX",i.x*s),this.setAttr("shadowOffsetY",i.y*l)},_applyGlobalCompositeOperation:function(e){var t=e.getGlobalCompositeOperation();"source-over"!==t&&this.setAttr("globalCompositeOperation",t)}},Konva.Util.extend(Konva.SceneContext,Konva.Context),Konva.HitContext=function(e){Konva.Context.call(this,e)},Konva.HitContext.prototype={_fill:function(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()},_stroke:function(e){if(e.hasStroke()&&e.strokeHitEnabled()){var t=e.getStrokeScaleEnabled()||e instanceof Konva.Text;t||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(e),this.setAttr("lineWidth",e.strokeWidth()),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),t||this.restore()}}},Konva.Util.extend(Konva.HitContext,Konva.Context)}(),function(){Konva.Factory={addGetterSetter:function(e,t,n,r,i){this.addGetter(e,t,n),this.addSetter(e,t,r,i),this.addOverloadedGetterSetter(e,t)},addGetter:function(e,t,n){var r="get"+Konva.Util._capitalize(t);e.prototype[r]=function(){var e=this.attrs[t];return void 0===e?n:e}},addSetter:function(e,t,n,r){var i="set"+Konva.Util._capitalize(t);e.prototype[i]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter:function(e,t,n,r,i){var o,a,s=n.length,l=Konva.Util._capitalize,u="get"+l(t),c="set"+l(t);e.prototype[u]=function(){var e={};for(o=0;o<s;o++)a=n[o],e[a]=this.getAttr(t+l(a));return e},e.prototype[c]=function(e){var n,o=this.attrs[t];r&&(e=r.call(this,e));for(n in e)e.hasOwnProperty(n)&&this._setAttr(t+l(n),e[n]);return this._fireChangeEvent(t,o,e),i&&i.call(this),this},this.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter:function(e,t){var n=Konva.Util._capitalize(t),r="set"+n,i="get"+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter:function(e,t,n,r){Konva.Util.error("Adding deprecated "+t);var i="get"+Konva.Util._capitalize(t),o=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[i]=function(){Konva.Util.error(o);var e=this.attrs[t];return void 0===e?n:e},this.addSetter(e,t,r,function(){Konva.Util.error(o)}),this.addOverloadedGetterSetter(e,t)},backCompat:function(e,t){Konva.Util.each(t,function(t,n){function r(){i.apply(this,arguments),Konva.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}var i=e.prototype[n],o="get"+Konva.Util._capitalize(t),a="set"+Konva.Util._capitalize(t);e.prototype[t]=r,e.prototype[o]=r,e.prototype[a]=r})},afterSetFilter:function(){this._filterUpToDate=!1}},Konva.Validators={RGBComponent:function(e){return e>255?255:e<0?0:Math.round(e)},alphaComponent:function(e){return e>1?1:e<1e-4?1e-4:e},_formatValue:function(e){return Konva.Util._isString(e)?'"'+e+'"':"[object Number]"===Object.prototype.toString.call(e)?e:Konva.Util._isBoolean(e)?e:Object.prototype.toString.call(e)},getNumberValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isNumber(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}},getNumberOrAutoValidator:function(){if(Konva.isUnminified)return function(e,t){var n=Konva.Util._isNumber(e),r="auto"===e;return n||r||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}},getStringValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isString(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}},getFunctionValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isFunction(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}},getNumberArrayValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isArray(e)?e.forEach(function(e){Konva.Util._isNumber(e)||Konva.Util.warn('"'+t+'" attribute has non numeric element '+e+". Make sure that all elements are numbers.")}):Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.'),e}},getBooleanValidator:function(){if(Konva.isUnminified)return function(e,t){return!0===e||!1===e||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}}}(),function(e){var t="Shape",n=["id"],r=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(" "),i=["scaleXChange.konva","scaleYChange.konva"].join(" ");e.Node=function(e){this._init(e)},e.Util.addMethods(e.Node,{_init:function(t){this._id=e.idCounter++,this.eventListeners={},this.attrs={},this._cache={},this._filterUpToDate=!1,this._isUnderCache=!1,this.setAttrs(t),this.on(r,function(){this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}),this.on(i,function(){this._clearSelfAndDescendantCache("absoluteScale")}),this.on("visibleChange.konva",function(){this._clearSelfAndDescendantCache("visible")}),this.on("listeningChange.konva",function(){this._clearSelfAndDescendantCache("listening")}),this.on("opacityChange.konva",function(){this._clearSelfAndDescendantCache("absoluteOpacity")})},_clearCache:function(e){e?delete this._cache[e]:this._cache={}},_getCache:function(e,t){return void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]},_clearSelfAndDescendantCache:function(e){this._clearCache(e),this.children&&this.getChildren().each(function(t){t._clearSelfAndDescendantCache(e)})},clearCache:function(){return delete this._cache.canvas,this._filterUpToDate=!1,this},cache:function(t){var n=t||{},r={};void 0!==n.x&&void 0!==n.y&&void 0!==n.width&&void 0!==n.height||(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=n.width||r.width,o=n.height||r.height,a=n.pixelRatio,s=void 0===n.x?r.x:n.x,l=void 0===n.y?r.y:n.y,u=n.offset||0,c=n.drawBorder||!1;if(!i||!o)return void e.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");i+=2*u,o+=2*u,s-=u,l-=u;var f=new e.SceneCanvas({pixelRatio:a,width:i,height:o}),d=new e.SceneCanvas({pixelRatio:a,width:i,height:o}),h=new e.HitCanvas({pixelRatio:1,width:i,height:o}),p=f.getContext(),v=h.getContext();return h.isCache=!0,this.clearCache(),p.save(),v.save(),p.translate(-s,-l),v.translate(-s,-l),this._isUnderCache=!0,this._clearSelfAndDescendantCache("absoluteOpacity"),this._clearSelfAndDescendantCache("absoluteScale"),this.drawScene(f,this,!0),this.drawHit(h,this,!0),this._isUnderCache=!1,p.restore(),v.restore(),c&&(p.save(),p.beginPath(),p.rect(0,0,i,o),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.canvas={scene:f,filter:d,hit:h,x:s,y:l},this},getClientRect:function(){throw new Error('abstract "getClientRect" method call')},_transformedRect:function(e,t){var n,r,i,o,a=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],s=this.getAbsoluteTransform(t);return a.forEach(function(e){var t=s.point(e);void 0===n&&(n=i=t.x,r=o=t.y),n=Math.min(n,t.x),r=Math.min(r,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y)}),{x:n,y:r,width:i-n,height:o-r}},_drawCachedSceneCanvas:function(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this),e.translate(this._cache.canvas.x,this._cache.canvas.y);var t=this._getCachedSceneCanvas(),n=t.pixelRatio;e.drawImage(t._canvas,0,0,t.width/n,t.height/n),e.restore()},_drawCachedHitCanvas:function(e){var t=this._cache.canvas,n=t.hit;e.save(),e.translate(this._cache.canvas.x,this._cache.canvas.y),e.drawImage(n._canvas,0,0),e.restore()},_getCachedSceneCanvas:function(){var t,n,r,i,a=this.filters(),s=this._cache.canvas,l=s.scene,u=s.filter,c=u.getContext();if(a){if(!this._filterUpToDate){var f=l.pixelRatio;try{for(t=a.length,c.clear(),c.drawImage(l._canvas,0,0,l.getWidth()/f,l.getHeight()/f),n=c.getImageData(0,0,u.getWidth(),u.getHeight()),r=0;r<t;r++)i=a[r],"function"==typeof i?(i.call(this,n),c.putImageData(n,0,0)):e.Util.error("Filter should be type of function, but got "+(void 0===i?"undefined":o(i))+" insted. Please check correct filters")}catch(t){e.Util.error("Unable to apply filter. "+t.message)}this._filterUpToDate=!0}return u}return l},on:function(e,t){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a,s=e.split(" "),l=s.length;for(n=0;n<l;n++)r=s[n],i=r.split("."),o=i[0],a=i[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:a,handler:t});return this},off:function(e,t){var n,r,i,o,a,s,l=(e||"").split(" "),u=l.length;if(!e)for(r in this.eventListeners)this._off(r);for(n=0;n<u;n++)if(i=l[n],o=i.split("."),a=o[0],s=o[1],a)this.eventListeners[a]&&this._off(a,s,t);else for(r in this.eventListeners)this._off(r,s,t);return this},dispatchEvent:function(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this},addEventListener:function(e,t){return this.on(e,function(e){t.call(this,e.evt)}),this},removeEventListener:function(e){return this.off(e),this},_delegate:function(t,n,r){var i=this;this.on(t,function(t){for(var o=t.target.findAncestors(n,!0,i),a=0;a<o.length;a++)t=e.Util.cloneObject(t),t.currentTarget=o[a],r.call(o[a],t)})},remove:function(){var e=this.getParent();return e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache("stage"),this._clearSelfAndDescendantCache("absoluteTransform"),this._clearSelfAndDescendantCache("visible"),this._clearSelfAndDescendantCache("listening"),this._clearSelfAndDescendantCache("absoluteOpacity"),this},destroy:function(){e._removeId(this.getId());for(var t=(this.getName()||"").split(/\s/g),n=0;n<t.length;n++){var r=t[n];e._removeName(r,this._id)}return this.remove(),this},getAttr:function(t){var n="get"+e.Util._capitalize(t);return e.Util._isFunction(this[n])?this[n]():this.attrs[t]},getAncestors:function(){for(var t=this.getParent(),n=new e.Collection;t;)n.push(t),t=t.getParent();return n},getAttrs:function(){return this.attrs||{}},setAttrs:function(t){var n,r;if(!t)return this;for(n in t)"children"!==n&&(r="set"+e.Util._capitalize(n),e.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]));return this},isListening:function(){return this._getCache("listening",this._isListening)},_isListening:function(){var e=this.getListening(),t=this.getParent();return"inherit"===e?!t||t.isListening():e},isVisible:function(){return this._getCache("visible",this._isVisible)},_isVisible:function(e){var t=this.getVisible(),n=this.getParent();return e===n&&"inherit"===t||(e===n?t:"inherit"===t?!n||n._isVisible(e):t)},shouldDrawHit:function(){var e=this.getLayer();return!e&&this.isListening()&&this.isVisible()||e&&e.hitGraphEnabled()&&this.isListening()&&this.isVisible()},show:function(){return this.setVisible(!0),this},hide:function(){return this.setVisible(!1),this},getZIndex:function(){return this.index||0},getAbsoluteZIndex:function(){function e(u){for(n=[],r=u.length,i=0;i<r;i++)o=u[i],l++,o.nodeType!==t&&(n=n.concat(o.getChildren().toArray())),o._id===s._id&&(i=r);n.length>0&&n[0].getDepth()<=a&&e(n)}var n,r,i,o,a=this.getDepth(),s=this,l=0;return"Stage"!==s.nodeType&&e(s.getStage().getChildren()),l},getDepth:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},setPosition:function(e){return this.setX(e.x),this.setY(e.y),this},getPosition:function(){return{x:this.getX(),y:this.getY()}},getAbsolutePosition:function(t){var n=this.getAbsoluteTransform(t).getMatrix(),r=new e.Transform,i=this.offset();return r.m=n.slice(),r.translate(i.x,i.y),r.getTranslation()},setAbsolutePosition:function(e){var t,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,t=this.getAbsoluteTransform(),t.invert(),t.translate(e.x,e.y),e={x:this.attrs.x+t.getTranslation().x,y:this.attrs.y+t.getTranslation().y},this.setPosition({x:e.x,y:e.y}),this._setTransform(n),this},_setTransform:function(e){var t;for(t in e)this.attrs[t]=e[t];this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_clearTransform:function(){var e={x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform"),e},move:function(e){var t=e.x,n=e.y,r=this.getX(),i=this.getY();return void 0!==t&&(r+=t),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this},_eachAncestorReverse:function(e,t){var n,r,i=[],o=this.getParent();if(t&&t._id===this._id)return void e(this);for(i.unshift(this);o&&(!t||o._id!==t._id);)i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)e(i[r])},rotate:function(e){return this.setRotation(this.getRotation()+e),this},moveToTop:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},moveUp:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},moveDown:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},moveToBottom:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},setZIndex:function(t){if(!this.parent)return e.Util.warn("Node has no parent. zIndex parameter is ignored."),!1;var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},getAbsoluteOpacity:function(){return this._getCache("absoluteOpacity",this._getAbsoluteOpacity)},_getAbsoluteOpacity:function(){var e=this.getOpacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=this.getParent().getAbsoluteOpacity()),e},moveTo:function(e){return this.getParent()!==e&&((this.__originalRemove||this.remove).call(this),e.add(this)),this},toObject:function(){var t,n,r,i,o={},a=this.getAttrs();o.attrs={};for(t in a)n=a[t],r="function"==typeof this[t]&&this[t],delete a[t],i=r?r.call(this):null,a[t]=n,i!==n&&(o.attrs[t]=n);return o.className=this.getClassName(),e.Util._prepareToStringify(o)},toJSON:function(){return JSON.stringify(this.toObject())},getParent:function(){return this.parent},findAncestors:function(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r},findAncestor:function(e,t,n){return this.findAncestors(e,t,n)[0]},_isMatch:function(t){if(!t)return!1;var n,r,i=t.replace(/ /g,"").split(","),o=i.length;for(n=0;n<o;n++)if(r=i[n],e.Util.isValidSelector(r)||(e.Util.warn('Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),e.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),e.Util.warn("Konva is awesome, right?")),"#"===r.charAt(0)){if(this.id()===r.slice(1))return!0}else if("."===r.charAt(0)){if(this.hasName(r.slice(1)))return!0}else if(0!==this._get(r).length)return!0;return!1},getLayer:function(){var e=this.getParent();return e?e.getLayer():null},getStage:function(){return this._getCache("stage",this._getStage)},_getStage:function(){var e=this.getParent();return e?e.getStage():void 0},fire:function(e,t,n){return t=t||{},t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this},getAbsoluteTransform:function(e){return e?this._getAbsoluteTransform(e):this._getCache("absoluteTransform",this._getAbsoluteTransform)},_getAbsoluteTransform:function(t){var n=new e.Transform;return this._eachAncestorReverse(function(e){var t=e.transformsEnabled();"all"===t?n.multiply(e.getTransform()):"position"===t&&n.translate(e.getX()-e.getOffsetX(),e.getY()-e.getOffsetY())},t),n},getAbsoluteScale:function(e){return e?this._getAbsoluteScale(e):this._getCache("absoluteScale",this._getAbsoluteScale)},_getAbsoluteScale:function(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();var n=1,r=1;return this._eachAncestorReverse(function(e){n*=e.scaleX(),r*=e.scaleY()},e),{x:n,y:r}},getTransform:function(){return this._getCache("transform",this._getTransform)},_getTransform:function(){var t=new e.Transform,n=this.getX(),r=this.getY(),i=e.getAngle(this.getRotation()),o=this.getScaleX(),a=this.getScaleY(),s=this.getSkewX(),l=this.getSkewY(),u=this.getOffsetX(),c=this.getOffsetY();return 0===n&&0===r||t.translate(n,r),0!==i&&t.rotate(i),0===s&&0===l||t.skew(s,l),1===o&&1===a||t.scale(o,a),0===u&&0===c||t.translate(-1*u,-1*c),t},clone:function(t){var r,i,o,a,s,l=e.Util.cloneObject(this.attrs);for(var u in n){delete l[n[u]]}for(r in t)l[r]=t[r];var c=new this.constructor(l);for(r in this.eventListeners)for(i=this.eventListeners[r],o=i.length,a=0;a<o;a++)s=i[a],s.name.indexOf("konva")<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(s));return c},_toKonvaCanvas:function(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),i=void 0!==t.x?t.x:n.x,o=void 0!==t.y?t.y:n.y,a=t.pixelRatio||1,s=new e.SceneCanvas({width:t.width||n.width||(r?r.getWidth():0),height:t.height||n.height||(r?r.getHeight():0),pixelRatio:a}),l=s.getContext();return l.save(),(i||o)&&l.translate(-1*i,-1*o),this.drawScene(s),l.restore(),s},toCanvas:function(e){return this._toKonvaCanvas(e)._canvas},toDataURL:function(e){e=e||{};var t=e.mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r},toImage:function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var n=t.callback;delete t.callback,e.Util._getImage(this.toDataURL(t),function(e){n(e)})},setSize:function(e){return this.setWidth(e.width),this.setHeight(e.height),this},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getWidth:function(){return this.attrs.width||0},getHeight:function(){return this.attrs.height||0},getClassName:function(){return this.className||this.nodeType},getType:function(){return this.nodeType},getDragDistance:function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():e.dragDistance},_get:function(e){return this.className===e||this.nodeType===e?[this]:[]},_off:function(e,t,n){var r,i,o,a=this.eventListeners[e];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,!("konva"===i&&"konva"!==t||t&&i!==t||n&&n!==o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[e];break}r--}},_fireChangeEvent:function(e,t,n){this._fire(e+"Change",{oldVal:t,newVal:n})},setId:function(t){var n=this.getId();return e._removeId(n),e._addId(this,t),this._setAttr("id",t),this},setName:function(t){var n,r,i=(this.getName()||"").split(/\s/g),o=(t||"").split(/\s/g);for(r=0;r<i.length;r++)n=i[r],-1===o.indexOf(n)&&n&&e._removeName(n,this._id);for(r=0;r<o.length;r++)n=o[r],-1===i.indexOf(n)&&n&&e._addName(this,n);return this._setAttr("name",t),this},addName:function(e){if(!this.hasName(e)){var t=this.name(),n=t?t+" "+e:e;this.setName(n)}return this},hasName:function(e){return-1!==(this.name()||"").split(/\s/g).indexOf(e)},removeName:function(e){var t=(this.name()||"").split(/\s/g),n=t.indexOf(e);return-1!==n&&(t.splice(n,1),this.setName(t.join(" "))),this},setAttr:function(t,n){var r="set"+e.Util._capitalize(t),i=this[r];return e.Util._isFunction(i)?i.call(this,n):this._setAttr(t,n),this},_setAttr:function(t,n){var r;(r=this.attrs[t])===n&&!e.Util.isObject(n)||(void 0===n||null===n?delete this.attrs[t]:this.attrs[t]=n,this._fireChangeEvent(t,r,n))},_setComponentAttr:function(e,t,n){var r;void 0!==n&&(r=this.attrs[e],r||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))},_fireAndBubble:function(e,n,r){var i=!0;if(n&&this.nodeType===t&&(n.target=this),"mouseenter"===e&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))?i=!1:"mouseleave"===e&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))&&(i=!1),i){this._fire(e,n);var o=("mouseenter"===e||"mouseleave"===e)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,n,r.parent):this._fireAndBubble.call(this.parent,e,n))}},_fire:function(e,t){var n,r=this.eventListeners[e];if(t=t||{},t.currentTarget=this,t.type=e,r)for(n=0;n<r.length;n++)r[n].handler.call(this,t)},draw:function(){return this.drawScene(),this.drawHit(),this}}),e.Node.create=function(t,n){return e.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)},e.Node._createNode=function(t,n){var r,i,o,a=e.Node.prototype.getClassName.call(t),s=t.children;if(n&&(t.attrs.container=n),r=new e[a](t.attrs),s)for(i=s.length,o=0;o<i;o++)r.add(this._createNode(s[o]));return r},e.Factory.addOverloadedGetterSetter(e.Node,"position"),e.Factory.addGetterSetter(e.Node,"x",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"y",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"globalCompositeOperation","source-over",e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Node,"opacity",1,e.Validators.getNumberValidator()),e.Factory.addGetter(e.Node,"name"),e.Factory.addOverloadedGetterSetter(e.Node,"name"),e.Factory.addGetter(e.Node,"id"),e.Factory.addOverloadedGetterSetter(e.Node,"id"),e.Factory.addGetterSetter(e.Node,"rotation",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"scale",["x","y"]),e.Factory.addGetterSetter(e.Node,"scaleX",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"scaleY",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"skew",["x","y"]),e.Factory.addGetterSetter(e.Node,"skewX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"skewY",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"offset",["x","y"]),e.Factory.addGetterSetter(e.Node,"offsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"offsetY",0,e.Validators.getNumberValidator()),e.Factory.addSetter(e.Node,"dragDistance",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"dragDistance"),e.Factory.addSetter(e.Node,"width",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"width"),e.Factory.addSetter(e.Node,"height",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"height"),e.Factory.addGetterSetter(e.Node,"listening","inherit",function(t){return!0===t||!1===t||"inherit"===t||e.Util.warn(t+' is a not valid value for "listening" attribute. The value may be true, false or "inherit".'),t}),e.Factory.addGetterSetter(e.Node,"preventDefault",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Node,"filters",null,function(e){return this._filterUpToDate=!1,e}),e.Factory.addGetterSetter(e.Node,"visible","inherit",function(t){return!0===t||!1===t||"inherit"===t||e.Util.warn(t+' is a not valid value for "visible" attribute. The value may be true, false or "inherit".'),t}),e.Factory.addGetterSetter(e.Node,"transformsEnabled","all",e.Validators.getStringValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"size"),e.Factory.backCompat(e.Node,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),e.Collection.mapMethods(e.Node)}(Konva),function(){Konva.Filters.Grayscale=function(e){var t,n,r=e.data,i=r.length;for(t=0;t<i;t+=4)n=.34*r[t]+.5*r[t+1]+.16*r[t+2],r[t]=n,r[t+1]=n,r[t+2]=n}}(),function(e){e.Filters.Brighten=function(e){var t,n=255*this.brightness(),r=e.data,i=r.length;for(t=0;t<i;t+=4)r[t]+=n,r[t+1]+=n,r[t+2]+=n},e.Factory.addGetterSetter(e.Node,"brightness",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){Konva.Filters.Invert=function(e){var t,n=e.data,r=n.length;for(t=0;t<r;t+=4)n[t]=255-n[t],n[t+1]=255-n[t+1],n[t+2]=255-n[t+2]}}(),function(e){function t(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function n(e,n){var o,a,s,l,u,c,f,d,h,p,v,g,m,y,b,_,x,w,S,C,T,k,P,O,E=e.data,N=e.width,K=e.height,M=n+n+1,F=N-1,I=K-1,R=n+1,A=R*(R+1)/2,D=new t,j=null,L=D,U=null,z=null,V=r[n],G=i[n];for(s=1;s<M;s++)L=L.next=new t,s===R&&(j=L);for(L.next=D,f=c=0,a=0;a<K;a++){for(_=x=w=S=d=h=p=v=0,g=R*(C=E[c]),m=R*(T=E[c+1]),y=R*(k=E[c+2]),b=R*(P=E[c+3]),d+=A*C,h+=A*T,p+=A*k,v+=A*P,L=D,s=0;s<R;s++)L.r=C,L.g=T,L.b=k,L.a=P,L=L.next;for(s=1;s<R;s++)l=c+((F<s?F:s)<<2),d+=(L.r=C=E[l])*(O=R-s),h+=(L.g=T=E[l+1])*O,p+=(L.b=k=E[l+2])*O,v+=(L.a=P=E[l+3])*O,_+=C,x+=T,w+=k,S+=P,L=L.next;for(U=D,z=j,o=0;o<N;o++)E[c+3]=P=v*V>>G,0!==P?(P=255/P,E[c]=(d*V>>G)*P,E[c+1]=(h*V>>G)*P,E[c+2]=(p*V>>G)*P):E[c]=E[c+1]=E[c+2]=0,d-=g,h-=m,p-=y,v-=b,g-=U.r,m-=U.g,y-=U.b,b-=U.a,l=f+((l=o+n+1)<F?l:F)<<2,_+=U.r=E[l],x+=U.g=E[l+1],w+=U.b=E[l+2],S+=U.a=E[l+3],d+=_,h+=x,p+=w,v+=S,U=U.next,g+=C=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=C,x-=T,w-=k,S-=P,z=z.next,c+=4;f+=N}for(o=0;o<N;o++){for(x=w=S=_=h=p=v=d=0,c=o<<2,g=R*(C=E[c]),m=R*(T=E[c+1]),y=R*(k=E[c+2]),b=R*(P=E[c+3]),d+=A*C,h+=A*T,p+=A*k,v+=A*P,L=D,s=0;s<R;s++)L.r=C,L.g=T,L.b=k,L.a=P,L=L.next;for(u=N,s=1;s<=n;s++)c=u+o<<2,d+=(L.r=C=E[c])*(O=R-s),h+=(L.g=T=E[c+1])*O,p+=(L.b=k=E[c+2])*O,v+=(L.a=P=E[c+3])*O,_+=C,x+=T,w+=k,S+=P,L=L.next,s<I&&(u+=N);for(c=o,U=D,z=j,a=0;a<K;a++)l=c<<2,E[l+3]=P=v*V>>G,P>0?(P=255/P,E[l]=(d*V>>G)*P,E[l+1]=(h*V>>G)*P,E[l+2]=(p*V>>G)*P):E[l]=E[l+1]=E[l+2]=0,d-=g,h-=m,p-=y,v-=b,g-=U.r,m-=U.g,y-=U.b,b-=U.a,l=o+((l=a+R)<I?l:I)*N<<2,d+=_+=U.r=E[l],h+=x+=U.g=E[l+1],p+=w+=U.b=E[l+2],v+=S+=U.a=E[l+3],U=U.next,g+=C=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=C,x-=T,w-=k,S-=P,z=z.next,c+=N}}var r=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];e.Filters.Blur=function(e){var t=Math.round(this.blurRadius());t>0&&n(e,t)},e.Factory.addGetterSetter(e.Node,"blurRadius",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){function e(e,t,n){var r=4*(n*e.width+t),i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function t(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function n(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function r(r,i){var o=e(r,0,0),a=e(r,r.width-1,0),s=e(r,0,r.height-1),l=e(r,r.width-1,r.height-1),u=i||10;if(t(o,a)<u&&t(a,l)<u&&t(l,s)<u&&t(s,o)<u){for(var c=n([a,o,l,s]),f=[],d=0;d<r.width*r.height;d++){var h=t(c,[r.data[4*d],r.data[4*d+1],r.data[4*d+2]]);f[d]=h<u?0:255}return f}}function i(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function o(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=2040===c?255:0}return a}function a(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=c>=1020?255:0}return a}function s(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=c}return a}Konva.Filters.Mask=function(e){var t=this.threshold(),n=r(e,t);return n&&(n=o(n,e.width,e.height),n=a(n,e.width,e.height),n=s(n,e.width,e.height),i(e,n)),e},Konva.Factory.addGetterSetter(Konva.Node,"threshold",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.RGB=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(t=0;t<i;t+=4)n=(.34*r[t]+.5*r[t+1]+.16*r[t+2])/255,r[t]=n*o,r[t+1]=n*a,r[t+2]=n*s,r[t+3]=r[t+3]},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.RGBA=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),l=this.alpha();for(t=0;t<i;t+=4)n=1-l,r[t]=o*l+r[t]*n,r[t+1]=a*l+r[t+1]*n,r[t+2]=s*l+r[t+2]*n},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e})}(),function(){Konva.Filters.HSV=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,f=l*u*Math.cos(c*Math.PI/180),d=l*u*Math.sin(c*Math.PI/180),h=.299*l+.701*f+.167*d,p=.587*l-.587*f+.33*d,v=.114*l-.114*f-.497*d,g=.299*l-.299*f-.328*d,m=.587*l+.413*f+.035*d,y=.114*l-.114*f+.293*d,b=.299*l-.3*f+1.25*d,_=.587*l-.586*f-1.05*d,x=.114*l+.886*f-.2*d;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+v*i,a[t+1]=g*n+m*r+y*i,a[t+2]=b*n+_*r+x*i,a[t+3]=o},Konva.Factory.addGetterSetter(Konva.Node,"hue",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"value",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Factory.addGetterSetter(Konva.Node,"hue",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"luminance",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Filters.HSL=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,c=127*this.luminance(),f=1*l*Math.cos(u*Math.PI/180),d=1*l*Math.sin(u*Math.PI/180),h=.299+.701*f+.167*d,p=.587-.587*f+.33*d,v=.114-.114*f-.497*d,g=.299-.299*f-.328*d,m=.587+.413*f+.035*d,y=.114-.114*f+.293*d,b=.299-.3*f+1.25*d,_=.587-.586*f-1.05*d,x=.114+.886*f-.2*d;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+v*i+c,a[t+1]=g*n+m*r+y*i+c,a[t+2]=b*n+_*r+x*i+c,a[t+3]=o}}(),function(){Konva.Filters.Emboss=function(e){var t=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),o=0,a=0,s=e.data,l=e.width,u=e.height,c=4*l,f=u;switch(r){case"top-left":o=-1,a=-1;break;case"top":o=-1,a=0;break;case"top-right":o=-1,a=1;break;case"right":o=0,a=1;break;case"bottom-right":o=1,a=1;break;case"bottom":o=1,a=0;break;case"bottom-left":o=1,a=-1;break;case"left":o=0,a=-1;break;default:Konva.Util.error("Unknown emboss direction: "+r)}do{var d=(f-1)*c,h=o;f+h<1&&(h=0),f+h>u&&(h=0);var p=(f-1+h)*l*4,v=l;do{var g=d+4*(v-1),m=a;v+m<1&&(m=0),v+m>l&&(m=0);var y=p+4*(v-1+m),b=s[g]-s[y],_=s[g+1]-s[y+1],x=s[g+2]-s[y+2],w=b,S=w>0?w:-w,C=_>0?_:-_,T=x>0?x:-x;if(C>S&&(w=_),T>S&&(w=x),w*=t,i){var k=s[g]+w,P=s[g+1]+w,O=s[g+2]+w;s[g]=k>255?255:k<0?0:k,s[g+1]=P>255?255:P<0?0:P,s[g+2]=O>255?255:O<0?0:O}else{var E=n-w;E<0?E=0:E>255&&(E=255),s[g]=s[g+1]=s[g+2]=E}}while(--v)}while(--f)},Konva.Factory.addGetterSetter(Konva.Node,"embossStrength",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossWhiteLevel",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossDirection","top-left",null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossBlend",!1,null,Konva.Factory.afterSetFilter)}(),function(){function e(e,t,n,r,i){var o,a=n-t,s=i-r;return 0===a?r+s/2:0===s?r:(o=(e-t)/a,o=s*o+r)}Konva.Filters.Enhance=function(t){var n,r,i,o,a=t.data,s=a.length,l=a[0],u=l,c=a[1],f=c,d=a[2],h=d,p=this.enhance();if(0!==p){for(o=0;o<s;o+=4)n=a[o+0],n<l?l=n:n>u&&(u=n),r=a[o+1],r<c?c=r:r>f&&(f=r),i=a[o+2],i<d?d=i:i>h&&(h=i);u===l&&(u=255,l=0),f===c&&(f=255,c=0),h===d&&(h=255,d=0);var v,g,m,y,b,_,x,w,S;for(p>0?(g=u+p*(255-u),m=l-p*(l-0),b=f+p*(255-f),_=c-p*(c-0),w=h+p*(255-h),S=d-p*(d-0)):(v=.5*(u+l),g=u+p*(u-v),m=l+p*(l-v),y=.5*(f+c),b=f+p*(f-y),_=c+p*(c-y),x=.5*(h+d),w=h+p*(h-x),S=d+p*(d-x)),o=0;o<s;o+=4)a[o+0]=e(a[o+0],l,u,m,g),a[o+1]=e(a[o+1],c,f,_,b),a[o+2]=e(a[o+2],d,h,S,w)}},Konva.Factory.addGetterSetter(Konva.Node,"enhance",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Posterize=function(e){var t,n=Math.round(254*this.levels())+1,r=e.data,i=r.length,o=255/n;for(t=0;t<i;t+=1)r[t]=Math.floor(r[t]/o)*o},Konva.Factory.addGetterSetter(Konva.Node,"levels",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Noise=function(e){var t,n=255*this.noise(),r=e.data,i=r.length,o=n/2;for(t=0;t<i;t+=4)r[t+0]+=o-2*o*Math.random(),r[t+1]+=o-2*o*Math.random(),r[t+2]+=o-2*o*Math.random()},Konva.Factory.addGetterSetter(Konva.Node,"noise",.2,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Pixelate=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,v=Math.ceil(this.pixelSize()),g=e.width,m=e.height,y=Math.ceil(g/v),b=Math.ceil(m/v);if(e=e.data,v<=0)return void Konva.Util.error("pixelSize value can not be <= 0");for(d=0;d<y;d+=1)for(h=0;h<b;h+=1){for(i=0,o=0,a=0,s=0,l=d*v,u=l+v,c=h*v,f=c+v,p=0,t=l;t<u;t+=1)if(!(t>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+t),i+=e[r+0],o+=e[r+1],a+=e[r+2],s+=e[r+3],p+=1);for(i/=p,o/=p,a/=p,s/=p,t=l;t<u;t+=1)if(!(t>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+t),e[r+0]=i,e[r+1]=o,e[r+2]=a,e[r+3]=s)}},Konva.Factory.addGetterSetter(Konva.Node,"pixelSize",8,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Threshold=function(e){var t,n=255*this.threshold(),r=e.data,i=r.length;for(t=0;t<i;t+=1)r[t]=r[t]<n?0:255},Konva.Factory.addGetterSetter(Konva.Node,"threshold",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){/**
|
22
|
+
!function(){var a=Math.PI/180,s={version:"2.5.1",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/comment/.test(function(){}),enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){var e=s.DD;return!!e&&e.isDragging},isDragReady:function(){var e=s.DD;return!!e&&!!e.node},_addId:function(e,t){t&&(this.ids[t]=e)},_removeId:function(e){void 0!==e&&delete this.ids[e]},_addName:function(e,t){t&&(this.names[t]||(this.names[t]=[]),this.names[t].push(e))},_removeName:function(e,t){if(e){var n=this.names[e];if(n){for(var r=0;r<n.length;r++){n[r]._id===t&&n.splice(r,1)}0===n.length&&delete this.names[e]}}},getAngle:function(e){return this.angleDeg?e*a:e},_detectIE:function(e){var t=e.indexOf("msie ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)},_parseUA:function(e){var t=e.toLowerCase(),n=/(chrome)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r=!!e.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),i=!!e.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:s._detectIE(t),mobile:r,ieMobile:i}},UA:void 0},l=void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{};s.UA=s._parseUA(l.navigator&&l.navigator.userAgent||""),l.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),l.Konva=s,s.global=l,s.window=l,s.document=l.document,"object"===o(t)?e.exports=s:void 0!==(i=function(){return s}.call(t,n,t,e))&&(e.exports=i)}(),function(){Konva.Collection=function(){var e=[].slice.call(arguments),t=e.length,n=0;for(this.length=t;n<t;n++)this[n]=e[n];return this},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(e){for(var t=0;t<this.length;t++)e(this[t],t)},Konva.Collection.prototype.toArray=function(){var e,t=[],n=this.length;for(e=0;e<n;e++)t.push(this[e]);return t},Konva.Collection.toCollection=function(e){var t,n=new Konva.Collection,r=e.length;for(t=0;t<r;t++)n.push(e[t]);return n},Konva.Collection._mapMethod=function(e){Konva.Collection.prototype[e]=function(){var t,n=this.length,r=[].slice.call(arguments);for(t=0;t<n;t++)this[t][e].apply(this[t],r);return this}},Konva.Collection.mapMethods=function(e){var t=e.prototype;for(var n in t)Konva.Collection._mapMethod(n)},Konva.Transform=function(e){this.m=e&&e.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){return new Konva.Transform(this.m)},point:function(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}},translate:function(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this},scale:function(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,a=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this},multiply:function(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],a=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},invert:function(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},getMatrix:function(){return this.m},setAbsolutePosition:function(e,t){var n=this.m[0],r=this.m[1],i=this.m[2],o=this.m[3],a=this.m[4],s=this.m[5],l=(n*(t-s)-r*(e-a))/(n*o-r*i),u=(e-a-i*l)/n;return this.translate(u,l)}};var e=Math.PI/180,t=180/Math.PI,n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},r=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;Konva.Util={_isElement:function(e){return!(!e||1!=e.nodeType)},_isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isObject:function(e){return!!e&&e.constructor===Object},_isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},_isNumber:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)&&isFinite(e)},_isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},_isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},isObject:function(e){return e instanceof Object},isValidSelector:function(e){if("string"!=typeof e)return!1;var t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign:function(e){return 0===e?0:e>0?1:-1},createCanvasElement:function(){var e=Konva.isBrowser?Konva.document.createElement("canvas"):new Konva._nodeCanvas;try{e.style=e.style||{}}catch(e){}return e},_isInDocument:function(e){for(;e=e.parentNode;)if(e==Konva.document)return!0;return!1},_simplifyArray:function(e){var t,n,r=[],i=e.length,o=Konva.Util;for(t=0;t<i;t++)n=e[t],o._isNumber(n)?n=Math.round(1e3*n)/1e3:o._isString(n)||(n=n.toString()),r.push(n);return r},_getImage:function(e,t){var n,r;if(e)if(this._isElement(e))t(e);else if(this._isString(e))n=new Konva.window.Image,n.onload=function(){t(n)},n.src=e;else if(e.data){r=Konva.Util.createCanvasElement(),r.width=e.width,r.height=e.height;var i=r.getContext("2d");i.putImageData(e,0,0),this._getImage(r.toDataURL(),t)}else t(null);else t(null)},_getRGBAString:function(e){return["rgba(",e.red||0,",",e.green||0,",",e.blue||0,",",e.alpha||1,")"].join("")},_rgbToHex:function(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb:function(e){e=e.replace("#","");var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor:function(){for(var e=(16777215*Math.random()<<0).toString(16);e.length<6;)e="0"+e;return"#"+e},get:function(e,t){return void 0===e?t:e},getRGB:function(e){var t;return e in n?(t=n[e],{r:t[0],g:t[1],b:t[2]}):"#"===e[0]?this._hexToRgb(e.substring(1)):"rgb("===e.substr(0,4)?(t=r.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(e){return e=e||"black",Konva.Util._namedColorToRBA(e)||Konva.Util._hex3ColorToRGBA(e)||Konva.Util._hex6ColorToRGBA(e)||Konva.Util._rgbColorToRGBA(e)||Konva.Util._rgbaColorToRGBA(e)},_namedColorToRBA:function(e){var t=n[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA:function(e){if(0===e.indexOf("rgb(")){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA:function(e){if(0===e.indexOf("rgba(")){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex6ColorToRGBA:function(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_merge:function(e,t){var n=this._clone(t);for(var r in e)this._isObject(e[r])?n[r]=this._merge(e[r],n[r]):n[r]=e[r];return n},trimRight:function(e){return e.replace(/\s+$/,"")},trimLeft:function(e){return e.replace(/^\s+/,"")},haveIntersection:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject:function(e){var t={};for(var n in e)this._isObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray:function(e){return e.slice(0)},_degToRad:function(t){return t*e},_radToDeg:function(e){return e*t},_capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw:function(e){throw new Error("Konva error: "+e)},error:function(e){console.error("Konva error: "+e)},warn:function(e){Konva.global.console&&console.warn&&Konva.showWarnings&&console.warn("Konva warning: "+e)},extend:function(e,t){function n(){this.constructor=e}n.prototype=t.prototype;var r=e.prototype;e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.__super__=t.prototype,e.super=t},addMethods:function(e,t){var n;for(n in t)e.prototype[n]=t[n]},_getControlPoints:function(e,t,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=a*s/(s+l),c=a*l/(s+l);return[n-u*(i-e),r-u*(o-t),n+c*(i-e),r+c*(o-t)]},_expandPoints:function(e,t){var n,r,i=e.length,o=[];for(n=2;n<i-2;n+=2)r=Konva.Util._getControlPoints(e[n-2],e[n-1],e[n],e[n+1],e[n+2],e[n+3],t),o.push(r[0]),o.push(r[1]),o.push(e[n]),o.push(e[n+1]),o.push(r[2]),o.push(r[3]);return o},_removeLastLetter:function(e){return e.substring(0,e.length-1)},each:function(e,t){for(var n in e)t(n,e[n])},_inRange:function(e,t,n){return t<=e&&e<n},_getProjectionToSegment:function(e,t,n,r,i,o){var a,s,l,u=(e-n)*(e-n)+(t-r)*(t-r);if(0==u)a=e,s=t,l=(i-n)*(i-n)+(o-r)*(o-r);else{var c=((i-e)*(n-e)+(o-t)*(r-t))/u;c<0?(a=e,s=t,l=(e-i)*(e-i)+(t-o)*(t-o)):c>1?(a=n,s=r,l=(n-i)*(n-i)+(r-o)*(r-o)):(a=e+c*(n-e),s=t+c*(r-t),l=(a-i)*(a-i)+(s-o)*(s-o))}return[a,s,l]},_getProjectionToLine:function(e,t,n){var r=Konva.Util.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(o,a){if(n||a!==t.length-1){var s=t[(a+1)%t.length],l=Konva.Util._getProjectionToSegment(o.x,o.y,s.x,s.y,e.x,e.y),u=l[0],c=l[1],f=l[2];f<i&&(r.x=u,r.y=c,i=f)}}),r},_prepareArrayForTween:function(e,t,n){var r,i=[],o=[];if(e.length>t.length){var a=t;t=e,e=a}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)o.push({x:t[r],y:t[r+1]});var s=[];return o.forEach(function(e){var t=Konva.Util._getProjectionToLine(e,i,n);s.push(t.x),s.push(t.y)}),s},_prepareToStringify:function(e){var t;e.visitedByCircularReferenceRemoval=!0;for(var n in e)if(e.hasOwnProperty(n)&&e[n]&&"object"==o(e[n]))if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||Konva.Util._isElement(e[n])){if(!t.configurable)return null;delete e[n]}else if(null===Konva.Util._prepareToStringify(e[n])){if(!t.configurable)return null;delete e[n]}return delete e.visitedByCircularReferenceRemoval,e}}}(),function(){function e(){if(t)return t;var e=Konva.Util.createCanvasElement(),n=e.getContext("2d");return t=function(){return(Konva.window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)}()}var t;Konva.Canvas=function(e){this.init(e)},Konva.Canvas.prototype={init:function(t){var n=t||{},r=n.pixelRatio||Konva.pixelRatio||e();this.pixelRatio=r,this._canvas=Konva.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0},getContext:function(){return this.context},getPixelRatio:function(){return this.pixelRatio},setPixelRatio:function(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)},setWidth:function(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)},setHeight:function(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)},getWidth:function(){return this.width},getHeight:function(){return this.height},setSize:function(e,t){this.setWidth(e),this.setHeight(t)},toDataURL:function(e,t){try{return this._canvas.toDataURL(e,t)}catch(e){try{return this._canvas.toDataURL()}catch(e){return Konva.Util.warn("Unable to get data URL. "+e.message),""}}}},Konva.SceneCanvas=function(e){var t=e||{},n=t.width||0,r=t.height||0;Konva.Canvas.call(this,t),this.context=new Konva.SceneContext(this),this.setSize(n,r)},Konva.Util.extend(Konva.SceneCanvas,Konva.Canvas),Konva.HitCanvas=function(e){var t=e||{},n=t.width||0,r=t.height||0;Konva.Canvas.call(this,t),this.context=new Konva.HitContext(this),this.setSize(n,r),this.hitCanvas=!0},Konva.Util.extend(Konva.HitCanvas,Konva.Canvas)}(),function(){var e=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],t=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation"];Konva.Context=function(e){this.init(e)},Konva.Context.prototype={init:function(e){this.canvas=e,this._context=e._canvas.getContext("2d"),Konva.enableTrace&&(this.traceArr=[],this._enableTrace())},fillShape:function(e){e.getFillEnabled()&&this._fill(e)},strokeShape:function(e){e.getStrokeEnabled()&&this._stroke(e)},fillStrokeShape:function(e){e.getFillEnabled()&&this._fill(e),e.getStrokeEnabled()&&this._stroke(e)},getTrace:function(e){var t,n,r,i,o=this.traceArr,a=o.length,s="";for(t=0;t<a;t++)n=o[t],r=n.method,r?(i=n.args,s+=r,e?s+="()":Konva.Util._isArray(i[0])?s+="(["+i.join(",")+"])":s+="("+i.join(",")+")"):(s+=n.property,e||(s+="="+n.val)),s+=";";return s},clearTrace:function(){this.traceArr=[]},_trace:function(e){var t,n=this.traceArr;n.push(e),(t=n.length)>=Konva.traceArrMax&&n.shift()},reset:function(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)},getCanvas:function(){return this.canvas},clear:function(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)},_applyLineCap:function(e){var t=e.getLineCap();t&&this.setAttr("lineCap",t)},_applyOpacity:function(e){var t=e.getAbsoluteOpacity();1!==t&&this.setAttr("globalAlpha",t)},_applyLineJoin:function(e){var t=e.getLineJoin();t&&this.setAttr("lineJoin",t)},setAttr:function(e,t){this._context[e]=t},arc:function(){var e=arguments;this._context.arc(e[0],e[1],e[2],e[3],e[4],e[5])},beginPath:function(){this._context.beginPath()},bezierCurveTo:function(){var e=arguments;this._context.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])},clearRect:function(){var e=arguments;this._context.clearRect(e[0],e[1],e[2],e[3])},clip:function(){this._context.clip()},closePath:function(){this._context.closePath()},createImageData:function(){var e=arguments;return 2===e.length?this._context.createImageData(e[0],e[1]):1===e.length?this._context.createImageData(e[0]):void 0},createLinearGradient:function(){var e=arguments;return this._context.createLinearGradient(e[0],e[1],e[2],e[3])},createPattern:function(){var e=arguments;return this._context.createPattern(e[0],e[1])},createRadialGradient:function(){var e=arguments;return this._context.createRadialGradient(e[0],e[1],e[2],e[3],e[4],e[5])},drawImage:function(){var e=arguments,t=this._context;3===e.length?t.drawImage(e[0],e[1],e[2]):5===e.length?t.drawImage(e[0],e[1],e[2],e[3],e[4]):9===e.length&&t.drawImage(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},isPointInPath:function(e,t){return this._context.isPointInPath(e,t)},fill:function(){this._context.fill()},fillRect:function(e,t,n,r){this._context.fillRect(e,t,n,r)},strokeRect:function(e,t,n,r){this._context.strokeRect(e,t,n,r)},fillText:function(){var e=arguments;this._context.fillText(e[0],e[1],e[2])},measureText:function(e){return this._context.measureText(e)},getImageData:function(){var e=arguments;return this._context.getImageData(e[0],e[1],e[2],e[3])},lineTo:function(){var e=arguments;this._context.lineTo(e[0],e[1])},moveTo:function(){var e=arguments;this._context.moveTo(e[0],e[1])},rect:function(){var e=arguments;this._context.rect(e[0],e[1],e[2],e[3])},putImageData:function(){var e=arguments;this._context.putImageData(e[0],e[1],e[2])},quadraticCurveTo:function(){var e=arguments;this._context.quadraticCurveTo(e[0],e[1],e[2],e[3])},restore:function(){this._context.restore()},rotate:function(){var e=arguments;this._context.rotate(e[0])},save:function(){this._context.save()},scale:function(){var e=arguments;this._context.scale(e[0],e[1])},setLineDash:function(){var e=arguments,t=this._context;this._context.setLineDash?t.setLineDash(e[0]):"mozDash"in t?t.mozDash=e[0]:"webkitLineDash"in t&&(t.webkitLineDash=e[0])},getLineDash:function(){return this._context.getLineDash()},setTransform:function(){var e=arguments;this._context.setTransform(e[0],e[1],e[2],e[3],e[4],e[5])},stroke:function(){this._context.stroke()},strokeText:function(){var e=arguments;this._context.strokeText(e[0],e[1],e[2])},transform:function(){var e=arguments;this._context.transform(e[0],e[1],e[2],e[3],e[4],e[5])},translate:function(){var e=arguments;this._context.translate(e[0],e[1])},_enableTrace:function(){var t,n,r=this,i=e.length,o=Konva.Util._simplifyArray,a=this.setAttr;for(t=0;t<i;t++)!function(e){var t,i=r[e];r[e]=function(){return n=o(Array.prototype.slice.call(arguments,0)),t=i.apply(r,arguments),r._trace({method:e,args:n}),t}}(e[t]);r.setAttr=function(){a.apply(r,arguments);var e=arguments[0],t=arguments[1];"shadowOffsetX"!==e&&"shadowOffsetY"!==e&&"shadowBlur"!==e||(t/=this.canvas.getPixelRatio()),r._trace({property:e,val:t})}}},t.forEach(function(e){Object.defineProperty(Konva.Context.prototype,e,{get:function(){return this._context[e]},set:function(t){this._context[e]=t}})}),Konva.SceneContext=function(e){Konva.Context.call(this,e)},Konva.SceneContext.prototype={_fillColor:function(e){var t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)},_fillPattern:function(e){var t=e.getFillPatternX(),n=e.getFillPatternY(),r=e.getFillPatternScale(),i=Konva.getAngle(e.getFillPatternRotation()),o=e.getFillPatternOffset();(t||n)&&this.translate(t||0,n||0),i&&this.rotate(i),r&&this.scale(r.x,r.y),o&&this.translate(-1*o.x,-1*o.y),this.setAttr("fillStyle",this.createPattern(e.getFillPatternImage(),e.getFillPatternRepeat()||"repeat")),this.fill()},_fillLinearGradient:function(e){var t=e.getFillLinearGradientStartPoint(),n=e.getFillLinearGradientEndPoint(),r=e.getFillLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("fillStyle",i),e._fillFunc(this)}},_fillRadialGradient:function(e){for(var t=e.getFillRadialGradientStartPoint(),n=e.getFillRadialGradientEndPoint(),r=e.getFillRadialGradientStartRadius(),i=e.getFillRadialGradientEndRadius(),o=e.getFillRadialGradientColorStops(),a=this.createRadialGradient(t.x,t.y,r,n.x,n.y,i),s=0;s<o.length;s+=2)a.addColorStop(o[s],o[s+1]);this.setAttr("fillStyle",a),this.fill()},_fill:function(e){var t=e.fill(),n=e.getFillPriority();if(t&&"color"===n)return void this._fillColor(e);var r=e.getFillPatternImage();if(r&&"pattern"===n)return void this._fillPattern(e);var i=e.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)return void this._fillLinearGradient(e);var o=e.getFillRadialGradientColorStops();if(o&&"radial-gradient"===n)return void this._fillRadialGradient(e);t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):o&&this._fillRadialGradient(e)},_strokeLinearGradient:function(e){var t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}},_stroke:function(e){var t=e.dash(),n=e.getStrokeScaleEnabled()||e instanceof Konva.Text;if(e.hasStroke()){n||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),n||this.restore()}},_applyShadow:function(e){var t=Konva.Util,n=t.get(e.getShadowRGBA(),"black"),r=t.get(e.getShadowBlur(),5),i=t.get(e.getShadowOffset(),{x:0,y:0}),o=e.getAbsoluteScale(),a=this.canvas.getPixelRatio(),s=o.x*a,l=o.y*a;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*Math.min(Math.abs(s),Math.abs(l))),this.setAttr("shadowOffsetX",i.x*s),this.setAttr("shadowOffsetY",i.y*l)},_applyGlobalCompositeOperation:function(e){var t=e.getGlobalCompositeOperation();"source-over"!==t&&this.setAttr("globalCompositeOperation",t)}},Konva.Util.extend(Konva.SceneContext,Konva.Context),Konva.HitContext=function(e){Konva.Context.call(this,e)},Konva.HitContext.prototype={_fill:function(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()},_stroke:function(e){if(e.hasStroke()&&e.strokeHitEnabled()){var t=e.getStrokeScaleEnabled()||e instanceof Konva.Text;t||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(e),this.setAttr("lineWidth",e.strokeWidth()),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),t||this.restore()}}},Konva.Util.extend(Konva.HitContext,Konva.Context)}(),function(){Konva.Factory={addGetterSetter:function(e,t,n,r,i){this.addGetter(e,t,n),this.addSetter(e,t,r,i),this.addOverloadedGetterSetter(e,t)},addGetter:function(e,t,n){var r="get"+Konva.Util._capitalize(t);e.prototype[r]=function(){var e=this.attrs[t];return void 0===e?n:e}},addSetter:function(e,t,n,r){var i="set"+Konva.Util._capitalize(t);e.prototype[i]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter:function(e,t,n,r,i){var o,a,s=n.length,l=Konva.Util._capitalize,u="get"+l(t),c="set"+l(t);e.prototype[u]=function(){var e={};for(o=0;o<s;o++)a=n[o],e[a]=this.getAttr(t+l(a));return e},e.prototype[c]=function(e){var n,o=this.attrs[t];r&&(e=r.call(this,e));for(n in e)e.hasOwnProperty(n)&&this._setAttr(t+l(n),e[n]);return this._fireChangeEvent(t,o,e),i&&i.call(this),this},this.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter:function(e,t){var n=Konva.Util._capitalize(t),r="set"+n,i="get"+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter:function(e,t,n,r){Konva.Util.error("Adding deprecated "+t);var i="get"+Konva.Util._capitalize(t),o=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[i]=function(){Konva.Util.error(o);var e=this.attrs[t];return void 0===e?n:e},this.addSetter(e,t,r,function(){Konva.Util.error(o)}),this.addOverloadedGetterSetter(e,t)},backCompat:function(e,t){Konva.Util.each(t,function(t,n){function r(){i.apply(this,arguments),Konva.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}var i=e.prototype[n],o="get"+Konva.Util._capitalize(t),a="set"+Konva.Util._capitalize(t);e.prototype[t]=r,e.prototype[o]=r,e.prototype[a]=r})},afterSetFilter:function(){this._filterUpToDate=!1}},Konva.Validators={RGBComponent:function(e){return e>255?255:e<0?0:Math.round(e)},alphaComponent:function(e){return e>1?1:e<1e-4?1e-4:e},_formatValue:function(e){return Konva.Util._isString(e)?'"'+e+'"':"[object Number]"===Object.prototype.toString.call(e)?e:Konva.Util._isBoolean(e)?e:Object.prototype.toString.call(e)},getNumberValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isNumber(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}},getNumberOrAutoValidator:function(){if(Konva.isUnminified)return function(e,t){var n=Konva.Util._isNumber(e),r="auto"===e;return n||r||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}},getStringValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isString(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}},getFunctionValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isFunction(e)||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}},getNumberArrayValidator:function(){if(Konva.isUnminified)return function(e,t){return Konva.Util._isArray(e)?e.forEach(function(e){Konva.Util._isNumber(e)||Konva.Util.warn('"'+t+'" attribute has non numeric element '+e+". Make sure that all elements are numbers.")}):Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.'),e}},getBooleanValidator:function(){if(Konva.isUnminified)return function(e,t){return!0===e||!1===e||Konva.Util.warn(Konva.Validators._formatValue(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}}}(),function(e){var t="Shape",n=["id"],r=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(" "),i=["scaleXChange.konva","scaleYChange.konva"].join(" ");e.Node=function(e){this._init(e)},e.Util.addMethods(e.Node,{_init:function(t){this._id=e.idCounter++,this.eventListeners={},this.attrs={},this._cache={},this._filterUpToDate=!1,this._isUnderCache=!1,this.setAttrs(t),this.on(r,function(){this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}),this.on(i,function(){this._clearSelfAndDescendantCache("absoluteScale")}),this.on("visibleChange.konva",function(){this._clearSelfAndDescendantCache("visible")}),this.on("listeningChange.konva",function(){this._clearSelfAndDescendantCache("listening")}),this.on("opacityChange.konva",function(){this._clearSelfAndDescendantCache("absoluteOpacity")})},_clearCache:function(e){e?delete this._cache[e]:this._cache={}},_getCache:function(e,t){return void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]},_clearSelfAndDescendantCache:function(e){this._clearCache(e),this.children&&this.getChildren().each(function(t){t._clearSelfAndDescendantCache(e)})},clearCache:function(){return delete this._cache.canvas,this._filterUpToDate=!1,this},cache:function(t){var n=t||{},r={};void 0!==n.x&&void 0!==n.y&&void 0!==n.width&&void 0!==n.height||(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=n.width||r.width,o=n.height||r.height,a=n.pixelRatio,s=void 0===n.x?r.x:n.x,l=void 0===n.y?r.y:n.y,u=n.offset||0,c=n.drawBorder||!1;if(!i||!o)return void e.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");i+=2*u,o+=2*u,s-=u,l-=u;var f=new e.SceneCanvas({pixelRatio:a,width:i,height:o}),d=new e.SceneCanvas({pixelRatio:a,width:i,height:o}),h=new e.HitCanvas({pixelRatio:1,width:i,height:o}),p=f.getContext(),v=h.getContext();return h.isCache=!0,this.clearCache(),p.save(),v.save(),p.translate(-s,-l),v.translate(-s,-l),this._isUnderCache=!0,this._clearSelfAndDescendantCache("absoluteOpacity"),this._clearSelfAndDescendantCache("absoluteScale"),this.drawScene(f,this,!0),this.drawHit(h,this,!0),this._isUnderCache=!1,p.restore(),v.restore(),c&&(p.save(),p.beginPath(),p.rect(0,0,i,o),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.canvas={scene:f,filter:d,hit:h,x:s,y:l},this},getClientRect:function(){throw new Error('abstract "getClientRect" method call')},_transformedRect:function(e,t){var n,r,i,o,a=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],s=this.getAbsoluteTransform(t);return a.forEach(function(e){var t=s.point(e);void 0===n&&(n=i=t.x,r=o=t.y),n=Math.min(n,t.x),r=Math.min(r,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y)}),{x:n,y:r,width:i-n,height:o-r}},_drawCachedSceneCanvas:function(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this),e.translate(this._cache.canvas.x,this._cache.canvas.y);var t=this._getCachedSceneCanvas(),n=t.pixelRatio;e.drawImage(t._canvas,0,0,t.width/n,t.height/n),e.restore()},_drawCachedHitCanvas:function(e){var t=this._cache.canvas,n=t.hit;e.save(),e.translate(this._cache.canvas.x,this._cache.canvas.y),e.drawImage(n._canvas,0,0),e.restore()},_getCachedSceneCanvas:function(){var t,n,r,i,a=this.filters(),s=this._cache.canvas,l=s.scene,u=s.filter,c=u.getContext();if(a){if(!this._filterUpToDate){var f=l.pixelRatio;try{for(t=a.length,c.clear(),c.drawImage(l._canvas,0,0,l.getWidth()/f,l.getHeight()/f),n=c.getImageData(0,0,u.getWidth(),u.getHeight()),r=0;r<t;r++)i=a[r],"function"==typeof i?(i.call(this,n),c.putImageData(n,0,0)):e.Util.error("Filter should be type of function, but got "+(void 0===i?"undefined":o(i))+" insted. Please check correct filters")}catch(t){e.Util.error("Unable to apply filter. "+t.message)}this._filterUpToDate=!0}return u}return l},on:function(e,t){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a,s=e.split(" "),l=s.length;for(n=0;n<l;n++)r=s[n],i=r.split("."),o=i[0],a=i[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:a,handler:t});return this},off:function(e,t){var n,r,i,o,a,s,l=(e||"").split(" "),u=l.length;if(!e)for(r in this.eventListeners)this._off(r);for(n=0;n<u;n++)if(i=l[n],o=i.split("."),a=o[0],s=o[1],a)this.eventListeners[a]&&this._off(a,s,t);else for(r in this.eventListeners)this._off(r,s,t);return this},dispatchEvent:function(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this},addEventListener:function(e,t){return this.on(e,function(e){t.call(this,e.evt)}),this},removeEventListener:function(e){return this.off(e),this},_delegate:function(t,n,r){var i=this;this.on(t,function(t){for(var o=t.target.findAncestors(n,!0,i),a=0;a<o.length;a++)t=e.Util.cloneObject(t),t.currentTarget=o[a],r.call(o[a],t)})},remove:function(){var e=this.getParent();return e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache("stage"),this._clearSelfAndDescendantCache("absoluteTransform"),this._clearSelfAndDescendantCache("visible"),this._clearSelfAndDescendantCache("listening"),this._clearSelfAndDescendantCache("absoluteOpacity"),this},destroy:function(){e._removeId(this.getId());for(var t=(this.getName()||"").split(/\s/g),n=0;n<t.length;n++){var r=t[n];e._removeName(r,this._id)}return this.remove(),this},getAttr:function(t){var n="get"+e.Util._capitalize(t);return e.Util._isFunction(this[n])?this[n]():this.attrs[t]},getAncestors:function(){for(var t=this.getParent(),n=new e.Collection;t;)n.push(t),t=t.getParent();return n},getAttrs:function(){return this.attrs||{}},setAttrs:function(t){var n,r;if(!t)return this;for(n in t)"children"!==n&&(r="set"+e.Util._capitalize(n),e.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]));return this},isListening:function(){return this._getCache("listening",this._isListening)},_isListening:function(){var e=this.getListening(),t=this.getParent();return"inherit"===e?!t||t.isListening():e},isVisible:function(){return this._getCache("visible",this._isVisible)},_isVisible:function(e){var t=this.getVisible(),n=this.getParent();return e===n&&"inherit"===t||(e===n?t:"inherit"===t?!n||n._isVisible(e):t)},shouldDrawHit:function(){var e=this.getLayer();return!e&&this.isListening()&&this.isVisible()||e&&e.hitGraphEnabled()&&this.isListening()&&this.isVisible()},show:function(){return this.setVisible(!0),this},hide:function(){return this.setVisible(!1),this},getZIndex:function(){return this.index||0},getAbsoluteZIndex:function(){function e(u){for(n=[],r=u.length,i=0;i<r;i++)o=u[i],l++,o.nodeType!==t&&(n=n.concat(o.getChildren().toArray())),o._id===s._id&&(i=r);n.length>0&&n[0].getDepth()<=a&&e(n)}var n,r,i,o,a=this.getDepth(),s=this,l=0;return"Stage"!==s.nodeType&&e(s.getStage().getChildren()),l},getDepth:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},setPosition:function(e){return this.setX(e.x),this.setY(e.y),this},getPosition:function(){return{x:this.getX(),y:this.getY()}},getAbsolutePosition:function(t){var n=this.getAbsoluteTransform(t).getMatrix(),r=new e.Transform,i=this.offset();return r.m=n.slice(),r.translate(i.x,i.y),r.getTranslation()},setAbsolutePosition:function(e){var t,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,t=this.getAbsoluteTransform(),t.invert(),t.translate(e.x,e.y),e={x:this.attrs.x+t.getTranslation().x,y:this.attrs.y+t.getTranslation().y},this.setPosition({x:e.x,y:e.y}),this._setTransform(n),this},_setTransform:function(e){var t;for(t in e)this.attrs[t]=e[t];this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_clearTransform:function(){var e={x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform"),e},move:function(e){var t=e.x,n=e.y,r=this.getX(),i=this.getY();return void 0!==t&&(r+=t),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this},_eachAncestorReverse:function(e,t){var n,r,i=[],o=this.getParent();if(t&&t._id===this._id)return void e(this);for(i.unshift(this);o&&(!t||o._id!==t._id);)i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)e(i[r])},rotate:function(e){return this.setRotation(this.getRotation()+e),this},moveToTop:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},moveUp:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},moveDown:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},moveToBottom:function(){if(!this.parent)return e.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},setZIndex:function(t){if(!this.parent)return e.Util.warn("Node has no parent. zIndex parameter is ignored."),!1;var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},getAbsoluteOpacity:function(){return this._getCache("absoluteOpacity",this._getAbsoluteOpacity)},_getAbsoluteOpacity:function(){var e=this.getOpacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=this.getParent().getAbsoluteOpacity()),e},moveTo:function(e){return this.getParent()!==e&&((this.__originalRemove||this.remove).call(this),e.add(this)),this},toObject:function(){var t,n,r,i,o={},a=this.getAttrs();o.attrs={};for(t in a)n=a[t],r="function"==typeof this[t]&&this[t],delete a[t],i=r?r.call(this):null,a[t]=n,i!==n&&(o.attrs[t]=n);return o.className=this.getClassName(),e.Util._prepareToStringify(o)},toJSON:function(){return JSON.stringify(this.toObject())},getParent:function(){return this.parent},findAncestors:function(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r},findAncestor:function(e,t,n){return this.findAncestors(e,t,n)[0]},_isMatch:function(t){if(!t)return!1;var n,r,i=t.replace(/ /g,"").split(","),o=i.length;for(n=0;n<o;n++)if(r=i[n],e.Util.isValidSelector(r)||(e.Util.warn('Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),e.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),e.Util.warn("Konva is awesome, right?")),"#"===r.charAt(0)){if(this.id()===r.slice(1))return!0}else if("."===r.charAt(0)){if(this.hasName(r.slice(1)))return!0}else if(0!==this._get(r).length)return!0;return!1},getLayer:function(){var e=this.getParent();return e?e.getLayer():null},getStage:function(){return this._getCache("stage",this._getStage)},_getStage:function(){var e=this.getParent();return e?e.getStage():void 0},fire:function(e,t,n){return t=t||{},t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this},getAbsoluteTransform:function(e){return e?this._getAbsoluteTransform(e):this._getCache("absoluteTransform",this._getAbsoluteTransform)},_getAbsoluteTransform:function(t){var n=new e.Transform;return this._eachAncestorReverse(function(e){var t=e.transformsEnabled();"all"===t?n.multiply(e.getTransform()):"position"===t&&n.translate(e.getX()-e.getOffsetX(),e.getY()-e.getOffsetY())},t),n},getAbsoluteScale:function(e){return e?this._getAbsoluteScale(e):this._getCache("absoluteScale",this._getAbsoluteScale)},_getAbsoluteScale:function(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();var n=1,r=1;return this._eachAncestorReverse(function(e){n*=e.scaleX(),r*=e.scaleY()},e),{x:n,y:r}},getTransform:function(){return this._getCache("transform",this._getTransform)},_getTransform:function(){var t=new e.Transform,n=this.getX(),r=this.getY(),i=e.getAngle(this.getRotation()),o=this.getScaleX(),a=this.getScaleY(),s=this.getSkewX(),l=this.getSkewY(),u=this.getOffsetX(),c=this.getOffsetY();return 0===n&&0===r||t.translate(n,r),0!==i&&t.rotate(i),0===s&&0===l||t.skew(s,l),1===o&&1===a||t.scale(o,a),0===u&&0===c||t.translate(-1*u,-1*c),t},clone:function(t){var r,i,o,a,s,l=e.Util.cloneObject(this.attrs);for(var u in n){delete l[n[u]]}for(r in t)l[r]=t[r];var c=new this.constructor(l);for(r in this.eventListeners)for(i=this.eventListeners[r],o=i.length,a=0;a<o;a++)s=i[a],s.name.indexOf("konva")<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(s));return c},_toKonvaCanvas:function(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),i=void 0!==t.x?t.x:n.x,o=void 0!==t.y?t.y:n.y,a=t.pixelRatio||1,s=new e.SceneCanvas({width:t.width||n.width||(r?r.getWidth():0),height:t.height||n.height||(r?r.getHeight():0),pixelRatio:a}),l=s.getContext();return l.save(),(i||o)&&l.translate(-1*i,-1*o),this.drawScene(s),l.restore(),s},toCanvas:function(e){return this._toKonvaCanvas(e)._canvas},toDataURL:function(e){e=e||{};var t=e.mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r},toImage:function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var n=t.callback;delete t.callback,e.Util._getImage(this.toDataURL(t),function(e){n(e)})},setSize:function(e){return this.setWidth(e.width),this.setHeight(e.height),this},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getWidth:function(){return this.attrs.width||0},getHeight:function(){return this.attrs.height||0},getClassName:function(){return this.className||this.nodeType},getType:function(){return this.nodeType},getDragDistance:function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():e.dragDistance},_get:function(e){return this.className===e||this.nodeType===e?[this]:[]},_off:function(e,t,n){var r,i,o,a=this.eventListeners[e];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,!("konva"===i&&"konva"!==t||t&&i!==t||n&&n!==o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[e];break}r--}},_fireChangeEvent:function(e,t,n){this._fire(e+"Change",{oldVal:t,newVal:n})},setId:function(t){var n=this.getId();return e._removeId(n),e._addId(this,t),this._setAttr("id",t),this},setName:function(t){var n,r,i=(this.getName()||"").split(/\s/g),o=(t||"").split(/\s/g);for(r=0;r<i.length;r++)n=i[r],-1===o.indexOf(n)&&n&&e._removeName(n,this._id);for(r=0;r<o.length;r++)n=o[r],-1===i.indexOf(n)&&n&&e._addName(this,n);return this._setAttr("name",t),this},addName:function(e){if(!this.hasName(e)){var t=this.name(),n=t?t+" "+e:e;this.setName(n)}return this},hasName:function(e){return-1!==(this.name()||"").split(/\s/g).indexOf(e)},removeName:function(e){var t=(this.name()||"").split(/\s/g),n=t.indexOf(e);return-1!==n&&(t.splice(n,1),this.setName(t.join(" "))),this},setAttr:function(t,n){var r="set"+e.Util._capitalize(t),i=this[r];return e.Util._isFunction(i)?i.call(this,n):this._setAttr(t,n),this},_setAttr:function(t,n){var r;(r=this.attrs[t])===n&&!e.Util.isObject(n)||(void 0===n||null===n?delete this.attrs[t]:this.attrs[t]=n,this._fireChangeEvent(t,r,n))},_setComponentAttr:function(e,t,n){var r;void 0!==n&&(r=this.attrs[e],r||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))},_fireAndBubble:function(e,n,r){var i=!0;if(n&&this.nodeType===t&&(n.target=this),"mouseenter"===e&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))?i=!1:"mouseleave"===e&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))&&(i=!1),i){this._fire(e,n);var o=("mouseenter"===e||"mouseleave"===e)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,n,r.parent):this._fireAndBubble.call(this.parent,e,n))}},_fire:function(e,t){var n,r=this.eventListeners[e];if(t=t||{},t.currentTarget=this,t.type=e,r)for(n=0;n<r.length;n++)r[n].handler.call(this,t)},draw:function(){return this.drawScene(),this.drawHit(),this}}),e.Node.create=function(t,n){return e.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)},e.Node._createNode=function(t,n){var r,i,o,a=e.Node.prototype.getClassName.call(t),s=t.children;if(n&&(t.attrs.container=n),r=new e[a](t.attrs),s)for(i=s.length,o=0;o<i;o++)r.add(this._createNode(s[o]));return r},e.Factory.addOverloadedGetterSetter(e.Node,"position"),e.Factory.addGetterSetter(e.Node,"x",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"y",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"globalCompositeOperation","source-over",e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Node,"opacity",1,e.Validators.getNumberValidator()),e.Factory.addGetter(e.Node,"name"),e.Factory.addOverloadedGetterSetter(e.Node,"name"),e.Factory.addGetter(e.Node,"id"),e.Factory.addOverloadedGetterSetter(e.Node,"id"),e.Factory.addGetterSetter(e.Node,"rotation",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"scale",["x","y"]),e.Factory.addGetterSetter(e.Node,"scaleX",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"scaleY",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"skew",["x","y"]),e.Factory.addGetterSetter(e.Node,"skewX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"skewY",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Node,"offset",["x","y"]),e.Factory.addGetterSetter(e.Node,"offsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Node,"offsetY",0,e.Validators.getNumberValidator()),e.Factory.addSetter(e.Node,"dragDistance",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"dragDistance"),e.Factory.addSetter(e.Node,"width",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"width"),e.Factory.addSetter(e.Node,"height",e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"height"),e.Factory.addGetterSetter(e.Node,"listening","inherit",function(t){return!0===t||!1===t||"inherit"===t||e.Util.warn(t+' is a not valid value for "listening" attribute. The value may be true, false or "inherit".'),t}),e.Factory.addGetterSetter(e.Node,"preventDefault",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Node,"filters",null,function(e){return this._filterUpToDate=!1,e}),e.Factory.addGetterSetter(e.Node,"visible","inherit",function(t){return!0===t||!1===t||"inherit"===t||e.Util.warn(t+' is a not valid value for "visible" attribute. The value may be true, false or "inherit".'),t}),e.Factory.addGetterSetter(e.Node,"transformsEnabled","all",e.Validators.getStringValidator()),e.Factory.addOverloadedGetterSetter(e.Node,"size"),e.Factory.backCompat(e.Node,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),e.Collection.mapMethods(e.Node)}(Konva),function(){Konva.Filters.Grayscale=function(e){var t,n,r=e.data,i=r.length;for(t=0;t<i;t+=4)n=.34*r[t]+.5*r[t+1]+.16*r[t+2],r[t]=n,r[t+1]=n,r[t+2]=n}}(),function(e){e.Filters.Brighten=function(e){var t,n=255*this.brightness(),r=e.data,i=r.length;for(t=0;t<i;t+=4)r[t]+=n,r[t+1]+=n,r[t+2]+=n},e.Factory.addGetterSetter(e.Node,"brightness",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){Konva.Filters.Invert=function(e){var t,n=e.data,r=n.length;for(t=0;t<r;t+=4)n[t]=255-n[t],n[t+1]=255-n[t+1],n[t+2]=255-n[t+2]}}(),function(e){function t(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function n(e,n){var o,a,s,l,u,c,f,d,h,p,v,g,m,y,b,_,x,w,S,C,T,k,P,O,E=e.data,N=e.width,M=e.height,K=n+n+1,F=N-1,I=M-1,R=n+1,A=R*(R+1)/2,D=new t,j=null,L=D,U=null,z=null,V=r[n],G=i[n];for(s=1;s<K;s++)L=L.next=new t,s===R&&(j=L);for(L.next=D,f=c=0,a=0;a<M;a++){for(_=x=w=S=d=h=p=v=0,g=R*(C=E[c]),m=R*(T=E[c+1]),y=R*(k=E[c+2]),b=R*(P=E[c+3]),d+=A*C,h+=A*T,p+=A*k,v+=A*P,L=D,s=0;s<R;s++)L.r=C,L.g=T,L.b=k,L.a=P,L=L.next;for(s=1;s<R;s++)l=c+((F<s?F:s)<<2),d+=(L.r=C=E[l])*(O=R-s),h+=(L.g=T=E[l+1])*O,p+=(L.b=k=E[l+2])*O,v+=(L.a=P=E[l+3])*O,_+=C,x+=T,w+=k,S+=P,L=L.next;for(U=D,z=j,o=0;o<N;o++)E[c+3]=P=v*V>>G,0!==P?(P=255/P,E[c]=(d*V>>G)*P,E[c+1]=(h*V>>G)*P,E[c+2]=(p*V>>G)*P):E[c]=E[c+1]=E[c+2]=0,d-=g,h-=m,p-=y,v-=b,g-=U.r,m-=U.g,y-=U.b,b-=U.a,l=f+((l=o+n+1)<F?l:F)<<2,_+=U.r=E[l],x+=U.g=E[l+1],w+=U.b=E[l+2],S+=U.a=E[l+3],d+=_,h+=x,p+=w,v+=S,U=U.next,g+=C=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=C,x-=T,w-=k,S-=P,z=z.next,c+=4;f+=N}for(o=0;o<N;o++){for(x=w=S=_=h=p=v=d=0,c=o<<2,g=R*(C=E[c]),m=R*(T=E[c+1]),y=R*(k=E[c+2]),b=R*(P=E[c+3]),d+=A*C,h+=A*T,p+=A*k,v+=A*P,L=D,s=0;s<R;s++)L.r=C,L.g=T,L.b=k,L.a=P,L=L.next;for(u=N,s=1;s<=n;s++)c=u+o<<2,d+=(L.r=C=E[c])*(O=R-s),h+=(L.g=T=E[c+1])*O,p+=(L.b=k=E[c+2])*O,v+=(L.a=P=E[c+3])*O,_+=C,x+=T,w+=k,S+=P,L=L.next,s<I&&(u+=N);for(c=o,U=D,z=j,a=0;a<M;a++)l=c<<2,E[l+3]=P=v*V>>G,P>0?(P=255/P,E[l]=(d*V>>G)*P,E[l+1]=(h*V>>G)*P,E[l+2]=(p*V>>G)*P):E[l]=E[l+1]=E[l+2]=0,d-=g,h-=m,p-=y,v-=b,g-=U.r,m-=U.g,y-=U.b,b-=U.a,l=o+((l=a+R)<I?l:I)*N<<2,d+=_+=U.r=E[l],h+=x+=U.g=E[l+1],p+=w+=U.b=E[l+2],v+=S+=U.a=E[l+3],U=U.next,g+=C=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=C,x-=T,w-=k,S-=P,z=z.next,c+=N}}var r=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];e.Filters.Blur=function(e){var t=Math.round(this.blurRadius());t>0&&n(e,t)},e.Factory.addGetterSetter(e.Node,"blurRadius",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){function e(e,t,n){var r=4*(n*e.width+t),i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function t(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function n(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function r(r,i){var o=e(r,0,0),a=e(r,r.width-1,0),s=e(r,0,r.height-1),l=e(r,r.width-1,r.height-1),u=i||10;if(t(o,a)<u&&t(a,l)<u&&t(l,s)<u&&t(s,o)<u){for(var c=n([a,o,l,s]),f=[],d=0;d<r.width*r.height;d++){var h=t(c,[r.data[4*d],r.data[4*d+1],r.data[4*d+2]]);f[d]=h<u?0:255}return f}}function i(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function o(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=2040===c?255:0}return a}function a(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=c>=1020?255:0}return a}function s(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-o,p=l+d-o;if(h>=0&&h<n&&p>=0&&p<t){var v=h*t+p,g=r[f*i+d];c+=e[v]*g}}a[u]=c}return a}Konva.Filters.Mask=function(e){var t=this.threshold(),n=r(e,t);return n&&(n=o(n,e.width,e.height),n=a(n,e.width,e.height),n=s(n,e.width,e.height),i(e,n)),e},Konva.Factory.addGetterSetter(Konva.Node,"threshold",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.RGB=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(t=0;t<i;t+=4)n=(.34*r[t]+.5*r[t+1]+.16*r[t+2])/255,r[t]=n*o,r[t+1]=n*a,r[t+2]=n*s,r[t+3]=r[t+3]},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.RGBA=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),l=this.alpha();for(t=0;t<i;t+=4)n=1-l,r[t]=o*l+r[t]*n,r[t+1]=a*l+r[t+1]*n,r[t+2]=s*l+r[t+2]*n},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e})}(),function(){Konva.Filters.HSV=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,f=l*u*Math.cos(c*Math.PI/180),d=l*u*Math.sin(c*Math.PI/180),h=.299*l+.701*f+.167*d,p=.587*l-.587*f+.33*d,v=.114*l-.114*f-.497*d,g=.299*l-.299*f-.328*d,m=.587*l+.413*f+.035*d,y=.114*l-.114*f+.293*d,b=.299*l-.3*f+1.25*d,_=.587*l-.586*f-1.05*d,x=.114*l+.886*f-.2*d;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+v*i,a[t+1]=g*n+m*r+y*i,a[t+2]=b*n+_*r+x*i,a[t+3]=o},Konva.Factory.addGetterSetter(Konva.Node,"hue",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"value",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Factory.addGetterSetter(Konva.Node,"hue",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"luminance",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Filters.HSL=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,c=127*this.luminance(),f=1*l*Math.cos(u*Math.PI/180),d=1*l*Math.sin(u*Math.PI/180),h=.299+.701*f+.167*d,p=.587-.587*f+.33*d,v=.114-.114*f-.497*d,g=.299-.299*f-.328*d,m=.587+.413*f+.035*d,y=.114-.114*f+.293*d,b=.299-.3*f+1.25*d,_=.587-.586*f-1.05*d,x=.114+.886*f-.2*d;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+v*i+c,a[t+1]=g*n+m*r+y*i+c,a[t+2]=b*n+_*r+x*i+c,a[t+3]=o}}(),function(){Konva.Filters.Emboss=function(e){var t=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),o=0,a=0,s=e.data,l=e.width,u=e.height,c=4*l,f=u;switch(r){case"top-left":o=-1,a=-1;break;case"top":o=-1,a=0;break;case"top-right":o=-1,a=1;break;case"right":o=0,a=1;break;case"bottom-right":o=1,a=1;break;case"bottom":o=1,a=0;break;case"bottom-left":o=1,a=-1;break;case"left":o=0,a=-1;break;default:Konva.Util.error("Unknown emboss direction: "+r)}do{var d=(f-1)*c,h=o;f+h<1&&(h=0),f+h>u&&(h=0);var p=(f-1+h)*l*4,v=l;do{var g=d+4*(v-1),m=a;v+m<1&&(m=0),v+m>l&&(m=0);var y=p+4*(v-1+m),b=s[g]-s[y],_=s[g+1]-s[y+1],x=s[g+2]-s[y+2],w=b,S=w>0?w:-w,C=_>0?_:-_,T=x>0?x:-x;if(C>S&&(w=_),T>S&&(w=x),w*=t,i){var k=s[g]+w,P=s[g+1]+w,O=s[g+2]+w;s[g]=k>255?255:k<0?0:k,s[g+1]=P>255?255:P<0?0:P,s[g+2]=O>255?255:O<0?0:O}else{var E=n-w;E<0?E=0:E>255&&(E=255),s[g]=s[g+1]=s[g+2]=E}}while(--v)}while(--f)},Konva.Factory.addGetterSetter(Konva.Node,"embossStrength",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossWhiteLevel",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossDirection","top-left",null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossBlend",!1,null,Konva.Factory.afterSetFilter)}(),function(){function e(e,t,n,r,i){var o,a=n-t,s=i-r;return 0===a?r+s/2:0===s?r:(o=(e-t)/a,o=s*o+r)}Konva.Filters.Enhance=function(t){var n,r,i,o,a=t.data,s=a.length,l=a[0],u=l,c=a[1],f=c,d=a[2],h=d,p=this.enhance();if(0!==p){for(o=0;o<s;o+=4)n=a[o+0],n<l?l=n:n>u&&(u=n),r=a[o+1],r<c?c=r:r>f&&(f=r),i=a[o+2],i<d?d=i:i>h&&(h=i);u===l&&(u=255,l=0),f===c&&(f=255,c=0),h===d&&(h=255,d=0);var v,g,m,y,b,_,x,w,S;for(p>0?(g=u+p*(255-u),m=l-p*(l-0),b=f+p*(255-f),_=c-p*(c-0),w=h+p*(255-h),S=d-p*(d-0)):(v=.5*(u+l),g=u+p*(u-v),m=l+p*(l-v),y=.5*(f+c),b=f+p*(f-y),_=c+p*(c-y),x=.5*(h+d),w=h+p*(h-x),S=d+p*(d-x)),o=0;o<s;o+=4)a[o+0]=e(a[o+0],l,u,m,g),a[o+1]=e(a[o+1],c,f,_,b),a[o+2]=e(a[o+2],d,h,S,w)}},Konva.Factory.addGetterSetter(Konva.Node,"enhance",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Posterize=function(e){var t,n=Math.round(254*this.levels())+1,r=e.data,i=r.length,o=255/n;for(t=0;t<i;t+=1)r[t]=Math.floor(r[t]/o)*o},Konva.Factory.addGetterSetter(Konva.Node,"levels",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Noise=function(e){var t,n=255*this.noise(),r=e.data,i=r.length,o=n/2;for(t=0;t<i;t+=4)r[t+0]+=o-2*o*Math.random(),r[t+1]+=o-2*o*Math.random(),r[t+2]+=o-2*o*Math.random()},Konva.Factory.addGetterSetter(Konva.Node,"noise",.2,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Pixelate=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,v=Math.ceil(this.pixelSize()),g=e.width,m=e.height,y=Math.ceil(g/v),b=Math.ceil(m/v);if(e=e.data,v<=0)return void Konva.Util.error("pixelSize value can not be <= 0");for(d=0;d<y;d+=1)for(h=0;h<b;h+=1){for(i=0,o=0,a=0,s=0,l=d*v,u=l+v,c=h*v,f=c+v,p=0,t=l;t<u;t+=1)if(!(t>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+t),i+=e[r+0],o+=e[r+1],a+=e[r+2],s+=e[r+3],p+=1);for(i/=p,o/=p,a/=p,s/=p,t=l;t<u;t+=1)if(!(t>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+t),e[r+0]=i,e[r+1]=o,e[r+2]=a,e[r+3]=s)}},Konva.Factory.addGetterSetter(Konva.Node,"pixelSize",8,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){Konva.Filters.Threshold=function(e){var t,n=255*this.threshold(),r=e.data,i=r.length;for(t=0;t<i;t+=1)r[t]=r[t]<n?0:255},Konva.Factory.addGetterSetter(Konva.Node,"threshold",.5,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(){/**
|
23
23
|
* Sepia Filter
|
24
24
|
* Based on: Pixastic Lib - Sepia filter - v0.1.0
|
25
25
|
* Copyright (c) 2008 Jacob Seidelin, jseidelin@nihilogic.dk, http://blog.nihilogic.dk/
|
@@ -33,7 +33,7 @@ var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.pr
|
|
33
33
|
* node.cache();
|
34
34
|
* node.filters([Konva.Filters.Sepia]);
|
35
35
|
*/
|
36
|
-
Konva.Filters.Sepia=function(e){var t,n,r,i,o,a,s,l,u,c=e.data,f=e.width,d=e.height,h=4*f;do{t=(d-1)*h,n=f;do{r=t+4*(n-1),i=c[r],o=c[r+1],a=c[r+2],s=.393*i+.769*o+.189*a,l=.349*i+.686*o+.168*a,u=.272*i+.534*o+.131*a,c[r]=s>255?255:s,c[r+1]=l>255?255:l,c[r+2]=u>255?255:u,c[r+3]=c[r+3]}while(--n)}while(--d)}}(),function(){Konva.Filters.Solarize=function(e){var t=e.data,n=e.width,r=e.height,i=4*n,o=r;do{var a=(o-1)*i,s=n;do{var l=a+4*(s-1),u=t[l],c=t[l+1],f=t[l+2];u>127&&(u=255-u),c>127&&(c=255-c),f>127&&(f=255-f),t[l]=u,t[l+1]=c,t[l+2]=f}while(--s)}while(--o)}}(),function(){var e=function(e,t,n){var r,i,o,a,s=e.data,l=t.data,u=e.width,c=e.height,f=n.polarCenterX||u/2,d=n.polarCenterY||c/2,h=0,p=0,v=0,g=0,m=Math.sqrt(f*f+d*d);i=u-f,o=c-d,a=Math.sqrt(i*i+o*o),m=a>m?a:m;var y,b,_,x,w=c,S=u,C=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(_=Math.sin(b*C),x=Math.cos(b*C),y=0;y<w;y+=1)i=Math.floor(f+m*y/w*x),o=Math.floor(d+m*y/w*_),r=4*(o*u+i),h=s[r+0],p=s[r+1],v=s[r+2],g=s[r+3],r=4*(b+y*u),l[r+0]=h,l[r+1]=p,l[r+2]=v,l[r+3]=g},t=function(e,t,n){var r,i,o,a,s,l,u=e.data,c=t.data,f=e.width,d=e.height,h=n.polarCenterX||f/2,p=n.polarCenterY||d/2,v=0,g=0,m=0,y=0,b=Math.sqrt(h*h+p*p);i=f-h,o=d-p,l=Math.sqrt(i*i+o*o),b=l>b?l:b;var _,x,w,S,C=d,T=f,k=n.polarRotation||0;for(i=0;i<f;i+=1)for(o=0;o<d;o+=1)a=i-h,s=o-p,_=Math.sqrt(a*a+s*s)*C/b,x=(180*Math.atan2(s,a)/Math.PI+360+k)%360,x=x*T/360,w=Math.floor(x),S=Math.floor(_),r=4*(S*f+w),v=u[r+0],g=u[r+1],m=u[r+2],y=u[r+3],r=4*(o*f+i),c[r+0]=v,c[r+1]=g,c[r+2]=m,c[r+3]=y};Konva.Filters.Kaleidoscope=function(n){var r,i,o,a,s,l,u,c,f,d,h=n.width,p=n.height,v=Math.round(this.kaleidoscopePower()),g=Math.round(this.kaleidoscopeAngle()),m=Math.floor(h*(g%360)/360);if(!(v<1)){var y=Konva.Util.createCanvasElement();y.width=h,y.height=p;var b=y.getContext("2d").getImageData(0,0,h,p);e(n,b,{polarCenterX:h/2,polarCenterY:p/2});for(var _=h/Math.pow(2,v);_<=8;)_*=2,v-=1;_=Math.ceil(_);var x=_,w=0,S=x,C=1;for(m+_>h&&(w=x,S=0,C=-1),i=0;i<p;i+=1)for(r=w;r!==S;r+=C)o=Math.round(r+m)%h,f=4*(h*i+o),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+r),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;for(i=0;i<p;i+=1)for(x=Math.floor(_),a=0;a<v;a+=1){for(r=0;r<x+1;r+=1)f=4*(h*i+r),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+2*x-r-1),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;x*=2}t(b,n,{polarRotation:0})}},Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopePower",2,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopeAngle",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(e){e.Filters.Contrast=function(e){var t,n=Math.pow((parseInt(this.contrast())+100)/100,2),r=e.data,i=r.length,o=150,a=150,s=150;for(t=0;t<i;t+=4)o=r[t],a=r[t+1],s=r[t+2],o/=255,o-=.5,o*=n,o+=.5,o*=255,a/=255,a-=.5,a*=n,a+=.5,a*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,s=s<0?0:s>255?255:s,r[t]=o,r[t+1]=a,r[t+2]=s},e.Factory.addGetterSetter(e.Node,"contrast",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){Konva.Container=function(e){this.__init(e)},Konva.Util.addMethods(Konva.Container,{__init:function(e){this.children=new Konva.Collection,Konva.Node.call(this,e)},getChildren:function(e){if(!e)return this.children;var t=new Konva.Collection;return this.children.each(function(n){e(n)&&t.push(n)}),t},hasChildren:function(){return this.getChildren().length>0},removeChildren:function(){for(var e,t=Konva.Collection.toCollection(this.children),n=0;n<t.length;n++)e=t[n],delete e.parent,e.index=0,e.remove();return t=null,this.children=new Konva.Collection,this},destroyChildren:function(){for(var e,t=Konva.Collection.toCollection(this.children),n=0;n<t.length;n++)e=t[n],delete e.parent,e.index=0,e.destroy();return t=null,this.children=new Konva.Collection,this},add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}if(e.getParent())return e.moveTo(this),this;var n=this.children;return this._validateAdd(e),e.index=n.length,e.parent=this,n.push(e),this._fire("add",{child:e}),Konva.DD&&e.isDragging()&&Konva.DD.anim.setLayers(e.getLayer()),this},destroy:function(){return this.hasChildren()&&this.destroyChildren(),Konva.Node.prototype.destroy.call(this),this},find:function(e){return this._generalFind(e,!1)},findOne:function(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0},_generalFind:function(e,t){var n=[];return"string"==typeof e?n=this._findByString(e,t):"function"==typeof e&&(n=this._findByFunction(e,t)),Konva.Collection.toCollection(n)},_findByString:function(e){var t,n,r,i,o,a,s,l=[],u=e.replace(/ /g,"").split(","),c=u.length;for(t=0;t<c;t++){if(r=u[t],!Konva.Util.isValidSelector(r)){var f='Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".\nIf you have a custom shape with such className, please change it to start with upper letter like "Triangle".\nKonva is awesome, right?';Konva.Util.warn(f)}if("#"===r.charAt(0))(o=this._getNodeById(r.slice(1)))&&l.push(o);else if("."===r.charAt(0))i=this._getNodesByName(r.slice(1)),l=l.concat(i);else for(a=this.getChildren(),s=a.length,n=0;n<s;n++)l=l.concat(a[n]._get(r))}return l},_findByFunction:function(e,t){var n=[];return function r(i){if(!(t&&n.length>0)){var o=i.getChildren(),a=o.length;e(i)&&(n=n.concat(i));for(var s=0;s<a;s++)r(o[s])}}(this),n},_getNodeById:function(e){var t=Konva.ids[e];return void 0!==t&&this.isAncestorOf(t)?t:null},_getNodesByName:function(e){var t=Konva.names[e]||[];return this._getDescendants(t)},_get:function(e){for(var t=Konva.Node.prototype._get.call(this,e),n=this.getChildren(),r=n.length,i=0;i<r;i++)t=t.concat(n[i]._get(e));return t},toObject:function(){var e=Konva.Node.prototype.toObject.call(this);e.children=[];for(var t=this.getChildren(),n=t.length,r=0;r<n;r++){var i=t[r];e.children.push(i.toObject())}return e},_getDescendants:function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e[r];this.isAncestorOf(i)&&t.push(i)}return t},isAncestorOf:function(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1},clone:function(e){var t=Konva.Node.prototype.clone.call(this,e);return this.getChildren().each(function(e){t.add(e.clone())}),t},getAllIntersections:function(e){var t=[];return this.find("Shape").each(function(n){n.isVisible()&&n.intersects(e)&&t.push(n)}),t},_setChildrenIndices:function(){this.children.each(function(e,t){e.index=t})},drawScene:function(e,t,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),o=i&&i.getContext(),a=this._cache.canvas,s=a&&a.scene;return(this.isVisible()||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,t),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(i,"drawScene",t,!1,n)),this},drawHit:function(e,t,n){var r=this.getLayer(),i=e||r&&r.hitCanvas,o=i&&i.getContext(),a=this._cache.canvas,s=a&&a.hit;return(this.shouldDrawHit(i)||n)&&(r&&r.clearHitCache(),!n&&s?(o.save(),r._applyTransform(this,o,t),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(i,"drawHit",t)),this},_drawChildren:function(e,t,n,r,i){var o,a,s=this.getLayer(),l=e&&e.getContext(),u=this.getClipWidth(),c=this.getClipHeight(),f=this.getClipFunc(),d=u&&c||f;if(d&&s){l.save();var h=this.getAbsoluteTransform(n),p=h.getMatrix();l.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.beginPath(),f?f.call(this,l,this):(o=this.getClipX(),a=this.getClipY(),l.rect(o,a,u,c)),l.clip(),p=h.copy().invert().getMatrix(),l.transform(p[0],p[1],p[2],p[3],p[4],p[5])}this.children.each(function(o){o[t](e,n,r,i)}),d&&l.restore()},shouldDrawHit:function(e){var t=this.getLayer(),n=Konva.DD,r=n&&Konva.isDragging()&&-1!==Konva.DD.anim.getLayers().indexOf(t);return e&&e.isCache||t&&t.hitGraphEnabled()&&this.isVisible()&&!r},getClientRect:function(e){e=e||{};var t,n,r,i,o=e.skipTransform,a=e.relativeTo,s={x:1/0,y:1/0,width:0,height:0},l=this;this.children.each(function(o){if(o.getVisible()){var a=o.getClientRect({relativeTo:l,skipShadow:e.skipShadow});0===a.width&&0===a.height||(void 0===t?(t=a.x,n=a.y,r=a.x+a.width,i=a.y+a.height):(t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height)))}});for(var u=this.find("Shape"),c=!1,f=0;f<u.length;f++){if(u[f]._isVisible(this)){c=!0;break}}return s=c?{x:t,y:n,width:r-t,height:i-n}:{x:0,y:0,width:0,height:0},o?s:this._transformedRect(s,a)}}),Konva.Util.extend(Konva.Container,Konva.Node),Konva.Container.prototype.get=Konva.Container.prototype.find,Konva.Factory.addComponentsGetterSetter(Konva.Container,"clip",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Container,"clipX",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipY",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipWidth",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipHeight",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipFunc"),Konva.Collection.mapMethods(Konva.Container)}(),function(e){function t(e){e.fill()}function n(e){e.stroke()}function r(e){e.fill()}function i(e){e.stroke()}function o(){this._clearCache(s)}function a(){this._clearCache(l)}var s="hasShadow",l="shadowRGBA";e.Shape=function(e){this.__init(e)},e.Util.addMethods(e.Shape,{__init:function(s){this.nodeType="Shape",this._fillFunc=t,this._strokeFunc=n,this._fillFuncHit=r,this._strokeFuncHit=i;for(var l,u=e.shapes;;)if((l=e.Util.getRandomColor())&&!(l in u))break;this.colorKey=l,u[l]=this,e.Node.call(this,s),this.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",o),this.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",a)},hasChildren:function(){return!1},getChildren:function(){return[]},getContext:function(){return this.getLayer().getContext()},getCanvas:function(){return this.getLayer().getCanvas()},hasShadow:function(){return this._getCache(s,this._hasShadow)},_hasShadow:function(){return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())},getShadowRGBA:function(){return this._getCache(l,this._getShadowRGBA)},_getShadowRGBA:function(){if(this.hasShadow()){var t=e.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.getShadowOpacity()||1)+")"}},hasFill:function(){return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())},hasStroke:function(){return this.strokeEnabled()&&!(!this.stroke()&&!this.getStrokeLinearGradientColorStops())},intersects:function(e){var t,n=this.getStage(),r=n.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r),t=r.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data,t[3]>0},destroy:function(){return e.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],this},_useBufferCanvas:function(e){return!e&&this.perfectDrawEnabled()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()||this.perfectDrawEnabled()&&this.hasShadow()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()},getSelfRect:function(){var e=this.getSize();return{x:this._centroid?Math.round(-e.width/2):0,y:this._centroid?Math.round(-e.height/2):0,width:e.width,height:e.height}},getClientRect:function(e){e=e||{};var t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=this.hasStroke()&&this.strokeWidth()||0,o=r.width+i,a=r.height+i,s=!e.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,u=s?this.shadowOffsetY():0,c=o+Math.abs(l),f=a+Math.abs(u),d=s&&this.shadowBlur()||0,h=c+2*d,p=f+2*d,v=0;Math.round(i/2)!==i/2&&(v=1);var g={width:h+v,height:p+v,x:-Math.round(i/2+d)+Math.min(l,0)+r.x,y:-Math.round(i/2+d)+Math.min(u,0)+r.y};return t?g:this._transformedRect(g,n)},drawScene:function(e,t,n,r){var i,o,a,s=this.getLayer(),l=e||s.getCanvas(),u=l.getContext(),c=this._cache.canvas,f=this.sceneFunc(),d=this.hasShadow(),h=this.hasStroke();if(!this.isVisible()&&!n)return this;if(c)return u.save(),s._applyTransform(this,u,t),this._drawCachedSceneCanvas(u),u.restore(),this;if(!f)return this;if(u.save(),this._useBufferCanvas(n)&&!r){if(i=this.getStage(),o=i.bufferCanvas,a=o.getContext(),a.clear(),a.save(),a._applyLineJoin(this),!n)if(s)s._applyTransform(this,a,t);else{var p=this.getAbsoluteTransform(t).getMatrix();u.transform(p[0],p[1],p[2],p[3],p[4],p[5])}f.call(this,a,this),a.restore();var v=o.pixelRatio;d&&!l.hitCanvas?(u.save(),u._applyShadow(this),u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(o._canvas,0,0,o.width/v,o.height/v),u.restore()):(u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(o._canvas,0,0,o.width/v,o.height/v))}else{if(u._applyLineJoin(this),!n)if(s)s._applyTransform(this,u,t);else{var g=this.getAbsoluteTransform(t).getMatrix();u.transform(g[0],g[1],g[2],g[3],g[4],g[5])}d&&h&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u,this),u.restore(),this.hasFill()&&this.getShadowForStrokeEnabled()&&f.call(this,u,this)):d&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u,this),u.restore()):(n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),f.call(this,u,this))}return u.restore(),this},drawHit:function(e,t,n){var r=this.getLayer(),i=e||r.hitCanvas,o=i.getContext(),a=this.hitFunc()||this.sceneFunc(),s=this._cache.canvas,l=s&&s.hit;if(!this.shouldDrawHit(i)&&!n)return this;if(r&&r.clearHitCache(),l)return o.save(),r._applyTransform(this,o,t),this._drawCachedHitCanvas(o),o.restore(),this;if(!a)return this;if(o.save(),o._applyLineJoin(this),!n)if(r)r._applyTransform(this,o,t);else{var u=this.getAbsoluteTransform(t).getMatrix();o.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return a.call(this,o,this),o.restore(),this},drawHitFromCache:function(t){var n,r,i,o,a,s,l=t||0,u=this._cache.canvas,c=this._getCachedSceneCanvas(),f=u.hit,d=f.getContext(),h=f.getWidth(),p=f.getHeight();d.clear(),d.drawImage(c._canvas,0,0,h,p);try{for(n=d.getImageData(0,0,h,p),r=n.data,i=r.length,o=e.Util._hexToRgb(this.colorKey),a=0;a<i;a+=4)s=r[a+3],s>l?(r[a]=o.r,r[a+1]=o.g,r[a+2]=o.b,r[a+3]=255):r[a+3]=0;d.putImageData(n,0,0)}catch(t){e.Util.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this}}),e.Util.extend(e.Shape,e.Node),e.Factory.addGetterSetter(e.Shape,"stroke",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"strokeWidth",2,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"strokeHitEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"perfectDrawEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"shadowForStrokeEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"lineJoin"),e.Factory.addGetterSetter(e.Shape,"lineCap"),e.Factory.addGetterSetter(e.Shape,"sceneFunc"),e.Factory.addGetterSetter(e.Shape,"hitFunc"),e.Factory.addGetterSetter(e.Shape,"dash"),e.Factory.addGetterSetter(e.Shape,"dashOffset",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowColor",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"shadowBlur",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowOpacity",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"shadowOffset",["x","y"]),e.Factory.addGetterSetter(e.Shape,"shadowOffsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowOffsetY",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternImage"),e.Factory.addGetterSetter(e.Shape,"fill",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternY",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartRadius",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndRadius",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"fillPatternRepeat","repeat"),e.Factory.addGetterSetter(e.Shape,"fillEnabled",!0),e.Factory.addGetterSetter(e.Shape,"strokeEnabled",!0),e.Factory.addGetterSetter(e.Shape,"shadowEnabled",!0),e.Factory.addGetterSetter(e.Shape,"dashEnabled",!0),e.Factory.addGetterSetter(e.Shape,"strokeScaleEnabled",!0),e.Factory.addGetterSetter(e.Shape,"fillPriority","color"),e.Factory.addComponentsGetterSetter(e.Shape,"fillPatternOffset",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillPatternOffsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternOffsetY",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"fillPatternScale",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillPatternScaleX",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternScaleY",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"fillLinearGradientStartPoint",["x","y"]),e.Factory.addComponentsGetterSetter(e.Shape,"strokeLinearGradientStartPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientStartPointY",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientStartPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillLinearGradientEndPoint",["x","y"]),e.Factory.addComponentsGetterSetter(e.Shape,"strokeLinearGradientEndPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientEndPointY",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientEndPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillRadialGradientStartPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillRadialGradientEndPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndPointY",0),e.Factory.addGetterSetter(e.Shape,"fillPatternRotation",0),e.Factory.backCompat(e.Shape,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),e.Collection.mapMethods(e.Shape)}(Konva),function(){function e(e,n){e.content.addEventListener(n,function(r){e[t+n](r)},!1)}var t="_",n=["mousedown","mousemove","mouseup","mouseout","touchstart","touchmove","touchend","mouseover","wheel","contextmenu"],r=n.length;Konva.Stage=function(e){this.___init(e)},Konva.Util.addMethods(Konva.Stage,{___init:function(e){this.nodeType="Stage",Konva.Container.call(this,e),this._id=Konva.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,Konva.stages.push(this)},_validateAdd:function(e){"Layer"!==e.getType()&&Konva.Util.throw("You may only add layers to the stage.")},setContainer:function(e){if("string"===(void 0===e?"undefined":o(e))){if("."===e.charAt(0)){var t=e.slice(1);e=Konva.document.getElementsByClassName(t)[0]}else{var n;n="#"!==e.charAt(0)?e:e.slice(1),e=Konva.document.getElementById(n)}if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this},shouldDrawHit:function(){return!0},draw:function(){return Konva.Node.prototype.draw.call(this),this},setHeight:function(e){return Konva.Node.prototype.setHeight.call(this,e),this._resizeDOM(),this},setWidth:function(e){return Konva.Node.prototype.setWidth.call(this,e),this._resizeDOM(),this},clear:function(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)t[e].clear();return this},clone:function(e){return e||(e={}),e.container=Konva.document.createElement("div"),Konva.Container.prototype.clone.call(this,e)},destroy:function(){var e=this.content;Konva.Container.prototype.destroy.call(this),e&&Konva.Util._isInDocument(e)&&this.getContainer().removeChild(e);var t=Konva.stages.indexOf(this);return t>-1&&Konva.stages.splice(t,1),this},getPointerPosition:function(){return this.pointerPos},getStage:function(){return this},getContent:function(){return this.content},_toKonvaCanvas:function(e){e=e||{};var t=e.x||0,n=e.y||0,r=new Konva.SceneCanvas({width:e.width||this.getWidth(),height:e.height||this.getHeight(),pixelRatio:e.pixelRatio||1}),i=r.getContext()._context,o=this.children;return(t||n)&&i.translate(-1*t,-1*n),o.each(function(r){if(r.isVisible()){var o=r._toKonvaCanvas(e);i.drawImage(o._canvas,t,n,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}}),r},toImage:function(e){var t=e.callback;e.callback=function(e){Konva.Util._getImage(e,function(e){t(e)})},this.toDataURL(e)},getIntersection:function(e,t){var n,r,i=this.getChildren(),o=i.length,a=o-1;for(n=a;n>=0;n--)if(r=i[n].getIntersection(e,t))return r;return null},_resizeDOM:function(){if(this.content){var e,t,n=this.getWidth(),r=this.getHeight(),i=this.getChildren(),o=i.length;for(this.content.style.width=n+"px",this.content.style.height=r+"px",this.bufferCanvas.setSize(n,r),this.bufferHitCanvas.setSize(n,r),e=0;e<o;e++)t=i[e],t.setSize(n,r),t.draw()}},add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return Konva.Container.prototype.add.call(this,e),e._setCanvasSize(this.width(),this.height()),e.draw(),Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},getParent:function(){return null},getLayer:function(){return null},getLayers:function(){return this.getChildren()},_bindContentEvents:function(){if(Konva.isBrowser)for(var t=0;t<r;t++)e(this,n[t])},_mouseover:function(e){Konva.UA.mobile||(this._setPointerPosition(e),this._fire("contentMouseover",{evt:e}))},_mouseout:function(e){if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.targetShape;t&&!Konva.isDragging()&&(t._fireAndBubble("mouseout",{evt:e}),t._fireAndBubble("mouseleave",{evt:e}),this.targetShape=null),this.pointerPos=void 0,this._fire("contentMouseout",{evt:e})}},_mousemove:function(e){if(Konva.UA.ieMobile)return this._touchmove(e);if((void 0!==e.movementX||void 0!==e.movementY)&&0===e.movementY&&0===e.movementX)return null;if(Konva.UA.mobile)return null;this._setPointerPosition(e);var t;Konva.isDragging()||(t=this.getIntersection(this.getPointerPosition()),t&&t.isListening()?Konva.isDragging()||this.targetShape&&this.targetShape._id===t._id?t._fireAndBubble("mousemove",{evt:e}):(this.targetShape&&(this.targetShape._fireAndBubble("mouseout",{evt:e},t),this.targetShape._fireAndBubble("mouseleave",{evt:e},t)),t._fireAndBubble("mouseover",{evt:e},this.targetShape),t._fireAndBubble("mouseenter",{evt:e},this.targetShape),this.targetShape=t):(this.targetShape&&!Konva.isDragging()&&(this.targetShape._fireAndBubble("mouseout",{evt:e}),this.targetShape._fireAndBubble("mouseleave",{evt:e}),this.targetShape=null),this._fire("mousemove",{evt:e,target:this,currentTarget:this})),this._fire("contentMousemove",{evt:e})),e.cancelable&&e.preventDefault()},_mousedown:function(e){if(Konva.UA.ieMobile)return this._touchstart(e);if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,t&&t.isListening()?(this.clickStartShape=t,t._fireAndBubble("mousedown",{evt:e})):this._fire("mousedown",{evt:e,target:this,currentTarget:this}),this._fire("contentMousedown",{evt:e})}},_mouseup:function(e){if(Konva.UA.ieMobile)return this._touchend(e);if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,r=this.clickEndShape,i=!1,o=Konva.DD;Konva.inDblClickWindow?(i=!0,clearTimeout(this.dblTimeout)):o&&o.justDragged?o&&(o.justDragged=!1):(Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),t&&t.isListening()?(this.clickEndShape=t,t._fireAndBubble("mouseup",{evt:e}),Konva.listenClickTap&&n&&n._id===t._id&&(t._fireAndBubble("click",{evt:e}),i&&r&&r._id===t._id&&t._fireAndBubble("dblclick",{evt:e}))):(this._fire("mouseup",{evt:e,target:this,currentTarget:this}),Konva.listenClickTap&&this._fire("click",{evt:e,target:this,currentTarget:this}),i&&this._fire("dblclick",{evt:e,target:this,currentTarget:this})),this._fire("contentMouseup",{evt:e}),Konva.listenClickTap&&(this._fire("contentClick",{evt:e}),i&&this._fire("contentDblclick",{evt:e})),Konva.listenClickTap=!1}e.cancelable&&e.preventDefault()},_contextmenu:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble("contextmenu",{evt:e}):this._fire("contextmenu",{evt:e,target:this,currentTarget:this}),this._fire("contentContextmenu",{evt:e})},_touchstart:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,t&&t.isListening()?(this.tapStartShape=t,t._fireAndBubble("touchstart",{evt:e}),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):this._fire("touchstart",{evt:e,target:this,currentTarget:this}),this._fire("contentTouchstart",{evt:e})},_touchend:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition()),n=!1;Konva.inDblClickWindow?(n=!0,clearTimeout(this.dblTimeout)):(Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),t&&t.isListening()?(t._fireAndBubble("touchend",{evt:e}),Konva.listenClickTap&&this.tapStartShape&&t._id===this.tapStartShape._id&&(t._fireAndBubble("tap",{evt:e}),n&&t._fireAndBubble("dbltap",{evt:e})),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):(this._fire("touchend",{evt:e,target:this,currentTarget:this}),Konva.listenClickTap&&this._fire("tap",{evt:e,target:this,currentTarget:this}),n&&this._fire("dbltap",{evt:e,target:this,currentTarget:this})),this._fire("contentTouchend",{evt:e}),Konva.listenClickTap&&(this._fire("contentTap",{evt:e}),n&&this._fire("contentDbltap",{evt:e})),Konva.listenClickTap=!1},_touchmove:function(e){this._setPointerPosition(e);var t,n=Konva.DD;Konva.isDragging()||(t=this.getIntersection(this.getPointerPosition()),t&&t.isListening()?(t._fireAndBubble("touchmove",{evt:e}),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):this._fire("touchmove",{evt:e,target:this,currentTarget:this}),this._fire("contentTouchmove",{evt:e})),n&&Konva.isDragging()&&Konva.DD.node.preventDefault()&&e.cancelable&&e.preventDefault()},_wheel:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble("wheel",{evt:e}):this._fire("wheel",{evt:e,target:this,currentTarget:this}),this._fire("contentWheel",{evt:e})},_setPointerPosition:function(e){var t=this._getContentPosition(),n=null,r=null;if(e=e||window.event,void 0!==e.touches){if(e.touches.length>0){var i=e.touches[0];n=i.clientX-t.left,r=i.clientY-t.top}}else n=e.clientX-t.left,r=e.clientY-t.top;null!==n&&null!==r&&(this.pointerPos={x:n,y:r})},_getContentPosition:function(){var e=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};return{top:e.top,left:e.left}},_buildDOM:function(){if(this.bufferCanvas=new Konva.SceneCanvas,this.bufferHitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.isBrowser){var e=this.getContainer();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=Konva.document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}},_onContent:function(e,t){var n,r,i=e.split(" "),o=i.length;for(n=0;n<o;n++)r=i[n],this.content.addEventListener(r,t,!1)},cache:function(){Konva.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.")},clearCache:function(){}}),Konva.Util.extend(Konva.Stage,Konva.Container),Konva.Factory.addGetter(Konva.Stage,"container"),Konva.Factory.addOverloadedGetterSetter(Konva.Stage,"container")}(),function(e){e.BaseLayer=function(e){this.___init(e)},e.Util.addMethods(e.BaseLayer,{___init:function(t){this.nodeType="Layer",e.Container.call(this,t)},createPNGStream:function(){return this.canvas._canvas.createPNGStream()},getCanvas:function(){return this.canvas},getHitCanvas:function(){return this.hitCanvas},getContext:function(){return this.getCanvas().getContext()},clear:function(e){return this.getContext().clear(e),this},clearHitCache:function(){this._hitImageData=void 0},setZIndex:function(t){e.Node.prototype.setZIndex.call(this,t);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),t<n.getChildren().length-1?n.content.insertBefore(this.getCanvas()._canvas,n.getChildren()[t+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},moveToTop:function(){e.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),this},moveUp:function(){if(!e.Node.prototype.moveUp.call(this))return this;var t=this.getStage();return t?(t.content.removeChild(this.getCanvas()._canvas),this.index<t.getChildren().length-1?t.content.insertBefore(this.getCanvas()._canvas,t.getChildren()[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getCanvas()._canvas),this):this},moveDown:function(){if(e.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,n[this.index+1].getCanvas()._canvas)}}return this},moveToBottom:function(){if(e.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,n[1].getCanvas()._canvas)}}return this},getLayer:function(){return this},remove:function(){var t=this.getCanvas()._canvas;return e.Node.prototype.remove.call(this),t&&t.parentNode&&e.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},getStage:function(){return this.parent},setSize:function(e,t){return this.canvas.setSize(e,t),this},_toKonvaCanvas:function(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.getX(),t.y=void 0!==t.y?t.y:this.getY(),e.Node.prototype._toKonvaCanvas.call(this,t)},getWidth:function(){if(this.parent)return this.parent.getWidth()},setWidth:function(){e.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},getHeight:function(){if(this.parent)return this.parent.getHeight()},setHeight:function(){e.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},_applyTransform:function(e,t,n){var r=e.getAbsoluteTransform(n).getMatrix();t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}}),e.Util.extend(e.BaseLayer,e.Container),e.Factory.addGetterSetter(e.BaseLayer,"clearBeforeDraw",!0),e.Collection.mapMethods(e.BaseLayer)}(Konva),function(){var e=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],t=e.length;Konva.Layer=function(e){this.____init(e)},Konva.Util.addMethods(Konva.Layer,{____init:function(e){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,this.hitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.BaseLayer.call(this,e)},_setCanvasSize:function(e,t){this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t)},_validateAdd:function(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&Konva.Util.throw("You may only add groups and shapes to a layer.")},getIntersection:function(n,r){var i,o,a,s;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var l=1,u=!1;;){for(o=0;o<t;o++){if(a=e[o],i=this._getIntersection({x:n.x+a.x*l,y:n.y+a.y*l}),(s=i.shape)&&r)return s.findAncestor(r,!0);if(s)return s;if(u=!!i.antialiased,!i.antialiased)break}if(!u)return null;l+=1}},_getImageData:function(e,t){var n=this.hitCanvas.width||1,r=this.hitCanvas.height||1,i=Math.round(t)*n+Math.round(e);return this._hitImageData||(this._hitImageData=this.hitCanvas.context.getImageData(0,0,n,r)),[this._hitImageData.data[4*i+0],this._hitImageData.data[4*i+1],this._hitImageData.data[4*i+2],this._hitImageData.data[4*i+3]]},_getIntersection:function(e){var t,n,r=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(e.x*r),Math.round(e.y*r),1,1).data,o=i[3];return 255===o?(t=Konva.Util._rgbToHex(i[0],i[1],i[2]),n=Konva.shapes["#"+t],n?{shape:n}:{antialiased:!0}):o>0?{antialiased:!0}:{}},drawScene:function(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.getClearBeforeDraw()&&r.getContext().clear(),Konva.Container.prototype.drawScene.call(this,r,t),this._fire("draw",{node:this}),this},drawHit:function(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.getClearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Konva.Container.prototype.drawHit.call(this,r,t),this.imageData=null,this},clear:function(e){return Konva.BaseLayer.prototype.clear.call(this,e),this.getHitCanvas().getContext().clear(e),this.imageData=null,this},setVisible:function(e){return Konva.Node.prototype.setVisible.call(this,e),e?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this},enableHitGraph:function(){return this.setHitGraphEnabled(!0),this},disableHitGraph:function(){return this.setHitGraphEnabled(!1),this},setSize:function(e,t){return Konva.BaseLayer.prototype.setSize.call(this,e,t),this.hitCanvas.setSize(e,t),this}}),Konva.Util.extend(Konva.Layer,Konva.BaseLayer),Konva.Factory.addGetterSetter(Konva.Layer,"hitGraphEnabled",!0),Konva.Collection.mapMethods(Konva.Layer)}(),function(){Konva.FastLayer=function(e){this.____init(e)},Konva.Util.addMethods(Konva.FastLayer,{____init:function(e){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,Konva.BaseLayer.call(this,e)},_validateAdd:function(e){"Shape"!==e.getType()&&Konva.Util.throw("You may only add shapes to a fast layer.")},_setCanvasSize:function(e,t){this.canvas.setSize(e,t)},hitGraphEnabled:function(){return!1},getIntersection:function(){return null},drawScene:function(e){var t=this.getLayer(),n=e||t&&t.getCanvas();return this.getClearBeforeDraw()&&n.getContext().clear(),Konva.Container.prototype.drawScene.call(this,n),this},draw:function(){return this.drawScene(),this},setVisible:function(e){return Konva.Node.prototype.setVisible.call(this,e),this.getCanvas()._canvas.style.display=e?"block":"none",this}}),Konva.Util.extend(Konva.FastLayer,Konva.BaseLayer),Konva.Collection.mapMethods(Konva.FastLayer)}(),function(){Konva.Group=function(e){this.___init(e)},Konva.Util.addMethods(Konva.Group,{___init:function(e){this.nodeType="Group",Konva.Container.call(this,e)},_validateAdd:function(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&Konva.Util.throw("You may only add groups and shapes to groups.")}}),Konva.Util.extend(Konva.Group,Konva.Container),Konva.Collection.mapMethods(Konva.Group)}(),function(e){function t(e){setTimeout(e,1e3/60)}function n(){return i.apply(e.global,arguments)}var r=function(){return e.global.performance&&e.global.performance.now?function(){return e.global.performance.now()}:function(){return(new Date).getTime()}}(),i=function(){return e.global.requestAnimationFrame||e.global.webkitRequestAnimationFrame||e.global.mozRequestAnimationFrame||e.global.oRequestAnimationFrame||e.global.msRequestAnimationFrame||t}();e.Animation=function(t,n){var i=e.Animation;this.func=t,this.setLayers(n),this.id=i.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:r()}},e.Animation.prototype={setLayers:function(e){var t=[];return t=e?e.length>0?e:[e]:[],this.layers=t,this},getLayers:function(){return this.layers},addLayer:function(e){var t,n=this.layers,r=n.length;for(t=0;t<r;t++)if(n[t]._id===e._id)return!1;return this.layers.push(e),!0},isRunning:function(){var t,n=e.Animation,r=n.animations,i=r.length;for(t=0;t<i;t++)if(r[t].id===this.id)return!0;return!1},start:function(){var t=e.Animation;return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=r(),t._addAnimation(this),this},stop:function(){return e.Animation._removeAnimation(this),this},_updateFrameObject:function(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}},e.Animation.animations=[],e.Animation.animIdCounter=0,e.Animation.animRunning=!1,e.Animation._addAnimation=function(e){this.animations.push(e),this._handleAnimation()},e.Animation._removeAnimation=function(e){var t,n=e.id,r=this.animations,i=r.length;for(t=0;t<i;t++)if(r[t].id===n){this.animations.splice(t,1);break}},e.Animation._runFrames=function(){var e,t,n,i,o,a,s,l,u={},c=this.animations;for(i=0;i<c.length;i++)if(e=c[i],t=e.layers,n=e.func,e._updateFrameObject(r()),a=t.length,!n||!1!==n.call(e,e.frame))for(o=0;o<a;o++)s=t[o],void 0!==s._id&&(u[s._id]=s);for(l in u)u.hasOwnProperty(l)&&u[l].draw()},e.Animation._animationLoop=function(){var t=e.Animation;t.animations.length?(t._runFrames(),n(t._animationLoop)):t.animRunning=!1},e.Animation._handleAnimation=function(){this.animRunning||(this.animRunning=!0,n(this._animationLoop))},e.BaseLayer.prototype.batchDraw=function(){var t=this,n=e.Animation;return this.batchAnim||(this.batchAnim=new n(function(){t.batchAnim.stop()},this)),this.batchAnim.isRunning()||this.batchAnim.start(),this},e.Stage.prototype.batchDraw=function(){return this.getChildren().each(function(e){e.batchDraw()}),this}}(Konva),function(){var e={node:1,duration:1,easing:1,onFinish:1,yoyo:1},t=0,n=["fill","stroke","shadowColor"],r=function(e,t,n,r,i,o,a){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()};r.prototype={fire:function(e){var t=this[e];t&&t()},setTime:function(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())},getTime:function(){return this._time},setPosition:function(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e},getPosition:function(e){return void 0===e&&(e=this._time),this.func(e,this.begin,this._change,this.duration)},play:function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},reverse:function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},seek:function(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")},reset:function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},finish:function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},update:function(){this.setPosition(this.getPosition(this._time))},onEnterFrame:function(){var e=this.getTimer()-this._startTime;2===this.state?this.setTime(e):3===this.state&&this.setTime(this.duration-e)},pause:function(){this.state=1,this.fire("onPause")},getTimer:function(){return(new Date).getTime()}},Konva.Tween=function(n){var i,o,a=this,s=n.node,l=s._id,u=n.easing||Konva.Easings.Linear,c=!!n.yoyo;i=void 0===n.duration?.3:0===n.duration?.001:n.duration,this.node=s,this._id=t++;var f=s.getLayer()||(s instanceof Konva.Stage?s.getLayers():null);f||Konva.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Konva.Animation(function(){a.tween.onEnterFrame()},f),this.tween=new r(o,function(e){a._tweenFunc(e)},u,0,1,1e3*i,c),this._addListeners(),Konva.Tween.attrs[l]||(Konva.Tween.attrs[l]={}),Konva.Tween.attrs[l][this._id]||(Konva.Tween.attrs[l][this._id]={}),Konva.Tween.tweens[l]||(Konva.Tween.tweens[l]={});for(o in n)void 0===e[o]&&this._addAttr(o,n[o]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset},Konva.Tween.attrs={},Konva.Tween.tweens={},Konva.Tween.prototype={_addAttr:function(e,t){var r,i,o,a,s,l,u,c,f=this.node,d=f._id;if(o=Konva.Tween.tweens[d][e],o&&delete Konva.Tween.attrs[d][o][e],r=f.getAttr(e),Konva.Util._isArray(t))if(i=[],s=Math.max(t.length,r.length),"points"===e&&t.length!==r.length&&(t.length>r.length?(u=r,r=Konva.Util._prepareArrayForTween(r,t,f.closed())):(l=t,t=Konva.Util._prepareArrayForTween(t,r,f.closed()))),0===e.indexOf("fill"))for(a=0;a<s;a++)if(a%2==0)i.push(t[a]-r[a]);else{var h=Konva.Util.colorToRGBA(r[a]);c=Konva.Util.colorToRGBA(t[a]),r[a]=h,i.push({r:c.r-h.r,g:c.g-h.g,b:c.b-h.b,a:c.a-h.a})}else for(a=0;a<s;a++)i.push(t[a]-r[a]);else-1!==n.indexOf(e)?(r=Konva.Util.colorToRGBA(r),c=Konva.Util.colorToRGBA(t),i={r:c.r-r.r,g:c.g-r.g,b:c.b-r.b,a:c.a-r.a}):i=t-r;Konva.Tween.attrs[d][this._id][e]={start:r,diff:i,end:t,trueEnd:l,trueStart:u},Konva.Tween.tweens[d][e]=this._id},_tweenFunc:function(e){var t,r,i,o,a,s,l,u,c=this.node,f=Konva.Tween.attrs[c._id][this._id];for(t in f){if(r=f[t],i=r.start,o=r.diff,u=r.end,Konva.Util._isArray(i))if(a=[],l=Math.max(i.length,u.length),0===t.indexOf("fill"))for(s=0;s<l;s++)s%2==0?a.push((i[s]||0)+o[s]*e):a.push("rgba("+Math.round(i[s].r+o[s].r*e)+","+Math.round(i[s].g+o[s].g*e)+","+Math.round(i[s].b+o[s].b*e)+","+(i[s].a+o[s].a*e)+")");else for(s=0;s<l;s++)a.push((i[s]||0)+o[s]*e);else a=-1!==n.indexOf(t)?"rgba("+Math.round(i.r+o.r*e)+","+Math.round(i.g+o.g*e)+","+Math.round(i.b+o.b*e)+","+(i.a+o.a*e)+")":i+o*e;c.setAttr(t,a)}},_addListeners:function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},this.tween.onFinish=function(){var t=e.node,n=Konva.Tween.attrs[t._id][e._id];n.points&&n.points.trueEnd&&t.points(n.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var t=e.node,n=Konva.Tween.attrs[t._id][e._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),e.onReset&&e.onReset()}},play:function(){return this.tween.play(),this},reverse:function(){return this.tween.reverse(),this},reset:function(){return this.tween.reset(),this},seek:function(e){return this.tween.seek(1e3*e),this},pause:function(){return this.tween.pause(),this},finish:function(){return this.tween.finish(),this},destroy:function(){var e,t=this.node._id,n=this._id,r=Konva.Tween.tweens[t];this.pause();for(e in r)delete Konva.Tween.tweens[t][e];delete Konva.Tween.attrs[t][n]}},Konva.Node.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new Konva.Tween(e).play()},Konva.Easings={BackEaseIn:function(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut:function(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut:function(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},ElasticEaseIn:function(e,t,n,r,i,o){var a=0;return 0===e?t:1==(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},ElasticEaseOut:function(e,t,n,r,i,o){var a=0;return 0===e?t:1==(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+n+t)},ElasticEaseInOut:function(e,t,n,r,i,o){var a=0;return 0===e?t:2==(e/=r/2)?t+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+n+t)},BounceEaseOut:function(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn:function(e,t,n,r){return n-Konva.Easings.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut:function(e,t,n,r){return e<r/2?.5*Konva.Easings.BounceEaseIn(2*e,0,n,r)+t:.5*Konva.Easings.BounceEaseOut(2*e-r,0,n,r)+.5*n+t},EaseIn:function(e,t,n,r){return n*(e/=r)*e+t},EaseOut:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn:function(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut:function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear:function(e,t,n,r){return n*e/r+t}}}(),function(){Konva.DD={anim:new Konva.Animation(function(){var e=this.dirty;return this.dirty=!1,e}),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(e){var t=Konva.DD,n=t.node;if(n){if(!t.isDragging){var r=n.getStage().getPointerPosition();r||(n.getStage()._setPointerPosition(e),r=n.getStage().getPointerPosition());var i=n.dragDistance();if(Math.max(Math.abs(r.x-t.startPointerPos.x),Math.abs(r.y-t.startPointerPos.y))<i)return}if(n.getStage()._setPointerPosition(e),!t.isDragging&&(t.isDragging=!0,n.fire("dragstart",{type:"dragstart",target:n,evt:e},!0),!n.isDragging()))return;n._setDragPosition(e),n.fire("dragmove",{type:"dragmove",target:n,evt:e},!0)}},_endDragBefore:function(e){var t,n=Konva.DD,r=n.node;r&&(t=r.getLayer(),n.anim.stop(),n.isDragging&&(n.isDragging=!1,n.justDragged=!0,Konva.listenClickTap=!1,e&&(e.dragEndNode=r)),delete n.node,(r.getLayer()||t||r instanceof Konva.Stage)&&(t||r).draw())},_endDragAfter:function(e){e=e||{};var t=e.dragEndNode;e&&t&&t.fire("dragend",{type:"dragend",target:t,evt:e},!0)}},Konva.Node.prototype.startDrag=function(){var e=Konva.DD,t=this.getStage(),n=this.getLayer(),r=t.getPointerPosition(),i=this.getAbsolutePosition();r&&(e.node&&e.node.stopDrag(),e.node=this,e.startPointerPos=r,e.offset.x=r.x-i.x,e.offset.y=r.y-i.y,e.anim.setLayers(n||this.getLayers()),e.anim.start(),this._setDragPosition())},Konva.Node.prototype._setDragPosition=function(e){var t=Konva.DD,n=this.getStage().getPointerPosition(),r=this.getDragBoundFunc();if(n){var i={x:n.x-t.offset.x,y:n.y-t.offset.y};void 0!==r&&(i=r.call(this,i,e)),this.setAbsolutePosition(i),this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(t.anim.dirty=!0),this._lastPos=i}},Konva.Node.prototype.stopDrag=function(){var e=Konva.DD,t={};e._endDragBefore(t),e._endDragAfter(t)},Konva.Node.prototype.setDraggable=function(e){this._setAttr("draggable",e),this._dragChange()};var e=Konva.Node.prototype.remove;Konva.Node.prototype.__originalRemove=e,Konva.Node.prototype.remove=function(){var t=Konva.DD;t.node&&t.node._id===this._id&&this.stopDrag(),e.call(this)},Konva.Node.prototype.isDragging=function(){var e=Konva.DD;return!(!e.node||e.node._id!==this._id||!e.isDragging)},Konva.Node.prototype._listenDrag=function(){var e=this;this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.konva contentTouchstart.konva",function(t){Konva.DD.node||e.startDrag(t)}):this.on("mousedown.konva touchstart.konva",function(t){1!==t.evt.button&&2!==t.evt.button&&(Konva.DD.node||e.startDrag(t))})},Konva.Node.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var e=this.getStage(),t=Konva.DD;e&&t.node&&t.node._id===this._id&&t.node.stopDrag()}},Konva.Node.prototype._dragCleanup=function(){"Stage"===this.getClassName()?(this.off("contentMousedown.konva"),this.off("contentTouchstart.konva")):(this.off("mousedown.konva"),this.off("touchstart.konva"))},Konva.Factory.addGetterSetter(Konva.Node,"dragBoundFunc"),Konva.Factory.addGetter(Konva.Node,"draggable",!1),Konva.Factory.addOverloadedGetterSetter(Konva.Node,"draggable"),Konva.isBrowser&&(window.addEventListener("mouseup",Konva.DD._endDragBefore,!0),window.addEventListener("touchend",Konva.DD._endDragBefore,!0),window.addEventListener("mousemove",Konva.DD._drag),window.addEventListener("touchmove",Konva.DD._drag),window.addEventListener("mouseup",Konva.DD._endDragAfter,!1),window.addEventListener("touchend",Konva.DD._endDragAfter,!1))}(),function(){Konva.Rect=function(e){this.___init(e)},Konva.Rect.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Rect",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.getCornerRadius(),n=this.getWidth(),r=this.getHeight();e.beginPath(),t?(t=Math.min(t,n/2,r/2),e.moveTo(t,0),e.lineTo(n-t,0),e.arc(n-t,t,t,3*Math.PI/2,0,!1),e.lineTo(n,r-t),e.arc(n-t,r-t,t,0,Math.PI/2,!1),e.lineTo(t,r),e.arc(t,r-t,t,Math.PI/2,Math.PI,!1),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2,!1)):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}},Konva.Util.extend(Konva.Rect,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Rect,"cornerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Rect)}(),function(e){var t=2*Math.PI-1e-4;e.Circle=function(e){this.___init(e)},e.Circle.prototype={_centroid:!0,___init:function(t){e.Shape.call(this,t),this.className="Circle",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getRadius(),0,t,!1),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){e.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){e.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},e.Util.extend(e.Circle,e.Shape),e.Factory.addGetterSetter(e.Circle,"radius",0,e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Circle,"radius"),e.Collection.mapMethods(e.Circle)}(Konva),function(){var e=2*Math.PI-1e-4;Konva.Ellipse=function(e){this.___init(e)},Konva.Ellipse.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Ellipse",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var n=this.getRadiusX(),r=this.getRadiusY();t.beginPath(),t.save(),n!==r&&t.scale(1,r/n),t.arc(0,0,n,0,e,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadiusX()},getHeight:function(){return 2*this.getRadiusY()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.setRadius({x:e/2})},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.setRadius({y:e/2})}},Konva.Util.extend(Konva.Ellipse,Konva.Shape),Konva.Factory.addComponentsGetterSetter(Konva.Ellipse,"radius",["x","y"]),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusX",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusY",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Ellipse)}(),function(){var e=2*Math.PI-1e-4;Konva.Ring=function(e){this.___init(e)},Konva.Ring.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Ring",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getInnerRadius(),0,e,!1),t.moveTo(this.getOuterRadius(),0),t.arc(0,0,this.getOuterRadius(),e,0,!0),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setOuterRadius:function(e){this._setAttr("outerRadius",e),this.setWidth(2*e),this.setHeight(2*e)}},Konva.Util.extend(Konva.Ring,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Ring,"innerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetter(Konva.Ring,"outerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addOverloadedGetterSetter(Konva.Ring,"outerRadius"),Konva.Collection.mapMethods(Konva.Ring)}(),function(){Konva.Wedge=function(e){this.___init(e)},Konva.Wedge.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Wedge",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getRadius(),0,Konva.getAngle(this.getAngle()),this.getClockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},Konva.Util.extend(Konva.Wedge,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Wedge,"radius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Wedge,"angle",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Wedge,"clockwise",!1),Konva.Factory.backCompat(Konva.Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Konva.Collection.mapMethods(Konva.Wedge)}(),function(e){e.Arc=function(e){this.___init(e)},e.Arc.prototype={_centroid:!0,___init:function(t){e.Shape.call(this,t),this.className="Arc",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var n=e.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.getOuterRadius(),0,n,r),t.arc(0,0,this.getInnerRadius(),n,0,!r),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){e.Node.prototype.setWidth.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){e.Node.prototype.setHeight.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)}},e.Util.extend(e.Arc,e.Shape),e.Factory.addGetterSetter(e.Arc,"innerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"outerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"angle",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"clockwise",!1),e.Collection.mapMethods(e.Arc)}(Konva),function(){Konva.Image=function(e){this.___init(e)},Konva.Image.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Image",this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()&&this.getStage()},_sceneFunc:function(e){var t,n,r,i=this.getWidth(),o=this.getHeight(),a=this.getImage();a&&(t=this.getCropWidth(),n=this.getCropHeight(),r=t&&n?[a,this.getCropX(),this.getCropY(),t,n,0,0,i,o]:[a,0,0,i,o]),(this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,i,o),e.closePath(),e.fillStrokeShape(this)),a&&e.drawImage.apply(e,r)},_hitFunc:function(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){var e=this.getImage();return this.attrs.width||(e?e.width:0)},getHeight:function(){var e=this.getImage();return this.attrs.height||(e?e.height:0)}},Konva.Util.extend(Konva.Image,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Image,"image"),Konva.Factory.addComponentsGetterSetter(Konva.Image,"crop",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Image,"cropX",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropY",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropWidth",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropHeight",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Image),Konva.Image.fromURL=function(e,t){var n=new Image;n.onload=function(){var e=new Konva.Image({image:n});t(e)},n.crossOrigin="Anonymous",n.src=e}}(),function(){function e(){return r||(r=Konva.Util.createCanvasElement().getContext(i))}function t(e){e.fillText(this.partialText,0,0)}function n(e){e.strokeText(this.partialText,0,0)}var r,i="2d",o=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],a=o.length;Konva.Text=function(e){this.___init(e)},Konva.Text.prototype={___init:function(e){e=e||{},e.fillLinearGradientColorStops||e.fillRadialGradientColorStops||(e.fill=e.fill||"black"),Konva.Shape.call(this,e),this._fillFunc=t,this._strokeFunc=n,this.className="Text";for(var r=0;r<a;r++)this.on(o[r]+"Change.konva",this._setTextData);this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){var t,n=this.getPadding(),r=this.getTextHeight(),i=this.getLineHeight()*r,o=this.textArr,a=o.length,s=this.getVerticalAlign(),l=0,u=this.getAlign(),c=this.getWidth(),f=this.getLetterSpacing(),d=this.textDecoration(),h=this.fill(),p=this.fontSize();for(e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline","middle"),e.setAttr("textAlign","left"),"middle"===s?l=(this.getHeight()-a*i-2*n)/2:"bottom"===s&&(l=this.getHeight()-a*i-2*n),n?(e.translate(n,0),e.translate(0,l+n+i/2)):e.translate(0,l+i/2),t=0;t<a;t++){var v,g,m,y=o[t],b=y.text,_=y.width,x=t!==a-1;if(e.save(),"right"===u?e.translate(c-_-2*n,0):"center"===u&&e.translate((c-_-2*n)/2,0),-1!==d.indexOf("underline")&&(e.save(),e.beginPath(),e.moveTo(0,Math.round(i/2)),v=b.split(" ").length-1,g=0===v,m="justify"===u&&x&&!g?c-2*n:_,e.lineTo(Math.round(m),Math.round(i/2)),e.lineWidth=p/15,e.strokeStyle=h,e.stroke(),e.restore()),-1!==d.indexOf("line-through")&&(e.save(),e.beginPath(),e.moveTo(0,0),v=b.split(" ").length-1,g=0===v,m="justify"===u&&x&&!g?c-2*n:_,e.lineTo(Math.round(m),0),e.lineWidth=p/15,e.strokeStyle=h,e.stroke(),e.restore()),0!==f||"justify"===u){v=b.split(" ").length-1;for(var w=0;w<b.length;w++){var S=b[w];" "===S&&t!==a-1&&"justify"===u&&e.translate(Math.floor((c-2*n-_)/v),0),this.partialText=S,e.fillStrokeShape(this),e.translate(Math.round(this._getTextSize(S).width)+f,0)}}else this.partialText=b,e.fillStrokeShape(this);e.restore(),a>1&&e.translate(0,i)}},_hitFunc:function(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)},setText:function(e){var t=Konva.Util._isString(e)?e:(e||"").toString();return this._setAttr("text",t),this},getWidth:function(){return"auto"===this.attrs.width||void 0===this.attrs.width?this.getTextWidth()+2*this.getPadding():this.attrs.width},getHeight:function(){return"auto"===this.attrs.height||void 0===this.attrs.height?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},_getTextSize:function(t){var n,r=e(),i=this.getFontSize();return r.save(),r.font=this._getContextFont(),n=r.measureText(t),r.restore(),{width:n.width,height:parseInt(i,10)}},_getContextFont:function(){return Konva.UA.isIE?this.getFontStyle()+" "+this.getFontSize()+"px "+this.getFontFamily():this.getFontStyle()+" "+this.getFontVariant()+" "+this.getFontSize()+"px "+this.getFontFamily()},_addTextLine:function(e){"justify"===this.align()&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t})},_getTextWidth:function(t){var n=this.getLetterSpacing(),r=t.length;return e().measureText(t).width+(r?n*(r-1):0)},_setTextData:function(){var t=this.getText().split("\n"),n=+this.getFontSize(),r=0,i=this.getLineHeight()*n,o=this.attrs.width,a=this.attrs.height,s="auto"!==o,l="auto"!==a,u=this.getPadding(),c=o-2*u,f=a-2*u,d=0,h=this.getWrap(),p="none"!==h,v="char"!==h&&p,g=this.getEllipsis()&&!p;this.textArr=[],e().font=this._getContextFont();for(var m=0,y=t.length;m<y;++m){var b=t[m],_=g?this._getTextWidth("…"):0,x=this._getTextWidth(b);if(s&&x>c)for(;b.length>0;){for(var w=0,S=b.length,C="",T=0;w<S;){var k=w+S>>>1,P=b.slice(0,k+1),O=this._getTextWidth(P)+_;O<=c?(w=k+1,C=P+(g?"…":""),T=O):S=k}if(!C)break;if(v){var E,N=b[C.length],K=" "===N||"-"===N;E=K&&T<=c?C.length:Math.max(C.lastIndexOf(" "),C.lastIndexOf("-"))+1,E>0&&(w=E,C=C.slice(0,w),T=this._getTextWidth(C))}if(C=Konva.Util.trimRight(C),this._addTextLine(C),r=Math.max(r,T),d+=i,!p||l&&d+i>f)break;if(b=b.slice(w),b=Konva.Util.trimLeft(b),b.length>0&&(x=this._getTextWidth(b))<=c){this._addTextLine(b),d+=i,r=Math.max(r,x);break}}else this._addTextLine(b),d+=i,r=Math.max(r,x);if(l&&d+i>f)break}this.textHeight=n,this.textWidth=r}},Konva.Util.extend(Konva.Text,Konva.Shape),Konva.Factory.addSetter(Konva.Node,"width",Konva.Validators.getNumberOrAutoValidator()),Konva.Factory.addSetter(Konva.Node,"height",Konva.Validators.getNumberOrAutoValidator()),Konva.Factory.addGetterSetter(Konva.Text,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.Text,"fontSize",12,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.Text,"fontVariant","normal"),Konva.Factory.addGetterSetter(Konva.Text,"padding",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"align","left"),Konva.Factory.addGetterSetter(Konva.Text,"verticalAlign","top"),Konva.Factory.addGetterSetter(Konva.Text,"lineHeight",1,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"wrap","word"),Konva.Factory.addGetterSetter(Konva.Text,"ellipsis",!1),Konva.Factory.addGetterSetter(Konva.Text,"letterSpacing",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetter(Konva.Text,"text",""),Konva.Factory.addOverloadedGetterSetter(Konva.Text,"text"),Konva.Factory.addGetterSetter(Konva.Text,"textDecoration",""),Konva.Collection.mapMethods(Konva.Text)}(),function(){Konva.Line=function(e){this.___init(e)},Konva.Line.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Line",this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t,n,r,i=this.getPoints(),o=i.length,a=this.getTension(),s=this.getClosed(),l=this.getBezier();if(o){if(e.beginPath(),e.moveTo(i[0],i[1]),0!==a&&o>4){for(t=this.getTensionPoints(),n=t.length,r=s?0:4,s||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);r<n-2;)e.bezierCurveTo(t[r++],t[r++],t[r++],t[r++],t[r++],t[r++]);s||e.quadraticCurveTo(t[n-2],t[n-1],i[o-2],i[o-1])}else if(l)for(r=2;r<o;)e.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<o;r+=2)e.lineTo(i[r],i[r+1]);s?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}},getTensionPoints:function(){return this._getCache("tensionPoints",this._getTensionPoints)},_getTensionPoints:function(){return this.getClosed()?this._getTensionPointsClosed():Konva.Util._expandPoints(this.getPoints(),this.getTension())},_getTensionPointsClosed:function(){var e=this.getPoints(),t=e.length,n=this.getTension(),r=Konva.Util,i=r._getControlPoints(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),o=r._getControlPoints(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=Konva.Util._expandPoints(e,n);return[i[2],i[3]].concat(a).concat([o[0],o[1],e[t-2],e[t-1],o[2],o[3],i[0],i[1],e[0],e[1]])},getWidth:function(){return this.getSelfRect().width},getHeight:function(){return this.getSelfRect().height},getSelfRect:function(){var e;e=0!==this.getTension()?this._getTensionPoints():this.getPoints();for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}}},Konva.Util.extend(Konva.Line,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Line,"closed",!1),Konva.Factory.addGetterSetter(Konva.Line,"bezier",!1),Konva.Factory.addGetterSetter(Konva.Line,"tension",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Line,"points",[],Konva.Validators.getNumberArrayValidator()),Konva.Collection.mapMethods(Konva.Line)}(),function(){Konva.Sprite=function(e){this.___init(e)},Konva.Sprite.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Sprite",this._updated=!0;var t=this;this.anim=new Konva.Animation(function(){var e=t._updated;return t._updated=!1,e}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){var t=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[t],o=this.frameOffsets(),a=i[r+0],s=i[r+1],l=i[r+2],u=i[r+3],c=this.getImage();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,l,u),e.closePath(),e.fillStrokeShape(this)),c)if(o){var f=o[t],d=2*n;e.drawImage(c,a,s,l,u,f[d+0],f[d+1],l,u)}else e.drawImage(c,a,s,l,u,0,0,l,u)},_hitFunc:function(e){var t=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[t],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(e.beginPath(),o){var l=o[t],u=2*n;e.rect(l[u+0],l[u+1],a,s)}else e.rect(0,0,a,s);e.closePath(),e.fillShape(this)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},_setInterval:function(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.getFrameRate())},start:function(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}},stop:function(){this.anim.stop(),clearInterval(this.interval)},isRunning:function(){return this.anim.isRunning()},_updateIndex:function(){var e=this.frameIndex(),t=this.getAnimation();e<this.getAnimations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}},Konva.Util.extend(Konva.Sprite,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Sprite,"animation"),Konva.Factory.addGetterSetter(Konva.Sprite,"animations"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameOffsets"),Konva.Factory.addGetterSetter(Konva.Sprite,"image"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameIndex",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Sprite,"frameRate",17,Konva.Validators.getNumberValidator()),Konva.Factory.backCompat(Konva.Sprite,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Konva.Collection.mapMethods(Konva.Sprite)}(),function(){Konva.Path=function(e){this.___init(e)},Konva.Path.prototype={___init:function(e){this.dataArray=[];var t=this;Konva.Shape.call(this,e),this.className="Path",this.dataArray=Konva.Path.parsePathData(this.getData()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on("dataChange.konva",function(){t.dataArray=Konva.Path.parsePathData(this.getData()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.dataArray;e.beginPath();for(var n=0;n<t.length;n++){var r=t[n].command,i=t[n].points;switch(r){case"L":e.lineTo(i[0],i[1]);break;case"M":e.moveTo(i[0],i[1]);break;case"C":e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":var o=i[0],a=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1;e.translate(o,a),e.rotate(f),e.scale(p,v),e.arc(0,0,h,u,u+c,1-d),e.scale(1/p,1/v),e.rotate(-f),e.translate(-o,-a);break;case"z":e.closePath()}}e.fillStrokeShape(this)},getSelfRect:function(){var e=[];this.dataArray.forEach(function(t){e=e.concat(t.points)});for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],isNaN(t)||(r=Math.min(r,t),i=Math.max(i,t)),isNaN(n)||(o=Math.min(o,n),a=Math.max(a,n));return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}},getLength:function(){return this.pathLength},getPointAtLength:function(e){var t,n=0,r=this.dataArray.length;if(!r)return null;for(;n<r&&e>this.dataArray[n].pathLength;)e-=this.dataArray[n].pathLength,++n;if(n===r)return t=this.dataArray[n-1].points.slice(-2),{x:t[0],y:t[1]};if(e<.01)return t=this.dataArray[n].points.slice(0,2),{x:t[0],y:t[1]};var i=this.dataArray[n],o=i.points;switch(i.command){case"L":return Konva.Path.getPointOnLine(e,i.start.x,i.start.y,o[0],o[1]);case"C":return Konva.Path.getPointOnCubicBezier(e/i.pathLength,i.start.x,i.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case"Q":return Konva.Path.getPointOnQuadraticBezier(e/i.pathLength,i.start.x,i.start.y,o[0],o[1],o[2],o[3]);case"A":var a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],f=o[5],d=o[6];return c+=f*e/i.pathLength,Konva.Path.getPointOnEllipticalArc(a,s,l,u,c,d)}return null}},Konva.Util.extend(Konva.Path,Konva.Shape),Konva.Path.getLineLength=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},Konva.Path.getPointOnLine=function(e,t,n,r,i,o,a){void 0===o&&(o=t),void 0===a&&(a=n);var s=(i-n)/(r-t+1e-8),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var u,c=s*l;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+1e-8)===s)u={x:o+l,y:a+c};else{var f,d,h=this.getLineLength(t,n,r,i);if(h<1e-8)return;var p=(o-t)*(r-t)+(a-n)*(i-n);p/=h*h,f=t+p*(r-t),d=n+p*(i-n);var v=this.getLineLength(o,a,f,d),g=Math.sqrt(e*e-v*v);l=Math.sqrt(g*g/(1+s*s)),r<t&&(l*=-1),c=s*l,u={x:f+l,y:d+c}}return u},Konva.Path.getPointOnCubicBezier=function(e,t,n,r,i,o,a,s,l){function u(e){return e*e*e}function c(e){return 3*e*e*(1-e)}function f(e){return 3*e*(1-e)*(1-e)}function d(e){return(1-e)*(1-e)*(1-e)}return{x:s*u(e)+o*c(e)+r*f(e)+t*d(e),y:l*u(e)+a*c(e)+i*f(e)+n*d(e)}},Konva.Path.getPointOnQuadraticBezier=function(e,t,n,r,i,o,a){function s(e){return e*e}function l(e){return 2*e*(1-e)}function u(e){return(1-e)*(1-e)}return{x:o*s(e)+r*l(e)+t*u(e),y:a*s(e)+i*l(e)+n*u(e)}},Konva.Path.getPointOnEllipticalArc=function(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(l.x*a-l.y*s),y:t+(l.x*s+l.y*a)}},Konva.Path.parsePathData=function(e){if(!e)return[];var t=e,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=t.split("|"),a=[],s=[],l=0,u=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var f=o[r],d=f.charAt(0);for(f=f.slice(1),s.length=0;i=c.exec(f);)s.push(i[0]);for(var h=[],p=0,v=s.length;p<v;p++){var g=parseFloat(s[p]);isNaN(g)?h.push(0):h.push(g)}for(;h.length>0&&!isNaN(h[0]);){var m,y,b,_,x,w,S,C,T,k,P=null,O=[],E=l,N=u;switch(d){case"l":l+=h.shift(),u+=h.shift(),P="L",O.push(l,u);break;case"L":l=h.shift(),u=h.shift(),O.push(l,u);break;case"m":var K=h.shift(),M=h.shift();if(l+=K,u+=M,P="M",a.length>2&&"z"===a[a.length-1].command)for(var F=a.length-2;F>=0;F--)if("M"===a[F].command){l=a[F].points[0]+K,u=a[F].points[1]+M;break}O.push(l,u),d="l";break;case"M":l=h.shift(),u=h.shift(),P="M",O.push(l,u),d="L";break;case"h":l+=h.shift(),P="L",O.push(l,u);break;case"H":l=h.shift(),P="L",O.push(l,u);break;case"v":u+=h.shift(),P="L",O.push(l,u);break;case"V":u=h.shift(),P="L",O.push(l,u);break;case"C":O.push(h.shift(),h.shift(),h.shift(),h.shift()),l=h.shift(),u=h.shift(),O.push(l,u);break;case"c":O.push(l+h.shift(),u+h.shift(),l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",O.push(l,u);break;case"S":y=l,b=u,m=a[a.length-1],"C"===m.command&&(y=l+(l-m.points[2]),b=u+(u-m.points[3])),O.push(y,b,h.shift(),h.shift()),l=h.shift(),u=h.shift(),P="C",O.push(l,u);break;case"s":y=l,b=u,m=a[a.length-1],"C"===m.command&&(y=l+(l-m.points[2]),b=u+(u-m.points[3])),O.push(y,b,l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",O.push(l,u);break;case"Q":O.push(h.shift(),h.shift()),l=h.shift(),u=h.shift(),O.push(l,u);break;case"q":O.push(l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="Q",O.push(l,u);break;case"T":y=l,b=u,m=a[a.length-1],"Q"===m.command&&(y=l+(l-m.points[0]),b=u+(u-m.points[1])),l=h.shift(),u=h.shift(),P="Q",O.push(y,b,l,u);break;case"t":y=l,b=u,m=a[a.length-1],"Q"===m.command&&(y=l+(l-m.points[0]),b=u+(u-m.points[1])),l+=h.shift(),u+=h.shift(),P="Q",O.push(y,b,l,u);break;case"A":_=h.shift(),x=h.shift(),w=h.shift(),S=h.shift(),C=h.shift(),T=l,k=u,l=h.shift(),u=h.shift(),P="A",O=this.convertEndpointToCenterParameterization(T,k,l,u,S,C,_,x,w);break;case"a":_=h.shift(),x=h.shift(),w=h.shift(),S=h.shift(),C=h.shift(),T=l,k=u,l+=h.shift(),u+=h.shift(),P="A",O=this.convertEndpointToCenterParameterization(T,k,l,u,S,C,_,x,w)}a.push({command:P||d,points:O,start:{x:E,y:N},pathLength:this.calcLength(E,N,P||d,O)})}"z"!==d&&"Z"!==d||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},Konva.Path.calcLength=function(e,t,n,r){var i,o,a,s,l=Konva.Path;switch(n){case"L":return l.getLineLength(e,t,r[0],r[1]);case"C":for(i=0,o=l.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=l.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"Q":for(i=0,o=l.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=l.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"A":i=0;var u=r[4],c=r[5],f=r[4]+c,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),o=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),c<0)for(s=u-d;s>f;s-=d)a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+d;s<f;s+=d)a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],f,0),i+=l.getLineLength(o.x,o.y,a.x,a.y)}return 0},Konva.Path.convertEndpointToCenterParameterization=function(e,t,n,r,i,o,a,s,l){var u=l*(Math.PI/180),c=Math.cos(u)*(e-n)/2+Math.sin(u)*(t-r)/2,f=-1*Math.sin(u)*(e-n)/2+Math.cos(u)*(t-r)/2,d=c*c/(a*a)+f*f/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var h=Math.sqrt((a*a*(s*s)-a*a*(f*f)-s*s*(c*c))/(a*a*(f*f)+s*s*(c*c)));i===o&&(h*=-1),isNaN(h)&&(h=0);var p=h*a*f/s,v=h*-s*c/a,g=(e+n)/2+Math.cos(u)*p-Math.sin(u)*v,m=(t+r)/2+Math.sin(u)*p+Math.cos(u)*v,y=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))},_=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},x=_([1,0],[(c-p)/a,(f-v)/s]),w=[(c-p)/a,(f-v)/s],S=[(-1*c-p)/a,(-1*f-v)/s],C=_(w,S);return b(w,S)<=-1&&(C=Math.PI),b(w,S)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),[g,m,a,s,x,C,u,o]},Konva.Factory.addGetterSetter(Konva.Path,"data"),Konva.Collection.mapMethods(Konva.Path)}(),function(){function e(e){e.fillText(this.partialText,0,0)}function t(e){e.strokeText(this.partialText,0,0)}Konva.TextPath=function(e){this.___init(e)},Konva.TextPath.prototype={___init:function(n){var r=this;this.dummyCanvas=Konva.Util.createCanvasElement(),this.dataArray=[],this.getKerning=n&&n.getKerning,Konva.Shape.call(this,n),this._fillFunc=e,this._strokeFunc=t,this._fillFuncHit=e,this._strokeFuncHit=t,this.className="TextPath",this.dataArray=Konva.Path.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){r.dataArray=Konva.Path.parsePathData(this.attrs.data),r._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva",r._setTextData),r._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.getTextBaseline()),e.setAttr("textAlign","left"),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===t&&e.beginPath();for(var o=0;o<i.length;o++){e.save();var a=i[o].p0;e.translate(a.x,a.y),e.rotate(i[o].rotation),this.partialText=i[o].text,e.fillStrokeShape(this),"underline"===t&&(0===o&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}"underline"===t&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()},_hitFunc:function(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.getFontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},setText:function(e){Konva.Text.prototype.setText.call(this,e)},_getTextSize:function(e){var t=this.dummyCanvas,n=t.getContext("2d");n.save(),n.font=this._getContextFont();var r=n.measureText(e);return n.restore(),{width:r.width,height:parseInt(this.attrs.fontSize,10)}},_setTextData:function(){var e=this,t=this._getTextSize(this.attrs.text),n=this.getLetterSpacing(),r=this.align();this.textWidth=t.width,this.textHeight=t.height;var i=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var o=0,a=0;a<e.dataArray.length;a++)e.dataArray[a].pathLength>0&&(o+=e.dataArray[a].pathLength);var s=0;"center"===r&&(s=Math.max(0,o/2-i/2)),"right"===r&&(s=Math.max(0,o-i));for(var l,u,c,f=this.getText().split(""),d=this.getText().split(" ").length-1,h=-1,p=0,v=function(){p=0;for(var t=e.dataArray,n=h+1;n<t.length;n++){if(t[n].pathLength>0)return h=n,t[n];"M"===t[n].command&&(l={x:t[n].points[0],y:t[n].points[1]})}return{}},g=function(t){var a=e._getTextSize(t).width+n;" "===t&&"justify"===r&&(a+=(o-i)/d);var s=0,f=0;for(u=void 0;Math.abs(a-s)/a>.01&&f<25;){f++;for(var h=s;void 0===c;)(c=v())&&h+c.pathLength<a&&(h+=c.pathLength,c=void 0);if(c==={}||void 0===l)return;var g=!1;switch(c.command){case"L":Konva.Path.getLineLength(l.x,l.y,c.points[0],c.points[1])>a?u=Konva.Path.getPointOnLine(a,l.x,l.y,c.points[0],c.points[1],l.x,l.y):c=void 0;break;case"A":var m=c.points[4],y=c.points[5],b=c.points[4]+y;0===p?p=m+1e-8:a>s?p+=Math.PI/180*y/Math.abs(y):p-=Math.PI/360*y/Math.abs(y),(y<0&&p<b||y>=0&&p>b)&&(p=b,g=!0),u=Konva.Path.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],p,c.points[6]);break;case"C":0===p?p=a>c.pathLength?1e-8:a/c.pathLength:a>s?p+=(a-s)/c.pathLength:p-=(s-a)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnCubicBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3],c.points[4],c.points[5]);break;case"Q":0===p?p=a/c.pathLength:a>s?p+=(a-s)/c.pathLength:p-=(s-a)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnQuadraticBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3])}void 0!==u&&(s=Konva.Path.getLineLength(l.x,l.y,u.x,u.y)),g&&(g=!1,c=void 0)}},m=e._getTextSize("C").width+n,y=0;y<s/m&&(g("C"),void 0!==l&&void 0!==u);y++)l=u;for(var b=0;b<f.length&&(g(f[b]),void 0!==l&&void 0!==u);b++){var _=Konva.Path.getLineLength(l.x,l.y,u.x,u.y),x=0;if(this.getKerning)try{x=this.getKerning(f[b-1],f[b])*this.fontSize()}catch(e){x=0}l.x+=x,u.x+=x,this.textWidth+=x;var w=Konva.Path.getPointOnLine(x+_/2,l.x,l.y,u.x,u.y),S=Math.atan2(u.y-l.y,u.x-l.x);this.glyphInfo.push({transposeX:w.x,transposeY:w.y,text:f[b],rotation:S,p0:l,p1:u}),l=u}},getSelfRect:function(){var e=[];this.glyphInfo.forEach(function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)});for(var t,n,r=e[0],i=e[0],o=e[0],a=e[0],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);var l=this.fontSize();return{x:Math.round(r)-l/2,y:Math.round(o)-l/2,width:Math.round(i-r)+l,height:Math.round(a-o)+l}}},Konva.TextPath.prototype._getContextFont=Konva.Text.prototype._getContextFont,Konva.Util.extend(Konva.TextPath,Konva.Shape),Konva.Factory.addGetterSetter(Konva.TextPath,"data"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontSize",12,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.TextPath,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.TextPath,"align","left"),Konva.Factory.addGetterSetter(Konva.TextPath,"letterSpacing",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.TextPath,"textBaseline","middle"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontVariant","normal"),Konva.Factory.addGetter(Konva.TextPath,"text",""),Konva.Factory.addGetterSetter(Konva.TextPath,"textDecoration",null),Konva.Collection.mapMethods(Konva.TextPath)}(),function(){Konva.RegularPolygon=function(e){this.___init(e)},Konva.RegularPolygon.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t,n,r,i=this.attrs.sides,o=this.attrs.radius;for(e.beginPath(),e.moveTo(0,0-o),t=1;t<i;t++)n=o*Math.sin(2*t*Math.PI/i),r=-1*o*Math.cos(2*t*Math.PI/i),e.lineTo(n,r);e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},Konva.Util.extend(Konva.RegularPolygon,Konva.Shape),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"radius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"sides",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.RegularPolygon)}(),function(){Konva.Star=function(e){this.___init(e)},Konva.Star.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Star",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2==0?n:t,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);e.lineTo(a,s)}e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)}},Konva.Util.extend(Konva.Star,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Star,"numPoints",5,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Star,"innerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Star,"outerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Star)}(),function(){var e=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],t=e.length;Konva.Label=function(e){this.____init(e)},Konva.Label.prototype={____init:function(e){var t=this;Konva.Group.call(this,e),this.className="Label",this.on("add.konva",function(e){t._addListeners(e.child),t._sync()})},getText:function(){return this.find("Text")[0]},getTag:function(){return this.find("Tag")[0]},_addListeners:function(n){var r,i=this,o=function(){i._sync()};for(r=0;r<t;r++)n.on(e[r]+"Change.konva",o)},getWidth:function(){return this.getText().getWidth()},getHeight:function(){return this.getText().getHeight()},_sync:function(){var e,t,n,r,i,o,a,s=this.getText(),l=this.getTag();if(s&&l){switch(e=s.getWidth(),t=s.getHeight(),n=l.getPointerDirection(),r=l.getPointerWidth(),a=l.getPointerHeight(),i=0,o=0,n){case"up":i=e/2,o=-1*a;break;case"right":i=e+r,o=t/2;break;case"down":i=e/2,o=t+a;break;case"left":i=-1*r,o=t/2}l.setAttrs({x:-1*i,y:-1*o,width:e,height:t}),s.setAttrs({x:-1*i,y:-1*o})}}},Konva.Util.extend(Konva.Label,Konva.Group),Konva.Collection.mapMethods(Konva.Label),Konva.Tag=function(e){this.___init(e)},Konva.Tag.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Tag",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.getWidth(),n=this.getHeight(),r=this.getPointerDirection(),i=this.getPointerWidth(),o=this.getPointerHeight(),a=Math.min(this.getCornerRadius(),t/2,n/2);e.beginPath(),a?e.moveTo(a,0):e.moveTo(0,0),"up"===r&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*o),e.lineTo((t+i)/2,0)),a?(e.lineTo(t-a,0),e.arc(t-a,a,a,3*Math.PI/2,0,!1)):e.lineTo(t,0),"right"===r&&(e.lineTo(t,(n-o)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+o)/2)),a?(e.lineTo(t,n-a),e.arc(t-a,n-a,a,0,Math.PI/2,!1)):e.lineTo(t,n),"down"===r&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+o),e.lineTo((t-i)/2,n)),a?(e.lineTo(a,n),e.arc(a,n-a,a,Math.PI/2,Math.PI,!1)):e.lineTo(0,n),"left"===r&&(e.lineTo(0,(n+o)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-o)/2)),a&&(e.lineTo(0,a),e.arc(a,a,a,Math.PI,3*Math.PI/2,!1)),e.closePath(),e.fillStrokeShape(this)},getSelfRect:function(){var e=0,t=0,n=this.getPointerWidth(),r=this.getPointerHeight(),i=this.pointerDirection(),o=this.getWidth(),a=this.getHeight();return"up"===i?(t-=r,a+=r):"down"===i?a+=r:"left"===i?(e-=1.5*n,o+=n):"right"===i&&(o+=1.5*n),{x:e,y:t,width:o,height:a}}},Konva.Util.extend(Konva.Tag,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Tag,"pointerDirection","none"),Konva.Factory.addGetterSetter(Konva.Tag,"pointerWidth",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Tag,"pointerHeight",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Tag,"cornerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Tag)}(),function(e){e.Arrow=function(e){this.____init(e)},e.Arrow.prototype={____init:function(t){e.Line.call(this,t),this.className="Arrow"},_sceneFunc:function(t){e.Line.prototype._sceneFunc.apply(this,arguments);var n=2*Math.PI,r=this.points(),i=r,o=0!==this.getTension()&&r.length>4;o&&(i=this.getTensionPoints());var a,s,l=r.length;o?(a=r[l-2]-i[l-2],s=r[l-1]-i[l-1]):(a=r[l-2]-r[l-4],s=r[l-1]-r[l-3]);var u=(Math.atan2(s,a)+n)%n,c=this.pointerLength(),f=this.pointerWidth();t.save(),t.beginPath(),t.translate(r[l-2],r[l-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-c,f/2),t.lineTo(-c,-f/2),t.closePath(),t.restore(),this.pointerAtBeginning()&&(t.save(),t.translate(r[0],r[1]),o?(a=i[0]-r[0],s=i[1]-r[1]):(a=r[2]-r[0],s=r[3]-r[1]),t.rotate((Math.atan2(-s,-a)+n)%n),t.moveTo(0,0),t.lineTo(-c,f/2),t.lineTo(-c,-f/2),t.closePath(),t.restore());var d=this.dashEnabled();d&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),d&&(this.attrs.dashEnabled=!0)}},e.Util.extend(e.Arrow,e.Line),e.Factory.addGetterSetter(e.Arrow,"pointerLength",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arrow,"pointerWidth",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arrow,"pointerAtBeginning",!1),e.Collection.mapMethods(e.Arrow)}(Konva),function(e){function t(t,n,r){if("rotater"===t)return"crosshair";n+=e.Util._degToRad(a[t]||0),r&&(n*=-1);var i=(e.Util._radToDeg(n)%360+360)%360;return e.Util._inRange(i,337.5,360)||e.Util._inRange(i,0,22.5)?"ns-resize":e.Util._inRange(i,22.5,67.5)?"nesw-resize":e.Util._inRange(i,67.5,112.5)?"ew-resize":e.Util._inRange(i,112.5,157.5)?"nwse-resize":e.Util._inRange(i,157.5,202.5)?"ns-resize":e.Util._inRange(i,202.5,247.5)?"nesw-resize":e.Util._inRange(i,247.5,292.5)?"ew-resize":e.Util._inRange(i,292.5,337.5)?"nwse-resize":(e.Util.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}function n(t){return t instanceof Array||e.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===s.indexOf(t)&&e.Util.warn("Unknown anchor name: "+t+". Available names are: "+s.join(", "))}),t||[]}var r=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange"].join(" "),i=["xChange.resizer","yChange.resizer","widthChange.resizer","heightChange.resizer","scaleXChange.resizer","scaleYChange.resizer","skewXChange.resizer","skewYChange.resizer","rotationChange.resizer","offsetXChange.resizer","offsetYChange.resizer","transformsEnabledChange.resizer"].join(" "),o=["widthChange.resizer","heightChange.resizer","scaleXChange.resizer","scaleYChange.resizer","skewXChange.resizer","skewYChange.resizer","rotationChange.resizer","offsetXChange.resizer","offsetYChange.resizer"].join(" "),a={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};e.Transformer=function(e){this.____init(e)};var s=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];e.Transformer.prototype={_centroid:!1,____init:function(t){e.Group.call(this,t),this.className="Transformer",this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(r,this.update),this.getNode()&&this.update()},attachTo:function(e){this.setNode(e)},setNode:function(e){return this._node&&this.detach(),this._node=e,this._resetTransformCache(),e.on(i,this._resetTransformCache.bind(this)),e.on(o,function(){this._transforming||this.update()}.bind(this)),!!this.findOne(".top-left")&&this.update(),this},getNode:function(){return this._node},detach:function(){this.getNode()&&(this.getNode().off(".resizer"),this._node=void 0),this._resetTransformCache()},_resetTransformCache:function(){this._clearCache("nodeRect"),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_getNodeRect:function(){return this._getCache("nodeRect",this.__getNodeRect)},__getNodeRect:function(){var t=this.getNode();if(!t)return{x:-Number.MAX_SAFE_INTEGER,y:-Number.MAX_SAFE_INTEGER,width:0,height:0,rotation:0};var n=t.getClientRect({skipTransform:!0,skipShadow:!0}),r=e.getAngle(t.rotation()),i=n.x*t.scaleX()-t.offsetX()*t.scaleX(),o=n.y*t.scaleY()-t.offsetY()*t.scaleY();return{x:t.x()+i*Math.cos(r)+o*Math.sin(-r),y:t.y()+o*Math.cos(r)+i*Math.sin(r),width:n.width*t.scaleX(),height:n.height*t.scaleY(),rotation:t.rotation()}},getX:function(){return this._getNodeRect().x},getY:function(){return this._getNodeRect().y},getRotation:function(){return this._getNodeRect().rotation},getWidth:function(){return this._getNodeRect().width},getHeight:function(){return this._getNodeRect().height},_createElements:function(){this._createBack(),s.forEach(function(e){this._createAnchor(e)}.bind(this)),this._createAnchor("rotater")},_createAnchor:function(n){var r=new e.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:n+" _anchor",dragDistance:0,draggable:!0}),i=this;r.on("mousedown touchstart",function(e){i._handleMouseDown(e)}),r.on("dragstart",function(e){e.cancelBubble=!0}),r.on("dragmove",function(e){e.cancelBubble=!0}),r.on("dragend",function(e){e.cancelBubble=!0}),r.on("mouseenter",function(){var i=this.getParent(),o=e.getAngle(i.rotation()),a=i.getNode().getAbsoluteScale(),s=a.y*a.x<0,l=t(n,o,s);r.getStage().content.style.cursor=l,i._cursorChange=!0}),r.on("mouseout",function(){r.getStage()&&this.getParent()&&(r.getStage().content.style.cursor="",this.getParent()._cursorChange=!1)}),this.add(r)},_createBack:function(){var t=new e.Shape({name:"back",width:0,height:0,listening:!1,sceneFunc:function(t){var n=this.getParent(),r=n.getPadding();t.beginPath(),t.rect(-r,-r,this.width()+2*r,this.height()+2*r),t.moveTo(this.width()/2,-r),n.rotateEnabled()&&t.lineTo(this.width()/2,-n.rotateAnchorOffset()*e.Util._sign(this.height())),t.fillStrokeShape(this)}});this.add(t)},_handleMouseDown:function(e){this.movingResizer=e.target.name().split(" ")[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=r/i,this.cos=n/i,window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0,this._fire("transformstart",{evt:e}),this.getNode()._fire("transformstart",{evt:e})},_handleMouseMove:function(t){var n,r,i,o=this.findOne("."+this.movingResizer),a=o.getStage(),s=a.getContent().getBoundingClientRect(),l={x:s.left,y:s.top},u={left:void 0!==t.clientX?t.clientX:t.touches[0].clientX,top:void 0!==t.clientX?t.clientY:t.touches[0].clientY},c={x:u.left-l.x,y:u.top-l.y};o.setAbsolutePosition(c);var f=this.keepRatio()||t.shiftKey;if("top-left"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-right").x()-o.x(),2)+Math.pow(this.findOne(".bottom-right").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".top-left").x(this.findOne(".bottom-right").x()-n),this.findOne(".top-left").y(this.findOne(".bottom-right").y()-r));else if("top-center"===this.movingResizer)this.findOne(".top-left").y(o.y());else if("top-right"===this.movingResizer){f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-left").x()-o.x(),2)+Math.pow(this.findOne(".bottom-left").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".top-right").x(n),this.findOne(".top-right").y(this.findOne(".bottom-left").y()-r));var d=o.position();this.findOne(".top-left").y(d.y),this.findOne(".bottom-right").x(d.x)}else if("middle-left"===this.movingResizer)this.findOne(".top-left").x(o.x());else if("middle-right"===this.movingResizer)this.findOne(".bottom-right").x(o.x());else if("bottom-left"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".top-right").x()-o.x(),2)+Math.pow(this.findOne(".top-right").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".bottom-left").x(this.findOne(".top-right").x()-n),this.findOne(".bottom-left").y(r)),d=o.position(),this.findOne(".top-left").x(d.x),this.findOne(".bottom-right").y(d.y);else if("bottom-center"===this.movingResizer)this.findOne(".bottom-right").y(o.y());else if("bottom-right"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-right").x(),2)+Math.pow(this.findOne(".bottom-right").y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".bottom-right").x(n),this.findOne(".bottom-right").y(r));else if("rotater"===this.movingResizer){var h=this.getPadding(),p=this._getNodeRect();n=o.x()-p.width/2,r=-o.y()+p.height/2;var v=Math.atan2(-r,n)+Math.PI/2;p.height<0&&(v-=Math.PI);for(var g=e.getAngle(this.rotation()),m=e.Util._radToDeg(g)+e.Util._radToDeg(v),y=e.getAngle(this.getNode().rotation()),b=e.Util._degToRad(m),_=this.rotationSnaps(),x=0;x<_.length;x++){var w=e.getAngle(_[x]),S=Math.abs(w-e.Util._degToRad(m))%(2*Math.PI);S<.1&&(m=e.Util._radToDeg(w),b=e.Util._degToRad(m))}var C=h,T=h;this._fitNodeInto({rotation:e.angleDeg?m:e.Util._degToRad(m),x:p.x+(p.width/2+h)*(Math.cos(y)-Math.cos(b))+(p.height/2+h)*(Math.sin(-y)-Math.sin(-b))-(C*Math.cos(g)+T*Math.sin(-g)),y:p.y+(p.height/2+h)*(Math.cos(y)-Math.cos(b))+(p.width/2+h)*(Math.sin(y)-Math.sin(b))-(T*Math.cos(g)+C*Math.sin(g)),width:p.width+2*h,height:p.height+2*h},t)}else console.error(new Error("Wrong position argument of selection resizer: ",this.movingResizer));if("rotater"!==this.movingResizer){var k=this.findOne(".top-left").getAbsolutePosition(this.getParent());if(this.getCenteredScaling()||t.altKey){var P=this.findOne(".top-left"),O=this.findOne(".bottom-right"),E=P.x(),N=P.y(),K=this.getWidth()-O.x(),M=this.getHeight()-O.y();O.move({x:-E,y:-N}),P.move({x:K,y:M}),k=P.getAbsolutePosition(this.getParent())}n=k.x,r=k.y;var F=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),I=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodeInto({x:n+this.offsetX(),y:r+this.offsetY(),width:F,height:I},t)}},_handleMouseUp:function(e){this._removeEvents(e)},_removeEvents:function(e){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0),this._fire("transformend",{evt:e});var t=this.getNode();t&&t.fire("transformend",{evt:e})}},_fitNodeInto:function(t,n){var r=this.getBoundBoxFunc();if(r){var i=this._getNodeRect();t=r.call(this,i,t)}this._settings=!0;var o=this.getNode();void 0!==t.rotation&&this.getNode().rotation(t.rotation);var a=o.getClientRect({skipTransform:!0,skipShadow:!0}),s=this.getPadding(),l=(t.width-2*s)/a.width,u=(t.height-2*s)/a.height,c=e.getAngle(o.getRotation()),f=a.x*l-s-o.offsetX()*l,d=a.y*u-s-o.offsetY()*u;this.getNode().setAttrs({scaleX:l,scaleY:u,x:t.x-(f*Math.cos(c)+d*Math.sin(-c)),y:t.y-(d*Math.cos(c)+f*Math.sin(c))}),this._settings=!1,this._fire("transform",{evt:n}),this.getNode()._fire("transform",{evt:n}),this.update(),this.getLayer().batchDraw()},forceUpdate:function(){this._resetTransformCache(),this.update()},update:function(){var t=this._getNodeRect(),n=this.getNode(),r={x:1,y:1};n&&n.getParent()&&(r=n.getParent().getAbsoluteScale());var i={x:1/r.x,y:1/r.y},o=t.width,a=t.height,s=this.enabledAnchors(),l=this.resizeEnabled(),u=this.getPadding(),c=this.getAnchorSize();this.find("._anchor").setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.getAnchorStroke(),strokeWidth:this.getAnchorStrokeWidth(),fill:this.getAnchorFill(),cornerRadius:this.getAnchorCornerRadius()}),this.findOne(".top-left").setAttrs({x:-u,y:-u,scale:i,visible:l&&s.indexOf("top-left")>=0}),this.findOne(".top-center").setAttrs({x:o/2,y:-u,scale:i,visible:l&&s.indexOf("top-center")>=0}),this.findOne(".top-right").setAttrs({x:o+u,y:-u,scale:i,visible:l&&s.indexOf("top-right")>=0}),this.findOne(".middle-left").setAttrs({x:-u,y:a/2,scale:i,visible:l&&s.indexOf("middle-left")>=0}),this.findOne(".middle-right").setAttrs({x:o+u,y:a/2,scale:i,visible:l&&s.indexOf("middle-right")>=0}),this.findOne(".bottom-left").setAttrs({x:-u,y:a+u,scale:i,visible:l&&s.indexOf("bottom-left")>=0}),this.findOne(".bottom-center").setAttrs({x:o/2,y:a+u,scale:i,visible:l&&s.indexOf("bottom-center")>=0}),this.findOne(".bottom-right").setAttrs({x:o+u,y:a+u,scale:i,visible:l&&s.indexOf("bottom-right")>=0});var f=-this.rotateAnchorOffset()*Math.abs(i.y);this.findOne(".rotater").setAttrs({x:o/2,y:f*e.Util._sign(a),scale:i,visible:this.rotateEnabled()}),this.findOne(".back").setAttrs({width:o*r.x,height:a*r.y,scale:i,visible:this.borderEnabled(),stroke:this.getBorderStroke(),strokeWidth:this.getBorderStrokeWidth(),dash:this.getBorderDash()})},isTransforming:function(){return this._transforming},stopTransform:function(){if(this._transforming){this._removeEvents();var e=this.findOne("."+this.movingResizer);e&&e.stopDrag()}},destroy:function(){this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),e.Group.prototype.destroy.call(this),this.detach(),this._removeEvents()},toObject:function(){return e.Node.prototype.toObject.call(this)}},e.Util.extend(e.Transformer,e.Group),e.Factory.addGetterSetter(e.Transformer,"enabledAnchors",s,n),e.Factory.addGetterSetter(e.Transformer,"resizeEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"anchorSize",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"rotateEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"rotationSnaps",[]),e.Factory.addGetterSetter(e.Transformer,"rotateAnchorOffset",50,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"anchorStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(e.Transformer,"anchorStrokeWidth",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"anchorFill","white"),e.Factory.addGetterSetter(e.Transformer,"anchorCornerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(e.Transformer,"borderStrokeWidth",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderDash"),e.Factory.addGetterSetter(e.Transformer,"keepRatio",!0),e.Factory.addGetterSetter(e.Transformer,"centeredScaling",!1),e.Factory.addGetterSetter(e.Transformer,"padding",0,e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Transformer,"node"),e.Factory.addGetterSetter(e.Transformer,"boundBoxFunc"),e.Factory.backCompat(e.Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"}),e.Collection.mapMethods(e.Transformer)}(Konva)}).call(t,n(14))},function(e,t,n){"use strict";function r(e){u=e}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!s&&"id"in t){var r='ReactKonva: You are using "id" attribute for a Konva node. In some very rare cases it may produce bugs. Currently we recommend not to use it and use "name" attribute instead.\nYou are using id = "'+t.id+'".\nFor me info see: https://github.com/konvajs/react-konva/issues/119';console.warn(r),s=!0}if(!l&&"zIndex"in t){console.warn('ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor me info see: https://github.com/konvajs/react-konva/issues/194\n'),l=!0}var i={},f=!1;for(var d in n)if(!a[d]){var h="on"===d.slice(0,2),p=n[d]!==t[d];if(h&&p){var v=d.substr(2).toLowerCase();"content"===v.substr(0,7)&&(v="content"+v.substr(7,1).toUpperCase()+v.substr(8)),e.off(v,n[d])}var g=!t.hasOwnProperty(d);g&&e.setAttr(d,void 0)}var m=u||t._useStrictMode;for(var d in t)if(!a[d]){var h="on"===d.slice(0,2),y=n[d]!==t[d];if(h&&y){var v=d.substr(2).toLowerCase();"content"===v.substr(0,7)&&(v="content"+v.substr(7,1).toUpperCase()+v.substr(8)),t[d]&&e.on(v+c,t[d])}!h&&(t[d]!==n[d]||m&&t[d]!==e.getAttr(d))&&(f=!0,i[d]=t[d])}f&&(e.setAttrs(i),o(e))}function o(e){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}t.__esModule=!0,t.toggleStrictMode=r,t.applyNodeProps=i,t.updatePicture=o;var a={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0},s=!1,l=!1,u=!1,c=t.EVENTS_NAMESPACE=".react-konva-event"},function(e,t,n){"use strict";function r(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}function i(e){var t=e.pos,n=t.x,i=t.y,a=r(e,["pos"]);return s.default.createElement(l.Circle,o({x:n,y:i},a))}Object.defineProperty(t,"__esModule",{value:!0});var o=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};t.default=i;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(28)},function(e,t,n){"use strict";function r(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}function i(e){var t=e.index,n=e.pos,i=n.x,a=n.y,u=r(e,["index","pos"]),c=t<9?" "+(t+1):""+(t+1);return s.default.createElement(l.Text,o({x:i-u.fontSize/2,y:a-u.fontSize/2},u,{text:c}))}Object.defineProperty(t,"__esModule",{value:!0});var o=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};t.default=i;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(28)},function(e,t,n){"use strict";(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(150),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(t,n(14))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(156),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(3),y=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={query:""},r._getEmptyLabel=function(){var e=r.props,t=e.emptyLabel,n=e.isLoading,i=e.promptText,o=e.searchText,a=e.useCache,s=r.state.query;return s.length?n||a&&!r._cache[s]?o:t:i},r._handleInputChange=function(e,t){r.props.onInputChange&&r.props.onInputChange(e,t),r._handleSearchDebounced(e)},r._handleSearch=function(e){var t=r.props,n=t.minLength,i=t.onSearch,o=t.useCache;r.setState({query:e}),!e||n&&e.length<n||o&&r._cache[e]||i(e)},i=t,a(r,i)}return s(n,t),c(n,[{key:"componentWillMount",value:function(){this._cache={},this._handleSearchDebounced=(0,d.default)(this._handleSearch,this.props.delay)}},{key:"componentWillReceiveProps",value:function(e){var t=e.options,n=e.useCache;this.props.isLoading&&n&&(this._cache[this.state.query]=t)}},{key:"componentWillUnmount",value:function(){this._cache={},this._handleSearchDebounced.cancel()}},{key:"render",value:function(){var t=this,n=this.props,r=n.options,o=n.useCache,a=i(n,["options","useCache"]),s=this._cache[this.state.query],l=this._getEmptyLabel(),c=a.allowNew&&l===a.emptyLabel;return"function"==typeof a.allowNew&&(c=a.allowNew),g.default.createElement(e,u({},a,{allowNew:c,emptyLabel:l,onInputChange:this._handleInputChange,options:o&&s?s:r,ref:function(e){return t._instance=e}}))}},{key:"getInstance",value:function(){return this._instance.getInstance()}}]),n}(g.default.Component);return t.displayName="AsyncContainer("+(0,m.getDisplayName)(e)+")",t.propTypes={delay:p.default.number,isLoading:p.default.bool.isRequired,onSearch:p.default.func.isRequired,options:p.default.array,promptText:p.default.node,searchText:p.default.node,useCache:p.default.bool},t.defaultProps={delay:200,minLength:2,options:[],promptText:"Type to search...",searchText:"Searching...",useCache:!0},t};t.default=y},function(e,t,n){"use strict";(function(t){var n="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},r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(t,n(14))},function(e,t,n){"use strict";function r(e,t){return i(e,t)}var i=n(43);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(30),o=n(169),a=n(170),s=n(171),l=n(172),u=n(173);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=l,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";function r(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,o=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,u,c){var f=n&s,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var v=-1,g=!0,m=n&l?new i:void 0;for(c.set(e,t),c.set(t,e);++v<d;){var y=e[v],b=t[v];if(r)var _=f?r(b,y,v,t,e,c):r(y,b,v,e,t,c);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!a(m,t)&&(y===e||u(y,e,n,r,c)))return m.push(t)})){g=!1;break}}else if(y!==b&&!u(y,b,n,r,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var i=n(190),o=n(87),a=n(193),s=1,l=2;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e.exports=r},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(4),o=n(207),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a,u=l?i.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||o;e.exports=f}).call(t,n(90)(e))},function(e,t,n){"use strict";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(208),i=n(209),o=n(210),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}e.exports=r},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"WeakMap");e.exports=o},function(e,t,n){"use strict";function r(e){return e===e&&!i(e)}var i=n(7);e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?"":i(e)}var i=n(229);e.exports=r},function(e,t,n){"use strict";function r(e,t){return null!=e&&o(e,t,i)}var i=n(231),o=n(232);e.exports=r},function(e,t,n){"use strict";function r(e){return e}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){t=new RegExp((0,a.default)((0,l.default)(t)),u);var n=t.exec((0,l.default)(e));if(!n)return null;var r=n.index,i=n[0].length;if(c.test(e)){for(var o=0;o<=r;o++)c.test(e[o])&&r++;for(var s=r;s<=r+i;s++)c.test(e[s])&&i++}return{end:r+i,start:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(247),a=r(o),s=n(53),l=r(s),u="i",c=/[\u0300-\u036F]/},function(e,t,n){"use strict";function r(e){if(!a(e)||i(e)!=s)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var i=n(11),o=n(249),a=n(8),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=c.call(Object);e.exports=r},function(e,t,n){"use strict";function r(e){return"string"==typeof e?e:i.DEFAULT_LABELKEY}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(102)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DEFAULT_LABELKEY="label"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(5),f=r(c),d=n(257),h=r(d),p=n(1),v=r(p),g=n(0),m=r(g),y=n(6),b=n(107),_=r(b),x=n(272),w=r(x),S=n(273),C=r(S),T=n(324),k=r(T),P=n(326),O=r(P),E=n(131),N=r(E),K=n(328),M=r(K),F=n(3),I=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderInput=function(e){var t=e.multiple?k.default:O.default;return m.default.createElement(t,e)},r._renderAux=function(){var e=r.props,t=e.bsSize,n=e.clearButton,i=e.disabled,o=e.isLoading,a=e.onClear,s=e.selected,l=void 0;return o?l=m.default.createElement(w.default,{bsSize:t}):n&&!i&&s.length&&(l=m.default.createElement(_.default,{bsSize:t,onClick:a,onFocus:function(e){e.stopPropagation()},onMouseDown:F.preventInputBlur})),l?m.default.createElement("div",{className:(0,f.default)("rbt-aux",{"rbt-aux-lg":"large"===t||"lg"===t})},l):null},a=n,o(r,a)}return a(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowNew,n=e.onInitialItemChange,r=e.results;t||r.length||n(null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.bodyContainer,r=t.children,i=t.className,o=t.isMenuShown,a=t.menuId,s=t.renderMenu,u=t.results,c=(0,h.default)(this.props,["activeIndex","activeItem","bsSize","disabled","initialItem","inputProps","inputRef","isInvalid","isMenuShown","isValid","labelKey","menuId","multiple","onAdd","onBlur","onChange","onFocus","onKeyDown","onRemove","placeholder","renderToken","selected","selectHintOnEnter","text"]),d=(0,h.default)(this.props,["align","className","dropup","flip","onMenuHide","onMenuShow"]),p=(0,h.default)(this.props,["emptyLabel","labelKey","maxHeight","newSelectionPrefix","renderMenuItemChildren","text"]),v=this._renderAux();return m.default.createElement("div",{className:(0,f.default)("rbt","clearfix","open",{"has-aux":!!v},i),style:{position:"relative"},tabIndex:-1},this._renderInput(l({},c,{ref:function(t){return e._inputContainer=(0,y.findDOMNode)(t)}})),"function"==typeof r?r(this.props):r,v,m.default.createElement(C.default,l({},d,{container:n?document.body:this,referenceElement:this._inputContainer,show:o}),s(u,l({},p,{id:a}))),m.default.createElement("div",{"aria-atomic":!0,"aria-live":"polite",className:"sr-only rbt-sr-status",role:"status"},(0,F.getAccessibilityStatus)(this.props)))}}]),t}(m.default.Component);I.propTypes={renderMenu:v.default.func},I.defaultProps={renderMenu:function(e,t){return m.default.createElement(N.default,l({},t,{options:e}))}},t.default=(0,M.default)(I)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";var r=n(12),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";function r(e){return a(o(e,void 0,i),e+"")}var i=n(263),o=n(266),a=n(268);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}Object.defineProperty(t,"__esModule",{value:!0});var o=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},a=n(5),s=r(a),l=n(0),u=r(l),c=n(1),f=r(c),d=function(e){var t=e.bsSize,n=e.className,r=e.label,a=e.onClick,l=i(e,["bsSize","className","label","onClick"]);return u.default.createElement("button",o({},l,{"aria-label":r,className:(0,s.default)("close","rbt-close",{"rbt-close-lg":"large"===t||"lg"===t},n),onClick:function(e){e.stopPropagation(),a(e)},type:"button"}),u.default.createElement("span",{"aria-hidden":"true"},"×"),u.default.createElement("span",{className:"sr-only"},r))};d.propTypes={bsSize:f.default.oneOf(["large","lg","small","sm"]),label:f.default.string,onClick:f.default.func.isRequired},d.defaultProps={label:"Clear"},t.default=d},function(e,t,n){"use strict";function r(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t}t.__esModule=!0,t.default=r;var i=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){return(0,s.default)(o.default.findDOMNode(e))};var i=n(6),o=r(i),a=n(276),s=r(a);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(279),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default||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}},function(e,t,n){"use strict";var r=n(282);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";e.exports=!n(19)&&!n(27)(function(){return 7!=Object.defineProperty(n(113)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(18),i=n(10).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){"use strict";var r=n(13),i=n(20),o=n(284)(!1),a=n(60)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){"use strict";var r=n(116);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(58);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(120),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i="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};t.__esModule=!0;var o=n(287),a=r(o),s=n(299),l=r(s),u="function"==typeof l.default&&"symbol"===i(a.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":i(e)};t.default="function"==typeof l.default&&"symbol"===u(a.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){"use strict";var r=n(64),i=n(25),o=n(122),a=n(16),s=n(13),l=n(65),u=n(291),c=n(67),f=n(294),d=n(21)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,g,m,y){u(n,t,v);var b,_,x,w=function(e){if(!h&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C="values"==g,T=!1,k=e.prototype,P=k[d]||k["@@iterator"]||g&&k[g],O=!h&&P||w(g),E=g?C?w("entries"):O:void 0,N="Array"==t?k.entries||P:P;if(N&&(x=f(N.call(new e)))!==Object.prototype&&x.next&&(c(x,S,!0),r||s(x,d)||a(x,d,p)),C&&P&&"values"!==P.name&&(T=!0,O=function(){return P.call(this)}),r&&!y||!h&&!T&&k[d]||a(k,d,O),l[t]=O,l[S]=p,g)if(b={values:C?O:w("values"),keys:m?O:w("keys"),entries:E},y)for(_ in b)_ in k||o(k,_,b[_]);else i(i.P+i.F*(h||T),t,b);return b}},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";var r=n(114),i=n(62).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(40),i=n(37),o=n(20),a=n(57),s=n(13),l=n(112),u=Object.getOwnPropertyDescriptor;t.f=n(19)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(309),o=r(i),a=n(313),s=r(a),l=n(120),u=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(0),p=r(h),v=n(1),g=r(v),m=n(107),y=r(m),b=n(127),_=r(b),x=n(22),w=function(e){function t(){var e,n,r,s;o(this,t);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r._renderRemoveableToken=function(){var e=r.props,t=e.active,n=e.children,o=e.className,a=e.onRemove,s=i(e,["active","children","className","onRemove"]);return p.default.createElement("div",u({},s,{className:(0,d.default)("rbt-token","rbt-token-removeable",{"rbt-token-active":t},o)}),n,p.default.createElement(y.default,{className:"rbt-token-remove-button",label:"Remove",onClick:a,onKeyDown:r._handleRemoveButtonKeydown,tabIndex:-1}))},r._renderToken=function(){var e=r.props,t=e.children,n=e.className,i=e.disabled,o=e.href,a=(0,d.default)("rbt-token",{"rbt-token-disabled":i},n);return o?p.default.createElement("a",{className:a,href:o},t):p.default.createElement("div",{className:a},t)},r._handleRemoveButtonKeydown=function(e){switch(e.keyCode){case x.RETURN:r.props.onRemove()}},s=n,a(r,s)}return s(t,e),c(t,[{key:"render",value:function(){return this.props.onRemove&&!this.props.disabled?this._renderRemoveableToken():this._renderToken()}}]),t}(p.default.Component);w.propTypes={active:g.default.bool,onRemove:g.default.func,tabIndex:g.default.number},w.defaultProps={active:!1,tabIndex:0},t.default=(0,_.default)(w)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(128),p=r(h),v=n(3),g=n(22),m=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={active:!1},r._handleBlur=function(e){r.setState({active:!1})},r._handleKeyDown=function(e){switch(e.keyCode){case g.BACKSPACE:r.state.active&&(e.preventDefault(),r.props.onRemove())}},r.handleClickOutside=function(e){r._handleBlur()},r._handleActive=function(e){e.stopPropagation(),r.setState({active:!0})},i=t,a(r,i)}return s(n,t),c(n,[{key:"render",value:function(){var t=this.props,n=(t.disableOnClickOutside,t.enableOnClickOutside,t.eventTypes,t.outsideClickIgnoreClass,t.preventDefault,t.stopPropagation,i(t,["disableOnClickOutside","enableOnClickOutside","eventTypes","outsideClickIgnoreClass","preventDefault","stopPropagation"]));return d.default.createElement(e,u({},n,this.state,{onBlur:this._handleBlur,onClick:this._handleActive,onFocus:this._handleActive,onKeyDown:this._handleKeyDown}))}}]),n}(d.default.Component);return t.displayName="TokenContainer("+(0,v.getDisplayName)(e)+")",(0,p.default)(t)};t.default=m},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function a(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(o(e,t,n))return!0;e=e.parentNode}return e}function s(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}function l(e,t){var n=null;return-1!==m.indexOf(t)&&c&&(n={passive:!e.props.preventDefault}),n}function u(e,t){var n,o;return o=n=function(n){function o(e){var t;return t=n.call(this,e)||this,t.__outsideClickHandler=function(e){if("function"==typeof t.__clickOutsideHandlerProp)return void t.__clickOutsideHandlerProp(e);var n=t.getInstance();if("function"==typeof n.props.handleClickOutside)return void n.props.handleClickOutside(e);if("function"==typeof n.handleClickOutside)return void n.handleClickOutside(e);throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.")},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!g[t._uid]){void 0===c&&(c=h()),g[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),v[t._uid]=function(e){if(!t.props.disableOnClickOutside&&null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),!t.props.excludeScrollbar||!s(e))){a(e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e)}},e.forEach(function(e){document.addEventListener(e,v[t._uid],l(t,e))})}},t.disableOnClickOutside=function(){delete g[t._uid];var e=v[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach(function(n){return document.removeEventListener(n,e,l(t,n))}),delete v[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=p(),t}r(o,n);var u=o.prototype;return u.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},u.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=(0,d.findDOMNode)(this.getInstance()),this.enableOnClickOutside()}},u.componentDidUpdate=function(){this.componentNode=(0,d.findDOMNode)(this.getInstance())},u.componentWillUnmount=function(){this.disableOnClickOutside()},u.render=function(){var t=this.props,n=(t.excludeScrollbar,i(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,f.createElement)(e,n)},o}(f.Component),n.displayName="OnClickOutside("+(e.displayName||e.name||"Component")+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:y,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o}Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_CLASS_NAME=void 0;var c,f=n(0),d=n(6),h=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}},p=function(e){return void 0===e&&(e=0),function(){return++e}}(),v={},g={},m=["touchstart","touchmove"],y="ignore-react-onclickoutside";t.IGNORE_CLASS_NAME=y,t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":c(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":c(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(r){return e[t+r+n]}).join(" ")}function l(e,t){var n=window.getComputedStyle(e);t.style.borderStyle=s(n,"border","style"),t.style.borderWidth=s(n,"border","width"),t.style.fontSize=n.fontSize,t.style.lineHeight=n.lineHeight,t.style.margin=s(n,"margin"),t.style.padding=s(n,"padding")}function u(e){var t=function(t){function n(){var e,t,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r._handleKeyDown=function(e){var t=r.context,n=t.hintText,i=t.initialItem,o=t.onAdd,a=t.selectHintOnEnter,s=r.props,l=s.onKeyDown,u=s.value;n&&(e.keyCode===y.RETURN&&a||e.keyCode===y.RIGHT&&e.target.selectionStart===u.length||e.keyCode===y.TAB)&&(e.preventDefault(),o(i)),l(e)},a=t,o(r,a)}return a(n,t),d(n,[{key:"componentDidMount",value:function(){l(this._input,this._hint)}},{key:"componentDidUpdate",value:function(){l(this._input,this._hint)}},{key:"render",value:function(){var t=this;return g.default.createElement("div",{className:"rbt-input-hint-container",style:{position:"relative"}},g.default.createElement(e,f({},this.props,{inputRef:function(e){t._input=e,t.props.inputRef(e)},onKeyDown:this._handleKeyDown})),g.default.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",readOnly:!0,ref:function(e){return t._hint=e},style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.35)",left:0,pointerEvents:"none",position:"absolute",top:0},tabIndex:-1,value:this.context.hintText}))}}]),n}(g.default.Component);return t.displayName="HintContainer("+(0,m.getDisplayName)(e)+")",t.contextTypes={hintText:p.default.string.isRequired,initialItem:p.default.oneOfType([p.default.object.isRequired,p.default.string.isRequired]),onAdd:p.default.func.isRequired,selectHintOnEnter:p.default.bool.isRequired},t}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var f=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},d=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),p=r(h),v=n(0),g=r(v),m=n(3),y=n(22);t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={isFocused:!1},r._handleBlur=function(e){e.persist(),r.setState({isFocused:!1},function(){return r.props.onBlur(e)})},r._handleFocus=function(e){e.persist(),r.setState({isFocused:!0},function(){return r.props.onFocus(e)})},i=t,a(r,i)}return s(n,t),f(n,[{key:"getChildContext",value:function(){var e=this.props,t=e.initialItem,n=e.onAdd,r=e.selectHintOnEnter;return{hintText:(0,y.getHintText)(this.props),initialItem:t,onAdd:n,selectHintOnEnter:r}}},{key:"render",value:function(){var t,n=this.props,r=n.activeIndex,o=n.bsSize,a=n.disabled,s=n.inputRef,l=n.isInvalid,u=n.isMenuShown,f=n.isValid,d=n.labelKey,p=n.menuId,v=n.multiple,g=n.onChange,b=n.onKeyDown,_=n.onRemove,x=n.placeholder,w=n.renderToken,S=n.selected,C=c({},this.props.inputProps,{"aria-activedescendant":r>=0?(0,y.getMenuItemId)(r):"","aria-autocomplete":v?"list":"both","aria-expanded":u,"aria-haspopup":"listbox","aria-owns":p,autoComplete:this.props.inputProps.autoComplete||"nope",disabled:a,inputRef:s,onBlur:this._handleBlur,onChange:g,onClick:this._handleFocus,onFocus:this._handleFocus,onKeyDown:b,placeholder:S.length?null:x,role:"combobox",value:(0,y.getInputText)(this.props)}),T=C.className||"";return v&&(C=c({},C,{inputClassName:T,labelKey:d,onRemove:_,renderToken:w,role:"",selected:S})),m.default.createElement(e,c({},C,{className:(0,h.default)("rbt-input",(t={},i(t,T,!v),i(t,"focus",this.state.isFocused),i(t,"input-lg form-control-lg","large"===o||"lg"===o),i(t,"input-sm form-control-sm","small"===o||"sm"===o),i(t,"is-invalid",l),i(t,"is-valid",f),t))}))}}]),n}(m.default.Component);return t.displayName="InputContainer("+(0,y.getDisplayName)(e)+")",t.childContextTypes={hintText:v.default.string.isRequired,initialItem:v.default.oneOfType([v.default.object.isRequired,v.default.string.isRequired]),onAdd:v.default.func.isRequired,selectHintOnEnter:v.default.bool.isRequired},t}var u="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};Object.defineProperty(t,"__esModule",{value:!0});var c=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},f=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(5),h=r(d),p=n(1),v=r(p),g=n(0),m=r(g),y=n(3);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(1),p=r(h),v=n(132),g=r(v),m=n(133),y=r(m),b=n(70),_=r(b),x=n(3),w=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderMenuItem=function(e,t){var n=r.props,i=n.labelKey,o=n.newSelectionPrefix,a=n.renderMenuItemChildren,s=n.text,l=(0,x.getOptionLabel)(e,i),c={disabled:e.disabled,key:t,label:l,option:e,position:t};return e.customOption?d.default.createElement(_.default,u({},c,{className:"rbt-menu-custom-option",label:o+l}),o,d.default.createElement(g.default,{search:s},l)):e.paginationOption?[d.default.createElement(y.default.Divider,{key:"pagination-item-divider"}),d.default.createElement(_.default,u({},c,{className:"rbt-menu-pagination-option",key:"pagination-item"}),l)]:d.default.createElement(_.default,c,a(e,r.props,t))},i=n,a(r,i)}return s(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=(e.labelKey,e.newSelectionPrefix,e.options),n=(e.renderMenuItemChildren,e.text,i(e,["labelKey","newSelectionPrefix","options","renderMenuItemChildren","text"]));return d.default.createElement(y.default,n,t.map(this._renderMenuItem))}}]),t}(d.default.Component);w.propTypes={newSelectionPrefix:p.default.string,renderMenuItemChildren:p.default.func},w.defaultProps={newSelectionPrefix:"New selection: ",renderMenuItemChildren:function(e,t,n){return d.default.createElement(g.default,{search:t.text},(0,x.getOptionLabel)(e,t.labelKey))}},t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),c=r(u),f=n(0),d=r(f),h=n(3),p=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._count=0,a=n,o(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.search?this._renderHighlightedChildren():this.props.children;return d.default.createElement("span",null,e)}},{key:"_renderHighlightedChildren",value:function(){for(var e=[],t=this.props.children;t;){var n=(0,h.getMatchBounds)(t,this.props.search);if(!n)return this._count++,e.push(d.default.createElement("span",{key:this._count},t)),e;var r=t.slice(0,n.start);r&&(this._count++,e.push(d.default.createElement("span",{key:this._count},r)));var i=t.slice(n.start,n.end);i&&(this._count++,e.push(d.default.createElement("mark",{className:"rbt-highlight-text",key:this._count},i))),t=t.slice(n.end)}return e}}]),t}(d.default.PureComponent);p.propTypes={children:c.default.string.isRequired,search:c.default.string.isRequired},t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(5),f=r(c),d=n(1),h=r(d),p=n(327),v=r(p),g=n(0),m=r(g),y=n(70),b=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.emptyLabel,i=e.id,o=e.innerRef,a=e.maxHeight,s=e.style,u=0===g.Children.count(t)?m.default.createElement(y.BaseMenuItem,{disabled:!0},r):t;return m.default.createElement("ul",{className:(0,f.default)("rbt-menu","dropdown-menu","show",n),id:i,ref:o,role:"listbox",style:l({},s,{display:"block",maxHeight:a,overflow:"auto"})},u)}}]),t}(m.default.Component);b.propTypes={id:(0,v.default)(h.default.oneOfType([h.default.number,h.default.string])),maxHeight:h.default.string},b.defaultProps={maxHeight:"300px"},b.Divider=function(e){return m.default.createElement("li",{className:"divider dropdown-divider",role:"separator"})},b.Header=function(e){return m.default.createElement("li",l({},e,{className:"dropdown-header"}))},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(1),p=r(h),v=n(6),g=n(3),m=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r._handleClick=function(e){var t=r.props,n=t.option,i=t.onClick;r.context.onMenuItemClick(n,e),i&&i(e)},r._updateInitialItem=function(e){var t=e.option;0===e.position&&r.context.onInitialItemChange(t)},i=t,a(r,i)}return s(n,t),c(n,[{key:"componentWillMount",value:function(){this._updateInitialItem(this.props)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.context.activeIndex===this.props.position,r=e.option,i=e.position,o=t.activeIndex,a=t.onActiveItemChange;null!=i&&(o===i&&((0,g.scrollIntoViewIfNeeded)((0,v.findDOMNode)(this)),!n&&a(r)),this._updateInitialItem(e))}},{key:"render",value:function(){var t=this.context,n=t.activeIndex,r=t.isOnlyResult,o=this.props,a=o.label,s=(o.option,o.position),l=i(o,["label","option","position"]),c=r||n===s;return d.default.createElement(e,u({},l,{active:c,"aria-label":a,"aria-selected":c,id:(0,g.getMenuItemId)(s),onClick:this._handleClick,onMouseDown:g.preventInputBlur,role:"option"}))}}]),n}(d.default.Component);return t.displayName="MenuItemContainer("+(0,g.getDisplayName)(e)+")",t.propTypes={option:p.default.oneOfType([p.default.object,p.default.string]).isRequired,position:p.default.number},t.contextTypes={activeIndex:p.default.number.isRequired,isOnlyResult:p.default.bool.isRequired,onActiveItemChange:p.default.func.isRequired,onInitialItemChange:p.default.func.isRequired,onMenuItemClick:p.default.func.isRequired},t};t.default=m},function(e,t,n){"use strict";var r=n(7),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){"use strict";var r=n(331),i=n(71),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=e.name+"",n=i[t],r=a.call(i,t)?n.length:0;r--;){var o=n[r],s=o.func;if(null==s||s==e)return o.name}return t}var i=n(332),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default;return(0,s.default)(e,t)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default;return(0,u.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.complaintImageFactory=i,t.multipleComplaintImageFactory=o;var a=n(139),s=r(a),l=n(152),u=r(l),c=n(153),f=r(c),d=n(348),h=r(d),p=n(349),v=r(p);t.default={complaintImageFactory:i,multipleComplaintImageFactory:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=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},l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t){var n=function(n){function f(e){i(this,f);var t=o(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));r.call(t);var n=t.props.value;n=void 0===n?{}:n;var a=n.url,s=void 0===a?e.images[0].url:a,l=n.complaints,u=void 0===l?[]:l;return t.state={url:s,complaints:u},t.changeImage(s,!1),t}return a(f,n),l(f,[{key:"componentDidMount",value:function(){var e=d.default.findDOMNode(this.refs["image-frame"]).getBoundingClientRect(),t=e.width,n=this.props.imagePadding,r=this.refs.stage.getStage();r.width(t),r.height(t);var i=this.refs.image;i.width(t-n),i.height(t-n)}},{key:"render",value:function(){var n=this,r=this.props,i=r.images,o=r.complaint,a=o.circle,l=o.text,f=r.imageClassName,d=r.complaintClassName,h=r.markerColors,p=this.state,g=p.url,y=p.image,_=p.complaints,x=null,w=null;return this.props.images.forEach(function(e){e.url===n.state.url&&(x=e.uiDisplay,w=e.uiOptions)}),c.default.createElement(u.Fragment,null,c.default.createElement("div",{id:"image",className:f,ref:"image-frame"},c.default.createElement(t,{images:i,selected:g,onSelect:this.changeImage}),c.default.createElement("div",null,c.default.createElement("a",{className:"btn",style:{position:"absolute",left:"1px",padding:"2px",zIndex:99,fontSize:"10px",color:"red"},onClick:function(){n.setState({complaints:[]},n.notify)}},c.default.createElement("span",{style:{fontSize:"10px"},className:"glyphicon glyphicon-refresh"})," Clear All")),c.default.createElement(v.Stage,{onClick:this.handleClick,onTap:this.handleTap,ref:"stage"},c.default.createElement(v.Layer,{visible:!0,ref:"layer"},c.default.createElement(v.Image,{ref:"image",image:y}),_.map(function(e,t){var n=h?h[t%h.length]:a.stroke,r=Object.assign({},e,a,{stroke:n});return c.default.createElement(m.default,s({key:t},r))}),_.map(function(e,t){var n=h?h[t%h.length]:a.fill,r=Object.assign({},e,l,{fill:n});return c.default.createElement(b.default,s({key:t,index:t},r))})))),c.default.createElement("div",{className:d},c.default.createElement(e,{complaints:_,markerColors:h,onChange:this.handleTextChange,onDelete:this.handleDelete,uiDisplay:x,uiOptions:w})))}}]),f}(u.Component),r=function(){var e=this;this.changeImage=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new window.Image;r.src=t,r.onload=function(){n?e.setState({image:r,url:t,complaints:[]},e.notify):e.setState({image:r,url:t})}},this.handleClick=function(t){var n=t.currentTarget.pointerPos;"Image"===t.target.className&&e.setState(function(e){var t=e.complaints.concat({pos:n});return Object.assign({},e,{complaints:t})},e.notify)},this.handleTap=function(t){var n=t.currentTarget.pointerPos;"Image"===t.target.className&&e.setState(function(e){var t=e.complaints.concat({pos:n});return Object.assign({},e,{complaints:t})},e.notify)},this.handleTextChange=function(t,n){e.setState(function(e){var r=e.url,i=e.complaints,o=Object.assign({},i[t],{text:n});return i=i.slice(),i.splice(t,1,o),{url:r,complaints:i}},e.notify)},this.handleDelete=function(t){e.setState(function(n){var r=n.url,i=n.complaints;return i=i.slice(),i.splice(t,1),e.props.onChange({url:r,complaints:i}),{url:r,complaints:i}},e.notify)},this.notify=function(){(0,_.setTimeout)(function(){if(e.props.onChange){var t=e.refs.stage.getStage(),n={url:e.state.url,complaints:e.state.complaints,dataURI:t.toDataURL()};e.props.onChange(n)}},0)}};return n.defaultProps={complaint:{circle:{radius:10,stroke:"#38A8E8",strokeWidth:2},text:{fontSize:12,fontFamily:"Roboto",fill:"black"}},imagePadding:30,imageClassName:"col-md-5 col-sm-12",complaintClassName:"col-md-7 col-sm-12"},n.propTypes={value:p.default.shape({url:p.default.string.isRequired,complaint:p.default.arrayOf(p.default.shape({pos:p.default.shape({x:p.default.number.isRequired,y:p.default.number.isRequired}),text:p.default.string.isRequired}))}),images:p.default.arrayOf(p.default.shape({name:p.default.string.isRequired,url:p.default.string.isRequired})).isRequired,imagePadding:p.default.number,imageClassName:p.default.string,complaintClassName:p.default.string,complaint:p.default.shape({radius:p.default.number,stroke:p.default.string,strokeWidth:p.default.number}),markerColors:p.default.arrayOf(p.default.string),onChange:p.default.func},n};var u=n(0),c=r(u),f=n(6),d=r(f),h=n(1),p=r(h),v=n(28),g=n(78),m=r(g),y=n(79),b=r(y),_=n(80)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){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 l=[n,r,i,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function i(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);r(!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)}function o(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}function a(e,t,n,r,i,a,s,l,u){Ar=!1,Dr=null,o.apply(Ur,arguments)}function s(e,t,n,r,o,s,l,u,c){if(a.apply(this,arguments),Ar){if(Ar){var f=Dr;Ar=!1,Dr=null}else i("198"),f=void 0;jr||(jr=!0,Lr=f)}}function l(){if(zr)for(var e in Vr){var t=Vr[e],n=zr.indexOf(e);if(-1<n||i("96",e),!Gr[n]){t.extractEvents||i("97",e),Gr[n]=t,n=t.eventTypes;for(var r in n){var o=void 0,a=n[r],s=t,l=r;Wr.hasOwnProperty(l)&&i("99",l),Wr[l]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&u(c[o],s,l);o=!0}else a.registrationName?(u(a.registrationName,s,l),o=!0):o=!1;o||i("98",r,e)}}}}function u(e,t,n){Br[e]&&i("100",e),Br[e]=t,Hr[e]=t.eventTypes[n].dependencies}function c(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Xr(n),s(r,t,void 0,e),e.currentTarget=null}function f(e,t){return null==t&&i("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 d(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function h(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)c(e,t[r],n[r]);else t&&c(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function p(e,t){var n=e.stateNode;if(!n)return null;var r=qr(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)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&i("231",t,void 0===n?"undefined":Mr(n)),n)}function v(e){if(null!==e&&(Qr=f(Qr,e)),e=Qr,Qr=null,e&&(d(e,h),Qr&&i("95"),jr))throw e=Lr,jr=!1,Lr=null,e}function g(e){if(e[Zr])return e[Zr];for(;!e[Zr];){if(!e.parentNode)return null;e=e.parentNode}return e=e[Zr],5===e.tag||6===e.tag?e:null}function m(e){return e=e[Zr],!e||5!==e.tag&&6!==e.tag?null:e}function y(e){if(5===e.tag||6===e.tag)return e.stateNode;i("33")}function b(e){return e[ei]||null}function _(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function x(e,t,n){(t=p(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function w(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=_(t);for(t=n.length;0<t--;)x(n[t],"captured",e);for(t=0;t<n.length;t++)x(n[t],"bubbled",e)}}function S(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=p(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function C(e){e&&e.dispatchConfig.registrationName&&S(e._targetInst,null,e)}function T(e){d(e,w)}function k(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function P(e){if(ri[e])return ri[e];if(!ni[e])return e;var t,n=ni[e];for(t in n)if(n.hasOwnProperty(t)&&t in ii)return ri[e]=n[t];return e}function O(){if(di)return di;var e,t,n=fi,r=n.length,i="value"in ci?ci.value:ci.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return di=i.slice(e,1<t?1-t:void 0)}function E(){return!0}function N(){return!1}function K(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?E:N,this.isPropagationStopped=N,this}function M(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function F(e){e instanceof this||i("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function I(e){e.eventPool=[],e.getPooled=M,e.release=F}function R(e,t){switch(e){case"keyup":return-1!==vi.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function A(e){return e=e.detail,"object"===(void 0===e?"undefined":Mr(e))&&"data"in e?e.data:null}function D(e,t){switch(e){case"compositionend":return A(t);case"keypress":return 32!==t.which?null:(wi=!0,_i);case"textInput":return e=t.data,e===_i&&wi?null:e;default:return null}}function j(e,t){if(Si)return"compositionend"===e||!gi&&R(e,t)?(e=O(),di=fi=ci=null,Si=!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 bi&&"ko"!==t.locale?null:t.data;default:return null}}function L(e){if(e=Yr(e)){"function"!=typeof Ti&&i("280");var t=qr(e.stateNode);Ti(e.stateNode,e.type,t)}}function U(e){ki?Pi?Pi.push(e):Pi=[e]:ki=e}function z(){if(ki){var e=ki,t=Pi;if(Pi=ki=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function V(e,t){return e(t)}function G(e,t,n){return e(t,n)}function W(){}function B(e,t){if(Oi)return e(t);Oi=!0;try{return V(e,t)}finally{Oi=!1,(null!==ki||null!==Pi)&&(W(),z())}}function H(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ei[e.type]:"textarea"===t}function q(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Y(e){if(!ti)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"==typeof t[e]),t}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){var t=X(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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]}}}}function $(e){e._valueTracker||(e._valueTracker=Q(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){return null===e||"object"!==(void 0===e?"undefined":Mr(e))?null:(e=Bi&&e[Bi]||e["@@iterator"],"function"==typeof e?e:null)}function ee(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 Ui:return"ConcurrentMode";case Ri:return"Fragment";case Ii:return"Portal";case Di:return"Profiler";case Ai:return"StrictMode";case Vi:return"Suspense"}if("object"===(void 0===e?"undefined":Mr(e)))switch(e.$$typeof){case Li:return"Context.Consumer";case ji:return"Context.Provider";case zi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Gi:return ee(e.type);case Wi:if(e=1===e._status?e._result:null)return ee(e)}return null}function te(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,i=ee(e.type),o=null;n&&(o=ee(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Ki,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}function ne(e){return!!qi.call(Xi,e)||!qi.call(Yi,e)&&(Hi.test(e)?Xi[e]=!0:(Yi[e]=!0,!1))}function re(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(void 0===t?"undefined":Mr(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}}function ie(e,t,n,r){if(null===t||void 0===t||re(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}function oe(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}function ae(e){return e[1].toUpperCase()}function se(e,t,n,r){var i=Qi.hasOwnProperty(t)?Qi[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(ie(t,n,i,r)&&(n=null),r||null===i?ne(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(i=i.type,n=3===i||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function le(e){switch(void 0===e?"undefined":Mr(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ue(e,t){var n=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=le(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 fe(e,t){null!=(t=t.checked)&&se(e,"checked",t,!1)}function de(e,t){fe(e,t);var n=le(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&pe(e,t.type,le(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function he(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,""!==n&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ve(e,t,n){return e=K.getPooled(Ji.change,e,t,n),e.type="change",U(n),T(e),e}function ge(e){v(e)}function me(e){if(J(y(e)))return e}function ye(e,t){if("change"===e)return t}function be(){Zi&&(Zi.detachEvent("onpropertychange",_e),eo=Zi=null)}function _e(e){"value"===e.propertyName&&me(eo)&&(e=ve(eo,e,q(e)),B(ge,e))}function xe(e,t,n){"focus"===e?(be(),Zi=t,eo=n,Zi.attachEvent("onpropertychange",_e)):"blur"===e&&be()}function we(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return me(eo)}function Se(e,t){if("click"===e)return me(t)}function Ce(e,t){if("input"===e||"change"===e)return me(t)}function Te(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=io[e])&&!!t[e]}function ke(){return Te}function Pe(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function Oe(e,t){if(Pe(e,t))return!0;if("object"!==(void 0===e?"undefined":Mr(e))||null===e||"object"!==(void 0===t?"undefined":Mr(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(!po.call(t,n[r])||!Pe(e[n[r]],t[n[r]]))return!1;return!0}function Ee(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(t=t.return,0!=(2&t.effectTag))return 1}return 3===t.tag?2:3}function Ne(e){2!==Ee(e)&&i("188")}function Ke(e){var t=e.alternate;if(!t)return t=Ee(e),3===t&&i("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===n)return Ne(o),e;if(s===r)return Ne(o),t;s=s.sibling}i("188")}if(n.return!==r.return)n=o,r=a;else{s=!1;for(var l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}s||i("189")}}n.alternate!==r&&i("190")}return 3!==n.tag&&i("188"),n.stateNode.current===n?e:t}function Me(e){if(!(e=Ke(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Fe(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}function Ie(e,t){var n=e[0];e=e[1];var r="on"+(e[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},ko[e]=t,Po[n]=t}function Re(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=g(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=q(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Gr.length;s++){var l=Gr[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=f(a,l))}v(a)}}function Ae(e,t){if(!t)return null;var n=(Eo(e)?je:Le).bind(null,e);t.addEventListener(e,n,!1)}function De(e,t){if(!t)return null;var n=(Eo(e)?je:Le).bind(null,e);t.addEventListener(e,n,!0)}function je(e,t){G(Le,e,t)}function Le(e,t){if(Ko){var n=q(t);if(n=g(n),null===n||"number"!=typeof n.tag||2===Ee(n)||(n=null),No.length){var r=No.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{B(Re,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>No.length&&No.push(e)}}}function Ue(e){return Object.prototype.hasOwnProperty.call(e,Io)||(e[Io]=Fo++,Mo[e[Io]]={}),Mo[e[Io]]}function ze(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 Ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ge(e,t){var n=Ve(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ve(n)}}function We(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?We(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Be(){for(var e=window,t=ze();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=ze(e.document)}return t}function He(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)}function qe(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Uo||null==Do||Do!==ze(n)?null:(n=Do,"selectionStart"in n&&He(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Lo&&Oe(Lo,n)?null:(Lo=n,e=K.getPooled(Ao.select,jo,e,t),e.type="select",e.target=Do,T(e),e))}function Ye(e){var t="";return Fr.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Xe(e,t){return e=Ir({children:void 0},t),(t=Ye(t.children))&&(e.children=t),e}function Qe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+le(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function $e(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),Ir({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Je(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&i("92"),Array.isArray(t)&&(1>=t.length||i("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:le(n)}}function Ze(e,t){var n=le(t.value),r=le(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function tt(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 nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function it(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function ot(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=it(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function at(e,t){t&&(qo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&i("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&i("60"),"object"===Mr(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML||i("61")),null!=t.style&&"object"!==Mr(t.style)&&i("62",""))}function st(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 lt(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ue(e);t=Hr[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":De("scroll",e);break;case"focus":case"blur":De("focus",e),De("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Y(i)&&De(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===ui.indexOf(i)&&Ae(i,e)}n[i]=!0}}}function ut(){}function ct(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ft(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===Mr(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function dt(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function ht(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function pt(e){0>Zo||(e.current=Jo[Zo],Jo[Zo]=null,Zo--)}function vt(e,t){Zo++,Jo[Zo]=e.current,e.current=t}function gt(e,t){var n=e.type.contextTypes;if(!n)return ea;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yt(e){pt(na,e),pt(ta,e)}function bt(e){pt(na,e),pt(ta,e)}function _t(e,t,n){ta.current!==ea&&i("168"),vt(ta,t,e),vt(na,n,e)}function xt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var o in r)o in e||i("108",ee(t)||"Unknown",o);return Ir({},n,r)}function wt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||ea,ra=ta.current,vt(ta,t,e),vt(na,na.current,e),!0}function St(e,t,n){var r=e.stateNode;r||i("169"),n?(t=xt(e,t,ra),r.__reactInternalMemoizedMergedChildContext=t,pt(na,e),pt(ta,e),vt(ta,t,e)):pt(na,e),vt(na,n,e)}function Ct(e){return function(t){try{return e(t)}catch(e){}}}function Tt(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);ia=Ct(function(e){return t.onCommitFiberRoot(n,e)}),oa=Ct(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function kt(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 Pt(e,t,n,r){return new kt(e,t,n,r)}function Ot(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Et(e){if("function"==typeof e)return Ot(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===zi)return 11;if(e===Gi)return 14}return 2}function Nt(e,t){var n=e.alternate;return null===n?(n=Pt(e.tag,t,e.key,e.mode),n.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 Kt(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Ot(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ri:return Mt(n.children,o,a,t);case Ui:return Ft(n,3|o,a,t);case Ai:return Ft(n,2|o,a,t);case Di:return e=Pt(12,n,t,4|o),e.elementType=Di,e.type=Di,e.expirationTime=a,e;case Vi:return e=Pt(13,n,t,o),e.elementType=Vi,e.type=Vi,e.expirationTime=a,e;default:if("object"===(void 0===e?"undefined":Mr(e))&&null!==e)switch(e.$$typeof){case ji:s=10;break e;case Li:s=9;break e;case zi:s=11;break e;case Gi:s=14;break e;case Wi:s=16,r=null;break e}i("130",null==e?e:void 0===e?"undefined":Mr(e),"")}return t=Pt(s,n,t,o),t.elementType=e,t.type=r,t.expirationTime=a,t}function Mt(e,t,n,r){return e=Pt(7,e,r,t),e.expirationTime=n,e}function Ft(e,t,n,r){return e=Pt(8,e,r,t),t=0==(1&t)?Ai:Ui,e.elementType=t,e.type=t,e.expirationTime=n,e}function It(e,t,n){return e=Pt(6,e,null,t),e.expirationTime=n,e}function Rt(e,t,n){return t=Pt(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function At(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),Lt(t,e)}function Dt(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),Lt(t,e)}function jt(e,t){var n=e.earliestPendingTime;return e=e.earliestSuspendedTime,n>t&&(t=n),e>t&&(t=e),t}function Lt(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;i=0!==i?i:o,0===i&&(0===e||r<e)&&(i=r),e=i,0!==e&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function Ut(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function zt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Vt(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Gt(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Wt(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=Ut(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=Ut(e.memoizedState),i=n.updateQueue=Ut(n.memoizedState)):r=e.updateQueue=zt(i):null===i&&(i=n.updateQueue=zt(r));null===i||r===i?Gt(r,t):null===r.lastUpdate||null===i.lastUpdate?(Gt(r,t),Gt(i,t)):(Gt(r,t),i.lastUpdate=t)}function Bt(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=Ut(e.memoizedState):Ht(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Ht(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=zt(t)),t}function qt(e,t,n,r,i,o){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(i="function"==typeof e?e.call(o,r,i):e)||void 0===i)break;return Ir({},r,i);case 2:aa=!0}return r}function Yt(e,t,n,r,i){aa=!1,t=Ht(e,t);for(var o=t.baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=qt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<i?(null===c&&(c=l,null===a&&(o=u)),s<f&&(s=f)):(u=qt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Xt(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Qt(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Qt(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Qt(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&i("191",n),n.call(r)}e=e.nextEffect}}function $t(e,t){return{value:e,source:t,stack:te(t)}}function Jt(e,t){var n=e.type._context;vt(sa,n._currentValue,e),n._currentValue=t}function Zt(e){var t=sa.current;pt(sa,e),e.type._context._currentValue=t}function en(e){la=e,ca=ua=null,e.firstContextDependency=null}function tn(e,t){return ca!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(ca=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ua?(null===la&&i("293"),la.firstContextDependency=ua=t):ua=ua.next=t),e._currentValue}function nn(e){return e===fa&&i("174"),e}function rn(e,t){vt(pa,t,e),vt(ha,e,e),vt(da,fa,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nt(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=nt(t,n)}pt(da,e),vt(da,t,e)}function on(e){pt(da,e),pt(ha,e),pt(pa,e)}function an(e){nn(pa.current);var t=nn(da.current),n=nt(t,e.type);t!==n&&(vt(ha,e,e),vt(da,n,e))}function sn(e){ha.current===e&&(pt(da,e),pt(ha,e))}function ln(e,t){if(e&&e.defaultProps){t=Ir({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function un(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,t=e._ctor,t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}function cn(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:Ir({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}function fn(e,t,n,r,i,o,a){return e=e.stateNode,"function"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Oe(n,r)||!Oe(i,o))}function dn(e,t,n){var r=!1,i=ea,o=t.contextType;return"object"===(void 0===o?"undefined":Mr(o))&&null!==o?o=va.currentDispatcher.readContext(o):(i=mt(t)?ra:ta.current,r=t.contextTypes,o=(r=null!==r&&void 0!==r)?gt(e,i):ea),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function hn(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&&ma.enqueueReplaceState(t,t.state,null)}function pn(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ga;var o=t.contextType;"object"===(void 0===o?"undefined":Mr(o))&&null!==o?i.context=va.currentDispatcher.readContext(o):(o=mt(t)?ra:ta.current,i.context=gt(e,o)),o=e.updateQueue,null!==o&&(Yt(e,o,n,i,r),i.state=e.memoizedState),o=t.getDerivedStateFromProps,"function"==typeof o&&(cn(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(Yt(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}function vn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==(void 0===e?"undefined":Mr(e))){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&i("289"),r=n.stateNode),r||i("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ga&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!=typeof e&&i("284"),n._owner||i("290",e)}return e}function gn(e,t){"textarea"!==e.type&&i("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function mn(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=Nt(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=It(n,e.mode,r),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?(r=o(t,n.props,r),r.ref=vn(e,t,n),r.return=e,r):(r=Kt(n.type,n.key,n.props,null,e.mode,r),r.ref=vn(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=Rt(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[],r),t.return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?(t=Mt(n,e.mode,r,i),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return t=It(""+t,e.mode,n),t.return=e,t;if("object"===(void 0===t?"undefined":Mr(t))&&null!==t){switch(t.$$typeof){case Fi:return n=Kt(t.type,t.key,t.props,null,e.mode,n),n.ref=vn(e,null,t),n.return=e,n;case Ii:return t=Rt(t,e.mode,n),t.return=e,t}if(ya(t)||Z(t))return t=Mt(t,e.mode,n,null),t.return=e,t;gn(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===(void 0===n?"undefined":Mr(n))&&null!==n){switch(n.$$typeof){case Fi:return n.key===i?n.type===Ri?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case Ii:return n.key===i?c(e,t,n,r):null}if(ya(n)||Z(n))return null!==i?null:f(e,t,n,r,null);gn(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return e=e.get(n)||null,l(t,e,""+r,i);if("object"===(void 0===r?"undefined":Mr(r))&&null!==r){switch(r.$$typeof){case Fi:return e=e.get(null===r.key?n:r.key)||null,r.type===Ri?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case Ii:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,i)}if(ya(r)||Z(r))return e=e.get(n)||null,f(t,e,r,i,null);gn(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=h(i,f,s[v],l);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m,f=g}if(v===s.length)return n(i,f),u;if(null===f){for(;v<s.length;v++)(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);v<s.length;v++)(g=p(f,i,v,s[v],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(i,e)}),u}function g(o,s,l,u){var c=Z(l);"function"!=typeof c&&i("150"),null==(l=c.call(l))&&i("151");for(var f=c=null,v=s,g=s=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(o,v,y.value,u);if(null===b){v||(v=m);break}e&&v&&null===b.alternate&&t(o,v),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,v=m}if(y.done)return n(o,v),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(o,v);!y.done;g++,y=l.next())null!==(y=p(v,o,g,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach(function(e){return t(o,e)}),c}return function(e,r,a,l){var u="object"===(void 0===a?"undefined":Mr(a))&&null!==a&&a.type===Ri&&null===a.key;u&&(a=a.props.children);var c="object"===(void 0===a?"undefined":Mr(a))&&null!==a;if(c)switch(a.$$typeof){case Fi:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag?a.type===Ri:u.elementType===a.type){n(e,u.sibling),r=o(u,a.type===Ri?a.props.children:a.props,l),r.ref=vn(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===Ri?(r=Mt(a.props.children,e.mode,l,a.key),r.return=e,e=r):(l=Kt(a.type,a.key,a.props,null,e.mode,l),l.ref=vn(e,r,a),l.return=e,e=l)}return s(e);case Ii:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=o(r,a.children||[],l),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=Rt(a,e.mode,l),r.return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,a,l),r.return=e,e=r):(n(e,r),r=It(a,e.mode,l),r.return=e,e=r),s(e);if(ya(a))return v(e,r,a,l);if(Z(a))return g(e,r,a,l);if(c&&gn(e,a),void 0===a&&!u)switch(e.tag){case 1:case 0:l=e.type,i("152",l.displayName||l.name||"Component")}return n(e,r)}}function yn(e,t){var n=Pt(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 bn(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 _n(e){if(Sa){var t=wa;if(t){var n=t;if(!bn(e,t)){if(!(t=dt(n))||!bn(e,t))return e.effectTag|=2,Sa=!1,void(xa=e);yn(xa,n)}xa=e,wa=ht(t)}else e.effectTag|=2,Sa=!1,xa=e}}function xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;xa=e}function wn(e){if(e!==xa)return!1;if(!Sa)return xn(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ft(t,e.memoizedProps))for(t=wa;t;)yn(e,t),t=dt(t);return xn(e),wa=xa?dt(e.stateNode):null,!0}function Sn(){wa=xa=null,Sa=!1}function Cn(e,t,n,r){t.child=null===e?_a(t,null,n,r):ba(t,e.child,n,r)}function Tn(e,t,n,r,i){n=n.render;var o=t.ref;return en(t,i),r=n(r,o),t.effectTag|=1,Cn(e,t,r,i),t.child}function kn(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Ot(a)||void 0!==a.defaultProps||null!==n.compare?(e=Kt(n.type,null,r,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Pn(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,n=n.compare,(n=null!==n?n:Oe)(i,r)&&e.ref===t.ref)?In(e,t,o):(t.effectTag|=1,e=Nt(a,r,o),e.ref=t.ref,e.return=t,t.child=e)}function Pn(e,t,n,r,i,o){return null!==e&&i<o&&Oe(e.memoizedProps,r)&&e.ref===t.ref?In(e,t,o):En(e,t,n,r,o)}function On(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function En(e,t,n,r,i){var o=mt(n)?ra:ta.current;return o=gt(t,o),en(t,i),n=n(r,o),t.effectTag|=1,Cn(e,t,n,i),t.child}function Nn(e,t,n,r,i){if(mt(n)){var o=!0;wt(t)}else o=!1;if(en(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),dn(t,n,r,i),pn(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===(void 0===u?"undefined":Mr(u))&&null!==u?u=va.currentDispatcher.readContext(u):(u=mt(n)?ra:ta.current,u=gt(t,u));var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&hn(t,a,r,u),aa=!1;var d=t.memoizedState;l=a.state=d;var h=t.updateQueue;null!==h&&(Yt(t,h,r,a,i),l=t.memoizedState),s!==r||d!==l||na.current||aa?("function"==typeof c&&(cn(t,n,c,r),l=t.memoizedState),(s=aa||fn(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:ln(t.type,s),l=a.context,u=n.contextType,"object"===(void 0===u?"undefined":Mr(u))&&null!==u?u=va.currentDispatcher.readContext(u):(u=mt(n)?ra:ta.current,u=gt(t,u)),c=n.getDerivedStateFromProps,(f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&hn(t,a,r,u),aa=!1,l=t.memoizedState,d=a.state=l,h=t.updateQueue,null!==h&&(Yt(t,h,r,a,i),d=t.memoizedState),s!==r||l!==d||na.current||aa?("function"==typeof c&&(cn(t,n,c,r),d=t.memoizedState),(c=aa||fn(t,n,s,r,l,d,u))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Kn(e,t,n,r,o,i)}function Kn(e,t,n,r,i,o){On(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&St(t,n,!1),In(e,t,o);r=t.stateNode,Ca.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ba(t,e.child,null,o),t.child=ba(t,null,s,o)):Cn(e,t,s,o),t.memoizedState=r.state,i&&St(t,n,!0),t.child}function Mn(e){var t=e.stateNode;t.pendingContext?_t(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_t(e,t.context,!1),rn(e,t.containerInfo)}function Fn(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=i.fallback,i=Mt(null,r,0,null),0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=Mt(a,r,n,null),i.sibling=r,n=i,n.return=r.return=t):n=r=_a(t,null,i.children,n):null!==e.memoizedState?(r=e.child,e=r.sibling,a?(n=i.fallback,i=Nt(r,r.pendingProps,0),0==(1&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a),r=i.sibling=Nt(e,n,e.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=ba(t,r.child,i.children,n)):(e=e.child,a?(a=i.fallback,i=Mt(null,r,0,null),i.child=e,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=i.sibling=Mt(a,r,n,null),r.effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=ba(t,e,i.children,n)),t.memoizedState=o,t.child=n,r}function In(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&i("153"),null!==t.child){for(e=t.child,n=Nt(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function Rn(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!na.current&&r<n){switch(t.tag){case 3:Mn(t),Sn();break;case 5:an(t);break;case 1:mt(t.type)&&wt(t);break;case 4:rn(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Fn(e,t,n):(t=In(e,t,n),null!==t?t.sibling:null)}return In(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=gt(t,ta.current);if(en(t,n),o=r(e,o),t.effectTag|=1,"object"===(void 0===o?"undefined":Mr(o))&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,mt(r)){var a=!0;wt(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&cn(t,r,s,e),o.updater=ma,t.stateNode=o,o._reactInternalFiber=t,pn(t,r,e,n),t=Kn(null,t,r,!0,a,n)}else t.tag=0,Cn(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),a=t.pendingProps,e=un(o),t.type=e,o=t.tag=Et(e),a=ln(e,a),s=void 0,o){case 0:s=En(null,t,e,a,n);break;case 1:s=Nn(null,t,e,a,n);break;case 11:s=Tn(null,t,e,a,n);break;case 14:s=kn(null,t,e,ln(e.type,a),r,n);break;default:i("283",e)}return s;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),En(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),Nn(e,t,r,o,n);case 3:return Mn(t),r=t.updateQueue,null===r&&i("282"),o=t.memoizedState,o=null!==o?o.element:null,Yt(t,r,t.pendingProps,null,n),r=t.memoizedState.element,r===o?(Sn(),t=In(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(wa=ht(t.stateNode.containerInfo),xa=t,o=Sa=!0),o?(t.effectTag|=2,t.child=_a(t,null,r,n)):(Cn(e,t,r,n),Sn()),t=t.child),t;case 5:return an(t),null===e&&_n(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ft(r,o)?s=null:null!==a&&ft(r,a)&&(t.effectTag|=16),On(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=1,t=null):(Cn(e,t,s,n),t=t.child),t;case 6:return null===e&&_n(t),null;case 13:return Fn(e,t,n);case 4:return rn(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ba(t,null,r,n):Cn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),Tn(e,t,r,o,n);case 7:return Cn(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Jt(t,a),null!==s){var l=s.value;if(0===(a=l===a&&(0!==l||1/l==1/a)||l!==l&&a!==a?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!na.current){t=In(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===r&&0!=(l.observedBits&a)){if(1===s.tag){var u=Vt(n);u.tag=2,Wt(s,u)}s.expirationTime<n&&(s.expirationTime=n),u=s.alternate,null!==u&&u.expirationTime<n&&(u.expirationTime=n);for(var c=s.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=s.child,l=l.next}while(null!==l);else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}}Cn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps,r=a.children,en(t,n),o=tn(o,a.unstable_observedBits),r=r(o),t.effectTag|=1,Cn(e,t,r,n),t.child;case 14:return o=t.type,a=ln(o.type,t.pendingProps),kn(e,t,o,a,r,n);case 15:return Pn(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mt(r)?(e=!0,wt(t)):e=!1,en(t,n),dn(t,r,o,n),pn(t,r,o,n),Kn(null,t,r,!0,e,n);default:i("156")}}function An(e){e.effectTag|=4}function Dn(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=te(n)),null!==n&&ee(n.type),t=t.value,null!==e&&1===e.tag&&ee(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function jn(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Jn(e,t)}else t.current=null}function Ln(e){switch("function"==typeof oa&&oa(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 i=e;try{r()}catch(e){Jn(i,e)}}n=n.next}while(n!==t)}break;case 1:if(jn(e),t=e.stateNode,"function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Jn(e,t)}break;case 5:jn(e);break;case 4:Vn(e)}}function Un(e){return 5===e.tag||3===e.tag||4===e.tag}function zn(e){e:{for(var t=e.return;null!==t;){if(Un(t)){var n=t;break e}t=t.return}i("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:i("161")}16&n.effectTag&&(rt(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Un(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 a=t,s=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(s,l):a.insertBefore(s,l)}else t.insertBefore(o.stateNode,n);else r?(s=t,l=o.stateNode,8===s.nodeType?(a=s.parentNode,a.insertBefore(l,s)):(a=s,a.appendChild(l)),null!==(s=s._reactRootContainer)&&void 0!==s||null!==a.onclick||(a.onclick=ut)):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 Vn(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&i("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 a=t,s=a;;)if(Ln(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(a=r,s=t.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,o=!0):Ln(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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Gn(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 a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[ei]=r,"input"===e&&"radio"===r.type&&null!=r.name&&fe(n,r),st(e,o),t=st(e,r),o=0;o<a.length;o+=2){var s=a[o],l=a[o+1];"style"===s?ot(n,l):"dangerouslySetInnerHTML"===s?Wo(n,l):"children"===s?rt(n,l):se(n,s,l,t)}switch(e){case"input":de(n,r);break;case"textarea":Ze(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,e=r.value,null!=e?Qe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Qe(n,!!r.multiple,r.defaultValue,!0):Qe(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&i("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=lr())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,a=t.memoizedProps.style,a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,e.style.display=it("display",a));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){e=t.child.sibling,e.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:i("163")}}function Wn(e,t,n){n=Vt(n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mr(r),Dn(e,t)},n}function Bn(e,t,n){n=Vt(n),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ga?Ga=new Set([this]):Ga.add(this));var n=t.value,i=t.stack;Dn(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function Hn(e){switch(e.tag){case 1:mt(e.type)&&yt(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return on(e),bt(e),t=e.effectTag,0!=(64&t)&&i("285"),e.effectTag=-2049&t|64,e;case 5:return sn(e),null;case 13:return t=e.effectTag,2048&t?(e.effectTag=-2049&t|64,e):null;case 4:return on(e),null;case 10:return Zt(e),null;default:return null}}function qn(){if(null!==Ia)for(var e=Ia.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!==n&&void 0!==n&&yt(t);break;case 3:on(t),bt(t);break;case 5:sn(t);break;case 4:on(t);break;case 10:Zt(t)}e=e.return}Ra=null,Aa=0,Da=-1,ja=!1,Ia=null}function Yn(){null!==Va&&(Rr.unstable_cancelCallback(za),Va())}function Xn(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Ia=e;e:{var o=t;t=e;var a=Aa,s=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:mt(t.type)&&yt(t);break;case 3:on(t),bt(t),s=t.stateNode,s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==o&&null!==o.child||(wn(t),t.effectTag&=-3),ka(t);break;case 5:sn(t);var l=nn(pa.current);if(a=t.type,null!==o&&null!=t.stateNode)Pa(o,t,a,s,l),o.ref!==t.ref&&(t.effectTag|=128);else if(s){var u=nn(da.current);if(wn(t)){s=t,o=s.stateNode;var c=s.type,f=s.memoizedProps,d=l;switch(o[Zr]=s,o[ei]=f,a=void 0,l=c){case"iframe":case"object":Ae("load",o);break;case"video":case"audio":for(c=0;c<ui.length;c++)Ae(ui[c],o);break;case"source":Ae("error",o);break;case"img":case"image":case"link":Ae("error",o),Ae("load",o);break;case"form":Ae("reset",o),Ae("submit",o);break;case"details":Ae("toggle",o);break;case"input":ce(o,f),Ae("invalid",o),lt(d,"onChange");break;case"select":o._wrapperState={wasMultiple:!!f.multiple},Ae("invalid",o),lt(d,"onChange");break;case"textarea":Je(o,f),Ae("invalid",o),lt(d,"onChange")}at(l,f),c=null;for(a in f)f.hasOwnProperty(a)&&(u=f[a],"children"===a?"string"==typeof u?o.textContent!==u&&(c=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(c=["children",""+u]):Br.hasOwnProperty(a)&&null!=u&<(d,a));switch(l){case"input":$(o),he(o,f,!0);break;case"textarea":$(o),et(o,f);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(o.onclick=ut)}a=c,s.updateQueue=a,s=null!==a,s&&An(t)}else{f=t,o=a,d=s,c=9===l.nodeType?l:l.ownerDocument,u===Vo.html&&(u=tt(o)),u===Vo.html?"script"===o?(o=c.createElement("div"),o.innerHTML="<script><\/script>",c=o.removeChild(o.firstChild)):"string"==typeof d.is?c=c.createElement(o,{is:d.is}):(c=c.createElement(o),"select"===o&&d.multiple&&(c.multiple=!0)):c=c.createElementNS(u,o),o=c,o[Zr]=f,o[ei]=s,Ta(o,t,!1,!1),d=o,c=a,f=s;var h=l,p=st(c,f);switch(c){case"iframe":case"object":Ae("load",d),l=f;break;case"video":case"audio":for(l=0;l<ui.length;l++)Ae(ui[l],d);l=f;break;case"source":Ae("error",d),l=f;break;case"img":case"image":case"link":Ae("error",d),Ae("load",d),l=f;break;case"form":Ae("reset",d),Ae("submit",d),l=f;break;case"details":Ae("toggle",d),l=f;break;case"input":ce(d,f),l=ue(d,f),Ae("invalid",d),lt(h,"onChange");break;case"option":l=Xe(d,f);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},l=Ir({},f,{value:void 0}),Ae("invalid",d),lt(h,"onChange");break;case"textarea":Je(d,f),l=$e(d,f),Ae("invalid",d),lt(h,"onChange");break;default:l=f}at(c,l),u=void 0;var v=c,g=d,m=l;for(u in m)if(m.hasOwnProperty(u)){var y=m[u];"style"===u?ot(g,y):"dangerouslySetInnerHTML"===u?null!=(y=y?y.__html:void 0)&&Wo(g,y):"children"===u?"string"==typeof y?("textarea"!==v||""!==y)&&rt(g,y):"number"==typeof y&&rt(g,""+y):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Br.hasOwnProperty(u)?null!=y&<(h,u):null!=y&&se(g,u,y,p))}switch(c){case"input":$(d),he(d,f,!1);break;case"textarea":$(d),et(d,f);break;case"option":null!=f.value&&d.setAttribute("value",""+le(f.value));break;case"select":l=d,l.multiple=!!f.multiple,d=f.value,null!=d?Qe(l,!!f.multiple,d,!1):null!=f.defaultValue&&Qe(l,!!f.multiple,f.defaultValue,!0);break;default:"function"==typeof l.onClick&&(d.onclick=ut)}(s=ct(a,s))&&An(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&i("166");break;case 6:o&&null!=t.stateNode?Oa(o,t,o.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&i("166")),o=nn(pa.current),nn(da.current),wn(t)?(s=t,a=s.stateNode,o=s.memoizedProps,a[Zr]=s,(s=a.nodeValue!==o)&&An(t)):(a=t,s=(9===o.nodeType?o:o.ownerDocument).createTextNode(s),s[Zr]=t,a.stateNode=s));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a,Ia=t;break e}s=null!==s,a=null!==o&&null!==o.memoizedState,null!==o&&!s&&a&&null!==(o=o.child.sibling)&&(l=t.firstEffect,null!==l?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8),(s!==a||0==(1&t.effectTag)&&s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:on(t),ka(t);break;case 10:Zt(t);break;case 9:case 14:break;case 17:mt(t.type)&&yt(t);break;default:i("156")}Ia=null}if(t=e,1===Aa||1!==t.childExpirationTime){for(s=0,a=t.child;null!==a;)o=a.expirationTime,l=a.childExpirationTime,o>s&&(s=o),l>s&&(s=l),a=a.sibling;t.childExpirationTime=s}if(null!==Ia)return Ia;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=Hn(e,Aa)))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 Qn(e){var t=Rn(e.alternate,e,Aa);return e.memoizedProps=e.pendingProps,null===t&&(t=Xn(e)),Na.current=null,t}function $n(e,t){Fa&&i("243"),Yn(),Fa=!0,Na.currentDispatcher=Ea;var n=e.nextExpirationTimeToWorkOn;n===Aa&&e===Ra&&null!==Ia||(qn(),Ra=e,Aa=n,Ia=Nt(Ra.current,null,Aa),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Ia&&!fr();)Ia=Qn(Ia);else for(;null!==Ia;)Ia=Qn(Ia)}catch(t){if(ca=ua=la=null,null===Ia)r=!0,mr(t);else{null===Ia&&i("271");var o=Ia,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=Aa,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"===(void 0===c?"undefined":Mr(c))&&"function"==typeof c.then){var f=c;c=l;var d=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}p=c.pendingProps.maxDuration,"number"==typeof p&&(0>=p?d=0:(-1===d||p<d)&&(d=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(l=er.bind(null,s,c,u,0==(1&c.mode)?1073741823:a),f.then(l,l),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&null===u.alternate&&(u.tag=17),u.expirationTime=a;break e}-1===d?s=1073741823:(-1===h&&(h=10*(1073741822-jt(s,a))-5e3),s=h+d),0<=s&&Da<s&&(Da=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((ee(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."+te(u))}ja=!0,c=$t(c,u),s=l;do{switch(s.tag){case 3:u=c,s.effectTag|=2048,s.expirationTime=a,a=Wn(s,u,a),Bt(s,a);break e;case 1:if(u=c,l=s.type,f=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Ga||!Ga.has(f)))){s.effectTag|=2048,s.expirationTime=a,a=Bn(s,u,a),Bt(s,a);break e}}s=s.return}while(null!==s)}Ia=Xn(o);continue}r=!0,mr(t)}}break}if(Fa=!1,ca=ua=la=Na.currentDispatcher=null,r)Ra=null,e.finishedWork=null;else if(null!==Ia)e.finishedWork=null;else{if(r=e.current.alternate,null===r&&i("281"),Ra=null,ja){if(o=e.latestPendingTime,a=e.latestSuspendedTime,s=e.latestPingedTime,0!==o&&o<n||0!==a&&a<n||0!==s&&s<n)return Dt(e,n),void ar(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ar(e,r,n,t,-1)}t&&-1!==Da?(Dt(e,n),t=10*(1073741822-jt(e,n)),t<Da&&(Da=t),t=10*(1073741822-lr()),t=Da-t,ar(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Jn(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===Ga||!Ga.has(r)))return e=$t(t,e),e=Bn(n,e,1073741823),Wt(n,e),void nr(n,1073741823);break;case 3:return e=$t(t,e),e=Wn(n,e,1073741823),Wt(n,e),void nr(n,1073741823)}n=n.return}3===e.tag&&(n=$t(t,e),n=Wn(e,n,1073741823),Wt(e,n),nr(e,1073741823))}function Zn(e,t){return 0!==Ma?e=Ma:Fa?e=Ua?1073741823:Aa:1&t.mode?(e=ns?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Ra&&e===Aa&&--e):e=1073741823,ns&&(0===$a||e<$a)&&($a=e),e}function er(e,t,n,r){var i=e.earliestSuspendedTime,o=e.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>o)&&(e.latestPingedTime=o),Lt(o,e)}else i=lr(),i=Zn(i,t),At(e,i);0!=(1&t.mode)&&e===Ra&&Aa===r&&(Ra=null),tr(t,i),0==(1&t.mode)&&(tr(n,i),1===n.tag&&null!==n.stateNode&&(t=Vt(i),t.tag=2,Wt(n,t))),0!==(n=e.expirationTime)&&ur(e,n)}function tr(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=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){i=r.stateNode;break}r=r.return}return i}function nr(e,t){null!==(e=tr(e,t))&&(!Fa&&0!==Aa&&t>Aa&&qn(),At(e,t),Fa&&!Ua&&Ra===e||ur(e,e.expirationTime),ls>ss&&(ls=0,i("185")))}function rr(e,t,n,r,i){var o=Ma;Ma=1073741823;try{return e(t,n,r,i)}finally{Ma=o}}function ir(){os=1073741822-((Rr.unstable_now()-is)/10|0)}function or(e,t){if(0!==Ha){if(t<Ha)return;null!==qa&&Rr.unstable_cancelCallback(qa)}Ha=t,e=Rr.unstable_now()-is,qa=Rr.unstable_scheduleCallback(dr,{timeout:10*(1073741822-t)-e})}function ar(e,t,n,r,i){e.expirationTime=r,0!==i||fr()?0<i&&(e.timeoutHandle=Qo(sr.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function sr(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,ir(),as=os,pr(e,n)}function lr(){return Ya?as:(cr(),0!==Qa&&1!==Qa||(ir(),as=os),as)}function ur(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Ba?(Wa=Ba=e,e.nextScheduledRoot=e):(Ba=Ba.nextScheduledRoot=e,Ba.nextScheduledRoot=Wa)):t>e.expirationTime&&(e.expirationTime=t),Ya||(es?ts&&(Xa=e,Qa=1073741823,vr(e,1073741823,!1)):1073741823===t?hr(1073741823,!1):or(e,t))}function cr(){var e=0,t=null;if(null!==Ba)for(var n=Ba,r=Wa;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===Ba)&&i("244"),r===r.nextScheduledRoot){Wa=Ba=r.nextScheduledRoot=null;break}if(r===Wa)Wa=o=r.nextScheduledRoot,Ba.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===Ba){Ba=n,Ba.nextScheduledRoot=Wa,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===Ba)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Xa=t,Qa=e}function fr(){return!!cs||!!Rr.unstable_shouldYield()&&(cs=!0)}function dr(){try{if(!fr()&&null!==Wa){ir();var e=Wa;do{var t=e.expirationTime;0!==t&&os<=t&&(e.nextExpirationTimeToWorkOn=os),e=e.nextScheduledRoot}while(e!==Wa)}hr(0,!0)}finally{cs=!1}}function hr(e,t){if(cr(),t)for(ir(),as=os;null!==Xa&&0!==Qa&&e<=Qa&&!(cs&&os>Qa);)vr(Xa,Qa,os>Qa),cr(),ir(),as=os;else for(;null!==Xa&&0!==Qa&&e<=Qa;)vr(Xa,Qa,!1),cr();if(t&&(Ha=0,qa=null),0!==Qa&&or(Xa,Qa),ls=0,us=null,null!==rs)for(e=rs,rs=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ja||(Ja=!0,Za=e)}}if(Ja)throw e=Za,Za=null,Ja=!1,e}function pr(e,t){Ya&&i("253"),Xa=e,Qa=t,vr(e,t,!1),hr(1073741823,!1)}function vr(e,t,n){if(Ya&&i("245"),Ya=!0,n){var r=e.finishedWork;null!==r?gr(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,-1!==r&&(e.timeoutHandle=-1,$o(r)),$n(e,n),null!==(r=e.finishedWork)&&(fr()?e.finishedWork=r:gr(e,r,t)))}else r=e.finishedWork,null!==r?gr(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,-1!==r&&(e.timeoutHandle=-1,$o(r)),$n(e,n),null!==(r=e.finishedWork)&&gr(e,r,t));Ya=!1}function gr(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===rs?rs=[r]:rs.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===us?ls++:(us=e,ls=0),Ua=Fa=!0,e.current===t&&i("177"),n=e.pendingCommitExpirationTime,0===n&&i("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):(o=e.latestPendingTime,0!==o&&(o>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),o=e.earliestSuspendedTime,0===o?At(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,At(e,r)):r>o&&At(e,r)),Lt(0,e),Na.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,Yo=Ko,o=Be(),He(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else e:{a=(a=o.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&0!==s.rangeCount){a=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch(e){a=null;break e}var c=0,f=-1,d=-1,h=0,p=0,v=o,g=null;t:for(;;){for(var m;v!==a||0!==l&&3!==v.nodeType||(f=c+l),v!==u||0!==s&&3!==v.nodeType||(d=c+s),3===v.nodeType&&(c+=v.nodeValue.length),null!==(m=v.firstChild);)g=v,v=m;for(;;){if(v===o)break t;if(g===a&&++h===l&&(f=c),g===u&&++p===s&&(d=c),null!==(m=v.nextSibling))break;v=g,g=v.parentNode}v=m}a=-1===f||-1===d?null:{start:f,end:d}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xo={focusedElem:o,selectionRange:a},Ko=!1,La=r;null!==La;){o=!1,a=void 0;try{for(;null!==La;){if(256&La.effectTag)e:{var y=La.alternate;switch(l=La,l.tag){case 0:case 11:case 15:break e;case 1:if(256&l.effectTag&&null!==y){var b=y.memoizedProps,_=y.memoizedState,x=l.stateNode,w=x.getSnapshotBeforeUpdate(l.elementType===l.type?b:ln(l.type,b),_);x.__reactInternalSnapshotBeforeUpdate=w}break e;case 3:case 5:case 6:case 4:case 17:break e;default:i("163")}}La=La.nextEffect}}catch(e){o=!0,a=e}o&&(null===La&&i("178"),Jn(La,a),null!==La&&(La=La.nextEffect))}for(La=r;null!==La;){y=!1,b=void 0;try{for(;null!==La;){var S=La.effectTag;if(16&S&&rt(La.stateNode,""),128&S){var C=La.alternate;if(null!==C){var T=C.ref;null!==T&&("function"==typeof T?T(null):T.current=null)}}switch(14&S){case 2:zn(La),La.effectTag&=-3;break;case 6:zn(La),La.effectTag&=-3,Gn(La.alternate,La);break;case 4:Gn(La.alternate,La);break;case 8:_=La,Vn(_),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}La=La.nextEffect}}catch(e){y=!0,b=e}y&&(null===La&&i("178"),Jn(La,b),null!==La&&(La=La.nextEffect))}if(T=Xo,C=Be(),S=T.focusedElem,b=T.selectionRange,C!==S&&S&&S.ownerDocument&&We(S.ownerDocument.documentElement,S)){null!==b&&He(S)&&(C=b.start,T=b.end,void 0===T&&(T=C),"selectionStart"in S?(S.selectionStart=C,S.selectionEnd=Math.min(T,S.value.length)):(T=(C=S.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),_=S.textContent.length,y=Math.min(b.start,_),b=void 0===b.end?y:Math.min(b.end,_),!T.extend&&y>b&&(_=b,b=y,y=_),_=Ge(S,y),x=Ge(S,b),_&&x&&(1!==T.rangeCount||T.anchorNode!==_.node||T.anchorOffset!==_.offset||T.focusNode!==x.node||T.focusOffset!==x.offset)&&(C=C.createRange(),C.setStart(_.node,_.offset),T.removeAllRanges(),y>b?(T.addRange(C),T.extend(x.node,x.offset)):(C.setEnd(x.node,x.offset),T.addRange(C)))))),C=[];for(T=S;T=T.parentNode;)1===T.nodeType&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;S<C.length;S++)T=C[S],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}for(Xo=null,Ko=!!Yo,Yo=null,e.current=t,La=r;null!==La;){r=!1,S=void 0;try{for(C=n;null!==La;){var k=La.effectTag;if(36&k){var P=La.alternate;switch(T=La,y=C,T.tag){case 0:case 11:case 15:break;case 1:var O=T.stateNode;if(4&T.effectTag)if(null===P)O.componentDidMount();else{var E=T.elementType===T.type?P.memoizedProps:ln(T.type,P.memoizedProps);O.componentDidUpdate(E,P.memoizedState,O.__reactInternalSnapshotBeforeUpdate)}var N=T.updateQueue;null!==N&&Xt(T,N,O,y);break;case 3:var K=T.updateQueue;if(null!==K){if(b=null,null!==T.child)switch(T.child.tag){case 5:b=T.child.stateNode;break;case 1:b=T.child.stateNode}Xt(T,K,b,y)}break;case 5:var M=T.stateNode;null===P&&4&T.effectTag&&ct(T.type,T.memoizedProps)&&M.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:i("163")}}if(128&k){var F=La.ref;if(null!==F){var I=La.stateNode;switch(La.tag){case 5:var R=I;break;default:R=I}"function"==typeof F?F(R):F.current=R}}La=La.nextEffect}}catch(e){r=!0,S=e}r&&(null===La&&i("178"),Jn(La,S),null!==La&&(La=La.nextEffect))}Fa=Ua=!1,"function"==typeof ia&&ia(t.stateNode),k=t.expirationTime,t=t.childExpirationTime,t=t>k?t:k,0===t&&(Ga=null),e.expirationTime=t,e.finishedWork=null}function mr(e){null===Xa&&i("246"),Xa.expirationTime=0,Ja||(Ja=!0,Za=e)}function yr(e,t){var n=es;es=!0;try{return e(t)}finally{(es=n)||Ya||hr(1073741823,!1)}}function br(e,t){if(es&&!ts){ts=!0;try{return e(t)}finally{ts=!1}}return e(t)}function _r(e,t,n){if(ns)return e(t,n);es||Ya||0===$a||(hr($a,!1),$a=0);var r=ns,i=es;es=ns=!0;try{return e(t,n)}finally{ns=r,(es=i)||Ya||hr(1073741823,!1)}}function xr(e,t,n,r,o){var a=t.current;e:if(n){n=n._reactInternalFiber;t:{2===Ee(n)&&1===n.tag||i("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);i("171"),s=void 0}if(1===n.tag){var l=n.type;if(mt(l)){n=xt(n,l,s);break e}}n=s}else n=ea;return null===t.context?t.context=n:t.pendingContext=n,t=o,o=Vt(r),o.payload={element:e},t=void 0===t?null:t,null!==t&&(o.callback=t),Yn(),Wt(a,o),nr(a,r),r}function wr(e,t,n,r){var i=t.current;return i=Zn(lr(),i),xr(e,t,n,i,r)}function Sr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Cr(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ii,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Tr(e){var t=1073741822-25*(1+((1073741822-lr()+500)/25|0));t>=Ka&&(t=Ka-1),this._expirationTime=Ka=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function kr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Pr(e,t,n){t=Pt(3,null,null,t?3:0),e={current:t,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 Or(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Er(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Pr(e,!1,t)}function Nr(e,t,n,r,o){Or(n)||i("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var s=o;o=function(){var e=Sr(a._internalRoot);s.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=Er(n,r),"function"==typeof o){var l=o;o=function(){var e=Sr(a._internalRoot);l.call(e)}}br(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return Sr(a._internalRoot)}function Kr(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Or(t)||i("200"),Cr(e,t,null,n)}/** @license React v16.6.1
|
36
|
+
Konva.Filters.Sepia=function(e){var t,n,r,i,o,a,s,l,u,c=e.data,f=e.width,d=e.height,h=4*f;do{t=(d-1)*h,n=f;do{r=t+4*(n-1),i=c[r],o=c[r+1],a=c[r+2],s=.393*i+.769*o+.189*a,l=.349*i+.686*o+.168*a,u=.272*i+.534*o+.131*a,c[r]=s>255?255:s,c[r+1]=l>255?255:l,c[r+2]=u>255?255:u,c[r+3]=c[r+3]}while(--n)}while(--d)}}(),function(){Konva.Filters.Solarize=function(e){var t=e.data,n=e.width,r=e.height,i=4*n,o=r;do{var a=(o-1)*i,s=n;do{var l=a+4*(s-1),u=t[l],c=t[l+1],f=t[l+2];u>127&&(u=255-u),c>127&&(c=255-c),f>127&&(f=255-f),t[l]=u,t[l+1]=c,t[l+2]=f}while(--s)}while(--o)}}(),function(){var e=function(e,t,n){var r,i,o,a,s=e.data,l=t.data,u=e.width,c=e.height,f=n.polarCenterX||u/2,d=n.polarCenterY||c/2,h=0,p=0,v=0,g=0,m=Math.sqrt(f*f+d*d);i=u-f,o=c-d,a=Math.sqrt(i*i+o*o),m=a>m?a:m;var y,b,_,x,w=c,S=u,C=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(_=Math.sin(b*C),x=Math.cos(b*C),y=0;y<w;y+=1)i=Math.floor(f+m*y/w*x),o=Math.floor(d+m*y/w*_),r=4*(o*u+i),h=s[r+0],p=s[r+1],v=s[r+2],g=s[r+3],r=4*(b+y*u),l[r+0]=h,l[r+1]=p,l[r+2]=v,l[r+3]=g},t=function(e,t,n){var r,i,o,a,s,l,u=e.data,c=t.data,f=e.width,d=e.height,h=n.polarCenterX||f/2,p=n.polarCenterY||d/2,v=0,g=0,m=0,y=0,b=Math.sqrt(h*h+p*p);i=f-h,o=d-p,l=Math.sqrt(i*i+o*o),b=l>b?l:b;var _,x,w,S,C=d,T=f,k=n.polarRotation||0;for(i=0;i<f;i+=1)for(o=0;o<d;o+=1)a=i-h,s=o-p,_=Math.sqrt(a*a+s*s)*C/b,x=(180*Math.atan2(s,a)/Math.PI+360+k)%360,x=x*T/360,w=Math.floor(x),S=Math.floor(_),r=4*(S*f+w),v=u[r+0],g=u[r+1],m=u[r+2],y=u[r+3],r=4*(o*f+i),c[r+0]=v,c[r+1]=g,c[r+2]=m,c[r+3]=y};Konva.Filters.Kaleidoscope=function(n){var r,i,o,a,s,l,u,c,f,d,h=n.width,p=n.height,v=Math.round(this.kaleidoscopePower()),g=Math.round(this.kaleidoscopeAngle()),m=Math.floor(h*(g%360)/360);if(!(v<1)){var y=Konva.Util.createCanvasElement();y.width=h,y.height=p;var b=y.getContext("2d").getImageData(0,0,h,p);e(n,b,{polarCenterX:h/2,polarCenterY:p/2});for(var _=h/Math.pow(2,v);_<=8;)_*=2,v-=1;_=Math.ceil(_);var x=_,w=0,S=x,C=1;for(m+_>h&&(w=x,S=0,C=-1),i=0;i<p;i+=1)for(r=w;r!==S;r+=C)o=Math.round(r+m)%h,f=4*(h*i+o),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+r),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;for(i=0;i<p;i+=1)for(x=Math.floor(_),a=0;a<v;a+=1){for(r=0;r<x+1;r+=1)f=4*(h*i+r),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+2*x-r-1),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;x*=2}t(b,n,{polarRotation:0})}},Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopePower",2,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopeAngle",0,Konva.Validators.getNumberValidator(),Konva.Factory.afterSetFilter)}(),function(e){e.Filters.Contrast=function(e){var t,n=Math.pow((parseInt(this.contrast())+100)/100,2),r=e.data,i=r.length,o=150,a=150,s=150;for(t=0;t<i;t+=4)o=r[t],a=r[t+1],s=r[t+2],o/=255,o-=.5,o*=n,o+=.5,o*=255,a/=255,a-=.5,a*=n,a+=.5,a*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,s=s<0?0:s>255?255:s,r[t]=o,r[t+1]=a,r[t+2]=s},e.Factory.addGetterSetter(e.Node,"contrast",0,e.Validators.getNumberValidator(),e.Factory.afterSetFilter)}(Konva),function(){Konva.Container=function(e){this.__init(e)},Konva.Util.addMethods(Konva.Container,{__init:function(e){this.children=new Konva.Collection,Konva.Node.call(this,e)},getChildren:function(e){if(!e)return this.children;var t=new Konva.Collection;return this.children.each(function(n){e(n)&&t.push(n)}),t},hasChildren:function(){return this.getChildren().length>0},removeChildren:function(){for(var e,t=Konva.Collection.toCollection(this.children),n=0;n<t.length;n++)e=t[n],delete e.parent,e.index=0,e.remove();return t=null,this.children=new Konva.Collection,this},destroyChildren:function(){for(var e,t=Konva.Collection.toCollection(this.children),n=0;n<t.length;n++)e=t[n],delete e.parent,e.index=0,e.destroy();return t=null,this.children=new Konva.Collection,this},add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}if(e.getParent())return e.moveTo(this),this;var n=this.children;return this._validateAdd(e),e.index=n.length,e.parent=this,n.push(e),this._fire("add",{child:e}),Konva.DD&&e.isDragging()&&Konva.DD.anim.setLayers(e.getLayer()),this},destroy:function(){return this.hasChildren()&&this.destroyChildren(),Konva.Node.prototype.destroy.call(this),this},find:function(e){return this._generalFind(e,!1)},findOne:function(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0},_generalFind:function(e,t){var n=[];return"string"==typeof e?n=this._findByString(e,t):"function"==typeof e&&(n=this._findByFunction(e,t)),Konva.Collection.toCollection(n)},_findByString:function(e){var t,n,r,i,o,a,s,l=[],u=e.replace(/ /g,"").split(","),c=u.length;for(t=0;t<c;t++){if(r=u[t],!Konva.Util.isValidSelector(r)){var f='Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".\nIf you have a custom shape with such className, please change it to start with upper letter like "Triangle".\nKonva is awesome, right?';Konva.Util.warn(f)}if("#"===r.charAt(0))(o=this._getNodeById(r.slice(1)))&&l.push(o);else if("."===r.charAt(0))i=this._getNodesByName(r.slice(1)),l=l.concat(i);else for(a=this.getChildren(),s=a.length,n=0;n<s;n++)l=l.concat(a[n]._get(r))}return l},_findByFunction:function(e,t){var n=[];return function r(i){if(!(t&&n.length>0)){var o=i.getChildren(),a=o.length;e(i)&&(n=n.concat(i));for(var s=0;s<a;s++)r(o[s])}}(this),n},_getNodeById:function(e){var t=Konva.ids[e];return void 0!==t&&this.isAncestorOf(t)?t:null},_getNodesByName:function(e){var t=Konva.names[e]||[];return this._getDescendants(t)},_get:function(e){for(var t=Konva.Node.prototype._get.call(this,e),n=this.getChildren(),r=n.length,i=0;i<r;i++)t=t.concat(n[i]._get(e));return t},toObject:function(){var e=Konva.Node.prototype.toObject.call(this);e.children=[];for(var t=this.getChildren(),n=t.length,r=0;r<n;r++){var i=t[r];e.children.push(i.toObject())}return e},_getDescendants:function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e[r];this.isAncestorOf(i)&&t.push(i)}return t},isAncestorOf:function(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1},clone:function(e){var t=Konva.Node.prototype.clone.call(this,e);return this.getChildren().each(function(e){t.add(e.clone())}),t},getAllIntersections:function(e){var t=[];return this.find("Shape").each(function(n){n.isVisible()&&n.intersects(e)&&t.push(n)}),t},_setChildrenIndices:function(){this.children.each(function(e,t){e.index=t})},drawScene:function(e,t,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),o=i&&i.getContext(),a=this._cache.canvas,s=a&&a.scene;return(this.isVisible()||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,t),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(i,"drawScene",t,!1,n)),this},drawHit:function(e,t,n){var r=this.getLayer(),i=e||r&&r.hitCanvas,o=i&&i.getContext(),a=this._cache.canvas,s=a&&a.hit;return(this.shouldDrawHit(i)||n)&&(r&&r.clearHitCache(),!n&&s?(o.save(),r._applyTransform(this,o,t),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(i,"drawHit",t)),this},_drawChildren:function(e,t,n,r,i){var o,a,s=this.getLayer(),l=e&&e.getContext(),u=this.getClipWidth(),c=this.getClipHeight(),f=this.getClipFunc(),d=u&&c||f;if(d&&s){l.save();var h=this.getAbsoluteTransform(n),p=h.getMatrix();l.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.beginPath(),f?f.call(this,l,this):(o=this.getClipX(),a=this.getClipY(),l.rect(o,a,u,c)),l.clip(),p=h.copy().invert().getMatrix(),l.transform(p[0],p[1],p[2],p[3],p[4],p[5])}this.children.each(function(o){o[t](e,n,r,i)}),d&&l.restore()},shouldDrawHit:function(e){var t=this.getLayer(),n=Konva.DD,r=n&&Konva.isDragging()&&-1!==Konva.DD.anim.getLayers().indexOf(t);return e&&e.isCache||t&&t.hitGraphEnabled()&&this.isVisible()&&!r},getClientRect:function(e){e=e||{};var t,n,r,i,o=e.skipTransform,a=e.relativeTo,s={x:1/0,y:1/0,width:0,height:0},l=this;this.children.each(function(o){if(o.getVisible()){var a=o.getClientRect({relativeTo:l,skipShadow:e.skipShadow});0===a.width&&0===a.height||(void 0===t?(t=a.x,n=a.y,r=a.x+a.width,i=a.y+a.height):(t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height)))}});for(var u=this.find("Shape"),c=!1,f=0;f<u.length;f++){if(u[f]._isVisible(this)){c=!0;break}}return s=c?{x:t,y:n,width:r-t,height:i-n}:{x:0,y:0,width:0,height:0},o?s:this._transformedRect(s,a)}}),Konva.Util.extend(Konva.Container,Konva.Node),Konva.Container.prototype.get=Konva.Container.prototype.find,Konva.Factory.addComponentsGetterSetter(Konva.Container,"clip",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Container,"clipX",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipY",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipWidth",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipHeight",void 0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Container,"clipFunc"),Konva.Collection.mapMethods(Konva.Container)}(),function(e){function t(e){e.fill()}function n(e){e.stroke()}function r(e){e.fill()}function i(e){e.stroke()}function o(){this._clearCache(s)}function a(){this._clearCache(l)}var s="hasShadow",l="shadowRGBA";e.Shape=function(e){this.__init(e)},e.Util.addMethods(e.Shape,{__init:function(s){this.nodeType="Shape",this._fillFunc=t,this._strokeFunc=n,this._fillFuncHit=r,this._strokeFuncHit=i;for(var l,u=e.shapes;;)if((l=e.Util.getRandomColor())&&!(l in u))break;this.colorKey=l,u[l]=this,e.Node.call(this,s),this.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",o),this.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",a)},hasChildren:function(){return!1},getChildren:function(){return[]},getContext:function(){return this.getLayer().getContext()},getCanvas:function(){return this.getLayer().getCanvas()},hasShadow:function(){return this._getCache(s,this._hasShadow)},_hasShadow:function(){return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())},getShadowRGBA:function(){return this._getCache(l,this._getShadowRGBA)},_getShadowRGBA:function(){if(this.hasShadow()){var t=e.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.getShadowOpacity()||1)+")"}},hasFill:function(){return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())},hasStroke:function(){return this.strokeEnabled()&&!(!this.stroke()&&!this.getStrokeLinearGradientColorStops())},intersects:function(e){var t,n=this.getStage(),r=n.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r),t=r.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data,t[3]>0},destroy:function(){return e.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],this},_useBufferCanvas:function(e){return!e&&this.perfectDrawEnabled()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()||this.perfectDrawEnabled()&&this.hasShadow()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()},getSelfRect:function(){var e=this.getSize();return{x:this._centroid?Math.round(-e.width/2):0,y:this._centroid?Math.round(-e.height/2):0,width:e.width,height:e.height}},getClientRect:function(e){e=e||{};var t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=this.hasStroke()&&this.strokeWidth()||0,o=r.width+i,a=r.height+i,s=!e.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,u=s?this.shadowOffsetY():0,c=o+Math.abs(l),f=a+Math.abs(u),d=s&&this.shadowBlur()||0,h=c+2*d,p=f+2*d,v=0;Math.round(i/2)!==i/2&&(v=1);var g={width:h+v,height:p+v,x:-Math.round(i/2+d)+Math.min(l,0)+r.x,y:-Math.round(i/2+d)+Math.min(u,0)+r.y};return t?g:this._transformedRect(g,n)},drawScene:function(e,t,n,r){var i,o,a,s=this.getLayer(),l=e||s.getCanvas(),u=l.getContext(),c=this._cache.canvas,f=this.sceneFunc(),d=this.hasShadow(),h=this.hasStroke();if(!this.isVisible()&&!n)return this;if(c)return u.save(),s._applyTransform(this,u,t),this._drawCachedSceneCanvas(u),u.restore(),this;if(!f)return this;if(u.save(),this._useBufferCanvas(n)&&!r){if(i=this.getStage(),o=i.bufferCanvas,a=o.getContext(),a.clear(),a.save(),a._applyLineJoin(this),!n)if(s)s._applyTransform(this,a,t);else{var p=this.getAbsoluteTransform(t).getMatrix();u.transform(p[0],p[1],p[2],p[3],p[4],p[5])}f.call(this,a,this),a.restore();var v=o.pixelRatio;d&&!l.hitCanvas?(u.save(),u._applyShadow(this),u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(o._canvas,0,0,o.width/v,o.height/v),u.restore()):(u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(o._canvas,0,0,o.width/v,o.height/v))}else{if(u._applyLineJoin(this),!n)if(s)s._applyTransform(this,u,t);else{var g=this.getAbsoluteTransform(t).getMatrix();u.transform(g[0],g[1],g[2],g[3],g[4],g[5])}d&&h&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u,this),u.restore(),this.hasFill()&&this.getShadowForStrokeEnabled()&&f.call(this,u,this)):d&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u,this),u.restore()):(n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),f.call(this,u,this))}return u.restore(),this},drawHit:function(e,t,n){var r=this.getLayer(),i=e||r.hitCanvas,o=i.getContext(),a=this.hitFunc()||this.sceneFunc(),s=this._cache.canvas,l=s&&s.hit;if(!this.shouldDrawHit(i)&&!n)return this;if(r&&r.clearHitCache(),l)return o.save(),r._applyTransform(this,o,t),this._drawCachedHitCanvas(o),o.restore(),this;if(!a)return this;if(o.save(),o._applyLineJoin(this),!n)if(r)r._applyTransform(this,o,t);else{var u=this.getAbsoluteTransform(t).getMatrix();o.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return a.call(this,o,this),o.restore(),this},drawHitFromCache:function(t){var n,r,i,o,a,s,l=t||0,u=this._cache.canvas,c=this._getCachedSceneCanvas(),f=u.hit,d=f.getContext(),h=f.getWidth(),p=f.getHeight();d.clear(),d.drawImage(c._canvas,0,0,h,p);try{for(n=d.getImageData(0,0,h,p),r=n.data,i=r.length,o=e.Util._hexToRgb(this.colorKey),a=0;a<i;a+=4)s=r[a+3],s>l?(r[a]=o.r,r[a+1]=o.g,r[a+2]=o.b,r[a+3]=255):r[a+3]=0;d.putImageData(n,0,0)}catch(t){e.Util.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this}}),e.Util.extend(e.Shape,e.Node),e.Factory.addGetterSetter(e.Shape,"stroke",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"strokeWidth",2,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"strokeHitEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"perfectDrawEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"shadowForStrokeEnabled",!0,e.Validators.getBooleanValidator()),e.Factory.addGetterSetter(e.Shape,"lineJoin"),e.Factory.addGetterSetter(e.Shape,"lineCap"),e.Factory.addGetterSetter(e.Shape,"sceneFunc"),e.Factory.addGetterSetter(e.Shape,"hitFunc"),e.Factory.addGetterSetter(e.Shape,"dash"),e.Factory.addGetterSetter(e.Shape,"dashOffset",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowColor",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"shadowBlur",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowOpacity",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"shadowOffset",["x","y"]),e.Factory.addGetterSetter(e.Shape,"shadowOffsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"shadowOffsetY",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternImage"),e.Factory.addGetterSetter(e.Shape,"fill",void 0,e.Validators.getStringValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternY",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartRadius",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndRadius",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientColorStops"),e.Factory.addGetterSetter(e.Shape,"fillPatternRepeat","repeat"),e.Factory.addGetterSetter(e.Shape,"fillEnabled",!0),e.Factory.addGetterSetter(e.Shape,"strokeEnabled",!0),e.Factory.addGetterSetter(e.Shape,"shadowEnabled",!0),e.Factory.addGetterSetter(e.Shape,"dashEnabled",!0),e.Factory.addGetterSetter(e.Shape,"strokeScaleEnabled",!0),e.Factory.addGetterSetter(e.Shape,"fillPriority","color"),e.Factory.addComponentsGetterSetter(e.Shape,"fillPatternOffset",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillPatternOffsetX",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternOffsetY",0,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"fillPatternScale",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillPatternScaleX",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Shape,"fillPatternScaleY",1,e.Validators.getNumberValidator()),e.Factory.addComponentsGetterSetter(e.Shape,"fillLinearGradientStartPoint",["x","y"]),e.Factory.addComponentsGetterSetter(e.Shape,"strokeLinearGradientStartPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientStartPointY",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientStartPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillLinearGradientEndPoint",["x","y"]),e.Factory.addComponentsGetterSetter(e.Shape,"strokeLinearGradientEndPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"fillLinearGradientEndPointY",0),e.Factory.addGetterSetter(e.Shape,"strokeLinearGradientEndPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillRadialGradientStartPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartPointX",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientStartPointY",0),e.Factory.addComponentsGetterSetter(e.Shape,"fillRadialGradientEndPoint",["x","y"]),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndPointX",0),e.Factory.addGetterSetter(e.Shape,"fillRadialGradientEndPointY",0),e.Factory.addGetterSetter(e.Shape,"fillPatternRotation",0),e.Factory.backCompat(e.Shape,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),e.Collection.mapMethods(e.Shape)}(Konva),function(){function e(e,n){e.content.addEventListener(n,function(r){e[t+n](r)},!1)}var t="_",n=["mousedown","mousemove","mouseup","mouseout","touchstart","touchmove","touchend","mouseover","wheel","contextmenu"],r=n.length;Konva.Stage=function(e){this.___init(e)},Konva.Util.addMethods(Konva.Stage,{___init:function(e){this.nodeType="Stage",Konva.Container.call(this,e),this._id=Konva.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,Konva.stages.push(this)},_validateAdd:function(e){"Layer"!==e.getType()&&Konva.Util.throw("You may only add layers to the stage.")},setContainer:function(e){if("string"===(void 0===e?"undefined":o(e))){if("."===e.charAt(0)){var t=e.slice(1);e=Konva.document.getElementsByClassName(t)[0]}else{var n;n="#"!==e.charAt(0)?e:e.slice(1),e=Konva.document.getElementById(n)}if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this},shouldDrawHit:function(){return!0},draw:function(){return Konva.Node.prototype.draw.call(this),this},setHeight:function(e){return Konva.Node.prototype.setHeight.call(this,e),this._resizeDOM(),this},setWidth:function(e){return Konva.Node.prototype.setWidth.call(this,e),this._resizeDOM(),this},clear:function(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)t[e].clear();return this},clone:function(e){return e||(e={}),e.container=Konva.document.createElement("div"),Konva.Container.prototype.clone.call(this,e)},destroy:function(){var e=this.content;Konva.Container.prototype.destroy.call(this),e&&Konva.Util._isInDocument(e)&&this.getContainer().removeChild(e);var t=Konva.stages.indexOf(this);return t>-1&&Konva.stages.splice(t,1),this},getPointerPosition:function(){return this.pointerPos},getStage:function(){return this},getContent:function(){return this.content},_toKonvaCanvas:function(e){e=e||{};var t=e.x||0,n=e.y||0,r=new Konva.SceneCanvas({width:e.width||this.getWidth(),height:e.height||this.getHeight(),pixelRatio:e.pixelRatio||1}),i=r.getContext()._context,o=this.children;return(t||n)&&i.translate(-1*t,-1*n),o.each(function(r){if(r.isVisible()){var o=r._toKonvaCanvas(e);i.drawImage(o._canvas,t,n,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}}),r},toImage:function(e){var t=e.callback;e.callback=function(e){Konva.Util._getImage(e,function(e){t(e)})},this.toDataURL(e)},getIntersection:function(e,t){var n,r,i=this.getChildren(),o=i.length,a=o-1;for(n=a;n>=0;n--)if(r=i[n].getIntersection(e,t))return r;return null},_resizeDOM:function(){if(this.content){var e,t,n=this.getWidth(),r=this.getHeight(),i=this.getChildren(),o=i.length;for(this.content.style.width=n+"px",this.content.style.height=r+"px",this.bufferCanvas.setSize(n,r),this.bufferHitCanvas.setSize(n,r),e=0;e<o;e++)t=i[e],t.setSize(n,r),t.draw()}},add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return Konva.Container.prototype.add.call(this,e),e._setCanvasSize(this.width(),this.height()),e.draw(),Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},getParent:function(){return null},getLayer:function(){return null},getLayers:function(){return this.getChildren()},_bindContentEvents:function(){if(Konva.isBrowser)for(var t=0;t<r;t++)e(this,n[t])},_mouseover:function(e){Konva.UA.mobile||(this._setPointerPosition(e),this._fire("contentMouseover",{evt:e}))},_mouseout:function(e){if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.targetShape;t&&!Konva.isDragging()&&(t._fireAndBubble("mouseout",{evt:e}),t._fireAndBubble("mouseleave",{evt:e}),this.targetShape=null),this.pointerPos=void 0,this._fire("contentMouseout",{evt:e})}},_mousemove:function(e){if(Konva.UA.ieMobile)return this._touchmove(e);if((void 0!==e.movementX||void 0!==e.movementY)&&0===e.movementY&&0===e.movementX)return null;if(Konva.UA.mobile)return null;this._setPointerPosition(e);var t;Konva.isDragging()||(t=this.getIntersection(this.getPointerPosition()),t&&t.isListening()?Konva.isDragging()||this.targetShape&&this.targetShape._id===t._id?t._fireAndBubble("mousemove",{evt:e}):(this.targetShape&&(this.targetShape._fireAndBubble("mouseout",{evt:e},t),this.targetShape._fireAndBubble("mouseleave",{evt:e},t)),t._fireAndBubble("mouseover",{evt:e},this.targetShape),t._fireAndBubble("mouseenter",{evt:e},this.targetShape),this.targetShape=t):(this.targetShape&&!Konva.isDragging()&&(this.targetShape._fireAndBubble("mouseout",{evt:e}),this.targetShape._fireAndBubble("mouseleave",{evt:e}),this.targetShape=null),this._fire("mousemove",{evt:e,target:this,currentTarget:this})),this._fire("contentMousemove",{evt:e})),e.cancelable&&e.preventDefault()},_mousedown:function(e){if(Konva.UA.ieMobile)return this._touchstart(e);if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,t&&t.isListening()?(this.clickStartShape=t,t._fireAndBubble("mousedown",{evt:e})):this._fire("mousedown",{evt:e,target:this,currentTarget:this}),this._fire("contentMousedown",{evt:e})}},_mouseup:function(e){if(Konva.UA.ieMobile)return this._touchend(e);if(!Konva.UA.mobile){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,r=this.clickEndShape,i=!1,o=Konva.DD;Konva.inDblClickWindow?(i=!0,clearTimeout(this.dblTimeout)):o&&o.justDragged?o&&(o.justDragged=!1):(Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),t&&t.isListening()?(this.clickEndShape=t,t._fireAndBubble("mouseup",{evt:e}),Konva.listenClickTap&&n&&n._id===t._id&&(t._fireAndBubble("click",{evt:e}),i&&r&&r._id===t._id&&t._fireAndBubble("dblclick",{evt:e}))):(this._fire("mouseup",{evt:e,target:this,currentTarget:this}),Konva.listenClickTap&&this._fire("click",{evt:e,target:this,currentTarget:this}),i&&this._fire("dblclick",{evt:e,target:this,currentTarget:this})),this._fire("contentMouseup",{evt:e}),Konva.listenClickTap&&(this._fire("contentClick",{evt:e}),i&&this._fire("contentDblclick",{evt:e})),Konva.listenClickTap=!1}e.cancelable&&e.preventDefault()},_contextmenu:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble("contextmenu",{evt:e}):this._fire("contextmenu",{evt:e,target:this,currentTarget:this}),this._fire("contentContextmenu",{evt:e})},_touchstart:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,t&&t.isListening()?(this.tapStartShape=t,t._fireAndBubble("touchstart",{evt:e}),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):this._fire("touchstart",{evt:e,target:this,currentTarget:this}),this._fire("contentTouchstart",{evt:e})},_touchend:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition()),n=!1;Konva.inDblClickWindow?(n=!0,clearTimeout(this.dblTimeout)):(Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),t&&t.isListening()?(t._fireAndBubble("touchend",{evt:e}),Konva.listenClickTap&&this.tapStartShape&&t._id===this.tapStartShape._id&&(t._fireAndBubble("tap",{evt:e}),n&&t._fireAndBubble("dbltap",{evt:e})),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):(this._fire("touchend",{evt:e,target:this,currentTarget:this}),Konva.listenClickTap&&this._fire("tap",{evt:e,target:this,currentTarget:this}),n&&this._fire("dbltap",{evt:e,target:this,currentTarget:this})),this._fire("contentTouchend",{evt:e}),Konva.listenClickTap&&(this._fire("contentTap",{evt:e}),n&&this._fire("contentDbltap",{evt:e})),Konva.listenClickTap=!1},_touchmove:function(e){this._setPointerPosition(e);var t,n=Konva.DD;Konva.isDragging()||(t=this.getIntersection(this.getPointerPosition()),t&&t.isListening()?(t._fireAndBubble("touchmove",{evt:e}),t.isListening()&&t.preventDefault()&&e.cancelable&&e.preventDefault()):this._fire("touchmove",{evt:e,target:this,currentTarget:this}),this._fire("contentTouchmove",{evt:e})),n&&Konva.isDragging()&&Konva.DD.node.preventDefault()&&e.cancelable&&e.preventDefault()},_wheel:function(e){this._setPointerPosition(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble("wheel",{evt:e}):this._fire("wheel",{evt:e,target:this,currentTarget:this}),this._fire("contentWheel",{evt:e})},_setPointerPosition:function(e){var t=this._getContentPosition(),n=null,r=null;if(e=e||window.event,void 0!==e.touches){if(e.touches.length>0){var i=e.touches[0];n=i.clientX-t.left,r=i.clientY-t.top}}else n=e.clientX-t.left,r=e.clientY-t.top;null!==n&&null!==r&&(this.pointerPos={x:n,y:r})},_getContentPosition:function(){var e=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};return{top:e.top,left:e.left}},_buildDOM:function(){if(this.bufferCanvas=new Konva.SceneCanvas,this.bufferHitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.isBrowser){var e=this.getContainer();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=Konva.document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}},_onContent:function(e,t){var n,r,i=e.split(" "),o=i.length;for(n=0;n<o;n++)r=i[n],this.content.addEventListener(r,t,!1)},cache:function(){Konva.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.")},clearCache:function(){}}),Konva.Util.extend(Konva.Stage,Konva.Container),Konva.Factory.addGetter(Konva.Stage,"container"),Konva.Factory.addOverloadedGetterSetter(Konva.Stage,"container")}(),function(e){e.BaseLayer=function(e){this.___init(e)},e.Util.addMethods(e.BaseLayer,{___init:function(t){this.nodeType="Layer",e.Container.call(this,t)},createPNGStream:function(){return this.canvas._canvas.createPNGStream()},getCanvas:function(){return this.canvas},getHitCanvas:function(){return this.hitCanvas},getContext:function(){return this.getCanvas().getContext()},clear:function(e){return this.getContext().clear(e),this},clearHitCache:function(){this._hitImageData=void 0},setZIndex:function(t){e.Node.prototype.setZIndex.call(this,t);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),t<n.getChildren().length-1?n.content.insertBefore(this.getCanvas()._canvas,n.getChildren()[t+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},moveToTop:function(){e.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),this},moveUp:function(){if(!e.Node.prototype.moveUp.call(this))return this;var t=this.getStage();return t?(t.content.removeChild(this.getCanvas()._canvas),this.index<t.getChildren().length-1?t.content.insertBefore(this.getCanvas()._canvas,t.getChildren()[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getCanvas()._canvas),this):this},moveDown:function(){if(e.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,n[this.index+1].getCanvas()._canvas)}}return this},moveToBottom:function(){if(e.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,n[1].getCanvas()._canvas)}}return this},getLayer:function(){return this},remove:function(){var t=this.getCanvas()._canvas;return e.Node.prototype.remove.call(this),t&&t.parentNode&&e.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},getStage:function(){return this.parent},setSize:function(e,t){return this.canvas.setSize(e,t),this},_toKonvaCanvas:function(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.getX(),t.y=void 0!==t.y?t.y:this.getY(),e.Node.prototype._toKonvaCanvas.call(this,t)},getWidth:function(){if(this.parent)return this.parent.getWidth()},setWidth:function(){e.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},getHeight:function(){if(this.parent)return this.parent.getHeight()},setHeight:function(){e.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},_applyTransform:function(e,t,n){var r=e.getAbsoluteTransform(n).getMatrix();t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}}),e.Util.extend(e.BaseLayer,e.Container),e.Factory.addGetterSetter(e.BaseLayer,"clearBeforeDraw",!0),e.Collection.mapMethods(e.BaseLayer)}(Konva),function(){var e=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],t=e.length;Konva.Layer=function(e){this.____init(e)},Konva.Util.addMethods(Konva.Layer,{____init:function(e){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,this.hitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.BaseLayer.call(this,e)},_setCanvasSize:function(e,t){this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t)},_validateAdd:function(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&Konva.Util.throw("You may only add groups and shapes to a layer.")},getIntersection:function(n,r){var i,o,a,s;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var l=1,u=!1;;){for(o=0;o<t;o++){if(a=e[o],i=this._getIntersection({x:n.x+a.x*l,y:n.y+a.y*l}),(s=i.shape)&&r)return s.findAncestor(r,!0);if(s)return s;if(u=!!i.antialiased,!i.antialiased)break}if(!u)return null;l+=1}},_getImageData:function(e,t){var n=this.hitCanvas.width||1,r=this.hitCanvas.height||1,i=Math.round(t)*n+Math.round(e);return this._hitImageData||(this._hitImageData=this.hitCanvas.context.getImageData(0,0,n,r)),[this._hitImageData.data[4*i+0],this._hitImageData.data[4*i+1],this._hitImageData.data[4*i+2],this._hitImageData.data[4*i+3]]},_getIntersection:function(e){var t,n,r=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(e.x*r),Math.round(e.y*r),1,1).data,o=i[3];return 255===o?(t=Konva.Util._rgbToHex(i[0],i[1],i[2]),n=Konva.shapes["#"+t],n?{shape:n}:{antialiased:!0}):o>0?{antialiased:!0}:{}},drawScene:function(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.getClearBeforeDraw()&&r.getContext().clear(),Konva.Container.prototype.drawScene.call(this,r,t),this._fire("draw",{node:this}),this},drawHit:function(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.getClearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Konva.Container.prototype.drawHit.call(this,r,t),this.imageData=null,this},clear:function(e){return Konva.BaseLayer.prototype.clear.call(this,e),this.getHitCanvas().getContext().clear(e),this.imageData=null,this},setVisible:function(e){return Konva.Node.prototype.setVisible.call(this,e),e?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this},enableHitGraph:function(){return this.setHitGraphEnabled(!0),this},disableHitGraph:function(){return this.setHitGraphEnabled(!1),this},setSize:function(e,t){return Konva.BaseLayer.prototype.setSize.call(this,e,t),this.hitCanvas.setSize(e,t),this}}),Konva.Util.extend(Konva.Layer,Konva.BaseLayer),Konva.Factory.addGetterSetter(Konva.Layer,"hitGraphEnabled",!0),Konva.Collection.mapMethods(Konva.Layer)}(),function(){Konva.FastLayer=function(e){this.____init(e)},Konva.Util.addMethods(Konva.FastLayer,{____init:function(e){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,Konva.BaseLayer.call(this,e)},_validateAdd:function(e){"Shape"!==e.getType()&&Konva.Util.throw("You may only add shapes to a fast layer.")},_setCanvasSize:function(e,t){this.canvas.setSize(e,t)},hitGraphEnabled:function(){return!1},getIntersection:function(){return null},drawScene:function(e){var t=this.getLayer(),n=e||t&&t.getCanvas();return this.getClearBeforeDraw()&&n.getContext().clear(),Konva.Container.prototype.drawScene.call(this,n),this},draw:function(){return this.drawScene(),this},setVisible:function(e){return Konva.Node.prototype.setVisible.call(this,e),this.getCanvas()._canvas.style.display=e?"block":"none",this}}),Konva.Util.extend(Konva.FastLayer,Konva.BaseLayer),Konva.Collection.mapMethods(Konva.FastLayer)}(),function(){Konva.Group=function(e){this.___init(e)},Konva.Util.addMethods(Konva.Group,{___init:function(e){this.nodeType="Group",Konva.Container.call(this,e)},_validateAdd:function(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&Konva.Util.throw("You may only add groups and shapes to groups.")}}),Konva.Util.extend(Konva.Group,Konva.Container),Konva.Collection.mapMethods(Konva.Group)}(),function(e){function t(e){setTimeout(e,1e3/60)}function n(){return i.apply(e.global,arguments)}var r=function(){return e.global.performance&&e.global.performance.now?function(){return e.global.performance.now()}:function(){return(new Date).getTime()}}(),i=function(){return e.global.requestAnimationFrame||e.global.webkitRequestAnimationFrame||e.global.mozRequestAnimationFrame||e.global.oRequestAnimationFrame||e.global.msRequestAnimationFrame||t}();e.Animation=function(t,n){var i=e.Animation;this.func=t,this.setLayers(n),this.id=i.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:r()}},e.Animation.prototype={setLayers:function(e){var t=[];return t=e?e.length>0?e:[e]:[],this.layers=t,this},getLayers:function(){return this.layers},addLayer:function(e){var t,n=this.layers,r=n.length;for(t=0;t<r;t++)if(n[t]._id===e._id)return!1;return this.layers.push(e),!0},isRunning:function(){var t,n=e.Animation,r=n.animations,i=r.length;for(t=0;t<i;t++)if(r[t].id===this.id)return!0;return!1},start:function(){var t=e.Animation;return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=r(),t._addAnimation(this),this},stop:function(){return e.Animation._removeAnimation(this),this},_updateFrameObject:function(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}},e.Animation.animations=[],e.Animation.animIdCounter=0,e.Animation.animRunning=!1,e.Animation._addAnimation=function(e){this.animations.push(e),this._handleAnimation()},e.Animation._removeAnimation=function(e){var t,n=e.id,r=this.animations,i=r.length;for(t=0;t<i;t++)if(r[t].id===n){this.animations.splice(t,1);break}},e.Animation._runFrames=function(){var e,t,n,i,o,a,s,l,u={},c=this.animations;for(i=0;i<c.length;i++)if(e=c[i],t=e.layers,n=e.func,e._updateFrameObject(r()),a=t.length,!n||!1!==n.call(e,e.frame))for(o=0;o<a;o++)s=t[o],void 0!==s._id&&(u[s._id]=s);for(l in u)u.hasOwnProperty(l)&&u[l].draw()},e.Animation._animationLoop=function(){var t=e.Animation;t.animations.length?(t._runFrames(),n(t._animationLoop)):t.animRunning=!1},e.Animation._handleAnimation=function(){this.animRunning||(this.animRunning=!0,n(this._animationLoop))},e.BaseLayer.prototype.batchDraw=function(){var t=this,n=e.Animation;return this.batchAnim||(this.batchAnim=new n(function(){t.batchAnim.stop()},this)),this.batchAnim.isRunning()||this.batchAnim.start(),this},e.Stage.prototype.batchDraw=function(){return this.getChildren().each(function(e){e.batchDraw()}),this}}(Konva),function(){var e={node:1,duration:1,easing:1,onFinish:1,yoyo:1},t=0,n=["fill","stroke","shadowColor"],r=function(e,t,n,r,i,o,a){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()};r.prototype={fire:function(e){var t=this[e];t&&t()},setTime:function(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())},getTime:function(){return this._time},setPosition:function(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e},getPosition:function(e){return void 0===e&&(e=this._time),this.func(e,this.begin,this._change,this.duration)},play:function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},reverse:function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},seek:function(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")},reset:function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},finish:function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},update:function(){this.setPosition(this.getPosition(this._time))},onEnterFrame:function(){var e=this.getTimer()-this._startTime;2===this.state?this.setTime(e):3===this.state&&this.setTime(this.duration-e)},pause:function(){this.state=1,this.fire("onPause")},getTimer:function(){return(new Date).getTime()}},Konva.Tween=function(n){var i,o,a=this,s=n.node,l=s._id,u=n.easing||Konva.Easings.Linear,c=!!n.yoyo;i=void 0===n.duration?.3:0===n.duration?.001:n.duration,this.node=s,this._id=t++;var f=s.getLayer()||(s instanceof Konva.Stage?s.getLayers():null);f||Konva.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Konva.Animation(function(){a.tween.onEnterFrame()},f),this.tween=new r(o,function(e){a._tweenFunc(e)},u,0,1,1e3*i,c),this._addListeners(),Konva.Tween.attrs[l]||(Konva.Tween.attrs[l]={}),Konva.Tween.attrs[l][this._id]||(Konva.Tween.attrs[l][this._id]={}),Konva.Tween.tweens[l]||(Konva.Tween.tweens[l]={});for(o in n)void 0===e[o]&&this._addAttr(o,n[o]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset},Konva.Tween.attrs={},Konva.Tween.tweens={},Konva.Tween.prototype={_addAttr:function(e,t){var r,i,o,a,s,l,u,c,f=this.node,d=f._id;if(o=Konva.Tween.tweens[d][e],o&&delete Konva.Tween.attrs[d][o][e],r=f.getAttr(e),Konva.Util._isArray(t))if(i=[],s=Math.max(t.length,r.length),"points"===e&&t.length!==r.length&&(t.length>r.length?(u=r,r=Konva.Util._prepareArrayForTween(r,t,f.closed())):(l=t,t=Konva.Util._prepareArrayForTween(t,r,f.closed()))),0===e.indexOf("fill"))for(a=0;a<s;a++)if(a%2==0)i.push(t[a]-r[a]);else{var h=Konva.Util.colorToRGBA(r[a]);c=Konva.Util.colorToRGBA(t[a]),r[a]=h,i.push({r:c.r-h.r,g:c.g-h.g,b:c.b-h.b,a:c.a-h.a})}else for(a=0;a<s;a++)i.push(t[a]-r[a]);else-1!==n.indexOf(e)?(r=Konva.Util.colorToRGBA(r),c=Konva.Util.colorToRGBA(t),i={r:c.r-r.r,g:c.g-r.g,b:c.b-r.b,a:c.a-r.a}):i=t-r;Konva.Tween.attrs[d][this._id][e]={start:r,diff:i,end:t,trueEnd:l,trueStart:u},Konva.Tween.tweens[d][e]=this._id},_tweenFunc:function(e){var t,r,i,o,a,s,l,u,c=this.node,f=Konva.Tween.attrs[c._id][this._id];for(t in f){if(r=f[t],i=r.start,o=r.diff,u=r.end,Konva.Util._isArray(i))if(a=[],l=Math.max(i.length,u.length),0===t.indexOf("fill"))for(s=0;s<l;s++)s%2==0?a.push((i[s]||0)+o[s]*e):a.push("rgba("+Math.round(i[s].r+o[s].r*e)+","+Math.round(i[s].g+o[s].g*e)+","+Math.round(i[s].b+o[s].b*e)+","+(i[s].a+o[s].a*e)+")");else for(s=0;s<l;s++)a.push((i[s]||0)+o[s]*e);else a=-1!==n.indexOf(t)?"rgba("+Math.round(i.r+o.r*e)+","+Math.round(i.g+o.g*e)+","+Math.round(i.b+o.b*e)+","+(i.a+o.a*e)+")":i+o*e;c.setAttr(t,a)}},_addListeners:function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},this.tween.onFinish=function(){var t=e.node,n=Konva.Tween.attrs[t._id][e._id];n.points&&n.points.trueEnd&&t.points(n.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var t=e.node,n=Konva.Tween.attrs[t._id][e._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),e.onReset&&e.onReset()}},play:function(){return this.tween.play(),this},reverse:function(){return this.tween.reverse(),this},reset:function(){return this.tween.reset(),this},seek:function(e){return this.tween.seek(1e3*e),this},pause:function(){return this.tween.pause(),this},finish:function(){return this.tween.finish(),this},destroy:function(){var e,t=this.node._id,n=this._id,r=Konva.Tween.tweens[t];this.pause();for(e in r)delete Konva.Tween.tweens[t][e];delete Konva.Tween.attrs[t][n]}},Konva.Node.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new Konva.Tween(e).play()},Konva.Easings={BackEaseIn:function(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut:function(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut:function(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},ElasticEaseIn:function(e,t,n,r,i,o){var a=0;return 0===e?t:1==(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},ElasticEaseOut:function(e,t,n,r,i,o){var a=0;return 0===e?t:1==(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+n+t)},ElasticEaseInOut:function(e,t,n,r,i,o){var a=0;return 0===e?t:2==(e/=r/2)?t+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+n+t)},BounceEaseOut:function(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn:function(e,t,n,r){return n-Konva.Easings.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut:function(e,t,n,r){return e<r/2?.5*Konva.Easings.BounceEaseIn(2*e,0,n,r)+t:.5*Konva.Easings.BounceEaseOut(2*e-r,0,n,r)+.5*n+t},EaseIn:function(e,t,n,r){return n*(e/=r)*e+t},EaseOut:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn:function(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut:function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear:function(e,t,n,r){return n*e/r+t}}}(),function(){Konva.DD={anim:new Konva.Animation(function(){var e=this.dirty;return this.dirty=!1,e}),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(e){var t=Konva.DD,n=t.node;if(n){if(!t.isDragging){var r=n.getStage().getPointerPosition();r||(n.getStage()._setPointerPosition(e),r=n.getStage().getPointerPosition());var i=n.dragDistance();if(Math.max(Math.abs(r.x-t.startPointerPos.x),Math.abs(r.y-t.startPointerPos.y))<i)return}if(n.getStage()._setPointerPosition(e),!t.isDragging&&(t.isDragging=!0,n.fire("dragstart",{type:"dragstart",target:n,evt:e},!0),!n.isDragging()))return;n._setDragPosition(e),n.fire("dragmove",{type:"dragmove",target:n,evt:e},!0)}},_endDragBefore:function(e){var t,n=Konva.DD,r=n.node;r&&(t=r.getLayer(),n.anim.stop(),n.isDragging&&(n.isDragging=!1,n.justDragged=!0,Konva.listenClickTap=!1,e&&(e.dragEndNode=r)),delete n.node,(r.getLayer()||t||r instanceof Konva.Stage)&&(t||r).draw())},_endDragAfter:function(e){e=e||{};var t=e.dragEndNode;e&&t&&t.fire("dragend",{type:"dragend",target:t,evt:e},!0)}},Konva.Node.prototype.startDrag=function(){var e=Konva.DD,t=this.getStage(),n=this.getLayer(),r=t.getPointerPosition(),i=this.getAbsolutePosition();r&&(e.node&&e.node.stopDrag(),e.node=this,e.startPointerPos=r,e.offset.x=r.x-i.x,e.offset.y=r.y-i.y,e.anim.setLayers(n||this.getLayers()),e.anim.start(),this._setDragPosition())},Konva.Node.prototype._setDragPosition=function(e){var t=Konva.DD,n=this.getStage().getPointerPosition(),r=this.getDragBoundFunc();if(n){var i={x:n.x-t.offset.x,y:n.y-t.offset.y};void 0!==r&&(i=r.call(this,i,e)),this.setAbsolutePosition(i),this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(t.anim.dirty=!0),this._lastPos=i}},Konva.Node.prototype.stopDrag=function(){var e=Konva.DD,t={};e._endDragBefore(t),e._endDragAfter(t)},Konva.Node.prototype.setDraggable=function(e){this._setAttr("draggable",e),this._dragChange()};var e=Konva.Node.prototype.remove;Konva.Node.prototype.__originalRemove=e,Konva.Node.prototype.remove=function(){var t=Konva.DD;t.node&&t.node._id===this._id&&this.stopDrag(),e.call(this)},Konva.Node.prototype.isDragging=function(){var e=Konva.DD;return!(!e.node||e.node._id!==this._id||!e.isDragging)},Konva.Node.prototype._listenDrag=function(){var e=this;this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.konva contentTouchstart.konva",function(t){Konva.DD.node||e.startDrag(t)}):this.on("mousedown.konva touchstart.konva",function(t){1!==t.evt.button&&2!==t.evt.button&&(Konva.DD.node||e.startDrag(t))})},Konva.Node.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var e=this.getStage(),t=Konva.DD;e&&t.node&&t.node._id===this._id&&t.node.stopDrag()}},Konva.Node.prototype._dragCleanup=function(){"Stage"===this.getClassName()?(this.off("contentMousedown.konva"),this.off("contentTouchstart.konva")):(this.off("mousedown.konva"),this.off("touchstart.konva"))},Konva.Factory.addGetterSetter(Konva.Node,"dragBoundFunc"),Konva.Factory.addGetter(Konva.Node,"draggable",!1),Konva.Factory.addOverloadedGetterSetter(Konva.Node,"draggable"),Konva.isBrowser&&(window.addEventListener("mouseup",Konva.DD._endDragBefore,!0),window.addEventListener("touchend",Konva.DD._endDragBefore,!0),window.addEventListener("mousemove",Konva.DD._drag),window.addEventListener("touchmove",Konva.DD._drag),window.addEventListener("mouseup",Konva.DD._endDragAfter,!1),window.addEventListener("touchend",Konva.DD._endDragAfter,!1))}(),function(){Konva.Rect=function(e){this.___init(e)},Konva.Rect.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Rect",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.getCornerRadius(),n=this.getWidth(),r=this.getHeight();e.beginPath(),t?(t=Math.min(t,n/2,r/2),e.moveTo(t,0),e.lineTo(n-t,0),e.arc(n-t,t,t,3*Math.PI/2,0,!1),e.lineTo(n,r-t),e.arc(n-t,r-t,t,0,Math.PI/2,!1),e.lineTo(t,r),e.arc(t,r-t,t,Math.PI/2,Math.PI,!1),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2,!1)):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}},Konva.Util.extend(Konva.Rect,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Rect,"cornerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Rect)}(),function(e){var t=2*Math.PI-1e-4;e.Circle=function(e){this.___init(e)},e.Circle.prototype={_centroid:!0,___init:function(t){e.Shape.call(this,t),this.className="Circle",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getRadius(),0,t,!1),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){e.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){e.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},e.Util.extend(e.Circle,e.Shape),e.Factory.addGetterSetter(e.Circle,"radius",0,e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Circle,"radius"),e.Collection.mapMethods(e.Circle)}(Konva),function(){var e=2*Math.PI-1e-4;Konva.Ellipse=function(e){this.___init(e)},Konva.Ellipse.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Ellipse",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var n=this.getRadiusX(),r=this.getRadiusY();t.beginPath(),t.save(),n!==r&&t.scale(1,r/n),t.arc(0,0,n,0,e,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadiusX()},getHeight:function(){return 2*this.getRadiusY()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.setRadius({x:e/2})},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.setRadius({y:e/2})}},Konva.Util.extend(Konva.Ellipse,Konva.Shape),Konva.Factory.addComponentsGetterSetter(Konva.Ellipse,"radius",["x","y"]),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusX",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusY",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Ellipse)}(),function(){var e=2*Math.PI-1e-4;Konva.Ring=function(e){this.___init(e)},Konva.Ring.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Ring",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getInnerRadius(),0,e,!1),t.moveTo(this.getOuterRadius(),0),t.arc(0,0,this.getOuterRadius(),e,0,!0),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setOuterRadius:function(e){this._setAttr("outerRadius",e),this.setWidth(2*e),this.setHeight(2*e)}},Konva.Util.extend(Konva.Ring,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Ring,"innerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetter(Konva.Ring,"outerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addOverloadedGetterSetter(Konva.Ring,"outerRadius"),Konva.Collection.mapMethods(Konva.Ring)}(),function(){Konva.Wedge=function(e){this.___init(e)},Konva.Wedge.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Wedge",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getRadius(),0,Konva.getAngle(this.getAngle()),this.getClockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},Konva.Util.extend(Konva.Wedge,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Wedge,"radius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Wedge,"angle",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Wedge,"clockwise",!1),Konva.Factory.backCompat(Konva.Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Konva.Collection.mapMethods(Konva.Wedge)}(),function(e){e.Arc=function(e){this.___init(e)},e.Arc.prototype={_centroid:!0,___init:function(t){e.Shape.call(this,t),this.className="Arc",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var n=e.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.getOuterRadius(),0,n,r),t.arc(0,0,this.getInnerRadius(),n,0,!r),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){e.Node.prototype.setWidth.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){e.Node.prototype.setHeight.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)}},e.Util.extend(e.Arc,e.Shape),e.Factory.addGetterSetter(e.Arc,"innerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"outerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"angle",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arc,"clockwise",!1),e.Collection.mapMethods(e.Arc)}(Konva),function(){Konva.Image=function(e){this.___init(e)},Konva.Image.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Image",this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()&&this.getStage()},_sceneFunc:function(e){var t,n,r,i=this.getWidth(),o=this.getHeight(),a=this.getImage();a&&(t=this.getCropWidth(),n=this.getCropHeight(),r=t&&n?[a,this.getCropX(),this.getCropY(),t,n,0,0,i,o]:[a,0,0,i,o]),(this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,i,o),e.closePath(),e.fillStrokeShape(this)),a&&e.drawImage.apply(e,r)},_hitFunc:function(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){var e=this.getImage();return this.attrs.width||(e?e.width:0)},getHeight:function(){var e=this.getImage();return this.attrs.height||(e?e.height:0)}},Konva.Util.extend(Konva.Image,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Image,"image"),Konva.Factory.addComponentsGetterSetter(Konva.Image,"crop",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Image,"cropX",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropY",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropWidth",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Image,"cropHeight",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Image),Konva.Image.fromURL=function(e,t){var n=new Image;n.onload=function(){var e=new Konva.Image({image:n});t(e)},n.crossOrigin="Anonymous",n.src=e}}(),function(){function e(){return r||(r=Konva.Util.createCanvasElement().getContext(i))}function t(e){e.fillText(this.partialText,0,0)}function n(e){e.strokeText(this.partialText,0,0)}var r,i="2d",o=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],a=o.length;Konva.Text=function(e){this.___init(e)},Konva.Text.prototype={___init:function(e){e=e||{},e.fillLinearGradientColorStops||e.fillRadialGradientColorStops||(e.fill=e.fill||"black"),Konva.Shape.call(this,e),this._fillFunc=t,this._strokeFunc=n,this.className="Text";for(var r=0;r<a;r++)this.on(o[r]+"Change.konva",this._setTextData);this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){var t,n=this.getPadding(),r=this.getTextHeight(),i=this.getLineHeight()*r,o=this.textArr,a=o.length,s=this.getVerticalAlign(),l=0,u=this.getAlign(),c=this.getWidth(),f=this.getLetterSpacing(),d=this.textDecoration(),h=this.fill(),p=this.fontSize();for(e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline","middle"),e.setAttr("textAlign","left"),"middle"===s?l=(this.getHeight()-a*i-2*n)/2:"bottom"===s&&(l=this.getHeight()-a*i-2*n),n?(e.translate(n,0),e.translate(0,l+n+i/2)):e.translate(0,l+i/2),t=0;t<a;t++){var v,g,m,y=o[t],b=y.text,_=y.width,x=t!==a-1;if(e.save(),"right"===u?e.translate(c-_-2*n,0):"center"===u&&e.translate((c-_-2*n)/2,0),-1!==d.indexOf("underline")&&(e.save(),e.beginPath(),e.moveTo(0,Math.round(i/2)),v=b.split(" ").length-1,g=0===v,m="justify"===u&&x&&!g?c-2*n:_,e.lineTo(Math.round(m),Math.round(i/2)),e.lineWidth=p/15,e.strokeStyle=h,e.stroke(),e.restore()),-1!==d.indexOf("line-through")&&(e.save(),e.beginPath(),e.moveTo(0,0),v=b.split(" ").length-1,g=0===v,m="justify"===u&&x&&!g?c-2*n:_,e.lineTo(Math.round(m),0),e.lineWidth=p/15,e.strokeStyle=h,e.stroke(),e.restore()),0!==f||"justify"===u){v=b.split(" ").length-1;for(var w=0;w<b.length;w++){var S=b[w];" "===S&&t!==a-1&&"justify"===u&&e.translate(Math.floor((c-2*n-_)/v),0),this.partialText=S,e.fillStrokeShape(this),e.translate(Math.round(this._getTextSize(S).width)+f,0)}}else this.partialText=b,e.fillStrokeShape(this);e.restore(),a>1&&e.translate(0,i)}},_hitFunc:function(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)},setText:function(e){var t=Konva.Util._isString(e)?e:(e||"").toString();return this._setAttr("text",t),this},getWidth:function(){return"auto"===this.attrs.width||void 0===this.attrs.width?this.getTextWidth()+2*this.getPadding():this.attrs.width},getHeight:function(){return"auto"===this.attrs.height||void 0===this.attrs.height?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},_getTextSize:function(t){var n,r=e(),i=this.getFontSize();return r.save(),r.font=this._getContextFont(),n=r.measureText(t),r.restore(),{width:n.width,height:parseInt(i,10)}},_getContextFont:function(){return Konva.UA.isIE?this.getFontStyle()+" "+this.getFontSize()+"px "+this.getFontFamily():this.getFontStyle()+" "+this.getFontVariant()+" "+this.getFontSize()+"px "+this.getFontFamily()},_addTextLine:function(e){"justify"===this.align()&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t})},_getTextWidth:function(t){var n=this.getLetterSpacing(),r=t.length;return e().measureText(t).width+(r?n*(r-1):0)},_setTextData:function(){var t=this.getText().split("\n"),n=+this.getFontSize(),r=0,i=this.getLineHeight()*n,o=this.attrs.width,a=this.attrs.height,s="auto"!==o,l="auto"!==a,u=this.getPadding(),c=o-2*u,f=a-2*u,d=0,h=this.getWrap(),p="none"!==h,v="char"!==h&&p,g=this.getEllipsis()&&!p;this.textArr=[],e().font=this._getContextFont();for(var m=0,y=t.length;m<y;++m){var b=t[m],_=g?this._getTextWidth("…"):0,x=this._getTextWidth(b);if(s&&x>c)for(;b.length>0;){for(var w=0,S=b.length,C="",T=0;w<S;){var k=w+S>>>1,P=b.slice(0,k+1),O=this._getTextWidth(P)+_;O<=c?(w=k+1,C=P+(g?"…":""),T=O):S=k}if(!C)break;if(v){var E,N=b[C.length],M=" "===N||"-"===N;E=M&&T<=c?C.length:Math.max(C.lastIndexOf(" "),C.lastIndexOf("-"))+1,E>0&&(w=E,C=C.slice(0,w),T=this._getTextWidth(C))}if(C=Konva.Util.trimRight(C),this._addTextLine(C),r=Math.max(r,T),d+=i,!p||l&&d+i>f)break;if(b=b.slice(w),b=Konva.Util.trimLeft(b),b.length>0&&(x=this._getTextWidth(b))<=c){this._addTextLine(b),d+=i,r=Math.max(r,x);break}}else this._addTextLine(b),d+=i,r=Math.max(r,x);if(l&&d+i>f)break}this.textHeight=n,this.textWidth=r}},Konva.Util.extend(Konva.Text,Konva.Shape),Konva.Factory.addSetter(Konva.Node,"width",Konva.Validators.getNumberOrAutoValidator()),Konva.Factory.addSetter(Konva.Node,"height",Konva.Validators.getNumberOrAutoValidator()),Konva.Factory.addGetterSetter(Konva.Text,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.Text,"fontSize",12,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.Text,"fontVariant","normal"),Konva.Factory.addGetterSetter(Konva.Text,"padding",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"align","left"),Konva.Factory.addGetterSetter(Konva.Text,"verticalAlign","top"),Konva.Factory.addGetterSetter(Konva.Text,"lineHeight",1,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Text,"wrap","word"),Konva.Factory.addGetterSetter(Konva.Text,"ellipsis",!1),Konva.Factory.addGetterSetter(Konva.Text,"letterSpacing",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetter(Konva.Text,"text",""),Konva.Factory.addOverloadedGetterSetter(Konva.Text,"text"),Konva.Factory.addGetterSetter(Konva.Text,"textDecoration",""),Konva.Collection.mapMethods(Konva.Text)}(),function(){Konva.Line=function(e){this.___init(e)},Konva.Line.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Line",this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t,n,r,i=this.getPoints(),o=i.length,a=this.getTension(),s=this.getClosed(),l=this.getBezier();if(o){if(e.beginPath(),e.moveTo(i[0],i[1]),0!==a&&o>4){for(t=this.getTensionPoints(),n=t.length,r=s?0:4,s||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);r<n-2;)e.bezierCurveTo(t[r++],t[r++],t[r++],t[r++],t[r++],t[r++]);s||e.quadraticCurveTo(t[n-2],t[n-1],i[o-2],i[o-1])}else if(l)for(r=2;r<o;)e.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<o;r+=2)e.lineTo(i[r],i[r+1]);s?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}},getTensionPoints:function(){return this._getCache("tensionPoints",this._getTensionPoints)},_getTensionPoints:function(){return this.getClosed()?this._getTensionPointsClosed():Konva.Util._expandPoints(this.getPoints(),this.getTension())},_getTensionPointsClosed:function(){var e=this.getPoints(),t=e.length,n=this.getTension(),r=Konva.Util,i=r._getControlPoints(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),o=r._getControlPoints(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=Konva.Util._expandPoints(e,n);return[i[2],i[3]].concat(a).concat([o[0],o[1],e[t-2],e[t-1],o[2],o[3],i[0],i[1],e[0],e[1]])},getWidth:function(){return this.getSelfRect().width},getHeight:function(){return this.getSelfRect().height},getSelfRect:function(){var e;e=0!==this.getTension()?this._getTensionPoints():this.getPoints();for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}}},Konva.Util.extend(Konva.Line,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Line,"closed",!1),Konva.Factory.addGetterSetter(Konva.Line,"bezier",!1),Konva.Factory.addGetterSetter(Konva.Line,"tension",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Line,"points",[],Konva.Validators.getNumberArrayValidator()),Konva.Collection.mapMethods(Konva.Line)}(),function(){Konva.Sprite=function(e){this.___init(e)},Konva.Sprite.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Sprite",this._updated=!0;var t=this;this.anim=new Konva.Animation(function(){var e=t._updated;return t._updated=!1,e}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){var t=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[t],o=this.frameOffsets(),a=i[r+0],s=i[r+1],l=i[r+2],u=i[r+3],c=this.getImage();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,l,u),e.closePath(),e.fillStrokeShape(this)),c)if(o){var f=o[t],d=2*n;e.drawImage(c,a,s,l,u,f[d+0],f[d+1],l,u)}else e.drawImage(c,a,s,l,u,0,0,l,u)},_hitFunc:function(e){var t=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[t],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(e.beginPath(),o){var l=o[t],u=2*n;e.rect(l[u+0],l[u+1],a,s)}else e.rect(0,0,a,s);e.closePath(),e.fillShape(this)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},_setInterval:function(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.getFrameRate())},start:function(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}},stop:function(){this.anim.stop(),clearInterval(this.interval)},isRunning:function(){return this.anim.isRunning()},_updateIndex:function(){var e=this.frameIndex(),t=this.getAnimation();e<this.getAnimations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}},Konva.Util.extend(Konva.Sprite,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Sprite,"animation"),Konva.Factory.addGetterSetter(Konva.Sprite,"animations"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameOffsets"),Konva.Factory.addGetterSetter(Konva.Sprite,"image"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameIndex",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Sprite,"frameRate",17,Konva.Validators.getNumberValidator()),Konva.Factory.backCompat(Konva.Sprite,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Konva.Collection.mapMethods(Konva.Sprite)}(),function(){Konva.Path=function(e){this.___init(e)},Konva.Path.prototype={___init:function(e){this.dataArray=[];var t=this;Konva.Shape.call(this,e),this.className="Path",this.dataArray=Konva.Path.parsePathData(this.getData()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on("dataChange.konva",function(){t.dataArray=Konva.Path.parsePathData(this.getData()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.dataArray;e.beginPath();for(var n=0;n<t.length;n++){var r=t[n].command,i=t[n].points;switch(r){case"L":e.lineTo(i[0],i[1]);break;case"M":e.moveTo(i[0],i[1]);break;case"C":e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":var o=i[0],a=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1;e.translate(o,a),e.rotate(f),e.scale(p,v),e.arc(0,0,h,u,u+c,1-d),e.scale(1/p,1/v),e.rotate(-f),e.translate(-o,-a);break;case"z":e.closePath()}}e.fillStrokeShape(this)},getSelfRect:function(){var e=[];this.dataArray.forEach(function(t){e=e.concat(t.points)});for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],isNaN(t)||(r=Math.min(r,t),i=Math.max(i,t)),isNaN(n)||(o=Math.min(o,n),a=Math.max(a,n));return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}},getLength:function(){return this.pathLength},getPointAtLength:function(e){var t,n=0,r=this.dataArray.length;if(!r)return null;for(;n<r&&e>this.dataArray[n].pathLength;)e-=this.dataArray[n].pathLength,++n;if(n===r)return t=this.dataArray[n-1].points.slice(-2),{x:t[0],y:t[1]};if(e<.01)return t=this.dataArray[n].points.slice(0,2),{x:t[0],y:t[1]};var i=this.dataArray[n],o=i.points;switch(i.command){case"L":return Konva.Path.getPointOnLine(e,i.start.x,i.start.y,o[0],o[1]);case"C":return Konva.Path.getPointOnCubicBezier(e/i.pathLength,i.start.x,i.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case"Q":return Konva.Path.getPointOnQuadraticBezier(e/i.pathLength,i.start.x,i.start.y,o[0],o[1],o[2],o[3]);case"A":var a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],f=o[5],d=o[6];return c+=f*e/i.pathLength,Konva.Path.getPointOnEllipticalArc(a,s,l,u,c,d)}return null}},Konva.Util.extend(Konva.Path,Konva.Shape),Konva.Path.getLineLength=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},Konva.Path.getPointOnLine=function(e,t,n,r,i,o,a){void 0===o&&(o=t),void 0===a&&(a=n);var s=(i-n)/(r-t+1e-8),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var u,c=s*l;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+1e-8)===s)u={x:o+l,y:a+c};else{var f,d,h=this.getLineLength(t,n,r,i);if(h<1e-8)return;var p=(o-t)*(r-t)+(a-n)*(i-n);p/=h*h,f=t+p*(r-t),d=n+p*(i-n);var v=this.getLineLength(o,a,f,d),g=Math.sqrt(e*e-v*v);l=Math.sqrt(g*g/(1+s*s)),r<t&&(l*=-1),c=s*l,u={x:f+l,y:d+c}}return u},Konva.Path.getPointOnCubicBezier=function(e,t,n,r,i,o,a,s,l){function u(e){return e*e*e}function c(e){return 3*e*e*(1-e)}function f(e){return 3*e*(1-e)*(1-e)}function d(e){return(1-e)*(1-e)*(1-e)}return{x:s*u(e)+o*c(e)+r*f(e)+t*d(e),y:l*u(e)+a*c(e)+i*f(e)+n*d(e)}},Konva.Path.getPointOnQuadraticBezier=function(e,t,n,r,i,o,a){function s(e){return e*e}function l(e){return 2*e*(1-e)}function u(e){return(1-e)*(1-e)}return{x:o*s(e)+r*l(e)+t*u(e),y:a*s(e)+i*l(e)+n*u(e)}},Konva.Path.getPointOnEllipticalArc=function(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(l.x*a-l.y*s),y:t+(l.x*s+l.y*a)}},Konva.Path.parsePathData=function(e){if(!e)return[];var t=e,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=t.split("|"),a=[],s=[],l=0,u=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var f=o[r],d=f.charAt(0);for(f=f.slice(1),s.length=0;i=c.exec(f);)s.push(i[0]);for(var h=[],p=0,v=s.length;p<v;p++){var g=parseFloat(s[p]);isNaN(g)?h.push(0):h.push(g)}for(;h.length>0&&!isNaN(h[0]);){var m,y,b,_,x,w,S,C,T,k,P=null,O=[],E=l,N=u;switch(d){case"l":l+=h.shift(),u+=h.shift(),P="L",O.push(l,u);break;case"L":l=h.shift(),u=h.shift(),O.push(l,u);break;case"m":var M=h.shift(),K=h.shift();if(l+=M,u+=K,P="M",a.length>2&&"z"===a[a.length-1].command)for(var F=a.length-2;F>=0;F--)if("M"===a[F].command){l=a[F].points[0]+M,u=a[F].points[1]+K;break}O.push(l,u),d="l";break;case"M":l=h.shift(),u=h.shift(),P="M",O.push(l,u),d="L";break;case"h":l+=h.shift(),P="L",O.push(l,u);break;case"H":l=h.shift(),P="L",O.push(l,u);break;case"v":u+=h.shift(),P="L",O.push(l,u);break;case"V":u=h.shift(),P="L",O.push(l,u);break;case"C":O.push(h.shift(),h.shift(),h.shift(),h.shift()),l=h.shift(),u=h.shift(),O.push(l,u);break;case"c":O.push(l+h.shift(),u+h.shift(),l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",O.push(l,u);break;case"S":y=l,b=u,m=a[a.length-1],"C"===m.command&&(y=l+(l-m.points[2]),b=u+(u-m.points[3])),O.push(y,b,h.shift(),h.shift()),l=h.shift(),u=h.shift(),P="C",O.push(l,u);break;case"s":y=l,b=u,m=a[a.length-1],"C"===m.command&&(y=l+(l-m.points[2]),b=u+(u-m.points[3])),O.push(y,b,l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",O.push(l,u);break;case"Q":O.push(h.shift(),h.shift()),l=h.shift(),u=h.shift(),O.push(l,u);break;case"q":O.push(l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="Q",O.push(l,u);break;case"T":y=l,b=u,m=a[a.length-1],"Q"===m.command&&(y=l+(l-m.points[0]),b=u+(u-m.points[1])),l=h.shift(),u=h.shift(),P="Q",O.push(y,b,l,u);break;case"t":y=l,b=u,m=a[a.length-1],"Q"===m.command&&(y=l+(l-m.points[0]),b=u+(u-m.points[1])),l+=h.shift(),u+=h.shift(),P="Q",O.push(y,b,l,u);break;case"A":_=h.shift(),x=h.shift(),w=h.shift(),S=h.shift(),C=h.shift(),T=l,k=u,l=h.shift(),u=h.shift(),P="A",O=this.convertEndpointToCenterParameterization(T,k,l,u,S,C,_,x,w);break;case"a":_=h.shift(),x=h.shift(),w=h.shift(),S=h.shift(),C=h.shift(),T=l,k=u,l+=h.shift(),u+=h.shift(),P="A",O=this.convertEndpointToCenterParameterization(T,k,l,u,S,C,_,x,w)}a.push({command:P||d,points:O,start:{x:E,y:N},pathLength:this.calcLength(E,N,P||d,O)})}"z"!==d&&"Z"!==d||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},Konva.Path.calcLength=function(e,t,n,r){var i,o,a,s,l=Konva.Path;switch(n){case"L":return l.getLineLength(e,t,r[0],r[1]);case"C":for(i=0,o=l.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=l.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"Q":for(i=0,o=l.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=l.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"A":i=0;var u=r[4],c=r[5],f=r[4]+c,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),o=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),c<0)for(s=u-d;s>f;s-=d)a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+d;s<f;s+=d)a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],f,0),i+=l.getLineLength(o.x,o.y,a.x,a.y)}return 0},Konva.Path.convertEndpointToCenterParameterization=function(e,t,n,r,i,o,a,s,l){var u=l*(Math.PI/180),c=Math.cos(u)*(e-n)/2+Math.sin(u)*(t-r)/2,f=-1*Math.sin(u)*(e-n)/2+Math.cos(u)*(t-r)/2,d=c*c/(a*a)+f*f/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var h=Math.sqrt((a*a*(s*s)-a*a*(f*f)-s*s*(c*c))/(a*a*(f*f)+s*s*(c*c)));i===o&&(h*=-1),isNaN(h)&&(h=0);var p=h*a*f/s,v=h*-s*c/a,g=(e+n)/2+Math.cos(u)*p-Math.sin(u)*v,m=(t+r)/2+Math.sin(u)*p+Math.cos(u)*v,y=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))},_=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},x=_([1,0],[(c-p)/a,(f-v)/s]),w=[(c-p)/a,(f-v)/s],S=[(-1*c-p)/a,(-1*f-v)/s],C=_(w,S);return b(w,S)<=-1&&(C=Math.PI),b(w,S)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),[g,m,a,s,x,C,u,o]},Konva.Factory.addGetterSetter(Konva.Path,"data"),Konva.Collection.mapMethods(Konva.Path)}(),function(){function e(e){e.fillText(this.partialText,0,0)}function t(e){e.strokeText(this.partialText,0,0)}Konva.TextPath=function(e){this.___init(e)},Konva.TextPath.prototype={___init:function(n){var r=this;this.dummyCanvas=Konva.Util.createCanvasElement(),this.dataArray=[],this.getKerning=n&&n.getKerning,Konva.Shape.call(this,n),this._fillFunc=e,this._strokeFunc=t,this._fillFuncHit=e,this._strokeFuncHit=t,this.className="TextPath",this.dataArray=Konva.Path.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){r.dataArray=Konva.Path.parsePathData(this.attrs.data),r._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva",r._setTextData),r._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.getTextBaseline()),e.setAttr("textAlign","left"),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===t&&e.beginPath();for(var o=0;o<i.length;o++){e.save();var a=i[o].p0;e.translate(a.x,a.y),e.rotate(i[o].rotation),this.partialText=i[o].text,e.fillStrokeShape(this),"underline"===t&&(0===o&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}"underline"===t&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()},_hitFunc:function(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.getFontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},setText:function(e){Konva.Text.prototype.setText.call(this,e)},_getTextSize:function(e){var t=this.dummyCanvas,n=t.getContext("2d");n.save(),n.font=this._getContextFont();var r=n.measureText(e);return n.restore(),{width:r.width,height:parseInt(this.attrs.fontSize,10)}},_setTextData:function(){var e=this,t=this._getTextSize(this.attrs.text),n=this.getLetterSpacing(),r=this.align();this.textWidth=t.width,this.textHeight=t.height;var i=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var o=0,a=0;a<e.dataArray.length;a++)e.dataArray[a].pathLength>0&&(o+=e.dataArray[a].pathLength);var s=0;"center"===r&&(s=Math.max(0,o/2-i/2)),"right"===r&&(s=Math.max(0,o-i));for(var l,u,c,f=this.getText().split(""),d=this.getText().split(" ").length-1,h=-1,p=0,v=function(){p=0;for(var t=e.dataArray,n=h+1;n<t.length;n++){if(t[n].pathLength>0)return h=n,t[n];"M"===t[n].command&&(l={x:t[n].points[0],y:t[n].points[1]})}return{}},g=function(t){var a=e._getTextSize(t).width+n;" "===t&&"justify"===r&&(a+=(o-i)/d);var s=0,f=0;for(u=void 0;Math.abs(a-s)/a>.01&&f<25;){f++;for(var h=s;void 0===c;)(c=v())&&h+c.pathLength<a&&(h+=c.pathLength,c=void 0);if(c==={}||void 0===l)return;var g=!1;switch(c.command){case"L":Konva.Path.getLineLength(l.x,l.y,c.points[0],c.points[1])>a?u=Konva.Path.getPointOnLine(a,l.x,l.y,c.points[0],c.points[1],l.x,l.y):c=void 0;break;case"A":var m=c.points[4],y=c.points[5],b=c.points[4]+y;0===p?p=m+1e-8:a>s?p+=Math.PI/180*y/Math.abs(y):p-=Math.PI/360*y/Math.abs(y),(y<0&&p<b||y>=0&&p>b)&&(p=b,g=!0),u=Konva.Path.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],p,c.points[6]);break;case"C":0===p?p=a>c.pathLength?1e-8:a/c.pathLength:a>s?p+=(a-s)/c.pathLength:p-=(s-a)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnCubicBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3],c.points[4],c.points[5]);break;case"Q":0===p?p=a/c.pathLength:a>s?p+=(a-s)/c.pathLength:p-=(s-a)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnQuadraticBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3])}void 0!==u&&(s=Konva.Path.getLineLength(l.x,l.y,u.x,u.y)),g&&(g=!1,c=void 0)}},m=e._getTextSize("C").width+n,y=0;y<s/m&&(g("C"),void 0!==l&&void 0!==u);y++)l=u;for(var b=0;b<f.length&&(g(f[b]),void 0!==l&&void 0!==u);b++){var _=Konva.Path.getLineLength(l.x,l.y,u.x,u.y),x=0;if(this.getKerning)try{x=this.getKerning(f[b-1],f[b])*this.fontSize()}catch(e){x=0}l.x+=x,u.x+=x,this.textWidth+=x;var w=Konva.Path.getPointOnLine(x+_/2,l.x,l.y,u.x,u.y),S=Math.atan2(u.y-l.y,u.x-l.x);this.glyphInfo.push({transposeX:w.x,transposeY:w.y,text:f[b],rotation:S,p0:l,p1:u}),l=u}},getSelfRect:function(){var e=[];this.glyphInfo.forEach(function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)});for(var t,n,r=e[0],i=e[0],o=e[0],a=e[0],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);var l=this.fontSize();return{x:Math.round(r)-l/2,y:Math.round(o)-l/2,width:Math.round(i-r)+l,height:Math.round(a-o)+l}}},Konva.TextPath.prototype._getContextFont=Konva.Text.prototype._getContextFont,Konva.Util.extend(Konva.TextPath,Konva.Shape),Konva.Factory.addGetterSetter(Konva.TextPath,"data"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontSize",12,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.TextPath,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.TextPath,"align","left"),Konva.Factory.addGetterSetter(Konva.TextPath,"letterSpacing",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.TextPath,"textBaseline","middle"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontVariant","normal"),Konva.Factory.addGetter(Konva.TextPath,"text",""),Konva.Factory.addGetterSetter(Konva.TextPath,"textDecoration",null),Konva.Collection.mapMethods(Konva.TextPath)}(),function(){Konva.RegularPolygon=function(e){this.___init(e)},Konva.RegularPolygon.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t,n,r,i=this.attrs.sides,o=this.attrs.radius;for(e.beginPath(),e.moveTo(0,0-o),t=1;t<i;t++)n=o*Math.sin(2*t*Math.PI/i),r=-1*o*Math.cos(2*t*Math.PI/i),e.lineTo(n,r);e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},Konva.Util.extend(Konva.RegularPolygon,Konva.Shape),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"radius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"sides",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.RegularPolygon)}(),function(){Konva.Star=function(e){this.___init(e)},Konva.Star.prototype={_centroid:!0,___init:function(e){Konva.Shape.call(this,e),this.className="Star",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2==0?n:t,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);e.lineTo(a,s)}e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){Konva.Node.prototype.setWidth.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){Konva.Node.prototype.setHeight.call(this,e),this.outerRadius()!==e/2&&this.setOuterRadius(e/2)}},Konva.Util.extend(Konva.Star,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Star,"numPoints",5,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Star,"innerRadius",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Star,"outerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Star)}(),function(){var e=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],t=e.length;Konva.Label=function(e){this.____init(e)},Konva.Label.prototype={____init:function(e){var t=this;Konva.Group.call(this,e),this.className="Label",this.on("add.konva",function(e){t._addListeners(e.child),t._sync()})},getText:function(){return this.find("Text")[0]},getTag:function(){return this.find("Tag")[0]},_addListeners:function(n){var r,i=this,o=function(){i._sync()};for(r=0;r<t;r++)n.on(e[r]+"Change.konva",o)},getWidth:function(){return this.getText().getWidth()},getHeight:function(){return this.getText().getHeight()},_sync:function(){var e,t,n,r,i,o,a,s=this.getText(),l=this.getTag();if(s&&l){switch(e=s.getWidth(),t=s.getHeight(),n=l.getPointerDirection(),r=l.getPointerWidth(),a=l.getPointerHeight(),i=0,o=0,n){case"up":i=e/2,o=-1*a;break;case"right":i=e+r,o=t/2;break;case"down":i=e/2,o=t+a;break;case"left":i=-1*r,o=t/2}l.setAttrs({x:-1*i,y:-1*o,width:e,height:t}),s.setAttrs({x:-1*i,y:-1*o})}}},Konva.Util.extend(Konva.Label,Konva.Group),Konva.Collection.mapMethods(Konva.Label),Konva.Tag=function(e){this.___init(e)},Konva.Tag.prototype={___init:function(e){Konva.Shape.call(this,e),this.className="Tag",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var t=this.getWidth(),n=this.getHeight(),r=this.getPointerDirection(),i=this.getPointerWidth(),o=this.getPointerHeight(),a=Math.min(this.getCornerRadius(),t/2,n/2);e.beginPath(),a?e.moveTo(a,0):e.moveTo(0,0),"up"===r&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*o),e.lineTo((t+i)/2,0)),a?(e.lineTo(t-a,0),e.arc(t-a,a,a,3*Math.PI/2,0,!1)):e.lineTo(t,0),"right"===r&&(e.lineTo(t,(n-o)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+o)/2)),a?(e.lineTo(t,n-a),e.arc(t-a,n-a,a,0,Math.PI/2,!1)):e.lineTo(t,n),"down"===r&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+o),e.lineTo((t-i)/2,n)),a?(e.lineTo(a,n),e.arc(a,n-a,a,Math.PI/2,Math.PI,!1)):e.lineTo(0,n),"left"===r&&(e.lineTo(0,(n+o)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-o)/2)),a&&(e.lineTo(0,a),e.arc(a,a,a,Math.PI,3*Math.PI/2,!1)),e.closePath(),e.fillStrokeShape(this)},getSelfRect:function(){var e=0,t=0,n=this.getPointerWidth(),r=this.getPointerHeight(),i=this.pointerDirection(),o=this.getWidth(),a=this.getHeight();return"up"===i?(t-=r,a+=r):"down"===i?a+=r:"left"===i?(e-=1.5*n,o+=n):"right"===i&&(o+=1.5*n),{x:e,y:t,width:o,height:a}}},Konva.Util.extend(Konva.Tag,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Tag,"pointerDirection","none"),Konva.Factory.addGetterSetter(Konva.Tag,"pointerWidth",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Tag,"pointerHeight",0,Konva.Validators.getNumberValidator()),Konva.Factory.addGetterSetter(Konva.Tag,"cornerRadius",0,Konva.Validators.getNumberValidator()),Konva.Collection.mapMethods(Konva.Tag)}(),function(e){e.Arrow=function(e){this.____init(e)},e.Arrow.prototype={____init:function(t){e.Line.call(this,t),this.className="Arrow"},_sceneFunc:function(t){e.Line.prototype._sceneFunc.apply(this,arguments);var n=2*Math.PI,r=this.points(),i=r,o=0!==this.getTension()&&r.length>4;o&&(i=this.getTensionPoints());var a,s,l=r.length;o?(a=r[l-2]-i[l-2],s=r[l-1]-i[l-1]):(a=r[l-2]-r[l-4],s=r[l-1]-r[l-3]);var u=(Math.atan2(s,a)+n)%n,c=this.pointerLength(),f=this.pointerWidth();t.save(),t.beginPath(),t.translate(r[l-2],r[l-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-c,f/2),t.lineTo(-c,-f/2),t.closePath(),t.restore(),this.pointerAtBeginning()&&(t.save(),t.translate(r[0],r[1]),o?(a=i[0]-r[0],s=i[1]-r[1]):(a=r[2]-r[0],s=r[3]-r[1]),t.rotate((Math.atan2(-s,-a)+n)%n),t.moveTo(0,0),t.lineTo(-c,f/2),t.lineTo(-c,-f/2),t.closePath(),t.restore());var d=this.dashEnabled();d&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),d&&(this.attrs.dashEnabled=!0)}},e.Util.extend(e.Arrow,e.Line),e.Factory.addGetterSetter(e.Arrow,"pointerLength",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arrow,"pointerWidth",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Arrow,"pointerAtBeginning",!1),e.Collection.mapMethods(e.Arrow)}(Konva),function(e){function t(t,n,r){if("rotater"===t)return"crosshair";n+=e.Util._degToRad(a[t]||0),r&&(n*=-1);var i=(e.Util._radToDeg(n)%360+360)%360;return e.Util._inRange(i,337.5,360)||e.Util._inRange(i,0,22.5)?"ns-resize":e.Util._inRange(i,22.5,67.5)?"nesw-resize":e.Util._inRange(i,67.5,112.5)?"ew-resize":e.Util._inRange(i,112.5,157.5)?"nwse-resize":e.Util._inRange(i,157.5,202.5)?"ns-resize":e.Util._inRange(i,202.5,247.5)?"nesw-resize":e.Util._inRange(i,247.5,292.5)?"ew-resize":e.Util._inRange(i,292.5,337.5)?"nwse-resize":(e.Util.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}function n(t){return t instanceof Array||e.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===s.indexOf(t)&&e.Util.warn("Unknown anchor name: "+t+". Available names are: "+s.join(", "))}),t||[]}var r=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange"].join(" "),i=["xChange.resizer","yChange.resizer","widthChange.resizer","heightChange.resizer","scaleXChange.resizer","scaleYChange.resizer","skewXChange.resizer","skewYChange.resizer","rotationChange.resizer","offsetXChange.resizer","offsetYChange.resizer","transformsEnabledChange.resizer"].join(" "),o=["widthChange.resizer","heightChange.resizer","scaleXChange.resizer","scaleYChange.resizer","skewXChange.resizer","skewYChange.resizer","rotationChange.resizer","offsetXChange.resizer","offsetYChange.resizer"].join(" "),a={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};e.Transformer=function(e){this.____init(e)};var s=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];e.Transformer.prototype={_centroid:!1,____init:function(t){e.Group.call(this,t),this.className="Transformer",this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(r,this.update),this.getNode()&&this.update()},attachTo:function(e){this.setNode(e)},setNode:function(e){return this._node&&this.detach(),this._node=e,this._resetTransformCache(),e.on(i,this._resetTransformCache.bind(this)),e.on(o,function(){this._transforming||this.update()}.bind(this)),!!this.findOne(".top-left")&&this.update(),this},getNode:function(){return this._node},detach:function(){this.getNode()&&(this.getNode().off(".resizer"),this._node=void 0),this._resetTransformCache()},_resetTransformCache:function(){this._clearCache("nodeRect"),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_getNodeRect:function(){return this._getCache("nodeRect",this.__getNodeRect)},__getNodeRect:function(){var t=this.getNode();if(!t)return{x:-Number.MAX_SAFE_INTEGER,y:-Number.MAX_SAFE_INTEGER,width:0,height:0,rotation:0};var n=t.getClientRect({skipTransform:!0,skipShadow:!0}),r=e.getAngle(t.rotation()),i=n.x*t.scaleX()-t.offsetX()*t.scaleX(),o=n.y*t.scaleY()-t.offsetY()*t.scaleY();return{x:t.x()+i*Math.cos(r)+o*Math.sin(-r),y:t.y()+o*Math.cos(r)+i*Math.sin(r),width:n.width*t.scaleX(),height:n.height*t.scaleY(),rotation:t.rotation()}},getX:function(){return this._getNodeRect().x},getY:function(){return this._getNodeRect().y},getRotation:function(){return this._getNodeRect().rotation},getWidth:function(){return this._getNodeRect().width},getHeight:function(){return this._getNodeRect().height},_createElements:function(){this._createBack(),s.forEach(function(e){this._createAnchor(e)}.bind(this)),this._createAnchor("rotater")},_createAnchor:function(n){var r=new e.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:n+" _anchor",dragDistance:0,draggable:!0}),i=this;r.on("mousedown touchstart",function(e){i._handleMouseDown(e)}),r.on("dragstart",function(e){e.cancelBubble=!0}),r.on("dragmove",function(e){e.cancelBubble=!0}),r.on("dragend",function(e){e.cancelBubble=!0}),r.on("mouseenter",function(){var i=this.getParent(),o=e.getAngle(i.rotation()),a=i.getNode().getAbsoluteScale(),s=a.y*a.x<0,l=t(n,o,s);r.getStage().content.style.cursor=l,i._cursorChange=!0}),r.on("mouseout",function(){r.getStage()&&this.getParent()&&(r.getStage().content.style.cursor="",this.getParent()._cursorChange=!1)}),this.add(r)},_createBack:function(){var t=new e.Shape({name:"back",width:0,height:0,listening:!1,sceneFunc:function(t){var n=this.getParent(),r=n.getPadding();t.beginPath(),t.rect(-r,-r,this.width()+2*r,this.height()+2*r),t.moveTo(this.width()/2,-r),n.rotateEnabled()&&t.lineTo(this.width()/2,-n.rotateAnchorOffset()*e.Util._sign(this.height())),t.fillStrokeShape(this)}});this.add(t)},_handleMouseDown:function(e){this.movingResizer=e.target.name().split(" ")[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=r/i,this.cos=n/i,window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0,this._fire("transformstart",{evt:e}),this.getNode()._fire("transformstart",{evt:e})},_handleMouseMove:function(t){var n,r,i,o=this.findOne("."+this.movingResizer),a=o.getStage(),s=a.getContent().getBoundingClientRect(),l={x:s.left,y:s.top},u={left:void 0!==t.clientX?t.clientX:t.touches[0].clientX,top:void 0!==t.clientX?t.clientY:t.touches[0].clientY},c={x:u.left-l.x,y:u.top-l.y};o.setAbsolutePosition(c);var f=this.keepRatio()||t.shiftKey;if("top-left"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-right").x()-o.x(),2)+Math.pow(this.findOne(".bottom-right").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".top-left").x(this.findOne(".bottom-right").x()-n),this.findOne(".top-left").y(this.findOne(".bottom-right").y()-r));else if("top-center"===this.movingResizer)this.findOne(".top-left").y(o.y());else if("top-right"===this.movingResizer){f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-left").x()-o.x(),2)+Math.pow(this.findOne(".bottom-left").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".top-right").x(n),this.findOne(".top-right").y(this.findOne(".bottom-left").y()-r));var d=o.position();this.findOne(".top-left").y(d.y),this.findOne(".bottom-right").x(d.x)}else if("middle-left"===this.movingResizer)this.findOne(".top-left").x(o.x());else if("middle-right"===this.movingResizer)this.findOne(".bottom-right").x(o.x());else if("bottom-left"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".top-right").x()-o.x(),2)+Math.pow(this.findOne(".top-right").y()-o.y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".bottom-left").x(this.findOne(".top-right").x()-n),this.findOne(".bottom-left").y(r)),d=o.position(),this.findOne(".top-left").x(d.x),this.findOne(".bottom-right").y(d.y);else if("bottom-center"===this.movingResizer)this.findOne(".bottom-right").y(o.y());else if("bottom-right"===this.movingResizer)f&&(i=Math.sqrt(Math.pow(this.findOne(".bottom-right").x(),2)+Math.pow(this.findOne(".bottom-right").y(),2)),n=i*this.cos,r=i*this.sin,this.findOne(".bottom-right").x(n),this.findOne(".bottom-right").y(r));else if("rotater"===this.movingResizer){var h=this.getPadding(),p=this._getNodeRect();n=o.x()-p.width/2,r=-o.y()+p.height/2;var v=Math.atan2(-r,n)+Math.PI/2;p.height<0&&(v-=Math.PI);for(var g=e.getAngle(this.rotation()),m=e.Util._radToDeg(g)+e.Util._radToDeg(v),y=e.getAngle(this.getNode().rotation()),b=e.Util._degToRad(m),_=this.rotationSnaps(),x=0;x<_.length;x++){var w=e.getAngle(_[x]),S=Math.abs(w-e.Util._degToRad(m))%(2*Math.PI);S<.1&&(m=e.Util._radToDeg(w),b=e.Util._degToRad(m))}var C=h,T=h;this._fitNodeInto({rotation:e.angleDeg?m:e.Util._degToRad(m),x:p.x+(p.width/2+h)*(Math.cos(y)-Math.cos(b))+(p.height/2+h)*(Math.sin(-y)-Math.sin(-b))-(C*Math.cos(g)+T*Math.sin(-g)),y:p.y+(p.height/2+h)*(Math.cos(y)-Math.cos(b))+(p.width/2+h)*(Math.sin(y)-Math.sin(b))-(T*Math.cos(g)+C*Math.sin(g)),width:p.width+2*h,height:p.height+2*h},t)}else console.error(new Error("Wrong position argument of selection resizer: ",this.movingResizer));if("rotater"!==this.movingResizer){var k=this.findOne(".top-left").getAbsolutePosition(this.getParent());if(this.getCenteredScaling()||t.altKey){var P=this.findOne(".top-left"),O=this.findOne(".bottom-right"),E=P.x(),N=P.y(),M=this.getWidth()-O.x(),K=this.getHeight()-O.y();O.move({x:-E,y:-N}),P.move({x:M,y:K}),k=P.getAbsolutePosition(this.getParent())}n=k.x,r=k.y;var F=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),I=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodeInto({x:n+this.offsetX(),y:r+this.offsetY(),width:F,height:I},t)}},_handleMouseUp:function(e){this._removeEvents(e)},_removeEvents:function(e){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0),this._fire("transformend",{evt:e});var t=this.getNode();t&&t.fire("transformend",{evt:e})}},_fitNodeInto:function(t,n){var r=this.getBoundBoxFunc();if(r){var i=this._getNodeRect();t=r.call(this,i,t)}this._settings=!0;var o=this.getNode();void 0!==t.rotation&&this.getNode().rotation(t.rotation);var a=o.getClientRect({skipTransform:!0,skipShadow:!0}),s=this.getPadding(),l=(t.width-2*s)/a.width,u=(t.height-2*s)/a.height,c=e.getAngle(o.getRotation()),f=a.x*l-s-o.offsetX()*l,d=a.y*u-s-o.offsetY()*u;this.getNode().setAttrs({scaleX:l,scaleY:u,x:t.x-(f*Math.cos(c)+d*Math.sin(-c)),y:t.y-(d*Math.cos(c)+f*Math.sin(c))}),this._settings=!1,this._fire("transform",{evt:n}),this.getNode()._fire("transform",{evt:n}),this.update(),this.getLayer().batchDraw()},forceUpdate:function(){this._resetTransformCache(),this.update()},update:function(){var t=this._getNodeRect(),n=this.getNode(),r={x:1,y:1};n&&n.getParent()&&(r=n.getParent().getAbsoluteScale());var i={x:1/r.x,y:1/r.y},o=t.width,a=t.height,s=this.enabledAnchors(),l=this.resizeEnabled(),u=this.getPadding(),c=this.getAnchorSize();this.find("._anchor").setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.getAnchorStroke(),strokeWidth:this.getAnchorStrokeWidth(),fill:this.getAnchorFill(),cornerRadius:this.getAnchorCornerRadius()}),this.findOne(".top-left").setAttrs({x:-u,y:-u,scale:i,visible:l&&s.indexOf("top-left")>=0}),this.findOne(".top-center").setAttrs({x:o/2,y:-u,scale:i,visible:l&&s.indexOf("top-center")>=0}),this.findOne(".top-right").setAttrs({x:o+u,y:-u,scale:i,visible:l&&s.indexOf("top-right")>=0}),this.findOne(".middle-left").setAttrs({x:-u,y:a/2,scale:i,visible:l&&s.indexOf("middle-left")>=0}),this.findOne(".middle-right").setAttrs({x:o+u,y:a/2,scale:i,visible:l&&s.indexOf("middle-right")>=0}),this.findOne(".bottom-left").setAttrs({x:-u,y:a+u,scale:i,visible:l&&s.indexOf("bottom-left")>=0}),this.findOne(".bottom-center").setAttrs({x:o/2,y:a+u,scale:i,visible:l&&s.indexOf("bottom-center")>=0}),this.findOne(".bottom-right").setAttrs({x:o+u,y:a+u,scale:i,visible:l&&s.indexOf("bottom-right")>=0});var f=-this.rotateAnchorOffset()*Math.abs(i.y);this.findOne(".rotater").setAttrs({x:o/2,y:f*e.Util._sign(a),scale:i,visible:this.rotateEnabled()}),this.findOne(".back").setAttrs({width:o*r.x,height:a*r.y,scale:i,visible:this.borderEnabled(),stroke:this.getBorderStroke(),strokeWidth:this.getBorderStrokeWidth(),dash:this.getBorderDash()})},isTransforming:function(){return this._transforming},stopTransform:function(){if(this._transforming){this._removeEvents();var e=this.findOne("."+this.movingResizer);e&&e.stopDrag()}},destroy:function(){this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),e.Group.prototype.destroy.call(this),this.detach(),this._removeEvents()},toObject:function(){return e.Node.prototype.toObject.call(this)}},e.Util.extend(e.Transformer,e.Group),e.Factory.addGetterSetter(e.Transformer,"enabledAnchors",s,n),e.Factory.addGetterSetter(e.Transformer,"resizeEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"anchorSize",10,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"rotateEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"rotationSnaps",[]),e.Factory.addGetterSetter(e.Transformer,"rotateAnchorOffset",50,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderEnabled",!0),e.Factory.addGetterSetter(e.Transformer,"anchorStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(e.Transformer,"anchorStrokeWidth",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"anchorFill","white"),e.Factory.addGetterSetter(e.Transformer,"anchorCornerRadius",0,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderStroke","rgb(0, 161, 255)"),e.Factory.addGetterSetter(e.Transformer,"borderStrokeWidth",1,e.Validators.getNumberValidator()),e.Factory.addGetterSetter(e.Transformer,"borderDash"),e.Factory.addGetterSetter(e.Transformer,"keepRatio",!0),e.Factory.addGetterSetter(e.Transformer,"centeredScaling",!1),e.Factory.addGetterSetter(e.Transformer,"padding",0,e.Validators.getNumberValidator()),e.Factory.addOverloadedGetterSetter(e.Transformer,"node"),e.Factory.addGetterSetter(e.Transformer,"boundBoxFunc"),e.Factory.backCompat(e.Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"}),e.Collection.mapMethods(e.Transformer)}(Konva)}).call(t,n(14))},function(e,t,n){"use strict";function r(e){u=e}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!s&&"id"in t){var r='ReactKonva: You are using "id" attribute for a Konva node. In some very rare cases it may produce bugs. Currently we recommend not to use it and use "name" attribute instead.\nYou are using id = "'+t.id+'".\nFor me info see: https://github.com/konvajs/react-konva/issues/119';console.warn(r),s=!0}if(!l&&"zIndex"in t){console.warn('ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor me info see: https://github.com/konvajs/react-konva/issues/194\n'),l=!0}var i={},f=!1;for(var d in n)if(!a[d]){var h="on"===d.slice(0,2),p=n[d]!==t[d];if(h&&p){var v=d.substr(2).toLowerCase();"content"===v.substr(0,7)&&(v="content"+v.substr(7,1).toUpperCase()+v.substr(8)),e.off(v,n[d])}var g=!t.hasOwnProperty(d);g&&e.setAttr(d,void 0)}var m=u||t._useStrictMode;for(var d in t)if(!a[d]){var h="on"===d.slice(0,2),y=n[d]!==t[d];if(h&&y){var v=d.substr(2).toLowerCase();"content"===v.substr(0,7)&&(v="content"+v.substr(7,1).toUpperCase()+v.substr(8)),t[d]&&e.on(v+c,t[d])}!h&&(t[d]!==n[d]||m&&t[d]!==e.getAttr(d))&&(f=!0,i[d]=t[d])}f&&(e.setAttrs(i),o(e))}function o(e){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}t.__esModule=!0,t.toggleStrictMode=r,t.applyNodeProps=i,t.updatePicture=o;var a={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0},s=!1,l=!1,u=!1,c=t.EVENTS_NAMESPACE=".react-konva-event"},function(e,t,n){"use strict";function r(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}function i(e){var t=e.pos,n=t.x,i=t.y,a=r(e,["pos"]);return s.default.createElement(l.Circle,o({x:n,y:i},a))}Object.defineProperty(t,"__esModule",{value:!0});var o=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};t.default=i;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(28)},function(e,t,n){"use strict";function r(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}function i(e){var t=e.index,n=e.pos,i=n.x,a=n.y,u=r(e,["index","pos"]),c=t<9?" "+(t+1):""+(t+1);return s.default.createElement(l.Text,o({x:i-u.fontSize/2,y:a-u.fontSize/2},u,{text:c}))}Object.defineProperty(t,"__esModule",{value:!0});var o=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};t.default=i;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(28)},function(e,t,n){"use strict";(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(150),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(t,n(14))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(156),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(3),y=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={query:""},r._getEmptyLabel=function(){var e=r.props,t=e.emptyLabel,n=e.isLoading,i=e.promptText,o=e.searchText,a=e.useCache,s=r.state.query;return s.length?n||a&&!r._cache[s]?o:t:i},r._handleInputChange=function(e,t){r.props.onInputChange&&r.props.onInputChange(e,t),r._handleSearchDebounced(e)},r._handleSearch=function(e){var t=r.props,n=t.minLength,i=t.onSearch,o=t.useCache;r.setState({query:e}),!e||n&&e.length<n||o&&r._cache[e]||i(e)},i=t,a(r,i)}return s(n,t),c(n,[{key:"componentWillMount",value:function(){this._cache={},this._handleSearchDebounced=(0,d.default)(this._handleSearch,this.props.delay)}},{key:"componentWillReceiveProps",value:function(e){var t=e.options,n=e.useCache;this.props.isLoading&&n&&(this._cache[this.state.query]=t)}},{key:"componentWillUnmount",value:function(){this._cache={},this._handleSearchDebounced.cancel()}},{key:"render",value:function(){var t=this,n=this.props,r=n.options,o=n.useCache,a=i(n,["options","useCache"]),s=this._cache[this.state.query],l=this._getEmptyLabel(),c=a.allowNew&&l===a.emptyLabel;return"function"==typeof a.allowNew&&(c=a.allowNew),g.default.createElement(e,u({},a,{allowNew:c,emptyLabel:l,onInputChange:this._handleInputChange,options:o&&s?s:r,ref:function(e){return t._instance=e}}))}},{key:"getInstance",value:function(){return this._instance.getInstance()}}]),n}(g.default.Component);return t.displayName="AsyncContainer("+(0,m.getDisplayName)(e)+")",t.propTypes={delay:p.default.number,isLoading:p.default.bool.isRequired,onSearch:p.default.func.isRequired,options:p.default.array,promptText:p.default.node,searchText:p.default.node,useCache:p.default.bool},t.defaultProps={delay:200,minLength:2,options:[],promptText:"Type to search...",searchText:"Searching...",useCache:!0},t};t.default=y},function(e,t,n){"use strict";(function(t){var n="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},r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(t,n(14))},function(e,t,n){"use strict";function r(e,t){return i(e,t)}var i=n(43);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(30),o=n(169),a=n(170),s=n(171),l=n(172),u=n(173);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=l,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";function r(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,o=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,u,c){var f=n&s,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var v=-1,g=!0,m=n&l?new i:void 0;for(c.set(e,t),c.set(t,e);++v<d;){var y=e[v],b=t[v];if(r)var _=f?r(b,y,v,t,e,c):r(y,b,v,e,t,c);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!a(m,t)&&(y===e||u(y,e,n,r,c)))return m.push(t)})){g=!1;break}}else if(y!==b&&!u(y,b,n,r,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var i=n(190),o=n(87),a=n(193),s=1,l=2;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e.exports=r},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(4),o=n(207),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a,u=l?i.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||o;e.exports=f}).call(t,n(90)(e))},function(e,t,n){"use strict";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(208),i=n(209),o=n(210),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}e.exports=r},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"WeakMap");e.exports=o},function(e,t,n){"use strict";function r(e){return e===e&&!i(e)}var i=n(7);e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?"":i(e)}var i=n(229);e.exports=r},function(e,t,n){"use strict";function r(e,t){return null!=e&&o(e,t,i)}var i=n(231),o=n(232);e.exports=r},function(e,t,n){"use strict";function r(e){return e}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){t=new RegExp((0,a.default)((0,l.default)(t)),u);var n=t.exec((0,l.default)(e));if(!n)return null;var r=n.index,i=n[0].length;if(c.test(e)){for(var o=0;o<=r;o++)c.test(e[o])&&r++;for(var s=r;s<=r+i;s++)c.test(e[s])&&i++}return{end:r+i,start:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(247),a=r(o),s=n(53),l=r(s),u="i",c=/[\u0300-\u036F]/},function(e,t,n){"use strict";function r(e){if(!a(e)||i(e)!=s)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var i=n(11),o=n(249),a=n(8),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=c.call(Object);e.exports=r},function(e,t,n){"use strict";function r(e){return"string"==typeof e?e:i.DEFAULT_LABELKEY}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(102)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DEFAULT_LABELKEY="label"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(5),f=r(c),d=n(257),h=r(d),p=n(1),v=r(p),g=n(0),m=r(g),y=n(6),b=n(107),_=r(b),x=n(272),w=r(x),S=n(273),C=r(S),T=n(324),k=r(T),P=n(326),O=r(P),E=n(131),N=r(E),M=n(328),K=r(M),F=n(3),I=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderInput=function(e){var t=e.multiple?k.default:O.default;return m.default.createElement(t,e)},r._renderAux=function(){var e=r.props,t=e.bsSize,n=e.clearButton,i=e.disabled,o=e.isLoading,a=e.onClear,s=e.selected,l=void 0;return o?l=m.default.createElement(w.default,{bsSize:t}):n&&!i&&s.length&&(l=m.default.createElement(_.default,{bsSize:t,onClick:a,onFocus:function(e){e.stopPropagation()},onMouseDown:F.preventInputBlur})),l?m.default.createElement("div",{className:(0,f.default)("rbt-aux",{"rbt-aux-lg":"large"===t||"lg"===t})},l):null},a=n,o(r,a)}return a(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowNew,n=e.onInitialItemChange,r=e.results;t||r.length||n(null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.bodyContainer,r=t.children,i=t.className,o=t.isMenuShown,a=t.menuId,s=t.renderMenu,u=t.results,c=(0,h.default)(this.props,["activeIndex","activeItem","bsSize","disabled","initialItem","inputProps","inputRef","isInvalid","isMenuShown","isValid","labelKey","menuId","multiple","onAdd","onBlur","onChange","onFocus","onKeyDown","onRemove","placeholder","renderToken","selected","selectHintOnEnter","text"]),d=(0,h.default)(this.props,["align","className","dropup","flip","onMenuHide","onMenuShow"]),p=(0,h.default)(this.props,["emptyLabel","labelKey","maxHeight","newSelectionPrefix","renderMenuItemChildren","text"]),v=this._renderAux();return m.default.createElement("div",{className:(0,f.default)("rbt","clearfix","open",{"has-aux":!!v},i),style:{position:"relative"},tabIndex:-1},this._renderInput(l({},c,{ref:function(t){return e._inputContainer=(0,y.findDOMNode)(t)}})),"function"==typeof r?r(this.props):r,v,m.default.createElement(C.default,l({},d,{container:n?document.body:this,referenceElement:this._inputContainer,show:o}),s(u,l({},p,{id:a}))),m.default.createElement("div",{"aria-atomic":!0,"aria-live":"polite",className:"sr-only rbt-sr-status",role:"status"},(0,F.getAccessibilityStatus)(this.props)))}}]),t}(m.default.Component);I.propTypes={renderMenu:v.default.func},I.defaultProps={renderMenu:function(e,t){return m.default.createElement(N.default,l({},t,{options:e}))}},t.default=(0,K.default)(I)},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";var r=n(12),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";function r(e){return a(o(e,void 0,i),e+"")}var i=n(263),o=n(266),a=n(268);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}Object.defineProperty(t,"__esModule",{value:!0});var o=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},a=n(5),s=r(a),l=n(0),u=r(l),c=n(1),f=r(c),d=function(e){var t=e.bsSize,n=e.className,r=e.label,a=e.onClick,l=i(e,["bsSize","className","label","onClick"]);return u.default.createElement("button",o({},l,{"aria-label":r,className:(0,s.default)("close","rbt-close",{"rbt-close-lg":"large"===t||"lg"===t},n),onClick:function(e){e.stopPropagation(),a(e)},type:"button"}),u.default.createElement("span",{"aria-hidden":"true"},"×"),u.default.createElement("span",{className:"sr-only"},r))};d.propTypes={bsSize:f.default.oneOf(["large","lg","small","sm"]),label:f.default.string,onClick:f.default.func.isRequired},d.defaultProps={label:"Clear"},t.default=d},function(e,t,n){"use strict";function r(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t}t.__esModule=!0,t.default=r;var i=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){return(0,s.default)(o.default.findDOMNode(e))};var i=n(6),o=r(i),a=n(276),s=r(a);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(279),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default||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}},function(e,t,n){"use strict";var r=n(282);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";e.exports=!n(19)&&!n(27)(function(){return 7!=Object.defineProperty(n(113)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(18),i=n(10).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){"use strict";var r=n(13),i=n(20),o=n(284)(!1),a=n(60)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){"use strict";var r=n(116);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(58);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(120),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i="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};t.__esModule=!0;var o=n(287),a=r(o),s=n(299),l=r(s),u="function"==typeof l.default&&"symbol"===i(a.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":i(e)};t.default="function"==typeof l.default&&"symbol"===u(a.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){"use strict";var r=n(64),i=n(25),o=n(122),a=n(16),s=n(13),l=n(65),u=n(291),c=n(67),f=n(294),d=n(21)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,g,m,y){u(n,t,v);var b,_,x,w=function(e){if(!h&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C="values"==g,T=!1,k=e.prototype,P=k[d]||k["@@iterator"]||g&&k[g],O=!h&&P||w(g),E=g?C?w("entries"):O:void 0,N="Array"==t?k.entries||P:P;if(N&&(x=f(N.call(new e)))!==Object.prototype&&x.next&&(c(x,S,!0),r||s(x,d)||a(x,d,p)),C&&P&&"values"!==P.name&&(T=!0,O=function(){return P.call(this)}),r&&!y||!h&&!T&&k[d]||a(k,d,O),l[t]=O,l[S]=p,g)if(b={values:C?O:w("values"),keys:m?O:w("keys"),entries:E},y)for(_ in b)_ in k||o(k,_,b[_]);else i(i.P+i.F*(h||T),t,b);return b}},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";var r=n(114),i=n(62).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(40),i=n(37),o=n(20),a=n(57),s=n(13),l=n(112),u=Object.getOwnPropertyDescriptor;t.f=n(19)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(309),o=r(i),a=n(313),s=r(a),l=n(120),u=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(0),p=r(h),v=n(1),g=r(v),m=n(107),y=r(m),b=n(127),_=r(b),x=n(22),w=function(e){function t(){var e,n,r,s;o(this,t);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r._renderRemoveableToken=function(){var e=r.props,t=e.active,n=e.children,o=e.className,a=e.onRemove,s=i(e,["active","children","className","onRemove"]);return p.default.createElement("div",u({},s,{className:(0,d.default)("rbt-token","rbt-token-removeable",{"rbt-token-active":t},o)}),n,p.default.createElement(y.default,{className:"rbt-token-remove-button",label:"Remove",onClick:a,onKeyDown:r._handleRemoveButtonKeydown,tabIndex:-1}))},r._renderToken=function(){var e=r.props,t=e.children,n=e.className,i=e.disabled,o=e.href,a=(0,d.default)("rbt-token",{"rbt-token-disabled":i},n);return o?p.default.createElement("a",{className:a,href:o},t):p.default.createElement("div",{className:a},t)},r._handleRemoveButtonKeydown=function(e){switch(e.keyCode){case x.RETURN:r.props.onRemove()}},s=n,a(r,s)}return s(t,e),c(t,[{key:"render",value:function(){return this.props.onRemove&&!this.props.disabled?this._renderRemoveableToken():this._renderToken()}}]),t}(p.default.Component);w.propTypes={active:g.default.bool,onRemove:g.default.func,tabIndex:g.default.number},w.defaultProps={active:!1,tabIndex:0},t.default=(0,_.default)(w)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(128),p=r(h),v=n(3),g=n(22),m=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={active:!1},r._handleBlur=function(e){r.setState({active:!1})},r._handleKeyDown=function(e){switch(e.keyCode){case g.BACKSPACE:r.state.active&&(e.preventDefault(),r.props.onRemove())}},r.handleClickOutside=function(e){r._handleBlur()},r._handleActive=function(e){e.stopPropagation(),r.setState({active:!0})},i=t,a(r,i)}return s(n,t),c(n,[{key:"render",value:function(){var t=this.props,n=(t.disableOnClickOutside,t.enableOnClickOutside,t.eventTypes,t.outsideClickIgnoreClass,t.preventDefault,t.stopPropagation,i(t,["disableOnClickOutside","enableOnClickOutside","eventTypes","outsideClickIgnoreClass","preventDefault","stopPropagation"]));return d.default.createElement(e,u({},n,this.state,{onBlur:this._handleBlur,onClick:this._handleActive,onFocus:this._handleActive,onKeyDown:this._handleKeyDown}))}}]),n}(d.default.Component);return t.displayName="TokenContainer("+(0,v.getDisplayName)(e)+")",(0,p.default)(t)};t.default=m},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function a(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(o(e,t,n))return!0;e=e.parentNode}return e}function s(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}function l(e,t){var n=null;return-1!==m.indexOf(t)&&c&&(n={passive:!e.props.preventDefault}),n}function u(e,t){var n,o;return o=n=function(n){function o(e){var t;return t=n.call(this,e)||this,t.__outsideClickHandler=function(e){if("function"==typeof t.__clickOutsideHandlerProp)return void t.__clickOutsideHandlerProp(e);var n=t.getInstance();if("function"==typeof n.props.handleClickOutside)return void n.props.handleClickOutside(e);if("function"==typeof n.handleClickOutside)return void n.handleClickOutside(e);throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.")},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!g[t._uid]){void 0===c&&(c=h()),g[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),v[t._uid]=function(e){if(!t.props.disableOnClickOutside&&null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),!t.props.excludeScrollbar||!s(e))){a(e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e)}},e.forEach(function(e){document.addEventListener(e,v[t._uid],l(t,e))})}},t.disableOnClickOutside=function(){delete g[t._uid];var e=v[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach(function(n){return document.removeEventListener(n,e,l(t,n))}),delete v[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=p(),t}r(o,n);var u=o.prototype;return u.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},u.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=(0,d.findDOMNode)(this.getInstance()),this.enableOnClickOutside()}},u.componentDidUpdate=function(){this.componentNode=(0,d.findDOMNode)(this.getInstance())},u.componentWillUnmount=function(){this.disableOnClickOutside()},u.render=function(){var t=this.props,n=(t.excludeScrollbar,i(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,f.createElement)(e,n)},o}(f.Component),n.displayName="OnClickOutside("+(e.displayName||e.name||"Component")+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:y,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o}Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_CLASS_NAME=void 0;var c,f=n(0),d=n(6),h=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}},p=function(e){return void 0===e&&(e=0),function(){return++e}}(),v={},g={},m=["touchstart","touchmove"],y="ignore-react-onclickoutside";t.IGNORE_CLASS_NAME=y,t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":c(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":c(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(r){return e[t+r+n]}).join(" ")}function l(e,t){var n=window.getComputedStyle(e);t.style.borderStyle=s(n,"border","style"),t.style.borderWidth=s(n,"border","width"),t.style.fontSize=n.fontSize,t.style.lineHeight=n.lineHeight,t.style.margin=s(n,"margin"),t.style.padding=s(n,"padding")}function u(e){var t=function(t){function n(){var e,t,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r._handleKeyDown=function(e){var t=r.context,n=t.hintText,i=t.initialItem,o=t.onAdd,a=t.selectHintOnEnter,s=r.props,l=s.onKeyDown,u=s.value;n&&(e.keyCode===y.RETURN&&a||e.keyCode===y.RIGHT&&e.target.selectionStart===u.length||e.keyCode===y.TAB)&&(e.preventDefault(),o(i)),l(e)},a=t,o(r,a)}return a(n,t),d(n,[{key:"componentDidMount",value:function(){l(this._input,this._hint)}},{key:"componentDidUpdate",value:function(){l(this._input,this._hint)}},{key:"render",value:function(){var t=this;return g.default.createElement("div",{className:"rbt-input-hint-container",style:{position:"relative"}},g.default.createElement(e,f({},this.props,{inputRef:function(e){t._input=e,t.props.inputRef(e)},onKeyDown:this._handleKeyDown})),g.default.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",readOnly:!0,ref:function(e){return t._hint=e},style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.35)",left:0,pointerEvents:"none",position:"absolute",top:0},tabIndex:-1,value:this.context.hintText}))}}]),n}(g.default.Component);return t.displayName="HintContainer("+(0,m.getDisplayName)(e)+")",t.contextTypes={hintText:p.default.string.isRequired,initialItem:p.default.oneOfType([p.default.object.isRequired,p.default.string.isRequired]),onAdd:p.default.func.isRequired,selectHintOnEnter:p.default.bool.isRequired},t}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var f=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},d=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),p=r(h),v=n(0),g=r(v),m=n(3),y=n(22);t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={isFocused:!1},r._handleBlur=function(e){e.persist(),r.setState({isFocused:!1},function(){return r.props.onBlur(e)})},r._handleFocus=function(e){e.persist(),r.setState({isFocused:!0},function(){return r.props.onFocus(e)})},i=t,a(r,i)}return s(n,t),f(n,[{key:"getChildContext",value:function(){var e=this.props,t=e.initialItem,n=e.onAdd,r=e.selectHintOnEnter;return{hintText:(0,y.getHintText)(this.props),initialItem:t,onAdd:n,selectHintOnEnter:r}}},{key:"render",value:function(){var t,n=this.props,r=n.activeIndex,o=n.bsSize,a=n.disabled,s=n.inputRef,l=n.isInvalid,u=n.isMenuShown,f=n.isValid,d=n.labelKey,p=n.menuId,v=n.multiple,g=n.onChange,b=n.onKeyDown,_=n.onRemove,x=n.placeholder,w=n.renderToken,S=n.selected,C=c({},this.props.inputProps,{"aria-activedescendant":r>=0?(0,y.getMenuItemId)(r):"","aria-autocomplete":v?"list":"both","aria-expanded":u,"aria-haspopup":"listbox","aria-owns":p,autoComplete:this.props.inputProps.autoComplete||"nope",disabled:a,inputRef:s,onBlur:this._handleBlur,onChange:g,onClick:this._handleFocus,onFocus:this._handleFocus,onKeyDown:b,placeholder:S.length?null:x,role:"combobox",value:(0,y.getInputText)(this.props)}),T=C.className||"";return v&&(C=c({},C,{inputClassName:T,labelKey:d,onRemove:_,renderToken:w,role:"",selected:S})),m.default.createElement(e,c({},C,{className:(0,h.default)("rbt-input",(t={},i(t,T,!v),i(t,"focus",this.state.isFocused),i(t,"input-lg form-control-lg","large"===o||"lg"===o),i(t,"input-sm form-control-sm","small"===o||"sm"===o),i(t,"is-invalid",l),i(t,"is-valid",f),t))}))}}]),n}(m.default.Component);return t.displayName="InputContainer("+(0,y.getDisplayName)(e)+")",t.childContextTypes={hintText:v.default.string.isRequired,initialItem:v.default.oneOfType([v.default.object.isRequired,v.default.string.isRequired]),onAdd:v.default.func.isRequired,selectHintOnEnter:v.default.bool.isRequired},t}var u="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};Object.defineProperty(t,"__esModule",{value:!0});var c=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},f=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(5),h=r(d),p=n(1),v=r(p),g=n(0),m=r(g),y=n(3);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(1),p=r(h),v=n(132),g=r(v),m=n(133),y=r(m),b=n(70),_=r(b),x=n(3),w=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderMenuItem=function(e,t){var n=r.props,i=n.labelKey,o=n.newSelectionPrefix,a=n.renderMenuItemChildren,s=n.text,l=(0,x.getOptionLabel)(e,i),c={disabled:e.disabled,key:t,label:l,option:e,position:t};return e.customOption?d.default.createElement(_.default,u({},c,{className:"rbt-menu-custom-option",label:o+l}),o,d.default.createElement(g.default,{search:s},l)):e.paginationOption?[d.default.createElement(y.default.Divider,{key:"pagination-item-divider"}),d.default.createElement(_.default,u({},c,{className:"rbt-menu-pagination-option",key:"pagination-item"}),l)]:d.default.createElement(_.default,c,a(e,r.props,t))},i=n,a(r,i)}return s(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=(e.labelKey,e.newSelectionPrefix,e.options),n=(e.renderMenuItemChildren,e.text,i(e,["labelKey","newSelectionPrefix","options","renderMenuItemChildren","text"]));return d.default.createElement(y.default,n,t.map(this._renderMenuItem))}}]),t}(d.default.Component);w.propTypes={newSelectionPrefix:p.default.string,renderMenuItemChildren:p.default.func},w.defaultProps={newSelectionPrefix:"New selection: ",renderMenuItemChildren:function(e,t,n){return d.default.createElement(g.default,{search:t.text},(0,x.getOptionLabel)(e,t.labelKey))}},t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),c=r(u),f=n(0),d=r(f),h=n(3),p=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._count=0,a=n,o(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.search?this._renderHighlightedChildren():this.props.children;return d.default.createElement("span",null,e)}},{key:"_renderHighlightedChildren",value:function(){for(var e=[],t=this.props.children;t;){var n=(0,h.getMatchBounds)(t,this.props.search);if(!n)return this._count++,e.push(d.default.createElement("span",{key:this._count},t)),e;var r=t.slice(0,n.start);r&&(this._count++,e.push(d.default.createElement("span",{key:this._count},r)));var i=t.slice(n.start,n.end);i&&(this._count++,e.push(d.default.createElement("mark",{className:"rbt-highlight-text",key:this._count},i))),t=t.slice(n.end)}return e}}]),t}(d.default.PureComponent);p.propTypes={children:c.default.string.isRequired,search:c.default.string.isRequired},t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(5),f=r(c),d=n(1),h=r(d),p=n(327),v=r(p),g=n(0),m=r(g),y=n(70),b=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.emptyLabel,i=e.id,o=e.innerRef,a=e.maxHeight,s=e.style,u=0===g.Children.count(t)?m.default.createElement(y.BaseMenuItem,{disabled:!0},r):t;return m.default.createElement("ul",{className:(0,f.default)("rbt-menu","dropdown-menu","show",n),id:i,ref:o,role:"listbox",style:l({},s,{display:"block",maxHeight:a,overflow:"auto"})},u)}}]),t}(m.default.Component);b.propTypes={id:(0,v.default)(h.default.oneOfType([h.default.number,h.default.string])),maxHeight:h.default.string},b.defaultProps={maxHeight:"300px"},b.Divider=function(e){return m.default.createElement("li",{className:"divider dropdown-divider",role:"separator"})},b.Header=function(e){return m.default.createElement("li",l({},e,{className:"dropdown-header"}))},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(0),d=r(f),h=n(1),p=r(h),v=n(6),g=n(3),m=function(e){var t=function(t){function n(){var e,t,r,i;o(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=a(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r._handleClick=function(e){var t=r.props,n=t.option,i=t.onClick;r.context.onMenuItemClick(n,e),i&&i(e)},r._updateInitialItem=function(e){var t=e.option;0===e.position&&r.context.onInitialItemChange(t)},i=t,a(r,i)}return s(n,t),c(n,[{key:"componentWillMount",value:function(){this._updateInitialItem(this.props)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.context.activeIndex===this.props.position,r=e.option,i=e.position,o=t.activeIndex,a=t.onActiveItemChange;null!=i&&(o===i&&((0,g.scrollIntoViewIfNeeded)((0,v.findDOMNode)(this)),!n&&a(r)),this._updateInitialItem(e))}},{key:"render",value:function(){var t=this.context,n=t.activeIndex,r=t.isOnlyResult,o=this.props,a=o.label,s=(o.option,o.position),l=i(o,["label","option","position"]),c=r||n===s;return d.default.createElement(e,u({},l,{active:c,"aria-label":a,"aria-selected":c,id:(0,g.getMenuItemId)(s),onClick:this._handleClick,onMouseDown:g.preventInputBlur,role:"option"}))}}]),n}(d.default.Component);return t.displayName="MenuItemContainer("+(0,g.getDisplayName)(e)+")",t.propTypes={option:p.default.oneOfType([p.default.object,p.default.string]).isRequired,position:p.default.number},t.contextTypes={activeIndex:p.default.number.isRequired,isOnlyResult:p.default.bool.isRequired,onActiveItemChange:p.default.func.isRequired,onInitialItemChange:p.default.func.isRequired,onMenuItemClick:p.default.func.isRequired},t};t.default=m},function(e,t,n){"use strict";var r=n(7),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){"use strict";var r=n(331),i=n(71),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=e.name+"",n=i[t],r=a.call(i,t)?n.length:0;r--;){var o=n[r],s=o.func;if(null==s||s==e)return o.name}return t}var i=n(332),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default;return(0,s.default)(e,t)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default;return(0,u.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.complaintImageFactory=i,t.multipleComplaintImageFactory=o;var a=n(139),s=r(a),l=n(152),u=r(l),c=n(153),f=r(c),d=n(348),h=r(d),p=n(349),v=r(p);t.default={complaintImageFactory:i,multipleComplaintImageFactory:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=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},l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t){var n=function(n){function f(e){i(this,f);var t=o(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));r.call(t);var n=t.props.value;n=void 0===n?{}:n;var a=n.url,s=void 0===a?e.images[0].url:a,l=n.complaints,u=void 0===l?[]:l;return t.state={url:s,complaints:u},t.changeImage(s,!1),t}return a(f,n),l(f,[{key:"componentDidMount",value:function(){var e=d.default.findDOMNode(this.refs["image-frame"]).getBoundingClientRect(),t=e.width,n=this.props.imagePadding,r=this.refs.stage.getStage();r.width(t),r.height(t);var i=this.refs.image;i.width(t-n),i.height(t-n)}},{key:"render",value:function(){var n=this,r=this.props,i=r.images,o=r.complaint,a=o.circle,l=o.text,f=r.imageClassName,d=r.complaintClassName,h=r.markerColors,p=this.state,g=p.url,y=p.image,_=p.complaints,x=null,w=null;return this.props.images.forEach(function(e){e.url===n.state.url&&(x=e.uiDisplay,w=e.uiOptions)}),c.default.createElement(u.Fragment,null,c.default.createElement("div",{id:"image",className:f,ref:"image-frame"},c.default.createElement(t,{images:i,selected:g,onSelect:this.changeImage}),c.default.createElement("div",null,c.default.createElement("a",{className:"btn",style:{position:"absolute",left:"1px",padding:"2px",zIndex:99,fontSize:"10px",color:"red"},onClick:function(){n.setState({complaints:[]},n.notify)}},c.default.createElement("span",{style:{fontSize:"10px"},className:"glyphicon glyphicon-refresh"})," Clear All")),c.default.createElement(v.Stage,{onClick:this.handleClick,onTap:this.handleTap,ref:"stage"},c.default.createElement(v.Layer,{visible:!0,ref:"layer"},c.default.createElement(v.Image,{ref:"image",image:y}),_.map(function(e,t){var n=h?h[t%h.length]:a.stroke,r=Object.assign({},e,a,{stroke:n});return c.default.createElement(m.default,s({key:t},r))}),_.map(function(e,t){var n=h?h[t%h.length]:a.fill,r=Object.assign({},e,l,{fill:n});return c.default.createElement(b.default,s({key:t,index:t},r))})))),c.default.createElement("div",{className:d},c.default.createElement(e,{complaints:_,markerColors:h,onChange:this.handleTextChange,onDelete:this.handleDelete,uiDisplay:x,uiOptions:w})))}}]),f}(u.Component),r=function(){var e=this;this.changeImage=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new window.Image;r.src=t,r.onload=function(){n?e.setState({image:r,url:t,complaints:[]},e.notify):e.setState({image:r,url:t})}},this.handleClick=function(t){var n=t.currentTarget.pointerPos;"Image"===t.target.className&&e.setState(function(e){var t=e.complaints.concat({pos:n});return Object.assign({},e,{complaints:t})},e.notify)},this.handleTap=function(t){var n=t.currentTarget.pointerPos;"Image"===t.target.className&&e.setState(function(e){var t=e.complaints.concat({pos:n});return Object.assign({},e,{complaints:t})},e.notify)},this.handleTextChange=function(t,n){e.setState(function(e){var r=e.url,i=e.complaints,o=Object.assign({},i[t],{text:n});return i=i.slice(),i.splice(t,1,o),{url:r,complaints:i}},e.notify)},this.handleDelete=function(t){e.setState(function(n){var r=n.url,i=n.complaints;return i=i.slice(),i.splice(t,1),e.props.onChange({url:r,complaints:i}),{url:r,complaints:i}},e.notify)},this.notify=function(){(0,_.setTimeout)(function(){if(e.props.onChange){var t=e.refs.stage.getStage(),n={url:e.state.url,complaints:e.state.complaints,dataURI:t.toDataURL()};e.props.onChange(n)}},0)}};return n.defaultProps={complaint:{circle:{radius:10,stroke:"#38A8E8",strokeWidth:2},text:{fontSize:12,fontFamily:"Roboto",fill:"black"}},imagePadding:30,imageClassName:"col-md-5 col-sm-12",complaintClassName:"col-md-7 col-sm-12"},n.propTypes={value:p.default.shape({url:p.default.string.isRequired,complaint:p.default.arrayOf(p.default.shape({pos:p.default.shape({x:p.default.number.isRequired,y:p.default.number.isRequired}),text:p.default.string.isRequired}))}),images:p.default.arrayOf(p.default.shape({name:p.default.string.isRequired,url:p.default.string.isRequired})).isRequired,imagePadding:p.default.number,imageClassName:p.default.string,complaintClassName:p.default.string,complaint:p.default.shape({radius:p.default.number,stroke:p.default.string,strokeWidth:p.default.number}),markerColors:p.default.arrayOf(p.default.string),onChange:p.default.func},n};var u=n(0),c=r(u),f=n(6),d=r(f),h=n(1),p=r(h),v=n(28),g=n(78),m=r(g),y=n(79),b=r(y),_=n(80)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){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 l=[n,r,i,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function i(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);r(!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)}function o(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}function a(e,t,n,r,i,a,s,l,u){Ar=!1,Dr=null,o.apply(Ur,arguments)}function s(e,t,n,r,o,s,l,u,c){if(a.apply(this,arguments),Ar){if(Ar){var f=Dr;Ar=!1,Dr=null}else i("198"),f=void 0;jr||(jr=!0,Lr=f)}}function l(){if(zr)for(var e in Vr){var t=Vr[e],n=zr.indexOf(e);if(-1<n||i("96",e),!Gr[n]){t.extractEvents||i("97",e),Gr[n]=t,n=t.eventTypes;for(var r in n){var o=void 0,a=n[r],s=t,l=r;Wr.hasOwnProperty(l)&&i("99",l),Wr[l]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&u(c[o],s,l);o=!0}else a.registrationName?(u(a.registrationName,s,l),o=!0):o=!1;o||i("98",r,e)}}}}function u(e,t,n){Br[e]&&i("100",e),Br[e]=t,Hr[e]=t.eventTypes[n].dependencies}function c(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Xr(n),s(r,t,void 0,e),e.currentTarget=null}function f(e,t){return null==t&&i("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 d(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function h(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)c(e,t[r],n[r]);else t&&c(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function p(e,t){var n=e.stateNode;if(!n)return null;var r=qr(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)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&i("231",t,void 0===n?"undefined":Kr(n)),n)}function v(e){if(null!==e&&(Qr=f(Qr,e)),e=Qr,Qr=null,e&&(d(e,h),Qr&&i("95"),jr))throw e=Lr,jr=!1,Lr=null,e}function g(e){if(e[Zr])return e[Zr];for(;!e[Zr];){if(!e.parentNode)return null;e=e.parentNode}return e=e[Zr],5===e.tag||6===e.tag?e:null}function m(e){return e=e[Zr],!e||5!==e.tag&&6!==e.tag?null:e}function y(e){if(5===e.tag||6===e.tag)return e.stateNode;i("33")}function b(e){return e[ei]||null}function _(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function x(e,t,n){(t=p(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function w(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=_(t);for(t=n.length;0<t--;)x(n[t],"captured",e);for(t=0;t<n.length;t++)x(n[t],"bubbled",e)}}function S(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=p(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function C(e){e&&e.dispatchConfig.registrationName&&S(e._targetInst,null,e)}function T(e){d(e,w)}function k(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function P(e){if(ri[e])return ri[e];if(!ni[e])return e;var t,n=ni[e];for(t in n)if(n.hasOwnProperty(t)&&t in ii)return ri[e]=n[t];return e}function O(){if(di)return di;var e,t,n=fi,r=n.length,i="value"in ci?ci.value:ci.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return di=i.slice(e,1<t?1-t:void 0)}function E(){return!0}function N(){return!1}function M(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?E:N,this.isPropagationStopped=N,this}function K(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function F(e){e instanceof this||i("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function I(e){e.eventPool=[],e.getPooled=K,e.release=F}function R(e,t){switch(e){case"keyup":return-1!==vi.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function A(e){return e=e.detail,"object"===(void 0===e?"undefined":Kr(e))&&"data"in e?e.data:null}function D(e,t){switch(e){case"compositionend":return A(t);case"keypress":return 32!==t.which?null:(wi=!0,_i);case"textInput":return e=t.data,e===_i&&wi?null:e;default:return null}}function j(e,t){if(Si)return"compositionend"===e||!gi&&R(e,t)?(e=O(),di=fi=ci=null,Si=!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 bi&&"ko"!==t.locale?null:t.data;default:return null}}function L(e){if(e=Yr(e)){"function"!=typeof Ti&&i("280");var t=qr(e.stateNode);Ti(e.stateNode,e.type,t)}}function U(e){ki?Pi?Pi.push(e):Pi=[e]:ki=e}function z(){if(ki){var e=ki,t=Pi;if(Pi=ki=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function V(e,t){return e(t)}function G(e,t,n){return e(t,n)}function W(){}function B(e,t){if(Oi)return e(t);Oi=!0;try{return V(e,t)}finally{Oi=!1,(null!==ki||null!==Pi)&&(W(),z())}}function H(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ei[e.type]:"textarea"===t}function q(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Y(e){if(!ti)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"==typeof t[e]),t}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){var t=X(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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]}}}}function $(e){e._valueTracker||(e._valueTracker=Q(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){return null===e||"object"!==(void 0===e?"undefined":Kr(e))?null:(e=Bi&&e[Bi]||e["@@iterator"],"function"==typeof e?e:null)}function ee(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 Ui:return"ConcurrentMode";case Ri:return"Fragment";case Ii:return"Portal";case Di:return"Profiler";case Ai:return"StrictMode";case Vi:return"Suspense"}if("object"===(void 0===e?"undefined":Kr(e)))switch(e.$$typeof){case Li:return"Context.Consumer";case ji:return"Context.Provider";case zi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Gi:return ee(e.type);case Wi:if(e=1===e._status?e._result:null)return ee(e)}return null}function te(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,i=ee(e.type),o=null;n&&(o=ee(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Mi,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}function ne(e){return!!qi.call(Xi,e)||!qi.call(Yi,e)&&(Hi.test(e)?Xi[e]=!0:(Yi[e]=!0,!1))}function re(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(void 0===t?"undefined":Kr(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}}function ie(e,t,n,r){if(null===t||void 0===t||re(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}function oe(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}function ae(e){return e[1].toUpperCase()}function se(e,t,n,r){var i=Qi.hasOwnProperty(t)?Qi[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(ie(t,n,i,r)&&(n=null),r||null===i?ne(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(i=i.type,n=3===i||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function le(e){switch(void 0===e?"undefined":Kr(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ue(e,t){var n=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=le(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 fe(e,t){null!=(t=t.checked)&&se(e,"checked",t,!1)}function de(e,t){fe(e,t);var n=le(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&pe(e,t.type,le(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function he(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,""!==n&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ve(e,t,n){return e=M.getPooled(Ji.change,e,t,n),e.type="change",U(n),T(e),e}function ge(e){v(e)}function me(e){if(J(y(e)))return e}function ye(e,t){if("change"===e)return t}function be(){Zi&&(Zi.detachEvent("onpropertychange",_e),eo=Zi=null)}function _e(e){"value"===e.propertyName&&me(eo)&&(e=ve(eo,e,q(e)),B(ge,e))}function xe(e,t,n){"focus"===e?(be(),Zi=t,eo=n,Zi.attachEvent("onpropertychange",_e)):"blur"===e&&be()}function we(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return me(eo)}function Se(e,t){if("click"===e)return me(t)}function Ce(e,t){if("input"===e||"change"===e)return me(t)}function Te(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=io[e])&&!!t[e]}function ke(){return Te}function Pe(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function Oe(e,t){if(Pe(e,t))return!0;if("object"!==(void 0===e?"undefined":Kr(e))||null===e||"object"!==(void 0===t?"undefined":Kr(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(!po.call(t,n[r])||!Pe(e[n[r]],t[n[r]]))return!1;return!0}function Ee(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(t=t.return,0!=(2&t.effectTag))return 1}return 3===t.tag?2:3}function Ne(e){2!==Ee(e)&&i("188")}function Me(e){var t=e.alternate;if(!t)return t=Ee(e),3===t&&i("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===n)return Ne(o),e;if(s===r)return Ne(o),t;s=s.sibling}i("188")}if(n.return!==r.return)n=o,r=a;else{s=!1;for(var l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}s||i("189")}}n.alternate!==r&&i("190")}return 3!==n.tag&&i("188"),n.stateNode.current===n?e:t}function Ke(e){if(!(e=Me(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Fe(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}function Ie(e,t){var n=e[0];e=e[1];var r="on"+(e[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},ko[e]=t,Po[n]=t}function Re(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=g(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=q(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Gr.length;s++){var l=Gr[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=f(a,l))}v(a)}}function Ae(e,t){if(!t)return null;var n=(Eo(e)?je:Le).bind(null,e);t.addEventListener(e,n,!1)}function De(e,t){if(!t)return null;var n=(Eo(e)?je:Le).bind(null,e);t.addEventListener(e,n,!0)}function je(e,t){G(Le,e,t)}function Le(e,t){if(Mo){var n=q(t);if(n=g(n),null===n||"number"!=typeof n.tag||2===Ee(n)||(n=null),No.length){var r=No.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{B(Re,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>No.length&&No.push(e)}}}function Ue(e){return Object.prototype.hasOwnProperty.call(e,Io)||(e[Io]=Fo++,Ko[e[Io]]={}),Ko[e[Io]]}function ze(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 Ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ge(e,t){var n=Ve(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ve(n)}}function We(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?We(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Be(){for(var e=window,t=ze();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=ze(e.document)}return t}function He(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)}function qe(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Uo||null==Do||Do!==ze(n)?null:(n=Do,"selectionStart"in n&&He(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Lo&&Oe(Lo,n)?null:(Lo=n,e=M.getPooled(Ao.select,jo,e,t),e.type="select",e.target=Do,T(e),e))}function Ye(e){var t="";return Fr.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Xe(e,t){return e=Ir({children:void 0},t),(t=Ye(t.children))&&(e.children=t),e}function Qe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+le(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function $e(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),Ir({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Je(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&i("92"),Array.isArray(t)&&(1>=t.length||i("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:le(n)}}function Ze(e,t){var n=le(t.value),r=le(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function tt(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 nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function it(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function ot(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=it(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function at(e,t){t&&(qo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&i("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&i("60"),"object"===Kr(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML||i("61")),null!=t.style&&"object"!==Kr(t.style)&&i("62",""))}function st(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 lt(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ue(e);t=Hr[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":De("scroll",e);break;case"focus":case"blur":De("focus",e),De("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Y(i)&&De(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===ui.indexOf(i)&&Ae(i,e)}n[i]=!0}}}function ut(){}function ct(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ft(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===Kr(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function dt(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function ht(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function pt(e){0>Zo||(e.current=Jo[Zo],Jo[Zo]=null,Zo--)}function vt(e,t){Zo++,Jo[Zo]=e.current,e.current=t}function gt(e,t){var n=e.type.contextTypes;if(!n)return ea;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yt(e){pt(na,e),pt(ta,e)}function bt(e){pt(na,e),pt(ta,e)}function _t(e,t,n){ta.current!==ea&&i("168"),vt(ta,t,e),vt(na,n,e)}function xt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var o in r)o in e||i("108",ee(t)||"Unknown",o);return Ir({},n,r)}function wt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||ea,ra=ta.current,vt(ta,t,e),vt(na,na.current,e),!0}function St(e,t,n){var r=e.stateNode;r||i("169"),n?(t=xt(e,t,ra),r.__reactInternalMemoizedMergedChildContext=t,pt(na,e),pt(ta,e),vt(ta,t,e)):pt(na,e),vt(na,n,e)}function Ct(e){return function(t){try{return e(t)}catch(e){}}}function Tt(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);ia=Ct(function(e){return t.onCommitFiberRoot(n,e)}),oa=Ct(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function kt(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 Pt(e,t,n,r){return new kt(e,t,n,r)}function Ot(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Et(e){if("function"==typeof e)return Ot(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===zi)return 11;if(e===Gi)return 14}return 2}function Nt(e,t){var n=e.alternate;return null===n?(n=Pt(e.tag,t,e.key,e.mode),n.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 Mt(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Ot(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ri:return Kt(n.children,o,a,t);case Ui:return Ft(n,3|o,a,t);case Ai:return Ft(n,2|o,a,t);case Di:return e=Pt(12,n,t,4|o),e.elementType=Di,e.type=Di,e.expirationTime=a,e;case Vi:return e=Pt(13,n,t,o),e.elementType=Vi,e.type=Vi,e.expirationTime=a,e;default:if("object"===(void 0===e?"undefined":Kr(e))&&null!==e)switch(e.$$typeof){case ji:s=10;break e;case Li:s=9;break e;case zi:s=11;break e;case Gi:s=14;break e;case Wi:s=16,r=null;break e}i("130",null==e?e:void 0===e?"undefined":Kr(e),"")}return t=Pt(s,n,t,o),t.elementType=e,t.type=r,t.expirationTime=a,t}function Kt(e,t,n,r){return e=Pt(7,e,r,t),e.expirationTime=n,e}function Ft(e,t,n,r){return e=Pt(8,e,r,t),t=0==(1&t)?Ai:Ui,e.elementType=t,e.type=t,e.expirationTime=n,e}function It(e,t,n){return e=Pt(6,e,null,t),e.expirationTime=n,e}function Rt(e,t,n){return t=Pt(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function At(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),Lt(t,e)}function Dt(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),Lt(t,e)}function jt(e,t){var n=e.earliestPendingTime;return e=e.earliestSuspendedTime,n>t&&(t=n),e>t&&(t=e),t}function Lt(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;i=0!==i?i:o,0===i&&(0===e||r<e)&&(i=r),e=i,0!==e&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function Ut(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function zt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Vt(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Gt(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Wt(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=Ut(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=Ut(e.memoizedState),i=n.updateQueue=Ut(n.memoizedState)):r=e.updateQueue=zt(i):null===i&&(i=n.updateQueue=zt(r));null===i||r===i?Gt(r,t):null===r.lastUpdate||null===i.lastUpdate?(Gt(r,t),Gt(i,t)):(Gt(r,t),i.lastUpdate=t)}function Bt(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=Ut(e.memoizedState):Ht(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Ht(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=zt(t)),t}function qt(e,t,n,r,i,o){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(i="function"==typeof e?e.call(o,r,i):e)||void 0===i)break;return Ir({},r,i);case 2:aa=!0}return r}function Yt(e,t,n,r,i){aa=!1,t=Ht(e,t);for(var o=t.baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=qt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<i?(null===c&&(c=l,null===a&&(o=u)),s<f&&(s=f)):(u=qt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Xt(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Qt(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Qt(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Qt(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&i("191",n),n.call(r)}e=e.nextEffect}}function $t(e,t){return{value:e,source:t,stack:te(t)}}function Jt(e,t){var n=e.type._context;vt(sa,n._currentValue,e),n._currentValue=t}function Zt(e){var t=sa.current;pt(sa,e),e.type._context._currentValue=t}function en(e){la=e,ca=ua=null,e.firstContextDependency=null}function tn(e,t){return ca!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(ca=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ua?(null===la&&i("293"),la.firstContextDependency=ua=t):ua=ua.next=t),e._currentValue}function nn(e){return e===fa&&i("174"),e}function rn(e,t){vt(pa,t,e),vt(ha,e,e),vt(da,fa,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nt(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=nt(t,n)}pt(da,e),vt(da,t,e)}function on(e){pt(da,e),pt(ha,e),pt(pa,e)}function an(e){nn(pa.current);var t=nn(da.current),n=nt(t,e.type);t!==n&&(vt(ha,e,e),vt(da,n,e))}function sn(e){ha.current===e&&(pt(da,e),pt(ha,e))}function ln(e,t){if(e&&e.defaultProps){t=Ir({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function un(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,t=e._ctor,t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}function cn(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:Ir({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}function fn(e,t,n,r,i,o,a){return e=e.stateNode,"function"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Oe(n,r)||!Oe(i,o))}function dn(e,t,n){var r=!1,i=ea,o=t.contextType;return"object"===(void 0===o?"undefined":Kr(o))&&null!==o?o=va.currentDispatcher.readContext(o):(i=mt(t)?ra:ta.current,r=t.contextTypes,o=(r=null!==r&&void 0!==r)?gt(e,i):ea),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function hn(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&&ma.enqueueReplaceState(t,t.state,null)}function pn(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ga;var o=t.contextType;"object"===(void 0===o?"undefined":Kr(o))&&null!==o?i.context=va.currentDispatcher.readContext(o):(o=mt(t)?ra:ta.current,i.context=gt(e,o)),o=e.updateQueue,null!==o&&(Yt(e,o,n,i,r),i.state=e.memoizedState),o=t.getDerivedStateFromProps,"function"==typeof o&&(cn(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(Yt(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}function vn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==(void 0===e?"undefined":Kr(e))){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&i("289"),r=n.stateNode),r||i("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ga&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!=typeof e&&i("284"),n._owner||i("290",e)}return e}function gn(e,t){"textarea"!==e.type&&i("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function mn(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=Nt(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=It(n,e.mode,r),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?(r=o(t,n.props,r),r.ref=vn(e,t,n),r.return=e,r):(r=Mt(n.type,n.key,n.props,null,e.mode,r),r.ref=vn(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=Rt(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[],r),t.return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?(t=Kt(n,e.mode,r,i),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return t=It(""+t,e.mode,n),t.return=e,t;if("object"===(void 0===t?"undefined":Kr(t))&&null!==t){switch(t.$$typeof){case Fi:return n=Mt(t.type,t.key,t.props,null,e.mode,n),n.ref=vn(e,null,t),n.return=e,n;case Ii:return t=Rt(t,e.mode,n),t.return=e,t}if(ya(t)||Z(t))return t=Kt(t,e.mode,n,null),t.return=e,t;gn(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===(void 0===n?"undefined":Kr(n))&&null!==n){switch(n.$$typeof){case Fi:return n.key===i?n.type===Ri?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case Ii:return n.key===i?c(e,t,n,r):null}if(ya(n)||Z(n))return null!==i?null:f(e,t,n,r,null);gn(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return e=e.get(n)||null,l(t,e,""+r,i);if("object"===(void 0===r?"undefined":Kr(r))&&null!==r){switch(r.$$typeof){case Fi:return e=e.get(null===r.key?n:r.key)||null,r.type===Ri?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case Ii:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,i)}if(ya(r)||Z(r))return e=e.get(n)||null,f(t,e,r,i,null);gn(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=h(i,f,s[v],l);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m,f=g}if(v===s.length)return n(i,f),u;if(null===f){for(;v<s.length;v++)(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);v<s.length;v++)(g=p(f,i,v,s[v],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(i,e)}),u}function g(o,s,l,u){var c=Z(l);"function"!=typeof c&&i("150"),null==(l=c.call(l))&&i("151");for(var f=c=null,v=s,g=s=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(o,v,y.value,u);if(null===b){v||(v=m);break}e&&v&&null===b.alternate&&t(o,v),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,v=m}if(y.done)return n(o,v),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(o,v);!y.done;g++,y=l.next())null!==(y=p(v,o,g,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach(function(e){return t(o,e)}),c}return function(e,r,a,l){var u="object"===(void 0===a?"undefined":Kr(a))&&null!==a&&a.type===Ri&&null===a.key;u&&(a=a.props.children);var c="object"===(void 0===a?"undefined":Kr(a))&&null!==a;if(c)switch(a.$$typeof){case Fi:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag?a.type===Ri:u.elementType===a.type){n(e,u.sibling),r=o(u,a.type===Ri?a.props.children:a.props,l),r.ref=vn(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===Ri?(r=Kt(a.props.children,e.mode,l,a.key),r.return=e,e=r):(l=Mt(a.type,a.key,a.props,null,e.mode,l),l.ref=vn(e,r,a),l.return=e,e=l)}return s(e);case Ii:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=o(r,a.children||[],l),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=Rt(a,e.mode,l),r.return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,a,l),r.return=e,e=r):(n(e,r),r=It(a,e.mode,l),r.return=e,e=r),s(e);if(ya(a))return v(e,r,a,l);if(Z(a))return g(e,r,a,l);if(c&&gn(e,a),void 0===a&&!u)switch(e.tag){case 1:case 0:l=e.type,i("152",l.displayName||l.name||"Component")}return n(e,r)}}function yn(e,t){var n=Pt(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 bn(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 _n(e){if(Sa){var t=wa;if(t){var n=t;if(!bn(e,t)){if(!(t=dt(n))||!bn(e,t))return e.effectTag|=2,Sa=!1,void(xa=e);yn(xa,n)}xa=e,wa=ht(t)}else e.effectTag|=2,Sa=!1,xa=e}}function xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;xa=e}function wn(e){if(e!==xa)return!1;if(!Sa)return xn(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ft(t,e.memoizedProps))for(t=wa;t;)yn(e,t),t=dt(t);return xn(e),wa=xa?dt(e.stateNode):null,!0}function Sn(){wa=xa=null,Sa=!1}function Cn(e,t,n,r){t.child=null===e?_a(t,null,n,r):ba(t,e.child,n,r)}function Tn(e,t,n,r,i){n=n.render;var o=t.ref;return en(t,i),r=n(r,o),t.effectTag|=1,Cn(e,t,r,i),t.child}function kn(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Ot(a)||void 0!==a.defaultProps||null!==n.compare?(e=Mt(n.type,null,r,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Pn(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,n=n.compare,(n=null!==n?n:Oe)(i,r)&&e.ref===t.ref)?In(e,t,o):(t.effectTag|=1,e=Nt(a,r,o),e.ref=t.ref,e.return=t,t.child=e)}function Pn(e,t,n,r,i,o){return null!==e&&i<o&&Oe(e.memoizedProps,r)&&e.ref===t.ref?In(e,t,o):En(e,t,n,r,o)}function On(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function En(e,t,n,r,i){var o=mt(n)?ra:ta.current;return o=gt(t,o),en(t,i),n=n(r,o),t.effectTag|=1,Cn(e,t,n,i),t.child}function Nn(e,t,n,r,i){if(mt(n)){var o=!0;wt(t)}else o=!1;if(en(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),dn(t,n,r,i),pn(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===(void 0===u?"undefined":Kr(u))&&null!==u?u=va.currentDispatcher.readContext(u):(u=mt(n)?ra:ta.current,u=gt(t,u));var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&hn(t,a,r,u),aa=!1;var d=t.memoizedState;l=a.state=d;var h=t.updateQueue;null!==h&&(Yt(t,h,r,a,i),l=t.memoizedState),s!==r||d!==l||na.current||aa?("function"==typeof c&&(cn(t,n,c,r),l=t.memoizedState),(s=aa||fn(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:ln(t.type,s),l=a.context,u=n.contextType,"object"===(void 0===u?"undefined":Kr(u))&&null!==u?u=va.currentDispatcher.readContext(u):(u=mt(n)?ra:ta.current,u=gt(t,u)),c=n.getDerivedStateFromProps,(f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&hn(t,a,r,u),aa=!1,l=t.memoizedState,d=a.state=l,h=t.updateQueue,null!==h&&(Yt(t,h,r,a,i),d=t.memoizedState),s!==r||l!==d||na.current||aa?("function"==typeof c&&(cn(t,n,c,r),d=t.memoizedState),(c=aa||fn(t,n,s,r,l,d,u))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Mn(e,t,n,r,o,i)}function Mn(e,t,n,r,i,o){On(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&St(t,n,!1),In(e,t,o);r=t.stateNode,Ca.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ba(t,e.child,null,o),t.child=ba(t,null,s,o)):Cn(e,t,s,o),t.memoizedState=r.state,i&&St(t,n,!0),t.child}function Kn(e){var t=e.stateNode;t.pendingContext?_t(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_t(e,t.context,!1),rn(e,t.containerInfo)}function Fn(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=i.fallback,i=Kt(null,r,0,null),0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=Kt(a,r,n,null),i.sibling=r,n=i,n.return=r.return=t):n=r=_a(t,null,i.children,n):null!==e.memoizedState?(r=e.child,e=r.sibling,a?(n=i.fallback,i=Nt(r,r.pendingProps,0),0==(1&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a),r=i.sibling=Nt(e,n,e.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=ba(t,r.child,i.children,n)):(e=e.child,a?(a=i.fallback,i=Kt(null,r,0,null),i.child=e,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=i.sibling=Kt(a,r,n,null),r.effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=ba(t,e,i.children,n)),t.memoizedState=o,t.child=n,r}function In(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&i("153"),null!==t.child){for(e=t.child,n=Nt(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function Rn(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!na.current&&r<n){switch(t.tag){case 3:Kn(t),Sn();break;case 5:an(t);break;case 1:mt(t.type)&&wt(t);break;case 4:rn(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Fn(e,t,n):(t=In(e,t,n),null!==t?t.sibling:null)}return In(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=gt(t,ta.current);if(en(t,n),o=r(e,o),t.effectTag|=1,"object"===(void 0===o?"undefined":Kr(o))&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,mt(r)){var a=!0;wt(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&cn(t,r,s,e),o.updater=ma,t.stateNode=o,o._reactInternalFiber=t,pn(t,r,e,n),t=Mn(null,t,r,!0,a,n)}else t.tag=0,Cn(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),a=t.pendingProps,e=un(o),t.type=e,o=t.tag=Et(e),a=ln(e,a),s=void 0,o){case 0:s=En(null,t,e,a,n);break;case 1:s=Nn(null,t,e,a,n);break;case 11:s=Tn(null,t,e,a,n);break;case 14:s=kn(null,t,e,ln(e.type,a),r,n);break;default:i("283",e)}return s;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),En(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),Nn(e,t,r,o,n);case 3:return Kn(t),r=t.updateQueue,null===r&&i("282"),o=t.memoizedState,o=null!==o?o.element:null,Yt(t,r,t.pendingProps,null,n),r=t.memoizedState.element,r===o?(Sn(),t=In(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(wa=ht(t.stateNode.containerInfo),xa=t,o=Sa=!0),o?(t.effectTag|=2,t.child=_a(t,null,r,n)):(Cn(e,t,r,n),Sn()),t=t.child),t;case 5:return an(t),null===e&&_n(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ft(r,o)?s=null:null!==a&&ft(r,a)&&(t.effectTag|=16),On(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=1,t=null):(Cn(e,t,s,n),t=t.child),t;case 6:return null===e&&_n(t),null;case 13:return Fn(e,t,n);case 4:return rn(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ba(t,null,r,n):Cn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),Tn(e,t,r,o,n);case 7:return Cn(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Jt(t,a),null!==s){var l=s.value;if(0===(a=l===a&&(0!==l||1/l==1/a)||l!==l&&a!==a?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!na.current){t=In(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===r&&0!=(l.observedBits&a)){if(1===s.tag){var u=Vt(n);u.tag=2,Wt(s,u)}s.expirationTime<n&&(s.expirationTime=n),u=s.alternate,null!==u&&u.expirationTime<n&&(u.expirationTime=n);for(var c=s.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=s.child,l=l.next}while(null!==l);else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}}Cn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps,r=a.children,en(t,n),o=tn(o,a.unstable_observedBits),r=r(o),t.effectTag|=1,Cn(e,t,r,n),t.child;case 14:return o=t.type,a=ln(o.type,t.pendingProps),kn(e,t,o,a,r,n);case 15:return Pn(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ln(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mt(r)?(e=!0,wt(t)):e=!1,en(t,n),dn(t,r,o,n),pn(t,r,o,n),Mn(null,t,r,!0,e,n);default:i("156")}}function An(e){e.effectTag|=4}function Dn(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=te(n)),null!==n&&ee(n.type),t=t.value,null!==e&&1===e.tag&&ee(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function jn(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Jn(e,t)}else t.current=null}function Ln(e){switch("function"==typeof oa&&oa(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 i=e;try{r()}catch(e){Jn(i,e)}}n=n.next}while(n!==t)}break;case 1:if(jn(e),t=e.stateNode,"function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Jn(e,t)}break;case 5:jn(e);break;case 4:Vn(e)}}function Un(e){return 5===e.tag||3===e.tag||4===e.tag}function zn(e){e:{for(var t=e.return;null!==t;){if(Un(t)){var n=t;break e}t=t.return}i("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:i("161")}16&n.effectTag&&(rt(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Un(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 a=t,s=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(s,l):a.insertBefore(s,l)}else t.insertBefore(o.stateNode,n);else r?(s=t,l=o.stateNode,8===s.nodeType?(a=s.parentNode,a.insertBefore(l,s)):(a=s,a.appendChild(l)),null!==(s=s._reactRootContainer)&&void 0!==s||null!==a.onclick||(a.onclick=ut)):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 Vn(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&i("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 a=t,s=a;;)if(Ln(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(a=r,s=t.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,o=!0):Ln(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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Gn(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 a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[ei]=r,"input"===e&&"radio"===r.type&&null!=r.name&&fe(n,r),st(e,o),t=st(e,r),o=0;o<a.length;o+=2){var s=a[o],l=a[o+1];"style"===s?ot(n,l):"dangerouslySetInnerHTML"===s?Wo(n,l):"children"===s?rt(n,l):se(n,s,l,t)}switch(e){case"input":de(n,r);break;case"textarea":Ze(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,e=r.value,null!=e?Qe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Qe(n,!!r.multiple,r.defaultValue,!0):Qe(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&i("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=lr())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,a=t.memoizedProps.style,a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,e.style.display=it("display",a));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){e=t.child.sibling,e.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:i("163")}}function Wn(e,t,n){n=Vt(n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mr(r),Dn(e,t)},n}function Bn(e,t,n){n=Vt(n),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ga?Ga=new Set([this]):Ga.add(this));var n=t.value,i=t.stack;Dn(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function Hn(e){switch(e.tag){case 1:mt(e.type)&&yt(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return on(e),bt(e),t=e.effectTag,0!=(64&t)&&i("285"),e.effectTag=-2049&t|64,e;case 5:return sn(e),null;case 13:return t=e.effectTag,2048&t?(e.effectTag=-2049&t|64,e):null;case 4:return on(e),null;case 10:return Zt(e),null;default:return null}}function qn(){if(null!==Ia)for(var e=Ia.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!==n&&void 0!==n&&yt(t);break;case 3:on(t),bt(t);break;case 5:sn(t);break;case 4:on(t);break;case 10:Zt(t)}e=e.return}Ra=null,Aa=0,Da=-1,ja=!1,Ia=null}function Yn(){null!==Va&&(Rr.unstable_cancelCallback(za),Va())}function Xn(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Ia=e;e:{var o=t;t=e;var a=Aa,s=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:mt(t.type)&&yt(t);break;case 3:on(t),bt(t),s=t.stateNode,s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==o&&null!==o.child||(wn(t),t.effectTag&=-3),ka(t);break;case 5:sn(t);var l=nn(pa.current);if(a=t.type,null!==o&&null!=t.stateNode)Pa(o,t,a,s,l),o.ref!==t.ref&&(t.effectTag|=128);else if(s){var u=nn(da.current);if(wn(t)){s=t,o=s.stateNode;var c=s.type,f=s.memoizedProps,d=l;switch(o[Zr]=s,o[ei]=f,a=void 0,l=c){case"iframe":case"object":Ae("load",o);break;case"video":case"audio":for(c=0;c<ui.length;c++)Ae(ui[c],o);break;case"source":Ae("error",o);break;case"img":case"image":case"link":Ae("error",o),Ae("load",o);break;case"form":Ae("reset",o),Ae("submit",o);break;case"details":Ae("toggle",o);break;case"input":ce(o,f),Ae("invalid",o),lt(d,"onChange");break;case"select":o._wrapperState={wasMultiple:!!f.multiple},Ae("invalid",o),lt(d,"onChange");break;case"textarea":Je(o,f),Ae("invalid",o),lt(d,"onChange")}at(l,f),c=null;for(a in f)f.hasOwnProperty(a)&&(u=f[a],"children"===a?"string"==typeof u?o.textContent!==u&&(c=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(c=["children",""+u]):Br.hasOwnProperty(a)&&null!=u&<(d,a));switch(l){case"input":$(o),he(o,f,!0);break;case"textarea":$(o),et(o,f);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(o.onclick=ut)}a=c,s.updateQueue=a,s=null!==a,s&&An(t)}else{f=t,o=a,d=s,c=9===l.nodeType?l:l.ownerDocument,u===Vo.html&&(u=tt(o)),u===Vo.html?"script"===o?(o=c.createElement("div"),o.innerHTML="<script><\/script>",c=o.removeChild(o.firstChild)):"string"==typeof d.is?c=c.createElement(o,{is:d.is}):(c=c.createElement(o),"select"===o&&d.multiple&&(c.multiple=!0)):c=c.createElementNS(u,o),o=c,o[Zr]=f,o[ei]=s,Ta(o,t,!1,!1),d=o,c=a,f=s;var h=l,p=st(c,f);switch(c){case"iframe":case"object":Ae("load",d),l=f;break;case"video":case"audio":for(l=0;l<ui.length;l++)Ae(ui[l],d);l=f;break;case"source":Ae("error",d),l=f;break;case"img":case"image":case"link":Ae("error",d),Ae("load",d),l=f;break;case"form":Ae("reset",d),Ae("submit",d),l=f;break;case"details":Ae("toggle",d),l=f;break;case"input":ce(d,f),l=ue(d,f),Ae("invalid",d),lt(h,"onChange");break;case"option":l=Xe(d,f);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},l=Ir({},f,{value:void 0}),Ae("invalid",d),lt(h,"onChange");break;case"textarea":Je(d,f),l=$e(d,f),Ae("invalid",d),lt(h,"onChange");break;default:l=f}at(c,l),u=void 0;var v=c,g=d,m=l;for(u in m)if(m.hasOwnProperty(u)){var y=m[u];"style"===u?ot(g,y):"dangerouslySetInnerHTML"===u?null!=(y=y?y.__html:void 0)&&Wo(g,y):"children"===u?"string"==typeof y?("textarea"!==v||""!==y)&&rt(g,y):"number"==typeof y&&rt(g,""+y):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Br.hasOwnProperty(u)?null!=y&<(h,u):null!=y&&se(g,u,y,p))}switch(c){case"input":$(d),he(d,f,!1);break;case"textarea":$(d),et(d,f);break;case"option":null!=f.value&&d.setAttribute("value",""+le(f.value));break;case"select":l=d,l.multiple=!!f.multiple,d=f.value,null!=d?Qe(l,!!f.multiple,d,!1):null!=f.defaultValue&&Qe(l,!!f.multiple,f.defaultValue,!0);break;default:"function"==typeof l.onClick&&(d.onclick=ut)}(s=ct(a,s))&&An(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&i("166");break;case 6:o&&null!=t.stateNode?Oa(o,t,o.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&i("166")),o=nn(pa.current),nn(da.current),wn(t)?(s=t,a=s.stateNode,o=s.memoizedProps,a[Zr]=s,(s=a.nodeValue!==o)&&An(t)):(a=t,s=(9===o.nodeType?o:o.ownerDocument).createTextNode(s),s[Zr]=t,a.stateNode=s));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a,Ia=t;break e}s=null!==s,a=null!==o&&null!==o.memoizedState,null!==o&&!s&&a&&null!==(o=o.child.sibling)&&(l=t.firstEffect,null!==l?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8),(s!==a||0==(1&t.effectTag)&&s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:on(t),ka(t);break;case 10:Zt(t);break;case 9:case 14:break;case 17:mt(t.type)&&yt(t);break;default:i("156")}Ia=null}if(t=e,1===Aa||1!==t.childExpirationTime){for(s=0,a=t.child;null!==a;)o=a.expirationTime,l=a.childExpirationTime,o>s&&(s=o),l>s&&(s=l),a=a.sibling;t.childExpirationTime=s}if(null!==Ia)return Ia;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=Hn(e,Aa)))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 Qn(e){var t=Rn(e.alternate,e,Aa);return e.memoizedProps=e.pendingProps,null===t&&(t=Xn(e)),Na.current=null,t}function $n(e,t){Fa&&i("243"),Yn(),Fa=!0,Na.currentDispatcher=Ea;var n=e.nextExpirationTimeToWorkOn;n===Aa&&e===Ra&&null!==Ia||(qn(),Ra=e,Aa=n,Ia=Nt(Ra.current,null,Aa),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Ia&&!fr();)Ia=Qn(Ia);else for(;null!==Ia;)Ia=Qn(Ia)}catch(t){if(ca=ua=la=null,null===Ia)r=!0,mr(t);else{null===Ia&&i("271");var o=Ia,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=Aa,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"===(void 0===c?"undefined":Kr(c))&&"function"==typeof c.then){var f=c;c=l;var d=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}p=c.pendingProps.maxDuration,"number"==typeof p&&(0>=p?d=0:(-1===d||p<d)&&(d=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(l=er.bind(null,s,c,u,0==(1&c.mode)?1073741823:a),f.then(l,l),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&null===u.alternate&&(u.tag=17),u.expirationTime=a;break e}-1===d?s=1073741823:(-1===h&&(h=10*(1073741822-jt(s,a))-5e3),s=h+d),0<=s&&Da<s&&(Da=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((ee(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."+te(u))}ja=!0,c=$t(c,u),s=l;do{switch(s.tag){case 3:u=c,s.effectTag|=2048,s.expirationTime=a,a=Wn(s,u,a),Bt(s,a);break e;case 1:if(u=c,l=s.type,f=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Ga||!Ga.has(f)))){s.effectTag|=2048,s.expirationTime=a,a=Bn(s,u,a),Bt(s,a);break e}}s=s.return}while(null!==s)}Ia=Xn(o);continue}r=!0,mr(t)}}break}if(Fa=!1,ca=ua=la=Na.currentDispatcher=null,r)Ra=null,e.finishedWork=null;else if(null!==Ia)e.finishedWork=null;else{if(r=e.current.alternate,null===r&&i("281"),Ra=null,ja){if(o=e.latestPendingTime,a=e.latestSuspendedTime,s=e.latestPingedTime,0!==o&&o<n||0!==a&&a<n||0!==s&&s<n)return Dt(e,n),void ar(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ar(e,r,n,t,-1)}t&&-1!==Da?(Dt(e,n),t=10*(1073741822-jt(e,n)),t<Da&&(Da=t),t=10*(1073741822-lr()),t=Da-t,ar(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Jn(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===Ga||!Ga.has(r)))return e=$t(t,e),e=Bn(n,e,1073741823),Wt(n,e),void nr(n,1073741823);break;case 3:return e=$t(t,e),e=Wn(n,e,1073741823),Wt(n,e),void nr(n,1073741823)}n=n.return}3===e.tag&&(n=$t(t,e),n=Wn(e,n,1073741823),Wt(e,n),nr(e,1073741823))}function Zn(e,t){return 0!==Ka?e=Ka:Fa?e=Ua?1073741823:Aa:1&t.mode?(e=ns?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Ra&&e===Aa&&--e):e=1073741823,ns&&(0===$a||e<$a)&&($a=e),e}function er(e,t,n,r){var i=e.earliestSuspendedTime,o=e.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>o)&&(e.latestPingedTime=o),Lt(o,e)}else i=lr(),i=Zn(i,t),At(e,i);0!=(1&t.mode)&&e===Ra&&Aa===r&&(Ra=null),tr(t,i),0==(1&t.mode)&&(tr(n,i),1===n.tag&&null!==n.stateNode&&(t=Vt(i),t.tag=2,Wt(n,t))),0!==(n=e.expirationTime)&&ur(e,n)}function tr(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=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){i=r.stateNode;break}r=r.return}return i}function nr(e,t){null!==(e=tr(e,t))&&(!Fa&&0!==Aa&&t>Aa&&qn(),At(e,t),Fa&&!Ua&&Ra===e||ur(e,e.expirationTime),ls>ss&&(ls=0,i("185")))}function rr(e,t,n,r,i){var o=Ka;Ka=1073741823;try{return e(t,n,r,i)}finally{Ka=o}}function ir(){os=1073741822-((Rr.unstable_now()-is)/10|0)}function or(e,t){if(0!==Ha){if(t<Ha)return;null!==qa&&Rr.unstable_cancelCallback(qa)}Ha=t,e=Rr.unstable_now()-is,qa=Rr.unstable_scheduleCallback(dr,{timeout:10*(1073741822-t)-e})}function ar(e,t,n,r,i){e.expirationTime=r,0!==i||fr()?0<i&&(e.timeoutHandle=Qo(sr.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function sr(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,ir(),as=os,pr(e,n)}function lr(){return Ya?as:(cr(),0!==Qa&&1!==Qa||(ir(),as=os),as)}function ur(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Ba?(Wa=Ba=e,e.nextScheduledRoot=e):(Ba=Ba.nextScheduledRoot=e,Ba.nextScheduledRoot=Wa)):t>e.expirationTime&&(e.expirationTime=t),Ya||(es?ts&&(Xa=e,Qa=1073741823,vr(e,1073741823,!1)):1073741823===t?hr(1073741823,!1):or(e,t))}function cr(){var e=0,t=null;if(null!==Ba)for(var n=Ba,r=Wa;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===Ba)&&i("244"),r===r.nextScheduledRoot){Wa=Ba=r.nextScheduledRoot=null;break}if(r===Wa)Wa=o=r.nextScheduledRoot,Ba.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===Ba){Ba=n,Ba.nextScheduledRoot=Wa,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===Ba)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Xa=t,Qa=e}function fr(){return!!cs||!!Rr.unstable_shouldYield()&&(cs=!0)}function dr(){try{if(!fr()&&null!==Wa){ir();var e=Wa;do{var t=e.expirationTime;0!==t&&os<=t&&(e.nextExpirationTimeToWorkOn=os),e=e.nextScheduledRoot}while(e!==Wa)}hr(0,!0)}finally{cs=!1}}function hr(e,t){if(cr(),t)for(ir(),as=os;null!==Xa&&0!==Qa&&e<=Qa&&!(cs&&os>Qa);)vr(Xa,Qa,os>Qa),cr(),ir(),as=os;else for(;null!==Xa&&0!==Qa&&e<=Qa;)vr(Xa,Qa,!1),cr();if(t&&(Ha=0,qa=null),0!==Qa&&or(Xa,Qa),ls=0,us=null,null!==rs)for(e=rs,rs=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ja||(Ja=!0,Za=e)}}if(Ja)throw e=Za,Za=null,Ja=!1,e}function pr(e,t){Ya&&i("253"),Xa=e,Qa=t,vr(e,t,!1),hr(1073741823,!1)}function vr(e,t,n){if(Ya&&i("245"),Ya=!0,n){var r=e.finishedWork;null!==r?gr(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,-1!==r&&(e.timeoutHandle=-1,$o(r)),$n(e,n),null!==(r=e.finishedWork)&&(fr()?e.finishedWork=r:gr(e,r,t)))}else r=e.finishedWork,null!==r?gr(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,-1!==r&&(e.timeoutHandle=-1,$o(r)),$n(e,n),null!==(r=e.finishedWork)&&gr(e,r,t));Ya=!1}function gr(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===rs?rs=[r]:rs.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===us?ls++:(us=e,ls=0),Ua=Fa=!0,e.current===t&&i("177"),n=e.pendingCommitExpirationTime,0===n&&i("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):(o=e.latestPendingTime,0!==o&&(o>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),o=e.earliestSuspendedTime,0===o?At(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,At(e,r)):r>o&&At(e,r)),Lt(0,e),Na.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,Yo=Mo,o=Be(),He(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else e:{a=(a=o.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&0!==s.rangeCount){a=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch(e){a=null;break e}var c=0,f=-1,d=-1,h=0,p=0,v=o,g=null;t:for(;;){for(var m;v!==a||0!==l&&3!==v.nodeType||(f=c+l),v!==u||0!==s&&3!==v.nodeType||(d=c+s),3===v.nodeType&&(c+=v.nodeValue.length),null!==(m=v.firstChild);)g=v,v=m;for(;;){if(v===o)break t;if(g===a&&++h===l&&(f=c),g===u&&++p===s&&(d=c),null!==(m=v.nextSibling))break;v=g,g=v.parentNode}v=m}a=-1===f||-1===d?null:{start:f,end:d}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xo={focusedElem:o,selectionRange:a},Mo=!1,La=r;null!==La;){o=!1,a=void 0;try{for(;null!==La;){if(256&La.effectTag)e:{var y=La.alternate;switch(l=La,l.tag){case 0:case 11:case 15:break e;case 1:if(256&l.effectTag&&null!==y){var b=y.memoizedProps,_=y.memoizedState,x=l.stateNode,w=x.getSnapshotBeforeUpdate(l.elementType===l.type?b:ln(l.type,b),_);x.__reactInternalSnapshotBeforeUpdate=w}break e;case 3:case 5:case 6:case 4:case 17:break e;default:i("163")}}La=La.nextEffect}}catch(e){o=!0,a=e}o&&(null===La&&i("178"),Jn(La,a),null!==La&&(La=La.nextEffect))}for(La=r;null!==La;){y=!1,b=void 0;try{for(;null!==La;){var S=La.effectTag;if(16&S&&rt(La.stateNode,""),128&S){var C=La.alternate;if(null!==C){var T=C.ref;null!==T&&("function"==typeof T?T(null):T.current=null)}}switch(14&S){case 2:zn(La),La.effectTag&=-3;break;case 6:zn(La),La.effectTag&=-3,Gn(La.alternate,La);break;case 4:Gn(La.alternate,La);break;case 8:_=La,Vn(_),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}La=La.nextEffect}}catch(e){y=!0,b=e}y&&(null===La&&i("178"),Jn(La,b),null!==La&&(La=La.nextEffect))}if(T=Xo,C=Be(),S=T.focusedElem,b=T.selectionRange,C!==S&&S&&S.ownerDocument&&We(S.ownerDocument.documentElement,S)){null!==b&&He(S)&&(C=b.start,T=b.end,void 0===T&&(T=C),"selectionStart"in S?(S.selectionStart=C,S.selectionEnd=Math.min(T,S.value.length)):(T=(C=S.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),_=S.textContent.length,y=Math.min(b.start,_),b=void 0===b.end?y:Math.min(b.end,_),!T.extend&&y>b&&(_=b,b=y,y=_),_=Ge(S,y),x=Ge(S,b),_&&x&&(1!==T.rangeCount||T.anchorNode!==_.node||T.anchorOffset!==_.offset||T.focusNode!==x.node||T.focusOffset!==x.offset)&&(C=C.createRange(),C.setStart(_.node,_.offset),T.removeAllRanges(),y>b?(T.addRange(C),T.extend(x.node,x.offset)):(C.setEnd(x.node,x.offset),T.addRange(C)))))),C=[];for(T=S;T=T.parentNode;)1===T.nodeType&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;S<C.length;S++)T=C[S],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}for(Xo=null,Mo=!!Yo,Yo=null,e.current=t,La=r;null!==La;){r=!1,S=void 0;try{for(C=n;null!==La;){var k=La.effectTag;if(36&k){var P=La.alternate;switch(T=La,y=C,T.tag){case 0:case 11:case 15:break;case 1:var O=T.stateNode;if(4&T.effectTag)if(null===P)O.componentDidMount();else{var E=T.elementType===T.type?P.memoizedProps:ln(T.type,P.memoizedProps);O.componentDidUpdate(E,P.memoizedState,O.__reactInternalSnapshotBeforeUpdate)}var N=T.updateQueue;null!==N&&Xt(T,N,O,y);break;case 3:var M=T.updateQueue;if(null!==M){if(b=null,null!==T.child)switch(T.child.tag){case 5:b=T.child.stateNode;break;case 1:b=T.child.stateNode}Xt(T,M,b,y)}break;case 5:var K=T.stateNode;null===P&&4&T.effectTag&&ct(T.type,T.memoizedProps)&&K.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:i("163")}}if(128&k){var F=La.ref;if(null!==F){var I=La.stateNode;switch(La.tag){case 5:var R=I;break;default:R=I}"function"==typeof F?F(R):F.current=R}}La=La.nextEffect}}catch(e){r=!0,S=e}r&&(null===La&&i("178"),Jn(La,S),null!==La&&(La=La.nextEffect))}Fa=Ua=!1,"function"==typeof ia&&ia(t.stateNode),k=t.expirationTime,t=t.childExpirationTime,t=t>k?t:k,0===t&&(Ga=null),e.expirationTime=t,e.finishedWork=null}function mr(e){null===Xa&&i("246"),Xa.expirationTime=0,Ja||(Ja=!0,Za=e)}function yr(e,t){var n=es;es=!0;try{return e(t)}finally{(es=n)||Ya||hr(1073741823,!1)}}function br(e,t){if(es&&!ts){ts=!0;try{return e(t)}finally{ts=!1}}return e(t)}function _r(e,t,n){if(ns)return e(t,n);es||Ya||0===$a||(hr($a,!1),$a=0);var r=ns,i=es;es=ns=!0;try{return e(t,n)}finally{ns=r,(es=i)||Ya||hr(1073741823,!1)}}function xr(e,t,n,r,o){var a=t.current;e:if(n){n=n._reactInternalFiber;t:{2===Ee(n)&&1===n.tag||i("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);i("171"),s=void 0}if(1===n.tag){var l=n.type;if(mt(l)){n=xt(n,l,s);break e}}n=s}else n=ea;return null===t.context?t.context=n:t.pendingContext=n,t=o,o=Vt(r),o.payload={element:e},t=void 0===t?null:t,null!==t&&(o.callback=t),Yn(),Wt(a,o),nr(a,r),r}function wr(e,t,n,r){var i=t.current;return i=Zn(lr(),i),xr(e,t,n,i,r)}function Sr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Cr(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ii,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Tr(e){var t=1073741822-25*(1+((1073741822-lr()+500)/25|0));t>=Ma&&(t=Ma-1),this._expirationTime=Ma=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function kr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Pr(e,t,n){t=Pt(3,null,null,t?3:0),e={current:t,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 Or(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Er(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Pr(e,!1,t)}function Nr(e,t,n,r,o){Or(n)||i("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var s=o;o=function(){var e=Sr(a._internalRoot);s.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=Er(n,r),"function"==typeof o){var l=o;o=function(){var e=Sr(a._internalRoot);l.call(e)}}br(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return Sr(a._internalRoot)}function Mr(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Or(t)||i("200"),Cr(e,t,null,n)}/** @license React v16.6.1
|
37
37
|
* react-dom.production.min.js
|
38
38
|
*
|
39
39
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -41,7 +41,7 @@ Konva.Filters.Sepia=function(e){var t,n,r,i,o,a,s,l,u,c=e.data,f=e.width,d=e.hei
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
43
43
|
*/
|
44
|
-
var Mr="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},Fr=n(0),Ir=n(75),Rr=n(41);Fr||i("227");var Ar=!1,Dr=null,jr=!1,Lr=null,Ur={onError:function(e){Ar=!0,Dr=e}},zr=null,Vr={},Gr=[],Wr={},Br={},Hr={},qr=null,Yr=null,Xr=null,Qr=null,$r={injectEventPluginOrder:function(e){zr&&i("101"),zr=Array.prototype.slice.call(e),l()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];Vr.hasOwnProperty(t)&&Vr[t]===r||(Vr[t]&&i("102",t),Vr[t]=r,n=!0)}n&&l()}},Jr=Math.random().toString(36).slice(2),Zr="__reactInternalInstance$"+Jr,ei="__reactEventHandlers$"+Jr,ti=!("undefined"==typeof window||!window.document||!window.document.createElement),ni={animationend:k("Animation","AnimationEnd"),animationiteration:k("Animation","AnimationIteration"),animationstart:k("Animation","AnimationStart"),transitionend:k("Transition","TransitionEnd")},ri={},ii={};ti&&(ii=document.createElement("div").style,"AnimationEvent"in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),"TransitionEvent"in window||delete ni.transitionend.transition);var oi=P("animationend"),ai=P("animationiteration"),si=P("animationstart"),li=P("transitionend"),ui="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ci=null,fi=null,di=null;Ir(K.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},isPersistent:N,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=N,this._dispatchInstances=this._dispatchListeners=null}}),K.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},K.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return Ir(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Ir({},r.Interface,e),n.extend=r.extend,I(n),n},I(K);var hi=K.extend({data:null}),pi=K.extend({data:null}),vi=[9,13,27,32],gi=ti&&"CompositionEvent"in window,mi=null;ti&&"documentMode"in document&&(mi=document.documentMode);var yi=ti&&"TextEvent"in window&&!mi,bi=ti&&(!gi||mi&&8<mi&&11>=mi),_i=String.fromCharCode(32),xi={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(" ")}},wi=!1,Si=!1,Ci={eventTypes:xi,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(gi)e:{switch(e){case"compositionstart":i=xi.compositionStart;break e;case"compositionend":i=xi.compositionEnd;break e;case"compositionupdate":i=xi.compositionUpdate;break e}i=void 0}else Si?R(e,n)&&(i=xi.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=xi.compositionStart);return i?(bi&&"ko"!==n.locale&&(Si||i!==xi.compositionStart?i===xi.compositionEnd&&Si&&(o=O()):(ci=r,fi="value"in ci?ci.value:ci.textContent,Si=!0)),i=hi.getPooled(i,t,n,r),o?i.data=o:null!==(o=A(n))&&(i.data=o),T(i),o=i):o=null,(e=yi?D(e,n):j(e,n))?(t=pi.getPooled(xi.beforeInput,t,n,r),t.data=e,T(t)):t=null,null===o?t:null===t?o:[o,t]}},Ti=null,ki=null,Pi=null,Oi=!1,Ei={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},Ni=Fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ki=/^(.*)[\\\/]/,Mi="function"==typeof Symbol&&Symbol.for,Fi=Mi?Symbol.for("react.element"):60103,Ii=Mi?Symbol.for("react.portal"):60106,Ri=Mi?Symbol.for("react.fragment"):60107,Ai=Mi?Symbol.for("react.strict_mode"):60108,Di=Mi?Symbol.for("react.profiler"):60114,ji=Mi?Symbol.for("react.provider"):60109,Li=Mi?Symbol.for("react.context"):60110,Ui=Mi?Symbol.for("react.concurrent_mode"):60111,zi=Mi?Symbol.for("react.forward_ref"):60112,Vi=Mi?Symbol.for("react.suspense"):60113,Gi=Mi?Symbol.for("react.memo"):60115,Wi=Mi?Symbol.for("react.lazy"):60116,Bi="function"==typeof Symbol&&Symbol.iterator,Hi=/^[: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]*$/,qi=Object.prototype.hasOwnProperty,Yi={},Xi={},Qi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qi[e]=new oe(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qi[t]=new oe(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qi[e]=new oe(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qi[e]=new oe(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){Qi[e]=new oe(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Qi[e]=new oe(e,3,!0,e,null)}),["capture","download"].forEach(function(e){Qi[e]=new oe(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){Qi[e]=new oe(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){Qi[e]=new oe(e,5,!1,e.toLowerCase(),null)});var $i=/[\-:]([a-z])/g;"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($i,ae);Qi[t]=new oe(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($i,ae);Qi[t]=new oe(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($i,ae);Qi[t]=new oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Qi.tabIndex=new oe("tabIndex",1,!1,"tabindex",null);var Ji={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Zi=null,eo=null,to=!1;ti&&(to=Y("input")&&(!document.documentMode||9<document.documentMode));var no={eventTypes:Ji,_isInputEventSupported:to,extractEvents:function(e,t,n,r){var i=t?y(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=ye:H(i)?to?o=Ce:(o=we,a=xe):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Se),o&&(o=o(e,t)))return ve(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&pe(i,"number",i.value)}},ro=K.extend({view:null,detail:null}),io={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},oo=0,ao=0,so=!1,lo=!1,uo=ro.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:ke,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=oo;return oo=e.screenX,so?"mousemove"===e.type?e.screenX-t:0:(so=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=ao;return ao=e.screenY,lo?"mousemove"===e.type?e.screenY-t:0:(lo=!0,0)}}),co=uo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),fo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ho={eventTypes:fo,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?g(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=uo,s=fo.mouseLeave,l=fo.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=co,s=fo.pointerLeave,l=fo.pointerEnter,u="pointer");var c=null==o?i:y(o);if(i=null==t?i:y(t),e=a.getPooled(s,o,n,r),e.type=u+"leave",e.target=c,e.relatedTarget=i,n=a.getPooled(l,t,n,r),n.type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(t=o,i=r,u=0,a=t;a;a=_(a))u++;for(a=0,l=i;l;l=_(l))a++;for(;0<u-a;)t=_(t),u--;for(;0<a-u;)i=_(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=_(t),i=_(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=_(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=_(r);for(r=0;r<t.length;r++)S(t[r],"bubbled",e);for(r=o.length;0<r--;)S(o[r],"captured",n);return[e,n]}},po=Object.prototype.hasOwnProperty,vo=K.extend({animationName:null,elapsedTime:null,pseudoElement:null}),go=K.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mo=ro.extend({relatedTarget:null}),yo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bo={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"},_o=ro.extend({key:function(e){if(e.key){var t=yo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Fe(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?bo[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:ke,charCode:function(e){return"keypress"===e.type?Fe(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Fe(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xo=uo.extend({dataTransfer:null}),wo=ro.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:ke}),So=K.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Co=uo.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}),To=[["abort","abort"],[oi,"animationEnd"],[ai,"animationIteration"],[si,"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"],[li,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],ko={},Po={};[["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){Ie(e,!0)}),To.forEach(function(e){Ie(e,!1)});var Oo={eventTypes:ko,isInteractiveTopLevelEventType:function(e){return void 0!==(e=Po[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=Po[e];if(!i)return null;switch(e){case"keypress":if(0===Fe(n))return null;case"keydown":case"keyup":e=_o;break;case"blur":case"focus":e=mo;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=uo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=xo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=wo;break;case oi:case ai:case si:e=vo;break;case li:e=So;break;case"scroll":e=ro;break;case"wheel":e=Co;break;case"copy":case"cut":case"paste":e=go;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=co;break;default:e=K}return t=e.getPooled(i,t,n,r),T(t),t}},Eo=Oo.isInteractiveTopLevelEventType,No=[],Ko=!0,Mo={},Fo=0,Io="_reactListenersID"+(""+Math.random()).slice(2),Ro=ti&&"documentMode"in document&&11>=document.documentMode,Ao={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Do=null,jo=null,Lo=null,Uo=!1,zo={eventTypes:Ao,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Ue(o),i=Hr.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?y(t):window,e){case"focus":(H(o)||"true"===o.contentEditable)&&(Do=o,jo=t,Lo=null);break;case"blur":Lo=jo=Do=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":return Uo=!1,qe(n,r);case"selectionchange":if(Ro)break;case"keydown":case"keyup":return qe(n,r)}return null}};$r.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),qr=b,Yr=m,Xr=y,$r.injectEventPluginsByName({SimpleEventPlugin:Oo,EnterLeaveEventPlugin:ho,ChangeEventPlugin:no,SelectEventPlugin:zo,BeforeInputEventPlugin:Ci});var Vo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Go=void 0,Wo=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Vo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Go=Go||document.createElement("div"),Go.innerHTML="<svg>"+t+"</svg>",t=Go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Bo={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},Ho=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){Ho.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});var qo=Ir({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}),Yo=null,Xo=null,Qo="function"==typeof setTimeout?setTimeout:void 0,$o="function"==typeof clearTimeout?clearTimeout:void 0;new Set;var Jo=[],Zo=-1,ea={},ta={current:ea},na={current:!1},ra=ea,ia=null,oa=null,aa=!1,sa={current:null},la=null,ua=null,ca=null,fa={},da={current:fa},ha={current:fa},pa={current:fa},va=Ni.ReactCurrentOwner,ga=(new Fr.Component).refs,ma={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Ee(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=lr();r=Zn(r,e);var i=Vt(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Yn(),Wt(e,i),nr(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=lr();r=Zn(r,e);var i=Vt(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Yn(),Wt(e,i),nr(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=lr();n=Zn(n,e);var r=Vt(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Yn(),Wt(e,r),nr(e,n)}},ya=Array.isArray,ba=mn(!0),_a=mn(!1),xa=null,wa=null,Sa=!1,Ca=Ni.ReactCurrentOwner,Ta=void 0,ka=void 0,Pa=void 0,Oa=void 0;Ta=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}},ka=function(){},Pa=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(nn(da.current),e=null,n){case"input":o=ue(a,o),r=ue(a,r),e=[];break;case"option":o=Xe(a,o),r=Xe(a,r),e=[];break;case"select":o=Ir({},o,{value:void 0}),r=Ir({},r,{value:void 0}),e=[];break;case"textarea":o=$e(a,o),r=$e(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=ut)}at(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(Br.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(Br.hasOwnProperty(n)?(null!=u&<(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&An(t)}},Oa=function(e,t,n,r){n!==r&&An(t)};var Ea={readContext:tn},Na=Ni.ReactCurrentOwner,Ka=1073741822,Ma=0,Fa=!1,Ia=null,Ra=null,Aa=0,Da=-1,ja=!1,La=null,Ua=!1,za=null,Va=null,Ga=null,Wa=null,Ba=null,Ha=0,qa=void 0,Ya=!1,Xa=null,Qa=0,$a=0,Ja=!1,Za=null,es=!1,ts=!1,ns=!1,rs=null,is=Rr.unstable_now(),os=1073741822-(is/10|0),as=os,ss=50,ls=0,us=null,cs=!1;Ti=function(e,t,n){switch(t){case"input":if(de(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=b(r);o||i("90"),J(r),de(r,o)}}}break;case"textarea":Ze(e,n);break;case"select":null!=(t=n.value)&&Qe(e,!!n.multiple,t,!1)}},Tr.prototype.render=function(e){this._defer||i("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new kr;return xr(e,t,null,n,r._onCommit),r},Tr.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Tr.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||i("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&&i("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,pr(e,n),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Tr.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])()}},kr.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},kr.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&&i("191",n),n()}}},Pr.prototype.render=function(e,t){var n=this._internalRoot,r=new kr;return t=void 0===t?null:t,null!==t&&r.then(t),wr(e,n,null,r._onCommit),r},Pr.prototype.unmount=function(e){var t=this._internalRoot,n=new kr;return e=void 0===e?null:e,null!==e&&n.then(e),wr(null,t,null,n._onCommit),n},Pr.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new kr;return n=void 0===n?null:n,null!==n&&i.then(n),wr(t,r,e,i._onCommit),i},Pr.prototype.createBatch=function(){var e=new Tr(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},V=yr,G=_r,W=function(){Ya||0===$a||(hr($a,!1),$a=0)};var fs={createPortal:Kr,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?i("188"):i("268",Object.keys(e))),e=Me(t),e=null===e?null:e.stateNode},hydrate:function(e,t,n){return Nr(null,e,t,!0,n)},render:function(e,t,n){return Nr(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&i("38"),Nr(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Or(e)||i("40"),!!e._reactRootContainer&&(br(function(){Nr(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Kr.apply(void 0,arguments)},unstable_batchedUpdates:yr,unstable_interactiveUpdates:_r,flushSync:function(e,t){Ya&&i("187");var n=es;es=!0;try{return rr(e,t)}finally{es=n,hr(1073741823,!1)}},unstable_flushControlled:function(e){var t=es;es=!0;try{rr(e)}finally{(es=t)||Ya||hr(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[m,y,b,$r.injectEventPluginsByName,Wr,T,function(e){d(e,C)},U,z,Le,v]},unstable_createRoot:function(e,t){return Or(e)||i("299","unstable_createRoot"),new Pr(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;Tt(Ir({},e,{findHostInstanceByFiber:function(e){return e=Me(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:g,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var ds={default:fs},hs=ds&&fs||ds;e.exports=hs.default||hs},function(e,t,n){"use strict";function r(){if(!g){var e=f.expirationTime;m?T():m=!0,C(a,e)}}function i(){var e=f,t=f.next;if(f===t)f=null;else{var n=f.previous;f=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=h,o=v;h=e,v=t;try{var a=n()}finally{h=i,v=o}if("function"==typeof a)if(a={callback:a,priorityLevel:e,expirationTime:t,next:null,previous:null},null===f)f=a.next=a.previous=a;else{n=null,e=f;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==f);null===n?n=f:n===f&&(f=a,r()),t=n.previous,t.next=n.previous=a,a.next=n,a.previous=t}}function o(){if(-1===p&&null!==f&&1===f.priorityLevel){g=!0;try{do{i()}while(null!==f&&1===f.priorityLevel)}finally{g=!1,null!==f?r():m=!1}}}function a(e){g=!0;var n=d;d=e;try{if(e)for(;null!==f;){var a=t.unstable_now();if(!(f.expirationTime<=a))break;do{i()}while(null!==f&&f.expirationTime<=a)}else if(null!==f)do{i()}while(null!==f&&!k())}finally{g=!1,d=n,null!==f?r():m=!1,o()}}function s(e){u=x(function(t){_(c),e(t)}),c=b(function(){w(u),e(t.unstable_now())},100)}/** @license React v16.6.1
|
44
|
+
var Kr="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},Fr=n(0),Ir=n(75),Rr=n(41);Fr||i("227");var Ar=!1,Dr=null,jr=!1,Lr=null,Ur={onError:function(e){Ar=!0,Dr=e}},zr=null,Vr={},Gr=[],Wr={},Br={},Hr={},qr=null,Yr=null,Xr=null,Qr=null,$r={injectEventPluginOrder:function(e){zr&&i("101"),zr=Array.prototype.slice.call(e),l()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];Vr.hasOwnProperty(t)&&Vr[t]===r||(Vr[t]&&i("102",t),Vr[t]=r,n=!0)}n&&l()}},Jr=Math.random().toString(36).slice(2),Zr="__reactInternalInstance$"+Jr,ei="__reactEventHandlers$"+Jr,ti=!("undefined"==typeof window||!window.document||!window.document.createElement),ni={animationend:k("Animation","AnimationEnd"),animationiteration:k("Animation","AnimationIteration"),animationstart:k("Animation","AnimationStart"),transitionend:k("Transition","TransitionEnd")},ri={},ii={};ti&&(ii=document.createElement("div").style,"AnimationEvent"in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),"TransitionEvent"in window||delete ni.transitionend.transition);var oi=P("animationend"),ai=P("animationiteration"),si=P("animationstart"),li=P("transitionend"),ui="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ci=null,fi=null,di=null;Ir(M.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},isPersistent:N,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=N,this._dispatchInstances=this._dispatchListeners=null}}),M.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},M.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return Ir(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Ir({},r.Interface,e),n.extend=r.extend,I(n),n},I(M);var hi=M.extend({data:null}),pi=M.extend({data:null}),vi=[9,13,27,32],gi=ti&&"CompositionEvent"in window,mi=null;ti&&"documentMode"in document&&(mi=document.documentMode);var yi=ti&&"TextEvent"in window&&!mi,bi=ti&&(!gi||mi&&8<mi&&11>=mi),_i=String.fromCharCode(32),xi={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(" ")}},wi=!1,Si=!1,Ci={eventTypes:xi,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(gi)e:{switch(e){case"compositionstart":i=xi.compositionStart;break e;case"compositionend":i=xi.compositionEnd;break e;case"compositionupdate":i=xi.compositionUpdate;break e}i=void 0}else Si?R(e,n)&&(i=xi.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=xi.compositionStart);return i?(bi&&"ko"!==n.locale&&(Si||i!==xi.compositionStart?i===xi.compositionEnd&&Si&&(o=O()):(ci=r,fi="value"in ci?ci.value:ci.textContent,Si=!0)),i=hi.getPooled(i,t,n,r),o?i.data=o:null!==(o=A(n))&&(i.data=o),T(i),o=i):o=null,(e=yi?D(e,n):j(e,n))?(t=pi.getPooled(xi.beforeInput,t,n,r),t.data=e,T(t)):t=null,null===o?t:null===t?o:[o,t]}},Ti=null,ki=null,Pi=null,Oi=!1,Ei={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},Ni=Fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mi=/^(.*)[\\\/]/,Ki="function"==typeof Symbol&&Symbol.for,Fi=Ki?Symbol.for("react.element"):60103,Ii=Ki?Symbol.for("react.portal"):60106,Ri=Ki?Symbol.for("react.fragment"):60107,Ai=Ki?Symbol.for("react.strict_mode"):60108,Di=Ki?Symbol.for("react.profiler"):60114,ji=Ki?Symbol.for("react.provider"):60109,Li=Ki?Symbol.for("react.context"):60110,Ui=Ki?Symbol.for("react.concurrent_mode"):60111,zi=Ki?Symbol.for("react.forward_ref"):60112,Vi=Ki?Symbol.for("react.suspense"):60113,Gi=Ki?Symbol.for("react.memo"):60115,Wi=Ki?Symbol.for("react.lazy"):60116,Bi="function"==typeof Symbol&&Symbol.iterator,Hi=/^[: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]*$/,qi=Object.prototype.hasOwnProperty,Yi={},Xi={},Qi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qi[e]=new oe(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qi[t]=new oe(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qi[e]=new oe(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qi[e]=new oe(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){Qi[e]=new oe(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Qi[e]=new oe(e,3,!0,e,null)}),["capture","download"].forEach(function(e){Qi[e]=new oe(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){Qi[e]=new oe(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){Qi[e]=new oe(e,5,!1,e.toLowerCase(),null)});var $i=/[\-:]([a-z])/g;"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($i,ae);Qi[t]=new oe(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($i,ae);Qi[t]=new oe(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($i,ae);Qi[t]=new oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Qi.tabIndex=new oe("tabIndex",1,!1,"tabindex",null);var Ji={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Zi=null,eo=null,to=!1;ti&&(to=Y("input")&&(!document.documentMode||9<document.documentMode));var no={eventTypes:Ji,_isInputEventSupported:to,extractEvents:function(e,t,n,r){var i=t?y(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=ye:H(i)?to?o=Ce:(o=we,a=xe):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Se),o&&(o=o(e,t)))return ve(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&pe(i,"number",i.value)}},ro=M.extend({view:null,detail:null}),io={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},oo=0,ao=0,so=!1,lo=!1,uo=ro.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:ke,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=oo;return oo=e.screenX,so?"mousemove"===e.type?e.screenX-t:0:(so=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=ao;return ao=e.screenY,lo?"mousemove"===e.type?e.screenY-t:0:(lo=!0,0)}}),co=uo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),fo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ho={eventTypes:fo,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?g(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=uo,s=fo.mouseLeave,l=fo.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=co,s=fo.pointerLeave,l=fo.pointerEnter,u="pointer");var c=null==o?i:y(o);if(i=null==t?i:y(t),e=a.getPooled(s,o,n,r),e.type=u+"leave",e.target=c,e.relatedTarget=i,n=a.getPooled(l,t,n,r),n.type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(t=o,i=r,u=0,a=t;a;a=_(a))u++;for(a=0,l=i;l;l=_(l))a++;for(;0<u-a;)t=_(t),u--;for(;0<a-u;)i=_(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=_(t),i=_(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=_(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=_(r);for(r=0;r<t.length;r++)S(t[r],"bubbled",e);for(r=o.length;0<r--;)S(o[r],"captured",n);return[e,n]}},po=Object.prototype.hasOwnProperty,vo=M.extend({animationName:null,elapsedTime:null,pseudoElement:null}),go=M.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mo=ro.extend({relatedTarget:null}),yo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bo={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"},_o=ro.extend({key:function(e){if(e.key){var t=yo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Fe(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?bo[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:ke,charCode:function(e){return"keypress"===e.type?Fe(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Fe(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xo=uo.extend({dataTransfer:null}),wo=ro.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:ke}),So=M.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Co=uo.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}),To=[["abort","abort"],[oi,"animationEnd"],[ai,"animationIteration"],[si,"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"],[li,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],ko={},Po={};[["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){Ie(e,!0)}),To.forEach(function(e){Ie(e,!1)});var Oo={eventTypes:ko,isInteractiveTopLevelEventType:function(e){return void 0!==(e=Po[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=Po[e];if(!i)return null;switch(e){case"keypress":if(0===Fe(n))return null;case"keydown":case"keyup":e=_o;break;case"blur":case"focus":e=mo;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=uo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=xo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=wo;break;case oi:case ai:case si:e=vo;break;case li:e=So;break;case"scroll":e=ro;break;case"wheel":e=Co;break;case"copy":case"cut":case"paste":e=go;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=co;break;default:e=M}return t=e.getPooled(i,t,n,r),T(t),t}},Eo=Oo.isInteractiveTopLevelEventType,No=[],Mo=!0,Ko={},Fo=0,Io="_reactListenersID"+(""+Math.random()).slice(2),Ro=ti&&"documentMode"in document&&11>=document.documentMode,Ao={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Do=null,jo=null,Lo=null,Uo=!1,zo={eventTypes:Ao,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Ue(o),i=Hr.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?y(t):window,e){case"focus":(H(o)||"true"===o.contentEditable)&&(Do=o,jo=t,Lo=null);break;case"blur":Lo=jo=Do=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":return Uo=!1,qe(n,r);case"selectionchange":if(Ro)break;case"keydown":case"keyup":return qe(n,r)}return null}};$r.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),qr=b,Yr=m,Xr=y,$r.injectEventPluginsByName({SimpleEventPlugin:Oo,EnterLeaveEventPlugin:ho,ChangeEventPlugin:no,SelectEventPlugin:zo,BeforeInputEventPlugin:Ci});var Vo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Go=void 0,Wo=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Vo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Go=Go||document.createElement("div"),Go.innerHTML="<svg>"+t+"</svg>",t=Go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Bo={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},Ho=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){Ho.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});var qo=Ir({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}),Yo=null,Xo=null,Qo="function"==typeof setTimeout?setTimeout:void 0,$o="function"==typeof clearTimeout?clearTimeout:void 0;new Set;var Jo=[],Zo=-1,ea={},ta={current:ea},na={current:!1},ra=ea,ia=null,oa=null,aa=!1,sa={current:null},la=null,ua=null,ca=null,fa={},da={current:fa},ha={current:fa},pa={current:fa},va=Ni.ReactCurrentOwner,ga=(new Fr.Component).refs,ma={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Ee(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=lr();r=Zn(r,e);var i=Vt(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Yn(),Wt(e,i),nr(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=lr();r=Zn(r,e);var i=Vt(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Yn(),Wt(e,i),nr(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=lr();n=Zn(n,e);var r=Vt(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Yn(),Wt(e,r),nr(e,n)}},ya=Array.isArray,ba=mn(!0),_a=mn(!1),xa=null,wa=null,Sa=!1,Ca=Ni.ReactCurrentOwner,Ta=void 0,ka=void 0,Pa=void 0,Oa=void 0;Ta=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}},ka=function(){},Pa=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(nn(da.current),e=null,n){case"input":o=ue(a,o),r=ue(a,r),e=[];break;case"option":o=Xe(a,o),r=Xe(a,r),e=[];break;case"select":o=Ir({},o,{value:void 0}),r=Ir({},r,{value:void 0}),e=[];break;case"textarea":o=$e(a,o),r=$e(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=ut)}at(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(Br.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(Br.hasOwnProperty(n)?(null!=u&<(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&An(t)}},Oa=function(e,t,n,r){n!==r&&An(t)};var Ea={readContext:tn},Na=Ni.ReactCurrentOwner,Ma=1073741822,Ka=0,Fa=!1,Ia=null,Ra=null,Aa=0,Da=-1,ja=!1,La=null,Ua=!1,za=null,Va=null,Ga=null,Wa=null,Ba=null,Ha=0,qa=void 0,Ya=!1,Xa=null,Qa=0,$a=0,Ja=!1,Za=null,es=!1,ts=!1,ns=!1,rs=null,is=Rr.unstable_now(),os=1073741822-(is/10|0),as=os,ss=50,ls=0,us=null,cs=!1;Ti=function(e,t,n){switch(t){case"input":if(de(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=b(r);o||i("90"),J(r),de(r,o)}}}break;case"textarea":Ze(e,n);break;case"select":null!=(t=n.value)&&Qe(e,!!n.multiple,t,!1)}},Tr.prototype.render=function(e){this._defer||i("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new kr;return xr(e,t,null,n,r._onCommit),r},Tr.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Tr.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||i("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&&i("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,pr(e,n),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Tr.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])()}},kr.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},kr.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&&i("191",n),n()}}},Pr.prototype.render=function(e,t){var n=this._internalRoot,r=new kr;return t=void 0===t?null:t,null!==t&&r.then(t),wr(e,n,null,r._onCommit),r},Pr.prototype.unmount=function(e){var t=this._internalRoot,n=new kr;return e=void 0===e?null:e,null!==e&&n.then(e),wr(null,t,null,n._onCommit),n},Pr.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new kr;return n=void 0===n?null:n,null!==n&&i.then(n),wr(t,r,e,i._onCommit),i},Pr.prototype.createBatch=function(){var e=new Tr(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},V=yr,G=_r,W=function(){Ya||0===$a||(hr($a,!1),$a=0)};var fs={createPortal:Mr,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?i("188"):i("268",Object.keys(e))),e=Ke(t),e=null===e?null:e.stateNode},hydrate:function(e,t,n){return Nr(null,e,t,!0,n)},render:function(e,t,n){return Nr(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&i("38"),Nr(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Or(e)||i("40"),!!e._reactRootContainer&&(br(function(){Nr(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Mr.apply(void 0,arguments)},unstable_batchedUpdates:yr,unstable_interactiveUpdates:_r,flushSync:function(e,t){Ya&&i("187");var n=es;es=!0;try{return rr(e,t)}finally{es=n,hr(1073741823,!1)}},unstable_flushControlled:function(e){var t=es;es=!0;try{rr(e)}finally{(es=t)||Ya||hr(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[m,y,b,$r.injectEventPluginsByName,Wr,T,function(e){d(e,C)},U,z,Le,v]},unstable_createRoot:function(e,t){return Or(e)||i("299","unstable_createRoot"),new Pr(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;Tt(Ir({},e,{findHostInstanceByFiber:function(e){return e=Ke(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:g,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var ds={default:fs},hs=ds&&fs||ds;e.exports=hs.default||hs},function(e,t,n){"use strict";function r(){if(!g){var e=f.expirationTime;m?T():m=!0,C(a,e)}}function i(){var e=f,t=f.next;if(f===t)f=null;else{var n=f.previous;f=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=h,o=v;h=e,v=t;try{var a=n()}finally{h=i,v=o}if("function"==typeof a)if(a={callback:a,priorityLevel:e,expirationTime:t,next:null,previous:null},null===f)f=a.next=a.previous=a;else{n=null,e=f;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==f);null===n?n=f:n===f&&(f=a,r()),t=n.previous,t.next=n.previous=a,a.next=n,a.previous=t}}function o(){if(-1===p&&null!==f&&1===f.priorityLevel){g=!0;try{do{i()}while(null!==f&&1===f.priorityLevel)}finally{g=!1,null!==f?r():m=!1}}}function a(e){g=!0;var n=d;d=e;try{if(e)for(;null!==f;){var a=t.unstable_now();if(!(f.expirationTime<=a))break;do{i()}while(null!==f&&f.expirationTime<=a)}else if(null!==f)do{i()}while(null!==f&&!k())}finally{g=!1,d=n,null!==f?r():m=!1,o()}}function s(e){u=x(function(t){_(c),e(t)}),c=b(function(){w(u),e(t.unstable_now())},100)}/** @license React v16.6.1
|
45
45
|
* scheduler.production.min.js
|
46
46
|
*
|
47
47
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -49,7 +49,7 @@ var Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){r
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
51
51
|
*/
|
52
|
-
var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u,c,f=null,d=!1,h=3,p=-1,v=-1,g=!1,m=!1,y=Date,b="function"==typeof setTimeout?setTimeout:void 0,_="function"==typeof clearTimeout?clearTimeout:void 0,x="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,w="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;if("object"===("undefined"==typeof performance?"undefined":l(performance))&&"function"==typeof performance.now){var S=performance;t.unstable_now=function(){return S.now()}}else t.unstable_now=function(){return y.now()};var C,T,k;if("undefined"!=typeof window&&window._schedMock){var P=window._schedMock;C=P[0],T=P[1],k=P[2]}else if("undefined"==typeof window||"function"!=typeof window.addEventListener){var O=null,E=-1,N=function(e,t){if(null!==O){var n=O;O=null;try{E=t,n(e)}finally{E=-1}}};C=function(e,t){-1!==E?setTimeout(C,0,e,t):(O=e,setTimeout(N,t,!0,t),setTimeout(N,1073741823,!1,1073741823))},T=function(){O=null},k=function(){return!1},t.unstable_now=function(){return-1===E?0:E}}else{"undefined"!=typeof console&&("function"!=typeof x&&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 w&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var
|
52
|
+
var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u,c,f=null,d=!1,h=3,p=-1,v=-1,g=!1,m=!1,y=Date,b="function"==typeof setTimeout?setTimeout:void 0,_="function"==typeof clearTimeout?clearTimeout:void 0,x="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,w="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;if("object"===("undefined"==typeof performance?"undefined":l(performance))&&"function"==typeof performance.now){var S=performance;t.unstable_now=function(){return S.now()}}else t.unstable_now=function(){return y.now()};var C,T,k;if("undefined"!=typeof window&&window._schedMock){var P=window._schedMock;C=P[0],T=P[1],k=P[2]}else if("undefined"==typeof window||"function"!=typeof window.addEventListener){var O=null,E=-1,N=function(e,t){if(null!==O){var n=O;O=null;try{E=t,n(e)}finally{E=-1}}};C=function(e,t){-1!==E?setTimeout(C,0,e,t):(O=e,setTimeout(N,t,!0,t),setTimeout(N,1073741823,!1,1073741823))},T=function(){O=null},k=function(){return!1},t.unstable_now=function(){return-1===E?0:E}}else{"undefined"!=typeof console&&("function"!=typeof x&&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 w&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var M=null,K=!1,F=-1,I=!1,R=!1,A=0,D=33,j=33;k=function(){return A<=t.unstable_now()};var L="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===L){K=!1,e=M;var n=F;M=null,F=-1;var r=t.unstable_now(),i=!1;if(0>=A-r){if(!(-1!==n&&n<=r))return I||(I=!0,s(U)),M=e,void(F=n);i=!0}if(null!==e){R=!0;try{e(i)}finally{R=!1}}}},!1);var U=function e(t){if(null!==M){s(e);var n=t-A+j;n<j&&D<j?(8>n&&(n=8),j=n<D?D:n):D=n,A=t+j,K||(K=!0,window.postMessage(L,"*"))}else I=!1};C=function(e,t){M=e,F=t,R||0>t?window.postMessage(L,"*"):I||(I=!0,s(U))},T=function(){M=null,K=!1,F=-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=h,i=p;h=e,p=t.unstable_now();try{return n()}finally{h=r,p=i,o()}},t.unstable_scheduleCallback=function(e,n){var i=-1!==p?p:t.unstable_now();if("object"===(void 0===n?"undefined":l(n))&&null!==n&&"number"==typeof n.timeout)n=i+n.timeout;else switch(h){case 1:n=i+-1;break;case 2:n=i+250;break;case 5:n=i+1073741823;break;case 4:n=i+1e4;break;default:n=i+5e3}if(e={callback:e,priorityLevel:h,expirationTime:n,next:null,previous:null},null===f)f=e.next=e.previous=e,r();else{i=null;var o=f;do{if(o.expirationTime>n){i=o;break}o=o.next}while(o!==f);null===i?i=f:i===f&&(f=e,r()),n=i.previous,n.next=i.previous=e,e.next=i,e.previous=n}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)f=null;else{e===f&&(f=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=h;return function(){var r=h,i=p;h=n,p=t.unstable_now();try{return e.apply(this,arguments)}finally{h=r,p=i,o()}}},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_shouldYield=function(){return!d&&(null!==f&&f.expirationTime<v||k())}},function(e,t,n){"use strict";function r(){}var i=n(143);e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,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){"use strict";e.exports=n(145)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/** @license React v16.6.1
|
53
53
|
* react-reconciler.production.min.js
|
54
54
|
*
|
55
55
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -57,5 +57,5 @@ var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){re
|
|
57
57
|
* This source code is licensed under the MIT license found in the
|
58
58
|
* LICENSE file in the root directory of this source tree.
|
59
59
|
*/
|
60
|
-
e.exports=function t(i){function o(e,t,n,r,i,o,a,s){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 l=[n,r,i,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}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]);o(!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)}function s(e){return null===e||"object"!==(void 0===e?"undefined":r(e))?null:(e=zt&&e[zt]||e["@@iterator"],"function"==typeof e?e:null)}function l(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 At:return"ConcurrentMode";case Kt:return"Fragment";case Nt:return"Portal";case Ft:return"Profiler";case Mt:return"StrictMode";case jt:return"Suspense"}if("object"===(void 0===e?"undefined":r(e)))switch(e.$$typeof){case Rt:return"Context.Consumer";case It:return"Context.Provider";case Dt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Lt:return l(e.type);case Ut:if(e=1===e._status?e._result:null)return l(e)}return null}function u(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(t=t.return,0!=(2&t.effectTag))return 1}return 3===t.tag?2:3}function c(e){2!==u(e)&&a("188")}function f(e){var t=e.alternate;if(!t)return t=u(e),3===t&&a("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var s=i.child;s;){if(s===n)return c(i),e;if(s===r)return c(i),t;s=s.sibling}a("188")}if(n.return!==r.return)n=i,r=o;else{s=!1;for(var l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}s||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}function d(e){if(!(e=f(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function h(e){if(!(e=f(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function p(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,i=l(e.type),o=null;n&&(o=l(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Un,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}function v(e){0>Vn||(e.current=zn[Vn],zn[Vn]=null,Vn--)}function g(e,t){Vn++,zn[Vn]=e.current,e.current=t}function m(e,t){var n=e.type.contextTypes;if(!n)return Gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function y(e){return null!==(e=e.childContextTypes)&&void 0!==e}function b(e){v(Bn,e),v(Wn,e)}function _(e){v(Bn,e),v(Wn,e)}function x(e,t,n){Wn.current!==Gn&&a("168"),g(Wn,t,e),g(Bn,n,e)}function w(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var i in r)i in e||a("108",l(t)||"Unknown",i);return Ct({},n,r)}function S(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Gn,Hn=Wn.current,g(Wn,t,e),g(Bn,Bn.current,e),!0}function C(e,t,n){var r=e.stateNode;r||a("169"),n?(t=w(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=t,v(Bn,e),v(Wn,e),g(Wn,t,e)):v(Bn,e),g(Bn,n,e)}function T(e){return function(t){try{return e(t)}catch(e){}}}function k(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);qn=T(function(e){return t.onCommitFiberRoot(n,e)}),Yn=T(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function P(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 O(e,t,n,r){return new P(e,t,n,r)}function E(e){return!(!(e=e.prototype)||!e.isReactComponent)}function N(e){if("function"==typeof e)return E(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Dt)return 11;if(e===Lt)return 14}return 2}function K(e,t){var n=e.alternate;return null===n?(n=O(e.tag,t,e.key,e.mode),n.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 M(e,t,n,i,o,s){var l=2;if(i=e,"function"==typeof e)E(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Kt:return F(n.children,o,s,t);case At:return I(n,3|o,s,t);case Mt:return I(n,2|o,s,t);case Ft:return e=O(12,n,t,4|o),e.elementType=Ft,e.type=Ft,e.expirationTime=s,e;case jt:return e=O(13,n,t,o),e.elementType=jt,e.type=jt,e.expirationTime=s,e;default:if("object"===(void 0===e?"undefined":r(e))&&null!==e)switch(e.$$typeof){case It:l=10;break e;case Rt:l=9;break e;case Dt:l=11;break e;case Lt:l=14;break e;case Ut:l=16,i=null;break e}a("130",null==e?e:void 0===e?"undefined":r(e),"")}return t=O(l,n,t,o),t.elementType=e,t.type=i,t.expirationTime=s,t}function F(e,t,n,r){return e=O(7,e,r,t),e.expirationTime=n,e}function I(e,t,n,r){return e=O(8,e,r,t),t=0==(1&t)?Mt:At,e.elementType=t,e.type=t,e.expirationTime=n,e}function R(e,t,n){return e=O(6,e,null,t),e.expirationTime=n,e}function A(e,t,n){return t=O(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D(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),U(t,e)}function j(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),U(t,e)}function L(e,t){var n=e.earliestPendingTime;return e=e.earliestSuspendedTime,n>t&&(t=n),e>t&&(t=e),t}function U(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;i=0!==i?i:o,0===i&&(0===e||r<e)&&(i=r),e=i,0!==e&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function z(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function V(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function G(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function W(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function B(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=z(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=z(e.memoizedState),i=n.updateQueue=z(n.memoizedState)):r=e.updateQueue=V(i):null===i&&(i=n.updateQueue=V(r));null===i||r===i?W(r,t):null===r.lastUpdate||null===i.lastUpdate?(W(r,t),W(i,t)):(W(r,t),i.lastUpdate=t)}function H(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=z(e.memoizedState):q(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function q(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=V(t)),t}function Y(e,t,n,r,i,o){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(i="function"==typeof e?e.call(o,r,i):e)||void 0===i)break;return Ct({},r,i);case 2:Xn=!0}return r}function X(e,t,n,r,i){Xn=!1,t=q(e,t);for(var o=t.baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=Y(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<i?(null===c&&(c=l,null===a&&(o=u)),s<f&&(s=f)):(u=Y(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Q(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),$(t.firstEffect,n),t.firstEffect=t.lastEffect=null,$(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function $(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 J(e,t){return{value:e,source:t,stack:p(t)}}function Z(e,t){var n=e.type._context;ln?(g(Qn,n._currentValue,e),n._currentValue=t):(g(Qn,n._currentValue2,e),n._currentValue2=t)}function ee(e){var t=Qn.current;v(Qn,e),e=e.type._context,ln?e._currentValue=t:e._currentValue2=t}function te(e){$n=e,Zn=Jn=null,e.firstContextDependency=null}function ne(e,t){return Zn!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Zn=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jn?(null===$n&&a("293"),$n.firstContextDependency=Jn=t):Jn=Jn.next=t),ln?e._currentValue:e._currentValue2}function re(e){return e===er&&a("174"),e}function ie(e,t){g(rr,t,e),g(nr,e,e),g(tr,er,e),t=Gt(t),v(tr,e),g(tr,t,e)}function oe(e){v(tr,e),v(nr,e),v(rr,e)}function ae(){return re(tr.current)}function se(e){var t=re(rr.current),n=re(tr.current);t=Wt(n,e.type,t),n!==t&&(g(nr,e,e),g(tr,t,e))}function le(e){nr.current===e&&(v(tr,e),v(nr,e))}function ue(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function ce(e,t){if(ue(e,t))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!ir.call(t,n[i])||!ue(e[n[i]],t[n[i]]))return!1;return!0}function fe(e,t){if(e&&e.defaultProps){t=Ct({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function de(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,t=e._ctor,t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}function he(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:Ct({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}function pe(e,t,n,r,i,o,a){return e=e.stateNode,"function"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ce(n,r)||!ce(i,o))}function ve(e,t,n){var i=!1,o=Gn,a=t.contextType;return"object"===(void 0===a?"undefined":r(a))&&null!==a?a=or.currentDispatcher.readContext(a):(o=y(t)?Hn:Wn.current,i=t.contextTypes,a=(i=null!==i&&void 0!==i)?m(e,o):Gn),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sr,e.stateNode=t,t._reactInternalFiber=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ge(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&&sr.enqueueReplaceState(t,t.state,null)}function me(e,t,n,i){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ar;var a=t.contextType;"object"===(void 0===a?"undefined":r(a))&&null!==a?o.context=or.currentDispatcher.readContext(a):(a=y(t)?Hn:Wn.current,o.context=m(e,a)),a=e.updateQueue,null!==a&&(X(e,a,n,o,i),o.state=e.memoizedState),a=t.getDerivedStateFromProps,"function"==typeof a&&(he(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&sr.enqueueReplaceState(o,o.state,null),null!==(a=e.updateQueue)&&(X(e,a,n,o,i),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}function ye(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==(void 0===e?"undefined":r(e))){if(n._owner){n=n._owner;var i=void 0;n&&(1!==n.tag&&a("289"),i=n.stateNode),i||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=i.refs;t===ar&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function be(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function _e(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 i(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=K(e,t,n),e.index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?(t=R(n,e.mode,r),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function f(e,t,n,r){return null!==t&&t.elementType===n.type?(r=o(t,n.props,r),r.ref=ye(e,t,n),r.return=e,r):(r=M(n.type,n.key,n.props,null,e.mode,r),r.ref=ye(e,t,n),r.return=e,r)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=A(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[],r),t.return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?(t=F(n,e.mode,r,i),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return t=R(""+t,e.mode,n),t.return=e,t;if("object"===(void 0===t?"undefined":r(t))&&null!==t){switch(t.$$typeof){case Et:return n=M(t.type,t.key,t.props,null,e.mode,n),n.ref=ye(e,null,t),n.return=e,n;case Nt:return t=A(t,e.mode,n),t.return=e,t}if(lr(t)||s(t))return t=F(t,e.mode,n,null),t.return=e,t;be(e,t)}return null}function v(e,t,n,i){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,i);if("object"===(void 0===n?"undefined":r(n))&&null!==n){switch(n.$$typeof){case Et:return n.key===o?n.type===Kt?h(e,t,n.props.children,i,o):f(e,t,n,i):null;case Nt:return n.key===o?d(e,t,n,i):null}if(lr(n)||s(n))return null!==o?null:h(e,t,n,i,null);be(e,n)}return null}function g(e,t,n,i,o){if("string"==typeof i||"number"==typeof i)return e=e.get(n)||null,c(t,e,""+i,o);if("object"===(void 0===i?"undefined":r(i))&&null!==i){switch(i.$$typeof){case Et:return e=e.get(null===i.key?n:i.key)||null,i.type===Kt?h(t,e,i.props.children,o,i.key):f(t,e,i,o);case Nt:return e=e.get(null===i.key?n:i.key)||null,d(t,e,i,o)}if(lr(i)||s(i))return e=e.get(n)||null,h(t,e,i,o,null);be(t,i)}return null}function m(r,o,a,s){for(var u=null,c=null,f=o,d=o=0,h=null;null!==f&&d<a.length;d++){f.index>d?(h=f,f=null):h=f.sibling;var m=v(r,f,a[d],s);if(null===m){null===f&&(f=h);break}e&&f&&null===m.alternate&&t(r,f),o=l(m,o,d),null===c?u=m:c.sibling=m,c=m,f=h}if(d===a.length)return n(r,f),u;if(null===f){for(;d<a.length;d++)(f=p(r,a[d],s))&&(o=l(f,o,d),null===c?u=f:c.sibling=f,c=f);return u}for(f=i(r,f);d<a.length;d++)(h=g(f,r,d,a[d],s))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),o=l(h,o,d),null===c?u=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return t(r,e)}),u}function y(r,o,u,c){var f=s(u);"function"!=typeof f&&a("150"),null==(u=f.call(u))&&a("151");for(var d=f=null,h=o,m=o=0,y=null,b=u.next();null!==h&&!b.done;m++,b=u.next()){h.index>m?(y=h,h=null):y=h.sibling;var _=v(r,h,b.value,c);if(null===_){h||(h=y);break}e&&h&&null===_.alternate&&t(r,h),o=l(_,o,m),null===d?f=_:d.sibling=_,d=_,h=y}if(b.done)return n(r,h),f;if(null===h){for(;!b.done;m++,b=u.next())null!==(b=p(r,b.value,c))&&(o=l(b,o,m),null===d?f=b:d.sibling=b,d=b);return f}for(h=i(r,h);!b.done;m++,b=u.next())null!==(b=g(h,r,m,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),o=l(b,o,m),null===d?f=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(r,e)}),f}return function(e,i,l,c){var f="object"===(void 0===l?"undefined":r(l))&&null!==l&&l.type===Kt&&null===l.key;f&&(l=l.props.children);var d="object"===(void 0===l?"undefined":r(l))&&null!==l;if(d)switch(l.$$typeof){case Et:e:{for(d=l.key,f=i;null!==f;){if(f.key===d){if(7===f.tag?l.type===Kt:f.elementType===l.type){n(e,f.sibling),i=o(f,l.type===Kt?l.props.children:l.props,c),i.ref=ye(e,f,l),i.return=e,e=i;break e}n(e,f);break}t(e,f),f=f.sibling}l.type===Kt?(i=F(l.props.children,e.mode,c,l.key),i.return=e,e=i):(c=M(l.type,l.key,l.props,null,e.mode,c),c.ref=ye(e,i,l),c.return=e,e=c)}return u(e);case Nt:e:{for(f=l.key;null!==i;){if(i.key===f){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(e,i.sibling),i=o(i,l.children||[],c),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=A(l,e.mode,c),i.return=e,e=i}return u(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,l,c),i.return=e,e=i):(n(e,i),i=R(l,e.mode,c),i.return=e,e=i),u(e);if(lr(l))return m(e,i,l,c);if(s(l))return y(e,i,l,c);if(d&&be(e,l),void 0===l&&!f)switch(e.tag){case 1:case 0:c=e.type,a("152",c.displayName||c.name||"Component")}return n(e,i)}}function xe(e,t){var n=O(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 we(e,t){switch(e.tag){case 5:return null!==(t=In(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Rn(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Se(e){if(hr){var t=dr;if(t){var n=t;if(!we(e,t)){if(!(t=An(n))||!we(e,t))return e.effectTag|=2,hr=!1,void(fr=e);xe(fr,n)}fr=e,dr=Dn(t)}else e.effectTag|=2,hr=!1,fr=e}}function Ce(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;fr=e}function Te(e){if(!fn||e!==fr)return!1;if(!hr)return Ce(e),hr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$t(t,e.memoizedProps))for(t=dr;t;)xe(e,t),t=An(t);return Ce(e),dr=fr?An(e.stateNode):null,!0}function ke(){fn&&(dr=fr=null,hr=!1)}function Pe(e,t,n,r){t.child=null===e?cr(t,null,n,r):ur(t,e.child,n,r)}function Oe(e,t,n,r,i){n=n.render;var o=t.ref;return te(t,i),r=n(r,o),t.effectTag|=1,Pe(e,t,r,i),t.child}function Ee(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||E(a)||void 0!==a.defaultProps||null!==n.compare?(e=M(n.type,null,r,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ne(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,n=n.compare,(n=null!==n?n:ce)(i,r)&&e.ref===t.ref)?De(e,t,o):(t.effectTag|=1,e=K(a,r,o),e.ref=t.ref,e.return=t,t.child=e)}function Ne(e,t,n,r,i,o){return null!==e&&i<o&&ce(e.memoizedProps,r)&&e.ref===t.ref?De(e,t,o):Me(e,t,n,r,o)}function Ke(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Me(e,t,n,r,i){var o=y(n)?Hn:Wn.current;return o=m(t,o),te(t,i),n=n(r,o),t.effectTag|=1,Pe(e,t,n,i),t.child}function Fe(e,t,n,i,o){if(y(n)){var a=!0;S(t)}else a=!1;if(te(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ve(t,n,i,o),me(t,n,i,o),i=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;"object"===(void 0===c?"undefined":r(c))&&null!==c?c=or.currentDispatcher.readContext(c):(c=y(n)?Hn:Wn.current,c=m(t,c));var f=n.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||u!==c)&&ge(t,s,i,c),Xn=!1;var h=t.memoizedState;u=s.state=h;var p=t.updateQueue;null!==p&&(X(t,p,i,s,o),u=t.memoizedState),l!==i||h!==u||Bn.current||Xn?("function"==typeof f&&(he(t,n,f,i),u=t.memoizedState),(l=Xn||pe(t,n,l,i,h,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=u),s.props=i,s.state=u,s.context=c,i=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.stateNode,l=t.memoizedProps,s.props=t.type===t.elementType?l:fe(t.type,l),u=s.context,c=n.contextType,"object"===(void 0===c?"undefined":r(c))&&null!==c?c=or.currentDispatcher.readContext(c):(c=y(n)?Hn:Wn.current,c=m(t,c)),f=n.getDerivedStateFromProps,(d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||u!==c)&&ge(t,s,i,c),Xn=!1,u=t.memoizedState,h=s.state=u,p=t.updateQueue,null!==p&&(X(t,p,i,s,o),h=t.memoizedState),l!==i||u!==h||Bn.current||Xn?("function"==typeof f&&(he(t,n,f,i),h=t.memoizedState),(f=Xn||pe(t,n,l,i,u,h,c))?(d||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,h,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,h,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=h),s.props=i,s.state=h,s.context=c,i=f):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),i=!1);return Ie(e,t,n,i,a,o)}function Ie(e,t,n,r,i,o){Ke(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&C(t,n,!1),De(e,t,o);r=t.stateNode,pr.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ur(t,e.child,null,o),t.child=ur(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&C(t,n,!0),t.child}function Re(e){var t=e.stateNode;t.pendingContext?x(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x(e,t.context,!1),ie(e,t.containerInfo)}function Ae(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=i.fallback,i=F(null,r,0,null),0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=F(a,r,n,null),i.sibling=r,n=i,n.return=r.return=t):n=r=cr(t,null,i.children,n):null!==e.memoizedState?(r=e.child,e=r.sibling,a?(n=i.fallback,i=K(r,r.pendingProps,0),0==(1&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a),r=i.sibling=K(e,n,e.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=ur(t,r.child,i.children,n)):(e=e.child,a?(a=i.fallback,i=F(null,r,0,null),i.child=e,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=i.sibling=F(a,r,n,null),r.effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=ur(t,e,i.children,n)),t.memoizedState=o,t.child=n,r}function De(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(e=t.child,n=K(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=K(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function je(e,t,n){var i=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Bn.current&&i<n){switch(t.tag){case 3:Re(t),ke();break;case 5:se(t);break;case 1:y(t.type)&&S(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Z(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?Ae(e,t,n):(t=De(e,t,n),null!==t?t.sibling:null)}return De(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=m(t,Wn.current);if(te(t,n),o=i(e,o),t.effectTag|=1,"object"===(void 0===o?"undefined":r(o))&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,y(i)){var s=!0;S(t)}else s=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=i.getDerivedStateFromProps;"function"==typeof l&&he(t,i,l,e),o.updater=sr,t.stateNode=o,o._reactInternalFiber=t,me(t,i,e,n),t=Ie(null,t,i,!0,s,n)}else t.tag=0,Pe(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),s=t.pendingProps,e=de(o),t.type=e,o=t.tag=N(e),s=fe(e,s),l=void 0,o){case 0:l=Me(null,t,e,s,n);break;case 1:l=Fe(null,t,e,s,n);break;case 11:l=Oe(null,t,e,s,n);break;case 14:l=Ee(null,t,e,fe(e.type,s),i,n);break;default:a("283",e)}return l;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Me(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Fe(e,t,i,o,n);case 3:return Re(t),i=t.updateQueue,null===i&&a("282"),o=t.memoizedState,o=null!==o?o.element:null,X(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o?(ke(),t=De(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(fn?(dr=Dn(t.stateNode.containerInfo),fr=t,o=hr=!0):o=!1),o?(t.effectTag|=2,t.child=cr(t,null,i,n)):(Pe(e,t,i,n),ke()),t=t.child),t;case 5:return se(t),null===e&&Se(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,l=o.children,$t(i,o)?l=null:null!==s&&$t(i,s)&&(t.effectTag|=16),Ke(e,t),1!==n&&1&t.mode&&Jt(i,o)?(t.expirationTime=1,t=null):(Pe(e,t,l,n),t=t.child),t;case 6:return null===e&&Se(t),null;case 13:return Ae(e,t,n);case 4:return ie(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ur(t,null,i,n):Pe(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Oe(e,t,i,o,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,Z(t,s),null!==l){var u=l.value;if(0===(s=u===s&&(0!==u||1/u==1/s)||u!==u&&s!==s?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(u,s):1073741823))){if(l.children===o.children&&!Bn.current){t=De(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){if(null!==(u=l.firstContextDependency))do{if(u.context===i&&0!=(u.observedBits&s)){if(1===l.tag){var c=G(n);c.tag=2,B(l,c)}l.expirationTime<n&&(l.expirationTime=n),c=l.alternate,null!==c&&c.expirationTime<n&&(c.expirationTime=n);for(var f=l.return;null!==f;){if(c=f.alternate,f.childExpirationTime<n)f.childExpirationTime=n,null!==c&&c.childExpirationTime<n&&(c.childExpirationTime=n);else{if(!(null!==c&&c.childExpirationTime<n))break;c.childExpirationTime=n}f=f.return}}c=l.child,u=u.next}while(null!==u);else c=10===l.tag&&l.type===t.type?null:l.child;if(null!==c)c.return=l;else for(c=l;null!==c;){if(c===t){c=null;break}if(null!==(l=c.sibling)){l.return=c.return,c=l;break}c=c.return}l=c}}Pe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps,i=s.children,te(t,n),o=ne(o,s.unstable_observedBits),i=i(o),t.effectTag|=1,Pe(e,t,i,n),t.child;case 14:return o=t.type,s=fe(o.type,t.pendingProps),Ee(e,t,o,s,i,n);case 15:return Ne(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,y(i)?(e=!0,S(t)):e=!1,te(t,n),ve(t,i,o,n),me(t,i,o,n),Ie(null,t,i,!0,e,n);default:a("156")}}function Le(e){e.effectTag|=4}function Ue(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=p(n)),null!==n&&l(n.type),t=t.value,null!==e&&1===e.tag&&l(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function ze(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){nt(e,t)}else t.current=null}function Ve(e){switch("function"==typeof Yn&&Yn(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 i=e;try{r()}catch(e){nt(i,e)}}n=n.next}while(n!==t)}break;case 1:if(ze(e),t=e.stateNode,"function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){nt(e,t)}break;case 5:ze(e);break;case 4:un?He(e):cn&&cn&&(e=e.stateNode.containerInfo,t=Pn(e),Nn(e,t))}}function Ge(e){for(var t=e;;)if(Ve(t),null===t.child||un&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function We(e){return 5===e.tag||3===e.tag||4===e.tag}function Be(e){if(un){e:{for(var t=e.return;null!==t;){if(We(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&&(xn(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||We(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 i=e;;){if(5===i.tag||6===i.tag)n?r?yn(t,i.stateNode,n):mn(t,i.stateNode,n):r?hn(t,i.stateNode):dn(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}}function He(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)Ge(t),i?_n(r,t.stateNode):bn(r,t.stateNode);else if(4===t.tag?(r=t.stateNode.containerInfo,i=!0):Ve(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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function qe(e,t){if(un)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;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&gn(n,o,i,e,r,t)}break;case 6:null===t.stateNode&&a("162"),n=t.memoizedProps,pn(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:case 12:break;case 13:if(r=t.memoizedState,e=t,null===r?n=!1:(n=!0,e=t.child,0===r.timedOutAt&&(r.timedOutAt=dt())),null!==e)e:if(t=e,un)for(r=t;;){if(5===r.tag)e=r.stateNode,n?wn(e):Cn(r.stateNode,r.memoizedProps);else if(6===r.tag)e=r.stateNode,n?Sn(e):Tn(e,r.memoizedProps);else{if(13===r.tag&&null!==r.memoizedState){e=r.child.sibling,e.return=r,r=e;continue}if(null!==r.child){r.child.return=r,r=r.child;continue}}if(r===t)break e;for(;null===r.sibling;){if(null===r.return||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}break;case 17:break;default:a("163")}else{switch(t.tag){case 0:case 11:case 14:case 15:return}if(cn)switch(t.tag){case 1:case 5:case 6:break;case 3:case 4:t=t.stateNode,Nn(t.containerInfo,t.pendingChildren);break;default:a("163")}}}function Ye(e,t,n){n=G(n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xt(r),Ue(e,t)},n}function Xe(e,t,n){n=G(n),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ir?Ir=new Set([this]):Ir.add(this));var n=t.value,i=t.stack;Ue(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function Qe(e){switch(e.tag){case 1:y(e.type)&&b(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return oe(e),_(e),t=e.effectTag,0!=(64&t)&&a("285"),e.effectTag=-2049&t|64,e;case 5:return le(e),null;case 13:return t=e.effectTag,2048&t?(e.effectTag=-2049&t|64,e):null;case 4:return oe(e),null;case 10:return ee(e),null;default:return null}}function $e(){if(null!==Tr)for(var e=Tr.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!==n&&void 0!==n&&b(t);break;case 3:oe(t),_(t);break;case 5:le(t);break;case 4:oe(t);break;case 10:ee(t)}e=e.return}kr=null,Pr=0,Or=-1,Er=!1,Tr=null}function Je(){null!==Fr&&(kt.unstable_cancelCallback(Mr),Fr())}function Ze(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Tr=e;e:{var i=t;t=e;var o=Pr,s=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:y(t.type)&&b(t);break;case 3:oe(t),_(t),s=t.stateNode,s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==i&&null!==i.child||(Te(t),t.effectTag&=-3),gr(t);break;case 5:le(t),o=re(rr.current);var l=t.type;if(null!==i&&null!=t.stateNode)mr(i,t,l,s,o),i.ref!==t.ref&&(t.effectTag|=128);else if(s){if(i=ae(),Te(t))s=t,fn||a("175"),i=jn(s.stateNode,s.type,s.memoizedProps,o,i,s),s.updateQueue=i,(i=null!==i)&&Le(t);else{var u=qt(l,s,o,i,t);vr(u,t,!1,!1),Xt(u,l,s,o,i)&&Le(t),t.stateNode=u}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?yr(i,t,i.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&a("166")),i=re(rr.current),o=ae(),Te(t)?(i=t,fn||a("176"),(i=Ln(i.stateNode,i.memoizedProps,i))&&Le(t)):t.stateNode=Zt(s,i,o,t));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,Tr=t;break e}s=null!==s,o=null!==i&&null!==i.memoizedState,null!==i&&!s&&o&&null!==(i=i.child.sibling)&&(l=t.firstEffect,null!==l?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8),(s!==o||0==(1&t.effectTag)&&s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:oe(t),gr(t);break;case 10:ee(t);break;case 9:case 14:break;case 17:y(t.type)&&b(t);break;default:a("156")}Tr=null}if(t=e,1===Pr||1!==t.childExpirationTime){for(i=0,s=t.child;null!==s;)o=s.expirationTime,l=s.childExpirationTime,o>i&&(i=o),l>i&&(i=l),s=s.sibling;t.childExpirationTime=i}if(null!==Tr)return Tr;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=Qe(e,Pr)))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 et(e){var t=je(e.alternate,e,Pr);return e.memoizedProps=e.pendingProps,null===t&&(t=Ze(e)),xr.current=null,t}function tt(e,t){Cr&&a("243"),Je(),Cr=!0,xr.currentDispatcher=_r;var n=e.nextExpirationTimeToWorkOn;n===Pr&&e===kr&&null!==Tr||($e(),kr=e,Pr=n,Tr=K(kr.current,null,Pr),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==Tr&&!vt();)Tr=et(Tr);else for(;null!==Tr;)Tr=et(Tr)}catch(t){if(Zn=Jn=$n=null,null===Tr)i=!0,xt(t);else{null===Tr&&a("271");var o=Tr,s=o.return;if(null!==s){e:{var u=e,c=s,f=o,d=t;if(s=Pr,f.effectTag|=1024,f.firstEffect=f.lastEffect=null,null!==d&&"object"===(void 0===d?"undefined":r(d))&&"function"==typeof d.then){var h=d;d=c;var v=-1,g=-1;do{if(13===d.tag){var m=d.alternate;if(null!==m&&null!==(m=m.memoizedState)){g=10*(1073741822-m.timedOutAt);break}m=d.pendingProps.maxDuration,"number"==typeof m&&(0>=m?v=0:(-1===v||m<v)&&(v=m))}d=d.return}while(null!==d);d=c;do{if((m=13===d.tag)&&(m=void 0!==d.memoizedProps.fallback&&null===d.memoizedState),m){if(c=it.bind(null,u,d,f,0==(1&d.mode)?1073741823:s),h.then(c,c),0==(1&d.mode)){d.effectTag|=64,f.effectTag&=-1957,1===f.tag&&null===f.alternate&&(f.tag=17),f.expirationTime=s;break e}-1===v?u=1073741823:(-1===g&&(g=10*(1073741822-L(u,s))-5e3),u=g+v),0<=u&&Or<u&&(Or=u),d.effectTag|=2048,d.expirationTime=s;break e}d=d.return}while(null!==d);d=Error((l(f.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."+p(f))}Er=!0,d=J(d,f),u=c;do{switch(u.tag){case 3:f=d,u.effectTag|=2048,u.expirationTime=s,s=Ye(u,f,s),H(u,s);break e;case 1:if(f=d,c=u.type,h=u.stateNode,0==(64&u.effectTag)&&("function"==typeof c.getDerivedStateFromError||null!==h&&"function"==typeof h.componentDidCatch&&(null===Ir||!Ir.has(h)))){u.effectTag|=2048,u.expirationTime=s,s=Xe(u,f,s),H(u,s);break e}}u=u.return}while(null!==u)}Tr=Ze(o);continue}i=!0,xt(t)}}break}if(Cr=!1,Zn=Jn=$n=xr.currentDispatcher=null,i)kr=null,e.finishedWork=null;else if(null!==Tr)e.finishedWork=null;else{if(i=e.current.alternate,null===i&&a("281"),kr=null,Er){if(o=e.latestPendingTime,s=e.latestSuspendedTime,u=e.latestPingedTime,0!==o&&o<n||0!==s&&s<n||0!==u&&u<n)return j(e,n),void ct(e,i,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ct(e,i,n,t,-1)}t&&-1!==Or?(j(e,n),t=10*(1073741822-L(e,n)),t<Or&&(Or=t),t=10*(1073741822-dt()),t=Or-t,ct(e,i,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=i)}}function nt(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===Ir||!Ir.has(r)))return e=J(t,e),e=Xe(n,e,1073741823),B(n,e),void at(n,1073741823);break;case 3:return e=J(t,e),e=Ye(n,e,1073741823),B(n,e),void at(n,1073741823)}n=n.return}3===e.tag&&(n=J(t,e),n=Ye(e,n,1073741823),B(e,n),at(e,1073741823))}function rt(e,t){return 0!==Sr?e=Sr:Cr?e=Kr?1073741823:Pr:1&t.mode?(e=qr?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==kr&&e===Pr&&--e):e=1073741823,qr&&(0===Vr||e<Vr)&&(Vr=e),e}function it(e,t,n,r){var i=e.earliestSuspendedTime,o=e.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>o)&&(e.latestPingedTime=o),U(o,e)}else i=dt(),i=rt(i,t),D(e,i);0!=(1&t.mode)&&e===kr&&Pr===r&&(kr=null),ot(t,i),0==(1&t.mode)&&(ot(n,i),1===n.tag&&null!==n.stateNode&&(t=G(i),t.tag=2,B(n,t))),0!==(n=e.expirationTime)&&ht(e,n)}function ot(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=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){i=r.stateNode;break}r=r.return}return i}function at(e,t){null!==(e=ot(e,t))&&(!Cr&&0!==Pr&&t>Pr&&$e(),D(e,t),Cr&&!Kr&&kr===e||ht(e,e.expirationTime),Zr>Jr&&(Zr=0,a("185")))}function st(e,t,n,r,i){var o=Sr;Sr=1073741823;try{return e(t,n,r,i)}finally{Sr=o}}function lt(){Qr=1073741822-((sn()-Xr)/10|0)}function ut(e,t){if(0!==Dr){if(t<Dr)return;null!==jr&&tn(jr)}Dr=t,e=sn()-Xr,jr=en(gt,{timeout:10*(1073741822-t)-e})}function ct(e,t,n,r,i){e.expirationTime=r,0!==i||vt()?0<i&&(e.timeoutHandle=rn(ft.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function ft(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,lt(),$r=Qr,yt(e,n)}function dt(){return Lr?$r:(pt(),0!==zr&&1!==zr||(lt(),$r=Qr),$r)}function ht(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Ar?(Rr=Ar=e,e.nextScheduledRoot=e):(Ar=Ar.nextScheduledRoot=e,Ar.nextScheduledRoot=Rr)):t>e.expirationTime&&(e.expirationTime=t),Lr||(Br?Hr&&(Ur=e,zr=1073741823,bt(e,1073741823,!1)):1073741823===t?mt(1073741823,!1):ut(e,t))}function pt(){var e=0,t=null;if(null!==Ar)for(var n=Ar,r=Rr;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===Ar)&&a("244"),r===r.nextScheduledRoot){Rr=Ar=r.nextScheduledRoot=null;break}if(r===Rr)Rr=i=r.nextScheduledRoot,Ar.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===Ar){Ar=n,Ar.nextScheduledRoot=Rr,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===Ar)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Ur=t,zr=e}function vt(){return!!ti||!!nn()&&(ti=!0)}function gt(){try{if(!vt()&&null!==Rr){lt();var e=Rr;do{var t=e.expirationTime;0!==t&&Qr<=t&&(e.nextExpirationTimeToWorkOn=Qr),e=e.nextScheduledRoot}while(e!==Rr)}mt(0,!0)}finally{ti=!1}}function mt(e,t){if(pt(),t)for(lt(),$r=Qr;null!==Ur&&0!==zr&&e<=zr&&!(ti&&Qr>zr);)bt(Ur,zr,Qr>zr),pt(),lt(),$r=Qr;else for(;null!==Ur&&0!==zr&&e<=zr;)bt(Ur,zr,!1),pt();if(t&&(Dr=0,jr=null),0!==zr&&ut(Ur,zr),Zr=0,ei=null,null!==Yr)for(e=Yr,Yr=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Gr||(Gr=!0,Wr=e)}}if(Gr)throw e=Wr,Wr=null,Gr=!1,e}function yt(e,t){Lr&&a("253"),Ur=e,zr=t,bt(e,t,!1),mt(1073741823,!1)}function bt(e,t,n){if(Lr&&a("245"),Lr=!0,n){var r=e.finishedWork;null!==r?_t(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,r!==an&&(e.timeoutHandle=an,on(r)),tt(e,n),null!==(r=e.finishedWork)&&(vt()?e.finishedWork=r:_t(e,r,t)))}else r=e.finishedWork,null!==r?_t(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,r!==an&&(e.timeoutHandle=an,on(r)),tt(e,n),null!==(r=e.finishedWork)&&_t(e,r,t));Lr=!1}function _t(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===Yr?Yr=[r]:Yr.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ei?Zr++:(ei=e,Zr=0),Kr=Cr=!0,e.current===t&&a("177"),n=e.pendingCommitExpirationTime,0===n&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var i=t.childExpirationTime;for(r=i>r?i:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(i=e.latestPendingTime,0!==i&&(i>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),i=e.earliestSuspendedTime,0===i?D(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,D(e,r)):r>i&&D(e,r)),U(0,e),xr.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,Bt(e.containerInfo),Nr=r;null!==Nr;){i=!1;var o=void 0;try{for(;null!==Nr;){if(256&Nr.effectTag)e:{var s=Nr.alternate,l=Nr;switch(l.tag){case 0:case 11:case 15:break e;case 1:if(256&l.effectTag&&null!==s){var u=s.memoizedProps,c=s.memoizedState,f=l.stateNode,d=f.getSnapshotBeforeUpdate(l.elementType===l.type?u:fe(l.type,u),c);f.__reactInternalSnapshotBeforeUpdate=d}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Nr=Nr.nextEffect}}catch(e){i=!0,o=e}i&&(null===Nr&&a("178"),nt(Nr,o),null!==Nr&&(Nr=Nr.nextEffect))}for(Nr=r;null!==Nr;){s=!1,u=void 0;try{for(;null!==Nr;){var h=Nr.effectTag;if(16&h&&un&&xn(Nr.stateNode),128&h){var p=Nr.alternate;if(null!==p){var v=p.ref;null!==v&&("function"==typeof v?v(null):v.current=null)}}switch(14&h){case 2:Be(Nr),Nr.effectTag&=-3;break;case 6:Be(Nr),Nr.effectTag&=-3,qe(Nr.alternate,Nr);break;case 4:qe(Nr.alternate,Nr);break;case 8:c=Nr,un?He(c):Ge(c),c.return=null,c.child=null,c.alternate&&(c.alternate.child=null,c.alternate.return=null)}Nr=Nr.nextEffect}}catch(e){s=!0,u=e}s&&(null===Nr&&a("178"),nt(Nr,u),null!==Nr&&(Nr=Nr.nextEffect))}for(Ht(e.containerInfo),e.current=t,Nr=r;null!==Nr;){h=!1,p=void 0;try{for(v=n;null!==Nr;){var g=Nr.effectTag;if(36&g){var m=Nr.alternate;switch(s=Nr,u=v,s.tag){case 0:case 11:case 15:break;case 1:var y=s.stateNode;if(4&s.effectTag)if(null===m)y.componentDidMount();else{var b=s.elementType===s.type?m.memoizedProps:fe(s.type,m.memoizedProps);y.componentDidUpdate(b,m.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var _=s.updateQueue;null!==_&&Q(s,_,y,u);break;case 3:var x=s.updateQueue;if(null!==x){if(c=null,null!==s.child)switch(s.child.tag){case 5:c=Vt(s.child.stateNode);break;case 1:c=s.child.stateNode}Q(s,x,c,u)}break;case 5:var w=s.stateNode;null===m&&4&s.effectTag&&vn(w,s.type,s.memoizedProps,s);break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&g){var S=Nr.ref;if(null!==S){var C=Nr.stateNode;switch(Nr.tag){case 5:var T=Vt(C);break;default:T=C}"function"==typeof S?S(T):S.current=T}}Nr=Nr.nextEffect}}catch(e){h=!0,p=e}h&&(null===Nr&&a("178"),nt(Nr,p),null!==Nr&&(Nr=Nr.nextEffect))}Cr=Kr=!1,"function"==typeof qn&&qn(t.stateNode),g=t.expirationTime,t=t.childExpirationTime,t=t>g?t:g,0===t&&(Ir=null),e.expirationTime=t,e.finishedWork=null}function xt(e){null===Ur&&a("246"),Ur.expirationTime=0,Gr||(Gr=!0,Wr=e)}function wt(e,t,n,r,i){var o=t.current;e:if(n){n=n._reactInternalFiber;t:{2===u(n)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(y(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var l=n.type;if(y(l)){n=w(n,l,s);break e}}n=s}else n=Gn;return null===t.context?t.context=n:t.pendingContext=n,t=i,i=G(r),i.payload={element:e},t=void 0===t?null:t,null!==t&&(i.callback=t),Je(),B(o,i),at(o,r),r}function St(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=d(t),null===e?null:e.stateNode}var Ct=n(75),Tt=n(0),kt=n(41),Pt=Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ot="function"==typeof Symbol&&Symbol.for,Et=Ot?Symbol.for("react.element"):60103,Nt=Ot?Symbol.for("react.portal"):60106,Kt=Ot?Symbol.for("react.fragment"):60107,Mt=Ot?Symbol.for("react.strict_mode"):60108,Ft=Ot?Symbol.for("react.profiler"):60114,It=Ot?Symbol.for("react.provider"):60109,Rt=Ot?Symbol.for("react.context"):60110,At=Ot?Symbol.for("react.concurrent_mode"):60111,Dt=Ot?Symbol.for("react.forward_ref"):60112,jt=Ot?Symbol.for("react.suspense"):60113,Lt=Ot?Symbol.for("react.memo"):60115,Ut=Ot?Symbol.for("react.lazy"):60116,zt="function"==typeof Symbol&&Symbol.iterator,Vt=i.getPublicInstance,Gt=i.getRootHostContext,Wt=i.getChildHostContext,Bt=i.prepareForCommit,Ht=i.resetAfterCommit,qt=i.createInstance,Yt=i.appendInitialChild,Xt=i.finalizeInitialChildren,Qt=i.prepareUpdate,$t=i.shouldSetTextContent,Jt=i.shouldDeprioritizeSubtree,Zt=i.createTextInstance,en=i.scheduleDeferredCallback,tn=i.cancelDeferredCallback,nn=i.shouldYield,rn=i.setTimeout,on=i.clearTimeout,an=i.noTimeout,sn=i.now,ln=i.isPrimaryRenderer,un=i.supportsMutation,cn=i.supportsPersistence,fn=i.supportsHydration,dn=i.appendChild,hn=i.appendChildToContainer,pn=i.commitTextUpdate,vn=i.commitMount,gn=i.commitUpdate,mn=i.insertBefore,yn=i.insertInContainerBefore,bn=i.removeChild,_n=i.removeChildFromContainer,xn=i.resetTextContent,wn=i.hideInstance,Sn=i.hideTextInstance,Cn=i.unhideInstance,Tn=i.unhideTextInstance,kn=i.cloneInstance,Pn=i.createContainerChildSet,On=i.appendChildToContainerChildSet,En=i.finalizeContainerChildren,Nn=i.replaceContainerChildren,Kn=i.cloneHiddenInstance,Mn=i.cloneUnhiddenInstance,Fn=i.createHiddenTextInstance,In=i.canHydrateInstance,Rn=i.canHydrateTextInstance,An=i.getNextHydratableSibling,Dn=i.getFirstHydratableChild,jn=i.hydrateInstance,Ln=i.hydrateTextInstance,Un=/^(.*)[\\\/]/;new Set;var zn=[],Vn=-1,Gn={},Wn={current:Gn},Bn={current:!1},Hn=Gn,qn=null,Yn=null,Xn=!1,Qn={current:null},$n=null,Jn=null,Zn=null,er={},tr={current:er},nr={current:er},rr={current:er},ir=Object.prototype.hasOwnProperty,or=Pt.ReactCurrentOwner,ar=(new Tt.Component).refs,sr={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===u(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=dt();r=rt(r,e);var i=G(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Je(),B(e,i),at(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=dt();r=rt(r,e);var i=G(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Je(),B(e,i),at(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=dt();n=rt(n,e);var r=G(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Je(),B(e,r),at(e,n)}},lr=Array.isArray,ur=_e(!0),cr=_e(!1),fr=null,dr=null,hr=!1,pr=Pt.ReactCurrentOwner,vr=void 0,gr=void 0,mr=void 0,yr=void 0;if(un)vr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)Yt(e,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}},gr=function(){},mr=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var o=t.stateNode,a=ae();n=Qt(o,n,e,r,i,a),(t.updateQueue=n)&&Le(t)}},yr=function(e,t,n,r){n!==r&&Le(t)};else if(cn){vr=function(e,t,n,r){for(var i=t.child;null!==i;){e:if(5===i.tag){var o=i.stateNode;if(n){var a=i.memoizedProps,s=i.type;o=r?Kn(o,s,a,i):Mn(o,s,a,i),i.stateNode=o}Yt(e,o)}else if(6===i.tag)o=i.stateNode,n&&(o=i.memoizedProps,a=re(rr.current),s=ae(),o=r?Fn(o,a,s,t):Zt(o,a,s,t),i.stateNode=o),Yt(e,o);else if(4!==i.tag){if(13===i.tag&&null!==(a=i.alternate)&&(o=null!==i.memoizedState,null!==a.memoizedState!==o)){a=o?i.child:i,null!==a&&vr(e,a,!0,o);break e}if(null!==i.child){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var br=function e(t,n,r,i){for(var o=n.child;null!==o;){e:if(5===o.tag){var a=o.stateNode;if(r){var s=o.memoizedProps,l=o.type;a=i?Kn(a,l,s,o):Mn(a,l,s,o),o.stateNode=a}On(t,a)}else if(6===o.tag)a=o.stateNode,r&&(a=o.memoizedProps,s=re(rr.current),l=ae(),a=i?Fn(a,s,l,n):Zt(a,s,l,n),o.stateNode=a),On(t,a);else if(4!==o.tag){if(13===o.tag&&null!==(s=o.alternate)&&(a=null!==o.memoizedState,null!==s.memoizedState!==a)){s=a?o.child:o,null!==s&&e(t,s,!0,a);break e}if(null!==o.child){o.child.return=o,o=o.child;continue}}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};gr=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,r=Pn(n);br(r,e,!1,!1),t.pendingChildren=r,Le(e),En(n,r)}},mr=function(e,t,n,r,i){var o=e.stateNode,a=e.memoizedProps;if((e=null===t.firstEffect)&&a===r)t.stateNode=o;else{var s=t.stateNode,l=ae(),u=null;a!==r&&(u=Qt(s,n,a,r,i,l)),e&&null===u?t.stateNode=o:(o=kn(o,u,n,a,r,t,e,s),Xt(o,n,r,i,l)&&Le(t),t.stateNode=o,e?Le(t):vr(o,t,!1,!1))}},yr=function(e,t,n,r){n!==r&&(e=re(rr.current),n=ae(),t.stateNode=Zt(r,e,n,t),Le(t))}}else gr=function(){},mr=function(){},yr=function(){};var _r={readContext:ne},xr=Pt.ReactCurrentOwner,wr=1073741822,Sr=0,Cr=!1,Tr=null,kr=null,Pr=0,Or=-1,Er=!1,Nr=null,Kr=!1,Mr=null,Fr=null,Ir=null,Rr=null,Ar=null,Dr=0,jr=void 0,Lr=!1,Ur=null,zr=0,Vr=0,Gr=!1,Wr=null,Br=!1,Hr=!1,qr=!1,Yr=null,Xr=sn(),Qr=1073741822-(Xr/10|0),$r=Qr,Jr=50,Zr=0,ei=null,ti=!1,ni={updateContainerAtExpirationTime:wt,createContainer:function(e,t,n){return t=O(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:an,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e},updateContainer:function(e,t,n,r){var i=t.current;return i=rt(dt(),i),wt(e,t,n,i,r)},flushRoot:yt,requestWork:ht,computeUniqueAsyncExpiration:function(){var e=1073741822-25*(1+((1073741822-dt()+500)/25|0));return e>=wr&&(e=wr-1),wr=e},batchedUpdates:function(e,t){var n=Br;Br=!0;try{return e(t)}finally{(Br=n)||Lr||mt(1073741823,!1)}},unbatchedUpdates:function(e,t){if(Br&&!Hr){Hr=!0;try{return e(t)}finally{Hr=!1}}return e(t)},deferredUpdates:function(e){var t=dt(),n=Sr,r=qr;Sr=1073741822-25*(1+((1073741822-t+500)/25|0)),qr=!1;try{return e()}finally{Sr=n,qr=r}},syncUpdates:st,interactiveUpdates:function(e,t,n){if(qr)return e(t,n);Br||Lr||0===Vr||(mt(Vr,!1),Vr=0);var r=qr,i=Br;Br=qr=!0;try{return e(t,n)}finally{qr=r,(Br=i)||Lr||mt(1073741823,!1)}},flushInteractiveUpdates:function(){Lr||0===Vr||(mt(Vr,!1),Vr=0)},flushControlled:function(e){var t=Br;Br=!0;try{st(e)}finally{(Br=t)||Lr||mt(1073741823,!1)}},flushSync:function(e,t){Lr&&a("187");var n=Br;Br=!0;try{return st(e,t)}finally{Br=n,mt(1073741823,!1)}},getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return Vt(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:St,findHostInstanceWithWarning:function(e){return St(e)},findHostInstanceWithNoPortals:function(e){return e=h(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var t=e.findFiberByHostInstance;return k(Ct({},e,{findHostInstanceByFiber:function(e){return e=d(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}};e.exports=ni.default||ni;var ri=e.exports;return e.exports=t,ri}},function(e,t,n){"use strict";function r(e){if(e[s])return e[s];for(;!e[s];){if(!e.parentNode)return null;e=e.parentNode}var t=e[s];return t.tag===i||t.tag===o?t:null}t.__esModule=!0,t.getClosestInstanceFromNode=r;var i=5,o=6,a=Math.random().toString(36).slice(2),s="__reactInternalInstance$"+a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t)return void(0,D.default)(!1,'Don not use plain text as child of Konva.Node. You are using text: "%s"',t);e.add(t),(0,R.updatePicture)(e)}function o(e,t,n){var r=I.default[e];if(!r)return void(0,D.default)(i,'ReactKonva does not support the type "%s". If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html',e);var i=new r;return i._applyProps=R.applyNodeProps,i._applyProps(i,t),i}function a(e,t,n){(0,D.default)(!1,'Text components are not supported for now in ReactKonva. You text is: "'+e+'"')}function s(e,t,n){return!1}function l(e){return e}function u(){}function c(e,t,n,r){return L}function f(){}function d(e){}function h(e,t){return!1}function p(){return j}function v(){return j}function g(e,t){return!1}function m(e,t){t.parent===e?t.moveToTop():e.add(t),(0,R.updatePicture)(e)}function y(e,t){t.parent===e?t.moveToTop():e.add(t),(0,R.updatePicture)(e)}function b(e,t,n){(0,D.default)(t!==n,"ReactKonva: Can not insert node before itself"),t.remove(),e.add(t),t.setZIndex(n.getZIndex()),(0,R.updatePicture)(e)}function _(e,t,n){(0,D.default)(t!==n,"ReactKonva: Can not insert node before itself"),t.remove(),e.add(t),t.setZIndex(n.getZIndex()),(0,R.updatePicture)(e)}function x(e,t){t.destroy(),t.off(R.EVENTS_NAMESPACE),(0,R.updatePicture)(e)}function w(e,t){t.destroy(),t.off(R.EVENTS_NAMESPACE),(0,R.updatePicture)(e)}function S(e,t,n){(0,D.default)(!1,'Text components are not yet supported in ReactKonva. You text is: "'+n+'"')}function C(e,t,n){}function T(e,t,n,r,i){e._applyProps(e,i,r)}function k(e){e.hide(),(0,R.updatePicture)(e)}function P(e){}function O(e,t){(null==t.visible||t.visible)&&e.show()}function E(e,t){}t.__esModule=!0,t.supportsMutation=t.isPrimaryRenderer=t.noTimeout=t.cancelTimeout=t.scheduleTimeout=t.cancelDeferredCallback=t.shouldYield=t.scheduleDeferredCallback=t.now=void 0;var N=n(148);Object.keys(N).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}})});var K=n(149);Object.keys(K).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}})});var M=n(41);Object.defineProperty(t,"now",{enumerable:!0,get:function(){return M.unstable_now}}),Object.defineProperty(t,"scheduleDeferredCallback",{enumerable:!0,get:function(){return M.unstable_scheduleCallback}}),Object.defineProperty(t,"shouldYield",{enumerable:!0,get:function(){return M.unstable_shouldYield}}),Object.defineProperty(t,"cancelDeferredCallback",{enumerable:!0,get:function(){return M.unstable_cancelCallback}}),t.appendInitialChild=i,t.createInstance=o,t.createTextInstance=a,t.finalizeInitialChildren=s,t.getPublicInstance=l,t.prepareForCommit=u,t.prepareUpdate=c,t.resetAfterCommit=f,t.resetTextContent=d,t.shouldDeprioritizeSubtree=h,t.getRootHostContext=p,t.getChildHostContext=v,t.shouldSetTextContent=g,t.appendChild=m,t.appendChildToContainer=y,t.insertBefore=b,t.insertInContainerBefore=_,t.removeChild=x,t.removeChildFromContainer=w,t.commitTextUpdate=S,t.commitMount=C,t.commitUpdate=T,t.hideInstance=k,t.hideTextInstance=P,t.unhideInstance=O,t.unhideTextInstance=E;var F=n(76),I=r(F),R=n(77),A=n(42),D=r(A),j={},L={};t.scheduleTimeout=setTimeout,t.cancelTimeout=clearTimeout,t.noTimeout=-1,t.isPrimaryRenderer=!1,t.supportsMutation=!0},function(e,t,n){"use strict";function r(){(0,o.default)(!1,"The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.")}t.__esModule=!0,t.createHiddenTextInstance=t.cloneUnhiddenInstance=t.cloneHiddenInstance=t.replaceContainerChildren=t.finalizeContainerChildren=t.appendChildToContainerChildSet=t.createContainerChildSet=t.cloneInstance=t.supportsPersistence=void 0;var i=n(42),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.supportsPersistence=!1,t.cloneInstance=r,t.createContainerChildSet=r,t.appendChildToContainerChildSet=r,t.finalizeContainerChildren=r,t.replaceContainerChildren=r,t.cloneHiddenInstance=r,t.cloneUnhiddenInstance=r,t.createHiddenTextInstance=r},function(e,t,n){"use strict";function r(){(0,o.default)(!1,"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue.")}t.__esModule=!0,t.didNotFindHydratableTextInstance=t.didNotFindHydratableInstance=t.didNotFindHydratableContainerTextInstance=t.didNotFindHydratableContainerInstance=t.didNotHydrateInstance=t.didNotHydrateContainerInstance=t.didNotMatchHydratedTextInstance=t.didNotMatchHydratedContainerTextInstance=t.hydrateTextInstance=t.hydrateInstance=t.getFirstHydratableChild=t.getNextHydratableSibling=t.canHydrateTextInstance=t.canHydrateInstance=t.supportsHydration=void 0;var i=n(42),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.supportsHydration=!1,t.canHydrateInstance=r,t.canHydrateTextInstance=r,t.getNextHydratableSibling=r,t.getFirstHydratableChild=r,t.hydrateInstance=r,t.hydrateTextInstance=r,t.didNotMatchHydratedContainerTextInstance=r,t.didNotMatchHydratedTextInstance=r,t.didNotHydrateContainerInstance=r,t.didNotHydrateInstance=r,t.didNotFindHydratableContainerInstance=r,t.didNotFindHydratableContainerTextInstance=r,t.didNotFindHydratableInstance=r,t.didNotFindHydratableTextInstance=r},function(e,t,n){"use strict";(function(e,t){!function(e,n){function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return u[l]=r,s(l),l++}function i(e){delete u[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(c)setTimeout(a,0,e);else{var t=u[e];if(t){c=!0;try{o(t)}finally{i(e),c=!1}}}}if(!e.setImmediate){var s,l=1,u={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var e=f.documentElement;s=function(t){var n=f.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(t,n(14),n(151))},function(e,t,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function s(){g&&p&&(g=!1,p.length?v=p.concat(v):m=-1,v.length&&l())}function l(){if(!g){var e=o(s);g=!0;for(var t=v.length;t;){for(p=v,v=[];++m<t;)p&&p[m].run();m=-1,t=v.length}p=null,g=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var f,d,h=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}}();var p,v=[],g=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new u(e,t)),1!==v.length||g||o(l)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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)}function o(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}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=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},f=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t){var n=function(n){function i(e){s(this,i);var t=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));r.call(t);var n=t.props,o=n.value,a=n.value;a=void 0===a?{}:a;var u=a.active,f={};o&&!t.isEmpty(o)||(f=t.initComplaintsObject());var d=u||t.props.images&&t.props.images[0].key;return t.state=c({drawingMode:!1},o,{active:d},f),t.changeImage(d,!1),t}return u(i,n),f(i,[{key:"clearDrawings",value:function(){var e=this.refs.drawinglayer;e&&e.clear()}},{key:"componentWillUpdate",value:function(e,t){this.state.active!==t.active?this.updateDrawing=!0:this.updateDrawing=!1}},{key:"componentDidMount",value:function(){var e=v.default.findDOMNode(this.refs["image-frame"]).getBoundingClientRect(),t=e.width,n=this.props.imagePadding;this.currentWidth=t,this.currentSrcWidth=this.state.srcWidth;var r=this.refs.stage.getStage();this.imageSize=t-n,r.width(t),r.height(t);var i=this.refs.image;i.width(t-n),i.height(t-n)}},{key:"render",value:function(){var n=this,r=this.props,i=r.images,o=r.complaint,a=o.circle,s=o.text,l=r.imageClassName,u=r.complaintClassName,f=r.markerColors,p=this.state,v=p.active,g=p.image,m=this.state[v]?this.state[v].complaints:[],b=null,x=null;return this.props.images.forEach(function(e){e.key===n.state.active&&(b=e.uiDisplay,x=e.uiOptions)}),h.default.createElement(d.Fragment,null,h.default.createElement("div",{id:"image",className:l,ref:"image-frame"},h.default.createElement(t,{images:i,selected:v,onSelect:this.changeImage}),h.default.createElement("div",{style:{margin:"3px"}},h.default.createElement("a",{className:"complaint_image_link",style:{left:"1px",zIndex:1},onClick:this.handleClearAll},h.default.createElement("span",{style:{fontSize:"11px"},className:"glyphicon glyphicon-refresh"})," Clear All"),h.default.createElement("span",{className:"pull-right"},h.default.createElement("label",{className:"radio-inline select-mode-container"},h.default.createElement("input",{type:"radio",checked:!this.state.drawingMode,onChange:function(){n.setState(function(){return{drawingMode:!1}})}}),"Selection Mode"),h.default.createElement("label",{className:"radio-inline draw-mode-container"},h.default.createElement("input",{type:"radio",checked:this.state.drawingMode,onChange:function(){n.setState(function(){return{drawingMode:!0}})}}),"Drawing Mode"))),h.default.createElement("hr",null),h.default.createElement("div",{className:"complaints-image-block",style:{cursor:this.state.drawingMode?"cell":"default"}},h.default.createElement(y.Stage,{onClick:this.handleClick,onTap:this.handleTap,ref:"stage"},h.default.createElement(y.Layer,{visible:!0,ref:"layer"},h.default.createElement(y.Image,{ref:"image",image:g}),this.imageSize&&!this.updateDrawing&&h.default.createElement(C,{ref:"drawinglayer",isDrawingMode:this.state.drawingMode,notifyParent:this.notify,parentImageSize:this.imageSize,getDrawnPoints:function(e){return n.getDrawnPoints(e)},allPoints:this.state[this.state.active].drawnPoints,complaints:this.state[this.state.active].complaints,srcWidth:this.currentSrcWidth,currentWidth:this.currentWidth}),m.map(function(e,t){var n=f?f[t%f.length]:a.stroke,r=Object.assign({},e,a,{stroke:n});return h.default.createElement(_.default,c({key:t},r))}),m.map(function(e,t){var n=f?f[t%f.length]:a.fill,r=Object.assign({},e,s,{fill:n});return h.default.createElement(w.default,c({key:t,index:t},r))}))))),h.default.createElement("div",{className:u},h.default.createElement(e,{complaints:m,markerColors:f,onChange:this.handleTextChange,onDelete:this.handleDelete,uiDisplay:b,uiOptions:x})))}}]),i}(d.Component),r=function(){var e=this;this.isEmpty=function(e){return 0===Object.keys(e).length&&e.constructor===Object},this.initComplaintsObject=function(){return e.props.images.reduce(function(e,t){return e[t.key]={complaints:[],url:t.url},e},[])},this.changeImage=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new window.Image,i=e.state[t]&&e.state[t].url;r.src=i,r.onload=function(){e.clearDrawings(),n?e.setState({image:r,active:t},e.notify):e.setState({image:r,active:t})}},this.handleClick=function(t){if(!e.state.drawingMode){var n=t.currentTarget.pointerPos;if("Image"!==t.target.className)return;e.setState(function(t){var r,i=t.active,o=t[i],s=o.complaints.concat({pos:n}),l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},t,u)},e.notify)}},this.handleTap=function(t){if(!e.state.drawingMode){var n=t.currentTarget.pointerPos;if("Image"!==t.target.className)return;e.setState(function(t){var r,i=t.active,o=t[i],s=o.complaints.concat({pos:n}),l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},t,u)},e.notify)}},this.handleTextChange=function(t,n){e.setState(function(r){var i,o=r.active,s=r[o],l=s.complaints,u=Object.assign({},l[t],{text:n});l=l.slice(),l.splice(t,1,u);var f=e.currentWidth,d=(i={},a(i,o,c({},s,{complaints:l})),a(i,"srcWidth",f),i);return Object.assign({},r,d)},e.notify)},this.handleDelete=function(t){e.setState(function(n){var r,i=n.active,o=n[i],s=o.complaints;s=s.slice(),s.splice(t,1);var l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},n,u)},e.notify)},this.handleClearAll=function(){e.clearDrawings(),e.setState(function(e){var t=e.active,n=e[t],r=a({},t,c({},n,{complaints:[],drawnPoints:[]}));return Object.assign({},e,r)},e.notify)},this.notify=function(){void 0!==e.state.srcWidth&&e.setState({srcWidth:e.currentWidth}),(0,S.setTimeout)(function(){var t=e.state,n=(t.image,o(t,["image"])),r=e.state.active;if(e.props.onChange){var i=e.refs.stage.getStage();n[r]&&(n[r].dataURI=i.toDataURL());var a=c({},n);e.props.onChange(a)}},0)},this.getDrawnPoints=function(t){var n=e.currentWidth;t&&t.length>0&&e.setState(function(e){var r,i=e.active,o=e[i],s=(r={},a(r,i,c({},o,{drawnPoints:t})),a(r,"srcWidth",n),r);return Object.assign({},e,s)})}};return n.defaultProps={complaint:{circle:{radius:10,stroke:"#38A8E8",strokeWidth:2},text:{fontSize:12,fontFamily:"Roboto",fill:"black"}},imagePadding:30,imageClassName:"col-md-5 col-sm-12",complaintClassName:"col-md-7 col-sm-12"},n.propTypes={value:m.default.shape({complaint:m.default.arrayOf(m.default.shape({pos:m.default.shape({x:m.default.number.isRequired,y:m.default.number.isRequired}),text:m.default.string.isRequired}))}),images:m.default.arrayOf(m.default.shape({name:m.default.string.isRequired,url:m.default.string.isRequired})).isRequired,imagePadding:m.default.number,imageClassName:m.default.string,complaintClassName:m.default.string,complaint:m.default.shape({radius:m.default.number,stroke:m.default.string,strokeWidth:m.default.number}),markerColors:m.default.arrayOf(m.default.string),onChange:m.default.func},n};var d=n(0),h=r(d),p=n(6),v=r(p),g=n(1),m=r(g),y=n(28),b=n(78),_=r(b),x=n(79),w=r(x),S=n(80),C=function(e){function t(){var e,n,r,o;s(this,t);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={isDrawing:!1,currentPoints:[],allPoints:[]},r.handleMouseDown=function(){r.props.isDrawingMode&&r.setState(function(){return{isDrawing:!0}},function(){var e=r.image.parent.parent;r.lastPointerPosition=e.getPointerPosition();var t={x:r.lastPointerPosition.x-r.image.x(),y:r.lastPointerPosition.y-r.image.y()},n=[];n.push.apply(n,i(r.state.currentPoints).concat([t])),r.setState({currentPoints:n})})},r.handleMouseUp=function(){if(r.props.isDrawingMode||r.state.isDrawing){if(r.state.currentPoints&&r.state.currentPoints.length>1){var e=[].concat(i(r.state.allPoints),[r.state.currentPoints]);r.setState({isDrawing:!1,allPoints:e,currentPoints:[]}),r.props.getDrawnPoints(e)}else r.setState({isDrawing:!1,currentPoints:[]});r.props.notifyParent()}},r.clear=function(){r.state.context.clearRect(0,0,r.props.parentImageSize,r.props.parentImageSize),r.image.getLayer().draw(),r.setState({allPoints:[],currentPoints:[]})},r.handleMouseMove=function(){var e=r.state,t=e.context,n=e.isDrawing;if(r.props.isDrawingMode&&n){t.strokeStyle="#df4b26",t.lineJoin="round",t.lineWidth=1,t.globalCompositeOperation="source-over",t.beginPath();var o={x:r.lastPointerPosition.x-r.image.x(),y:r.lastPointerPosition.y-r.image.y()};t.moveTo(o.x,o.y);var a=r.image.parent.parent,s=a.getPointerPosition();o={x:s.x-r.image.x(),y:s.y-r.image.y()},t.lineTo(o.x,o.y),t.closePath(),t.stroke(),r.lastPointerPosition=s,r.image.getLayer().draw();var l=[];l.push.apply(l,i(r.state.currentPoints).concat([o])),r.setState({currentPoints:l})}},o=n,l(r,o)}return u(t,e),f(t,[{key:"componentDidMount",value:function(){var e=document.createElement("canvas");e.width=this.props.parentImageSize,e.height=this.props.parentImageSize;var t=e.getContext("2d"),n=[],r=this.props.srcWidth,i=this.props.currentWidth;r&&this.currentWidth!==r&&this.props.complaints&&this.props.complaints.length>0&&this.props.complaints.forEach(function(e){var t="",n="";t=e.pos.x*(i/r),n=e.pos.y*(i/r),e.pos.x=Math.round(t),e.pos.y=Math.round(n)}),this.props.allPoints&&this.props.allPoints.length>0&&(t.strokeStyle="#df4b26",t.lineJoin="round",t.lineWidth=1,t.beginPath(),this.props.allPoints.forEach(function(e){e.forEach(function(e,n){if(r&&i!==r){var o="",a="";o=e.x*(i/r),a=e.y*(i/r),e.x=Math.round(o),e.y=Math.round(a)}0!==n&&t.lineTo(e.x,e.y),t.moveTo(e.x,e.y)}),t.closePath(),t.stroke()}),this.image.getLayer().draw(),n=this.props.allPoints),this.setState(function(){return{canvas:e,context:t,allPoints:n}},this.props.notifyParent)}},{key:"render",value:function(){var e=this,t=this.state.canvas;return h.default.createElement(y.Image,{image:t,ref:function(t){return e.image=t},width:this.props.parentImageSize,height:this.props.parentImageSize,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseUp})}}]),t}(d.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=e.complaints,n=e.onChange,r=e.onDelete,i=e.uiDisplay,o=e.uiOptions;return f.default.createElement("table",{className:"table"},f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",{className:"col-md-1"},"#"),f.default.createElement("th",null,"Complaint"),f.default.createElement("th",{className:"col-md-1"}))),f.default.createElement("tbody",null,t.map(function(e,a){return f.default.createElement(c.Fragment,{key:a},f.default.createElement("tr",null,f.default.createElement("td",{style:{paddingTop:14}},a+1),f.default.createElement(h,s({},e,{onChange:function(e){return n(a,e)},onDelete:function(){return r(a)},uiDisplay:i,uiOptions:s({},o,{autoFocus:o&&o.autoFocus&&t.length-1===a&&void 0===e.text})}))))})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},l="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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),f=function(e){return e&&e.__esModule?e:{default:e}}(c),d=n(154),h=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.handleTypeaheadChange=function(e){var t=e.map(function(e){return"object"===(void 0===e?"undefined":l(e))?e.label:e});n.setState({typeaheadValue:t}),n.props.onChange(t.join(" & "))},n.handleChange=function(e){n.setState({value:e.target.value})},n.handleSubmit=function(e){e.preventDefault(),n.state.value!==n.props.text&&n.props.onChange(n.state.value)},n.handleKeyDown=function(e){13===e.keyCode&&n.handleSubmit(e)};var o=e.text,a=void 0===o?"":o;return n.state={value:a,typeaheadValue:a?a.split(" & "):[]},n}return o(t,e),u(t,[{key:"componentDidUpdate",value:function(e){e.text!==this.props.text&&this.setState({value:this.props.text,typeaheadValue:this.props.text?this.props.text.split(" & "):[]})}},{key:"render",value:function(){return f.default.createElement(c.Fragment,null,f.default.createElement("td",null,"typeahead"==this.props.uiDisplay&&this.props.uiOptions?f.default.createElement(d.Typeahead,s({selected:this.state.typeaheadValue,onChange:this.handleTypeaheadChange,placeholder:"Choose an item...",autoFocus:!0},this.props.uiOptions)):f.default.createElement("input",{autoFocus:!0,type:"text",value:this.state.value,className:"form-control",onKeyDown:this.handleKeyDown,onBlur:this.handleSubmit,onChange:this.handleChange})),f.default.createElement("td",null,f.default.createElement("button",{className:"btn btn-default",onClick:this.props.onDelete},"Delete")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.text!==t.text?{text:e.text}:null}}]),t}(c.Component);t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.tokenContainer=t.menuItemContainer=t.asyncContainer=t.TypeaheadMenu=t.Typeahead=t.Token=t.MenuItem=t.Menu=t.Highlighter=t.AsyncTypeahead=void 0;var i=n(155),o=r(i),a=n(132),s=r(a),l=n(133),u=r(l),c=n(70),f=r(c),d=n(126),h=r(d),p=n(103),v=r(p),g=n(131),m=r(g),y=n(81),b=r(y),_=n(134),x=r(_),w=n(127),S=r(w);t.AsyncTypeahead=o.default,t.Highlighter=s.default,t.Menu=u.default,t.MenuItem=f.default,t.Token=h.default,t.Typeahead=v.default,t.TypeaheadMenu=m.default,t.asyncContainer=b.default,t.menuItemContainer=x.default,t.tokenContainer=S.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),o=r(i),a=n(103),s=r(a);t.default=(0,o.default)(s.default)},function(e,t,n){"use strict";function r(e,t,n){function r(t){var n=y,r=b;return y=b=void 0,C=t,x=e.apply(r,n)}function c(e){return C=e,w=setTimeout(h,t),T?r(e):x}function f(e){var n=e-S,r=e-C,i=t-n;return k?u(i,_-r):i}function d(e){var n=e-S,r=e-C;return void 0===S||n>=t||n<0||k&&r>=_}function h(){var e=o();if(d(e))return p(e);w=setTimeout(h,f(e))}function p(e){return w=void 0,P&&y?r(e):(y=b=void 0,x)}function v(){void 0!==w&&clearTimeout(w),C=0,y=S=b=w=void 0}function g(){return void 0===w?x:p(o())}function m(){var e=o(),n=d(e);if(y=arguments,b=this,S=e,n){if(void 0===w)return c(S);if(k)return w=setTimeout(h,t),r(S)}return void 0===w&&(w=setTimeout(h,t)),x}var y,b,_,x,w,S,C=0,T=!1,k=!1,P=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(T=!!n.leading,k="maxWait"in n,_=k?l(a(n.maxWait)||0,t):_,P="trailing"in n?!!n.trailing:P),m.cancel=v,m.flush=g,m}var i=n(7),o=n(157),a=n(158),s="Expected a function",l=Math.max,u=Math.min;e.exports=r},function(e,t,n){"use strict";var r=n(4),i=function(){return r.Date.now()};e.exports=i},function(e,t,n){"use strict";function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=u.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):l.test(e)?a:+e}var i=n(7),o=n(29),a=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}var i=n(23),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var i=Object.prototype,o=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=t.allowNew,r=t.labelKey,o=t.text;return!(!n||!o.trim())&&("function"==typeof n?n(e,t):!e.some(function(e){return(0,i.getOptionLabel)(e,r)===o}))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return n.caseSensitive||(e=e.toLowerCase(),t=t.toLowerCase()),n.ignoreDiacritics&&(e=(0,v.default)(e),t=(0,v.default)(t)),-1!==t.indexOf(e)}function o(e,t){var n=t.filterBy,r=t.labelKey,o=t.multiple,a=t.selected,l=t.text;if(o&&a.some(function(t){return(0,s.default)(t,e)}))return!1;var c=n.slice();return!(!(0,u.default)(r)||!i(l,r(e),t))||((0,f.default)(r)&&-1===c.indexOf(r)&&c.unshift(r),(0,f.default)(e)?((0,m.default)(c.length<=1,"You cannot filter by properties when `option` is a string."),i(l,e,t)):(0,h.default)(c,function(n){var r=e[n];return(0,f.default)(r)||((0,m.default)(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),r+=""),i(l,r,t)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(83),s=r(a),l=n(45),u=r(l),c=n(218),f=r(c),d=n(219),h=r(d),p=n(53),v=r(p),g=n(9),m=r(g)},function(e,t,n){"use strict";function r(e,t,n,r,g,y){var b=u(e),_=u(t),x=b?p:l(e),w=_?p:l(t);x=x==h?v:x,w=w==h?v:w;var S=x==v,C=w==v,T=x==w;if(T&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(T&&!S)return y||(y=new i),b||f(e)?o(e,t,n,r,g,y):a(e,t,x,n,r,g,y);if(!(n&d)){var k=S&&m.call(e,"__wrapped__"),P=C&&m.call(t,"__wrapped__");if(k||P){var O=k?e.value():e,E=P?t.value():t;return y||(y=new i),g(O,E,n,r,y)}}return!!T&&(y||(y=new i),s(e,t,n,r,g,y))}var i=n(84),o=n(86),a=n(194),s=n(198),l=n(214),u=n(2),c=n(89),f=n(91),d=1,h="[object Arguments]",p="[object Array]",v="[object Object]",g=Object.prototype,m=g.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(31),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this.__data__,e)>-1}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=new i,this.size=0}var i=n(30);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.get(e)}e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(30),o=n(44),a=n(46),s=200;e.exports=r},function(e,t,n){"use strict";function r(e){return!(!a(e)||o(e))&&(i(e)?p:u).test(s(e))}var i=n(45),o=n(175),a=n(7),s=n(85),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,h=f.hasOwnProperty,p=RegExp("^"+d.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){"use strict";function r(e){return!!o&&o in e}var i=n(176),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){"use strict";var r=n(4),i=r["__core-js_shared__"];e.exports=i},function(e,t,n){"use strict";function r(e,t){return null==e?void 0:e[t]}e.exports=r},function(e,t,n){"use strict";function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(179),o=n(30),a=n(44);e.exports=r},function(e,t,n){"use strict";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])}}var i=n(180),o=n(181),a=n(182),s=n(183),l=n(184);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=i?i(null):{},this.size=0}var i=n(33);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(33),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(33),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(33),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){var t=void 0===e?"undefined":i(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).get(e)}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).has(e)}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=n(46),o=n(191),a=n(192);r.prototype.add=r.prototype.push=o,r.prototype.has=a,e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e.has(t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,S,T){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case h:case g:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case v:var k=l;case y:var P=r&c;if(k||(k=u),e.size!=t.size&&!P)return!1;var O=T.get(e);if(O)return O==t;r|=f,T.set(e,t);var E=s(k(e),k(t),r,i,S,T);return T.delete(e),E;case _:if(C)return C.call(e)==C.call(t)}return!1}var i=n(23),o=n(195),a=n(32),s=n(86),l=n(196),u=n(197),c=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Map]",g="[object Number]",m="[object RegExp]",y="[object Set]",b="[object String]",_="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",S=i?i.prototype:void 0,C=S?S.valueOf:void 0;e.exports=r},function(e,t,n){"use strict";var r=n(4),i=r.Uint8Array;e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=r},function(e,t,n){"use strict";function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,a,l){var u=n&o,c=i(e),f=c.length;if(f!=i(t).length&&!u)return!1;for(var d=f;d--;){var h=c[d];if(!(u?h in t:s.call(t,h)))return!1}var p=l.get(e);if(p&&l.get(t))return p==t;var v=!0;l.set(e,t),l.set(t,e);for(var g=u;++d<f;){h=c[d];var m=e[h],y=t[h];if(r)var b=u?r(y,m,h,t,e,l):r(m,y,h,e,t,l);if(!(void 0===b?m===y||a(m,y,n,r,l):b)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(v=!1)}return l.delete(e),l.delete(t),v}var i=n(199),o=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return i(e,a,o)}var i=n(200),o=n(201),a=n(47);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}var i=n(88),o=n(2);e.exports=r},function(e,t,n){"use strict";var r=n(202),i=n(203),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=l},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=r},function(e,t,n){"use strict";function r(){return[]}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),d=!n&&!r&&!c&&u(e),h=n||r||c||d,p=h?i(e.length,String):[],v=p.length;for(var g in e)!t&&!f.call(e,g)||h&&("length"==g||c&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,v))||p.push(g);return p}var i=n(205),o=n(48),a=n(2),s=n(89),l=n(35),u=n(91),c=Object.prototype,f=c.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&i(e)==a}var i=n(11),o=n(8),a="[object Arguments]";e.exports=r},function(e,t,n){"use strict";function r(){return!1}e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(11),o=n(49),a=n(8),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(82),o="object"==r(t)&&t&&!t.nodeType&&t,a=o&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s&&i.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=u}).call(t,n(90)(e))},function(e,t,n){"use strict";function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(212),o=n(213),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;e.exports=r},function(e,t,n){"use strict";var r=n(92),i=r(Object.keys,Object);e.exports=i},function(e,t,n){"use strict";var r=n(215),i=n(44),o=n(216),a=n(217),s=n(93),l=n(11),u=n(85),c=u(r),f=u(i),d=u(o),h=u(a),p=u(s),v=l;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"DataView");e.exports=o},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"Promise");e.exports=o},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"Set");e.exports=o},function(e,t,n){"use strict";function r(e){return"string"==typeof e||!o(e)&&a(e)&&i(e)==s}var i=n(11),o=n(2),a=n(8),s="[object String]";e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=s(e)?i:a;return n&&l(e,t,n)&&(t=void 0),r(e,o(t,3))}var i=n(87),o=n(220),a=n(236),s=n(2),l=n(242);e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e:null==e?s:"object"==(void 0===e?"undefined":i(e))?l(e)?a(e[0],e[1]):o(e):u(e)}var i="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},o=n(221),a=n(224),s=n(98),l=n(2),u=n(233);e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(222),o=n(223),a=n(95);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var l=n.length,u=l,c=!r;if(null==e)return!u;for(e=Object(e);l--;){var f=n[l];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l<u;){f=n[l];var d=f[0],h=e[d],p=f[1];if(c&&f[2]){if(void 0===h&&!(d in e))return!1}else{var v=new i;if(r)var g=r(h,p,d,e,t,v);if(!(void 0===g?o(p,h,a|s,r,v):g))return!1}}return!0}var i=n(84),o=n(43),a=1,s=2;e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(94),o=n(47);e.exports=r},function(e,t,n){"use strict";function r(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,f|d)}}var i=n(43),o=n(225),a=n(97),s=n(52),l=n(94),u=n(95),c=n(24),f=1,d=2;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(51);e.exports=r},function(e,t,n){"use strict";var r=n(227),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){"use strict";function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(228),o=500;e.exports=r},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(46),o="Expected a function";r.Cache=i,e.exports=r},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return e;if(a(e))return o(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}var i=n(23),o=n(230),a=n(2),s=n(29),l=1/0,u=i?i.prototype:void 0,c=u?u.toString:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}e.exports=r},function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){t=i(t,e);for(var r=-1,c=t.length,f=!1;++r<c;){var d=u(t[r]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++r!=c?f:!!(c=null==e?0:e.length)&&l(c)&&s(d,c)&&(a(e)||o(e))}var i=n(36),o=n(48),a=n(2),s=n(35),l=n(49),u=n(24);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)?i(s(e)):o(e)}var i=n(234),o=n(235),a=n(52),s=n(24);e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return null==t?void 0:t[e]}}e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return i(t,e)}}var i=n(51);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n;return i(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}var i=n(237);e.exports=r},function(e,t,n){"use strict";var r=n(238),i=n(241),o=i(r);e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&i(e,t,o)}var i=n(239),o=n(47);e.exports=r},function(e,t,n){"use strict";var r=n(240),i=r();e.exports=i},function(e,t,n){"use strict";function r(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(50);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(!l(n))return!1;var r=void 0===t?"undefined":i(t);return!!("number"==r?a(n)&&s(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var i="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},o=n(32),a=n(50),s=n(35),l=n(7);e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.a11yNumResults,n=e.a11yNumSelected,r=e.emptyLabel,i=e.isMenuShown,o=e.results,a=e.selected;return i?0===o.length?r:t(o):n(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.activeItem,n=e.initialItem,r=e.isMenuShown,i=e.labelKey,o=e.multiple,s=e.selected,u=e.text;if(!u||!r||!n||n.customOption||t||s.length&&!o)return"";var c=(0,l.default)(n,i),f=(0,a.default)(c.toLowerCase(),u.toLowerCase());return f&&0===f.start?u+c.slice(f.end,c.length):""}Object.defineProperty(t,"__esModule",{value:!0});var o=n(99),a=r(o),s=n(54),l=r(s);t.default=i},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";var r=n(92),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.activeItem,n=e.labelKey,r=e.multiple,i=e.selected,o=e.text;if(t)return t.paginationOption?o:(0,l.default)(t,n);var s=!r&&!!i.length&&(0,a.default)(i);return s?(0,l.default)(s,n):o}Object.defineProperty(t,"__esModule",{value:!0});var o=n(55),a=r(o),s=n(54),l=r(s);t.default=i},function(e,t,n){"use strict";function r(e){return"rbt-menu-item-"+e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){return!t||t>=e.length?e:e.slice(0,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.emptyLabel,r=t.minLength,i=t.showMenu,o=t.text;return!!i&&(!(o.length<r)&&!(!e.length&&!n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return n=n||e+"s",1===t?"1 "+e:t+" "+n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){if(Element.prototype.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded();var t=e.getBoundingClientRect(),n=e.parentNode,r=n.getBoundingClientRect(),i=window.getComputedStyle(n,null),o=parseInt(i.getPropertyValue("border-top-width"));(t.top<r.top||t.bottom>r.bottom)&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-o+e.clientHeight/2)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";var r=n(258),i=n(106),o=i(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){"use strict";function r(e,t){return i(e,t,function(t,n){return o(e,n)})}var i=n(259),o=n(97);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r=-1,s=t.length,l={};++r<s;){var u=t[r],c=i(e,u);n(c,u)&&o(l,a(u,e),c)}return l}var i=n(51),o=n(260),a=n(36);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){if(!s(e))return e;t=o(t,e);for(var u=-1,c=t.length,f=c-1,d=e;null!=d&&++u<c;){var h=l(t[u]),p=n;if(u!=f){var v=d[h];p=r?r(v,h,d):void 0,void 0===p&&(p=s(v)?v:a(t[u+1])?[]:{})}i(d,h,p),d=d[h]}return e}var i=n(261),o=n(36),a=n(35),s=n(7),l=n(24);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(262),o=n(32),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(105);e.exports=r},function(e,t,n){"use strict";function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=n(264);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,a,s){var l=-1,u=e.length;for(n||(n=o),s||(s=[]);++l<u;){var c=e[l];t>0&&n(c)?t>1?r(c,t-1,n,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=n(88),o=n(265);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(23),o=n(48),a=n(2),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(l),i(e,this,u)}}var i=n(267),o=Math.max;e.exports=r},function(e,t,n){"use strict";function r(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)}e.exports=r},function(e,t,n){"use strict";var r=n(269),i=n(271),o=i(r);e.exports=o},function(e,t,n){"use strict";var r=n(270),i=n(105),o=n(98),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t,n){"use strict";function r(e){return function(){return e}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=0,n=0;return function(){var r=a(),s=o-(r-n);if(n=r,s>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,o=16,a=Date.now;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(0),s=r(a),l=n(1),u=r(l),c=function(e){var t=e.bsSize;return s.default.createElement("div",{className:(0,o.default)("rbt-loader",{"rbt-loader-lg":"large"===t||"lg"===t,"rbt-loader-sm":"small"===t||"sm"===t})})};c.propTypes={bsSize:u.default.oneOf(["large","lg","small","sm"])},t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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}function a(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)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":d(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":d(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=e.align,n=e.flip;return{computeStyles:{enabled:!0,fn:function(e){return"right"!==t&&"left"!==t&&(e.styles.width=e.offsets.reference.width),e}},flip:{enabled:n},preventOverflow:{escapeWithReference:!0}}}function f(e){return e===document.body}var d="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};Object.defineProperty(t,"__esModule",{value:!0});var h=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},p=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(5),g=r(v),m=n(0),y=r(m),b=n(1),_=r(b),x=n(56),w=r(x),S=n(275),C=r(S),T=n(278),k=r(T),P="rbt-body-container",O=function(e){function t(){var e,n,r,i;s(this,t);for(var o=arguments.length,u=Array(o),c=0;c<o;c++)u[c]=arguments[c];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r._update=function(){var e,t=r.props,n=t.className,i=t.container;t.show&&f(i)&&(i.classList.add(P),!!n&&(e=i.classList).add.apply(e,a(n.split(" "))))},i=n,l(r,i)}return u(t,e),p(t,[{key:"componentDidMount",value:function(){this._update()}},{key:"componentWillReceiveProps",value:function(e){var t=e.onMenuHide,n=e.onMenuShow,r=e.show;this.props.show&&!r&&t(),!this.props.show&&r&&n();var i=this.props,o=i.className,s=i.container;if(f(s)&&!f(e.container)){var l;s.classList.remove(P),!!o&&(l=s.classList).remove.apply(l,a(o.split(" ")))}this._update()}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.container,a=e.dropup,s=e.referenceElement;if(!(e.show&&m.Children.count(n)&&s))return null;var l=m.Children.only(n),u="right"===t?"end":"start",d=a?"top":"bottom";return y.default.createElement(C.default,{container:r},y.default.createElement(k.default,{modifiers:c(this.props),placement:d+"-"+u,referenceElement:s},function(e){var t=e.ref,n=o(e,["ref"]);return(0,m.cloneElement)(l,h({},l.props,n,{className:(0,g.default)(l.props.className,i({},"ignore-react-onclickoutside",f(r))),innerRef:t}))}))}}]),t}(y.default.Component);O.propTypes={children:_.default.element,container:w.default.isRequired,onMenuHide:_.default.func.isRequired,onMenuShow:_.default.func.isRequired,referenceElement:w.default,show:_.default.bool},O.defaultProps={show:!1},t.default=O},function(e,t,n){"use strict";function r(e){function t(t,n,r,i,o,a){var s=i||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+o+" `"+l+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f<u;f++)c[f-6]=arguments[f];return e.apply(void 0,[n,r,s,o,l].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};t.__esModule=!0;var l=n(1),u=r(l),c=n(56),f=r(c),d=n(0),h=r(d),p=n(6),v=r(p),g=n(108),m=r(g),y=n(109),b=r(y),_=n(277),x=r(_),w=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,m.default)(e.container,(0,b.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},a=n,o(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?v.default.createPortal(this.props.children,this._portalContainerNode):null},t}(h.default.Component);w.displayName="Portal",w.propTypes={container:u.default.oneOfType([f.default,u.default.func]),onRendered:u.default.func},t.default=v.default.createPortal?w:x.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};t.__esModule=!0;var l=n(1),u=r(l),c=n(56),f=r(c),d=n(0),h=r(d),p=n(6),v=r(p),g=n(108),m=r(g),y=n(109),b=r(y),_=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,m.default)(r.props.container,(0,b.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?h.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=v.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,function(){t&&r.props.onRendered&&r.props.onRendered()})}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(v.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},a=n,o(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,m.default)(e.container,(0,b.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(h.default.Component);_.displayName="Portal",_.propTypes={container:u.default.oneOfType([f.default,u.default.func]),onRendered:u.default.func},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return p.createElement(m.ManagerContext.Consumer,null,function(t){var n=t.referenceNode;return p.createElement(x,(0,a.default)({referenceElement:n},e))})}Object.defineProperty(t,"__esModule",{value:!0}),t.placements=t.InnerPopper=void 0;var o=n(110),a=r(o),s=n(118),l=r(s),u=n(119),c=r(u),f=n(125),d=r(f);t.default=i;var h=n(0),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(h),v=n(316),g=r(v),m=n(317),y=n(323),b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},_={},x=t.InnerPopper=function(e){function t(){var n,r,i;(0,l.default)(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return n=r=(0,c.default)(this,e.call.apply(e,[this].concat(s))),r.state={data:void 0,placement:void 0},r.popperNode=null,r.arrowNode=null,r.setPopperNode=function(e){r.popperNode!==e&&((0,y.safeInvoke)(r.props.innerRef,e),r.popperNode=e,r.updatePopperInstance())},r.setArrowNode=function(e){r.arrowNode!==e&&(r.arrowNode=e,r.popperInstance||r.updatePopperInstance())},r.updateStateModifier={enabled:!0,order:900,fn:function(e){var t=e.placement;return r.setState({data:e,placement:t},t!==r.state.placement?r.scheduleUpdate:void 0),e}},r.getOptions=function(){return{placement:r.props.placement,eventsEnabled:r.props.eventsEnabled,positionFixed:r.props.positionFixed,modifiers:(0,a.default)({},r.props.modifiers,{arrow:(0,a.default)({},r.props.modifiers&&r.props.modifiers.arrow,{enabled:!!r.arrowNode,element:r.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:r.updateStateModifier})}},r.getPopperStyle=function(){return r.popperNode&&r.state.data?(0,a.default)({position:r.state.data.offsets.popper.position},r.state.data.styles):b},r.getPopperPlacement=function(){return r.state.data?r.state.placement:void 0},r.getArrowStyle=function(){return r.arrowNode&&r.state.data?r.state.data.arrowStyles:_},r.getOutOfBoundariesState=function(){return r.state.data?r.state.data.hide:void 0},r.destroyPopperInstance=function(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)},r.updatePopperInstance=function(){r.destroyPopperInstance();var e=r,t=e.popperNode,n=r.props.referenceElement;n&&t&&(r.popperInstance=new g.default(n,t,r.getOptions()))},r.scheduleUpdate=function(){r.popperInstance&&r.popperInstance.scheduleUpdate()},i=n,(0,c.default)(r,i)}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},t.prototype.componentWillUnmount=function(){this.destroyPopperInstance()},t.prototype.render=function(){return(0,y.unwrapArray)(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(p.Component);x.defaultProps={placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1};var w=g.default.placements;t.placements=w},function(e,t,n){"use strict";e.exports={default:n(280),__esModule:!0}},function(e,t,n){"use strict";n(281),e.exports=n(15).Object.assign},function(e,t,n){"use strict";var r=n(25);r(r.S+r.F,"Object",{assign:n(283)})},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(38),i=n(63),o=n(40),a=n(117),s=n(115),l=Object.assign;e.exports=!l||n(27)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=i.f,f=o.f;l>u;)for(var d,h=s(arguments[u++]),p=c?r(h).concat(c(h)):r(h),v=p.length,g=0;v>g;)f.call(h,d=p[g++])&&(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=n(20),i=n(285),o=n(286);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(59),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(59),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){"use strict";e.exports={default:n(288),__esModule:!0}},function(e,t,n){"use strict";n(289),n(295),e.exports=n(68).f("iterator")},function(e,t,n){"use strict";var r=n(290)(!0);n(121)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(59),i=n(58);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(66),i=n(37),o=n(67),a={};n(16)(a,n(21)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(17),i=n(26),o=n(38);e.exports=n(19)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){"use strict";var r=n(10).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(13),i=n(117),o=n(60)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";n(296);for(var r=n(10),i=n(16),o=n(65),a=n(21)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},function(e,t,n){"use strict";var r=n(297),i=n(298),o=n(65),a=n(20);e.exports=n(121)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";e.exports={default:n(300),__esModule:!0}},function(e,t,n){"use strict";n(301),n(306),n(307),n(308),e.exports=n(15).Symbol},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(10),o=n(13),a=n(19),s=n(25),l=n(122),u=n(302).KEY,c=n(27),f=n(61),d=n(67),h=n(39),p=n(21),v=n(68),g=n(69),m=n(303),y=n(304),b=n(26),_=n(18),x=n(20),w=n(57),S=n(37),C=n(66),T=n(305),k=n(124),P=n(17),O=n(38),E=k.f,N=P.f,K=T.f,M=i.Symbol,F=i.JSON,I=F&&F.stringify,R=p("_hidden"),A=p("toPrimitive"),D={}.propertyIsEnumerable,j=f("symbol-registry"),L=f("symbols"),U=f("op-symbols"),z=Object.prototype,V="function"==typeof M,G=i.QObject,W=!G||!G.prototype||!G.prototype.findChild,B=a&&c(function(){return 7!=C(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=E(z,t);r&&delete z[t],N(e,t,n),r&&e!==z&&N(z,t,r)}:N,H=function(e){var t=L[e]=C(M.prototype);return t._k=e,t},q=V&&"symbol"==r(M.iterator)?function(e){return"symbol"==(void 0===e?"undefined":r(e))}:function(e){return e instanceof M},Y=function(e,t,n){return e===z&&Y(U,t,n),b(e),t=w(t,!0),b(n),o(L,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=C(n,{enumerable:S(0,!1)})):(o(e,R)||N(e,R,S(1,{})),e[R][t]=!0),B(e,t,n)):N(e,t,n)},X=function(e,t){b(e);for(var n,r=m(t=x(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?C(e):X(C(e),t)},$=function(e){var t=D.call(this,e=w(e,!0));return!(this===z&&o(L,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(L,e)||o(this,R)&&this[R][e])||t)},J=function(e,t){if(e=x(e),t=w(t,!0),e!==z||!o(L,t)||o(U,t)){var n=E(e,t);return!n||!o(L,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=K(x(e)),r=[],i=0;n.length>i;)o(L,t=n[i++])||t==R||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===z,r=K(n?U:x(e)),i=[],a=0;r.length>a;)!o(L,t=r[a++])||n&&!o(z,t)||i.push(L[t]);return i};V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===z&&t.call(U,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),B(this,e,S(1,n))};return a&&W&&B(z,e,{configurable:!0,set:t}),H(e)},l(M.prototype,"toString",function(){return this._k}),k.f=J,P.f=Y,n(123).f=T.f=Z,n(40).f=$,n(63).f=ee,a&&!n(64)&&l(z,"propertyIsEnumerable",$,!0),v.f=function(e){return H(p(e))}),s(s.G+s.W+s.F*!V,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=O(p.store),ie=0;re.length>ie;)g(re[ie++]);s(s.S+s.F*!V,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=M(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!V,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),F&&s(s.S+s.F*(!V||c(function(){var e=M();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,I.apply(F,r)}}),M.prototype[A]||n(16)(M.prototype,A,M.prototype.valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(39)("meta"),o=n(18),a=n(13),s=n(17).f,l=0,u=Object.isExtensible||function(){return!0},c=!n(27)(function(){return u(Object.preventExtensions({}))}),f=function(e){s(e,i,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==(void 0===e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[i].i},h=function(e,t){if(!a(e,i)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[i].w},p=function(e){return c&&v.NEED&&u(e)&&!a(e,i)&&f(e),e},v=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:p}},function(e,t,n){"use strict";var r=n(38),i=n(63),o=n(40);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(116);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(20),o=n(123).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?l(e):o(i(e))}},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(69)("asyncIterator")},function(e,t,n){"use strict";n(69)("observable")},function(e,t,n){"use strict";e.exports={default:n(310),__esModule:!0}},function(e,t,n){"use strict";n(311),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){"use strict";var r=n(25);r(r.S,"Object",{setPrototypeOf:n(312).set})},function(e,t,n){"use strict";var r=n(18),i=n(26),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(111)(Function.call,n(124).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";e.exports={default:n(314),__esModule:!0}},function(e,t,n){"use strict";n(315);var r=n(15).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){"use strict";var r=n(25);r(r.S,"Object",{create:n(66)})},function(e,t,n){"use strict";(function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},de))}}function i(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+r)?e:s(a(e))}function l(e){return 11===e?ge:10===e?me:ge||me}function u(e){if(!e)return document.documentElement;for(var t=l(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?u(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||u(e.firstElementChild)===e)}function f(e){return null!==e.parentNode?f(e.parentNode):e}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return c(a)?a:u(a);var s=f(e);return s.host?d(s.host,t):d(e,f(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}return e[n]}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(t,"top"),i=h(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function v(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],l(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function m(e){var t=e.body,n=e.documentElement,r=l(10)&&getComputedStyle(n);return{height:g("Height",t,n,r),width:g("Width",t,n,r)}}function y(e){return xe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(l(10)){t=e.getBoundingClientRect();var n=h(e,"top"),r=h(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?m(e.ownerDocument):{},s=a.width||e.clientWidth||i.right-i.left,u=a.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-s,f=e.offsetHeight-u;if(c||f){var d=o(e);c-=v(d,"x"),f-=v(d,"y"),i.width-=c,i.height-=f}return y(i)}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=l(10),i="HTML"===t.nodeName,a=b(e),u=b(t),c=s(e),f=o(t),d=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);n&&i&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var v=y({top:a.top-u.top-d,left:a.left-u.left-h,width:a.width,height:a.height});if(v.marginTop=0,v.marginLeft=0,!r&&i){var g=parseFloat(f.marginTop,10),m=parseFloat(f.marginLeft,10);v.top-=d-g,v.bottom-=d-g,v.left-=h-m,v.right-=h-m,v.marginTop=g,v.marginLeft=m}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(v=p(v,t)),v}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:h(n),s=t?0:h(n,"left");return y({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function w(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||w(a(e)))}function S(e){if(!e||!e.parentElement||l())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function C(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},l=i?S(e):d(e,t);if("viewport"===r)o=x(l,i);else{var u=void 0;"scrollParent"===r?(u=s(a(t)),"BODY"===u.nodeName&&(u=e.ownerDocument.documentElement)):u="window"===r?e.ownerDocument.documentElement:r;var c=_(u,l,i);if("HTML"!==u.nodeName||w(l))o=c;else{var f=m(e.ownerDocument),h=f.height,p=f.width;o.top+=c.top-c.marginTop,o.bottom=h+c.top,o.left+=c.left-c.marginLeft,o.right=p+c.left}}n=n||0;var v="number"==typeof n;return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function T(e){return e.width*e.height}function k(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=C(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return xe({key:e},s[e],{area:T(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(n,r?S(t):d(t,n),r)}function O(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+r}}function E(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=O(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[E(s)],i}function K(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function M(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=K(e,function(e){return e[t]===n});return e.indexOf(r)}function F(e,t,n){return(void 0===n?e:e.slice(0,M(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=y(t.offsets.popper),t.offsets.reference=y(t.offsets.reference),t=n(t,e))}),t}function I(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function R(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function A(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function D(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[A("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function L(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||L(s(o.parentNode),t,n,r),r.push(o)}function U(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var i=s(e);return L(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function V(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function G(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=V(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function B(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(t[n])&&(r="px"),e.style[n]=t[n]+r})}function H(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e){return B(e.instance.popper,e.styles),H(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&B(e.arrowElement,e.arrowStyles),e}function Y(e,t,n,r,i){var o=P(i,t,e,n.positionFixed),a=k(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),B(t,{position:n.positionFixed?"fixed":"absolute"}),n}function X(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=-1!==["left","right"].indexOf(e.placement),a=-1!==e.placement.indexOf("-"),s=i.width%2==r.width%2,l=i.width%2==1&&r.width%2==1,u=function(e){return e},c=t?o||a||s?Math.round:Math.floor:u,f=t?Math.round:u;return{left:c(l&&!a&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:c(r.right)}}function Q(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=K(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=u(e.instance.popper),l=b(s),c={position:i.position},f=X(e,window.devicePixelRatio<2||!we),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=A("transform"),v=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+f.bottom:-l.height+f.bottom:f.top,v="right"===h?"HTML"===s.nodeName?-s.clientWidth+f.right:-l.width+f.right:f.left,a&&p)c[p]="translate3d("+v+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var m="bottom"===d?-1:1,y="right"===h?-1:1;c[d]=g*m,c[h]=v*y,c.willChange=d+", "+h}var _={"x-placement":e.placement};return e.attributes=xe({},_,e.attributes),e.styles=xe({},c,e.styles),e.arrowStyles=xe({},e.offsets.arrow,e.arrowStyles),e}function $(e,t,n){var r=K(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function J(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",v=O(r)[c];l[p]-v<s[d]&&(e.offsets.popper[d]-=s[d]-(l[p]-v)),l[d]+v>s[p]&&(e.offsets.popper[d]+=l[d]+v-s[p]),e.offsets.popper=y(e.offsets.popper);var g=l[d]+l[c]/2-v/2,m=o(e.instance.popper),b=parseFloat(m["margin"+f],10),_=parseFloat(m["border"+f+"Width"],10),x=g-e.offsets.popper[d]-b-_;return x=Math.max(Math.min(s[c]-v,x),0),e.arrowElement=r,e.offsets.arrow=(n={},_e(n,d,Math.round(x)),_e(n,h,""),n),e}function Z(e){return"end"===e?"start":"start"===e?"end":e}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ce.indexOf(e),r=Ce.slice(n+1).concat(Ce.slice(0,n));return t?r.reverse():r}function te(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=C(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=E(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Te.FLIP:a=[r,i];break;case Te.CLOCKWISE:a=ee(r);break;case Te.COUNTERCLOCKWISE:a=ee(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=E(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),h=f(u.left)<f(n.left),p=f(u.right)>f(n.right),v=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),m="left"===r&&h||"right"===r&&p||"top"===r&&v||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&v||!y&&"end"===o&&g);(d||m||b)&&(e.flipped=!0,(d||m)&&(r=a[l+1]),b&&(o=Z(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=xe({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))}),e}function ne(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function re(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return y(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(K(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return re(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){W(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function oe(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function ae(e,t){var n=t.boundariesElement||u(e.instance.popper);e.instance.reference===n&&(n=u(n));var r=A("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=C(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,f=e.offsets.popper,d={primary:function(e){var n=f[e];return f[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(f[e],l[e])),_e({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=f[n];return f[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(f[n],l[e]-("right"===e?f.width:f.height))),_e({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=xe({},f,d[t](e))}),e.offsets.popper=f,e}function se(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_e({},l,o[l]),end:_e({},l,o[l]+o[u]-a[u])};e.offsets.popper=xe({},a,c[r])}return e}function le(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=K(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ue(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=E(t),e.offsets.popper=y(i),e}Object.defineProperty(t,"__esModule",{value:!0});for(var ce="undefined"!=typeof window&&"undefined"!=typeof document,fe=["Edge","Trident","Firefox"],de=0,he=0;he<fe.length;he+=1)if(ce&&navigator.userAgent.indexOf(fe[he])>=0){de=1;break}var pe=ce&&window.Promise,ve=pe?n:r,ge=ce&&!(!window.MSInputMethodContext||!document.documentMode),me=ce&&/MSIE 10/.test(navigator.userAgent),ye=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},be=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_e=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xe=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},we=ce&&/Firefox/i.test(navigator.userAgent),Se=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ce=Se.slice(3),Te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ke={shift:{order:100,enabled:!0,fn:se},offset:{order:200,enabled:!0,fn:oe,offset:0},preventOverflow:{order:300,enabled:!0,fn:ae,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ne},arrow:{order:500,enabled:!0,fn:J,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:te,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ue},hide:{order:800,enabled:!0,fn:le},computeStyle:{order:850,enabled:!0,fn:Q,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:q,onLoad:Y,gpuAcceleration:void 0}},Pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ke},Oe=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ye(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ve(this.update.bind(this)),this.options=xe({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(xe({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=xe({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return xe({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return be(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return D.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();Oe.Utils=("undefined"!=typeof window?window:e).PopperUtils,Oe.placements=Se,Oe.Defaults=Pe,t.default=Oe}).call(t,n(14))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ManagerContext=void 0;var i=n(110),o=r(i),a=n(118),s=r(a),l=n(119),u=r(l),c=n(125),f=r(c),d=n(0),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),p=n(318),v=r(p),g=t.ManagerContext=(0,v.default)({getReferenceRef:void 0,referenceNode:void 0}),m=function(e){function t(){(0,s.default)(this,t);var n=(0,u.default)(this,e.call(this));return n.getReferenceRef=function(e){return n.setState(function(t){var n=t.context;return{context:(0,o.default)({},n,{referenceNode:e})}})},n.state={context:{getReferenceRef:n.getReferenceRef,referenceNode:void 0}},n}return(0,f.default)(t,e),t.prototype.render=function(){return h.createElement(g.Provider,{value:this.state.context},this.props.children)},t}(h.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(0),o=r(i),a=n(319),s=r(a);t.default=o.default.createContext||s.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":f(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":f(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function u(e){return Array.isArray(e)?e[0]:e}function c(e,t){var n,r,c="__create-react-context-"+(0,g.default)()+"__",f=function(e){function n(){var t,r,a;i(this,n);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return t=r=o(this,e.call.apply(e,[this].concat(u))),r.emitter=l(r.props.value),a=t,o(r,a)}return a(n,e),n.prototype.getChildContext=function(){var e;return e={},e[c]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;s(n,r)?i=0:(i="function"==typeof t?t(n,r):y,0!==(i|=0)&&this.emitter.set(e.value,i))}},n.prototype.render=function(){return this.props.children},n}(d.Component);f.childContextTypes=(n={},n[c]=p.default.object.isRequired,n);var h=function(t){function n(){var e,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return e=r=o(this,t.call.apply(t,[this].concat(l))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},a=e,o(r,a)}return a(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?y:t},n.prototype.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?y:e},n.prototype.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[c]?this.context[c].get():e},n.prototype.render=function(){return u(this.props.children)(this.state.value)},n}(d.Component);return h.contextTypes=(r={},r[c]=p.default.object,r),{Provider:f,Consumer:h}}var f="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};t.__esModule=!0;var d=n(0),h=(r(d),n(1)),p=r(h),v=n(320),g=r(v),m=n(321),y=(r(m),1073741823);t.default=c,e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(t,n(14))},function(e,t,n){"use strict";var r=n(322),i=r;e.exports=i},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.unwrapArray=function(e){return Array.isArray(e)?e[0]:e},t.safeInvoke=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"==typeof e)return e.apply(void 0,n)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(325),y=r(m),b=n(126),_=r(b),x=n(3),w=n(129),S=r(w),C=n(130),T=r(C),k=n(22),P=(0,S.default)(y.default),O=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderToken=function(e,t){var n=r.props,i=n.onRemove,o=n.renderToken,a=u({},r.props,{onRemove:function(){return i(e)}});return o(e,a,t)},r._handleContainerClickOrFocus=function(e){if(r.props.disabled)return void e.target.blur();var t=r._input;e.target!==t&&(t.selectionStart=t.value.length),t.focus()},r._handleKeyDown=function(e){var t=r.props,n=t.onKeyDown,i=t.selected,o=t.value;switch(e.keyCode){case k.BACKSPACE:if(e.target===r._input&&i.length&&!o){var a=r._wrapper.children,s=a[a.length-2];s&&s.focus()}}n(e)},i=n,a(r,i)}return s(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.inputClassName,o=(t.labelKey,t.onRemove,t.renderToken,t.selected),a=i(t,["className","inputClassName","labelKey","onRemove","renderToken","selected"]);return g.default.createElement("div",{className:(0,d.default)("form-control","rbt-input-multi",n),disabled:a.disabled,onClick:this._handleContainerClickOrFocus,onFocus:this._handleContainerClickOrFocus,tabIndex:-1},g.default.createElement("div",{className:"rbt-input-wrapper",ref:function(t){return e._wrapper=t}},o.map(this._renderToken),g.default.createElement(P,u({},a,{inputClassName:(0,d.default)("rbt-input-main",r),inputRef:function(t){e._input=t,e.props.inputRef(t)},inputStyle:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0},onKeyDown:this._handleKeyDown,style:{position:"relative",zIndex:1}}))))}}]),t}(g.default.Component);O.propTypes={renderToken:p.default.func},O.defaultProps={renderToken:function(e,t,n){return g.default.createElement(_.default,{disabled:t.disabled,key:n,onRemove:t.onRemove,tabIndex:t.tabIndex},(0,x.getOptionLabel)(e,t.labelKey))}},t.default=(0,T.default)(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),f=r(c),d=n(0),h=r(d),p={height:0,left:0,overflow:"scroll",position:"absolute",top:0,visibility:"hidden",whiteSpace:"pre"},v=["inputClassName","inputRef","inputStyle"],g=1,m=function(e){return v.forEach(function(t){return delete e[t]}),e},y=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},b=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={inputWidth:g},r._copyInputStyles=function(){var e=r._input&&window.getComputedStyle&&window.getComputedStyle(r._input);e&&(y(e,r._sizer),r._placeHolderSizer&&y(e,r._placeHolderSizer))},r._updateInputWidth=function(){if(r._sizer&&void 0!==r._sizer.scrollWidth){r._copyInputStyles();var e=r._placeHolderSizer&&r._placeHolderSizer.scrollWidth||g,t=Math.max(r._sizer.scrollWidth,e)+2;t!==r.state.inputWidth&&r.setState({inputWidth:t})}},a=n,o(r,a)}return a(t,e),u(t,[{key:"componentDidMount",value:function(){this._updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){this._updateInputWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.defaultValue,i=t.placeholder,o=t.value,a=l({},this.props.style);a.display||(a.display="inline-block");var s=m(l({},this.props,{className:this.props.inputClassName,style:l({},this.props.inputStyle,{boxSizing:"content-box",width:this.state.inputWidth+"px"})}));return h.default.createElement("div",{className:n,style:a},h.default.createElement("input",l({},s,{ref:function(t){e._input=t,"function"==typeof e.props.inputRef&&e.props.inputRef(t)}})),h.default.createElement("div",{ref:function(t){return e._sizer=t},style:p},r||o||""),i?h.default.createElement("div",{ref:function(t){return e._placeHolderSizer=t},style:p},i):null)}}]),t}(h.default.Component);b.propTypes={inputClassName:f.default.string,inputRef:f.default.func,inputStyle:f.default.object},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(0),p=r(h),v=n(129),g=r(v),m=n(130),y=r(m),b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.inputRef,r=i(e,["className","inputRef"]);return p.default.createElement("input",u({},r,{className:(0,d.default)("rbt-input-main","form-control",t),ref:n,type:"text"}))}}]),t}(p.default.Component);t.default=(0,y.default)((0,g.default)(b))},function(e,t,n){"use strict";function r(e){return function(t,n,r,i,o){var a=r||"<<anonymous>>",s=o||n;if(null==t[n])return new Error("The "+i+" `"+s+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c<l;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,r,i,o].concat(u))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":f(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":f(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+Math.random().toString(36).substr(2,12)}function u(e){var t=e.defaultInputValue,n=e.defaultSelected,r=e.maxResults,i=e.multiple,o=e.selected?e.selected.slice():n.slice(),a=t;return!i&&o.length&&(a=(0,F.getOptionLabel)((0,m.default)(o),e.labelKey),o.length>1&&(o=o.slice(0,1))),{activeIndex:-1,activeItem:null,initialItem:null,selected:o,showMenu:!1,shownResults:r,text:a}}function c(e){e=(0,v.default)(K.default)(e);var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.blur=function(){t.getInput().blur(),t._hideMenu()},t.clear=function(){t.setState(d({},u(t.props),{selected:[],text:""}))},t.focus=function(){t.getInput().focus()},t.getInput=function(){return t._input},t._handleActiveIndexChange=function(e){var n={activeIndex:e};-1===e&&(n.activeItem=null),t.setState(n)},t._handleActiveItemChange=function(e){t.setState({activeItem:e})},t._handleClear=function(){t.clear(),t._updateSelected([])},t._handleFocus=function(e){t.setState({showMenu:!0},function(){return t.props.onFocus(e)})},t._handleInitialItemChange=function(e){var n=t.props.labelKey,r=t.state.initialItem;(0,b.default)(e,r)||r&&e&&e.customOption&&e[n]===r[n]||t.setState({initialItem:e})},t._handleInputChange=function(e){e.persist();var n=e.target.value,r=u(t.props),i=r.activeIndex,o=r.activeItem,a=r.shownResults,s=t.props,l=s.multiple,c=s.onInputChange;t.setState({activeIndex:i,activeItem:o,showMenu:!0,shownResults:a,text:n},function(){return c(n,e)}),t.state.selected.length&&!l&&t._updateSelected([])},t._handleKeyDown=function(e,n,r){var i=t.state.activeItem;switch(e.keyCode){case R.UP:case R.DOWN:if(!r){t._showMenu();break}var o=t.state.activeIndex;for(e.preventDefault(),o+=e.keyCode===R.UP?-1:1;n[o]&&n[o].disabled;)o+=e.keyCode===R.UP?-1:1;o===n.length?o=-1:-2===o&&(o=n.length-1),t._handleActiveIndexChange(o);break;case R.ESC:r&&t._hideMenu();break;case R.RETURN:if(!r)break;e.preventDefault(),i&&t._handleMenuItemSelect(i,e);break;case R.RIGHT:case R.TAB:if(!r)break;if(i&&!i.paginationOption){e.keyCode===R.TAB&&e.preventDefault(),t._handleSelectionAdd(i);break}e.keyCode===R.TAB&&t._hideMenu()}t.props.onKeyDown(e)},t._handleMenuItemSelect=function(e,n){e.paginationOption?t._handlePaginate(n):t._handleSelectionAdd(e)},t._handlePaginate=function(e){e.persist();var n=t.props,r=n.maxResults,i=n.onPaginate,o=t.state.shownResults+r;t.setState({shownResults:o},function(){return i(e,o)})},t._handleSelectionAdd=function(e){var n=t.props,r=n.multiple,i=n.labelKey,o=void 0,a=void 0;r?(o=t.state.selected.concat(e),a=""):(o=[e],a=(0,F.getOptionLabel)(e,i)),t._hideMenu(),t.setState({initialItem:e,text:a}),t._updateSelected(o)},t._handleSelectionRemove=function(e){var n=t.state.selected.filter(function(t){return!(0,b.default)(t,e)});t.focus(),t._hideMenu(),t._updateSelected(n)},t.handleClickOutside=function(e){t.state.showMenu&&t._hideMenu()},t._hideMenu=function(){var e=u(t.props),n=e.activeIndex,r=e.activeItem,i=e.showMenu,o=e.shownResults;t.setState({activeIndex:n,activeItem:r,showMenu:i,shownResults:o})},t._showMenu=function(){t.setState({showMenu:!0})},t._updateSelected=function(e){t.setState({selected:e},function(){return t.props.onChange(e)})},t.state=u(e),t}return s(n,t),h(n,[{key:"getChildContext",value:function(){return{activeIndex:this.state.activeIndex,onActiveItemChange:this._handleActiveItemChange,onInitialItemChange:this._handleInitialItemChange,onMenuItemClick:this._handleMenuItemSelect}}},{key:"componentWillMount",value:function(){this._menuId=l("rbt-menu-")}},{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=e.labelKey,n=e.multiple,r=e.selected;if(r&&!(0,b.default)(r,this.state.selected)){if(this.setState({selected:r}),n)return;this.setState({text:r.length?(0,F.getOptionLabel)((0,m.default)(r),t):""})}var i=r||this.state.selected;if(!n&&i.length>1)return i=i.slice(0,1),void this.setState({selected:i,text:(0,F.getOptionLabel)((0,m.default)(i),t)});n!==this.props.multiple&&this.setState({text:""})}},{key:"render",value:function(){var t=this,n=d({},this.props,this.state),r=n.filterBy,o=n.labelKey,a=n.minLength,s=n.options,l=n.paginate,u=n.paginationText,c=n.shownResults,f=n.text,h=[];if(f.length>=a){var p=Array.isArray(r)?F.defaultFilterBy:r;h=s.filter(function(e){return p(e,n)})}var v=l&&h.length>c;if(h=(0,F.getTruncatedOptions)(h,c),(0,F.addCustomOption)(h,n)&&h.push(i({customOption:!0,id:(0,S.default)("new-id-")},(0,F.getStringLabelKey)(o),f)),v){var g;h.push((g={},i(g,(0,F.getStringLabelKey)(o),u),i(g,"paginationOption",!0),g))}var m=(0,F.isShown)(h,n);return E.default.createElement(e,d({},n,{inputRef:function(e){return t._input=e},isMenuShown:m,menuId:this.props.menuId||this._menuId,onAdd:this._handleSelectionAdd,onChange:this._handleInputChange,onClear:this._handleClear,onFocus:this._handleFocus,onInitialItemChange:this._handleInitialItemChange,onKeyDown:function(e){return t._handleKeyDown(e,h,m)},onRemove:this._handleSelectionRemove,results:h}))}}]),n}(E.default.Component);return t.displayName="TypeaheadContainer("+(0,F.getDisplayName)(e)+")",t.propTypes={a11yNumResults:T.default.func,a11yNumSelected:T.default.func,align:T.default.oneOf(["justify","left","right"]),allowNew:T.default.oneOfType([T.default.bool,T.default.func]),autoFocus:T.default.bool,bodyContainer:T.default.bool,caseSensitive:(0,M.checkPropType)(T.default.bool,M.caseSensitiveType),clearButton:T.default.bool,defaultInputValue:(0,M.checkPropType)(T.default.string,M.defaultInputValueType),defaultSelected:M.optionType,disabled:T.default.bool,dropup:T.default.bool,emptyLabel:T.default.node,filterBy:T.default.oneOfType([T.default.arrayOf(T.default.string.isRequired),T.default.func]),flip:T.default.bool,highlightOnlyResult:(0,M.checkPropType)(T.default.bool,M.highlightOnlyResultType),ignoreDiacritics:(0,M.checkPropType)(T.default.bool,M.ignoreDiacriticsType),inputProps:(0,M.checkPropType)(T.default.object,M.inputPropsType),isInvalid:T.default.bool,isLoading:T.default.bool,isValid:T.default.bool,labelKey:(0,M.checkPropType)(T.default.oneOfType([T.default.string,T.default.func]),M.labelKeyType),maxResults:T.default.number,menuId:T.default.oneOfType([T.default.number,T.default.string]),minLength:T.default.number,multiple:T.default.bool,onBlur:T.default.func,onChange:T.default.func,onFocus:T.default.func,onInputChange:T.default.func,onKeyDown:T.default.func,onMenuHide:T.default.func,onMenuShow:T.default.func,onPaginate:T.default.func,options:M.optionType.isRequired,paginate:T.default.bool,paginationText:T.default.string,placeholder:T.default.string,renderMenu:T.default.func,selected:M.optionType,selectHintOnEnter:T.default.bool},t.defaultProps={a11yNumResults:function(e){return(0,F.pluralize)("result",e.length)+". Use up and down arrow keys to navigate."},a11yNumSelected:function(e){return(0,F.pluralize)("selection",e.length)},align:"justify",allowNew:!1,autoFocus:!1,bodyContainer:!1,caseSensitive:!1,clearButton:!1,defaultInputValue:"",defaultSelected:[],disabled:!1,dropup:!1,emptyLabel:"No matches found.",filterBy:[],flip:!1,highlightOnlyResult:!1,ignoreDiacritics:!0,inputProps:{},isInvalid:!1,isLoading:!1,isValid:!1,labelKey:I.DEFAULT_LABELKEY,maxResults:100,minLength:0,multiple:!1,onBlur:x.default,onChange:x.default,onFocus:x.default,onInputChange:x.default,onKeyDown:x.default,onMenuHide:x.default,onMenuShow:x.default,onPaginate:x.default,paginate:!0,paginationText:"Display additional results...",placeholder:"",selectHintOnEnter:!1},t.childContextTypes={activeIndex:T.default.number.isRequired,onActiveItemChange:T.default.func.isRequired,onInitialItemChange:T.default.func.isRequired,onMenuItemClick:T.default.func.isRequired},(0,P.default)(t)}var f="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};Object.defineProperty(t,"__esModule",{value:!0});var 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(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(329),v=r(p),g=n(55),m=r(g),y=n(83),b=r(y),_=n(71),x=r(_),w=n(337),S=r(w),C=n(1),T=r(C),k=n(128),P=r(k),O=n(0),E=r(O),N=n(338),K=r(N),M=n(339),F=n(3),I=n(102),R=n(22);t.default=c},function(e,t,n){"use strict";var r=n(330),i=r(!0);e.exports=i},function(e,t,n){"use strict";function r(e){return o(function(t){var n=t.length,r=n,o=i.prototype.thru;for(e&&t.reverse();r--;){var v=t[r];if("function"!=typeof v)throw new TypeError(c);if(o&&!g&&"wrapper"==s(v))var g=new i([],!0)}for(r=g?r:n;++r<n;){v=t[r];var m=s(v),y="wrapper"==m?a(v):void 0;g=y&&u(y[0])&&y[1]==(h|f|d|p)&&!y[4].length&&1==y[9]?g[s(y[0])].apply(g,y[3]):1==v.length&&u(v)?g[m]():g.thru(v)}return function(){var e=arguments,r=e[0];if(g&&1==e.length&&l(r))return g.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}var i=n(72),o=n(106),a=n(136),s=n(137),l=n(2),u=n(333),c="Expected a function",f=8,d=32,h=128,p=256;e.exports=r},function(e,t,n){"use strict";var r=n(93),i=r&&new r;e.exports=i},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=o(n);return!!r&&e===r[0]}var i=n(74),o=n(136),a=n(137),s=n(334);e.exports=r},function(e,t,n){"use strict";function r(e){if(l(e)&&!s(e)&&!(e instanceof i)){if(e instanceof o)return e;if(f.call(e,"__wrapped__"))return u(e)}return new o(e)}var i=n(74),o=n(72),a=n(73),s=n(2),l=n(8),u=n(335),c=Object.prototype,f=c.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){"use strict";function r(e){if(e instanceof i)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var i=n(74),o=n(72),a=n(336);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=r},function(e,t,n){"use strict";function r(e){var t=++o;return i(e)+t}var i=n(96),o=0;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=function(t){function n(){var e,t,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={isOnlyResult:!1},r._handleKeyDown=function(e){var t=r.props,n=t.initialItem,i=t.onKeyDown,o=t.onAdd;switch(e.keyCode){case m.RETURN:r.state.isOnlyResult&&o(n)}i(e)},a=t,o(r,a)}return a(n,t),c(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowNew,n=e.highlightOnlyResult,r=e.results;n&&!t&&r.length!==this.props.results.length&&this.setState({isOnlyResult:1===r.length&&!(0,d.default)(r).disabled})}},{key:"getChildContext",value:function(){return{isOnlyResult:this.state.isOnlyResult}}},{key:"render",value:function(){return g.default.createElement(e,u({},this.props,{onKeyDown:this._handleKeyDown}))}}]),n}(g.default.Component);return t.childContextTypes={isOnlyResult:p.default.bool.isRequired},t}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(55),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(22);t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.optionType=t.labelKeyType=t.inputPropsType=t.ignoreDiacriticsType=t.highlightOnlyResultType=t.defaultInputValueType=t.checkPropType=t.caseSensitiveType=void 0;var i=n(340),o=r(i),a=n(341),s=r(a),l=n(342),u=r(l),c=n(343),f=r(c),d=n(344),h=r(d),p=n(345),v=r(p),g=n(346),m=r(g),y=n(347),b=r(y);t.caseSensitiveType=o.default,t.checkPropType=s.default,t.defaultInputValueType=u.default,t.highlightOnlyResultType=f.default,t.ignoreDiacriticsType=h.default,t.inputPropsType=v.default,t.labelKeyType=m.default,t.optionType=b.default},function(e,t,n){"use strict";function r(e,t,n){var r=e.caseSensitive,i=e.filterBy;(0,o.default)(!r||"function"!=typeof i,"Your `filterBy` function will override the `caseSensitive` prop.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(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,t){return function(n,i,o){a.default.checkPropTypes(r({},i,e),n,"prop",o),"function"==typeof t&&t(n,i,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(1),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e,t,n){var r=e.defaultInputValue,i=e.defaultSelected,a=e.multiple,s=e.selected,l=i.length?"defaultSelected":"selected";(0,o.default)(!(!a&&r&&(i.length||s&&s.length)),"`defaultInputValue` will be overridden by the value from `"+l+"`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t,n){var r=e.allowNew,i=e.highlightOnlyResult;(0,o.default)(!(i&&r),"`highlightOnlyResult` will not work with `allowNew`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t,n){var r=e.filterBy,i=e.ignoreDiacritics;(0,o.default)(i||"function"!=typeof r,"Your `filterBy` function will override the `ignoreDiacritics` prop.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=e.inputProps;r&&(0,a.default)(r)&&u.forEach(function(e){var t=e.alt,n=e.prop,i=t?" Use the top-level `"+t+"` prop instead.":null;(0,l.default)(!r.hasOwnProperty(n),"The `"+n+"` property of `inputProps` will be ignored."+i)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(100),a=r(o),s=n(9),l=r(s),u=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}]},function(e,t,n){"use strict";function r(e,t,n){var r=e.allowNew,i=e.labelKey;(0,o.default)(!("function"==typeof i&&r),"`labelKey` must be a string when `allowNew={true}`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default.oneOfType([i.default.arrayOf(i.default.object.isRequired),i.default.arrayOf(i.default.string.isRequired)])},function(e,t,n){"use strict";function r(e){var t=e.images,n=e.selected,r=e.onSelect;return o.default.createElement("div",{className:"form-group field field-number"},o.default.createElement("select",{onChange:function(e){return r(e.target.value)},value:n,className:"form-control"},t.map(function(e,t){var n=e.name,r=e.url;return o.default.createElement("option",{key:t,value:r},n)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){var t=e.images,n=e.selected,r=e.onSelect;return o.default.createElement("div",{className:"form-group field field-number"},o.default.createElement("select",{onChange:function(e){return r(e.target.value)},value:n,className:"form-control"},t.map(function(e,t){var n=e.name,r=e.key;return o.default.createElement("option",{key:t,value:r},n)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)}])});
|
60
|
+
e.exports=function t(i){function o(e,t,n,r,i,o,a,s){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 l=[n,r,i,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}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]);o(!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)}function s(e){return null===e||"object"!==(void 0===e?"undefined":r(e))?null:(e=zt&&e[zt]||e["@@iterator"],"function"==typeof e?e:null)}function l(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 At:return"ConcurrentMode";case Mt:return"Fragment";case Nt:return"Portal";case Ft:return"Profiler";case Kt:return"StrictMode";case jt:return"Suspense"}if("object"===(void 0===e?"undefined":r(e)))switch(e.$$typeof){case Rt:return"Context.Consumer";case It:return"Context.Provider";case Dt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Lt:return l(e.type);case Ut:if(e=1===e._status?e._result:null)return l(e)}return null}function u(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(t=t.return,0!=(2&t.effectTag))return 1}return 3===t.tag?2:3}function c(e){2!==u(e)&&a("188")}function f(e){var t=e.alternate;if(!t)return t=u(e),3===t&&a("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var s=i.child;s;){if(s===n)return c(i),e;if(s===r)return c(i),t;s=s.sibling}a("188")}if(n.return!==r.return)n=i,r=o;else{s=!1;for(var l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}s||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}function d(e){if(!(e=f(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function h(e){if(!(e=f(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function p(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,i=l(e.type),o=null;n&&(o=l(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Un,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}function v(e){0>Vn||(e.current=zn[Vn],zn[Vn]=null,Vn--)}function g(e,t){Vn++,zn[Vn]=e.current,e.current=t}function m(e,t){var n=e.type.contextTypes;if(!n)return Gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function y(e){return null!==(e=e.childContextTypes)&&void 0!==e}function b(e){v(Bn,e),v(Wn,e)}function _(e){v(Bn,e),v(Wn,e)}function x(e,t,n){Wn.current!==Gn&&a("168"),g(Wn,t,e),g(Bn,n,e)}function w(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var i in r)i in e||a("108",l(t)||"Unknown",i);return Ct({},n,r)}function S(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Gn,Hn=Wn.current,g(Wn,t,e),g(Bn,Bn.current,e),!0}function C(e,t,n){var r=e.stateNode;r||a("169"),n?(t=w(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=t,v(Bn,e),v(Wn,e),g(Wn,t,e)):v(Bn,e),g(Bn,n,e)}function T(e){return function(t){try{return e(t)}catch(e){}}}function k(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);qn=T(function(e){return t.onCommitFiberRoot(n,e)}),Yn=T(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function P(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 O(e,t,n,r){return new P(e,t,n,r)}function E(e){return!(!(e=e.prototype)||!e.isReactComponent)}function N(e){if("function"==typeof e)return E(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Dt)return 11;if(e===Lt)return 14}return 2}function M(e,t){var n=e.alternate;return null===n?(n=O(e.tag,t,e.key,e.mode),n.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 K(e,t,n,i,o,s){var l=2;if(i=e,"function"==typeof e)E(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Mt:return F(n.children,o,s,t);case At:return I(n,3|o,s,t);case Kt:return I(n,2|o,s,t);case Ft:return e=O(12,n,t,4|o),e.elementType=Ft,e.type=Ft,e.expirationTime=s,e;case jt:return e=O(13,n,t,o),e.elementType=jt,e.type=jt,e.expirationTime=s,e;default:if("object"===(void 0===e?"undefined":r(e))&&null!==e)switch(e.$$typeof){case It:l=10;break e;case Rt:l=9;break e;case Dt:l=11;break e;case Lt:l=14;break e;case Ut:l=16,i=null;break e}a("130",null==e?e:void 0===e?"undefined":r(e),"")}return t=O(l,n,t,o),t.elementType=e,t.type=i,t.expirationTime=s,t}function F(e,t,n,r){return e=O(7,e,r,t),e.expirationTime=n,e}function I(e,t,n,r){return e=O(8,e,r,t),t=0==(1&t)?Kt:At,e.elementType=t,e.type=t,e.expirationTime=n,e}function R(e,t,n){return e=O(6,e,null,t),e.expirationTime=n,e}function A(e,t,n){return t=O(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D(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),U(t,e)}function j(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),U(t,e)}function L(e,t){var n=e.earliestPendingTime;return e=e.earliestSuspendedTime,n>t&&(t=n),e>t&&(t=e),t}function U(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;i=0!==i?i:o,0===i&&(0===e||r<e)&&(i=r),e=i,0!==e&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function z(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function V(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function G(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function W(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function B(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=z(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=z(e.memoizedState),i=n.updateQueue=z(n.memoizedState)):r=e.updateQueue=V(i):null===i&&(i=n.updateQueue=V(r));null===i||r===i?W(r,t):null===r.lastUpdate||null===i.lastUpdate?(W(r,t),W(i,t)):(W(r,t),i.lastUpdate=t)}function H(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=z(e.memoizedState):q(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function q(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=V(t)),t}function Y(e,t,n,r,i,o){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(i="function"==typeof e?e.call(o,r,i):e)||void 0===i)break;return Ct({},r,i);case 2:Xn=!0}return r}function X(e,t,n,r,i){Xn=!1,t=q(e,t);for(var o=t.baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=Y(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<i?(null===c&&(c=l,null===a&&(o=u)),s<f&&(s=f)):(u=Y(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Q(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),$(t.firstEffect,n),t.firstEffect=t.lastEffect=null,$(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function $(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 J(e,t){return{value:e,source:t,stack:p(t)}}function Z(e,t){var n=e.type._context;ln?(g(Qn,n._currentValue,e),n._currentValue=t):(g(Qn,n._currentValue2,e),n._currentValue2=t)}function ee(e){var t=Qn.current;v(Qn,e),e=e.type._context,ln?e._currentValue=t:e._currentValue2=t}function te(e){$n=e,Zn=Jn=null,e.firstContextDependency=null}function ne(e,t){return Zn!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Zn=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jn?(null===$n&&a("293"),$n.firstContextDependency=Jn=t):Jn=Jn.next=t),ln?e._currentValue:e._currentValue2}function re(e){return e===er&&a("174"),e}function ie(e,t){g(rr,t,e),g(nr,e,e),g(tr,er,e),t=Gt(t),v(tr,e),g(tr,t,e)}function oe(e){v(tr,e),v(nr,e),v(rr,e)}function ae(){return re(tr.current)}function se(e){var t=re(rr.current),n=re(tr.current);t=Wt(n,e.type,t),n!==t&&(g(nr,e,e),g(tr,t,e))}function le(e){nr.current===e&&(v(tr,e),v(nr,e))}function ue(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function ce(e,t){if(ue(e,t))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!ir.call(t,n[i])||!ue(e[n[i]],t[n[i]]))return!1;return!0}function fe(e,t){if(e&&e.defaultProps){t=Ct({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function de(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,t=e._ctor,t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}function he(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:Ct({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}function pe(e,t,n,r,i,o,a){return e=e.stateNode,"function"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ce(n,r)||!ce(i,o))}function ve(e,t,n){var i=!1,o=Gn,a=t.contextType;return"object"===(void 0===a?"undefined":r(a))&&null!==a?a=or.currentDispatcher.readContext(a):(o=y(t)?Hn:Wn.current,i=t.contextTypes,a=(i=null!==i&&void 0!==i)?m(e,o):Gn),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sr,e.stateNode=t,t._reactInternalFiber=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ge(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&&sr.enqueueReplaceState(t,t.state,null)}function me(e,t,n,i){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ar;var a=t.contextType;"object"===(void 0===a?"undefined":r(a))&&null!==a?o.context=or.currentDispatcher.readContext(a):(a=y(t)?Hn:Wn.current,o.context=m(e,a)),a=e.updateQueue,null!==a&&(X(e,a,n,o,i),o.state=e.memoizedState),a=t.getDerivedStateFromProps,"function"==typeof a&&(he(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&sr.enqueueReplaceState(o,o.state,null),null!==(a=e.updateQueue)&&(X(e,a,n,o,i),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}function ye(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==(void 0===e?"undefined":r(e))){if(n._owner){n=n._owner;var i=void 0;n&&(1!==n.tag&&a("289"),i=n.stateNode),i||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=i.refs;t===ar&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function be(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function _e(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 i(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=M(e,t,n),e.index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?(t=R(n,e.mode,r),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function f(e,t,n,r){return null!==t&&t.elementType===n.type?(r=o(t,n.props,r),r.ref=ye(e,t,n),r.return=e,r):(r=K(n.type,n.key,n.props,null,e.mode,r),r.ref=ye(e,t,n),r.return=e,r)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=A(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[],r),t.return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?(t=F(n,e.mode,r,i),t.return=e,t):(t=o(t,n,r),t.return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return t=R(""+t,e.mode,n),t.return=e,t;if("object"===(void 0===t?"undefined":r(t))&&null!==t){switch(t.$$typeof){case Et:return n=K(t.type,t.key,t.props,null,e.mode,n),n.ref=ye(e,null,t),n.return=e,n;case Nt:return t=A(t,e.mode,n),t.return=e,t}if(lr(t)||s(t))return t=F(t,e.mode,n,null),t.return=e,t;be(e,t)}return null}function v(e,t,n,i){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,i);if("object"===(void 0===n?"undefined":r(n))&&null!==n){switch(n.$$typeof){case Et:return n.key===o?n.type===Mt?h(e,t,n.props.children,i,o):f(e,t,n,i):null;case Nt:return n.key===o?d(e,t,n,i):null}if(lr(n)||s(n))return null!==o?null:h(e,t,n,i,null);be(e,n)}return null}function g(e,t,n,i,o){if("string"==typeof i||"number"==typeof i)return e=e.get(n)||null,c(t,e,""+i,o);if("object"===(void 0===i?"undefined":r(i))&&null!==i){switch(i.$$typeof){case Et:return e=e.get(null===i.key?n:i.key)||null,i.type===Mt?h(t,e,i.props.children,o,i.key):f(t,e,i,o);case Nt:return e=e.get(null===i.key?n:i.key)||null,d(t,e,i,o)}if(lr(i)||s(i))return e=e.get(n)||null,h(t,e,i,o,null);be(t,i)}return null}function m(r,o,a,s){for(var u=null,c=null,f=o,d=o=0,h=null;null!==f&&d<a.length;d++){f.index>d?(h=f,f=null):h=f.sibling;var m=v(r,f,a[d],s);if(null===m){null===f&&(f=h);break}e&&f&&null===m.alternate&&t(r,f),o=l(m,o,d),null===c?u=m:c.sibling=m,c=m,f=h}if(d===a.length)return n(r,f),u;if(null===f){for(;d<a.length;d++)(f=p(r,a[d],s))&&(o=l(f,o,d),null===c?u=f:c.sibling=f,c=f);return u}for(f=i(r,f);d<a.length;d++)(h=g(f,r,d,a[d],s))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),o=l(h,o,d),null===c?u=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return t(r,e)}),u}function y(r,o,u,c){var f=s(u);"function"!=typeof f&&a("150"),null==(u=f.call(u))&&a("151");for(var d=f=null,h=o,m=o=0,y=null,b=u.next();null!==h&&!b.done;m++,b=u.next()){h.index>m?(y=h,h=null):y=h.sibling;var _=v(r,h,b.value,c);if(null===_){h||(h=y);break}e&&h&&null===_.alternate&&t(r,h),o=l(_,o,m),null===d?f=_:d.sibling=_,d=_,h=y}if(b.done)return n(r,h),f;if(null===h){for(;!b.done;m++,b=u.next())null!==(b=p(r,b.value,c))&&(o=l(b,o,m),null===d?f=b:d.sibling=b,d=b);return f}for(h=i(r,h);!b.done;m++,b=u.next())null!==(b=g(h,r,m,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),o=l(b,o,m),null===d?f=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(r,e)}),f}return function(e,i,l,c){var f="object"===(void 0===l?"undefined":r(l))&&null!==l&&l.type===Mt&&null===l.key;f&&(l=l.props.children);var d="object"===(void 0===l?"undefined":r(l))&&null!==l;if(d)switch(l.$$typeof){case Et:e:{for(d=l.key,f=i;null!==f;){if(f.key===d){if(7===f.tag?l.type===Mt:f.elementType===l.type){n(e,f.sibling),i=o(f,l.type===Mt?l.props.children:l.props,c),i.ref=ye(e,f,l),i.return=e,e=i;break e}n(e,f);break}t(e,f),f=f.sibling}l.type===Mt?(i=F(l.props.children,e.mode,c,l.key),i.return=e,e=i):(c=K(l.type,l.key,l.props,null,e.mode,c),c.ref=ye(e,i,l),c.return=e,e=c)}return u(e);case Nt:e:{for(f=l.key;null!==i;){if(i.key===f){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(e,i.sibling),i=o(i,l.children||[],c),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=A(l,e.mode,c),i.return=e,e=i}return u(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,l,c),i.return=e,e=i):(n(e,i),i=R(l,e.mode,c),i.return=e,e=i),u(e);if(lr(l))return m(e,i,l,c);if(s(l))return y(e,i,l,c);if(d&&be(e,l),void 0===l&&!f)switch(e.tag){case 1:case 0:c=e.type,a("152",c.displayName||c.name||"Component")}return n(e,i)}}function xe(e,t){var n=O(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 we(e,t){switch(e.tag){case 5:return null!==(t=In(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Rn(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Se(e){if(hr){var t=dr;if(t){var n=t;if(!we(e,t)){if(!(t=An(n))||!we(e,t))return e.effectTag|=2,hr=!1,void(fr=e);xe(fr,n)}fr=e,dr=Dn(t)}else e.effectTag|=2,hr=!1,fr=e}}function Ce(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;fr=e}function Te(e){if(!fn||e!==fr)return!1;if(!hr)return Ce(e),hr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$t(t,e.memoizedProps))for(t=dr;t;)xe(e,t),t=An(t);return Ce(e),dr=fr?An(e.stateNode):null,!0}function ke(){fn&&(dr=fr=null,hr=!1)}function Pe(e,t,n,r){t.child=null===e?cr(t,null,n,r):ur(t,e.child,n,r)}function Oe(e,t,n,r,i){n=n.render;var o=t.ref;return te(t,i),r=n(r,o),t.effectTag|=1,Pe(e,t,r,i),t.child}function Ee(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||E(a)||void 0!==a.defaultProps||null!==n.compare?(e=K(n.type,null,r,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ne(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,n=n.compare,(n=null!==n?n:ce)(i,r)&&e.ref===t.ref)?De(e,t,o):(t.effectTag|=1,e=M(a,r,o),e.ref=t.ref,e.return=t,t.child=e)}function Ne(e,t,n,r,i,o){return null!==e&&i<o&&ce(e.memoizedProps,r)&&e.ref===t.ref?De(e,t,o):Ke(e,t,n,r,o)}function Me(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ke(e,t,n,r,i){var o=y(n)?Hn:Wn.current;return o=m(t,o),te(t,i),n=n(r,o),t.effectTag|=1,Pe(e,t,n,i),t.child}function Fe(e,t,n,i,o){if(y(n)){var a=!0;S(t)}else a=!1;if(te(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ve(t,n,i,o),me(t,n,i,o),i=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;"object"===(void 0===c?"undefined":r(c))&&null!==c?c=or.currentDispatcher.readContext(c):(c=y(n)?Hn:Wn.current,c=m(t,c));var f=n.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||u!==c)&&ge(t,s,i,c),Xn=!1;var h=t.memoizedState;u=s.state=h;var p=t.updateQueue;null!==p&&(X(t,p,i,s,o),u=t.memoizedState),l!==i||h!==u||Bn.current||Xn?("function"==typeof f&&(he(t,n,f,i),u=t.memoizedState),(l=Xn||pe(t,n,l,i,h,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=u),s.props=i,s.state=u,s.context=c,i=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.stateNode,l=t.memoizedProps,s.props=t.type===t.elementType?l:fe(t.type,l),u=s.context,c=n.contextType,"object"===(void 0===c?"undefined":r(c))&&null!==c?c=or.currentDispatcher.readContext(c):(c=y(n)?Hn:Wn.current,c=m(t,c)),f=n.getDerivedStateFromProps,(d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||u!==c)&&ge(t,s,i,c),Xn=!1,u=t.memoizedState,h=s.state=u,p=t.updateQueue,null!==p&&(X(t,p,i,s,o),h=t.memoizedState),l!==i||u!==h||Bn.current||Xn?("function"==typeof f&&(he(t,n,f,i),h=t.memoizedState),(f=Xn||pe(t,n,l,i,u,h,c))?(d||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,h,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,h,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=h),s.props=i,s.state=h,s.context=c,i=f):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),i=!1);return Ie(e,t,n,i,a,o)}function Ie(e,t,n,r,i,o){Me(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&C(t,n,!1),De(e,t,o);r=t.stateNode,pr.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ur(t,e.child,null,o),t.child=ur(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&C(t,n,!0),t.child}function Re(e){var t=e.stateNode;t.pendingContext?x(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x(e,t.context,!1),ie(e,t.containerInfo)}function Ae(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=i.fallback,i=F(null,r,0,null),0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=F(a,r,n,null),i.sibling=r,n=i,n.return=r.return=t):n=r=cr(t,null,i.children,n):null!==e.memoizedState?(r=e.child,e=r.sibling,a?(n=i.fallback,i=M(r,r.pendingProps,0),0==(1&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a),r=i.sibling=M(e,n,e.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=ur(t,r.child,i.children,n)):(e=e.child,a?(a=i.fallback,i=F(null,r,0,null),i.child=e,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),r=i.sibling=F(a,r,n,null),r.effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=ur(t,e,i.children,n)),t.memoizedState=o,t.child=n,r}function De(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(e=t.child,n=M(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=M(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function je(e,t,n){var i=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Bn.current&&i<n){switch(t.tag){case 3:Re(t),ke();break;case 5:se(t);break;case 1:y(t.type)&&S(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Z(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?Ae(e,t,n):(t=De(e,t,n),null!==t?t.sibling:null)}return De(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=m(t,Wn.current);if(te(t,n),o=i(e,o),t.effectTag|=1,"object"===(void 0===o?"undefined":r(o))&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,y(i)){var s=!0;S(t)}else s=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=i.getDerivedStateFromProps;"function"==typeof l&&he(t,i,l,e),o.updater=sr,t.stateNode=o,o._reactInternalFiber=t,me(t,i,e,n),t=Ie(null,t,i,!0,s,n)}else t.tag=0,Pe(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),s=t.pendingProps,e=de(o),t.type=e,o=t.tag=N(e),s=fe(e,s),l=void 0,o){case 0:l=Ke(null,t,e,s,n);break;case 1:l=Fe(null,t,e,s,n);break;case 11:l=Oe(null,t,e,s,n);break;case 14:l=Ee(null,t,e,fe(e.type,s),i,n);break;default:a("283",e)}return l;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Ke(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Fe(e,t,i,o,n);case 3:return Re(t),i=t.updateQueue,null===i&&a("282"),o=t.memoizedState,o=null!==o?o.element:null,X(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o?(ke(),t=De(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(fn?(dr=Dn(t.stateNode.containerInfo),fr=t,o=hr=!0):o=!1),o?(t.effectTag|=2,t.child=cr(t,null,i,n)):(Pe(e,t,i,n),ke()),t=t.child),t;case 5:return se(t),null===e&&Se(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,l=o.children,$t(i,o)?l=null:null!==s&&$t(i,s)&&(t.effectTag|=16),Me(e,t),1!==n&&1&t.mode&&Jt(i,o)?(t.expirationTime=1,t=null):(Pe(e,t,l,n),t=t.child),t;case 6:return null===e&&Se(t),null;case 13:return Ae(e,t,n);case 4:return ie(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ur(t,null,i,n):Pe(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),Oe(e,t,i,o,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,Z(t,s),null!==l){var u=l.value;if(0===(s=u===s&&(0!==u||1/u==1/s)||u!==u&&s!==s?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(u,s):1073741823))){if(l.children===o.children&&!Bn.current){t=De(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){if(null!==(u=l.firstContextDependency))do{if(u.context===i&&0!=(u.observedBits&s)){if(1===l.tag){var c=G(n);c.tag=2,B(l,c)}l.expirationTime<n&&(l.expirationTime=n),c=l.alternate,null!==c&&c.expirationTime<n&&(c.expirationTime=n);for(var f=l.return;null!==f;){if(c=f.alternate,f.childExpirationTime<n)f.childExpirationTime=n,null!==c&&c.childExpirationTime<n&&(c.childExpirationTime=n);else{if(!(null!==c&&c.childExpirationTime<n))break;c.childExpirationTime=n}f=f.return}}c=l.child,u=u.next}while(null!==u);else c=10===l.tag&&l.type===t.type?null:l.child;if(null!==c)c.return=l;else for(c=l;null!==c;){if(c===t){c=null;break}if(null!==(l=c.sibling)){l.return=c.return,c=l;break}c=c.return}l=c}}Pe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps,i=s.children,te(t,n),o=ne(o,s.unstable_observedBits),i=i(o),t.effectTag|=1,Pe(e,t,i,n),t.child;case 14:return o=t.type,s=fe(o.type,t.pendingProps),Ee(e,t,o,s,i,n);case 15:return Ne(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:fe(i,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,y(i)?(e=!0,S(t)):e=!1,te(t,n),ve(t,i,o,n),me(t,i,o,n),Ie(null,t,i,!0,e,n);default:a("156")}}function Le(e){e.effectTag|=4}function Ue(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=p(n)),null!==n&&l(n.type),t=t.value,null!==e&&1===e.tag&&l(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function ze(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){nt(e,t)}else t.current=null}function Ve(e){switch("function"==typeof Yn&&Yn(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 i=e;try{r()}catch(e){nt(i,e)}}n=n.next}while(n!==t)}break;case 1:if(ze(e),t=e.stateNode,"function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){nt(e,t)}break;case 5:ze(e);break;case 4:un?He(e):cn&&cn&&(e=e.stateNode.containerInfo,t=Pn(e),Nn(e,t))}}function Ge(e){for(var t=e;;)if(Ve(t),null===t.child||un&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function We(e){return 5===e.tag||3===e.tag||4===e.tag}function Be(e){if(un){e:{for(var t=e.return;null!==t;){if(We(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&&(xn(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||We(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 i=e;;){if(5===i.tag||6===i.tag)n?r?yn(t,i.stateNode,n):mn(t,i.stateNode,n):r?hn(t,i.stateNode):dn(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}}function He(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)Ge(t),i?_n(r,t.stateNode):bn(r,t.stateNode);else if(4===t.tag?(r=t.stateNode.containerInfo,i=!0):Ve(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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function qe(e,t){if(un)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;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&gn(n,o,i,e,r,t)}break;case 6:null===t.stateNode&&a("162"),n=t.memoizedProps,pn(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:case 12:break;case 13:if(r=t.memoizedState,e=t,null===r?n=!1:(n=!0,e=t.child,0===r.timedOutAt&&(r.timedOutAt=dt())),null!==e)e:if(t=e,un)for(r=t;;){if(5===r.tag)e=r.stateNode,n?wn(e):Cn(r.stateNode,r.memoizedProps);else if(6===r.tag)e=r.stateNode,n?Sn(e):Tn(e,r.memoizedProps);else{if(13===r.tag&&null!==r.memoizedState){e=r.child.sibling,e.return=r,r=e;continue}if(null!==r.child){r.child.return=r,r=r.child;continue}}if(r===t)break e;for(;null===r.sibling;){if(null===r.return||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}break;case 17:break;default:a("163")}else{switch(t.tag){case 0:case 11:case 14:case 15:return}if(cn)switch(t.tag){case 1:case 5:case 6:break;case 3:case 4:t=t.stateNode,Nn(t.containerInfo,t.pendingChildren);break;default:a("163")}}}function Ye(e,t,n){n=G(n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xt(r),Ue(e,t)},n}function Xe(e,t,n){n=G(n),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ir?Ir=new Set([this]):Ir.add(this));var n=t.value,i=t.stack;Ue(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function Qe(e){switch(e.tag){case 1:y(e.type)&&b(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return oe(e),_(e),t=e.effectTag,0!=(64&t)&&a("285"),e.effectTag=-2049&t|64,e;case 5:return le(e),null;case 13:return t=e.effectTag,2048&t?(e.effectTag=-2049&t|64,e):null;case 4:return oe(e),null;case 10:return ee(e),null;default:return null}}function $e(){if(null!==Tr)for(var e=Tr.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!==n&&void 0!==n&&b(t);break;case 3:oe(t),_(t);break;case 5:le(t);break;case 4:oe(t);break;case 10:ee(t)}e=e.return}kr=null,Pr=0,Or=-1,Er=!1,Tr=null}function Je(){null!==Fr&&(kt.unstable_cancelCallback(Kr),Fr())}function Ze(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Tr=e;e:{var i=t;t=e;var o=Pr,s=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:y(t.type)&&b(t);break;case 3:oe(t),_(t),s=t.stateNode,s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==i&&null!==i.child||(Te(t),t.effectTag&=-3),gr(t);break;case 5:le(t),o=re(rr.current);var l=t.type;if(null!==i&&null!=t.stateNode)mr(i,t,l,s,o),i.ref!==t.ref&&(t.effectTag|=128);else if(s){if(i=ae(),Te(t))s=t,fn||a("175"),i=jn(s.stateNode,s.type,s.memoizedProps,o,i,s),s.updateQueue=i,(i=null!==i)&&Le(t);else{var u=qt(l,s,o,i,t);vr(u,t,!1,!1),Xt(u,l,s,o,i)&&Le(t),t.stateNode=u}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?yr(i,t,i.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&a("166")),i=re(rr.current),o=ae(),Te(t)?(i=t,fn||a("176"),(i=Ln(i.stateNode,i.memoizedProps,i))&&Le(t)):t.stateNode=Zt(s,i,o,t));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,Tr=t;break e}s=null!==s,o=null!==i&&null!==i.memoizedState,null!==i&&!s&&o&&null!==(i=i.child.sibling)&&(l=t.firstEffect,null!==l?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8),(s!==o||0==(1&t.effectTag)&&s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:oe(t),gr(t);break;case 10:ee(t);break;case 9:case 14:break;case 17:y(t.type)&&b(t);break;default:a("156")}Tr=null}if(t=e,1===Pr||1!==t.childExpirationTime){for(i=0,s=t.child;null!==s;)o=s.expirationTime,l=s.childExpirationTime,o>i&&(i=o),l>i&&(i=l),s=s.sibling;t.childExpirationTime=i}if(null!==Tr)return Tr;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=Qe(e,Pr)))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 et(e){var t=je(e.alternate,e,Pr);return e.memoizedProps=e.pendingProps,null===t&&(t=Ze(e)),xr.current=null,t}function tt(e,t){Cr&&a("243"),Je(),Cr=!0,xr.currentDispatcher=_r;var n=e.nextExpirationTimeToWorkOn;n===Pr&&e===kr&&null!==Tr||($e(),kr=e,Pr=n,Tr=M(kr.current,null,Pr),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==Tr&&!vt();)Tr=et(Tr);else for(;null!==Tr;)Tr=et(Tr)}catch(t){if(Zn=Jn=$n=null,null===Tr)i=!0,xt(t);else{null===Tr&&a("271");var o=Tr,s=o.return;if(null!==s){e:{var u=e,c=s,f=o,d=t;if(s=Pr,f.effectTag|=1024,f.firstEffect=f.lastEffect=null,null!==d&&"object"===(void 0===d?"undefined":r(d))&&"function"==typeof d.then){var h=d;d=c;var v=-1,g=-1;do{if(13===d.tag){var m=d.alternate;if(null!==m&&null!==(m=m.memoizedState)){g=10*(1073741822-m.timedOutAt);break}m=d.pendingProps.maxDuration,"number"==typeof m&&(0>=m?v=0:(-1===v||m<v)&&(v=m))}d=d.return}while(null!==d);d=c;do{if((m=13===d.tag)&&(m=void 0!==d.memoizedProps.fallback&&null===d.memoizedState),m){if(c=it.bind(null,u,d,f,0==(1&d.mode)?1073741823:s),h.then(c,c),0==(1&d.mode)){d.effectTag|=64,f.effectTag&=-1957,1===f.tag&&null===f.alternate&&(f.tag=17),f.expirationTime=s;break e}-1===v?u=1073741823:(-1===g&&(g=10*(1073741822-L(u,s))-5e3),u=g+v),0<=u&&Or<u&&(Or=u),d.effectTag|=2048,d.expirationTime=s;break e}d=d.return}while(null!==d);d=Error((l(f.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."+p(f))}Er=!0,d=J(d,f),u=c;do{switch(u.tag){case 3:f=d,u.effectTag|=2048,u.expirationTime=s,s=Ye(u,f,s),H(u,s);break e;case 1:if(f=d,c=u.type,h=u.stateNode,0==(64&u.effectTag)&&("function"==typeof c.getDerivedStateFromError||null!==h&&"function"==typeof h.componentDidCatch&&(null===Ir||!Ir.has(h)))){u.effectTag|=2048,u.expirationTime=s,s=Xe(u,f,s),H(u,s);break e}}u=u.return}while(null!==u)}Tr=Ze(o);continue}i=!0,xt(t)}}break}if(Cr=!1,Zn=Jn=$n=xr.currentDispatcher=null,i)kr=null,e.finishedWork=null;else if(null!==Tr)e.finishedWork=null;else{if(i=e.current.alternate,null===i&&a("281"),kr=null,Er){if(o=e.latestPendingTime,s=e.latestSuspendedTime,u=e.latestPingedTime,0!==o&&o<n||0!==s&&s<n||0!==u&&u<n)return j(e,n),void ct(e,i,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ct(e,i,n,t,-1)}t&&-1!==Or?(j(e,n),t=10*(1073741822-L(e,n)),t<Or&&(Or=t),t=10*(1073741822-dt()),t=Or-t,ct(e,i,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=i)}}function nt(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===Ir||!Ir.has(r)))return e=J(t,e),e=Xe(n,e,1073741823),B(n,e),void at(n,1073741823);break;case 3:return e=J(t,e),e=Ye(n,e,1073741823),B(n,e),void at(n,1073741823)}n=n.return}3===e.tag&&(n=J(t,e),n=Ye(e,n,1073741823),B(e,n),at(e,1073741823))}function rt(e,t){return 0!==Sr?e=Sr:Cr?e=Mr?1073741823:Pr:1&t.mode?(e=qr?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==kr&&e===Pr&&--e):e=1073741823,qr&&(0===Vr||e<Vr)&&(Vr=e),e}function it(e,t,n,r){var i=e.earliestSuspendedTime,o=e.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>o)&&(e.latestPingedTime=o),U(o,e)}else i=dt(),i=rt(i,t),D(e,i);0!=(1&t.mode)&&e===kr&&Pr===r&&(kr=null),ot(t,i),0==(1&t.mode)&&(ot(n,i),1===n.tag&&null!==n.stateNode&&(t=G(i),t.tag=2,B(n,t))),0!==(n=e.expirationTime)&&ht(e,n)}function ot(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=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){i=r.stateNode;break}r=r.return}return i}function at(e,t){null!==(e=ot(e,t))&&(!Cr&&0!==Pr&&t>Pr&&$e(),D(e,t),Cr&&!Mr&&kr===e||ht(e,e.expirationTime),Zr>Jr&&(Zr=0,a("185")))}function st(e,t,n,r,i){var o=Sr;Sr=1073741823;try{return e(t,n,r,i)}finally{Sr=o}}function lt(){Qr=1073741822-((sn()-Xr)/10|0)}function ut(e,t){if(0!==Dr){if(t<Dr)return;null!==jr&&tn(jr)}Dr=t,e=sn()-Xr,jr=en(gt,{timeout:10*(1073741822-t)-e})}function ct(e,t,n,r,i){e.expirationTime=r,0!==i||vt()?0<i&&(e.timeoutHandle=rn(ft.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function ft(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,lt(),$r=Qr,yt(e,n)}function dt(){return Lr?$r:(pt(),0!==zr&&1!==zr||(lt(),$r=Qr),$r)}function ht(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Ar?(Rr=Ar=e,e.nextScheduledRoot=e):(Ar=Ar.nextScheduledRoot=e,Ar.nextScheduledRoot=Rr)):t>e.expirationTime&&(e.expirationTime=t),Lr||(Br?Hr&&(Ur=e,zr=1073741823,bt(e,1073741823,!1)):1073741823===t?mt(1073741823,!1):ut(e,t))}function pt(){var e=0,t=null;if(null!==Ar)for(var n=Ar,r=Rr;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===Ar)&&a("244"),r===r.nextScheduledRoot){Rr=Ar=r.nextScheduledRoot=null;break}if(r===Rr)Rr=i=r.nextScheduledRoot,Ar.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===Ar){Ar=n,Ar.nextScheduledRoot=Rr,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===Ar)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Ur=t,zr=e}function vt(){return!!ti||!!nn()&&(ti=!0)}function gt(){try{if(!vt()&&null!==Rr){lt();var e=Rr;do{var t=e.expirationTime;0!==t&&Qr<=t&&(e.nextExpirationTimeToWorkOn=Qr),e=e.nextScheduledRoot}while(e!==Rr)}mt(0,!0)}finally{ti=!1}}function mt(e,t){if(pt(),t)for(lt(),$r=Qr;null!==Ur&&0!==zr&&e<=zr&&!(ti&&Qr>zr);)bt(Ur,zr,Qr>zr),pt(),lt(),$r=Qr;else for(;null!==Ur&&0!==zr&&e<=zr;)bt(Ur,zr,!1),pt();if(t&&(Dr=0,jr=null),0!==zr&&ut(Ur,zr),Zr=0,ei=null,null!==Yr)for(e=Yr,Yr=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Gr||(Gr=!0,Wr=e)}}if(Gr)throw e=Wr,Wr=null,Gr=!1,e}function yt(e,t){Lr&&a("253"),Ur=e,zr=t,bt(e,t,!1),mt(1073741823,!1)}function bt(e,t,n){if(Lr&&a("245"),Lr=!0,n){var r=e.finishedWork;null!==r?_t(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,r!==an&&(e.timeoutHandle=an,on(r)),tt(e,n),null!==(r=e.finishedWork)&&(vt()?e.finishedWork=r:_t(e,r,t)))}else r=e.finishedWork,null!==r?_t(e,r,t):(e.finishedWork=null,r=e.timeoutHandle,r!==an&&(e.timeoutHandle=an,on(r)),tt(e,n),null!==(r=e.finishedWork)&&_t(e,r,t));Lr=!1}function _t(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===Yr?Yr=[r]:Yr.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ei?Zr++:(ei=e,Zr=0),Mr=Cr=!0,e.current===t&&a("177"),n=e.pendingCommitExpirationTime,0===n&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var i=t.childExpirationTime;for(r=i>r?i:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(i=e.latestPendingTime,0!==i&&(i>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),i=e.earliestSuspendedTime,0===i?D(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,D(e,r)):r>i&&D(e,r)),U(0,e),xr.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,Bt(e.containerInfo),Nr=r;null!==Nr;){i=!1;var o=void 0;try{for(;null!==Nr;){if(256&Nr.effectTag)e:{var s=Nr.alternate,l=Nr;switch(l.tag){case 0:case 11:case 15:break e;case 1:if(256&l.effectTag&&null!==s){var u=s.memoizedProps,c=s.memoizedState,f=l.stateNode,d=f.getSnapshotBeforeUpdate(l.elementType===l.type?u:fe(l.type,u),c);f.__reactInternalSnapshotBeforeUpdate=d}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Nr=Nr.nextEffect}}catch(e){i=!0,o=e}i&&(null===Nr&&a("178"),nt(Nr,o),null!==Nr&&(Nr=Nr.nextEffect))}for(Nr=r;null!==Nr;){s=!1,u=void 0;try{for(;null!==Nr;){var h=Nr.effectTag;if(16&h&&un&&xn(Nr.stateNode),128&h){var p=Nr.alternate;if(null!==p){var v=p.ref;null!==v&&("function"==typeof v?v(null):v.current=null)}}switch(14&h){case 2:Be(Nr),Nr.effectTag&=-3;break;case 6:Be(Nr),Nr.effectTag&=-3,qe(Nr.alternate,Nr);break;case 4:qe(Nr.alternate,Nr);break;case 8:c=Nr,un?He(c):Ge(c),c.return=null,c.child=null,c.alternate&&(c.alternate.child=null,c.alternate.return=null)}Nr=Nr.nextEffect}}catch(e){s=!0,u=e}s&&(null===Nr&&a("178"),nt(Nr,u),null!==Nr&&(Nr=Nr.nextEffect))}for(Ht(e.containerInfo),e.current=t,Nr=r;null!==Nr;){h=!1,p=void 0;try{for(v=n;null!==Nr;){var g=Nr.effectTag;if(36&g){var m=Nr.alternate;switch(s=Nr,u=v,s.tag){case 0:case 11:case 15:break;case 1:var y=s.stateNode;if(4&s.effectTag)if(null===m)y.componentDidMount();else{var b=s.elementType===s.type?m.memoizedProps:fe(s.type,m.memoizedProps);y.componentDidUpdate(b,m.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var _=s.updateQueue;null!==_&&Q(s,_,y,u);break;case 3:var x=s.updateQueue;if(null!==x){if(c=null,null!==s.child)switch(s.child.tag){case 5:c=Vt(s.child.stateNode);break;case 1:c=s.child.stateNode}Q(s,x,c,u)}break;case 5:var w=s.stateNode;null===m&&4&s.effectTag&&vn(w,s.type,s.memoizedProps,s);break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&g){var S=Nr.ref;if(null!==S){var C=Nr.stateNode;switch(Nr.tag){case 5:var T=Vt(C);break;default:T=C}"function"==typeof S?S(T):S.current=T}}Nr=Nr.nextEffect}}catch(e){h=!0,p=e}h&&(null===Nr&&a("178"),nt(Nr,p),null!==Nr&&(Nr=Nr.nextEffect))}Cr=Mr=!1,"function"==typeof qn&&qn(t.stateNode),g=t.expirationTime,t=t.childExpirationTime,t=t>g?t:g,0===t&&(Ir=null),e.expirationTime=t,e.finishedWork=null}function xt(e){null===Ur&&a("246"),Ur.expirationTime=0,Gr||(Gr=!0,Wr=e)}function wt(e,t,n,r,i){var o=t.current;e:if(n){n=n._reactInternalFiber;t:{2===u(n)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(y(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var l=n.type;if(y(l)){n=w(n,l,s);break e}}n=s}else n=Gn;return null===t.context?t.context=n:t.pendingContext=n,t=i,i=G(r),i.payload={element:e},t=void 0===t?null:t,null!==t&&(i.callback=t),Je(),B(o,i),at(o,r),r}function St(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=d(t),null===e?null:e.stateNode}var Ct=n(75),Tt=n(0),kt=n(41),Pt=Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ot="function"==typeof Symbol&&Symbol.for,Et=Ot?Symbol.for("react.element"):60103,Nt=Ot?Symbol.for("react.portal"):60106,Mt=Ot?Symbol.for("react.fragment"):60107,Kt=Ot?Symbol.for("react.strict_mode"):60108,Ft=Ot?Symbol.for("react.profiler"):60114,It=Ot?Symbol.for("react.provider"):60109,Rt=Ot?Symbol.for("react.context"):60110,At=Ot?Symbol.for("react.concurrent_mode"):60111,Dt=Ot?Symbol.for("react.forward_ref"):60112,jt=Ot?Symbol.for("react.suspense"):60113,Lt=Ot?Symbol.for("react.memo"):60115,Ut=Ot?Symbol.for("react.lazy"):60116,zt="function"==typeof Symbol&&Symbol.iterator,Vt=i.getPublicInstance,Gt=i.getRootHostContext,Wt=i.getChildHostContext,Bt=i.prepareForCommit,Ht=i.resetAfterCommit,qt=i.createInstance,Yt=i.appendInitialChild,Xt=i.finalizeInitialChildren,Qt=i.prepareUpdate,$t=i.shouldSetTextContent,Jt=i.shouldDeprioritizeSubtree,Zt=i.createTextInstance,en=i.scheduleDeferredCallback,tn=i.cancelDeferredCallback,nn=i.shouldYield,rn=i.setTimeout,on=i.clearTimeout,an=i.noTimeout,sn=i.now,ln=i.isPrimaryRenderer,un=i.supportsMutation,cn=i.supportsPersistence,fn=i.supportsHydration,dn=i.appendChild,hn=i.appendChildToContainer,pn=i.commitTextUpdate,vn=i.commitMount,gn=i.commitUpdate,mn=i.insertBefore,yn=i.insertInContainerBefore,bn=i.removeChild,_n=i.removeChildFromContainer,xn=i.resetTextContent,wn=i.hideInstance,Sn=i.hideTextInstance,Cn=i.unhideInstance,Tn=i.unhideTextInstance,kn=i.cloneInstance,Pn=i.createContainerChildSet,On=i.appendChildToContainerChildSet,En=i.finalizeContainerChildren,Nn=i.replaceContainerChildren,Mn=i.cloneHiddenInstance,Kn=i.cloneUnhiddenInstance,Fn=i.createHiddenTextInstance,In=i.canHydrateInstance,Rn=i.canHydrateTextInstance,An=i.getNextHydratableSibling,Dn=i.getFirstHydratableChild,jn=i.hydrateInstance,Ln=i.hydrateTextInstance,Un=/^(.*)[\\\/]/;new Set;var zn=[],Vn=-1,Gn={},Wn={current:Gn},Bn={current:!1},Hn=Gn,qn=null,Yn=null,Xn=!1,Qn={current:null},$n=null,Jn=null,Zn=null,er={},tr={current:er},nr={current:er},rr={current:er},ir=Object.prototype.hasOwnProperty,or=Pt.ReactCurrentOwner,ar=(new Tt.Component).refs,sr={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===u(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=dt();r=rt(r,e);var i=G(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Je(),B(e,i),at(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=dt();r=rt(r,e);var i=G(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Je(),B(e,i),at(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=dt();n=rt(n,e);var r=G(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Je(),B(e,r),at(e,n)}},lr=Array.isArray,ur=_e(!0),cr=_e(!1),fr=null,dr=null,hr=!1,pr=Pt.ReactCurrentOwner,vr=void 0,gr=void 0,mr=void 0,yr=void 0;if(un)vr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)Yt(e,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}},gr=function(){},mr=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var o=t.stateNode,a=ae();n=Qt(o,n,e,r,i,a),(t.updateQueue=n)&&Le(t)}},yr=function(e,t,n,r){n!==r&&Le(t)};else if(cn){vr=function(e,t,n,r){for(var i=t.child;null!==i;){e:if(5===i.tag){var o=i.stateNode;if(n){var a=i.memoizedProps,s=i.type;o=r?Mn(o,s,a,i):Kn(o,s,a,i),i.stateNode=o}Yt(e,o)}else if(6===i.tag)o=i.stateNode,n&&(o=i.memoizedProps,a=re(rr.current),s=ae(),o=r?Fn(o,a,s,t):Zt(o,a,s,t),i.stateNode=o),Yt(e,o);else if(4!==i.tag){if(13===i.tag&&null!==(a=i.alternate)&&(o=null!==i.memoizedState,null!==a.memoizedState!==o)){a=o?i.child:i,null!==a&&vr(e,a,!0,o);break e}if(null!==i.child){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var br=function e(t,n,r,i){for(var o=n.child;null!==o;){e:if(5===o.tag){var a=o.stateNode;if(r){var s=o.memoizedProps,l=o.type;a=i?Mn(a,l,s,o):Kn(a,l,s,o),o.stateNode=a}On(t,a)}else if(6===o.tag)a=o.stateNode,r&&(a=o.memoizedProps,s=re(rr.current),l=ae(),a=i?Fn(a,s,l,n):Zt(a,s,l,n),o.stateNode=a),On(t,a);else if(4!==o.tag){if(13===o.tag&&null!==(s=o.alternate)&&(a=null!==o.memoizedState,null!==s.memoizedState!==a)){s=a?o.child:o,null!==s&&e(t,s,!0,a);break e}if(null!==o.child){o.child.return=o,o=o.child;continue}}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};gr=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,r=Pn(n);br(r,e,!1,!1),t.pendingChildren=r,Le(e),En(n,r)}},mr=function(e,t,n,r,i){var o=e.stateNode,a=e.memoizedProps;if((e=null===t.firstEffect)&&a===r)t.stateNode=o;else{var s=t.stateNode,l=ae(),u=null;a!==r&&(u=Qt(s,n,a,r,i,l)),e&&null===u?t.stateNode=o:(o=kn(o,u,n,a,r,t,e,s),Xt(o,n,r,i,l)&&Le(t),t.stateNode=o,e?Le(t):vr(o,t,!1,!1))}},yr=function(e,t,n,r){n!==r&&(e=re(rr.current),n=ae(),t.stateNode=Zt(r,e,n,t),Le(t))}}else gr=function(){},mr=function(){},yr=function(){};var _r={readContext:ne},xr=Pt.ReactCurrentOwner,wr=1073741822,Sr=0,Cr=!1,Tr=null,kr=null,Pr=0,Or=-1,Er=!1,Nr=null,Mr=!1,Kr=null,Fr=null,Ir=null,Rr=null,Ar=null,Dr=0,jr=void 0,Lr=!1,Ur=null,zr=0,Vr=0,Gr=!1,Wr=null,Br=!1,Hr=!1,qr=!1,Yr=null,Xr=sn(),Qr=1073741822-(Xr/10|0),$r=Qr,Jr=50,Zr=0,ei=null,ti=!1,ni={updateContainerAtExpirationTime:wt,createContainer:function(e,t,n){return t=O(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:an,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e},updateContainer:function(e,t,n,r){var i=t.current;return i=rt(dt(),i),wt(e,t,n,i,r)},flushRoot:yt,requestWork:ht,computeUniqueAsyncExpiration:function(){var e=1073741822-25*(1+((1073741822-dt()+500)/25|0));return e>=wr&&(e=wr-1),wr=e},batchedUpdates:function(e,t){var n=Br;Br=!0;try{return e(t)}finally{(Br=n)||Lr||mt(1073741823,!1)}},unbatchedUpdates:function(e,t){if(Br&&!Hr){Hr=!0;try{return e(t)}finally{Hr=!1}}return e(t)},deferredUpdates:function(e){var t=dt(),n=Sr,r=qr;Sr=1073741822-25*(1+((1073741822-t+500)/25|0)),qr=!1;try{return e()}finally{Sr=n,qr=r}},syncUpdates:st,interactiveUpdates:function(e,t,n){if(qr)return e(t,n);Br||Lr||0===Vr||(mt(Vr,!1),Vr=0);var r=qr,i=Br;Br=qr=!0;try{return e(t,n)}finally{qr=r,(Br=i)||Lr||mt(1073741823,!1)}},flushInteractiveUpdates:function(){Lr||0===Vr||(mt(Vr,!1),Vr=0)},flushControlled:function(e){var t=Br;Br=!0;try{st(e)}finally{(Br=t)||Lr||mt(1073741823,!1)}},flushSync:function(e,t){Lr&&a("187");var n=Br;Br=!0;try{return st(e,t)}finally{Br=n,mt(1073741823,!1)}},getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return Vt(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:St,findHostInstanceWithWarning:function(e){return St(e)},findHostInstanceWithNoPortals:function(e){return e=h(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var t=e.findFiberByHostInstance;return k(Ct({},e,{findHostInstanceByFiber:function(e){return e=d(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}};e.exports=ni.default||ni;var ri=e.exports;return e.exports=t,ri}},function(e,t,n){"use strict";function r(e){if(e[s])return e[s];for(;!e[s];){if(!e.parentNode)return null;e=e.parentNode}var t=e[s];return t.tag===i||t.tag===o?t:null}t.__esModule=!0,t.getClosestInstanceFromNode=r;var i=5,o=6,a=Math.random().toString(36).slice(2),s="__reactInternalInstance$"+a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t)return void(0,D.default)(!1,'Don not use plain text as child of Konva.Node. You are using text: "%s"',t);e.add(t),(0,R.updatePicture)(e)}function o(e,t,n){var r=I.default[e];if(!r)return void(0,D.default)(i,'ReactKonva does not support the type "%s". If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html',e);var i=new r;return i._applyProps=R.applyNodeProps,i._applyProps(i,t),i}function a(e,t,n){(0,D.default)(!1,'Text components are not supported for now in ReactKonva. You text is: "'+e+'"')}function s(e,t,n){return!1}function l(e){return e}function u(){}function c(e,t,n,r){return L}function f(){}function d(e){}function h(e,t){return!1}function p(){return j}function v(){return j}function g(e,t){return!1}function m(e,t){t.parent===e?t.moveToTop():e.add(t),(0,R.updatePicture)(e)}function y(e,t){t.parent===e?t.moveToTop():e.add(t),(0,R.updatePicture)(e)}function b(e,t,n){(0,D.default)(t!==n,"ReactKonva: Can not insert node before itself"),t.remove(),e.add(t),t.setZIndex(n.getZIndex()),(0,R.updatePicture)(e)}function _(e,t,n){(0,D.default)(t!==n,"ReactKonva: Can not insert node before itself"),t.remove(),e.add(t),t.setZIndex(n.getZIndex()),(0,R.updatePicture)(e)}function x(e,t){t.destroy(),t.off(R.EVENTS_NAMESPACE),(0,R.updatePicture)(e)}function w(e,t){t.destroy(),t.off(R.EVENTS_NAMESPACE),(0,R.updatePicture)(e)}function S(e,t,n){(0,D.default)(!1,'Text components are not yet supported in ReactKonva. You text is: "'+n+'"')}function C(e,t,n){}function T(e,t,n,r,i){e._applyProps(e,i,r)}function k(e){e.hide(),(0,R.updatePicture)(e)}function P(e){}function O(e,t){(null==t.visible||t.visible)&&e.show()}function E(e,t){}t.__esModule=!0,t.supportsMutation=t.isPrimaryRenderer=t.noTimeout=t.cancelTimeout=t.scheduleTimeout=t.cancelDeferredCallback=t.shouldYield=t.scheduleDeferredCallback=t.now=void 0;var N=n(148);Object.keys(N).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}})});var M=n(149);Object.keys(M).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}})});var K=n(41);Object.defineProperty(t,"now",{enumerable:!0,get:function(){return K.unstable_now}}),Object.defineProperty(t,"scheduleDeferredCallback",{enumerable:!0,get:function(){return K.unstable_scheduleCallback}}),Object.defineProperty(t,"shouldYield",{enumerable:!0,get:function(){return K.unstable_shouldYield}}),Object.defineProperty(t,"cancelDeferredCallback",{enumerable:!0,get:function(){return K.unstable_cancelCallback}}),t.appendInitialChild=i,t.createInstance=o,t.createTextInstance=a,t.finalizeInitialChildren=s,t.getPublicInstance=l,t.prepareForCommit=u,t.prepareUpdate=c,t.resetAfterCommit=f,t.resetTextContent=d,t.shouldDeprioritizeSubtree=h,t.getRootHostContext=p,t.getChildHostContext=v,t.shouldSetTextContent=g,t.appendChild=m,t.appendChildToContainer=y,t.insertBefore=b,t.insertInContainerBefore=_,t.removeChild=x,t.removeChildFromContainer=w,t.commitTextUpdate=S,t.commitMount=C,t.commitUpdate=T,t.hideInstance=k,t.hideTextInstance=P,t.unhideInstance=O,t.unhideTextInstance=E;var F=n(76),I=r(F),R=n(77),A=n(42),D=r(A),j={},L={};t.scheduleTimeout=setTimeout,t.cancelTimeout=clearTimeout,t.noTimeout=-1,t.isPrimaryRenderer=!1,t.supportsMutation=!0},function(e,t,n){"use strict";function r(){(0,o.default)(!1,"The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.")}t.__esModule=!0,t.createHiddenTextInstance=t.cloneUnhiddenInstance=t.cloneHiddenInstance=t.replaceContainerChildren=t.finalizeContainerChildren=t.appendChildToContainerChildSet=t.createContainerChildSet=t.cloneInstance=t.supportsPersistence=void 0;var i=n(42),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.supportsPersistence=!1,t.cloneInstance=r,t.createContainerChildSet=r,t.appendChildToContainerChildSet=r,t.finalizeContainerChildren=r,t.replaceContainerChildren=r,t.cloneHiddenInstance=r,t.cloneUnhiddenInstance=r,t.createHiddenTextInstance=r},function(e,t,n){"use strict";function r(){(0,o.default)(!1,"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue.")}t.__esModule=!0,t.didNotFindHydratableTextInstance=t.didNotFindHydratableInstance=t.didNotFindHydratableContainerTextInstance=t.didNotFindHydratableContainerInstance=t.didNotHydrateInstance=t.didNotHydrateContainerInstance=t.didNotMatchHydratedTextInstance=t.didNotMatchHydratedContainerTextInstance=t.hydrateTextInstance=t.hydrateInstance=t.getFirstHydratableChild=t.getNextHydratableSibling=t.canHydrateTextInstance=t.canHydrateInstance=t.supportsHydration=void 0;var i=n(42),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.supportsHydration=!1,t.canHydrateInstance=r,t.canHydrateTextInstance=r,t.getNextHydratableSibling=r,t.getFirstHydratableChild=r,t.hydrateInstance=r,t.hydrateTextInstance=r,t.didNotMatchHydratedContainerTextInstance=r,t.didNotMatchHydratedTextInstance=r,t.didNotHydrateContainerInstance=r,t.didNotHydrateInstance=r,t.didNotFindHydratableContainerInstance=r,t.didNotFindHydratableContainerTextInstance=r,t.didNotFindHydratableInstance=r,t.didNotFindHydratableTextInstance=r},function(e,t,n){"use strict";(function(e,t){!function(e,n){function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return u[l]=r,s(l),l++}function i(e){delete u[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(c)setTimeout(a,0,e);else{var t=u[e];if(t){c=!0;try{o(t)}finally{i(e),c=!1}}}}if(!e.setImmediate){var s,l=1,u={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var e=f.documentElement;s=function(t){var n=f.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(t,n(14),n(151))},function(e,t,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function s(){g&&p&&(g=!1,p.length?v=p.concat(v):m=-1,v.length&&l())}function l(){if(!g){var e=o(s);g=!0;for(var t=v.length;t;){for(p=v,v=[];++m<t;)p&&p[m].run();m=-1,t=v.length}p=null,g=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var f,d,h=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}}();var p,v=[],g=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new u(e,t)),1!==v.length||g||o(l)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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)}function o(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}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=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},f=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t){var n=function(n){function i(e){s(this,i);var t=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));r.call(t);var n=t.props,o=n.value,a=n.value;a=void 0===a?{}:a;var u=a.active,f={};o&&!t.isEmpty(o)||(f=t.initComplaintsObject());var d=u||t.props.images&&t.props.images[0].key;return t.state=c({drawingMode:!1},o,{active:d},f),t.changeImage(d,!1),t}return u(i,n),f(i,[{key:"clearDrawings",value:function(){var e=this.refs.drawinglayer;e&&e.clear()}},{key:"componentWillUpdate",value:function(e,t){this.state.active!==t.active?this.updateDrawing=!0:this.updateDrawing=!1}},{key:"componentDidMount",value:function(){var e=v.default.findDOMNode(this.refs["image-frame"]).getBoundingClientRect(),t=e.width,n=this.props.imagePadding;this.currentWidth=t,this.currentSrcWidth=this.state.srcWidth;var r=this.refs.stage.getStage();this.imageSize=t-n,r.width(t),r.height(t);var i=this.refs.image;i.width(t-n),i.height(t-n)}},{key:"render",value:function(){var n=this,r=this.props,i=r.images,o=r.complaint,a=o.circle,s=o.text,l=r.imageClassName,u=r.complaintClassName,f=r.markerColors,p=this.state,v=p.active,g=p.image,m=this.state[v]?this.state[v].complaints:[],b=null,x=null;return this.props.images.forEach(function(e){e.key===n.state.active&&(b=e.uiDisplay,x=e.uiOptions)}),h.default.createElement(d.Fragment,null,h.default.createElement("div",{id:"image",className:l,ref:"image-frame"},h.default.createElement(t,{images:i,selected:v,onSelect:this.changeImage}),h.default.createElement("div",{style:{margin:"3px"}},h.default.createElement("a",{className:"complaint_image_link",style:{left:"1px",zIndex:1},onClick:this.handleClearAll},h.default.createElement("span",{style:{fontSize:"11px"},className:"glyphicon glyphicon-refresh"})," Clear All"),h.default.createElement("span",{className:"pull-right"},h.default.createElement("label",{className:"radio-inline select-mode-container"},h.default.createElement("input",{type:"radio",checked:!this.state.drawingMode,onChange:function(){n.setState(function(){return{drawingMode:!1}})}}),"Selection Mode"),h.default.createElement("label",{className:"radio-inline draw-mode-container"},h.default.createElement("input",{type:"radio",checked:this.state.drawingMode,onChange:function(){n.setState(function(){return{drawingMode:!0}})}}),"Drawing Mode"))),h.default.createElement("hr",null),h.default.createElement("div",{className:"complaints-image-block",style:{cursor:this.state.drawingMode?"cell":"default"}},h.default.createElement(y.Stage,{onClick:this.handleClick,onTap:this.handleTap,ref:"stage"},h.default.createElement(y.Layer,{visible:!0,ref:"layer"},h.default.createElement(y.Image,{ref:"image",image:g}),this.imageSize&&!this.updateDrawing&&h.default.createElement(C,{ref:"drawinglayer",isDrawingMode:this.state.drawingMode,notifyParent:this.notify,parentImageSize:this.imageSize,getDrawnPoints:function(e){return n.getDrawnPoints(e)},allPoints:this.state[this.state.active].drawnPoints,complaints:this.state[this.state.active].complaints,srcWidth:this.currentSrcWidth,currentWidth:this.currentWidth}),m.map(function(e,t){var n=f?f[t%f.length]:a.stroke,r=Object.assign({},e,a,{stroke:n});return h.default.createElement(_.default,c({key:t},r))}),m.map(function(e,t){var n=f?f[t%f.length]:a.fill,r=Object.assign({},e,s,{fill:n});return h.default.createElement(w.default,c({key:t,index:t},r))}))))),h.default.createElement("div",{className:u},h.default.createElement(e,{complaints:m,markerColors:f,onChange:this.handleTextChange,onDelete:this.handleDelete,uiDisplay:b,uiOptions:x})))}}]),i}(d.Component),r=function(){var e=this;this.isEmpty=function(e){return 0===Object.keys(e).length&&e.constructor===Object},this.initComplaintsObject=function(){return e.props.images.reduce(function(e,t){return e[t.key]={complaints:[],url:t.url},e},[])},this.changeImage=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new window.Image,i=e.state[t]&&e.state[t].url;r.src=i,r.onload=function(){e.clearDrawings(),n?e.setState({image:r,active:t},e.notify):e.setState({image:r,active:t})}},this.handleClick=function(t){if(!e.state.drawingMode){var n=t.currentTarget.pointerPos;if("Image"!==t.target.className)return;e.setState(function(t){var r,i=t.active,o=t[i],s=o.complaints.concat({pos:n}),l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},t,u)},e.notify)}},this.handleTap=function(t){if(!e.state.drawingMode){var n=t.currentTarget.pointerPos;if("Image"!==t.target.className)return;e.setState(function(t){var r,i=t.active,o=t[i],s=o.complaints.concat({pos:n}),l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},t,u)},e.notify)}},this.handleTextChange=function(t,n){e.setState(function(r){var i,o=r.active,s=r[o],l=s.complaints,u=Object.assign({},l[t],{text:n});l=l.slice(),l.splice(t,1,u);var f=e.currentWidth,d=(i={},a(i,o,c({},s,{complaints:l})),a(i,"srcWidth",f),i);return Object.assign({},r,d)},e.notify)},this.handleDelete=function(t){e.setState(function(n){var r,i=n.active,o=n[i],s=o.complaints;s=s.slice(),s.splice(t,1);var l=e.currentWidth,u=(r={},a(r,i,c({},o,{complaints:s})),a(r,"srcWidth",l),r);return Object.assign({},n,u)},e.notify)},this.handleClearAll=function(){e.clearDrawings(),e.setState(function(e){var t=e.active,n=e[t],r=a({},t,c({},n,{complaints:[],drawnPoints:[]}));return Object.assign({},e,r)},e.notify)},this.notify=function(){void 0!==e.state.srcWidth&&e.setState({srcWidth:e.currentWidth}),(0,S.setTimeout)(function(){var t=e.state,n=(t.image,o(t,["image"])),r=e.state.active;if(e.props.onChange){var i=e.refs.stage.getStage();n[r]&&(n[r].dataURI=i.toDataURL());var a=c({},n);e.props.onChange(a)}},0)},this.getDrawnPoints=function(t){var n=e.currentWidth;t&&t.length>0&&e.setState(function(e){var r,i=e.active,o=e[i],s=(r={},a(r,i,c({},o,{drawnPoints:t})),a(r,"srcWidth",n),r);return Object.assign({},e,s)})}};return n.defaultProps={complaint:{circle:{radius:10,stroke:"#38A8E8",strokeWidth:2},text:{fontSize:12,fontFamily:"Roboto",fill:"black"}},imagePadding:30,imageClassName:"col-md-5 col-sm-12",complaintClassName:"col-md-7 col-sm-12"},n.propTypes={value:m.default.shape({complaint:m.default.arrayOf(m.default.shape({pos:m.default.shape({x:m.default.number.isRequired,y:m.default.number.isRequired}),text:m.default.string.isRequired}))}),images:m.default.arrayOf(m.default.shape({name:m.default.string.isRequired,url:m.default.string.isRequired})).isRequired,imagePadding:m.default.number,imageClassName:m.default.string,complaintClassName:m.default.string,complaint:m.default.shape({radius:m.default.number,stroke:m.default.string,strokeWidth:m.default.number}),markerColors:m.default.arrayOf(m.default.string),onChange:m.default.func},n};var d=n(0),h=r(d),p=n(6),v=r(p),g=n(1),m=r(g),y=n(28),b=n(78),_=r(b),x=n(79),w=r(x),S=n(80),C=function(e){function t(){var e,n,r,o;s(this,t);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={isDrawing:!1,currentPoints:[],allPoints:[]},r.handleMouseDown=function(){r.props.isDrawingMode&&r.setState(function(){return{isDrawing:!0}},function(){var e=r.image.parent.parent;r.lastPointerPosition=e.getPointerPosition();var t={x:r.lastPointerPosition.x-r.image.x(),y:r.lastPointerPosition.y-r.image.y()},n=[];n.push.apply(n,i(r.state.currentPoints).concat([t])),r.setState({currentPoints:n})})},r.handleMouseUp=function(){if(r.props.isDrawingMode||r.state.isDrawing){if(r.state.currentPoints&&r.state.currentPoints.length>1){var e=[].concat(i(r.state.allPoints),[r.state.currentPoints]);r.setState({isDrawing:!1,allPoints:e,currentPoints:[]}),r.props.getDrawnPoints(e)}else r.setState({isDrawing:!1,currentPoints:[]});r.props.notifyParent()}},r.clear=function(){r.state.context.clearRect(0,0,r.props.parentImageSize,r.props.parentImageSize),r.image.getLayer().draw(),r.setState({allPoints:[],currentPoints:[]})},r.handleMouseMove=function(){var e=r.state,t=e.context,n=e.isDrawing;if(r.props.isDrawingMode&&n){t.strokeStyle="#df4b26",t.lineJoin="round",t.lineWidth=1,t.globalCompositeOperation="source-over",t.beginPath();var o={x:r.lastPointerPosition.x-r.image.x(),y:r.lastPointerPosition.y-r.image.y()};t.moveTo(o.x,o.y);var a=r.image.parent.parent,s=a.getPointerPosition();o={x:s.x-r.image.x(),y:s.y-r.image.y()},t.lineTo(o.x,o.y),t.closePath(),t.stroke(),r.lastPointerPosition=s,r.image.getLayer().draw();var l=[];l.push.apply(l,i(r.state.currentPoints).concat([o])),r.setState({currentPoints:l})}},o=n,l(r,o)}return u(t,e),f(t,[{key:"componentDidMount",value:function(){var e=document.createElement("canvas");e.width=this.props.parentImageSize,e.height=this.props.parentImageSize;var t=e.getContext("2d"),n=[],r=this.props.srcWidth,i=this.props.currentWidth;r&&this.currentWidth!==r&&this.props.complaints&&this.props.complaints.length>0&&this.props.complaints.forEach(function(e){var t="",n="";t=e.pos.x*(i/r),n=e.pos.y*(i/r),e.pos.x=Math.round(t),e.pos.y=Math.round(n)}),this.props.allPoints&&this.props.allPoints.length>0&&(t.strokeStyle="#df4b26",t.lineJoin="round",t.lineWidth=1,t.beginPath(),this.props.allPoints.forEach(function(e){e.forEach(function(e,n){if(r&&i!==r){var o="",a="";o=e.x*(i/r),a=e.y*(i/r),e.x=Math.round(o),e.y=Math.round(a)}0!==n&&t.lineTo(e.x,e.y),t.moveTo(e.x,e.y)}),t.closePath(),t.stroke()}),this.image.getLayer().draw(),n=this.props.allPoints),this.setState(function(){return{canvas:e,context:t,allPoints:n}},this.props.notifyParent)}},{key:"render",value:function(){var e=this,t=this.state.canvas;return h.default.createElement(y.Image,{image:t,ref:function(t){return e.image=t},width:this.props.parentImageSize,height:this.props.parentImageSize,onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleMouseUp,onMouseMove:this.handleMouseMove,onTouchMove:this.handleMouseMove,onMouseLeave:this.handleMouseUp})}}]),t}(d.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=e.complaints,n=e.onChange,r=e.onDelete,i=e.uiDisplay,o=e.uiOptions;return f.default.createElement("table",{className:"table"},f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",{className:"col-md-1"},"#"),f.default.createElement("th",null,"Complaint"),f.default.createElement("th",{className:"col-md-1"}))),f.default.createElement("tbody",null,t.map(function(e,a){return f.default.createElement(c.Fragment,{key:a},f.default.createElement("tr",null,f.default.createElement("td",{style:{paddingTop:14}},a+1),f.default.createElement(h,s({},e,{onChange:function(e){return n(a,e)},onDelete:function(){return r(a)},uiDisplay:i,uiOptions:s({},o,{autoFocus:o&&o.autoFocus&&t.length-1===a&&void 0===e.text})}))))})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},l="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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),f=function(e){return e&&e.__esModule?e:{default:e}}(c),d=n(154),h=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.handleTypeaheadChange=function(e){var t=e.map(function(e){return"object"===(void 0===e?"undefined":l(e))?e.label:e});n.setState({typeaheadValue:t}),n.props.onChange(t.join(" & "))},n.handleChange=function(e){n.setState({value:e.target.value})},n.handleSubmit=function(e){e.preventDefault(),n.state.value!==n.props.text&&n.props.onChange(n.state.value)},n.handleKeyDown=function(e){13===e.keyCode&&n.handleSubmit(e)};var o=e.text,a=void 0===o?"":o;return n.state={value:a,typeaheadValue:a?a.split(" & "):[]},n}return o(t,e),u(t,[{key:"componentDidUpdate",value:function(e){e.text!==this.props.text&&this.setState({value:this.props.text,typeaheadValue:this.props.text?this.props.text.split(" & "):[]})}},{key:"render",value:function(){return f.default.createElement(c.Fragment,null,f.default.createElement("td",null,"typeahead"==this.props.uiDisplay&&this.props.uiOptions?f.default.createElement(d.Typeahead,s({selected:this.state.typeaheadValue,onChange:this.handleTypeaheadChange,placeholder:"Choose an item...",autoFocus:!0},this.props.uiOptions)):f.default.createElement("input",{autoFocus:!0,type:"text",value:this.state.value,className:"form-control",onKeyDown:this.handleKeyDown,onBlur:this.handleSubmit,onChange:this.handleChange})),f.default.createElement("td",null,f.default.createElement("button",{className:"btn btn-default",onClick:this.props.onDelete},"Delete")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.text!==t.text?{text:e.text}:null}}]),t}(c.Component);t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.tokenContainer=t.menuItemContainer=t.asyncContainer=t.TypeaheadMenu=t.Typeahead=t.Token=t.MenuItem=t.Menu=t.Highlighter=t.AsyncTypeahead=void 0;var i=n(155),o=r(i),a=n(132),s=r(a),l=n(133),u=r(l),c=n(70),f=r(c),d=n(126),h=r(d),p=n(103),v=r(p),g=n(131),m=r(g),y=n(81),b=r(y),_=n(134),x=r(_),w=n(127),S=r(w);t.AsyncTypeahead=o.default,t.Highlighter=s.default,t.Menu=u.default,t.MenuItem=f.default,t.Token=h.default,t.Typeahead=v.default,t.TypeaheadMenu=m.default,t.asyncContainer=b.default,t.menuItemContainer=x.default,t.tokenContainer=S.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),o=r(i),a=n(103),s=r(a);t.default=(0,o.default)(s.default)},function(e,t,n){"use strict";function r(e,t,n){function r(t){var n=y,r=b;return y=b=void 0,C=t,x=e.apply(r,n)}function c(e){return C=e,w=setTimeout(h,t),T?r(e):x}function f(e){var n=e-S,r=e-C,i=t-n;return k?u(i,_-r):i}function d(e){var n=e-S,r=e-C;return void 0===S||n>=t||n<0||k&&r>=_}function h(){var e=o();if(d(e))return p(e);w=setTimeout(h,f(e))}function p(e){return w=void 0,P&&y?r(e):(y=b=void 0,x)}function v(){void 0!==w&&clearTimeout(w),C=0,y=S=b=w=void 0}function g(){return void 0===w?x:p(o())}function m(){var e=o(),n=d(e);if(y=arguments,b=this,S=e,n){if(void 0===w)return c(S);if(k)return w=setTimeout(h,t),r(S)}return void 0===w&&(w=setTimeout(h,t)),x}var y,b,_,x,w,S,C=0,T=!1,k=!1,P=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(T=!!n.leading,k="maxWait"in n,_=k?l(a(n.maxWait)||0,t):_,P="trailing"in n?!!n.trailing:P),m.cancel=v,m.flush=g,m}var i=n(7),o=n(157),a=n(158),s="Expected a function",l=Math.max,u=Math.min;e.exports=r},function(e,t,n){"use strict";var r=n(4),i=function(){return r.Date.now()};e.exports=i},function(e,t,n){"use strict";function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=u.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):l.test(e)?a:+e}var i=n(7),o=n(29),a=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}var i=n(23),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var i=Object.prototype,o=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=t.allowNew,r=t.labelKey,o=t.text;return!(!n||!o.trim())&&("function"==typeof n?n(e,t):!e.some(function(e){return(0,i.getOptionLabel)(e,r)===o}))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return n.caseSensitive||(e=e.toLowerCase(),t=t.toLowerCase()),n.ignoreDiacritics&&(e=(0,v.default)(e),t=(0,v.default)(t)),-1!==t.indexOf(e)}function o(e,t){var n=t.filterBy,r=t.labelKey,o=t.multiple,a=t.selected,l=t.text;if(o&&a.some(function(t){return(0,s.default)(t,e)}))return!1;var c=n.slice();return!(!(0,u.default)(r)||!i(l,r(e),t))||((0,f.default)(r)&&-1===c.indexOf(r)&&c.unshift(r),(0,f.default)(e)?((0,m.default)(c.length<=1,"You cannot filter by properties when `option` is a string."),i(l,e,t)):(0,h.default)(c,function(n){var r=e[n];return(0,f.default)(r)||((0,m.default)(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),r+=""),i(l,r,t)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(83),s=r(a),l=n(45),u=r(l),c=n(218),f=r(c),d=n(219),h=r(d),p=n(53),v=r(p),g=n(9),m=r(g)},function(e,t,n){"use strict";function r(e,t,n,r,g,y){var b=u(e),_=u(t),x=b?p:l(e),w=_?p:l(t);x=x==h?v:x,w=w==h?v:w;var S=x==v,C=w==v,T=x==w;if(T&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(T&&!S)return y||(y=new i),b||f(e)?o(e,t,n,r,g,y):a(e,t,x,n,r,g,y);if(!(n&d)){var k=S&&m.call(e,"__wrapped__"),P=C&&m.call(t,"__wrapped__");if(k||P){var O=k?e.value():e,E=P?t.value():t;return y||(y=new i),g(O,E,n,r,y)}}return!!T&&(y||(y=new i),s(e,t,n,r,g,y))}var i=n(84),o=n(86),a=n(194),s=n(198),l=n(214),u=n(2),c=n(89),f=n(91),d=1,h="[object Arguments]",p="[object Array]",v="[object Object]",g=Object.prototype,m=g.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(31),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this.__data__,e)>-1}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(31);e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=new i,this.size=0}var i=n(30);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.get(e)}e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(30),o=n(44),a=n(46),s=200;e.exports=r},function(e,t,n){"use strict";function r(e){return!(!a(e)||o(e))&&(i(e)?p:u).test(s(e))}var i=n(45),o=n(175),a=n(7),s=n(85),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,h=f.hasOwnProperty,p=RegExp("^"+d.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){"use strict";function r(e){return!!o&&o in e}var i=n(176),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){"use strict";var r=n(4),i=r["__core-js_shared__"];e.exports=i},function(e,t,n){"use strict";function r(e,t){return null==e?void 0:e[t]}e.exports=r},function(e,t,n){"use strict";function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(179),o=n(30),a=n(44);e.exports=r},function(e,t,n){"use strict";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])}}var i=n(180),o=n(181),a=n(182),s=n(183),l=n(184);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=i?i(null):{},this.size=0}var i=n(33);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(33),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(33),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(33),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){var t=void 0===e?"undefined":i(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).get(e)}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).has(e)}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=n(46),o=n(191),a=n(192);r.prototype.add=r.prototype.push=o,r.prototype.has=a,e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e.has(t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,S,T){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case h:case g:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case v:var k=l;case y:var P=r&c;if(k||(k=u),e.size!=t.size&&!P)return!1;var O=T.get(e);if(O)return O==t;r|=f,T.set(e,t);var E=s(k(e),k(t),r,i,S,T);return T.delete(e),E;case _:if(C)return C.call(e)==C.call(t)}return!1}var i=n(23),o=n(195),a=n(32),s=n(86),l=n(196),u=n(197),c=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Map]",g="[object Number]",m="[object RegExp]",y="[object Set]",b="[object String]",_="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",S=i?i.prototype:void 0,C=S?S.valueOf:void 0;e.exports=r},function(e,t,n){"use strict";var r=n(4),i=r.Uint8Array;e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=r},function(e,t,n){"use strict";function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,a,l){var u=n&o,c=i(e),f=c.length;if(f!=i(t).length&&!u)return!1;for(var d=f;d--;){var h=c[d];if(!(u?h in t:s.call(t,h)))return!1}var p=l.get(e);if(p&&l.get(t))return p==t;var v=!0;l.set(e,t),l.set(t,e);for(var g=u;++d<f;){h=c[d];var m=e[h],y=t[h];if(r)var b=u?r(y,m,h,t,e,l):r(m,y,h,e,t,l);if(!(void 0===b?m===y||a(m,y,n,r,l):b)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(v=!1)}return l.delete(e),l.delete(t),v}var i=n(199),o=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return i(e,a,o)}var i=n(200),o=n(201),a=n(47);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}var i=n(88),o=n(2);e.exports=r},function(e,t,n){"use strict";var r=n(202),i=n(203),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=l},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=r},function(e,t,n){"use strict";function r(){return[]}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),d=!n&&!r&&!c&&u(e),h=n||r||c||d,p=h?i(e.length,String):[],v=p.length;for(var g in e)!t&&!f.call(e,g)||h&&("length"==g||c&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,v))||p.push(g);return p}var i=n(205),o=n(48),a=n(2),s=n(89),l=n(35),u=n(91),c=Object.prototype,f=c.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&i(e)==a}var i=n(11),o=n(8),a="[object Arguments]";e.exports=r},function(e,t,n){"use strict";function r(){return!1}e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(11),o=n(49),a=n(8),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(82),o="object"==r(t)&&t&&!t.nodeType&&t,a=o&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s&&i.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=u}).call(t,n(90)(e))},function(e,t,n){"use strict";function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(212),o=n(213),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;e.exports=r},function(e,t,n){"use strict";var r=n(92),i=r(Object.keys,Object);e.exports=i},function(e,t,n){"use strict";var r=n(215),i=n(44),o=n(216),a=n(217),s=n(93),l=n(11),u=n(85),c=u(r),f=u(i),d=u(o),h=u(a),p=u(s),v=l;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"DataView");e.exports=o},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"Promise");e.exports=o},function(e,t,n){"use strict";var r=n(12),i=n(4),o=r(i,"Set");e.exports=o},function(e,t,n){"use strict";function r(e){return"string"==typeof e||!o(e)&&a(e)&&i(e)==s}var i=n(11),o=n(2),a=n(8),s="[object String]";e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=s(e)?i:a;return n&&l(e,t,n)&&(t=void 0),r(e,o(t,3))}var i=n(87),o=n(220),a=n(236),s=n(2),l=n(242);e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e:null==e?s:"object"==(void 0===e?"undefined":i(e))?l(e)?a(e[0],e[1]):o(e):u(e)}var i="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},o=n(221),a=n(224),s=n(98),l=n(2),u=n(233);e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(222),o=n(223),a=n(95);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var l=n.length,u=l,c=!r;if(null==e)return!u;for(e=Object(e);l--;){var f=n[l];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l<u;){f=n[l];var d=f[0],h=e[d],p=f[1];if(c&&f[2]){if(void 0===h&&!(d in e))return!1}else{var v=new i;if(r)var g=r(h,p,d,e,t,v);if(!(void 0===g?o(p,h,a|s,r,v):g))return!1}}return!0}var i=n(84),o=n(43),a=1,s=2;e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(94),o=n(47);e.exports=r},function(e,t,n){"use strict";function r(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,f|d)}}var i=n(43),o=n(225),a=n(97),s=n(52),l=n(94),u=n(95),c=n(24),f=1,d=2;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(51);e.exports=r},function(e,t,n){"use strict";var r=n(227),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){"use strict";function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(228),o=500;e.exports=r},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(46),o="Expected a function";r.Cache=i,e.exports=r},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return e;if(a(e))return o(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}var i=n(23),o=n(230),a=n(2),s=n(29),l=1/0,u=i?i.prototype:void 0,c=u?u.toString:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}e.exports=r},function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){t=i(t,e);for(var r=-1,c=t.length,f=!1;++r<c;){var d=u(t[r]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++r!=c?f:!!(c=null==e?0:e.length)&&l(c)&&s(d,c)&&(a(e)||o(e))}var i=n(36),o=n(48),a=n(2),s=n(35),l=n(49),u=n(24);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)?i(s(e)):o(e)}var i=n(234),o=n(235),a=n(52),s=n(24);e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return null==t?void 0:t[e]}}e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return i(t,e)}}var i=n(51);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n;return i(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}var i=n(237);e.exports=r},function(e,t,n){"use strict";var r=n(238),i=n(241),o=i(r);e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&i(e,t,o)}var i=n(239),o=n(47);e.exports=r},function(e,t,n){"use strict";var r=n(240),i=r();e.exports=i},function(e,t,n){"use strict";function r(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(50);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(!l(n))return!1;var r=void 0===t?"undefined":i(t);return!!("number"==r?a(n)&&s(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var i="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},o=n(32),a=n(50),s=n(35),l=n(7);e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.a11yNumResults,n=e.a11yNumSelected,r=e.emptyLabel,i=e.isMenuShown,o=e.results,a=e.selected;return i?0===o.length?r:t(o):n(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.activeItem,n=e.initialItem,r=e.isMenuShown,i=e.labelKey,o=e.multiple,s=e.selected,u=e.text;if(!u||!r||!n||n.customOption||t||s.length&&!o)return"";var c=(0,l.default)(n,i),f=(0,a.default)(c.toLowerCase(),u.toLowerCase());return f&&0===f.start?u+c.slice(f.end,c.length):""}Object.defineProperty(t,"__esModule",{value:!0});var o=n(99),a=r(o),s=n(54),l=r(s);t.default=i},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";var r=n(92),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.activeItem,n=e.labelKey,r=e.multiple,i=e.selected,o=e.text;if(t)return t.paginationOption?o:(0,l.default)(t,n);var s=!r&&!!i.length&&(0,a.default)(i);return s?(0,l.default)(s,n):o}Object.defineProperty(t,"__esModule",{value:!0});var o=n(55),a=r(o),s=n(54),l=r(s);t.default=i},function(e,t,n){"use strict";function r(e){return"rbt-menu-item-"+e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){return!t||t>=e.length?e:e.slice(0,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.emptyLabel,r=t.minLength,i=t.showMenu,o=t.text;return!!i&&(!(o.length<r)&&!(!e.length&&!n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return n=n||e+"s",1===t?"1 "+e:t+" "+n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){if(Element.prototype.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded();var t=e.getBoundingClientRect(),n=e.parentNode,r=n.getBoundingClientRect(),i=window.getComputedStyle(n,null),o=parseInt(i.getPropertyValue("border-top-width"));(t.top<r.top||t.bottom>r.bottom)&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-o+e.clientHeight/2)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";var r=n(258),i=n(106),o=i(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){"use strict";function r(e,t){return i(e,t,function(t,n){return o(e,n)})}var i=n(259),o=n(97);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r=-1,s=t.length,l={};++r<s;){var u=t[r],c=i(e,u);n(c,u)&&o(l,a(u,e),c)}return l}var i=n(51),o=n(260),a=n(36);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){if(!s(e))return e;t=o(t,e);for(var u=-1,c=t.length,f=c-1,d=e;null!=d&&++u<c;){var h=l(t[u]),p=n;if(u!=f){var v=d[h];p=r?r(v,h,d):void 0,void 0===p&&(p=s(v)?v:a(t[u+1])?[]:{})}i(d,h,p),d=d[h]}return e}var i=n(261),o=n(36),a=n(35),s=n(7),l=n(24);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(262),o=n(32),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(105);e.exports=r},function(e,t,n){"use strict";function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=n(264);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,a,s){var l=-1,u=e.length;for(n||(n=o),s||(s=[]);++l<u;){var c=e[l];t>0&&n(c)?t>1?r(c,t-1,n,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=n(88),o=n(265);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(23),o=n(48),a=n(2),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(l),i(e,this,u)}}var i=n(267),o=Math.max;e.exports=r},function(e,t,n){"use strict";function r(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)}e.exports=r},function(e,t,n){"use strict";var r=n(269),i=n(271),o=i(r);e.exports=o},function(e,t,n){"use strict";var r=n(270),i=n(105),o=n(98),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t,n){"use strict";function r(e){return function(){return e}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=0,n=0;return function(){var r=a(),s=o-(r-n);if(n=r,s>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,o=16,a=Date.now;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(0),s=r(a),l=n(1),u=r(l),c=function(e){var t=e.bsSize;return s.default.createElement("div",{className:(0,o.default)("rbt-loader",{"rbt-loader-lg":"large"===t||"lg"===t,"rbt-loader-sm":"small"===t||"sm"===t})})};c.propTypes={bsSize:u.default.oneOf(["large","lg","small","sm"])},t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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}function a(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)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":d(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":d(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=e.align,n=e.flip;return{computeStyles:{enabled:!0,fn:function(e){return"right"!==t&&"left"!==t&&(e.styles.width=e.offsets.reference.width),e}},flip:{enabled:n},preventOverflow:{escapeWithReference:!0}}}function f(e){return e===document.body}var d="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};Object.defineProperty(t,"__esModule",{value:!0});var h=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},p=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(5),g=r(v),m=n(0),y=r(m),b=n(1),_=r(b),x=n(56),w=r(x),S=n(275),C=r(S),T=n(278),k=r(T),P="rbt-body-container",O=function(e){function t(){var e,n,r,i;s(this,t);for(var o=arguments.length,u=Array(o),c=0;c<o;c++)u[c]=arguments[c];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r._update=function(){var e,t=r.props,n=t.className,i=t.container;t.show&&f(i)&&(i.classList.add(P),!!n&&(e=i.classList).add.apply(e,a(n.split(" "))))},i=n,l(r,i)}return u(t,e),p(t,[{key:"componentDidMount",value:function(){this._update()}},{key:"componentWillReceiveProps",value:function(e){var t=e.onMenuHide,n=e.onMenuShow,r=e.show;this.props.show&&!r&&t(),!this.props.show&&r&&n();var i=this.props,o=i.className,s=i.container;if(f(s)&&!f(e.container)){var l;s.classList.remove(P),!!o&&(l=s.classList).remove.apply(l,a(o.split(" ")))}this._update()}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.container,a=e.dropup,s=e.referenceElement;if(!(e.show&&m.Children.count(n)&&s))return null;var l=m.Children.only(n),u="right"===t?"end":"start",d=a?"top":"bottom";return y.default.createElement(C.default,{container:r},y.default.createElement(k.default,{modifiers:c(this.props),placement:d+"-"+u,referenceElement:s},function(e){var t=e.ref,n=o(e,["ref"]);return(0,m.cloneElement)(l,h({},l.props,n,{className:(0,g.default)(l.props.className,i({},"ignore-react-onclickoutside",f(r))),innerRef:t}))}))}}]),t}(y.default.Component);O.propTypes={children:_.default.element,container:w.default.isRequired,onMenuHide:_.default.func.isRequired,onMenuShow:_.default.func.isRequired,referenceElement:w.default,show:_.default.bool},O.defaultProps={show:!1},t.default=O},function(e,t,n){"use strict";function r(e){function t(t,n,r,i,o,a){var s=i||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+o+" `"+l+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f<u;f++)c[f-6]=arguments[f];return e.apply(void 0,[n,r,s,o,l].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};t.__esModule=!0;var l=n(1),u=r(l),c=n(56),f=r(c),d=n(0),h=r(d),p=n(6),v=r(p),g=n(108),m=r(g),y=n(109),b=r(y),_=n(277),x=r(_),w=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,m.default)(e.container,(0,b.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},a=n,o(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?v.default.createPortal(this.props.children,this._portalContainerNode):null},t}(h.default.Component);w.displayName="Portal",w.propTypes={container:u.default.oneOfType([f.default,u.default.func]),onRendered:u.default.func},t.default=v.default.createPortal?w:x.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};t.__esModule=!0;var l=n(1),u=r(l),c=n(56),f=r(c),d=n(0),h=r(d),p=n(6),v=r(p),g=n(108),m=r(g),y=n(109),b=r(y),_=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,m.default)(r.props.container,(0,b.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?h.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=v.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,function(){t&&r.props.onRendered&&r.props.onRendered()})}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(v.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},a=n,o(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,m.default)(e.container,(0,b.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(h.default.Component);_.displayName="Portal",_.propTypes={container:u.default.oneOfType([f.default,u.default.func]),onRendered:u.default.func},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return p.createElement(m.ManagerContext.Consumer,null,function(t){var n=t.referenceNode;return p.createElement(x,(0,a.default)({referenceElement:n},e))})}Object.defineProperty(t,"__esModule",{value:!0}),t.placements=t.InnerPopper=void 0;var o=n(110),a=r(o),s=n(118),l=r(s),u=n(119),c=r(u),f=n(125),d=r(f);t.default=i;var h=n(0),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(h),v=n(316),g=r(v),m=n(317),y=n(323),b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},_={},x=t.InnerPopper=function(e){function t(){var n,r,i;(0,l.default)(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return n=r=(0,c.default)(this,e.call.apply(e,[this].concat(s))),r.state={data:void 0,placement:void 0},r.popperNode=null,r.arrowNode=null,r.setPopperNode=function(e){r.popperNode!==e&&((0,y.safeInvoke)(r.props.innerRef,e),r.popperNode=e,r.updatePopperInstance())},r.setArrowNode=function(e){r.arrowNode!==e&&(r.arrowNode=e,r.popperInstance||r.updatePopperInstance())},r.updateStateModifier={enabled:!0,order:900,fn:function(e){var t=e.placement;return r.setState({data:e,placement:t},t!==r.state.placement?r.scheduleUpdate:void 0),e}},r.getOptions=function(){return{placement:r.props.placement,eventsEnabled:r.props.eventsEnabled,positionFixed:r.props.positionFixed,modifiers:(0,a.default)({},r.props.modifiers,{arrow:(0,a.default)({},r.props.modifiers&&r.props.modifiers.arrow,{enabled:!!r.arrowNode,element:r.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:r.updateStateModifier})}},r.getPopperStyle=function(){return r.popperNode&&r.state.data?(0,a.default)({position:r.state.data.offsets.popper.position},r.state.data.styles):b},r.getPopperPlacement=function(){return r.state.data?r.state.placement:void 0},r.getArrowStyle=function(){return r.arrowNode&&r.state.data?r.state.data.arrowStyles:_},r.getOutOfBoundariesState=function(){return r.state.data?r.state.data.hide:void 0},r.destroyPopperInstance=function(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)},r.updatePopperInstance=function(){r.destroyPopperInstance();var e=r,t=e.popperNode,n=r.props.referenceElement;n&&t&&(r.popperInstance=new g.default(n,t,r.getOptions()))},r.scheduleUpdate=function(){r.popperInstance&&r.popperInstance.scheduleUpdate()},i=n,(0,c.default)(r,i)}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},t.prototype.componentWillUnmount=function(){this.destroyPopperInstance()},t.prototype.render=function(){return(0,y.unwrapArray)(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(p.Component);x.defaultProps={placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1};var w=g.default.placements;t.placements=w},function(e,t,n){"use strict";e.exports={default:n(280),__esModule:!0}},function(e,t,n){"use strict";n(281),e.exports=n(15).Object.assign},function(e,t,n){"use strict";var r=n(25);r(r.S+r.F,"Object",{assign:n(283)})},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(38),i=n(63),o=n(40),a=n(117),s=n(115),l=Object.assign;e.exports=!l||n(27)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=i.f,f=o.f;l>u;)for(var d,h=s(arguments[u++]),p=c?r(h).concat(c(h)):r(h),v=p.length,g=0;v>g;)f.call(h,d=p[g++])&&(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=n(20),i=n(285),o=n(286);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(59),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(59),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){"use strict";e.exports={default:n(288),__esModule:!0}},function(e,t,n){"use strict";n(289),n(295),e.exports=n(68).f("iterator")},function(e,t,n){"use strict";var r=n(290)(!0);n(121)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(59),i=n(58);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(66),i=n(37),o=n(67),a={};n(16)(a,n(21)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(17),i=n(26),o=n(38);e.exports=n(19)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){"use strict";var r=n(10).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(13),i=n(117),o=n(60)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";n(296);for(var r=n(10),i=n(16),o=n(65),a=n(21)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},function(e,t,n){"use strict";var r=n(297),i=n(298),o=n(65),a=n(20);e.exports=n(121)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";e.exports={default:n(300),__esModule:!0}},function(e,t,n){"use strict";n(301),n(306),n(307),n(308),e.exports=n(15).Symbol},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(10),o=n(13),a=n(19),s=n(25),l=n(122),u=n(302).KEY,c=n(27),f=n(61),d=n(67),h=n(39),p=n(21),v=n(68),g=n(69),m=n(303),y=n(304),b=n(26),_=n(18),x=n(20),w=n(57),S=n(37),C=n(66),T=n(305),k=n(124),P=n(17),O=n(38),E=k.f,N=P.f,M=T.f,K=i.Symbol,F=i.JSON,I=F&&F.stringify,R=p("_hidden"),A=p("toPrimitive"),D={}.propertyIsEnumerable,j=f("symbol-registry"),L=f("symbols"),U=f("op-symbols"),z=Object.prototype,V="function"==typeof K,G=i.QObject,W=!G||!G.prototype||!G.prototype.findChild,B=a&&c(function(){return 7!=C(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=E(z,t);r&&delete z[t],N(e,t,n),r&&e!==z&&N(z,t,r)}:N,H=function(e){var t=L[e]=C(K.prototype);return t._k=e,t},q=V&&"symbol"==r(K.iterator)?function(e){return"symbol"==(void 0===e?"undefined":r(e))}:function(e){return e instanceof K},Y=function(e,t,n){return e===z&&Y(U,t,n),b(e),t=w(t,!0),b(n),o(L,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=C(n,{enumerable:S(0,!1)})):(o(e,R)||N(e,R,S(1,{})),e[R][t]=!0),B(e,t,n)):N(e,t,n)},X=function(e,t){b(e);for(var n,r=m(t=x(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?C(e):X(C(e),t)},$=function(e){var t=D.call(this,e=w(e,!0));return!(this===z&&o(L,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(L,e)||o(this,R)&&this[R][e])||t)},J=function(e,t){if(e=x(e),t=w(t,!0),e!==z||!o(L,t)||o(U,t)){var n=E(e,t);return!n||!o(L,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=M(x(e)),r=[],i=0;n.length>i;)o(L,t=n[i++])||t==R||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===z,r=M(n?U:x(e)),i=[],a=0;r.length>a;)!o(L,t=r[a++])||n&&!o(z,t)||i.push(L[t]);return i};V||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===z&&t.call(U,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),B(this,e,S(1,n))};return a&&W&&B(z,e,{configurable:!0,set:t}),H(e)},l(K.prototype,"toString",function(){return this._k}),k.f=J,P.f=Y,n(123).f=T.f=Z,n(40).f=$,n(63).f=ee,a&&!n(64)&&l(z,"propertyIsEnumerable",$,!0),v.f=function(e){return H(p(e))}),s(s.G+s.W+s.F*!V,{Symbol:K});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=O(p.store),ie=0;re.length>ie;)g(re[ie++]);s(s.S+s.F*!V,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=K(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!V,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),F&&s(s.S+s.F*(!V||c(function(){var e=K();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,I.apply(F,r)}}),K.prototype[A]||n(16)(K.prototype,A,K.prototype.valueOf),d(K,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(39)("meta"),o=n(18),a=n(13),s=n(17).f,l=0,u=Object.isExtensible||function(){return!0},c=!n(27)(function(){return u(Object.preventExtensions({}))}),f=function(e){s(e,i,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==(void 0===e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[i].i},h=function(e,t){if(!a(e,i)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[i].w},p=function(e){return c&&v.NEED&&u(e)&&!a(e,i)&&f(e),e},v=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:p}},function(e,t,n){"use strict";var r=n(38),i=n(63),o=n(40);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(116);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(20),o=n(123).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?l(e):o(i(e))}},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(69)("asyncIterator")},function(e,t,n){"use strict";n(69)("observable")},function(e,t,n){"use strict";e.exports={default:n(310),__esModule:!0}},function(e,t,n){"use strict";n(311),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){"use strict";var r=n(25);r(r.S,"Object",{setPrototypeOf:n(312).set})},function(e,t,n){"use strict";var r=n(18),i=n(26),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(111)(Function.call,n(124).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";e.exports={default:n(314),__esModule:!0}},function(e,t,n){"use strict";n(315);var r=n(15).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){"use strict";var r=n(25);r(r.S,"Object",{create:n(66)})},function(e,t,n){"use strict";(function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},de))}}function i(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+r)?e:s(a(e))}function l(e){return 11===e?ge:10===e?me:ge||me}function u(e){if(!e)return document.documentElement;for(var t=l(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?u(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||u(e.firstElementChild)===e)}function f(e){return null!==e.parentNode?f(e.parentNode):e}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return c(a)?a:u(a);var s=f(e);return s.host?d(s.host,t):d(e,f(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}return e[n]}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(t,"top"),i=h(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function v(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],l(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function m(e){var t=e.body,n=e.documentElement,r=l(10)&&getComputedStyle(n);return{height:g("Height",t,n,r),width:g("Width",t,n,r)}}function y(e){return xe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(l(10)){t=e.getBoundingClientRect();var n=h(e,"top"),r=h(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?m(e.ownerDocument):{},s=a.width||e.clientWidth||i.right-i.left,u=a.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-s,f=e.offsetHeight-u;if(c||f){var d=o(e);c-=v(d,"x"),f-=v(d,"y"),i.width-=c,i.height-=f}return y(i)}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=l(10),i="HTML"===t.nodeName,a=b(e),u=b(t),c=s(e),f=o(t),d=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);n&&i&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var v=y({top:a.top-u.top-d,left:a.left-u.left-h,width:a.width,height:a.height});if(v.marginTop=0,v.marginLeft=0,!r&&i){var g=parseFloat(f.marginTop,10),m=parseFloat(f.marginLeft,10);v.top-=d-g,v.bottom-=d-g,v.left-=h-m,v.right-=h-m,v.marginTop=g,v.marginLeft=m}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(v=p(v,t)),v}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:h(n),s=t?0:h(n,"left");return y({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function w(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||w(a(e)))}function S(e){if(!e||!e.parentElement||l())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function C(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},l=i?S(e):d(e,t);if("viewport"===r)o=x(l,i);else{var u=void 0;"scrollParent"===r?(u=s(a(t)),"BODY"===u.nodeName&&(u=e.ownerDocument.documentElement)):u="window"===r?e.ownerDocument.documentElement:r;var c=_(u,l,i);if("HTML"!==u.nodeName||w(l))o=c;else{var f=m(e.ownerDocument),h=f.height,p=f.width;o.top+=c.top-c.marginTop,o.bottom=h+c.top,o.left+=c.left-c.marginLeft,o.right=p+c.left}}n=n||0;var v="number"==typeof n;return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function T(e){return e.width*e.height}function k(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=C(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return xe({key:e},s[e],{area:T(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(n,r?S(t):d(t,n),r)}function O(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+r}}function E(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=O(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[E(s)],i}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function K(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=M(e,function(e){return e[t]===n});return e.indexOf(r)}function F(e,t,n){return(void 0===n?e:e.slice(0,K(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=y(t.offsets.popper),t.offsets.reference=y(t.offsets.reference),t=n(t,e))}),t}function I(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function R(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function A(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function D(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[A("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function L(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||L(s(o.parentNode),t,n,r),r.push(o)}function U(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var i=s(e);return L(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function V(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function G(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=V(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function B(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(t[n])&&(r="px"),e.style[n]=t[n]+r})}function H(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e){return B(e.instance.popper,e.styles),H(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&B(e.arrowElement,e.arrowStyles),e}function Y(e,t,n,r,i){var o=P(i,t,e,n.positionFixed),a=k(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),B(t,{position:n.positionFixed?"fixed":"absolute"}),n}function X(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=-1!==["left","right"].indexOf(e.placement),a=-1!==e.placement.indexOf("-"),s=i.width%2==r.width%2,l=i.width%2==1&&r.width%2==1,u=function(e){return e},c=t?o||a||s?Math.round:Math.floor:u,f=t?Math.round:u;return{left:c(l&&!a&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:c(r.right)}}function Q(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=M(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=u(e.instance.popper),l=b(s),c={position:i.position},f=X(e,window.devicePixelRatio<2||!we),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=A("transform"),v=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+f.bottom:-l.height+f.bottom:f.top,v="right"===h?"HTML"===s.nodeName?-s.clientWidth+f.right:-l.width+f.right:f.left,a&&p)c[p]="translate3d("+v+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var m="bottom"===d?-1:1,y="right"===h?-1:1;c[d]=g*m,c[h]=v*y,c.willChange=d+", "+h}var _={"x-placement":e.placement};return e.attributes=xe({},_,e.attributes),e.styles=xe({},c,e.styles),e.arrowStyles=xe({},e.offsets.arrow,e.arrowStyles),e}function $(e,t,n){var r=M(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function J(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",v=O(r)[c];l[p]-v<s[d]&&(e.offsets.popper[d]-=s[d]-(l[p]-v)),l[d]+v>s[p]&&(e.offsets.popper[d]+=l[d]+v-s[p]),e.offsets.popper=y(e.offsets.popper);var g=l[d]+l[c]/2-v/2,m=o(e.instance.popper),b=parseFloat(m["margin"+f],10),_=parseFloat(m["border"+f+"Width"],10),x=g-e.offsets.popper[d]-b-_;return x=Math.max(Math.min(s[c]-v,x),0),e.arrowElement=r,e.offsets.arrow=(n={},_e(n,d,Math.round(x)),_e(n,h,""),n),e}function Z(e){return"end"===e?"start":"start"===e?"end":e}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ce.indexOf(e),r=Ce.slice(n+1).concat(Ce.slice(0,n));return t?r.reverse():r}function te(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=C(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=E(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Te.FLIP:a=[r,i];break;case Te.CLOCKWISE:a=ee(r);break;case Te.COUNTERCLOCKWISE:a=ee(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=E(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),h=f(u.left)<f(n.left),p=f(u.right)>f(n.right),v=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),m="left"===r&&h||"right"===r&&p||"top"===r&&v||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&v||!y&&"end"===o&&g);(d||m||b)&&(e.flipped=!0,(d||m)&&(r=a[l+1]),b&&(o=Z(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=xe({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))}),e}function ne(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function re(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return y(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(M(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return re(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){W(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function oe(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function ae(e,t){var n=t.boundariesElement||u(e.instance.popper);e.instance.reference===n&&(n=u(n));var r=A("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=C(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,f=e.offsets.popper,d={primary:function(e){var n=f[e];return f[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(f[e],l[e])),_e({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=f[n];return f[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(f[n],l[e]-("right"===e?f.width:f.height))),_e({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=xe({},f,d[t](e))}),e.offsets.popper=f,e}function se(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_e({},l,o[l]),end:_e({},l,o[l]+o[u]-a[u])};e.offsets.popper=xe({},a,c[r])}return e}function le(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ue(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=E(t),e.offsets.popper=y(i),e}Object.defineProperty(t,"__esModule",{value:!0});for(var ce="undefined"!=typeof window&&"undefined"!=typeof document,fe=["Edge","Trident","Firefox"],de=0,he=0;he<fe.length;he+=1)if(ce&&navigator.userAgent.indexOf(fe[he])>=0){de=1;break}var pe=ce&&window.Promise,ve=pe?n:r,ge=ce&&!(!window.MSInputMethodContext||!document.documentMode),me=ce&&/MSIE 10/.test(navigator.userAgent),ye=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},be=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_e=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xe=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},we=ce&&/Firefox/i.test(navigator.userAgent),Se=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ce=Se.slice(3),Te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ke={shift:{order:100,enabled:!0,fn:se},offset:{order:200,enabled:!0,fn:oe,offset:0},preventOverflow:{order:300,enabled:!0,fn:ae,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ne},arrow:{order:500,enabled:!0,fn:J,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:te,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ue},hide:{order:800,enabled:!0,fn:le},computeStyle:{order:850,enabled:!0,fn:Q,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:q,onLoad:Y,gpuAcceleration:void 0}},Pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ke},Oe=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ye(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ve(this.update.bind(this)),this.options=xe({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(xe({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=xe({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return xe({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return be(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return D.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();Oe.Utils=("undefined"!=typeof window?window:e).PopperUtils,Oe.placements=Se,Oe.Defaults=Pe,t.default=Oe}).call(t,n(14))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ManagerContext=void 0;var i=n(110),o=r(i),a=n(118),s=r(a),l=n(119),u=r(l),c=n(125),f=r(c),d=n(0),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),p=n(318),v=r(p),g=t.ManagerContext=(0,v.default)({getReferenceRef:void 0,referenceNode:void 0}),m=function(e){function t(){(0,s.default)(this,t);var n=(0,u.default)(this,e.call(this));return n.getReferenceRef=function(e){return n.setState(function(t){var n=t.context;return{context:(0,o.default)({},n,{referenceNode:e})}})},n.state={context:{getReferenceRef:n.getReferenceRef,referenceNode:void 0}},n}return(0,f.default)(t,e),t.prototype.render=function(){return h.createElement(g.Provider,{value:this.state.context},this.props.children)},t}(h.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(0),o=r(i),a=n(319),s=r(a);t.default=o.default.createContext||s.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":f(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":f(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function u(e){return Array.isArray(e)?e[0]:e}function c(e,t){var n,r,c="__create-react-context-"+(0,g.default)()+"__",f=function(e){function n(){var t,r,a;i(this,n);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return t=r=o(this,e.call.apply(e,[this].concat(u))),r.emitter=l(r.props.value),a=t,o(r,a)}return a(n,e),n.prototype.getChildContext=function(){var e;return e={},e[c]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;s(n,r)?i=0:(i="function"==typeof t?t(n,r):y,0!==(i|=0)&&this.emitter.set(e.value,i))}},n.prototype.render=function(){return this.props.children},n}(d.Component);f.childContextTypes=(n={},n[c]=p.default.object.isRequired,n);var h=function(t){function n(){var e,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return e=r=o(this,t.call.apply(t,[this].concat(l))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},a=e,o(r,a)}return a(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?y:t},n.prototype.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?y:e},n.prototype.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[c]?this.context[c].get():e},n.prototype.render=function(){return u(this.props.children)(this.state.value)},n}(d.Component);return h.contextTypes=(r={},r[c]=p.default.object,r),{Provider:f,Consumer:h}}var f="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};t.__esModule=!0;var d=n(0),h=(r(d),n(1)),p=r(h),v=n(320),g=r(v),m=n(321),y=(r(m),1073741823);t.default=c,e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(t,n(14))},function(e,t,n){"use strict";var r=n(322),i=r;e.exports=i},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.unwrapArray=function(e){return Array.isArray(e)?e[0]:e},t.safeInvoke=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"==typeof e)return e.apply(void 0,n)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(325),y=r(m),b=n(126),_=r(b),x=n(3),w=n(129),S=r(w),C=n(130),T=r(C),k=n(22),P=(0,S.default)(y.default),O=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r._renderToken=function(e,t){var n=r.props,i=n.onRemove,o=n.renderToken,a=u({},r.props,{onRemove:function(){return i(e)}});return o(e,a,t)},r._handleContainerClickOrFocus=function(e){if(r.props.disabled)return void e.target.blur();var t=r._input;e.target!==t&&(t.selectionStart=t.value.length),t.focus()},r._handleKeyDown=function(e){var t=r.props,n=t.onKeyDown,i=t.selected,o=t.value;switch(e.keyCode){case k.BACKSPACE:if(e.target===r._input&&i.length&&!o){var a=r._wrapper.children,s=a[a.length-2];s&&s.focus()}}n(e)},i=n,a(r,i)}return s(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.inputClassName,o=(t.labelKey,t.onRemove,t.renderToken,t.selected),a=i(t,["className","inputClassName","labelKey","onRemove","renderToken","selected"]);return g.default.createElement("div",{className:(0,d.default)("form-control","rbt-input-multi",n),disabled:a.disabled,onClick:this._handleContainerClickOrFocus,onFocus:this._handleContainerClickOrFocus,tabIndex:-1},g.default.createElement("div",{className:"rbt-input-wrapper",ref:function(t){return e._wrapper=t}},o.map(this._renderToken),g.default.createElement(P,u({},a,{inputClassName:(0,d.default)("rbt-input-main",r),inputRef:function(t){e._input=t,e.props.inputRef(t)},inputStyle:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0},onKeyDown:this._handleKeyDown,style:{position:"relative",zIndex:1}}))))}}]),t}(g.default.Component);O.propTypes={renderToken:p.default.func},O.defaultProps={renderToken:function(e,t,n){return g.default.createElement(_.default,{disabled:t.disabled,key:n,onRemove:t.onRemove,tabIndex:t.tabIndex},(0,x.getOptionLabel)(e,t.labelKey))}},t.default=(0,T.default)(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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};Object.defineProperty(t,"__esModule",{value:!0});var l=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},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),f=r(c),d=n(0),h=r(d),p={height:0,left:0,overflow:"scroll",position:"absolute",top:0,visibility:"hidden",whiteSpace:"pre"},v=["inputClassName","inputRef","inputStyle"],g=1,m=function(e){return v.forEach(function(t){return delete e[t]}),e},y=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},b=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={inputWidth:g},r._copyInputStyles=function(){var e=r._input&&window.getComputedStyle&&window.getComputedStyle(r._input);e&&(y(e,r._sizer),r._placeHolderSizer&&y(e,r._placeHolderSizer))},r._updateInputWidth=function(){if(r._sizer&&void 0!==r._sizer.scrollWidth){r._copyInputStyles();var e=r._placeHolderSizer&&r._placeHolderSizer.scrollWidth||g,t=Math.max(r._sizer.scrollWidth,e)+2;t!==r.state.inputWidth&&r.setState({inputWidth:t})}},a=n,o(r,a)}return a(t,e),u(t,[{key:"componentDidMount",value:function(){this._updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){this._updateInputWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.defaultValue,i=t.placeholder,o=t.value,a=l({},this.props.style);a.display||(a.display="inline-block");var s=m(l({},this.props,{className:this.props.inputClassName,style:l({},this.props.inputStyle,{boxSizing:"content-box",width:this.state.inputWidth+"px"})}));return h.default.createElement("div",{className:n,style:a},h.default.createElement("input",l({},s,{ref:function(t){e._input=t,"function"==typeof e.props.inputRef&&e.props.inputRef(t)}})),h.default.createElement("div",{ref:function(t){return e._sizer=t},style:p},r||o||""),i?h.default.createElement("div",{ref:function(t){return e._placeHolderSizer=t},style:p},i):null)}}]),t}(h.default.Component);b.propTypes={inputClassName:f.default.string,inputRef:f.default.func,inputStyle:f.default.object},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(5),d=r(f),h=n(0),p=r(h),v=n(129),g=r(v),m=n(130),y=r(m),b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.inputRef,r=i(e,["className","inputRef"]);return p.default.createElement("input",u({},r,{className:(0,d.default)("rbt-input-main","form-control",t),ref:n,type:"text"}))}}]),t}(p.default.Component);t.default=(0,y.default)((0,g.default)(b))},function(e,t,n){"use strict";function r(e){return function(t,n,r,i,o){var a=r||"<<anonymous>>",s=o||n;if(null==t[n])return new Error("The "+i+" `"+s+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c<l;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,r,i,o].concat(u))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":f(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":f(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+Math.random().toString(36).substr(2,12)}function u(e){var t=e.defaultInputValue,n=e.defaultSelected,r=e.maxResults,i=e.multiple,o=e.selected?e.selected.slice():n.slice(),a=t;return!i&&o.length&&(a=(0,F.getOptionLabel)((0,m.default)(o),e.labelKey),o.length>1&&(o=o.slice(0,1))),{activeIndex:-1,activeItem:null,initialItem:null,selected:o,showMenu:!1,shownResults:r,text:a}}function c(e){e=(0,v.default)(M.default)(e);var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.blur=function(){t.getInput().blur(),t._hideMenu()},t.clear=function(){t.setState(d({},u(t.props),{selected:[],text:""}))},t.focus=function(){t.getInput().focus()},t.getInput=function(){return t._input},t._handleActiveIndexChange=function(e){var n={activeIndex:e};-1===e&&(n.activeItem=null),t.setState(n)},t._handleActiveItemChange=function(e){t.setState({activeItem:e})},t._handleClear=function(){t.clear(),t._updateSelected([])},t._handleFocus=function(e){t.setState({showMenu:!0},function(){return t.props.onFocus(e)})},t._handleInitialItemChange=function(e){var n=t.props.labelKey,r=t.state.initialItem;(0,b.default)(e,r)||r&&e&&e.customOption&&e[n]===r[n]||t.setState({initialItem:e})},t._handleInputChange=function(e){e.persist();var n=e.target.value,r=u(t.props),i=r.activeIndex,o=r.activeItem,a=r.shownResults,s=t.props,l=s.multiple,c=s.onInputChange;t.setState({activeIndex:i,activeItem:o,showMenu:!0,shownResults:a,text:n},function(){return c(n,e)}),t.state.selected.length&&!l&&t._updateSelected([])},t._handleKeyDown=function(e,n,r){var i=t.state.activeItem;switch(e.keyCode){case R.UP:case R.DOWN:if(!r){t._showMenu();break}var o=t.state.activeIndex;for(e.preventDefault(),o+=e.keyCode===R.UP?-1:1;n[o]&&n[o].disabled;)o+=e.keyCode===R.UP?-1:1;o===n.length?o=-1:-2===o&&(o=n.length-1),t._handleActiveIndexChange(o);break;case R.ESC:r&&t._hideMenu();break;case R.RETURN:if(!r)break;e.preventDefault(),i&&t._handleMenuItemSelect(i,e);break;case R.RIGHT:case R.TAB:if(!r)break;if(i&&!i.paginationOption){e.keyCode===R.TAB&&e.preventDefault(),t._handleSelectionAdd(i);break}e.keyCode===R.TAB&&t._hideMenu()}t.props.onKeyDown(e)},t._handleMenuItemSelect=function(e,n){e.paginationOption?t._handlePaginate(n):t._handleSelectionAdd(e)},t._handlePaginate=function(e){e.persist();var n=t.props,r=n.maxResults,i=n.onPaginate,o=t.state.shownResults+r;t.setState({shownResults:o},function(){return i(e,o)})},t._handleSelectionAdd=function(e){var n=t.props,r=n.multiple,i=n.labelKey,o=void 0,a=void 0;r?(o=t.state.selected.concat(e),a=""):(o=[e],a=(0,F.getOptionLabel)(e,i)),t._hideMenu(),t.setState({initialItem:e,text:a}),t._updateSelected(o)},t._handleSelectionRemove=function(e){var n=t.state.selected.filter(function(t){return!(0,b.default)(t,e)});t.focus(),t._hideMenu(),t._updateSelected(n)},t.handleClickOutside=function(e){t.state.showMenu&&t._hideMenu()},t._hideMenu=function(){var e=u(t.props),n=e.activeIndex,r=e.activeItem,i=e.showMenu,o=e.shownResults;t.setState({activeIndex:n,activeItem:r,showMenu:i,shownResults:o})},t._showMenu=function(){t.setState({showMenu:!0})},t._updateSelected=function(e){t.setState({selected:e},function(){return t.props.onChange(e)})},t.state=u(e),t}return s(n,t),h(n,[{key:"getChildContext",value:function(){return{activeIndex:this.state.activeIndex,onActiveItemChange:this._handleActiveItemChange,onInitialItemChange:this._handleInitialItemChange,onMenuItemClick:this._handleMenuItemSelect}}},{key:"componentWillMount",value:function(){this._menuId=l("rbt-menu-")}},{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=e.labelKey,n=e.multiple,r=e.selected;if(r&&!(0,b.default)(r,this.state.selected)){if(this.setState({selected:r}),n)return;this.setState({text:r.length?(0,F.getOptionLabel)((0,m.default)(r),t):""})}var i=r||this.state.selected;if(!n&&i.length>1)return i=i.slice(0,1),void this.setState({selected:i,text:(0,F.getOptionLabel)((0,m.default)(i),t)});n!==this.props.multiple&&this.setState({text:""})}},{key:"render",value:function(){var t=this,n=d({},this.props,this.state),r=n.filterBy,o=n.labelKey,a=n.minLength,s=n.options,l=n.paginate,u=n.paginationText,c=n.shownResults,f=n.text,h=[];if(f.length>=a){var p=Array.isArray(r)?F.defaultFilterBy:r;h=s.filter(function(e){return p(e,n)})}var v=l&&h.length>c;if(h=(0,F.getTruncatedOptions)(h,c),(0,F.addCustomOption)(h,n)&&h.push(i({customOption:!0,id:(0,S.default)("new-id-")},(0,F.getStringLabelKey)(o),f)),v){var g;h.push((g={},i(g,(0,F.getStringLabelKey)(o),u),i(g,"paginationOption",!0),g))}var m=(0,F.isShown)(h,n);return E.default.createElement(e,d({},n,{inputRef:function(e){return t._input=e},isMenuShown:m,menuId:this.props.menuId||this._menuId,onAdd:this._handleSelectionAdd,onChange:this._handleInputChange,onClear:this._handleClear,onFocus:this._handleFocus,onInitialItemChange:this._handleInitialItemChange,onKeyDown:function(e){return t._handleKeyDown(e,h,m)},onRemove:this._handleSelectionRemove,results:h}))}}]),n}(E.default.Component);return t.displayName="TypeaheadContainer("+(0,F.getDisplayName)(e)+")",t.propTypes={a11yNumResults:T.default.func,a11yNumSelected:T.default.func,align:T.default.oneOf(["justify","left","right"]),allowNew:T.default.oneOfType([T.default.bool,T.default.func]),autoFocus:T.default.bool,bodyContainer:T.default.bool,caseSensitive:(0,K.checkPropType)(T.default.bool,K.caseSensitiveType),clearButton:T.default.bool,defaultInputValue:(0,K.checkPropType)(T.default.string,K.defaultInputValueType),defaultSelected:K.optionType,disabled:T.default.bool,dropup:T.default.bool,emptyLabel:T.default.node,filterBy:T.default.oneOfType([T.default.arrayOf(T.default.string.isRequired),T.default.func]),flip:T.default.bool,highlightOnlyResult:(0,K.checkPropType)(T.default.bool,K.highlightOnlyResultType),ignoreDiacritics:(0,K.checkPropType)(T.default.bool,K.ignoreDiacriticsType),inputProps:(0,K.checkPropType)(T.default.object,K.inputPropsType),isInvalid:T.default.bool,isLoading:T.default.bool,isValid:T.default.bool,labelKey:(0,K.checkPropType)(T.default.oneOfType([T.default.string,T.default.func]),K.labelKeyType),maxResults:T.default.number,menuId:T.default.oneOfType([T.default.number,T.default.string]),minLength:T.default.number,multiple:T.default.bool,onBlur:T.default.func,onChange:T.default.func,onFocus:T.default.func,onInputChange:T.default.func,onKeyDown:T.default.func,onMenuHide:T.default.func,onMenuShow:T.default.func,onPaginate:T.default.func,options:K.optionType.isRequired,paginate:T.default.bool,paginationText:T.default.string,placeholder:T.default.string,renderMenu:T.default.func,selected:K.optionType,selectHintOnEnter:T.default.bool},t.defaultProps={a11yNumResults:function(e){return(0,F.pluralize)("result",e.length)+". Use up and down arrow keys to navigate."},a11yNumSelected:function(e){return(0,F.pluralize)("selection",e.length)},align:"justify",allowNew:!1,autoFocus:!1,bodyContainer:!1,caseSensitive:!1,clearButton:!1,defaultInputValue:"",defaultSelected:[],disabled:!1,dropup:!1,emptyLabel:"No matches found.",filterBy:[],flip:!1,highlightOnlyResult:!1,ignoreDiacritics:!0,inputProps:{},isInvalid:!1,isLoading:!1,isValid:!1,labelKey:I.DEFAULT_LABELKEY,maxResults:100,minLength:0,multiple:!1,onBlur:x.default,onChange:x.default,onFocus:x.default,onInputChange:x.default,onKeyDown:x.default,onMenuHide:x.default,onMenuShow:x.default,onPaginate:x.default,paginate:!0,paginationText:"Display additional results...",placeholder:"",selectHintOnEnter:!1},t.childContextTypes={activeIndex:T.default.number.isRequired,onActiveItemChange:T.default.func.isRequired,onInitialItemChange:T.default.func.isRequired,onMenuItemClick:T.default.func.isRequired},(0,P.default)(t)}var f="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};Object.defineProperty(t,"__esModule",{value:!0});var 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(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(329),v=r(p),g=n(55),m=r(g),y=n(83),b=r(y),_=n(71),x=r(_),w=n(337),S=r(w),C=n(1),T=r(C),k=n(128),P=r(k),O=n(0),E=r(O),N=n(338),M=r(N),K=n(339),F=n(3),I=n(102),R=n(22);t.default=c},function(e,t,n){"use strict";var r=n(330),i=r(!0);e.exports=i},function(e,t,n){"use strict";function r(e){return o(function(t){var n=t.length,r=n,o=i.prototype.thru;for(e&&t.reverse();r--;){var v=t[r];if("function"!=typeof v)throw new TypeError(c);if(o&&!g&&"wrapper"==s(v))var g=new i([],!0)}for(r=g?r:n;++r<n;){v=t[r];var m=s(v),y="wrapper"==m?a(v):void 0;g=y&&u(y[0])&&y[1]==(h|f|d|p)&&!y[4].length&&1==y[9]?g[s(y[0])].apply(g,y[3]):1==v.length&&u(v)?g[m]():g.thru(v)}return function(){var e=arguments,r=e[0];if(g&&1==e.length&&l(r))return g.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}var i=n(72),o=n(106),a=n(136),s=n(137),l=n(2),u=n(333),c="Expected a function",f=8,d=32,h=128,p=256;e.exports=r},function(e,t,n){"use strict";var r=n(93),i=r&&new r;e.exports=i},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=o(n);return!!r&&e===r[0]}var i=n(74),o=n(136),a=n(137),s=n(334);e.exports=r},function(e,t,n){"use strict";function r(e){if(l(e)&&!s(e)&&!(e instanceof i)){if(e instanceof o)return e;if(f.call(e,"__wrapped__"))return u(e)}return new o(e)}var i=n(74),o=n(72),a=n(73),s=n(2),l=n(8),u=n(335),c=Object.prototype,f=c.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){"use strict";function r(e){if(e instanceof i)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var i=n(74),o=n(72),a=n(336);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=r},function(e,t,n){"use strict";function r(e){var t=++o;return i(e)+t}var i=n(96),o=0;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=function(t){function n(){var e,t,r,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=o(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),r.state={isOnlyResult:!1},r._handleKeyDown=function(e){var t=r.props,n=t.initialItem,i=t.onKeyDown,o=t.onAdd;switch(e.keyCode){case m.RETURN:r.state.isOnlyResult&&o(n)}i(e)},a=t,o(r,a)}return a(n,t),c(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowNew,n=e.highlightOnlyResult,r=e.results;n&&!t&&r.length!==this.props.results.length&&this.setState({isOnlyResult:1===r.length&&!(0,d.default)(r).disabled})}},{key:"getChildContext",value:function(){return{isOnlyResult:this.state.isOnlyResult}}},{key:"render",value:function(){return g.default.createElement(e,u({},this.props,{onKeyDown:this._handleKeyDown}))}}]),n}(g.default.Component);return t.childContextTypes={isOnlyResult:p.default.bool.isRequired},t}var l="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};Object.defineProperty(t,"__esModule",{value:!0});var u=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},c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(55),d=r(f),h=n(1),p=r(h),v=n(0),g=r(v),m=n(22);t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.optionType=t.labelKeyType=t.inputPropsType=t.ignoreDiacriticsType=t.highlightOnlyResultType=t.defaultInputValueType=t.checkPropType=t.caseSensitiveType=void 0;var i=n(340),o=r(i),a=n(341),s=r(a),l=n(342),u=r(l),c=n(343),f=r(c),d=n(344),h=r(d),p=n(345),v=r(p),g=n(346),m=r(g),y=n(347),b=r(y);t.caseSensitiveType=o.default,t.checkPropType=s.default,t.defaultInputValueType=u.default,t.highlightOnlyResultType=f.default,t.ignoreDiacriticsType=h.default,t.inputPropsType=v.default,t.labelKeyType=m.default,t.optionType=b.default},function(e,t,n){"use strict";function r(e,t,n){var r=e.caseSensitive,i=e.filterBy;(0,o.default)(!r||"function"!=typeof i,"Your `filterBy` function will override the `caseSensitive` prop.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(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,t){return function(n,i,o){a.default.checkPropTypes(r({},i,e),n,"prop",o),"function"==typeof t&&t(n,i,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(1),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e,t,n){var r=e.defaultInputValue,i=e.defaultSelected,a=e.multiple,s=e.selected,l=i.length?"defaultSelected":"selected";(0,o.default)(!(!a&&r&&(i.length||s&&s.length)),"`defaultInputValue` will be overridden by the value from `"+l+"`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t,n){var r=e.allowNew,i=e.highlightOnlyResult;(0,o.default)(!(i&&r),"`highlightOnlyResult` will not work with `allowNew`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t,n){var r=e.filterBy,i=e.ignoreDiacritics;(0,o.default)(i||"function"!=typeof r,"Your `filterBy` function will override the `ignoreDiacritics` prop.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=e.inputProps;r&&(0,a.default)(r)&&u.forEach(function(e){var t=e.alt,n=e.prop,i=t?" Use the top-level `"+t+"` prop instead.":null;(0,l.default)(!r.hasOwnProperty(n),"The `"+n+"` property of `inputProps` will be ignored."+i)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(100),a=r(o),s=n(9),l=r(s),u=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}]},function(e,t,n){"use strict";function r(e,t,n){var r=e.allowNew,i=e.labelKey;(0,o.default)(!("function"==typeof i&&r),"`labelKey` must be a string when `allowNew={true}`.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default.oneOfType([i.default.arrayOf(i.default.object.isRequired),i.default.arrayOf(i.default.string.isRequired)])},function(e,t,n){"use strict";function r(e){var t=e.images,n=e.selected,r=e.onSelect;return o.default.createElement("div",{className:"form-group field field-number"},o.default.createElement("select",{onChange:function(e){return r(e.target.value)},value:n,className:"form-control"},t.map(function(e,t){var n=e.name,r=e.url;return o.default.createElement("option",{key:t,value:r},n)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){var t=e.images,n=e.selected,r=e.onSelect;return o.default.createElement("div",{className:"form-group field field-number"},o.default.createElement("select",{onChange:function(e){return r(e.target.value)},value:n,className:"form-control"},t.map(function(e,t){var n=e.name,r=e.key;return o.default.createElement("option",{key:t,value:r},n)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)}])});
|
61
61
|
//# sourceMappingURL=react-complaint-image.js.map
|